:root{color-scheme:dark;--page:#101219;--panel:#171a23;--line:#2b2f3c;--text:#f3f4f7;--muted:#a6adbe;--lime:#d8fa76;--purple:#bfa4ff;font-family:system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 40% -30%,#252036 0,transparent 62%),var(--page);color:var(--text)}
button{font:inherit;cursor:pointer}
button:focus-visible{outline:3px solid white;outline-offset:4px}
[hidden]{display:none!important}
.shell{width:min(100%,1536px);margin-inline:auto;padding:0 clamp(18px,4vw,62px) 30px}
.top{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:25px}
.identity,.top-actions,.location,.intel-title,.key-group,.keys{display:flex;align-items:center}
.identity{gap:12px}
.identity b,.identity span{display:block}
.identity b{font-size:23px;font-weight:950;line-height:1.08;letter-spacing:.015em}
.identity span,.record span,.location,.mode,.eyebrow,.hud span{font-size:.75rem;font-weight:800;letter-spacing:.115em}
.identity span,.record span,.mode,.hud span{color:var(--muted)}
.mark{display:grid;place-items:center;width:43px;height:43px;background:var(--lime);color:#161b12;border-radius:12px 5px 12px 5px;font-size:27px;font-style:italic;font-weight:950}
.top-actions{gap:9px}
.record{margin-right:12px;text-align:right;line-height:1.12}
.record span,.record b{display:block}
.record b,.hud b{font-variant-numeric:tabular-nums}
.record b{font-size:1.1rem;color:var(--lime);margin-top:4px}
.icon-button{width:42px;height:42px;border:1px solid #3c4050;border-radius:9px;background:#1e212c;color:white;font-size:22px;line-height:1}
.icon-button:hover:not(:disabled){background:#373348}
.icon-button:disabled{opacity:.55;cursor:default}
.icon-button[aria-pressed=true]{color:var(--lime);border-color:#778b45}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:18px;align-items:start}
.play,.intel{background:var(--panel);border-radius:14px;border:1px solid var(--line);overflow:hidden;min-width:0}
.arena-head{min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 17px}
.location{gap:9px;color:#eeeaf6}.location i,.eyebrow i{height:7px;width:7px;background:var(--lime);border-radius:50%;box-shadow:0 0 10px #d8fa7680;display:inline-block;flex:none}
.stage{aspect-ratio:5/3;position:relative;isolation:isolate;overflow:hidden;background:#242539 url(assets/yard.webp) center/100% 100%;touch-action:none}
canvas,.intro,.dialog,.touch{position:absolute;inset:0;width:100%;height:100%}
canvas{display:block}.stage[data-state=running] canvas{cursor:crosshair}
.intro{display:grid;align-items:center;background:linear-gradient(90deg,#10101bea 0%,#141321d9 29%,#1a152889 54%,#1a102726 82%),linear-gradient(0deg,#120f20b5,transparent 34%);z-index:2}
.hero-copy{position:relative;z-index:1;padding-left:6.5%;width:65%;padding-bottom:2%}
.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--lime);border:1px solid #d8fa7652;background:#171e16aa;border-radius:4px;padding:7px 10px}
h1{font-size:clamp(31px,6.55vw,103px);font-weight:1000;letter-spacing:-.075em;line-height:.9;margin:.17em 0 .24em;text-shadow:0 4px 25px #0a0714a0}
h1 em{color:var(--lime);font-style:normal}
.hero-copy p{font-size:clamp(.9rem,1.3vw,1.18rem);line-height:1.5;max-width:330px;margin:0 0 22px;color:#e0ddeb}
.hero-art{position:absolute;bottom:-4%;right:0;width:54%;height:98%;display:flex;align-items:end;justify-content:center;pointer-events:none}
.hero-art::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse,#8450ea59,transparent 66%)}
.hero-art img{position:relative;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 14px 16px #080714ba)}
.primary{min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 19px;border:0;border-radius:7px;background:var(--lime);color:#181d11;font-weight:900;box-shadow:0 4px 0 #7d9342}
.primary:hover{background:#e7ffaa}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #7d9342}.primary span{font-size:.82em}
.control-strip{min-height:55px;display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;padding:9px 16px;color:#c2c7d4;font-size:.87rem}
.key-group{gap:8px}.keys{gap:3px}
kbd{font:750 .75rem system-ui,sans-serif;color:#eff0f6;background:#252936;border:1px solid #414758;min-width:23px;text-align:center;border-radius:4px;padding:3px 5px;white-space:nowrap}
.intel{padding:15px 15px 13px}
.intel-title{gap:9px;margin:1px 0 13px}.intel-title span{color:var(--lime);font-size:20px;line-height:1}
.intel-title h2{font-size:1rem;margin:0}
.roster{padding:0;margin:0;list-style:none;display:grid;gap:7px}
.roster li{display:flex;align-items:center;gap:9px;padding:5px;background:#20232f;border:1px solid #333747;border-radius:8px;min-width:0}
.portrait{width:48px;height:49px;flex:none;display:grid;place-items:center;border-radius:5px;background:radial-gradient(ellipse,color-mix(in srgb,var(--accent) 34%,#242232),#252435 76%)}
.portrait img{width:45px;height:45px;object-fit:contain}
.roster b,.roster small{display:block}.roster b{font-size:.87rem;line-height:1.15;color:var(--accent)}
.roster small{font-size:.79rem;color:#c1c4d1;line-height:1.15;margin-top:5px}
.tip{display:flex;align-items:start;gap:8px;margin-top:13px;padding:10px 9px;background:#1d2624;border:1px solid #37443e;border-radius:7px;color:#dae4db}
.tip span{color:#b7f894;font-weight:900}.tip p{font-size:.81rem;line-height:1.33;margin:0}
.hud{position:absolute;z-index:1;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:start;gap:5px;pointer-events:none}
.hud>div{padding:7px 10px;border-radius:7px;background:#101219e8;border:1px solid #6b627e88;text-align:center;min-width:68px}
.hud b{display:block;color:white;font-size:1.35rem;line-height:1.05}.hud .health{text-align:left;min-width:105px}.hud .health b{display:inline;font-size:.8rem;margin-left:4px}.hud .wave b{color:var(--lime)}.hud .points{text-align:right}
.meter{width:100%;height:5px;background:#553346;border-radius:3px;margin-top:6px;overflow:hidden}.meter i{display:block;width:100%;height:100%;background:var(--lime);transition:width 140ms}
.notice{position:absolute;z-index:1;pointer-events:none;top:26%;width:100%;text-align:center;color:var(--lime);font-size:clamp(17px,3.3vw,43px);font-weight:1000;text-shadow:0 2px 12px #090716,0 0 15px #090716}
.dialog{display:grid;place-items:center;z-index:3;background:#10101bd6;text-align:center}
.dialog-card{padding:20px;max-width:95%}.dialog h2{font-size:clamp(25px,4vw,56px);margin:0 0 6px;font-weight:950}.dialog p{margin:0 0 16px;color:#ddd9e8}
.mobile,.touch{display:none}
@media(max-width:950px){.layout{grid-template-columns:minmax(0,1fr) 198px;gap:12px}.intel{padding:11px}.hero-copy p{margin-bottom:14px}.portrait{width:40px;height:43px}.portrait img{width:38px;height:41px}}
@media(max-width:700px){.top{height:65px;margin-bottom:13px}.layout{grid-template-columns:1fr}.intel{padding:12px}.roster{grid-template-columns:repeat(2,minmax(0,1fr))}.stage{aspect-ratio:5/3}.hero-copy{padding-left:5.5%;width:69%}.hero-copy h1{font-size:clamp(28px,8.5vw,57px)}.hero-copy p{font-size:clamp(.73rem,2.6vw,.95rem);max-width:78%}.hero-art{right:-4%;width:57%}.eyebrow{font-size:.64rem;padding:5px 7px}.primary{min-height:35px;padding-inline:12px;font-size:.83rem}.record{margin-right:3px}.icon-button{width:36px;height:36px}.hud{top:6px;left:6px;right:6px}.hud>div{padding:4px 6px}.hud span{font-size:.61rem}.hud b{font-size:1rem}}
@media(pointer:coarse){.mobile{display:flex}.desktop{display:none}.touch{display:block;pointer-events:none;z-index:2}.stick,.touch-fire{position:absolute;bottom:8%;width:clamp(42px,11vw,84px);aspect-ratio:1;border-radius:50%;background:#131722a8;color:white;border:1px solid #dddef0a0;pointer-events:auto;touch-action:none;display:grid;place-items:center}.stick{left:5%}.stick i{width:42%;aspect-ratio:1;background:#d9fa77b0;border-radius:50%;pointer-events:none}.touch-fire{right:5%;font-size:clamp(20px,5vw,36px);color:var(--lime)}}
@media(prefers-reduced-motion:reduce){.meter i{transition:none}}

.map-button{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:4px 9px;border:1px solid #3e4758;background:#202531;color:var(--text);border-radius:6px;font-weight:800}
.map-button:hover{background:#313849}
.map-dialog{width:min(880px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:14px;background:#171a23;border:1px solid #4f5465;border-radius:13px;color:var(--text);box-shadow:0 18px 65px #05070bb0}
.map-dialog::backdrop{background:#090a12c9}
.map-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.map-head h2{font-size:clamp(1.1rem,3.2vw,1.55rem);margin:0}
.map-head button{flex:none}
.map-image{position:relative;isolation:isolate;border-radius:7px;overflow:hidden;background:#242539}
.map-image img{width:100%;height:auto;display:block}
.map-pin,.map-player{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);border-radius:50%}
.map-pin{width:clamp(16px,3.1vw,25px);aspect-ratio:1;background:#151723;color:#f9f5ff;border:1px solid #eee7ff;box-shadow:0 1px 7px #0009;font-size:clamp(.67rem,2vw,.84rem);font-weight:850}
.map-player,.map-key i{width:12px;height:12px;border:2px solid #151723;background:var(--lime);box-shadow:0 0 0 2px #a6cf4b;border-radius:50%}
.map-player{z-index:2}
.map-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:5px 22px;margin:12px 0 0;padding-left:1.75rem;font-size:.85rem;color:#eeeaf4}
.map-legend li::marker{color:#d6befd;font-weight:800}
.map-key{display:flex;align-items:center;gap:8px;margin:10px 0 1px;font-size:.82rem;color:var(--muted)}

@media (max-width:700px), (max-width:950px) and (max-height:590px), (pointer:coarse) and (max-height:590px){
  body.in-match{overflow:hidden;overscroll-behavior:none}
  .in-match .shell{display:flex;flex-direction:column;min-height:0;height:100dvh;width:100%;padding:max(0px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(0px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .in-match .top{min-height:50px;height:50px;margin:0;border:0;flex:none}
  .in-match .identity span{display:none}
  .in-match .identity b{font-size:1rem}
  .in-match .mark{width:33px;height:33px;font-size:21px}
  .in-match .layout{display:block;flex:1;min-height:0}
  .in-match .play{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
  .in-match .arena-head{min-height:36px;padding:0 9px}
  .in-match .location,.in-match .mode{font-size:.61rem;line-height:1.2}
  .in-match .mode{text-align:right;flex:none}
  .in-match .stage{height:100%;aspect-ratio:auto}
  .in-match .intel,.in-match .desktop{display:none}
  .in-match .mobile{display:flex;flex:1}
  .in-match .control-strip{min-height:42px;padding:4px 8px;gap:6px;font-size:.72rem;flex-wrap:nowrap}
  .in-match .map-button{min-height:34px;white-space:nowrap}
  .in-match .map-button kbd{display:none}
  .in-match .touch{display:block;z-index:2;pointer-events:none}
  .in-match .stick,.in-match .touch-fire{position:absolute;bottom:clamp(13px,4%,28px);width:clamp(63px,20vw,87px);aspect-ratio:1;border-radius:50%;background:#131722b2;color:white;border:1px solid #dddef0a0;pointer-events:auto;touch-action:none;display:grid;place-items:center}
  .in-match .stick{left:5%}
  .in-match .stick i{width:42%;aspect-ratio:1;background:#d9fa77b0;border-radius:50%;pointer-events:none}
  .in-match .touch-fire{right:5%;font-size:30px;color:var(--lime)}
}
@media (max-width:950px) and (max-height:480px), (pointer:coarse) and (max-height:480px){
  .in-match .top{min-height:39px;height:39px}
  .in-match .control-strip{min-height:36px}
  .in-match .arena-head{min-height:28px}
  .in-match .stick,.in-match .touch-fire{width:59px}
}
