:root {
  --bg: #0b1320;
  --surface: rgba(22, 36, 54, .86);
  --surface-strong: #17283a;
  --line: rgba(255,255,255,.09);
  --text: #f7fbff;
  --muted: #93a7b9;
  --green: #8ee532;
  --green-dark: #54aa1d;
  --orange: #ff9f2f;
  --red: #ff4e45;
  --blue: #46b8ff;
  --shadow: 0 24px 60px rgba(0,0,0,.32);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; color: var(--text); font-family: "Rubik", system-ui, sans-serif; overflow-x: hidden; }
button { color: inherit; font: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid rgba(142,229,50,.65); outline-offset: 3px; }

.app-shell { min-height: 100dvh; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 0, #1b3545 0, #101c2b 34%, #09111c 78%); }
.app-shell::before { content:""; position: fixed; inset: 0; opacity: .035; pointer-events:none; background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px); background-size: 32px 32px; }
.ambient { position: fixed; width: 40vw; height: 40vw; border-radius: 50%; filter: blur(100px); pointer-events:none; opacity: .12; }
.ambient--one { background: var(--green); left: -20vw; top: 25vh; }
.ambient--two { background: var(--orange); right: -22vw; bottom: -15vw; }

.topbar { width: min(1440px, calc(100% - 40px)); height: 84px; margin: 0 auto; display:flex; align-items:center; gap:24px; border-bottom:1px solid var(--line); position: relative; z-index:10; }
.brand { border:0; background:none; display:flex; align-items:center; gap:12px; padding:0; cursor:pointer; }
.brand__cube { width:38px; height:38px; display:block; transform:rotate(-8deg); background:linear-gradient(135deg, #a9f648, #5cad1c); border:3px solid #d4ff8a; box-shadow:inset -7px -7px rgba(0,0,0,.18), 0 0 24px rgba(142,229,50,.25); position:relative; }
.brand__cube::before,.brand__cube::after,.brand__cube i { content:""; position:absolute; background:#17321a; width:6px; height:6px; }
.brand__cube::before { left:7px; top:9px; }.brand__cube::after { right:7px; top:9px; }.brand__cube i { left:13px; bottom:7px; width:9px; height:5px; }
.brand__text { font-family:"Russo One"; font-size:20px; letter-spacing:.7px; }.brand__text span { color:var(--green); }
.season-pill { margin:auto; display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.05); border:1px solid var(--line); border-radius:14px; padding:8px 12px; }
.season-pill__icon { color:var(--orange); font-size:20px; }.season-pill span:nth-child(2) { display:flex; flex-direction:column; }.season-pill small { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:1.1px; }.season-pill strong { font-size:12px; }.season-pill b { margin-left:12px; color:var(--orange); font-size:12px; }
.topbar__actions { display:flex; gap:8px; }
.currency,.sound-button { min-height:42px; border:1px solid var(--line); background:rgba(255,255,255,.055); border-radius:12px; display:flex; align-items:center; gap:8px; padding:0 10px; cursor:pointer; }
.currency i { width:19px; height:19px; display:grid; place-items:center; font-style:normal; border-radius:6px; color:#0b1320; font-weight:900; background:var(--green); }.coin { color:#ffd04b; }.gem { color:#57d7ff; }.sound-button { width:42px; justify-content:center; font-weight:900; }

main { width:min(1440px, calc(100% - 40px)); margin:0 auto; position:relative; z-index:2; }
.screen { display:none; min-height:calc(100dvh - 84px); animation:screenIn .45s ease both; }.screen--active { display:grid; }
@keyframes screenIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.card { background:linear-gradient(145deg, rgba(28,47,67,.9), rgba(17,30,45,.94)); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.lobby { padding:28px 0 34px; grid-template-columns:300px minmax(340px, 1fr) 330px; grid-template-rows:auto auto; grid-template-areas:"profile hero missions" "loadout play missions"; gap:18px; align-content:center; }
.lobby__profile { grid-area:profile; padding:20px; }.lobby__hero { grid-area:hero; min-height:390px; position:relative; overflow:hidden; }.lobby__missions { grid-area:missions; padding:20px; }.lobby__loadout { grid-area:loadout; padding:18px 20px; }.lobby__play { grid-area:play; padding:16px; }
.eyebrow { color:var(--green); font-size:10px; font-weight:800; letter-spacing:1.7px; }.profile-head { display:flex; align-items:center; gap:13px; }.profile-head h1 { font-size:21px; margin:4px 0 3px; }.status { color:var(--muted); font-size:11px; margin:0; }.status i,.online i { display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:var(--green); box-shadow:0 0 10px var(--green); }.icon-button { border:0; background:rgba(255,255,255,.06); border-radius:9px; width:35px; height:35px; margin-left:auto; cursor:pointer; }
.pixel-avatar { width:62px; height:62px; flex:0 0 auto; position:relative; overflow:hidden; background:#24364a; border:3px solid #57832d; border-radius:14px; box-shadow:inset 0 0 20px rgba(0,0,0,.35); }.pixel-avatar__face { position:absolute; width:34px; height:30px; left:13px; top:13px; background:#df9f70; }.pixel-avatar__hair { position:absolute; width:38px; height:17px; left:11px; top:9px; z-index:2; background:#3e251f; box-shadow:7px 7px #3e251f; }.pixel-avatar__eye { position:absolute; width:5px; height:5px; background:#14202b; top:27px; z-index:3; }.pixel-avatar__eye--left { left:20px; }.pixel-avatar__eye--right { right:20px; }.pixel-avatar__body { position:absolute; width:42px; height:22px; left:9px; bottom:-5px; background:#5ca924; }.pixel-avatar--red { border-color:#a63a35; }.pixel-avatar--red .pixel-avatar__hair { background:#7b2624; box-shadow:7px 7px #7b2624; }.pixel-avatar--red .pixel-avatar__body { background:#b8342e; }.pixel-avatar--large { width:132px; height:132px; border-width:5px; border-radius:25px; transform:scale(1); }.pixel-avatar--large .pixel-avatar__face { width:72px; height:65px; left:27px; top:29px; }.pixel-avatar--large .pixel-avatar__hair { width:82px; height:36px; left:22px; top:18px; box-shadow:15px 15px #3e251f; }.pixel-avatar--red.pixel-avatar--large .pixel-avatar__hair { box-shadow:15px 15px #7b2624; }.pixel-avatar--large .pixel-avatar__eye { width:10px; height:10px; top:60px; }.pixel-avatar--large .pixel-avatar__eye--left { left:43px; }.pixel-avatar--large .pixel-avatar__eye--right { right:43px; }.pixel-avatar--large .pixel-avatar__body { width:90px; height:46px; left:16px; }.pixel-avatar--tiny { width:42px; height:42px; border-radius:9px; border-width:2px; transform:scale(1); }.pixel-avatar--tiny .pixel-avatar__face { transform:scale(.68); transform-origin:top left; }.pixel-avatar--tiny .pixel-avatar__hair { transform:scale(.68); transform-origin:top left; }.pixel-avatar--tiny .pixel-avatar__eye { transform:scale(.68); }.pixel-avatar--tiny .pixel-avatar__body { width:30px; left:5px; }
.league-block { margin:20px 0 17px; padding:14px; display:flex; align-items:center; gap:12px; border-radius:15px; background:linear-gradient(110deg, rgba(255,177,47,.13), rgba(255,255,255,.035)); border:1px solid rgba(255,190,59,.17); }.league-emblem { width:45px; height:48px; display:grid; place-items:center; color:#3a2804; font-family:"Russo One"; font-size:12px; background:linear-gradient(#ffdd62,#e79a23); clip-path:polygon(50% 0,94% 18%,85% 76%,50% 100%,15% 76%,6% 18%); }.league-copy { display:flex; flex-direction:column; min-width:0; }.league-copy small { color:#c8a96b; font-size:8px; font-weight:800; }.league-copy strong { font-size:13px; }.league-copy span { color:var(--muted); font-size:9px; }.rating-value { color:#ffd66b; margin-left:auto; }
.xp-block>div:first-child { display:flex; justify-content:space-between; font-size:9px; font-weight:800; color:var(--muted); margin-bottom:7px; }.progress { height:7px; background:rgba(255,255,255,.075); overflow:hidden; border-radius:9px; }.progress i { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,var(--green-dark),var(--green)); box-shadow:0 0 10px rgba(142,229,50,.25); }.profile-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:18px; }.profile-stats div { text-align:center; padding:11px 4px; border-radius:12px; background:rgba(255,255,255,.035); }.profile-stats strong,.profile-stats span { display:block; }.profile-stats span { color:var(--muted); font-size:9px; margin-top:3px; }
.hero-copy { position:absolute; z-index:3; left:26px; top:24px; }.hero-copy h2 { font-family:"Russo One"; font-size:30px; margin:7px 0 4px; }.hero-copy p { color:var(--muted); font-size:12px; margin:0; }.lobby__hero::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 70% 50%,rgba(142,229,50,.17),transparent 35%),linear-gradient(150deg,transparent 50%,rgba(142,229,50,.05)); }.voxel-scene { position:absolute; width:320px; height:330px; right:4%; bottom:0; }.voxel-shadow { position:absolute; width:230px; height:48px; background:rgba(0,0,0,.38); filter:blur(8px); border-radius:50%; bottom:25px; left:43px; }.voxel-character { position:absolute; width:150px; height:275px; left:60px; bottom:45px; filter:drop-shadow(0 18px 15px rgba(0,0,0,.35)); animation:heroFloat 3.5s ease-in-out infinite; }.voxel-character canvas { display:block; width:100%; height:100%; image-rendering:pixelated; }.tnt-block { position:absolute; right:10px; bottom:43px; width:74px; height:74px; display:grid; place-items:center; background:#d94335; border:7px solid #a82726; box-shadow:inset 0 14px rgba(255,255,255,.07), 0 14px 20px rgba(0,0,0,.35); transform:rotate(5deg); }.tnt-block span { background:#eee0c4; color:#39100c; width:100%; text-align:center; font-family:"Russo One"; font-size:15px; }.scene-spark { position:absolute; color:#ffcb43; text-shadow:0 0 12px #ff9f2f; animation:spark 1.5s ease-in-out infinite; }.scene-spark--one { right:26px; bottom:135px; }.scene-spark--two { right:90px; bottom:105px; animation-delay:.7s; }
@keyframes heroFloat { 50% { transform:translateY(-7px); } } @keyframes spark { 50% { opacity:.25; transform:scale(.5) rotate(90deg); } }
.skin-button { position:absolute; left:25px; bottom:24px; border:1px solid var(--line); background:rgba(0,0,0,.18); border-radius:11px; padding:10px 13px; font-size:11px; font-weight:700; cursor:pointer; }.skin-button span { color:var(--green); margin-right:5px; }.hero-badge { position:absolute; right:18px; top:18px; background:rgba(111,77,255,.2); color:#b9a8ff; border:1px solid rgba(162,139,255,.28); padding:7px 10px; border-radius:9px; font-size:8px; font-weight:800; letter-spacing:1px; }
.section-title { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; }.section-title h2 { margin:3px 0 0; font-size:19px; }.section-title button { border:0; color:var(--muted); background:none; font-size:11px; cursor:pointer; }.mission { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:11px; padding:13px 0; border-top:1px solid var(--line); }.mission__icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; font-size:20px; }.mission__icon--orange { color:#ffbb55; background:rgba(255,159,47,.12); }.mission__icon--blue { color:#63c5ff; background:rgba(70,184,255,.12); }.mission>div:nth-child(2) { display:grid; grid-template-columns:1fr auto; gap:3px 5px; }.mission strong { font-size:11px; }.mission span { grid-column:1/-1; color:var(--muted); font-size:9px; }.mission .progress { height:4px; }.mission small { color:var(--muted); font-size:8px; }.mission>b { color:#ffd564; font-size:11px; }.daily-chest { margin-top:16px; display:flex; align-items:center; gap:10px; padding:13px; border-radius:14px; background:linear-gradient(100deg,rgba(255,159,47,.15),rgba(255,159,47,.04)); border:1px solid rgba(255,159,47,.2); }.chest { font-size:25px; color:#ffc04e; }.daily-chest div { display:flex; flex-direction:column; }.daily-chest small { font-size:7px; color:#d29c50; }.daily-chest strong { font-size:11px; }.daily-chest button { margin-left:auto; border:0; background:var(--orange); color:#2a1704; border-radius:8px; padding:7px 9px; font-size:9px; font-weight:800; cursor:pointer; }
.loadout-slots { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }.loadout-slot { display:grid; grid-template-columns:43px 1fr; grid-template-rows:auto auto; text-align:left; border:1px solid var(--line); background:rgba(255,255,255,.035); border-radius:12px; padding:9px; cursor:pointer; }.item-icon { grid-row:1/3; width:36px; height:36px; display:grid; place-items:center; border-radius:9px; font-family:"Russo One"; font-size:9px; }.item-icon--tnt { background:#bd3d33; }.item-icon--shield { background:#2e8cc1; }.item-icon--boost { background:#a56e1b; color:#ffe278; font-size:18px; }.loadout-slot small { color:var(--muted); font-size:8px; }.loadout-slot strong { font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.ranked-note { color:var(--muted); font-size:9px; margin:11px 0 0; }.ranked-note span { color:var(--green); }
.mode-selector { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:11px; }.mode-tab { display:flex; align-items:center; gap:9px; text-align:left; border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:12px; padding:10px; cursor:pointer; }.mode-tab>span { font-size:20px; color:var(--muted); }.mode-tab div { display:flex; flex-direction:column; }.mode-tab strong { font-size:11px; }.mode-tab small { color:var(--muted); font-size:8px; }.mode-tab--active { border-color:rgba(142,229,50,.55); background:rgba(142,229,50,.09); }.mode-tab--active>span { color:var(--green); }.play-button { width:100%; min-height:72px; border:0; position:relative; overflow:hidden; border-radius:16px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; text-align:left; padding:0 18px; color:#152207; background:linear-gradient(110deg,#a4f043,#6fcd22); box-shadow:0 12px 30px rgba(111,205,34,.23),inset 0 1px rgba(255,255,255,.45); cursor:pointer; transition:transform .15s,filter .15s; }.play-button::after { content:""; position:absolute; width:70px; height:170%; top:-35%; left:-100px; background:rgba(255,255,255,.2); transform:rotate(22deg); transition:left .45s; }.play-button:hover::after { left:110%; }.play-button:hover { filter:brightness(1.05); transform:translateY(-2px); }.play-button:active { transform:translateY(1px); }.play-button__icon { width:43px; height:43px; display:grid; place-items:center; border-radius:12px; background:rgba(24,59,7,.16); }.play-button span:nth-child(2) { display:flex; flex-direction:column; }.play-button b { font-family:"Russo One"; font-size:17px; letter-spacing:.5px; }.play-button small { font-size:9px; opacity:.7; }.play-button i { font-style:normal; font-weight:900; font-size:11px; background:rgba(22,60,5,.14); padding:6px 8px; border-radius:8px; }.online { text-align:center; font-size:9px; color:var(--muted); margin:9px 0 0; }

.matchmaking { place-items:center; padding:25px 0 45px; position:relative; }.back-button { position:absolute; left:0; top:25px; border:0; background:none; color:var(--muted); cursor:pointer; }.back-button:first-letter { font-size:23px; }.matchmaking__content { text-align:center; width:min(830px,100%); }.matchmaking__content h2 { font-family:"Russo One"; font-size:35px; margin:8px 0 5px; }.matchmaking__content>p { color:var(--muted); font-size:12px; margin:0; }.search-orbit { width:130px; height:130px; position:relative; margin:25px auto 12px; }.orbit { position:absolute; inset:0; border-radius:50%; border:1px solid rgba(142,229,50,.18); }.orbit--outer { animation:rotate 4s linear infinite; }.orbit--inner { inset:17px; border-style:dashed; border-color:rgba(255,159,47,.3); animation:rotate 5s linear infinite reverse; }.orbit--outer i { position:absolute; width:7px; height:7px; background:var(--green); border-radius:50%; box-shadow:0 0 10px var(--green); }.orbit--outer i:nth-child(1) { left:20px; top:12px; }.orbit--outer i:nth-child(2) { right:0; top:61px; }.orbit--outer i:nth-child(3) { bottom:7px; left:38px; }.search-bomb { position:absolute; inset:34px; display:grid; place-items:center; background:#c83b31; border:5px solid #8b2823; box-shadow:0 0 30px rgba(255,78,69,.25); transform:rotate(6deg); }.search-bomb span { font-family:"Russo One"; font-size:10px; background:#f1ddbd; color:#3c1612; width:100%; }.search-bomb i { position:absolute; width:17px; height:17px; right:-7px; top:-10px; border-left:4px solid #85692e; transform:rotate(45deg); }.search-bomb i::after { content:"✦"; color:#ffcb43; position:absolute; top:-11px; right:-8px; animation:spark 1s infinite; } @keyframes rotate { to { transform:rotate(360deg); } }
.duel-cards { display:grid; grid-template-columns:1fr 80px 1fr; align-items:center; gap:18px; }.fighter-card { min-height:155px; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto auto; align-content:center; gap:3px 16px; text-align:left; padding:20px; position:relative; border-radius:18px; background:linear-gradient(145deg,rgba(28,47,67,.85),rgba(15,27,41,.9)); border:1px solid var(--line); }.fighter-card .pixel-avatar,.mystery-avatar { grid-row:1/4; }.fighter-card__label { position:absolute; top:12px; right:13px; color:var(--muted); font-size:8px; font-weight:800; letter-spacing:1.3px; }.fighter-card strong { font-size:17px; align-self:end; }.fighter-card>span:last-child { color:var(--muted); font-size:10px; align-self:start; }.fighter-card--you { border-color:rgba(142,229,50,.23); }.mystery-avatar { width:62px; height:62px; display:grid; place-items:center; flex:0 0 auto; background:rgba(255,255,255,.04); border:2px dashed rgba(255,255,255,.16); border-radius:14px; font-family:"Russo One"; font-size:25px; color:var(--muted); }.versus { font-family:"Russo One"; font-style:italic; font-size:29px; color:var(--orange); text-shadow:0 0 20px rgba(255,159,47,.3); }.search-status { margin:22px auto 15px; width:230px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; color:var(--muted); font-size:10px; }.search-status strong { color:var(--text); font-size:13px; }.search-dots { display:flex; gap:3px; }.search-dots i { width:5px; height:5px; background:var(--green); border-radius:50%; animation:dots 1s infinite alternate; }.search-dots i:nth-child(2) { animation-delay:.2s; }.search-dots i:nth-child(3) { animation-delay:.4s; } @keyframes dots { to { opacity:.2; transform:translateY(-3px); } }.cancel-button { border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--muted); padding:11px 20px; border-radius:11px; font-size:11px; cursor:pointer; }.fighter-card--revealed { border-color:rgba(255,78,69,.45); animation:opponentReveal .5s cubic-bezier(.2,1.6,.4,1); } @keyframes opponentReveal { 0% { transform:scale(.8); opacity:.2; } }

.versus-screen { place-items:center; text-align:center; padding:40px 0; position:relative; }.versus-screen__flash { position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle,rgba(255,255,255,.2),transparent 35%); animation:flash 1s ease-out both; }.versus-layout { width:min(900px,100%); display:grid; grid-template-columns:1fr 190px 1fr; align-items:center; margin:42px 0 35px; }.versus-player { display:flex; flex-direction:column; align-items:center; }.versus-player>span { margin-top:18px; color:var(--green); font-size:9px; font-weight:800; letter-spacing:2px; }.versus-player--right>span { color:var(--red); }.versus-player h2 { font-family:"Russo One"; font-size:26px; margin:7px 0 4px; }.versus-player p { color:var(--muted); font-size:11px; margin:0; }.versus-player--left { animation:slideLeft .65s cubic-bezier(.2,1,.3,1) both; }.versus-player--right { animation:slideRight .65s cubic-bezier(.2,1,.3,1) both; }.versus-logo { display:flex; flex-direction:column; align-items:center; }.versus-logo small { color:var(--orange); font-size:8px; letter-spacing:1.5px; font-weight:800; }.versus-logo strong { font-family:"Russo One"; font-style:italic; font-size:65px; color:#fff; text-shadow:5px 5px 0 #e8562d,0 0 35px rgba(255,106,46,.4); }.versus-logo i { width:90px; height:2px; background:linear-gradient(90deg,transparent,var(--orange),transparent); }.loading-match { width:min(430px,90%); }.loading-match>span { font-size:11px; font-weight:700; }.loading-match .progress { margin:10px 0 7px; height:8px; }.loading-match .progress i { width:0; transition:width .35s ease; }.loading-match small { color:var(--muted); font-size:9px; } @keyframes flash { from { opacity:1; } to { opacity:0; } } @keyframes slideLeft { from { opacity:0; transform:translateX(-80px); } } @keyframes slideRight { from { opacity:0; transform:translateX(80px); } }

.battle-start { place-items:center; padding:22px 0 38px; position:relative; }.battle-hud { width:min(1100px,100%); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; margin-bottom:14px; }.hud-player { display:flex; gap:10px; align-items:center; }.hud-player>div:not(.pixel-avatar) { display:flex; flex-direction:column; }.hud-player strong { font-size:11px; }.hud-player span { color:var(--green); font-size:11px; letter-spacing:3px; }.hud-player--right { justify-content:flex-end; text-align:right; }.hud-player--right span { color:var(--red); }.battle-timer { text-align:center; }.battle-timer small { display:block; color:var(--muted); font-size:7px; letter-spacing:1.3px; }.battle-timer strong { font-family:"Russo One"; }.arena { width:min(1100px,100%); aspect-ratio:15/8; padding:10px; display:grid; grid-template-columns:repeat(15,1fr); grid-template-rows:repeat(9,1fr); gap:3px; transform:perspective(900px) rotateX(4deg); transform-origin:center bottom; background:#152439; border:8px solid #263d56; border-radius:14px; box-shadow:0 35px 60px rgba(0,0,0,.4),inset 0 0 50px rgba(0,0,0,.3); overflow:hidden; }.tile { position:relative; border-radius:3px; background:#447b30; box-shadow:inset -3px -3px rgba(0,0,0,.1); }.tile--wall { background:#4a5662; border:3px solid #66727d; box-shadow:inset -5px -5px #323c45; }.tile--crate { background:#8d5a2d; border:3px solid #b3763b; box-shadow:inset -5px -5px #68401f; }.tile--tnt { background:#bd3a32; border:3px solid #dd5548; }.tile--tnt::after { content:"TNT"; position:absolute; left:0; right:0; top:37%; text-align:center; background:#ead8b8; color:#421815; font-family:"Russo One"; font-size:clamp(4px,.65vw,9px); }.tile--player::after { content:""; position:absolute; width:55%; height:70%; left:22%; top:15%; background:#6ec82b; border:3px solid #2d501d; box-shadow:inset 0 35% #e0a071; }.tile--enemy::after { content:""; position:absolute; width:55%; height:70%; left:22%; top:15%; background:#bd3b34; border:3px solid #6d2522; box-shadow:inset 0 35% #df9d70; }.countdown { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; background:rgba(6,13,22,.25); backdrop-filter:blur(2px); }.countdown span { font-family:"Russo One"; font-size:clamp(90px,18vw,220px); color:#fff; text-shadow:8px 8px 0 #5ea826,0 0 50px rgba(142,229,50,.4); animation:countPop .75s ease both; }.countdown--go span { font-size:clamp(60px,13vw,150px); color:var(--green); }.countdown--hidden { display:none; } @keyframes countPop { from { transform:scale(1.8); opacity:0; } 45% { opacity:1; } to { transform:scale(.85); } }.demo-return { margin-top:16px; border:1px solid var(--line); color:var(--muted); background:rgba(255,255,255,.04); padding:9px 14px; border-radius:10px; cursor:pointer; }
.battle-character { position:absolute; z-index:4; width:72%; height:88%; left:14%; bottom:8%; filter:drop-shadow(0 4px 3px rgba(0,0,0,.5)); transition:transform .1s; animation:fighterLand .2s ease-out; }.battle-character__head { position:absolute; width:68%; height:48%; left:16%; top:0; background:#dca071; border:clamp(1px,.25vw,3px) solid #452f25; }.battle-character__head i,.battle-character__head b { position:absolute; top:47%; width:14%; height:18%; background:#152231; }.battle-character__head i { left:17%; }.battle-character__head b { right:17%; }.battle-character__body { position:absolute; width:82%; height:48%; left:9%; bottom:0; border:clamp(1px,.25vw,3px) solid #31531f; background:linear-gradient(90deg,#62ac29 50%,#78d035 50%); }.battle-character--enemy .battle-character__body { border-color:#712722; background:linear-gradient(90deg,#b93530 50%,#d74a40 50%); }.battle-character--you { filter:drop-shadow(0 0 7px rgba(142,229,50,.72)); }.battle-character--enemy { filter:drop-shadow(0 0 7px rgba(255,78,69,.65)); }
.battle-bomb { position:absolute; z-index:3; width:74%; height:70%; left:13%; bottom:9%; display:grid; place-items:center; border:clamp(1px,.25vw,3px) solid #8e2823; background:#c83b31; box-shadow:inset 0 22% rgba(255,255,255,.1); animation:bombFuse .45s ease-in-out infinite alternate; }.battle-bomb span { width:100%; text-align:center; color:#401713; background:#eddbbd; font:clamp(4px,.65vw,9px) "Russo One"; }.battle-bomb i { position:absolute; width:30%; height:30%; right:-18%; top:-20%; border-left:clamp(2px,.3vw,4px) solid #8a6c32; transform:rotate(45deg); }.battle-bomb i::after { content:"✦"; position:absolute; right:-60%; top:-60%; color:#ffd453; text-shadow:0 0 8px #ff9f2f; }.tile--explosion { z-index:5; background:#ffb52e; animation:blastFlash .55s ease-out both; box-shadow:inset 0 0 10px #fff,0 0 18px #ff6a2d; }.tile--explosion::after { content:"✦"; position:absolute; inset:0; display:grid; place-items:center; color:white; font-size:clamp(12px,2vw,32px); }
.battle-controls { width:min(1100px,100%); min-height:54px; margin-top:13px; display:flex; justify-content:center; align-items:center; }.battle-help { display:flex; align-items:center; gap:22px; color:var(--muted); font-size:9px; }.battle-help span { display:flex; align-items:center; gap:7px; }.battle-help kbd { min-width:35px; padding:6px 8px; text-align:center; color:var(--text); border:1px solid var(--line); border-bottom:3px solid rgba(255,255,255,.14); border-radius:7px; background:#1b2b3e; font:8px "Russo One"; }.mobile-dpad,.mobile-bomb { display:none; }
@keyframes fighterLand { from { transform:scale(.65) translateY(-20%); opacity:.4; } } @keyframes bombFuse { to { transform:scale(1.08) rotate(2deg); filter:brightness(1.2); } } @keyframes blastFlash { from { transform:scale(.6); opacity:.25; } 45% { opacity:1; } to { transform:scale(1); opacity:.4; } }
.mobile-nav { display:none; }

body.modal-open { overflow:hidden; }
.guest-modal[hidden] { display:none; }
.guest-modal { position:fixed; z-index:90; inset:0; display:grid; place-items:center; padding:20px; opacity:0; transition:opacity .22s ease; }
.guest-modal--open { opacity:1; }
.guest-modal__backdrop { position:absolute; inset:0; background:rgba(4,10,18,.82); backdrop-filter:blur(10px); }
.guest-dialog { width:min(470px,100%); position:relative; overflow:hidden; isolation:isolate; padding:34px 36px 29px; text-align:center; border:1px solid rgba(142,229,50,.23); border-radius:24px; background:linear-gradient(150deg,#1c3144 0,#132235 52%,#0e1a29 100%); box-shadow:0 32px 90px rgba(0,0,0,.62),inset 0 1px rgba(255,255,255,.07); transform:translateY(18px) scale(.96); transition:transform .28s cubic-bezier(.2,.9,.25,1.25); }
.guest-modal--open .guest-dialog { transform:translateY(0) scale(1); }
.guest-dialog::before { content:""; position:absolute; z-index:-1; inset:0; opacity:.055; background-image:linear-gradient(rgba(255,255,255,.8) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.8) 1px,transparent 1px); background-size:25px 25px; }
.guest-dialog__glow { position:absolute; z-index:-1; width:250px; height:250px; left:50%; top:-155px; transform:translateX(-50%); border-radius:50%; background:var(--green); opacity:.18; filter:blur(50px); }
.guest-dialog__avatar { position:relative; width:78px; height:78px; margin:0 auto 18px; filter:drop-shadow(0 10px 18px rgba(0,0,0,.34)); animation:heroFloat 3s ease-in-out infinite; }
.guest-dialog__face { position:absolute; width:58px; height:49px; left:10px; top:0; background:#dba071; border:6px solid #4d3226; box-shadow:inset 0 8px rgba(255,255,255,.05); }
.guest-dialog__face i,.guest-dialog__face b { position:absolute; width:7px; height:8px; top:22px; background:#172331; }
.guest-dialog__face i { left:10px; }.guest-dialog__face b { right:10px; }
.guest-dialog__body { position:absolute; width:69px; height:34px; left:5px; bottom:0; background:linear-gradient(90deg,#5a9f25 50%,#71c62d 50%); border:6px solid #355d20; }
.guest-dialog .eyebrow { display:block; }
.guest-dialog h2 { margin:7px 0 7px; font-family:"Russo One"; font-size:29px; letter-spacing:.2px; }
.guest-dialog>p { margin:0 auto; max-width:340px; color:var(--muted); font-size:12px; line-height:1.5; }
.guest-form { margin-top:24px; text-align:left; }
.guest-form label { display:block; margin:0 0 7px 3px; color:#b8c7d4; font-size:8px; font-weight:800; letter-spacing:1.4px; }
.guest-input-wrap { min-height:58px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; padding:0 14px; border:1px solid rgba(255,255,255,.13); border-radius:14px; background:rgba(5,13,22,.48); transition:border-color .2s,box-shadow .2s; }
.guest-input-wrap:focus-within { border-color:rgba(142,229,50,.72); box-shadow:0 0 0 3px rgba(142,229,50,.1),0 8px 28px rgba(0,0,0,.2); }
.guest-input-wrap>span { color:var(--green); font-size:18px; }
.guest-input-wrap input { width:100%; min-width:0; border:0; outline:0; color:var(--text); background:transparent; font:700 15px "Rubik",sans-serif; }
.guest-input-wrap input::placeholder { color:#607386; font-weight:500; }
.guest-input-wrap small { color:#6f8496; font-size:9px; font-weight:700; }
.guest-input-wrap:has(input[aria-invalid="true"]) { border-color:rgba(255,78,69,.72); }
.guest-form__error { min-height:19px; margin:6px 3px 2px; color:#ff7a72; font-size:10px; line-height:1.3; }
.guest-submit { width:100%; min-height:67px; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:13px; border:0; border-radius:15px; padding:0 17px; text-align:left; color:#172508; background:linear-gradient(110deg,#a5f245,#70ce23); box-shadow:0 13px 30px rgba(111,205,34,.25),inset 0 1px rgba(255,255,255,.45); cursor:pointer; transition:transform .15s,filter .15s; }
.guest-submit:hover { transform:translateY(-2px); filter:brightness(1.05); }.guest-submit:active { transform:translateY(1px); }.guest-submit:disabled { cursor:wait; opacity:.76; transform:none; }
.guest-submit__icon { width:40px; height:40px; display:grid; place-items:center; border-radius:11px; background:rgba(24,59,7,.15); }
.guest-submit>span:last-child { display:flex; flex-direction:column; }.guest-submit b { font:16px "Russo One"; }.guest-submit small { margin-top:2px; font-size:9px; opacity:.68; }
.guest-submit--loading .guest-submit__icon { animation:rotate 1s linear infinite; }
.guest-dialog .guest-dialog__note { margin-top:15px; font-size:9px; }.guest-dialog__note span { color:var(--green); margin-right:4px; }

.toast { position:fixed; z-index:100; left:50%; bottom:30px; transform:translate(-50%,25px); background:#edf8e5; color:#203316; border-radius:12px; padding:11px 16px; font-size:11px; font-weight:700; opacity:0; pointer-events:none; transition:.25s; box-shadow:0 15px 35px rgba(0,0,0,.3); }.toast--show { opacity:1; transform:translate(-50%,0); }

/* Live voxel battle graphics: every element remains a real server-synchronised grid cell. */
.battle-start { isolation:isolate; overflow:visible; }
.battle-start::before { content:""; position:absolute; z-index:-2; inset:0 -8vw; pointer-events:none; background:radial-gradient(ellipse at 50% 42%,rgba(55,93,112,.2),transparent 48%),linear-gradient(180deg,rgba(4,9,15,.08),rgba(3,8,13,.52)); }
.battle-stage { width:min(1160px,100%); position:relative; padding:22px; border-radius:22px; background:linear-gradient(145deg,#314256 0,#1c2a39 22%,#111b28 100%); border:1px solid rgba(173,207,225,.12); box-shadow:0 45px 80px rgba(0,0,0,.5),inset 0 2px rgba(255,255,255,.08),inset 0 -18px 35px rgba(0,0,0,.3); }
.battle-stage::before { content:""; position:absolute; inset:7px; border:9px solid transparent; border-image:linear-gradient(135deg,#4d6172,#1a2938,#394b5c) 1; opacity:.7; pointer-events:none; }
.battle-stage::after { content:""; position:absolute; pointer-events:none; inset:14px; opacity:.12; background-image:radial-gradient(circle at 20% 30%,#fff 0 1px,transparent 2px),radial-gradient(circle at 70% 70%,#fff 0 1px,transparent 2px); background-size:47px 39px,61px 53px; mix-blend-mode:screen; }
.battle-engine-host { position:relative; z-index:2; width:100%; min-height:520px; border:7px solid #26394b; border-top-color:#53697b; border-left-color:#42596c; border-radius:10px; box-shadow:0 28px 42px rgba(0,0,0,.52); }
.battle-controls--legacy,.battle-start>.countdown { display:none; }
.battle-stage .arena { width:100%; aspect-ratio:15/9; padding:8px; gap:4px; overflow:hidden; transform:perspective(1200px) rotateX(7deg); border:7px solid #26394b; border-top-color:#53697b; border-left-color:#42596c; border-radius:10px; background:linear-gradient(135deg,#182a35,#0d1923); box-shadow:0 28px 42px rgba(0,0,0,.52),inset 0 0 35px rgba(0,0,0,.48),0 0 45px rgba(68,137,153,.08); }
.tile { overflow:visible; border-radius:2px; background-color:#477d37; background-image:radial-gradient(circle at 18% 28%,rgba(155,205,94,.19) 0 5%,transparent 6%),radial-gradient(circle at 72% 70%,rgba(29,73,34,.2) 0 7%,transparent 8%),linear-gradient(135deg,rgba(255,255,255,.08),transparent 42%); box-shadow:inset 2px 2px rgba(255,255,255,.07),inset -3px -4px rgba(19,55,25,.28),0 2px 2px rgba(0,0,0,.35); }
.tile:nth-child(5n+2):not(.tile--wall):not(.tile--crate) { filter:hue-rotate(-7deg) brightness(.95); }.tile:nth-child(7n+3):not(.tile--wall):not(.tile--crate) { filter:brightness(1.06); }
.tile--wall { z-index:2; border:0; border-radius:2px; background-color:#586675; background-image:linear-gradient(135deg,rgba(255,255,255,.13) 0 12%,transparent 13%),linear-gradient(45deg,transparent 63%,rgba(25,34,42,.24) 64% 69%,transparent 70%),linear-gradient(#637281,#4d5965); box-shadow:inset 0 5px rgba(151,168,181,.24),inset 5px 0 rgba(124,143,157,.12),inset -5px -7px #303b45,0 5px 5px rgba(0,0,0,.55); transform:translateY(-3px); }
.tile--wall::before { content:""; position:absolute; left:12%; top:17%; width:30%; height:2px; background:rgba(32,42,51,.38); transform:rotate(22deg); box-shadow:13px 12px rgba(32,42,51,.26); }
.tile--crate { z-index:2; border:0; border-radius:2px; background-color:#98663a; background-image:repeating-linear-gradient(0deg,transparent 0 27%,rgba(83,47,24,.3) 28% 31%),linear-gradient(90deg,rgba(255,255,255,.12),transparent 16% 84%,rgba(70,39,20,.3)); box-shadow:inset 0 5px #b77d45,inset 5px 0 rgba(215,155,87,.2),inset -6px -7px #663d24,0 5px 5px rgba(0,0,0,.48); transform:translateY(-2px); }
.tile--crate::before { content:""; position:absolute; inset:12%; background:linear-gradient(45deg,transparent 42%,#6f4327 43% 55%,transparent 56%),linear-gradient(-45deg,transparent 42%,#79502f 43% 55%,transparent 56%); filter:drop-shadow(1px 1px rgba(222,157,86,.25)); }
.tile--crate::after { content:""; position:absolute; inset:7%; border:clamp(1px,.2vw,3px) solid rgba(91,52,27,.72); box-shadow:inset 1px 1px rgba(225,162,93,.22); }
.battle-character { z-index:6; width:82%; height:105%; left:9%; bottom:7%; transform-origin:center bottom; filter:drop-shadow(0 6px 3px rgba(0,0,0,.58)); animation:fighterLand .28s cubic-bezier(.2,1.4,.4,1); }
.battle-character__shadow { position:absolute; z-index:-1; width:90%; height:20%; left:5%; bottom:-4%; border-radius:50%; background:rgba(0,0,0,.42); filter:blur(2px); }
.battle-character__head { z-index:5; width:62%; height:43%; left:19%; top:0; border:clamp(1px,.18vw,2px) solid #4c3227; background-color:#dca071; background-image:linear-gradient(90deg,rgba(255,255,255,.13),transparent 28%),linear-gradient(180deg,#54372a 0 18%,transparent 19%); box-shadow:inset -5px -5px rgba(111,64,43,.17),3px 3px rgba(20,27,33,.22); }
.battle-character__head::before { content:""; position:absolute; left:8%; right:8%; top:-10%; height:18%; background:#4d3228; clip-path:polygon(0 35%,18% 35%,18% 0,58% 0,58% 18%,100% 18%,100% 100%,0 100%); }
.battle-character__head i,.battle-character__head b { top:49%; width:13%; height:17%; box-shadow:0 0 2px rgba(102,213,255,.22); }.battle-character__head em { position:absolute; left:39%; bottom:13%; width:22%; height:8%; background:#774d38; }
.battle-character__body { z-index:3; width:64%; height:43%; left:18%; bottom:15%; border:clamp(1px,.18vw,2px) solid #31531f; background-image:linear-gradient(90deg,rgba(255,255,255,.13),transparent 35%),linear-gradient(90deg,#62ad2a 50%,#75c934 50%); box-shadow:inset -5px -5px rgba(29,79,23,.2); }
.battle-character__arm { position:absolute; z-index:2; width:17%; height:39%; bottom:17%; background:linear-gradient(180deg,#dca071 0 52%,#5da427 53%); border:clamp(1px,.16vw,2px) solid rgba(66,45,34,.8); }.battle-character__arm--left { left:3%; transform:rotate(6deg); }.battle-character__arm--right { right:3%; transform:rotate(-6deg); }
.battle-character__leg { position:absolute; z-index:1; width:25%; height:23%; bottom:0; background:#2f4567; border:clamp(1px,.16vw,2px) solid #1c2c46; }.battle-character__leg--left { left:24%; }.battle-character__leg--right { right:24%; }
.battle-character--you { filter:drop-shadow(0 0 8px rgba(142,229,50,.5)) drop-shadow(0 7px 3px rgba(0,0,0,.52)); }.battle-character--enemy { filter:drop-shadow(0 0 8px rgba(255,78,69,.42)) drop-shadow(0 7px 3px rgba(0,0,0,.52)); }
.battle-character--enemy .battle-character__body { border-color:#712722; background-image:linear-gradient(90deg,rgba(255,255,255,.1),transparent 35%),linear-gradient(90deg,#b93631 50%,#d64b40 50%); }.battle-character--enemy .battle-character__arm { background:linear-gradient(180deg,#dca071 0 52%,#b93631 53%); }
.battle-bomb { z-index:4; width:78%; height:76%; left:11%; bottom:10%; transform:rotate(-2deg); border:clamp(1px,.2vw,3px) solid #711e1b; background:linear-gradient(135deg,#ef574a 0 18%,#bc342e 19% 75%,#862521 76%); box-shadow:inset 5px 5px rgba(255,255,255,.1),inset -6px -6px rgba(77,17,16,.25),0 7px 5px rgba(0,0,0,.48); }.battle-bomb::before { content:""; position:absolute; left:6%; right:6%; top:8%; height:12%; background:#e9695b; }.battle-bomb span { padding:5% 0; border-top:1px solid #fff4db; border-bottom:1px solid #b9a485; background:#ead9b9; font-size:clamp(4px,.72vw,10px); }.battle-bomb i::after { font-size:clamp(9px,1.4vw,20px); animation:spark .45s infinite alternate; }
.tile--explosion { z-index:8; background-color:#ff9f26; background-image:radial-gradient(circle,#fff9b4 0 16%,#ffd73e 17% 36%,#ff782d 37% 63%,rgba(224,49,24,.74) 64%); box-shadow:0 0 25px #ff8b2c,inset 0 0 12px white; animation:voxelBlast .58s cubic-bezier(.1,.8,.2,1) both; }.tile--explosion::after { content:"✦"; font-size:clamp(18px,2.8vw,42px); text-shadow:0 0 9px white; }
.mine-scenery { position:absolute; z-index:3; inset:0; pointer-events:none; overflow:hidden; border-radius:22px; }.mine-crystal { position:absolute; width:10px; height:28px; bottom:10px; background:linear-gradient(90deg,#39bfff,#9feaff 42%,#2374c5 43%); clip-path:polygon(50% 0,100% 32%,82% 100%,18% 100%,0 32%); filter:drop-shadow(0 0 8px #36bfff); opacity:.78; }.mine-crystal--one { left:7px; transform:rotate(-14deg); }.mine-crystal--two { right:8px; height:21px; transform:rotate(16deg); }
.mine-torch { position:absolute; top:43%; width:6px; height:27px; background:#6f482a; }.mine-torch::before { content:""; position:absolute; width:16px; height:20px; left:-5px; top:-14px; background:radial-gradient(circle at 50% 70%,#fff5a5 0 12%,#ffbd2f 13% 38%,#f15b24 39% 66%,transparent 67%); filter:drop-shadow(0 0 13px #ff9f2f); animation:torchFlicker .8s infinite alternate; }.mine-torch--left { left:5px; }.mine-torch--right { right:5px; }
@keyframes voxelBlast { 0% { transform:scale(.25) rotate(-12deg); opacity:.2; } 45% { transform:scale(1.18) rotate(5deg); opacity:1; } 100% { transform:scale(.92); opacity:.3; } } @keyframes torchFlicker { to { transform:translateY(-2px) scale(.85,1.12); filter:drop-shadow(0 0 18px #ffc247); } }

@media (max-width:1100px) {
  .lobby { grid-template-columns:280px 1fr; grid-template-areas:"profile hero" "missions hero" "missions loadout" "play play"; }.lobby__missions { align-self:stretch; }.lobby__hero { min-height:440px; }.lobby__play { display:grid; grid-template-columns:1fr 1.2fr; gap:12px; }.mode-selector { margin:0; }.online { grid-column:2; margin:0; }.topbar { width:calc(100% - 28px); }.season-pill { margin-left:auto; margin-right:0; }
}

@media (max-width:760px) {
  :root { --radius:17px; }.app-shell { padding-bottom:72px; }.topbar { height:64px; width:calc(100% - 24px); }.brand__cube { width:31px; height:31px; border-width:2px; }.brand__text { font-size:16px; }.season-pill { display:none; }.currency { padding:0 8px; min-height:36px; }.currency b { font-size:10px; }.currency i { display:none; }.sound-button { display:none; }.topbar__actions { margin-left:auto; } main { width:calc(100% - 24px); }.screen { min-height:calc(100dvh - 136px); }.lobby { display:flex; flex-direction:column; padding:14px 0 20px; }.lobby__hero { order:-1; min-height:330px; }.lobby__profile { order:0; }.lobby__play { order:-1; display:flex; flex-direction:column; position:relative; }.lobby__loadout { order:1; }.lobby__missions { order:2; }.hero-copy { left:18px; top:18px; }.hero-copy h2 { font-size:24px; }.voxel-scene { transform:scale(.83); transform-origin:right bottom; right:-10px; }.skin-button { left:18px; bottom:18px; }.hero-badge { font-size:7px; }.profile-head .pixel-avatar { width:54px; height:54px; }.profile-stats { margin-top:14px; }.mode-selector { margin-bottom:3px; }.play-button { min-height:67px; }.online { margin:4px 0 0; }.loadout-slots { overflow-x:auto; scroll-snap-type:x mandatory; }.loadout-slot { min-width:150px; scroll-snap-align:start; }.mobile-nav { position:fixed; z-index:50; left:0; right:0; bottom:0; height:68px; padding:4px max(10px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); display:grid; grid-template-columns:repeat(4,1fr); background:rgba(10,19,31,.94); border-top:1px solid var(--line); backdrop-filter:blur(18px); }.mobile-nav button { border:0; background:none; color:var(--muted); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:8px; }.mobile-nav button span { font-size:17px; }.mobile-nav__active { color:var(--green)!important; }.matchmaking { padding:55px 0 20px; align-items:start; }.back-button { top:15px; }.matchmaking__content h2 { font-size:25px; }.search-orbit { margin-top:18px; width:110px; height:110px; }.search-bomb { inset:29px; }.duel-cards { grid-template-columns:1fr 36px 1fr; gap:6px; }.fighter-card { min-height:180px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:18px 8px; }.fighter-card .pixel-avatar,.fighter-card .mystery-avatar { margin-bottom:10px; }.fighter-card strong { font-size:13px; align-self:auto; }.fighter-card>span:last-child { font-size:8px; align-self:auto; }.fighter-card__label { top:9px; right:9px; }.versus { font-size:18px; }.versus-layout { grid-template-columns:1fr 70px 1fr; margin:38px 0 30px; }.pixel-avatar--large { transform:scale(.7); margin:-18px; }.versus-player h2 { font-size:15px; }.versus-player p { font-size:8px; }.versus-logo strong { font-size:35px; text-shadow:3px 3px 0 #e8562d; }.versus-logo small { font-size:6px; }.battle-start { min-height:calc(100dvh - 64px); padding:10px 0 20px; align-content:center; }.arena { width:calc(100vw - 12px); padding:4px; gap:1px; border-width:4px; border-radius:8px; aspect-ratio:15/10; }.tile--wall,.tile--crate,.tile--tnt { border-width:1px; }.battle-hud { width:100%; }.hud-player strong { font-size:8px; }.hud-player span { font-size:8px; letter-spacing:1px; }.battle-timer strong { font-size:11px; }.pixel-avatar--tiny { width:34px; height:34px; }.battle-controls { justify-content:space-between; padding:0 8px; margin-top:8px; }.battle-help { display:none; }.mobile-dpad { width:116px; height:88px; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(2,1fr); gap:4px; }.mobile-dpad button,.mobile-bomb { border:1px solid rgba(255,255,255,.13); color:#dce9f2; background:linear-gradient(#24384d,#17283a); box-shadow:0 4px 0 #0b1724; touch-action:manipulation; user-select:none; }.mobile-dpad button { border-radius:9px; font-size:14px; }.mobile-dpad button:nth-child(1) { grid-column:2; }.mobile-dpad button:nth-child(2) { grid-column:1; }.mobile-dpad button:nth-child(3) { grid-column:2; }.mobile-dpad button:nth-child(4) { grid-column:3; }.mobile-dpad button:active,.mobile-bomb:active { transform:translateY(3px); box-shadow:0 1px 0 #0b1724; }.mobile-bomb { width:74px; height:74px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-color:rgba(255,78,69,.38); border-radius:50%; background:linear-gradient(#d54a3f,#942d29); }.mobile-bomb span { padding:2px 6px; color:#3d1714; background:#f0ddbd; font:10px "Russo One"; }.mobile-bomb small { margin-top:5px; font-size:7px; font-weight:800; }.demo-return { margin-top:9px; }.toast { bottom:85px; max-width:calc(100% - 30px); text-align:center; }
}

@media (max-width:390px) { .currency:nth-child(2) { display:none; }.lobby__hero { min-height:300px; }.voxel-scene { transform:scale(.73); right:-20px; }.hero-copy p { max-width:130px; }.mode-tab { padding:8px 6px; gap:5px; }.mode-tab>span { font-size:16px; }.play-button { padding:0 12px; gap:9px; }.play-button b { font-size:14px; }.fighter-card .pixel-avatar,.mystery-avatar { transform:scale(.85); margin-bottom:4px; } }
@media (max-width:520px) { .guest-modal { padding:12px; align-items:end; }.guest-dialog { padding:26px 20px calc(22px + env(safe-area-inset-bottom)); border-radius:22px 22px 16px 16px; }.guest-dialog__avatar { width:66px; height:66px; margin-bottom:13px; transform:scale(.86); }.guest-dialog h2 { font-size:24px; }.guest-dialog>p { font-size:11px; }.guest-form { margin-top:19px; }.guest-submit { min-height:63px; } }
@media (max-width:760px) { .battle-stage { width:calc(100vw - 6px); padding:9px; border-radius:12px; }.battle-stage::before { inset:3px; border-width:4px; }.battle-stage .arena { padding:3px; gap:2px; border-width:4px; border-radius:6px; transform:perspective(850px) rotateX(4deg); }.mine-scenery { border-radius:12px; }.mine-torch { display:none; }.battle-character { width:90%; height:108%; left:5%; }.battle-character__head { border-width:1px; }.battle-character__body,.battle-character__arm,.battle-character__leg { border-width:1px; } }
@media (max-width:760px) { .battle-engine-host { min-height:430px; height:calc(100dvh - 105px); border-width:4px; } .battle-engine-host#game-container { height:calc(100dvh - 105px); min-height:430px; } .battle-hud { display:none; } }
.screen:not(.screen--active) { display:none!important; }

/* Battle screen: no header, no boxed frame -- the arena fills the viewport. */
body.battle-fullscreen .topbar,
body.battle-fullscreen .mobile-nav { display:none!important; }
body.battle-fullscreen .app-shell { padding-bottom:0; }
body.battle-fullscreen main { width:100%; margin:0; }
body.battle-fullscreen .screen.battle-start {
  position:fixed; inset:0; z-index:40; display:flex; flex-direction:column;
  width:100%; height:100dvh; min-height:100dvh; padding:0; margin:0; background:#060a12;
}
body.battle-fullscreen .battle-hud,
body.battle-fullscreen .demo-return,
body.battle-fullscreen .mine-scenery { display:none!important; }
body.battle-fullscreen .battle-stage { flex:1 1 auto; min-height:0; width:100%; max-width:none; padding:0; border:0; border-radius:0; box-shadow:none; background:none; }
body.battle-fullscreen .battle-stage::before,
body.battle-fullscreen .battle-stage::after { display:none; }
body.battle-fullscreen .battle-engine-host { width:100%; height:100%; border:0; border-radius:0; box-shadow:none; }
/* In fullscreen battle the top bar and mobile nav are hidden, so the mobile
   height reservation calc(100dvh - 105px) just leaves a black lip at the
   bottom: out-specify it and let the arena fill the whole viewport. */
@media (max-width:760px) {
  body.battle-fullscreen .battle-engine-host#game-container { height:100%; min-height:0; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; } }

/* ==========================================================================
   MINEBOMBER -- pixel-art lobby theme, one language with the arena.
   Layout rules above stay untouched; this layer swaps the glossy blue skin
   for the game's own look: dirt and stone slabs, hard 2px bevels, chunky
   drop-edges and Press Start 2P headings. Real block textures are baked by
   engine/lobby-theme.js into --tex-* variables; every use has a flat
   colour fallback, so the lobby still reads right if the bake fails.
   ========================================================================== */
:root {
  --radius: 6px;
  --bg: #120d07;
  --line: rgba(255,255,255,.07);
  --text: #f5efe4;
  --muted: #ab9d88;
  --green: #8ee532;
  --green-dark: #4e8f28;
  --orange: #ffb52e;
  --red: #ff5030;
  --ink: #17110a;
  --gold: #ffd83d;
  --parchment: #ead9b9;
  --pixel-font: 'Press Start 2P', 'Russo One', monospace;
  --shadow: 0 6px 0 #0a0704, 0 18px 40px rgba(0,0,0,.5);
}

[hidden] { display:none !important; }

/* Cave backdrop: the game's own dirt texture, darkened at bake time. */
body {
  background-color:#120d07;
  background-image:var(--tex-dirt-dim,none);
  background-size:128px 128px;
  image-rendering:pixelated;
}
.app-shell {
  background:
    radial-gradient(circle at 50% -10%, rgba(255,181,46,.08), transparent 45%),
    linear-gradient(180deg, rgba(18,13,7,.2), rgba(8,5,3,.55));
}
.app-shell::before { display:none; }
.ambient { opacity:.07; }
.ambient--one { background:#78aa46; }
.ambient--two { background:#ff9e1b; }

/* Topbar: an oak-plank beam, like the rim of a crafting table. */
.topbar {
  margin-top:12px; padding:0 18px; border-radius:4px;
  border:3px solid #2a1a0c;
  background-color:#8a6544;
  background-image:
    linear-gradient(115deg, rgba(255,236,190,.12), rgba(255,236,190,.03) 35%, transparent 60%),
    var(--tex-planks-dim,none);
  background-size:auto, 96px 96px;
  box-shadow:
    inset 0 3px 0 rgba(255,236,190,.22),
    inset 0 -5px 0 rgba(40,22,8,.5),
    0 6px 0 #170e05,
    0 16px 32px rgba(0,0,0,.5);
  image-rendering:pixelated;
}

/* Logo: a grass block with a creeper face, cut from the game's own dirt. */
.brand__cube {
  width:44px; height:44px; border-radius:2px; transform:rotate(-3deg);
  border:3px solid #16200b;
  background-color:#5a8a2c;
  background-image:var(--tex-grass-side,none);
  background-size:cover;
  image-rendering:pixelated;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.2), inset -2px -3px 0 rgba(0,0,0,.3), 0 3px 0 rgba(0,0,0,.45);
}
.brand__cube::before,.brand__cube::after,.brand__cube i { background:#101c08; }
.brand__cube::before,.brand__cube::after { width:8px; height:8px; top:15px; }
.brand__cube::before { left:6px; }
.brand__cube::after { right:6px; }
.brand__cube i { left:15px; bottom:5px; width:8px; height:10px; box-shadow:-4px 4px 0 0 #101c08, 4px 4px 0 0 #101c08; }
.brand__text { font-family:var(--pixel-font); font-size:15px; letter-spacing:0; text-shadow:3px 3px 0 #000; }
.brand__text span { color:#a8f04a; }

/* Topbar chips: dark leather slots sunk into the wood. */
.season-pill, .currency, .sound-button {
  border:2px solid #1a0f06; border-radius:3px;
  background:linear-gradient(#4a3722,#31220f);
  box-shadow:inset 0 2px 0 rgba(255,236,190,.14), inset 0 -2px 0 rgba(0,0,0,.35);
}
.season-pill small { color:#d8c6a4; }
.season-pill b { color:var(--gold); }
.currency i { border-radius:2px; }
.icon-button {
  border:2px solid #100a05; border-radius:3px;
  background:linear-gradient(#7d8187,#565a60);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.3);
}

/* Panels: dirt blocks under a light veil, bevelled like carved slabs. */
.card {
  border:3px solid #1a1208;
  background-color:#2e2013;
  background-image:
    linear-gradient(160deg, rgba(255,236,190,.06), transparent 45%),
    linear-gradient(rgba(24,15,7,.72), rgba(18,12,5,.78)),
    var(--tex-dirt,none);
  background-size:auto, auto, 128px 128px;
  box-shadow:
    inset 3px 3px 0 rgba(255,236,190,.1),
    inset -3px -3px 0 rgba(0,0,0,.45),
    0 6px 0 #120b04,
    0 18px 40px rgba(0,0,0,.5);
  image-rendering:pixelated;
}

/* Pixel typography: headings speak the HUD's language. */
.eyebrow { font-family:var(--pixel-font); font-size:7px; letter-spacing:1px; color:#a8f04a; text-shadow:1px 1px 0 #000; }
.profile-head h1 { font-family:var(--pixel-font); font-size:13px; text-shadow:2px 2px 0 #000; }
.hero-copy h2 { font-family:var(--pixel-font); font-size:19px; line-height:1.4; text-shadow:3px 3px 0 #000; }
.section-title h2 { font-family:var(--pixel-font); font-size:12px; text-shadow:2px 2px 0 #000; }
.matchmaking__content h2 { font-family:var(--pixel-font); font-size:20px; text-shadow:3px 3px 0 #000; }
.versus-player h2 { font-family:var(--pixel-font); font-size:14px; text-shadow:2px 2px 0 #000; }
.guest-dialog h2 { font-family:var(--pixel-font); font-size:16px; text-shadow:2px 2px 0 #000; }

/* Progress -> the arena HP bar: dark leather, hard border, lit fill. */
.progress { height:10px; border-radius:0; background:#2b211a; border:2px solid var(--ink); box-shadow:inset 1px 1px 0 rgba(0,0,0,.5); }
.progress i { border-radius:0; background:#5fbf3a; box-shadow:inset 0 2px 0 rgba(255,255,255,.3); }
.mission .progress { height:8px; }
.xp-block>div:first-child { color:#c9b998; }

/* League plaque: oak planks under a light bronze veil, like a trophy board. */
.league-block {
  border-radius:3px; border:2px solid #2e1f10;
  background-color:#6b4d2e;
  background-image:linear-gradient(rgba(36,22,10,.42),rgba(36,22,10,.5)), var(--tex-planks,none);
  background-size:auto, 96px 96px;
  box-shadow:inset 0 2px 0 rgba(255,236,190,.16), inset 0 -3px 0 rgba(0,0,0,.35);
  image-rendering:pixelated;
}
.league-copy small { color:#d8b878; }
.rating-value { font-family:var(--pixel-font); font-size:13px; color:var(--gold); text-shadow:2px 2px 0 #000; }

/* Inventory slots: sunken cells with a hard inner shadow and warm rim. */
.profile-stats div, .loadout-slot, .mode-tab, .mission__icon, .mystery-avatar, .queue-hero-chip {
  border-radius:3px;
  background:#241a0e;
  border:2px solid #100a05;
  box-shadow:inset 2px 2px 0 rgba(0,0,0,.5), inset -2px -2px 0 rgba(255,236,190,.08);
}
.mission__icon--orange { color:#ffbb55; background:#33210d; }
.mission__icon--blue { color:#63c5ff; background:#13222e; }
.mystery-avatar { border-style:dashed; border-color:#3a2c1a; }
.mode-tab--active {
  border-color:#6da53c; background:#1b2610;
  box-shadow:inset 2px 2px 0 rgba(0,0,0,.4), inset -2px -2px 0 rgba(155,233,87,.08), 0 0 0 1px rgba(155,233,87,.25);
}
.item-icon { border-radius:2px; border:2px solid rgba(0,0,0,.5); box-shadow:inset 0 2px 0 rgba(255,255,255,.2), inset 0 -3px 0 rgba(0,0,0,.3); }
.item-icon--tnt { color:transparent; background-color:#bd3d33; background-image:var(--tex-tnt-front,none); background-size:cover; image-rendering:pixelated; }

/* Daily chest: a gold-trim reward strip with a hard-drop claim button. */
.daily-chest {
  border-radius:3px; border:2px solid #3a2a10;
  background:linear-gradient(120deg, rgba(255,181,46,.16), rgba(122,79,17,.12));
  box-shadow:inset 0 2px 0 rgba(255,255,255,.06);
}
.daily-chest button {
  border-radius:3px; border:2px solid var(--ink);
  background:linear-gradient(#ffc94d,#e09a20); color:#3a2604;
  box-shadow:0 3px 0 #6b4b0a;
  font-family:var(--pixel-font); font-size:8px;
}
.daily-chest button:active { transform:translateY(2px); box-shadow:0 1px 0 #6b4b0a; }

/* Standard stone buttons, straight out of a Minecraft menu. */
.skin-button, .cancel-button, .demo-return, .hero-picker__panel header button {
  border-radius:3px; border:2px solid var(--ink);
  background:linear-gradient(#7d8187,#54585e);
  color:#fff; text-shadow:1px 1px 0 rgba(0,0,0,.6);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.32), 0 3px 0 #0a0705;
}
.skin-button:hover, .cancel-button:hover, .demo-return:hover, .hero-picker__panel header button:hover { filter:brightness(1.15); }
.skin-button:active, .cancel-button:active, .demo-return:active { transform:translateY(2px); box-shadow:inset 0 2px 0 rgba(255,255,255,.22), 0 1px 0 #0a0705; }
.skin-button span { color:#9be957; }
.battle-help kbd { background:#3c3f44; border:2px solid #17181b; border-bottom:3px solid #0c0d10; border-radius:2px; }

/* The play button is a TNT block: red body, light rim, heavy drop edge. */
.play-button {
  border:3px solid var(--ink); border-radius:4px;
  color:#fff; text-shadow:2px 2px 0 rgba(0,0,0,.5);
  background-color:#c62828;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 22px, transparent 22px 44px),
    linear-gradient(#d8382e,#a32320);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.25),
    inset 0 -5px 0 rgba(0,0,0,.35),
    0 6px 0 #4c0f0d,
    0 16px 30px rgba(0,0,0,.45);
}
.play-button::after { display:none; }
.play-button b { font-family:var(--pixel-font); font-size:14px; letter-spacing:0; }
.play-button small { color:#ffd9b0; opacity:1; font-size:8px; margin-top:3px; }
.play-button i { background:rgba(0,0,0,.35); color:var(--gold); border-radius:2px; font-family:var(--pixel-font); font-size:9px; }
.play-button__icon { background:rgba(0,0,0,.32); border-radius:2px; color:var(--gold); }
.play-button:hover { transform:translateY(-2px); filter:brightness(1.08); box-shadow:inset 0 3px 0 rgba(255,255,255,.25), inset 0 -5px 0 rgba(0,0,0,.35), 0 8px 0 #4c0f0d, 0 18px 32px rgba(0,0,0,.5); }
.play-button:active { transform:translateY(3px); box-shadow:inset 0 3px 0 rgba(255,255,255,.25), 0 2px 0 #4c0f0d; }
.play-button:disabled { filter:grayscale(.75); opacity:.62; cursor:not-allowed; transform:none; }

/* Hero showcase: keep the spotlight, ground the skyline into mine walls. */
.lobby__hero {
  overflow:hidden;
  background-color:#1d1309;
  background-image:
    radial-gradient(circle at 72% 40%, rgba(123,213,49,.18), transparent 32%),
    linear-gradient(rgba(20,13,6,.78), rgba(16,10,5,.86)),
    var(--tex-dirt,none);
  background-size:auto, auto, 128px 128px;
}
.lobby__hero::before { display:none; }
.lobby__hero::after {
  content:""; position:absolute; inset:auto 0 0; height:74px; opacity:.5;
  background-color:#2e2e2e;
  background-image:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)), var(--tex-stone,none);
  background-size:auto, 128px 128px;
  image-rendering:pixelated;
  clip-path:polygon(0 32%,8% 32%,8% 0,16% 0,16% 32%,27% 32%,27% 12%,39% 12%,39% 32%,52% 32%,52% 4%,63% 4%,63% 32%,75% 32%,75% 16%,87% 16%,87% 32%,100% 32%,100% 100%,0 100%);
}
.hero-copy,.skin-button,.hero-badge,.voxel-scene { z-index:3; }
.hero-badge { border-radius:2px; border:2px solid rgba(162,139,255,.3); font-family:var(--pixel-font); font-size:7px; }
.tnt-block { border-radius:0; }
.brand__cube,.item-icon--tnt,.tnt-block,.search-bomb { image-rendering:pixelated; filter:drop-shadow(0 4px 0 rgba(0,0,0,.4)); }

/* Matchmaking: fighter slabs and a gold VS. */
.fighter-card {
  border-radius:4px; border:3px solid #1a1208;
  background-color:#2e2013;
  background-image:linear-gradient(rgba(24,15,7,.76),rgba(18,12,5,.8)), var(--tex-dirt,none);
  background-size:auto, 128px 128px;
  box-shadow:inset 2px 2px 0 rgba(255,236,190,.09), inset -3px -3px 0 rgba(0,0,0,.4), 0 5px 0 #120b04;
  image-rendering:pixelated;
}
.fighter-card--you { border-color:#3f6b23; }
.fighter-card--revealed { border-color:#8b2823; }
.versus { font-style:normal; color:var(--gold); text-shadow:3px 3px 0 #000; }
.search-status strong { font-family:var(--pixel-font); font-size:11px; }
.back-button { color:#c9b998; }

/* Versus screen: hard-shadowed arcade lockup. */
.versus-logo strong { font-style:normal; text-shadow:4px 4px 0 #7f1d1d, 8px 8px 0 #000; }
.versus-logo i { background:linear-gradient(90deg,transparent,var(--gold),transparent); }

/* Toast: a parchment strip. */
.toast { border-radius:3px; background:var(--parchment); color:#3d2c16; border:2px solid var(--ink); box-shadow:0 4px 0 rgba(0,0,0,.5); }

/* Guest dialog: carved slab, green TNT-plunger submit. */
.guest-dialog {
  border-radius:6px; border:3px solid #1a1208;
  background-color:#2e2013;
  background-image:linear-gradient(rgba(22,14,7,.82),rgba(18,12,5,.86)), var(--tex-dirt,none);
  background-size:auto, 128px 128px;
  box-shadow:inset 3px 3px 0 rgba(255,236,190,.09), inset -3px -3px 0 rgba(0,0,0,.4), 0 8px 0 #120b04, 0 32px 90px rgba(0,0,0,.62);
  image-rendering:pixelated;
}
.guest-dialog::before { display:none; }
.guest-dialog__glow { background:#ffb52e; opacity:.12; }
.guest-form label { color:#c9b998; font-family:var(--pixel-font); font-size:7px; }
.guest-input-wrap { border-radius:3px; border:2px solid var(--ink); background:#171007; box-shadow:inset 2px 2px 0 rgba(0,0,0,.5); }
.guest-input-wrap:focus-within { border-color:#6da53c; box-shadow:inset 2px 2px 0 rgba(0,0,0,.5), 0 0 0 2px rgba(155,233,87,.15); }
.guest-submit {
  border-radius:4px; border:3px solid var(--ink); color:#10200b;
  background:linear-gradient(#9ade4d,#5fa92c);
  box-shadow:inset 0 3px 0 rgba(255,255,255,.35), inset 0 -5px 0 rgba(0,0,0,.25), 0 6px 0 #2c4f16;
}
.guest-submit b { font-family:var(--pixel-font); font-size:12px; }
.guest-submit:hover { transform:translateY(-2px); filter:brightness(1.05); }
.guest-submit:active { transform:translateY(2px); box-shadow:inset 0 3px 0 rgba(255,255,255,.35), 0 2px 0 #2c4f16; }
.guest-dialog__note span { color:#9be957; }

/* Hero picker: same slab family as the cards. */
.hero-picker { position:fixed; z-index:120; inset:0; display:grid; place-items:center; padding:20px; }
.hero-picker__backdrop { position:absolute; inset:0; background:rgba(6,4,2,.86); backdrop-filter:blur(6px); }
.hero-picker__panel {
  position:relative; width:min(980px,100%); max-height:min(780px,92dvh); overflow:auto;
  border:3px solid #1a1208; border-radius:6px;
  padding:24px; color:#f5efe4;
  background-color:#2e2013;
  background-image:linear-gradient(rgba(22,14,7,.8),rgba(18,12,5,.84)), var(--tex-dirt,none);
  background-size:auto, 128px 128px;
  box-shadow:inset 3px 3px 0 rgba(255,236,190,.09), inset -3px -3px 0 rgba(0,0,0,.4), 0 8px 0 #120b04, 0 30px 80px rgba(0,0,0,.65);
  image-rendering:pixelated;
}
.hero-picker__panel>header {
  display:flex; justify-content:space-between; gap:20px; align-items:start;
  padding-bottom:18px; border-bottom:2px solid #3a2c1a;
}
.hero-picker__panel h2 { margin:5px 0; font-family:var(--pixel-font); font-size:16px; text-transform:uppercase; text-shadow:2px 2px 0 #000; }
.hero-picker__panel header p { margin:0; color:#ab9d88; }
.hero-picker__panel header button { width:43px; height:43px; font-size:22px; cursor:pointer; }
.hero-picker__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:20px 0; }
.hero-choice {
  min-height:158px; position:relative; text-align:left; padding:14px;
  border:2px solid #100a05; border-radius:3px; color:#f5efe4; cursor:pointer;
  background:#241a0e; overflow:hidden;
  box-shadow:inset 2px 2px 0 rgba(0,0,0,.5), inset -2px -2px 0 rgba(255,255,255,.04);
  transition:transform .15s, border-color .15s, filter .15s;
}
.hero-choice:hover { transform:translateY(-2px); border-color:#6da53c; }
.hero-choice--selected { border-color:#9be957; box-shadow:0 0 0 2px rgba(155,233,87,.2), inset 2px 2px 0 rgba(0,0,0,.5); }
.hero-choice--locked { filter:grayscale(1); opacity:.48; cursor:not-allowed; }
.hero-choice__portrait {
  position:absolute; right:11px; bottom:8px; width:82px; height:105px;
  filter:drop-shadow(0 9px 0 rgba(0,0,0,.3)); image-rendering:pixelated;
}
.hero-choice strong,.hero-choice small,.hero-choice span { display:block; position:relative; z-index:2; max-width:60%; }
.hero-choice strong { font-family:var(--pixel-font); font-size:11px; text-transform:uppercase; text-shadow:2px 2px 0 #000; }
.hero-choice small { margin:7px 0; color:#ab9d88; font-size:10px; line-height:1.35; }
.hero-choice span { color:#9be957; font-size:8px; font-weight:900; letter-spacing:.08em; }
.hero-choice--locked span { color:#ffbd48; }
.hero-picker__panel>footer { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:15px; border-top:2px solid #3a2c1a; color:#ab9d88; font-size:12px; }
#confirmHeroButton {
  min-height:48px; padding:0 24px; border:2px solid var(--ink); border-radius:3px;
  background:linear-gradient(#8ed844,#5fa92c); color:#10200b;
  font-family:var(--pixel-font); font-size:10px; cursor:pointer;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 0 #2c4f16;
}
#confirmHeroButton:active { transform:translateY(2px); box-shadow:inset 0 2px 0 rgba(255,255,255,.35), 0 2px 0 #2c4f16; }
#confirmHeroButton:disabled { filter:grayscale(1); opacity:.45; cursor:not-allowed; transform:none; }

.queue-hero-chip { display:inline-flex; align-items:center; gap:7px; margin-top:8px; padding:6px 10px; color:#a9e96e; font-size:9px; font-weight:900; }

/* Mobile: plank-beam nav, tightened pixel headings. */
.mobile-nav {
  background-color:rgba(58,42,22,.97);
  background-image:var(--tex-planks-dim,none);
  background-size:96px 96px;
  border-top:3px solid #2a1a0c;
  image-rendering:pixelated;
}
@media (max-width:760px) {
  .brand__text { font-size:11px; }
  .topbar { margin-top:8px; }
  .hero-copy h2 { font-size:15px; }
  .matchmaking__content h2 { font-size:15px; }
  .play-button b { font-size:12px; }
  .versus-player h2 { font-size:11px; }
  .guest-dialog h2 { font-size:14px; }
}
@media (max-width:720px) {
  .hero-picker { padding:8px; }
  .hero-picker__panel { padding:16px; max-height:96dvh; }
  .hero-picker__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .hero-choice { min-height:142px; padding:11px; }
  .hero-choice__portrait { transform:scale(.82); transform-origin:right bottom; }
  .hero-picker__panel>footer { align-items:stretch; flex-direction:column; }
  #confirmHeroButton { width:100%; }
}

/* Loadout: icon-only slots; names and descriptions live in the gear popup. */
.loadout-slot { grid-template-columns:none; grid-template-rows:none; place-items:center; padding:12px 8px; }
.loadout-slot small, .loadout-slot strong { display:none; }
.loadout-slot .item-icon { grid-row:auto; width:46px; height:46px; font-size:11px; }
.loadout-slot .item-icon--boost { font-size:22px; }
.loadout-slot:hover { border-color:#6da53c; }

/* Gear popup: three categories of inventory cells. */
.gear-group { padding:14px 0 4px; }
.gear-group h3 { margin:0 0 10px; font-family:var(--pixel-font); font-size:10px; color:#e8dcc4; text-shadow:2px 2px 0 #000; letter-spacing:1px; text-transform:uppercase; }
.gear-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.gear-item {
  position:relative; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto auto;
  gap:2px 10px; text-align:left; padding:10px; border:2px solid #100a05; border-radius:3px;
  background:#241a0e; color:#f5efe4; cursor:pointer;
  box-shadow:inset 2px 2px 0 rgba(0,0,0,.5), inset -2px -2px 0 rgba(255,236,190,.07);
  transition:transform .12s, border-color .12s;
}
.gear-item .item-icon { grid-row:1/4; width:40px; height:40px; font-size:10px; }
.gear-item strong { font-size:11px; }
.gear-item small { color:var(--muted); font-size:9px; line-height:1.3; }
.gear-item .gear-state { font-family:var(--pixel-font); font-size:6px; color:#a8f04a; margin-top:3px; }
.gear-item:hover:not(:disabled) { transform:translateY(-2px); border-color:#6da53c; }
.gear-item--selected { border-color:#9be957; box-shadow:0 0 0 2px rgba(155,233,87,.18), inset 2px 2px 0 rgba(0,0,0,.5); }
.gear-item--locked { filter:grayscale(1); opacity:.5; cursor:not-allowed; }
.gear-item--locked .gear-state { color:#ffbd48; }
#loadoutDoneButton {
  min-height:48px; padding:0 24px; border:2px solid var(--ink); border-radius:3px;
  background:linear-gradient(#8ed844,#5fa92c); color:#10200b;
  font-family:var(--pixel-font); font-size:10px; cursor:pointer;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 0 #2c4f16;
}
#loadoutDoneButton:active { transform:translateY(2px); box-shadow:inset 0 2px 0 rgba(255,255,255,.35), 0 2px 0 #2c4f16; }

/* Gear icon palette. */
.item-icon--tnt-power { background:#e05a2b; color:#ffe1b0; font-size:18px; }
.item-icon--tnt-chain { background:#8c3a5e; color:#ffd2e0; font-size:15px; }
.item-icon--tnt-heavy { background:#5e1f1c; color:#ff9d8a; font-size:15px; }
.item-icon--dash { background:#2f7d46; color:#c8ffb0; font-size:18px; }
.item-icon--kick { background:#b06414; color:#ffe9b0; font-size:18px; }
.item-icon--ghost { background:#4a5a74; color:#dfe9ff; font-size:18px; }
.item-icon--boots { background:#54672a; color:#e2ffb0; font-size:20px; }
.item-icon--heart { background:#a12744; color:#ffc3d0; font-size:16px; }
.item-icon--magnet { background:#1f5f8a; color:#bfe9ff; font-size:16px; }

@media (max-width:760px) {
  .loadout-slot { min-width:0; }
  .gear-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
}

/* Quest states and the third quest icon. */
.mission__icon--green { color:#9be957; background:#1c2a10; }
.mission--done .mission__icon { color:#9be957; background:#1c2a10; }
.mission--done strong { color:#9be957; }
.mission--done .progress i { background:#9be957; }
.streak-flame { color:#ffb52e; }

/* Post-battle reward slab. */
.reward-pop {
  position:fixed; inset:0; z-index:130; display:grid; place-items:center;
  background:rgba(6,4,2,.72); animation:screenIn .25s ease both;
}
.reward-pop__panel {
  display:flex; flex-direction:column; gap:9px; align-items:center;
  width:min(420px, calc(100% - 32px)); padding:26px 28px 22px; text-align:center;
  border:3px solid #1a1208; border-radius:6px;
  background-color:#2e2013;
  background-image:linear-gradient(rgba(22,14,7,.8),rgba(18,12,5,.85)), var(--tex-dirt,none);
  background-size:auto, 128px 128px;
  box-shadow:inset 3px 3px 0 rgba(255,236,190,.09), inset -3px -3px 0 rgba(0,0,0,.4), 0 8px 0 #120b04, 0 32px 90px rgba(0,0,0,.6);
  image-rendering:pixelated;
  animation:rewardDrop .4s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes rewardDrop { from { transform:translateY(-40px) scale(.85); opacity:0; } }
.reward-pop__title { font-family:var(--pixel-font); font-size:20px; color:#ff8a76; text-shadow:3px 3px 0 #000; margin-bottom:6px; }
.reward-pop__title--win { color:#a8f04a; }
.reward-line { font-size:13px; font-weight:700; color:#f5efe4; }
.reward-line em { font-style:normal; color:#ffd83d; font-size:11px; }
.reward-line--xp { color:#9be957; }
.reward-line--coins { color:#ffd83d; }
.reward-line--up { color:#ffb52e; }
.reward-line--down { color:#c9b998; }
.reward-line--streak { color:#ffb52e; }
.reward-line--quest { color:#9be957; font-size:11px; }
.reward-line--level { font-family:var(--pixel-font); font-size:11px; color:#ffd83d; text-shadow:2px 2px 0 #000; margin-top:4px; }
.reward-pop__close {
  margin-top:12px; min-height:46px; padding:0 26px;
  border:2px solid var(--ink); border-radius:3px;
  background:linear-gradient(#8ed844,#5fa92c); color:#10200b;
  font-family:var(--pixel-font); font-size:10px; cursor:pointer;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 0 #2c4f16;
}
.reward-pop__close:active { transform:translateY(2px); box-shadow:inset 0 2px 0 rgba(255,255,255,.35), 0 2px 0 #2c4f16; }
