@font-face{font-family:Barlow SC;src:url(assets/hd/fonts/barlow-regular.woff) format("woff");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Barlow SC;src:url(assets/hd/fonts/barlow-bold.woff) format("woff");font-style:normal;font-weight:700;font-display:swap}
:root{color-scheme:dark;--ink:#0a0d11;--panel:#171a21;--line:#353944;--muted:#b1b5c1;--text:#f3f2ed;--acid:#e3ff55;--type:"Barlow SC","Arial Narrow",Arial,sans-serif;--body:"Barlow SC",Arial,sans-serif;--pink:#ff4487;--blue:#39c8ff}
*{box-sizing:border-box}
body{margin:0;background:var(--ink);color:var(--text);font:400 17px/1.4 var(--body)}
button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit}
button:focus-visible{outline:3px solid white;outline-offset:4px}
button:disabled{cursor:wait;opacity:.65}
[hidden]{display:none!important}
.app{min-height:100svh;background:radial-gradient(ellipse at 80% 6%,#242c3b52,transparent 45%),var(--ink)}
.app:fullscreen{overflow:auto}
main,.nav-inner{width:min(1440px,calc(100% - clamp(26px,6vw,100px)));margin:auto}
main{padding:20px 0 22px}
.topbar{border-bottom:1px solid #30343d;background:#0d1015}
.nav-inner,.utility,.brand,.icon-button,.strip-caption,.match-stage,.hero-sub,.mode-label,.choose-heading{display:flex;align-items:center}
.nav-inner{height:57px;justify-content:space-between}
.brand{gap:10px;font:700 17px/1 var(--type);letter-spacing:.14em}
.azmark{display:grid;place-items:center;background:var(--acid);color:#11150a;width:39px;height:25px;font:900 italic 23px/.8 Arial,sans-serif;letter-spacing:-3px;padding-right:3px;transform:skewX(-12deg)}
.utility{gap:5px}.icon-button{justify-content:center;gap:7px;min-height:34px;min-width:35px;padding:5px 10px;background:transparent;border:1px solid transparent;color:#c1c6ce;font-weight:700;font-size:14px}
.icon-button:hover,.icon-button:focus-visible{background:#232832;color:#fff}.utility .icon-button:last-child{border-left:1px solid var(--line);margin-left:5px}
[data-icon],.uicon{display:inline-flex}.icon-button svg,.strip-caption svg,.match-stage svg{width:17px;height:17px}
#music[aria-pressed=false],#sound[aria-pressed=false]{color:#868c99}
.marquee{isolation:isolate;position:relative;height:clamp(235px,29svh,355px);overflow:hidden;border:1px solid #41474d;background:#222b34}
.preview-stage,.shade{position:absolute;inset:0;pointer-events:none}
.preview-stage{background:url(assets/hd/stages/office.webp) center 55%/cover;filter:saturate(.85)}
.shade{background:linear-gradient(90deg,rgba(6,9,13,.96) 1%,rgba(10,13,18,.83) 25%,rgba(11,15,20,.5) 43%,rgba(22,21,22,.05) 67%,rgba(6,9,14,.26)),linear-gradient(0deg,rgba(6,11,16,.58),transparent 30%)}
.hero-left{position:absolute;z-index:2;inset:0 auto 0 clamp(22px,4.2vw,72px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;max-width:52%}
.mode-label,.strip-caption,.match-stage,.menu-panel small{font-family:var(--type);font-weight:700;text-transform:uppercase;letter-spacing:.15em}
.mode-label{color:#f1f6da;gap:8px;font-size:12px}
.mode-label b{width:7px;height:7px;background:var(--acid);box-shadow:0 0 12px #e3ff5559}
.hero-left h1{display:flex;flex-direction:column;align-items:flex-start;margin:.4em 0 .32em;font:700 clamp(55px,6.6vw,102px)/.78 var(--type);letter-spacing:-.045em;text-transform:uppercase;transform:skewX(-9deg);transform-origin:left bottom}
.hero-left h1 span{font-size:.43em;line-height:.99;letter-spacing:.075em;color:#f6f7f7}
.hero-left h1 strong{font:inherit;line-height:.85;color:var(--acid);text-shadow:1px 3px 0 #6a7b11,1px 8px 24px #070a0a88}
.hero-sub{gap:9px;font-size:clamp(14px,1.25vw,18px);color:white}
.stripes{width:22px;height:4px;transform:skewX(-28deg);background:var(--acid)}
.showcase{position:absolute;z-index:1;right:13%;top:0;bottom:0;width:32%;pointer-events:none}
.showcase:before{content:"";position:absolute;inset:10% -2% 9%;background:radial-gradient(ellipse,color-mix(in srgb,var(--accent,#d5f069) 22%,transparent),transparent 68%)}
.showcase-bob{position:absolute;inset:3% 0 3%;text-align:center}.showcase-bob img{height:100%;max-width:100%;object-fit:contain;transform:scaleX(-1);filter:drop-shadow(3px 2px 7px #1113)}
.fighter-shadow{position:absolute;left:17%;right:14%;height:9%;bottom:0;background:radial-gradient(ellipse,#08101789,transparent 70%)}
.hero-credit{position:absolute;right:2.5%;bottom:6.5%;z-index:2;display:grid;justify-items:end;color:white;text-shadow:0 2px 8px #000}
.hero-credit span{font:700 italic clamp(25px,3.4vw,54px)/.95 var(--type);text-transform:uppercase}
.hero-credit small{font-size:clamp(12px,1.1vw,17px);font-weight:700}
.briefing {
  container-type:inline-size;
  padding:clamp(16px,1.7vw,26px) 0;
  border-bottom:1px solid var(--line);
}
.briefing h2 {
  margin:0 0 .24em; color:var(--acid);
  font:italic 700 clamp(2.25rem,4.4cqw,3.65rem)/.97 var(--type);
  letter-spacing:-.035em; text-transform:uppercase;
}
.briefing h3 {
  margin:0 0 .25em; font:700 clamp(1.15rem,2cqw,1.65rem)/1.16 var(--type);
  letter-spacing:-.015em;
}
.briefing p { margin:0; color:#c5cad3; font-size:clamp(1rem,1.7cqw,1.2rem); line-height:1.46 }
/* Let the longer route set the height at this width, including after text zoom. */
.difficulty { display:flex; align-items:center; flex-wrap:wrap; gap:3px; margin-top:12px }
#difficulty-label { font-weight:700; margin-right:9px }
.difficulty label { position:relative; cursor:pointer }
.difficulty input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer }
.difficulty label span {
  display:block; min-width:66px; padding:6px 13px; text-align:center; font-weight:700;
  color:var(--muted); background:var(--panel); border:1px solid var(--line);
}
.difficulty input:checked + span { background:var(--acid); color:var(--ink); border-color:var(--acid) }
.difficulty input:focus-visible + span { outline:2px solid white; outline-offset:2px }
.touch-game .difficulty label span { min-height:44px; display:grid; place-items:center }
.briefing-copy { display:grid }
.briefing-copy > div { grid-area:1/1; min-width:0; overflow-wrap:break-word }
.briefing[data-route="andy"] .briefing-team,
.briefing[data-route="team"] .briefing-andy { visibility:hidden }
.choose-heading h2,dialog h2,.menu-panel h2{font:700 clamp(22px,2.1vw,35px)/.99 var(--type);text-transform:uppercase;margin:0;letter-spacing:-.025em}
.roster{margin-top:18px}
.roster-top,.control-strip,.hud-top,.hud-bottom,.touchbar,.touchbar>div,.dialog-top,.menu-actions{display:flex;align-items:center}
.roster-top,.dialog-top{justify-content:space-between;gap:12px}.roster-top{margin-bottom:12px}
.choose-heading{gap:12px}.menu-pointer{display:block;width:7px;height:21px;background:var(--acid);transform:skewX(-16deg)}
.large-action,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:40px;padding:6px 18px;border:1px solid transparent;font-weight:700}
.large-action{background:var(--acid);color:#101506}.large-action:hover{background:#f0ff9a}.large-action:active,.secondary:active{transform:translateY(1px)}
.large-action span{font-family:Arial,sans-serif;font-size:20px}.secondary{background:#282d38;color:white;border-color:#525a69}.secondary:hover{background:#363d49}
.cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(6px,1.05vw,15px)}
.card{display:flex;flex-direction:column;padding:0;background:#171b23;border:1px solid #373c45;text-align:left;min-width:0;color:white;position:relative}
.card:hover{border-color:var(--accent)}.card[aria-pressed=true]{outline:2px solid var(--acid);outline-offset:-1px;border-color:var(--acid)}
.card-art{width:100%;height:clamp(158px,25svh,320px);position:relative;isolation:isolate;display:block;overflow:hidden;background:radial-gradient(ellipse at 62% 30%,color-mix(in srgb,var(--accent) 47%,#5d6271),transparent 80%),linear-gradient(142deg,#242733 15%,#191c23 75%,#40434c)}
.card-art:before{content:"";position:absolute;inset:0;background:linear-gradient(124deg,transparent 48%,#ffffff0c 48.3% 48.65%,transparent 49% 58%,#ffffff09 58.25% 75%,transparent 75.3%),linear-gradient(0deg,#080c1459,transparent 15%);pointer-events:none}
.card-art:after{content:"";position:absolute;z-index:-1;inset:auto 2% 1%;height:9%;background:radial-gradient(ellipse,#0d0e158a,transparent 66%)}
.card-art img{width:100%;height:100%;object-fit:contain;padding:6px 4px 3px;position:relative;display:block}
.card-bottom{width:100%;display:flex;flex-direction:column;padding:9px 12px 10px;border-top:2px solid var(--accent)}
.card-name{font:700 italic clamp(18px,1.8vw,27px)/1 var(--type);letter-spacing:-.025em;text-transform:uppercase}
.card-role{font-size:clamp(12px,1.03vw,16px);color:#bdc1cb;line-height:1.2;margin-top:4px}
.control-strip{gap:clamp(12px,2vw,28px);border-top:1px solid var(--line);padding-top:12px;margin-top:20px;font-size:13px;color:#bfc2cd;flex-wrap:wrap}
.control-strip>span{display:inline-flex;align-items:center;gap:5px}.strip-caption{font-size:10px;color:#f1f3f6}.strip-caption svg{width:14px}
kbd{display:inline-grid;place-items:center;min-width:19px;min-height:19px;padding:1px 4px;background:#1e222b;border:1px solid #424854;color:#d5d9e1;font:700 11px/1 var(--body)}
/* Arena */
body.playing .app{background:#090b10}body.playing .nav-inner,body.playing main{width:calc(100% - clamp(8px,2vw,40px));max-width:none}
body.playing .nav-inner{height:42px}body.playing main{padding:5px 0 4px}body.playing .control-strip{margin-top:8px;padding-top:6px}
.match-bar{display:flex;align-items:center;min-height:26px;margin-bottom:5px}.match-stage{gap:7px;color:#c9cdd3;font-size:12px;letter-spacing:.1em}.match-stage svg{width:14px}
.fight-frame{width:100%;aspect-ratio:16/9;max-height:calc(100svh - 123px);position:relative;overflow:hidden;isolation:isolate;background:#1e2028;border:1px solid #3d444c}
.fight-frame canvas{outline:0;display:block;width:100%;height:100%;image-rendering:auto}
.hud{position:absolute;z-index:3;left:2.8%;right:2.8%;top:3.4%;display:flex;align-items:flex-start;gap:clamp(5px,1.25vw,22px);pointer-events:none;filter:drop-shadow(0 2px 3px #0a0e1980)}
.player-hud{--side:#ff4084;--shine:#ff98c6;--face:clamp(32px,5.2vw,82px);flex:1;min-width:0;display:grid;grid-template:"face title" auto "face energy" auto "face marks" auto / var(--face) minmax(0,1fr);column-gap:clamp(4px,.65vw,12px);align-items:center}
.player-hud.right{--side:#168cdf;--shine:#71dcff;grid-template:"title face" auto "energy face" auto "marks face" auto/minmax(0,1fr) var(--face)}
.hud-face{grid-area:face;width:var(--face);aspect-ratio:1;box-shadow:0 0 0 1px #151823,0 3px 5px #0005;background:var(--panel) center 25%/cover no-repeat;border:clamp(1px,.15vw,3px) solid var(--shine)}
.hud-top{grid-area:title;gap:6px;margin-bottom:3px;color:white;text-shadow:0 2px 3px #000,0 0 8px #1b1833}
.hud-top strong{font:700 italic clamp(15px,2vw,32px)/.94 var(--type);text-transform:uppercase;letter-spacing:-.01em}
.hud-top b{background:var(--side);padding:2px 6px;color:#fff;text-shadow:0 1px 1px #182037;font:700 clamp(8px,.8vw,13px)/1 var(--type)}
.right .hud-top,.right .hud-bottom{flex-direction:row-reverse}
.energy{grid-area:energy;position:relative;isolation:isolate;height:clamp(10px,1.65vw,26px);transform:skewX(17deg);border:clamp(1px,.14vw,2px) solid #fff7f8;background:#281a2d;box-shadow:0 0 0 1px #312437,0 2px 0 #3b2544}
.right .energy{transform:skewX(-17deg);background:#132432}
.energy i,.energy em{position:absolute;inset:0;transform-origin:left;transform:scaleX(1)}
.right .energy i,.right .energy em{transform-origin:right}
.energy i{background:#ffe4c4;transition:transform .35s ease-out}
.energy em{background:linear-gradient(176deg,var(--shine) 0%,var(--side) 28%,color-mix(in srgb,var(--side) 75%,#21202d) 88%)}
.hud-bottom{grid-area:marks;gap:9px;margin-top:5px}.wins{display:flex;gap:4px}.wins b{width:clamp(6px,.69vw,10px);aspect-ratio:1;transform:skewX(-18deg);border:1px solid #ffffffcc;background:#171924b3}.wins b.won{background:#f5ff77}
.special-charge{position:relative;display:block;height:clamp(4px,.52vw,8px);width:30%;border:1px solid #def8b6;background:#172321;transform:skewX(-20deg)}
.special-charge i{display:block;height:100%;transform-origin:left;background:linear-gradient(90deg,#a0fc57,#f3ff68)}
.special-charge:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(20% - 1px),#303928 20%);pointer-events:none}.right .special-charge i{transform-origin:right}
.clock{display:grid;text-align:center;align-items:start;min-width:clamp(33px,5.3vw,90px);color:white}
.clock span{font:700 clamp(8px,.72vw,12px)/1 var(--type);text-shadow:0 1px 3px #000;letter-spacing:.04em}
.clock b{font:700 italic clamp(29px,4.2vw,74px)/.92 var(--type);letter-spacing:-.075em;padding-right:.10em;color:#f8f2ff;text-shadow:1px 2px 0 #794987,0 0 6px #8857aa,0 2px 5px #111}
.clock.urgent b{color:#ff8ea0}
.callout,.intermission{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.callout{gap:3px;flex-direction:column;pointer-events:none;z-index:4;text-align:center}
.callout small,.menu-panel small{color:#fff;font:700 clamp(10px,1.1vw,18px)/1.1 var(--type);letter-spacing:.15em;text-transform:uppercase}
.callout small{background:#10141bcf;padding:4px 11px;transform:skewX(-8deg)}
.callout strong{font:700 italic clamp(40px,9.6vw,164px)/.95 var(--type);text-transform:uppercase;letter-spacing:-.06em;padding:.04em .18em .12em .08em;background:linear-gradient(#fff 20%,#e9ebf2 45%,#aab1c5 51%,#f4f5fa 88%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:.6px #fff;filter:drop-shadow(-2px 1px 0 #aa376b) drop-shadow(2px 2px 0 #056997) drop-shadow(1px 4px 2px #141426)}
.pause-layer {
  position:absolute; inset:0; z-index:5; display:grid; align-content:center; justify-items:center;
  gap:clamp(7px,1.1vw,18px); background:radial-gradient(ellipse,#0a101ad6,#060a135e 68%);
  pointer-events:none; color:#f5ffe4;
}
.pause-layer strong {
  color:var(--acid); text-transform:uppercase; font:italic 700 clamp(44px,10vw,150px)/.95 var(--type);
  letter-spacing:-.045em; padding-right:.08em; text-shadow:0 .045em 0 #48521c,0 0 .2em #e3ff5560;
}
.pause-layer span { font-weight:700; font-size:clamp(14px,1.7vw,24px); text-shadow:0 1px 4px #07080c }
#fight-view.is-paused .callout { visibility:hidden }
@media (prefers-reduced-motion:no-preference) {
  .pause-layer strong { animation:pause-glow 1.65s ease-in-out infinite alternate }
  @keyframes pause-glow {
    to { color:#fbffdf; text-shadow:0 .045em 0 #536324,0 0 .11em #e3ff55,0 0 .35em #dbff579e }
  }
}
.intermission{z-index:5;background:linear-gradient(120deg,#0a0a176e,#0a0c17b3)}
.menu-panel,dialog{background:linear-gradient(145deg,#242936,#13171e 80%);color:var(--text);border:1px solid #626d7e;border-top:3px solid var(--acid);box-shadow:0 14px 45px #07091080}
.menu-panel{text-align:center;padding:clamp(14px,3.5vw,56px);width:min(480px,92%)}.menu-panel small{color:var(--acid);font-size:12px}
.menu-panel h2{font-weight:700;font-style:italic;font-size:clamp(26px,4.3vw,70px);margin:8px 0}.menu-panel p{font-size:clamp(14px,1.55vw,23px);margin:0 0 18px;color:#d9dce1}.menu-actions{justify-content:center;gap:10px;flex-wrap:wrap}
.touchbar{display:none;justify-content:space-between;gap:6px;margin:7px 0 0;user-select:none}.touchbar>div{gap:4px}
.touchbar button{touch-action:none;user-select:none;-webkit-touch-callout:none;border:1px solid #455062;background:#20252f;color:white;min-width:35px;min-height:38px;padding:4px 9px;font-size:14px;font-weight:700}.touchbar .act-pad button{color:var(--acid)}.touchbar button.held{background:#424d31;border-color:var(--acid)}
dialog{width:min(440px,calc(100% - 28px));padding:23px}dialog::backdrop{background:#05070bc4}.dialog-top{margin-bottom:11px}.dialog-top button{font-size:25px}dialog p{font-size:16px;color:#c8ccd4}.key-table>div{display:flex;justify-content:space-between;padding:5px 0;border-top:1px solid var(--line)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(pointer:coarse),(max-width:800px){.touchbar{display:flex}.fight-frame{max-height:calc(100svh - 162px)}}
@media(max-width:760px){.nav-inner{height:48px}.utility{gap:0}.tool-text{display:none}main{padding-top:13px}.roster{margin-top:14px}.roster-top{margin-bottom:10px}.card-art{height:clamp(143px,28vw,220px)}.card-bottom{padding:7px 6px}.card-role{font-size:12px}.control-strip{gap:6px 15px}.hero-credit{right:3%}.showcase{right:10%}.marquee{height:clamp(205px,34vw,260px)}.card-name{font-size:18px}.large-action,.secondary{min-height:34px;padding:5px 12px}}
@media(max-width:540px){main,.nav-inner{width:calc(100% - 22px)}.hero-left{left:4%}.hero-left h1{font-size:clamp(42px,11vw,61px)}.hero-sub{font-size:13px;gap:5px}.stripes{width:12px}.showcase{right:2%;width:45%;bottom:8%}.hero-credit span{font-size:19px}.hero-credit small{display:none}.hero-credit{right:5%;bottom:4%}.mode-label{font-size:10px}.cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.card{grid-column:span 2}.card-art{height:clamp(138px,37vw,190px)}.choose-heading{gap:6px}.choose-heading h2{font-size:23px}.menu-pointer{width:5px;height:17px}.hud-top{gap:4px}.hud-top b{padding:2px 3px}.hud-bottom{gap:5px;margin-top:3px}.wins{gap:2px}.callout small{padding:2px 6px}.menu-panel p{margin-bottom:7px}.menu-panel small{font-size:9px}.menu-actions{gap:6px}.menu-actions button{font-size:13px;padding:4px 8px;min-height:27px}.touchbar button{min-width:28px;padding:4px 6px;font-size:12px}.control-strip .strip-caption{display:none}body.playing .control-strip{font-size:11px}.clock b{letter-spacing:-.06em}}
@media(max-width:430px){.player-hud{grid-template-areas:"title title" "face energy" "face marks"}.player-hud.right{grid-template-areas:"title title" "energy face" "marks face"}.hud-face{border-width:1px}}
@media(max-height:550px) and (orientation:landscape){body.playing .nav-inner{height:32px}body.playing .match-bar{min-height:17px;margin-bottom:2px}body.playing .control-strip{display:none}.touchbar button{min-height:27px}.fight-frame{max-height:calc(100svh - 100px)}.hud{top:2.2%}.player-hud{--face:clamp(32px,8.5vh,50px)}.hud-top strong{font-size:17px}.energy{height:11px}}

@media (min-width:541px) and (max-width:760px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Each preview keeps its own image and name so a quick second pick can reverse a fade. */
#cast-layers,.cast-layer{position:absolute;inset:0;pointer-events:none}
#cast-layers{z-index:1}
.cast-layer{visibility:hidden;transition:visibility 0s linear .42s}
.cast-layer.active{visibility:visible;transition-delay:0s}
.cast-layer .showcase{opacity:0;transform:translateX(25px) scale(.975);transform-origin:center 89%;transition:opacity .28s ease,transform .42s cubic-bezier(.18,.73,.22,1)}
.cast-layer.departing .showcase{transform:translateX(-17px) scale(.985)}
.cast-layer .hero-credit{opacity:0;transform:translateY(9px);transition:opacity .21s ease,transform .34s cubic-bezier(.18,.73,.22,1)}
.cast-layer.departing .hero-credit{transform:translateY(-6px)}
.cast-layer.active .showcase,.cast-layer.active .hero-credit{opacity:1;transform:none}
.cast-layer.active .hero-credit{transition-delay:.075s}
.special-stack{display:grid;min-width:0}
.cast-special{grid-area:1/1;opacity:0;transform:translateY(4px);transition:opacity .19s ease,transform .25s ease}
.cast-special.departing{transform:translateY(-3px)}
.cast-special.active{opacity:1;transform:none;transition-delay:.065s}
.border-trace{position:absolute;inset:1px;z-index:3;width:calc(100% - 2px);height:calc(100% - 2px);overflow:visible;pointer-events:none}
.border-trace rect{fill:none;opacity:0;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:14 86;stroke:var(--accent);stroke-width:3px;filter:drop-shadow(0 0 3px var(--accent))}
.border-trace rect+rect{stroke:#ffffed;stroke-width:2px;stroke-dasharray:6 94}
.player-hud.right.boss{--side:#bc4933;--shine:#ffd58d}
.boss-fight .clock span{color:#ffda9d;letter-spacing:.10em}
.boss-fight .callout strong{background-image:linear-gradient(#fff6dc 18%,#ffd894 44%,#b47945 55%,#ffedb7 87%);filter:drop-shadow(-2px 1px 0 #863822) drop-shadow(2px 2px 0 #432c49) drop-shadow(1px 4px 2px #0c1428)}
.boss-fight .menu-panel{border-top-color:#ffcf85}
.boss-fight .menu-panel small{color:#ffcf85}
@media(prefers-reduced-motion:reduce){.cast-layer,.cast-layer .showcase,.cast-layer .hero-credit,.cast-special{transition:none}.border-trace{display:none}}

.touch-guide { display:none }
.touch-game {
  --game-w:100vw; --game-h:100vh; --game-h:100dvh;
  overflow:hidden;
}
.touch-game body { overflow:hidden; -webkit-text-size-adjust:100%; text-size-adjust:100% }
.touch-game #device-view {
  position:fixed; top:var(--view-top,0); left:var(--view-left,0); width:var(--game-w); height:var(--game-h);
  transform:rotate(var(--view-turn,0deg));
  padding:var(--view-insets,env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left));
  container-type:size; transform-origin:top left; background:var(--ink);
}
.touch-game .app { height:100%; min-height:0; overflow:auto; overscroll-behavior:contain }
.touch-game main,.touch-game .nav-inner { width:calc(100% - clamp(12px,3cqw,50px)) }
.touch-game .nav-inner { height:clamp(34px,7cqh,51px) }
.touch-game .utility .icon-button { min-width:40px; min-height:32px }
.touch-game .control-strip,.touch-game .tool-text,.touch-game .key-table { display:none }
.touch-game .touch-guide { display:block }
.touch-game main { padding:clamp(4px,1.35cqh,14px) 0 }
.touch-game .marquee { height:clamp(88px,31cqh,315px) }
.touch-game .hero-left { left:4% }
.touch-game .hero-left h1 { font-size:clamp(32px,12cqh,96px); margin:.18em 0 }
.touch-game .hero-sub { font-size:clamp(12px,2.6cqh,18px) }
.touch-game .mode-label { font-size:clamp(9px,1.8cqh,12px) }
.touch-game .showcase { right:12%; top:0; bottom:0; width:35% }
.touch-game .hero-credit { right:3%; bottom:7% }
.touch-game .hero-credit span { font-size:clamp(19px,5.5cqh,52px) }
.touch-game .hero-credit small { display:block; font-size:clamp(11px,2.1cqh,16px) }
.touch-game .choose-heading h2 { font-size:clamp(17px,3.5cqh,30px) }
.touch-game .roster { margin-top:clamp(4px,1cqh,12px) }
.touch-game .roster-top { margin-bottom:clamp(4px,.9cqh,11px) }
.touch-game .large-action,.touch-game .secondary { min-height:clamp(30px,6cqh,45px); padding:3px 14px }
.touch-game .cards { grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(4px,.8cqw,12px) }
.touch-game .card { grid-column:auto }
.touch-game .card-art { height:clamp(47px,21cqh,220px) }
.touch-game .card-bottom { padding:clamp(2px,.7cqh,8px) clamp(3px,.8cqw,11px) }
.touch-game .card-name { font-size:clamp(13px,2.9cqh,27px) }
.touch-game .card-role { margin-top:2px; font-size:clamp(10px,1.9cqh,15px) }
.touch-game body.playing .app { display:flex; flex-direction:column; overflow:hidden }
.touch-game body.playing .nav-inner { height:clamp(32px,6cqh,46px) }
.touch-game body.playing main {
  width:calc(100% - clamp(8px,1.5cqw,26px)); margin:0 auto; padding:1px 0 3px;
  display:flex; flex-direction:column; flex:1; min-height:0;
}
.touch-game body.playing #fight-view { touch-action:none; overscroll-behavior:none; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none }
.touch-game #fight-view {
  display:grid; grid-template-rows:auto minmax(0,1fr) auto; flex:1; min-height:0;
}
.touch-game .match-bar { min-height:clamp(16px,3.6cqh,26px); margin:0 }
.touch-game .fight-frame { height:100%; max-height:none; min-height:0; aspect-ratio:auto }
.touch-game .touchbar { display:flex; margin:clamp(3px,.7cqh,7px) 0 0 }
.touch-game .touchbar>div { gap:clamp(4px,.9cqw,14px) }
.touch-game .touchbar button {
  min-width:clamp(43px,6cqw,78px); min-height:clamp(38px,9.6cqh,64px);
  font-size:clamp(13px,2.6cqh,19px); padding:4px 10px;
}
.touch-game .hud { top:3%; gap:1.25cqw }
.touch-game .player-hud {
  --face:clamp(29px,7.8cqh,68px);
  grid-template-areas:"face title" "face energy" "face marks";
}
.touch-game .player-hud.right { grid-template-areas:"title face" "energy face" "marks face" }
.touch-game .hud-top strong { font-size:clamp(14px,3.6cqh,32px) }
.touch-game .energy { height:clamp(8px,2.5cqh,22px) }
.touch-game .clock b { font-size:clamp(26px,6.9cqh,63px) }
.touch-game .callout strong { font-size:clamp(34px,17cqh,150px) }
.touch-game .menu-panel { padding:clamp(8px,2.5cqh,35px); max-height:100%; overflow:auto }
.touch-game .menu-panel h2 { font-size:clamp(24px,7cqh,60px); margin:.13em 0 }
.touch-game .menu-panel p { margin:0 0 .65em }
.touch-game dialog {
  position:fixed; inset:auto; top:50%; left:50%; margin:0; transform:translate(-50%,-50%) rotate(var(--view-turn,0deg));
  width:min(640px,calc(var(--game-w) - 36px)); max-width:none;
  max-height:calc(var(--game-h) - 24px); overflow:auto; padding:14px 20px;
}
.touch-game dialog p { margin:.55em 0 }
/* Rotate only the virtual viewport that needs the other aspect ratio. The
   dialog is in the top layer and inherits the same rotation from the body. */
@media (orientation:portrait) {
  .touch-game body.playing, .touch-game:not(.phone-game) body {
    --game-w:100vh; --game-w:100dvh; --game-h:100vw;
    --view-left:100%; --view-turn:90deg;
    --view-insets:env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) env(safe-area-inset-top);
  }
}
@media (orientation:landscape) {
  .phone-game body:not(.playing) {
    --game-w:100vh; --game-w:100dvh; --game-h:100vw;
    --view-top:100%; --view-turn:-90deg;
    --view-insets:env(safe-area-inset-left) env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom);
  }
}
/* The two phone menus share a narrow, vertically scrollable page. */
.phone-game body:not(.playing) .nav-inner { min-height:46px }
.phone-game body:not(.playing) .utility button { min-width:40px; min-height:40px }
.phone-game #select-view .marquee { height:clamp(185px,52cqw,270px) }
.phone-game #select-view .hero-left { max-width:51%; top:0; bottom:7%; left:4% }
.phone-game #select-view .hero-left h1 { font-size:clamp(37px,12cqw,65px) }
.phone-game #select-view .hero-sub { font-size:clamp(12px,3.2cqw,17px); gap:5px; line-height:1.2 }
.phone-game #select-view .stripes { width:12px; flex:none }
.phone-game #select-view .showcase { right:2%; width:46%; top:2%; bottom:21% }
.phone-game #select-view .hero-credit { right:4%; bottom:4%; max-width:54%; text-align:right }
.phone-game #select-view .hero-credit span { font-size:clamp(19px,6.2cqw,33px) }
.phone-game #select-view .hero-credit small { font-size:clamp(11px,3.1cqw,16px); line-height:1.1 }
.phone-game .choose-heading h2 { font-size:clamp(19px,5cqw,26px) }
.phone-game .roster { margin-top:13px }
.phone-game .roster-top { flex-wrap:wrap; gap:8px; margin-bottom:10px }
.phone-game .choose-heading { gap:7px }
.phone-game .cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px }
.phone-game .card-art { height:clamp(92px,29cqw,160px) }
.phone-game .card-bottom { padding:6px 5px; overflow-wrap:anywhere }
.phone-game .card-name { font-size:clamp(15px,4.3cqw,22px) }
.phone-game .card-role { font-size:clamp(12px,3.1cqw,15px); line-height:1.15 }
.phone-game body:not(.playing) .large-action { min-height:42px }
@container (max-height:350px) {
  .touch-game main { padding-block:3px }
  .touch-game .marquee { height:24cqh; min-height:65px }
  .touch-game .hero-left h1 { font-size:8.6cqh }
  .touch-game .card-art { height:15cqh }
  .touch-game .card-role { line-height:1.07 }
}

/* The agency's portrait wall appears after a rooftop victory. */
.celebrating .control-strip { display:none }
#award-view { container-type:inline-size; border:1px solid #3b3c3e; background:#131519 }
.award-wall {
  position:relative; isolation:isolate; display:grid; justify-items:center; align-content:center;
  gap:clamp(12px,2.6vh,24px); min-height:clamp(310px,52vh,535px); padding:26px 12px 30px;
  background:#353433 url(assets/hd/stages/award-wall.webp) center center/cover no-repeat;
}
.award-wall::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(0deg,#120f0d55,transparent 17%,transparent 85%,#10101325);
}
#award-title {
  margin:0; padding:0 6px; color:#fff0d1; text-align:center; text-transform:uppercase;
  font:700 clamp(25px,3.3cqw,48px)/1 var(--type); letter-spacing:.075em;
  text-shadow:0 1px 0 #5d4a33,0 2px 1px #271e17,0 4px 12px #120e0bd9;
}
#award-title:focus { outline:none }
.award-picture { display:grid; justify-items:center; gap:11px; margin:0 }
.award-frame {
  width:clamp(135px,25vh,256px); padding:clamp(6px,.63cqw,10px); border:1px solid #dac799;
  background:linear-gradient(138deg,#ab8551,#eddaac 18%,#9e7548 33%,#4d3f34 52%,#aa8a5f 70%,#ead4a6 87%,#7f613f);
  box-shadow:inset 0 0 0 2px #4f4037,0 1px 0 #251f1b,3px 5px 5px #1712108f,7px 11px 20px #17131070;
}
.award-mat { position:relative; padding:clamp(5px,.6cqw,10px); background:#e5d9bf; box-shadow:0 0 0 1px #3e332a,inset 1px 2px 4px #4b382d66 }
.award-mat img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; background:radial-gradient(ellipse at 44% 34%,#55585c,#262a2f 85%); outline:1px solid #7c6d5d }
.award-mat::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(115deg,#fffcf40e,transparent 30%,transparent 65%,#fffbeb09) }
.award-nameplate {
  position:relative; min-width:66%; padding:5px 22px 6px; text-align:center; text-transform:uppercase;
  color:#251e16; font:700 clamp(15px,1.45cqw,22px)/1 var(--type); letter-spacing:.13em;
  background:linear-gradient(107deg,#b3976f,#ecdcba 36%,#d8c19b 73%,#af936e);
  border:1px solid #bca780; box-shadow:inset 0 0 0 1px #e9d9b840,1px 3px 4px #19140fb8;
}
.award-nameplate::before,.award-nameplate::after { content:""; position:absolute; top:45%; width:3px; height:3px; border-radius:50%; background:#715f49; box-shadow:0 1px #efdcba }
.award-nameplate::before { left:8px }.award-nameplate::after { right:8px }
.award-recap { border-top:1px solid #6e5d46; padding:clamp(18px,2.2cqw,32px) clamp(14px,3.3cqw,48px) clamp(24px,3cqw,40px) }
.award-recap h2 { margin:0 0 13px; font:700 clamp(20px,2cqw,30px)/1 var(--type); color:#f3efe6 }
.award-rounds { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); list-style:none; padding:0; margin:0; gap:9px }
.award-rounds li {
  display:grid; grid-template-rows:auto 1fr auto auto; gap:3px; min-width:0; padding:12px clamp(10px,1.3cqw,20px);
  border:1px solid #363a41; background:#1a1d22;
}
.award-round-label { font-weight:700; color:#bdc2cc; font-size:12px; letter-spacing:.12em; text-transform:uppercase }
.award-rounds strong { color:#f2eee7; font:700 clamp(16px,1.4cqw,22px)/1.14 var(--type) }
.award-opponent { color:#c5c8d0; font-size:15px; line-height:1.15 }
.award-outcome { margin-top:6px; font-size:15px; line-height:1.1; color:#d4d7de }
.award-outcome::before { content:""; display:inline-block; width:6px; height:6px; margin:0 7px 2px 0; background:currentColor }
[data-result="sieg"] .award-outcome { color:#d6ec85 }
[data-result="niederlage"] .award-outcome { color:#e8a7a0 }
.award-rounds [data-result="boss"] { border-color:#8d724b; background:linear-gradient(115deg,#332c23,#25231f) }
[data-result="boss"] .award-round-label,[data-result="boss"] .award-outcome { color:#f7d491 }
#award-restart { display:flex; margin:clamp(20px,2.2cqw,32px) auto 0 }
@container (max-width:680px) {
  .award-rounds { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .award-recap { padding-inline:12px }
}
@container (max-width:360px) {
  #award-title { font-size:21px }
  .award-rounds { gap:5px }
}
.touch-game .award-wall { min-height:0; padding:clamp(12px,3.5cqh,28px) 8px; gap:clamp(7px,1.8cqh,15px) }
.touch-game .award-frame { width:clamp(87px,28cqh,215px) }
.touch-game .award-picture { gap:6px }
.touch-game #award-title { font-size:clamp(19px,5.4cqh,40px) }
.touch-game .award-nameplate { font-size:clamp(13px,2.7cqh,19px); padding-block:3px }
.touch-game .award-recap { padding-block:clamp(12px,2.3cqh,22px) }
.touch-game #award-restart { min-height:40px; margin-top:15px }
@media (prefers-reduced-motion:no-preference) {
  .celebrating .award-picture,.celebrating #award-title { animation:award-reveal .65s ease-out both }
  @keyframes award-reveal { from { opacity:0; transform:translateY(5px) } to { opacity:1; transform:none } }
}

.invoice-status {
  display:flex; align-items:center; gap:.65em; margin-left:auto;
  font:700 clamp(10px,1.05vw,14px)/1.2 var(--type); text-transform:uppercase; letter-spacing:.09em; color:#e1d5c7;
}
.invoice-status b {
  padding:.1em .42em; color:#ff9987; border:1px solid currentColor; transform:rotate(-3deg);
}
.invoice-status[hidden] { display:none }

.phone-game .award-wall { padding:22px 10px; gap:12px }
.phone-game .award-frame { width:clamp(125px,43cqw,205px) }
.phone-game #award-title { font-size:clamp(21px,6.2cqw,37px) }
.phone-game .award-rounds { grid-template-columns:repeat(2,minmax(0,1fr)) }

/* Opening wordmark, shown once on page load before character selection. */
html:has(#opening:not([hidden])) { overflow:hidden }
.opening {
  position:fixed; inset:0; z-index:30; isolation:isolate; overflow:hidden;
  display:grid; place-items:center; color:var(--text);
  container-type:size;
  background:radial-gradient(ellipse at 50% 46%,#193d58 0%,#10233b 37%,#050b15 76%);
  animation:opening-exit .32s ease-in calc(var(--opening-duration, 7000ms) - 320ms) both;
  touch-action:none;
}
.opening-scene {
  position:absolute; inset:0; display:grid; isolation:isolate; overflow:hidden;
}
.opening-scene img, .opening-scene::after {
  position:absolute; inset:0; width:100%; height:100%; z-index:-2;
}
.opening-scene img { object-fit:cover; object-position:50% 10% }
.opening-scene img[data-format="portrait"] { object-position:50% 38% }
.opening-scene::after {
  content:""; z-index:-1;
  background:linear-gradient(0deg,#050c18ed 0%,#0a1826aa 11%,transparent 30%);
}
.opening-caption {
  place-self:end center; display:grid; justify-items:stretch; gap:clamp(8px,1.4cqh,16px);
  padding-bottom:max(clamp(14px,3.4cqh,44px),env(safe-area-inset-bottom));
}
.opening-scene .opening-lockup {
  font-size:clamp(36px,min(11.5cqw,15cqh),152px);
  filter:drop-shadow(0 .03em .045em #070a10);
}
.opening-meter {
  position:relative; height:clamp(6px,.85cqh,10px); margin-inline:.22em;
  border:1px solid #b7ca817d; padding:1px; background:#111b20cd;
  box-shadow:0 0 12px #dfff3820; transform:skewX(-15deg); overflow:hidden;
}
.opening-meter i {
  display:block; height:100%; transform-origin:left;
  background:linear-gradient(90deg,#97aa2b,var(--acid) 80%,#ffffde);
  animation:opening-fill calc(var(--opening-duration, 7000ms) - 320ms) linear both;
}
.opening-meter::after {
  content:""; position:absolute; inset:0;
  background:repeating-linear-gradient(90deg,transparent 0 calc(6.25% - 2px),#101a1ed9 calc(6.25% - 2px) 6.25%);
}
@keyframes opening-fill { from{transform:scaleX(0)} to{transform:scaleX(1)} }
@container (max-aspect-ratio: 4/5) {
  .opening-caption { padding-bottom:max(calc(30cqh - 16cqw),env(safe-area-inset-bottom)); gap:1.7cqh }
  .opening-scene .opening-lockup { font-size:clamp(42px,15.5cqw,98px) }
}
.opening-lockup {
  display:grid; justify-items:start; transform:skewX(-10deg);
  font:700 clamp(52px,12.5vw,168px)/.85 var(--type);
  text-transform:uppercase; letter-spacing:-.055em;
}
.opening-lockup span { font-size:.42em; line-height:1; letter-spacing:.12em; animation:fly-agentur .68s cubic-bezier(.16,.84,.19,1) both }
.opening-lockup strong { font:inherit; color:var(--acid); text-shadow:.016em .038em 0 #6b7b18; animation:fly-fighters .72s cubic-bezier(.16,.84,.19,1) .10s both }
/* The title clock starts on the first visible paint and pauses in a background tab. */
.opening:not(.running), .opening:not(.running) .opening-lockup > *, .opening:not(.running) .opening-meter i { animation-play-state:paused }
@keyframes fly-agentur { from{opacity:0;transform:translateX(-75vw)} 75%{opacity:1;transform:translateX(.12em)} to{opacity:1;transform:none} }
@keyframes fly-fighters { from{opacity:0;transform:translateX(75vw)} 75%{opacity:1;transform:translateX(-.045em)} to{opacity:1;transform:none} }
@keyframes opening-exit { from{opacity:1} to{opacity:0} }
@media(prefers-reduced-motion:reduce){ .opening-lockup span,.opening-lockup strong{animation:none} }

@media(min-width:761px){ html:not(.touch-game) .card-art {height:clamp(134px,19svh,224px)} }

/* The bout announcement fills the same virtual viewport as the arena on a phone. */
.match-intro {
  position:fixed; inset:0; z-index:31; display:grid; place-items:center; overflow:hidden;
  isolation:isolate; container-type:size; outline:none; touch-action:none;
  color:#f4f5ec; background:radial-gradient(ellipse at 55% 42%,#303627 0,#171d1d 36%,#090c10 76%);
}
.match-intro::before {
  content:""; position:absolute; inset:-25%; z-index:-1;
  background:repeating-linear-gradient(121deg,transparent 0 65px,#defa5c07 66px 68px,transparent 69px 94px);
  mask-image:linear-gradient(90deg,transparent,#000 38%,#000 78%,transparent);
}
.match-intro-art { width:92%; text-align:center; display:grid; justify-items:center; gap:clamp(12px,5cqh,38px) }
.match-intro .opening-lockup { font-size:clamp(42px,min(17cqw,24cqh),175px) }
.match-intro .opening-lockup > * { animation:none }
.match-intro p {
  margin:0; max-width:91%; color:#fff9df; font:italic 700 clamp(23px,min(7.5cqw,10.6cqh),80px)/1.04 var(--type);
  letter-spacing:-.025em; transform-origin:center;
  text-shadow:0 .04em .025em #101207, 0 0 .19em #fcf6a770, 0 0 .53em #e4ff395b;
}
.match-intro p span { white-space:nowrap; color:#efff93 }
@media(prefers-reduced-motion:no-preference){
  .match-intro-art .opening-lockup { animation:bout-logo-in .37s cubic-bezier(.16,.84,.24,1) both }
  .match-intro-art p { animation:rumble-impact .90s cubic-bezier(.2,.75,.25,1) .14s both }
  @keyframes bout-logo-in {
    from { opacity:0; transform:skewX(-10deg) translateY(-.09em) scale(1.10) }
    to { opacity:1; transform:skewX(-10deg) }
  }
  @keyframes rumble-impact {
    0% { opacity:0; transform:translateY(.32em) scale(.56); text-shadow:0 0 .01em #e9eab900 }
    49% { opacity:1; transform:translateY(-.015em) scale(1.075);
      text-shadow:0 .04em .02em #303014, 0 0 .09em #ffffee, 0 0 .34em #fcff90, 0 0 .70em #dfef5499 }
    71% { transform:scale(.988) }
    100% { opacity:1; transform:scale(1) }
  }
}
