/* Page shell. The cabinet width is capped by the viewport height so the whole TV fits:
   --chrome is every fixed pixel above, inside and below the cabinet except the 4:3 framebuffer. */
.wh-page{--head-h:52px;--main-pt:6px;--side:16px;--row-h:44px;--row-gap:8px;--side-w:280px;--top:110px;--bot:10px;--cab-min:280px;
 --bez:10px;--ring:2px;--hud-h:76px;--call-h:28px;--deck-gap:6px;--ctrl-h:58px;--tools-h:48px;
 --chrome:calc(var(--top) + var(--bot) + 2 * var(--bez) + var(--hud-h) + var(--call-h) + var(--deck-gap) + var(--ctrl-h) + var(--tools-h))}
.wh-page .game-header{width:min(1280px,100%);max-width:none;height:var(--head-h);min-height:0;margin:0 auto;padding:0 var(--side);gap:12px;flex-wrap:nowrap}
.wh-page .game-header .brand-logo{width:84px;height:46px;max-height:none}
.wh-page .game-header .back-link{min-height:0;font:400 11px/1 var(--font-pixel);color:#ffd23a}
.wh-page .game-layout{position:relative;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;column-gap:14px;row-gap:var(--row-gap);width:min(1280px,100%);max-width:none;margin:0 auto;padding:var(--main-pt) var(--side) 16px}
.wh-page .game-layout>*{grid-column:1/-1;min-width:0}
.wh-page .game-topline{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:flex-start;gap:12px;height:var(--row-h);min-height:0;margin:0;padding:0}
.wh-page .game-topline h1{margin:0;color:#ffd23a;font:400 34px/1 'Jersey 10',Jersey,sans-serif;letter-spacing:.04em;white-space:nowrap;transform:skewX(-8deg);text-shadow:2px 2px 0 #e0262b,4px 4px 0 #000}
.wh-page .arcade-tools{grid-column:2;grid-row:1;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;max-width:none;height:var(--row-h);margin:0;padding:0}
.wh-page .arcade-tools .button{height:44px;min-height:44px;margin:0;padding:0 10px;border:1px solid #4b4b53;border-radius:0;background:#141416;color:#ebe7da;font:400 10px/1 var(--font-pixel);white-space:nowrap}
.wh-page .arcade-tools .button:hover,.wh-page .arcade-tools .button:focus-visible{border-color:#ffd23a;color:#ffd23a;background:#141416}
.wh-page .feature-status{position:absolute;z-index:8;top:calc(var(--main-pt) + var(--row-h) + 4px);right:var(--side);max-width:min(460px,calc(100% - 2 * var(--side)));margin:0;padding:6px 10px;border:2px solid #ffd23a;background:#000;color:#fff;font:400 11px/1.4 var(--font-pixel)}
.wh-page .feature-status:empty{display:none}
.wh-page .mode-setup{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:var(--row-h);min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none}

.wh-page .mode-setup button{height:44px;min-height:44px;margin:0;padding:0 12px;border:0;border-radius:999px;background:#2d2d32;color:#ece8dc;font:400 10px/1 var(--font-pixel);white-space:nowrap;box-shadow:0 0 0 2px #000,inset 0 -2px #18181b,inset 0 2px #48484f}
.wh-page .mode-setup button:hover:enabled,.wh-page .mode-setup button:focus-visible{background:#3d3d44;outline:3px solid #ffd23a;outline-offset:2px}
.wh-page .play-layout{display:grid;grid-template-columns:minmax(0,1fr) var(--side-w);grid-template-rows:auto 1fr;gap:20px;align-items:start;align-self:start}
.wh-page .play-layout>.game-sidebar{grid-column:2;grid-row:1/span 2}.wh-page .play-layout>.circuit{grid-column:1;grid-row:2;align-self:start}
.wh-page .play-layout .cabinet{width:min(100%,max(var(--cab-min),calc((100vh - var(--chrome) - var(--pwa-safe-top, 0px)) * 4 / 3 + 2 * var(--bez))));width:min(100%,max(var(--cab-min),calc((100dvh - var(--chrome) - var(--pwa-safe-top, 0px)) * 4 / 3 + 2 * var(--bez))));max-width:100%;min-width:0;margin:0 auto}
/* Cabinet typography follows the TV width (container queries), not the viewport. */
.wh-page .cabinet{container:cab/inline-size;--hud-fs:12px;--hud-small:10px;--clock-fs:32px;--hud-pad:5px 16px;--hud-gap:22px;--bar-h:14px;--sta-h:4px;--seg:8px;--px:16px;--call-fs:12px;--ctrl-fs:11px;--kbd-fs:9px;--ctrl-gap:12px;--glyph:10px;--tools-fs:10px;--pill-h:26px;--pill-x:14px}
@container cab (max-width:679px){.wh-page .cabinet>*{--hud-fs:10px;--hud-small:8px;--clock-fs:24px;--hud-pad:4px 10px;--hud-gap:14px;--bar-h:10px;--sta-h:3px;--seg:6px;--px:12px;--call-fs:10px;--ctrl-fs:10px;--kbd-fs:9px;--ctrl-gap:10px;--glyph:9px;--tools-fs:10px;--pill-h:44px;--pill-x:12px}}
@container cab (max-width:599px){.wh-page .controls{padding:4px}.wh-page .controls button{grid-template-columns:auto;grid-template-areas:"glyph" "label" "key";row-gap:3px;padding:2px;white-space:normal;line-height:1.1}}
@container cab (max-width:439px){.wh-page .cabinet>*{--hud-fs:8px;--hud-small:7px;--clock-fs:18px;--hud-pad:4px 7px;--hud-gap:9px;--bar-h:8px;--sta-h:3px;--seg:5px;--px:10px;--call-fs:9px;--ctrl-fs:10px;--kbd-fs:9px;--ctrl-gap:9px;--glyph:8px;--tools-fs:9px;--pill-h:44px;--pill-x:10px}.wh-page #callout{padding:0 8px}.wh-page .tools{gap:9px;padding:0 4px}}
/* Smallest TVs: the clock joins the top row so both fighter names fit. */
@container cab (max-width:339px){.wh-page .hud{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"top top" "player enemy";column-gap:8px}.wh-page .round{grid-area:top;justify-self:end;align-self:center;display:flex;align-items:center;gap:5px}.wh-page .round small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.wh-page #clock{font-size:12px}}

/* Sidebar: two equal utility cards with pixel headings. */
.wh-page .game-sidebar{display:grid;gap:14px;align-items:stretch;grid-auto-rows:auto;min-width:0;color:#f4edda;font-size:13px}
.wh-page .game-sidebar>section{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:18px;border:1px solid #887333;border-radius:8px;background:#20201e;box-shadow:inset 0 3px #e2bd3b;color:#f4edda}
.wh-page .game-sidebar h2{margin:0 0 12px;color:#f4d34e;font:700 14px/1.35 var(--font-pixel);letter-spacing:.03em;text-transform:uppercase}
.wh-page .game-sidebar .side-heading{margin-bottom:12px}.wh-page .game-sidebar .side-heading h2{margin:0}
.wh-page .game-sidebar p,.wh-page .game-sidebar li,.wh-page .game-sidebar label{color:#f4edda}
.wh-page .game-sidebar .small-note,.wh-page .game-sidebar .motion-note{color:#d5cbb0}
.wh-page .game-sidebar .key-guide,.wh-page .game-sidebar #high-scores li{border-color:#625731}
.wh-page .game-sidebar kbd{background:#141412;border-color:#887333;color:#f4d34e;box-shadow:none}
.wh-page .game-sidebar button{background:#302d22;border:1px solid #a68a34;color:#ffe269}
.wh-page .game-sidebar button:hover{background:#443c22}
.wh-page .game-sidebar button:focus-visible,.wh-page .game-sidebar input:focus-visible{outline:2px solid #ffe269;outline-offset:3px}
.wh-page .game-sidebar .side-heading span,.wh-page .game-sidebar output{color:#f4d34e}
.wh-page .game-sidebar canvas{width:auto;height:auto}
.wh-page #high-scores li{display:block;font-size:13px}
.wh-page .game-sidebar .volume-label{margin-top:16px}
.wh-page .game-sidebar .audio-options{display:grid;align-content:start;gap:16px}
.wh-page .game-sidebar .audio-options>:not(h2),.wh-page .game-sidebar .audio-options #music-button{margin:0}
.wh-page .game-sidebar .audio-options>button{justify-self:stretch;min-height:48px}
.wh-page .game-sidebar .audio-options .volume-label{margin:0;flex-wrap:wrap;gap:8px 16px}
.wh-page .game-sidebar .audio-options #audio-status{line-height:1.6;overflow-wrap:anywhere}
.wh-page .game-sidebar .motion-option{margin:0;padding:12px 0;color:#f4edda}
.wh-page .game-sidebar input{accent-color:#eacb45}
.wh-page .game-sidebar input[type=range]{width:100%;min-width:0;height:44px;appearance:none;-webkit-appearance:none;background:transparent}
.wh-page .game-sidebar input[type=range]::-webkit-slider-runnable-track{height:6px;background:#51472a;border:1px solid #a98c35;border-radius:3px}
.wh-page .game-sidebar input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border:2px solid #ffe487;border-radius:50%;background:#d6ad28}
.wh-page .game-sidebar input[type=range]::-moz-range-track{height:6px;background:#51472a;border:1px solid #a98c35;border-radius:3px}
.wh-page .game-sidebar input[type=range]::-moz-range-thumb{width:13px;height:13px;border:2px solid #ffe487;border-radius:50%;background:#d6ad28}
@media(min-width:801px){.wh-page .game-sidebar{grid-template-rows:repeat(2,minmax(min-content,1fr)) auto auto}.wh-page .game-sidebar>section{height:100%}}
@media(min-width:421px) and (max-width:800px){.wh-page .game-sidebar>section{height:100%}}

/* Shared arcade panels inherit the diner palette on this game. */
:root body.wh-page{background:radial-gradient(ellipse 80% 50% at 50% 0,#3b2d12,transparent 70%),#0d0d10;}
.wh-page{
 --bg-0:#0b0b0c;--bg-1:#151411;--surface:#24221b;--line:#937728;
 --text:#fff1cb;--text-muted:#ccc2a6;--cyan:#ffd23a;--yellow:#ffd23a;
 --magenta:#ffd23a;--mint:#c2d27b;--accent:#ffd23a;
 --glow:0 0 0 2px #ffd23a,0 0 16px #ffd23a33;
 --dialog-button:#302d22;--dialog-hover:#443c22;--dialog-user:#302719;
}
.wh-page .arcade-dialog{
 color:var(--text);background:var(--bg-0);border:2px solid var(--cyan);
 border-radius:8px;padding:24px;box-shadow:0 0 0 4px #000,inset 0 0 0 2px #ffd23a26;
 font:400 16px/1.6 var(--font-body);
}
.wh-page .arcade-dialog:not(.link-panel){width:min(560px,calc(100vw - 32px));}
.wh-page .arcade-dialog::backdrop{background:rgb(0 0 0 / .82);backdrop-filter:blur(3px);}
.wh-page .arcade-dialog h2{
 color:var(--cyan);font:700 18px/1.4 var(--font-pixel);letter-spacing:.04em;margin-bottom:16px;
}
.wh-page .arcade-dialog .panel-heading{background:var(--bg-0);border-bottom:1px solid var(--line);}
.wh-page .arcade-dialog .panel-heading h2{margin:0;font-size:18px;letter-spacing:0;}
.wh-page .arcade-dialog h3{color:var(--cyan);}
.wh-page .arcade-dialog :is(button,.button){
 min-width:0;min-height:48px;max-width:100%;padding:12px 16px;
 border:1px solid var(--line);border-radius:4px;background:var(--dialog-button);color:var(--text);
 font:600 15px/1.5 var(--font-body);white-space:normal;overflow-wrap:anywhere;
}
.wh-page .arcade-dialog :is(button,.button):hover:enabled{background:var(--dialog-hover);border-color:var(--cyan);}
.wh-page .arcade-dialog .primary{
 background:var(--cyan);border-color:var(--cyan);color:var(--bg-0);
}
.wh-page .arcade-dialog .primary:hover:enabled{background:#ffe269;color:var(--bg-0);}
.wh-page .arcade-dialog .dialog-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px;
}
.wh-page .arcade-dialog .dialog-actions .button{
 width:100%;min-height:56px;font:700 12px/1.5 var(--font-pixel);
}
.wh-page .arcade-dialog .panel-actions{gap:14px;margin-top:18px;}
.wh-page .title-dialog-content{display:grid;gap:16px;min-width:0}
.wh-page .title-dialog-content p{margin:0}
.wh-page .title-volume{display:grid;gap:8px;min-width:0;font-size:13px}
.wh-page .title-volume input[type=range]{width:100%;min-height:44px}
/* Options group the audio toggles, motion preference and volume separately. */
.wh-page .title-menu-dialog:has(.title-volume) .title-dialog-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.wh-page .title-menu-dialog .title-option-toggle{width:100%;margin:0;min-height:48px}
.wh-page .title-menu-dialog .title-option-toggle:nth-child(3),.wh-page .title-menu-dialog :is(.title-volume,.title-credit-copy,.title-dialog-back){grid-column:1/-1}
.wh-page .title-menu-dialog .title-volume{gap:12px;padding:16px 0;border-block:1px solid var(--line);font-size:14px;line-height:1.5}
.wh-page .title-menu-dialog .title-volume input[type=range]{display:block;min-width:0;width:100%;height:48px;margin:0;touch-action:manipulation}
.wh-page .title-menu-dialog:has(.title-volume) .title-credit-copy{font-size:14px;line-height:1.6}
.wh-page .title-menu-dialog .title-dialog-back{width:100%;margin:0;min-height:48px}
@media(max-width:540px){.wh-page .title-menu-dialog:has(.title-volume) .title-dialog-content{grid-template-columns:minmax(0,1fr);gap:20px}.wh-page .title-menu-dialog .title-volume{padding-block:12px}}
.wh-page .arcade-dialog .chat-actions{gap:14px;}
.wh-page .arcade-dialog .dialog-close{flex:none;min-height:44px;padding:9px 12px;}
.wh-page .arcade-dialog :is(.field,.check-line){color:var(--text);}
.wh-page .controls{touch-action:manipulation;}
.wh-page .controls [data-action]{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
.wh-page .arcade-dialog :is(input,textarea,select){accent-color:var(--cyan);}
.wh-page .arcade-dialog :is(.field input,.field textarea,.field select,.link-form textarea){
 background:#141412;color:var(--text);border-color:var(--line);font-size:16px;
}
.wh-page .arcade-dialog :is(input,textarea)::placeholder{color:var(--text-muted);opacity:1;}
.wh-page .arcade-dialog :is(button,a,input,textarea,select,summary,[tabindex]):focus-visible{
 outline:2px solid var(--cyan);outline-offset:3px;
}
.wh-page .arcade-dialog :is(.prompt-button,.knowledge-question,.skin-choice){
 background:var(--surface);border-color:var(--line);color:var(--text);
}
.wh-page .arcade-dialog .skin-choice[aria-pressed=true]{outline-color:var(--cyan);}
.wh-page .arcade-dialog :is(.chat-bubble,.stat-box,.achievement-row,.owner-card,.draft-copy){
 background:var(--surface);border-color:var(--line);color:var(--text);
}
.wh-page .arcade-dialog .chat-bubble.user{background:var(--dialog-user);}
.wh-page .arcade-dialog .chat-bubble strong{color:var(--cyan);}
.wh-page .arcade-dialog :is(.muted-copy,.link-disclosure,.stat-box span,.achievement-row p,.run-history p){color:var(--text-muted);}
.wh-page .arcade-dialog :is(.stat-box strong,.field){color:var(--text);}
.wh-page .arcade-dialog :is(.run-history p,.post-score,.ranking-list li,.owner-row){border-color:var(--line);}
.wh-page .arcade-dialog .earned{color:var(--mint);}
.wh-page .arcade-dialog .feature-status{
 position:static;max-width:none;margin:12px 0;padding:0;border:0;background:none;
 color:var(--text-muted);font:400 15px/1.6 var(--font-body);
}
@media(max-width:540px){
 .wh-page .arcade-dialog{padding:20px;}
 .wh-page .arcade-dialog .panel-heading{top:-20px;}
 .wh-page .arcade-dialog .panel-heading h2{font-size:16px;}
 .wh-page .arcade-dialog .dialog-actions{grid-template-columns:minmax(0,1fr);gap:14px;}
}
@media(max-width:380px){
 .wh-page .arcade-dialog{padding:16px;}
 .wh-page .arcade-dialog .panel-heading{top:-16px;}
}

/* Opponents ranking ladder. */
.wh-page .circuit{min-width:0;margin:0;padding:14px 16px 16px;border:2px solid #2a2a2f;border-radius:10px;background:#000;box-shadow:inset 0 0 0 2px #000,inset 0 0 0 4px #e2bd3b40}
.wh-page .circuit h2{margin:0 0 12px;color:#ffd23a;font:700 14px/1.2 var(--font-pixel);letter-spacing:.18em;text-align:center}
.wh-page #roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.wh-page #roster li{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"rank mark" "name name" "role role";align-items:center;column-gap:8px;row-gap:3px;padding:9px 8px 10px 22px;border:2px solid #2c2c31;background:#0f0f11;color:#cfc9b8;font:400 11px/1.25 var(--font-pixel)}
.wh-page .ladder-rank{grid-area:rank;color:#8f897a;font:700 18px/1 var(--font-pixel)}
.wh-page .ladder-name{grid-area:name;color:#fff;font-size:10px;font-weight:700;text-transform:uppercase}
.wh-page .ladder-role{grid-area:role;color:#aaa392;font-size:9px}
.wh-page .ladder-mark{grid-area:mark;min-height:1.2em;color:#7fd6df;font-size:9px;letter-spacing:.08em}
.wh-page #roster li.current{border-color:#ffd23a;background:#1c1607}.wh-page #roster li.current .ladder-rank,.wh-page #roster li.current .ladder-mark{color:#ffd23a}
.wh-page #roster li.next{border-color:#7a6a2a}.wh-page #roster li.next .ladder-mark{color:#ffd23a}
.wh-page #roster li.cleared .ladder-rank{color:#7fd6df}
.wh-page #roster li:is(.current,.next)::before{content:'';position:absolute;left:8px;top:12px;width:7px;height:12px;background:#ffd23a;clip-path:polygon(0 0,25% 0,25% 14.29%,50% 14.29%,50% 28.57%,75% 28.57%,75% 42.86%,100% 42.86%,100% 57.14%,75% 57.14%,75% 71.43%,50% 71.43%,50% 85.71%,25% 85.71%,25% 100%,0 100%)}
.wh-page footer{grid-column:1/-1;padding:12px;color:#a49d8c;font-size:10px;line-height:1.6;text-align:center}

/* Focus view: only the mode row and the TV remain. */
.wh-page.focus-play{--top:58px}
.wh-page.focus-play :is(.game-header,.game-topline,.arcade-tools,.game-sidebar,.circuit,footer){display:none}
.wh-page.focus-play .play-layout{display:grid;grid-template-columns:minmax(0,1fr)}
.wh-page.focus-play .mode-setup{grid-column:1/-1;grid-row:1}
.wh-page.focus-play .play-layout .cabinet{max-width:100%;margin:0 auto}

/* Narrow desktop: arcade tools drop to a second row. */
@media(max-width:1099px){
 .wh-page{--top:158px;--row-gap:6px;--side-w:250px}
 .wh-page.focus-play{--top:56px}
 .wh-page .game-layout{grid-template-columns:auto minmax(0,1fr)}
 .wh-page .mode-setup{grid-column:2;grid-row:1}
 .wh-page .arcade-tools{grid-column:1/-1;grid-row:2;height:44px}
}
/* Tablets and phones: single column, sidebar below the TV. */
@media(max-width:800px){
 .wh-page{--head-h:44px;--main-pt:4px;--side:8px;--row-h:44px;--row-gap:4px;--top:144px;--bot:8px;--bez:8px;--ctrl-h:58px}
 .wh-page.focus-play{--top:52px}
 .wh-page .game-header .brand-logo{width:64px;height:35px}
 .wh-page .game-header .header-right{display:flex;width:auto}
 .wh-page .game-topline h1{font-size:28px}
 .wh-page .arcade-tools{height:44px}
 .wh-page .play-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:14px}
 .wh-page .play-layout>:is(.game-sidebar,.circuit){grid-column:auto;grid-row:auto}
 .wh-page .game-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,calc(100vw - 64px));margin-inline:auto}
 .wh-page .game-sidebar>:is(.motion-option,.motion-note){grid-column:1/-1}
 .wh-page #roster{gap:6px}
}
@media(max-width:600px){
 .wh-page{--top:192px}
 .wh-page.focus-play{--top:52px}
 .wh-page .game-layout{grid-template-columns:minmax(0,1fr)}
 .wh-page .game-topline{grid-column:1;grid-row:1;height:44px;justify-content:space-between}
 .wh-page .arcade-tools{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:44px;gap:4px}
 .wh-page .arcade-tools .button{width:100%;padding:0 2px;font-size:9px}
 .wh-page .mode-setup{grid-column:1;grid-row:3;height:44px;gap:8px}
 .wh-page.focus-play .mode-setup{grid-row:1}
 .wh-page .feature-status{top:calc(var(--main-pt) + 34px + 4px)}
 .wh-page #roster{grid-template-columns:minmax(0,1fr)}
 .wh-page #roster li{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"rank name mark" "rank role mark";padding:8px 10px 8px 24px}
}
/* Match the other games' card gutters while keeping the boxing TV at full width. */
@media(max-width:760px){.wh-page .game-sidebar{width:calc(100vw - 40px)}}
@media(max-width:540px){.wh-page .game-sidebar{width:calc(100vw - 32px)}}
@media(max-width:420px){
 .wh-page{--side:6px;--bez:6px;--ring:2px;--hud-h:56px;--call-h:30px;--deck-gap:4px;--ctrl-h:58px;--tools-h:48px;--bot:6px;--cab-min:240px}
 .wh-page .game-header .brand-logo{width:55px;height:30px}
 .wh-page .game-topline h1{font-size:24px}

 .wh-page .mode-setup button{height:44px;padding:0 10px;font-size:9px}
 .wh-page .game-sidebar{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:800px) and (min-height:700px) and (orientation:portrait){.wh-page{--ctrl-h:68px}}

/* Short desktop windows: a narrower TV needs less HUD and deck height. */
@media(min-width:801px) and (max-height:700px){.wh-page{--hud-h:62px;--call-h:26px;--ctrl-h:58px}}
/* Short landscape phones: the TV fills the height; mode buttons sit in the left gutter. */
@media(max-height:500px) and (orientation:landscape){
 .wh-page{--main-pt:4px;--side:6px;--bot:4px;--cab-min:220px;--bez:4px;--ring:1px;--hud-h:48px;--call-h:22px;--deck-gap:2px;--ctrl-h:52px;--tools-h:48px}
 .wh-page .cabinet>*{
  --hud-fs:8px;--hud-small:7px;--clock-fs:16px;--hud-pad:3px 8px;--hud-gap:10px;--bar-h:7px;--sta-h:2px;--seg:5px;--px:9px;
  --call-fs:9px;--ctrl-fs:10px;--ctrl-gap:8px;--glyph:9px;--tools-fs:9px;--pill-h:44px;--pill-x:10px}
 .wh-page.focus-play{--top:4px}
 .wh-page.focus-play :is(.game-header,.game-topline,.arcade-tools,.game-sidebar,.circuit,footer){display:none}
 .wh-page .game-layout{padding-bottom:4px}
 .wh-page.focus-play .game-layout{grid-template-columns:minmax(0,1fr)}
 .wh-page.focus-play .mode-setup{grid-column:auto;grid-row:auto;position:absolute;z-index:3;top:8px;left:8px;width:96px;height:auto;flex-direction:column;align-items:stretch;gap:10px}

 .wh-page .mode-setup button{height:44px;padding:0 6px;font-size:9px}
 .wh-page .play-layout{grid-template-columns:minmax(0,1fr)}
 .wh-page .play-layout>:is(.game-sidebar,.circuit){grid-column:1;grid-row:auto}
 .wh-page.focus-play .play-layout{grid-row:1}
 .wh-page.focus-play .play-layout .cabinet{max-width:calc(100% - 2 * 104px)}
 .wh-page .controls{padding:3px 4px}
 .wh-page .controls button{grid-template-columns:auto auto;grid-template-areas:"glyph label";white-space:normal;line-height:1.1;column-gap:5px}
 .wh-page .controls kbd{display:none}
 .wh-page .tools{gap:10px;padding:0 4px}
 .wh-page .tools details>p{font-size:11px;width:min(360px,calc(100vw - 24px))}

}
/* Focus view on portrait phones: the spare height becomes a bigger controller. */
@media(max-width:800px) and (orientation:portrait){.wh-page.focus-play{--ctrl-h:84px}}
@media(max-height:500px) and (orientation:landscape){.wh-page{padding-bottom:env(safe-area-inset-bottom)}}

/* Art-direction pass: thicker CRT bezel, pixel type everywhere on the TV, one-line ticker, controller pad. */
.wh-page{--bez:16px}
.wh-page .cabinet{border-radius:22px}
.wh-page .stage::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;box-shadow:inset 0 0 0 2px #f5c51833,inset 0 0 40px #000c}
.wh-page .hud{row-gap:2px}
.wh-page .round{padding-left:6px}
.wh-page .stamina-label,.wh-page #role{font-size:max(8px,var(--hud-small));color:#cfcab9}
.wh-page #level{white-space:nowrap}
@container cab (max-width:439px){.wh-page .lvl-word{display:none}}
.wh-page #callout{display:block;line-height:var(--call-h);white-space:nowrap;overflow:hidden;text-overflow:clip;font-size:clamp(8px,2.6cqw,var(--call-fs))}
.wh-page #ticket[data-mode] #copy{font-family:var(--font-pixel);font-weight:400;font-size:max(9px,1.6cqw);line-height:1.4;letter-spacing:.04em;text-transform:uppercase}
.wh-page .tools button:disabled{opacity:1;color:#8a877d;background:transparent;box-shadow:none;outline:2px dashed #6a675f;outline-offset:-2px}
/* Controller: dodge/block share one dark d-pad slab, PUNCH is the round red A button. */
.wh-page .controls button:not(.punch){background:#2a2a28;box-shadow:0 0 0 2px #000,inset 0 2px #555,inset 0 -3px #161615}
.wh-page .controls button:not(.punch):hover:enabled,.wh-page .controls button:not(.punch):focus-visible{background:#3a3a37}
.wh-page .controls .punch,.wh-page .controls .punch:active:enabled{border-radius:999px;box-shadow:0 0 0 2px #000,inset 0 2px #ff6170,inset 0 -3px #7e0a1d}
.wh-page .controls kbd{color:#b8b4a8}
@container cab (max-width:599px){.wh-page .controls button>span[data-short]{font-size:0}.wh-page .controls button>span[data-short]::after{content:attr(data-short);font-size:var(--ctrl-fs)}.wh-page .cabinet>*{--glyph:12px}}
@media(max-width:800px){
 .wh-page .game-sidebar>section{padding-top:0;overflow:hidden}
 .wh-page .game-sidebar>section>h2,.wh-page .game-sidebar .side-heading{margin:0 -18px 12px;padding:10px 18px;background:#000;color:#ffd23a;border-bottom:2px solid #e2bd3b}
}
@media(max-width:420px){.wh-page{--bez:8px}}
@media(max-width:760px) and (min-height:501px){
 .wh-page{--tools-h:48px}
 .wh-page .tools button,.wh-page .tools summary{height:44px;min-height:44px}
}
@media(max-height:500px) and (orientation:landscape){.wh-page{--bez:4px}}



/* Scene modes style the cabinet only. The shared arcade page stays available;
   Focus view is the explicit opt-in for hiding navigation and sidebar cards. */
body.wh-page{--hud-h:0px;--call-h:0px}
body.wh-page .stage{height:auto;max-height:none}
body.wh-page .play-layout>.cabinet{width:min(100%,max(340px,calc((100dvh - var(--top) - 2 * var(--bez) - var(--ctrl-h) - var(--tools-h) - var(--deck-gap) - 20px - var(--pwa-safe-top, 0px))*var(--screen-ratio,1.3333))));padding:var(--bez);border:2px solid #a18a36;border-radius:10px;background:#181814;box-shadow:0 8px 30px #0008}
body.wh-page .game-header .back-link{display:inline-flex;min-height:44px;font-size:9px}
body.wh-page .screen{position:relative;border:2px solid #080808;overflow:hidden;background:#050505}
body.wh-page .screen>.stage{width:100%;min-height:0;max-height:none}
body.wh-page :is(#title-screen[hidden],#ticket[hidden],#pause-menu[hidden],.hud[hidden]){display:none!important}
body.wh-page.arcade-screen-mode{--screen-ratio:1.0667}
body.wh-page.arcade-screen-mode.title-screen-active{--screen-ratio:1.3333}
body.wh-page.arcade-screen-mode .screen{display:grid;grid-template-rows:12cqw minmax(0,1fr);aspect-ratio:16/15}
body.wh-page.arcade-screen-mode .screen>.stage{height:100%;aspect-ratio:auto}
body.wh-page.arcade-screen-mode.title-screen-active .screen{display:block;aspect-ratio:4/3}
body.wh-page.arcade-screen-mode.title-screen-active .stage{height:100%}
body.wh-page.arcade-screen-mode #overlay{position:absolute;inset:0;display:block;padding:0;background:#050505}
body.wh-page.arcade-screen-mode #title-screen{position:relative;width:100%;height:100%;padding:0;background:#050505 url('/assets/wh-punch-out/title-screen.png') center/100% 100% no-repeat;image-rendering:pixelated;box-shadow:none}
body.wh-page.arcade-screen-mode #title-screen #continue-note{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%)}
body.wh-page.arcade-screen-mode .title-menu{position:absolute;left:5%;bottom:7%;display:flex;flex-direction:column;gap:3px;width:37%;padding:5px;border:1px solid #ffd23a;background:#050505ed;margin:0}
body.wh-page.arcade-screen-mode .title-menu button{min-height:clamp(27px,4cqw,44px);padding:0 5px;font-size:clamp(7px,1.6cqw,14px);text-align:left;background:transparent;color:#fff;box-shadow:none}
body.wh-page.arcade-screen-mode .title-menu button:disabled{color:#85827a}
body.wh-page.arcade-screen-mode .title-menu button:focus-visible{outline:2px solid #ffd23a;outline-offset:0}
body.wh-page.arcade-screen-mode .title-menu button:hover:enabled{color:#ffd23a}

/* Reference scoreboard: counters and points above two separate health bars. */
body.wh-page.arcade-screen-mode .screen>.hud{position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 17%;grid-template-rows:46% 54%;grid-template-areas:"counters points clock" "player enemy clock";gap:0 2%;height:100%;width:100%;min-height:0;padding:1cqw 1.8cqw;overflow:hidden;clip-path:none;white-space:normal;border-bottom:2px solid #ffd23a;background-color:#c9e9fb;background-image:linear-gradient(#090d12 2px,transparent 2px),linear-gradient(90deg,#090d12 2px,transparent 2px);background-size:3cqw 3cqw}
body.wh-page.arcade-screen-mode .hud-counters{position:static;grid-area:counters;display:flex;gap:1.5cqw;width:auto;height:auto}
body.wh-page.arcade-screen-mode .hud .hud-stat{display:flex;align-items:center;gap:.5cqw;min-width:0;width:50%;height:100%;padding:0 .7cqw;border:2px solid #21b7c8;border-radius:6px;background:#080d15;color:#fff;font-size:clamp(9px,2.1cqw,22px);box-shadow:none}
body.wh-page.arcade-screen-mode .hud .px{width:2cqw;height:2cqw}
body.wh-page.arcade-screen-mode .hud-points{position:static;grid-area:points;display:flex;align-items:center;justify-content:center;gap:1cqw;width:auto;height:100%;padding:0 .8cqw;border:2px solid #080d15;border-radius:999px;background:#06a326;color:#fff;box-shadow:0 0 0 1px #fff;font-size:clamp(7px,1.9cqw,20px)}
body.wh-page.arcade-screen-mode .round{grid-area:clock;display:grid;align-content:center;width:auto;height:100%;padding:0;border:2px solid #080d15;border-radius:6px;background:#06a326;box-shadow:0 0 0 1px #fff;gap:2px}
body.wh-page.arcade-screen-mode #clock{font-size:clamp(12px,3.6cqw,36px);line-height:1}
body.wh-page.arcade-screen-mode .round b{font-size:clamp(6px,1.3cqw,12px);line-height:1.2}
body.wh-page.arcade-screen-mode .round small{position:static;display:block;font-size:clamp(5px,1cqw,10px);width:auto;height:auto;clip-path:none;line-height:1.3}
body.wh-page.arcade-screen-mode .hud-bar{position:static;align-self:end;display:grid;grid-template-rows:auto auto;gap:.5cqw;width:100%;height:auto}
body.wh-page.arcade-screen-mode .hud-bar.player{grid-area:player}
body.wh-page.arcade-screen-mode .hud-bar.enemy{grid-area:enemy}
body.wh-page.arcade-screen-mode .hud-bar>label:first-child{display:flex;justify-content:space-between;margin:0;color:#080d15;font-size:clamp(6px,1.6cqw,15px);line-height:1}
body.wh-page.arcade-screen-mode .hud-bar>label:first-child span{max-width:85%;overflow:hidden;white-space:nowrap}
body.wh-page.arcade-screen-mode .hud progress{height:1.7cqw;min-height:5px;--seg:1.6cqw;--bar-c:#fff;background:#090d12;box-shadow:none;transform:none}
body.wh-page.arcade-screen-mode #enemy{--bar-c:#ef2939}
body.wh-page.arcade-screen-mode .hud :is(#role,.stamina-label,#stamina){display:none}

/* Three-column faceoff: connected fighter portraits, event, records, announcer. */
body.wh-page.arcade-screen-mode #ticket[data-mode]{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto minmax(44px,auto);grid-template-areas:"faceoff" "summary" "copy" "quote" "start";align-content:space-between;justify-items:stretch;gap:1cqw;width:100%;height:100%;min-width:0;max-width:none;min-height:0;max-height:none;overflow:hidden;margin:0;padding:1cqw;border:0;border-radius:0;background:#050505;box-shadow:none;font-family:var(--font-pixel);text-align:center}
body.wh-page.arcade-screen-mode #ticket>*{min-width:0;margin:0}
body.wh-page.arcade-screen-mode #ticket-kicker,body.wh-page.arcade-screen-mode #win-bell{display:none}
body.wh-page.arcade-screen-mode #ticket>.portrait-row{grid-area:faceoff;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(0,1fr);grid-template-areas:"challenger center champion";align-items:stretch;gap:1cqw;min-width:0;min-height:0}
body.wh-page.arcade-screen-mode #ticket .challenger-panel,body.wh-page.arcade-screen-mode #ticket .opponent-panel{display:flex;flex-direction:column;gap:.8cqw;min-width:0}
body.wh-page.arcade-screen-mode #ticket .challenger-panel{grid-area:challenger}
body.wh-page.arcade-screen-mode #ticket .opponent-panel{grid-area:champion}
body.wh-page.arcade-screen-mode #ticket .ethen-frame,body.wh-page.arcade-screen-mode #ticket .opp-frame{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:10cqw auto;justify-items:stretch;gap:0;min-width:0;width:100%;margin:0;padding:0;border:0;background:none}
body.wh-page.arcade-screen-mode #ticket .ethen-frame::before{content:none}
body.wh-page.arcade-screen-mode #ticket .fighter-intro{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1cqw;min-width:0;padding:.8cqw;border:2px solid #fff;background:#050505}
body.wh-page.arcade-screen-mode #ticket .fighter-card-heading{color:#54dd69;font-size:clamp(6px,1.8cqw,18px);line-height:1.2;letter-spacing:.08em}
body.wh-page.arcade-screen-mode #ticket .opp-frame .fighter-card-heading{color:#f0444a}
body.wh-page.arcade-screen-mode #ticket .fighter-byline{margin:0;color:#fff;font-size:clamp(5px,1.35cqw,13px);line-height:1.5;text-wrap:balance}
body.wh-page.arcade-screen-mode #ticket #portrait,body.wh-page.arcade-screen-mode #ticket #ethen-portrait{display:block;width:100%;height:auto;margin:0;min-width:0;max-height:none;aspect-ratio:1;object-fit:contain;border:2px solid #fff;background:#1258d7;box-shadow:none;image-rendering:pixelated}
body.wh-page.arcade-screen-mode #ticket #ethen-portrait{background:#05a329}
body.wh-page.arcade-screen-mode #ticket .fighter-record,body.wh-page.arcade-screen-mode #ticket #card-stats{margin:0;padding:0;color:#fff;font-size:clamp(5px,1.35cqw,13px);line-height:1.55;white-space:pre-line;text-align:center}
body.wh-page.arcade-screen-mode #ticket .record-rank{color:#54dd69}
body.wh-page.arcade-screen-mode #ticket #card-stats{display:grid;grid-template-columns:minmax(0,1fr);gap:0;border:0;background:none}
body.wh-page.arcade-screen-mode #ticket #card-stats>div{display:flex;justify-content:center;gap:.5em;padding:0}
body.wh-page.arcade-screen-mode #ticket #card-stats dt{color:#f0444a}
body.wh-page.arcade-screen-mode #ticket #card-stats dd{margin:0}
body.wh-page.arcade-screen-mode #ticket .matchup-center{grid-area:center;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:1.5cqw;min-width:0;padding:1cqw .2cqw}
body.wh-page.arcade-screen-mode #ticket .matchup-logo{padding:0;border:0;background:none;box-shadow:none;font-size:5cqw;line-height:1}
body.wh-page.arcade-screen-mode #ticket .matchup-logo-line{display:flex;gap:3px}
body.wh-page.arcade-screen-mode #ticket .matchup-logo-line b{display:grid;place-items:center;width:1.05em;height:1.05em;border:2px solid #ffd23a;background:#ffd23a;color:#050505;font:900 1em/1 Arial,sans-serif;box-shadow:inset 0 0 0 1px #050505}
body.wh-page.arcade-screen-mode #ticket .championship-name{margin:0;color:#fff;font-size:clamp(6px,1.75cqw,18px);line-height:1.4}
body.wh-page.arcade-screen-mode #ticket .matchup-emblem{display:grid;place-items:center;width:6cqw;height:6cqw;min-width:22px;min-height:22px;border:2px solid #e1b839;border-radius:50%;color:#ffd23a;background:#5b380b;font:900 clamp(9px,2cqw,20px)/1 Arial,sans-serif}
body.wh-page.arcade-screen-mode #ticket .matchup-vs{color:#ed2939;font-size:clamp(16px,4cqw,40px);line-height:1;text-shadow:none}
body.wh-page.arcade-screen-mode #ticket #title{display:none}
body.wh-page.arcade-screen-mode #ticket #match-line{margin:0;color:#ffd23a;font-size:clamp(7px,1.8cqw,18px);line-height:1.4}
body.wh-page.arcade-screen-mode #ticket #card-venue{display:block;margin:0;color:#fff;font-size:clamp(5px,1.2cqw,12px);line-height:1.6;white-space:pre-line}
body.wh-page.arcade-screen-mode #ticket #copy{grid-area:copy;margin:0;padding:0;border:0;background:none;color:#fff;font-size:clamp(6px,1.3cqw,14px);line-height:1.4}
body.wh-page.arcade-screen-mode #ticket[data-mode=ready] #copy{display:none}
body.wh-page.arcade-screen-mode #ticket #fighter-quote{grid-area:quote;display:grid;grid-template-columns:12% minmax(0,1fr) 14%;align-items:center;gap:1.5cqw;margin:0;padding:1cqw;border:2px solid #fff;border-radius:0;background:#f4f1e6;box-shadow:none;color:#080808;font-size:clamp(7px,1.65cqw,16px);line-height:1.5;text-align:left}
body.wh-page.arcade-screen-mode #ticket #fighter-quote::before{content:none}
body.wh-page.arcade-screen-mode #ticket #announcer-portrait{width:100%;height:auto;aspect-ratio:1;image-rendering:pixelated}
body.wh-page.arcade-screen-mode #ticket #announcer-lines{min-width:0}
body.wh-page.arcade-screen-mode #ticket .announcer-badge{padding:.6cqw;border:2px solid #ffd23a;background:#050505;color:#ffd23a;font-size:clamp(5px,1.1cqw,11px);line-height:1.6;text-align:center}
body.wh-page.arcade-screen-mode #ticket #fighter-quote:has(#announcer-lines:empty){display:none}
body.wh-page.arcade-screen-mode #ticket .fight-summary{grid-area:summary;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));font-size:clamp(6px,1.3cqw,13px)}
body.wh-page.arcade-screen-mode #ticket .fight-summary[hidden]{display:none}
body.wh-page.arcade-screen-mode #ticket #start{grid-area:start;justify-self:stretch;align-self:stretch;min-height:44px;margin:0;padding:8px 2cqw;border:2px solid #ffd23a;border-radius:0;background:#050505;color:#ffd23a;font-size:clamp(10px,1.7cqw,17px);line-height:1.5;white-space:normal;translate:none;box-shadow:none}
body.wh-page.arcade-screen-mode #ticket #start:focus-visible{outline:2px solid #fff;outline-offset:-4px}
body.wh-page.arcade-screen-mode #ticket #start:hover{background:#27200c}
body.wh-page.arcade-screen-mode #ticket[data-mode=paused] #match-line{color:#fff}
/* The last bell gets a dedicated winner portrait scene, like an arcade ending. */
body.wh-page.arcade-screen-mode #ticket.circuit-champion{grid-template-rows:auto minmax(0,1fr) auto auto minmax(44px,auto);grid-template-areas:"kick" "faceoff" "summary" "copy" "start";align-content:stretch;justify-items:center;gap:1.2cqw;padding:2cqw;background:radial-gradient(ellipse at 50% 38%,#2b2106 0,#080704 55%,#050505 100%)}
body.wh-page.arcade-screen-mode #ticket.circuit-champion #ticket-kicker{display:block;color:#ffd23a;font-size:clamp(8px,2.2cqw,22px);text-shadow:2px 2px #a31724}
body.wh-page.arcade-screen-mode #ticket.circuit-champion>.portrait-row{display:block;width:min(52cqw,42vh);min-height:0;align-self:center}
body.wh-page.arcade-screen-mode #ticket.circuit-champion .challenger-panel{display:flex;align-items:center;gap:.7cqw}
body.wh-page.arcade-screen-mode #ticket.circuit-champion .ethen-frame{display:grid;grid-template-rows:auto minmax(0,1fr);gap:.7cqw;width:100%;max-width:100%;padding:1cqw;border:3px solid #ffd23a;background:#10100b;box-shadow:0 0 0 2px #000,0 0 18px #ffd23a66}
body.wh-page.arcade-screen-mode #ticket.circuit-champion .ethen-frame .fighter-card-heading{color:#ffd23a;font-size:clamp(9px,2cqw,20px)}
body.wh-page.arcade-screen-mode #ticket.circuit-champion .ethen-frame .fighter-byline{font-size:clamp(6px,1.3cqw,13px)}
body.wh-page.arcade-screen-mode #ticket.circuit-champion #ethen-portrait{width:100%;max-height:29vh;aspect-ratio:1;object-fit:contain;border-color:#ffd23a;background:#05a329}
body.wh-page.arcade-screen-mode #ticket.circuit-champion .fighter-record,body.wh-page.arcade-screen-mode #ticket.circuit-champion .matchup-center,body.wh-page.arcade-screen-mode #ticket.circuit-champion .opponent-panel,body.wh-page.arcade-screen-mode #ticket.circuit-champion #fighter-quote{display:none}
body.wh-page.arcade-screen-mode #ticket.circuit-champion #title{display:block;align-self:center;color:#ffd23a;font-size:clamp(22px,5cqw,50px);line-height:1;text-shadow:3px 3px #e0262b}
body.wh-page.arcade-screen-mode #ticket.circuit-champion #fight-summary{width:min(100%,660px);padding:.8cqw 0;border-color:#ffd23a;background:#100d05}
body.wh-page.arcade-screen-mode #ticket.circuit-champion #copy{max-width:780px;color:#fff1a8;font-size:clamp(7px,1.5cqw,15px);text-wrap:balance}
body.wh-page.arcade-screen-mode #ticket.circuit-champion #start{width:min(100%,520px);justify-self:center;background:#ffd23a;color:#090806;font-weight:700}
@media(max-height:520px){body.wh-page.arcade-screen-mode #ticket.circuit-champion{gap:.6cqw;padding:1cqw}body.wh-page.arcade-screen-mode #ticket.circuit-champion>.portrait-row{width:min(38cqw,34vh)}body.wh-page.arcade-screen-mode #ticket.circuit-champion #ethen-portrait{max-height:22vh}body.wh-page.arcade-screen-mode #ticket.circuit-champion #fight-summary{padding:.4cqw 0}}
body.wh-page.arcade-screen-mode #ticket[data-mode=paused] .matchup-vs{font-size:clamp(10px,2.5cqw,25px);color:#ffd23a}
body.wh-page.arcade-screen-mode #ticket[data-mode=paused] .matchup-vs::after{content:'PAUSED'}
body.wh-page.arcade-screen-mode #ticket[data-mode=paused] .matchup-vs{font-size:0}
body.wh-page.arcade-screen-mode #ticket[data-mode=paused] .matchup-vs::after{font-size:clamp(8px,2cqw,20px)}
body.wh-page.arcade-screen-mode #callout,body.wh-page.fight-canvas-mode #callout{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* The framebuffer owns the ratio: screen borders never distort the artwork. */
body.wh-page.fight-canvas-mode .screen{display:block;aspect-ratio:auto}
body.wh-page.fight-canvas-mode .screen>.stage{height:auto;max-height:none;aspect-ratio:4/3}
.wh-page .combat-readout{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.wh-page .combat-readout p{display:flex;justify-content:space-between;gap:8px;min-width:0;margin:0}
.wh-page .combat-readout strong{font-weight:700;text-align:right}
@media(max-height:500px) and (orientation:landscape){body.wh-page.fight-canvas-mode .play-layout>.cabinet{display:grid;grid-template-columns:minmax(0,1fr) minmax(148px,32%);grid-template-rows:auto auto;gap:6px;width:min(100%,calc((100dvh - 118px)*1.3333 + 180px));align-items:start}body.wh-page.fight-canvas-mode .cabinet>.screen{grid-column:1;grid-row:1/span 2;min-width:0}body.wh-page.fight-canvas-mode .cabinet>.controls{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;height:auto;padding:0}body.wh-page.fight-canvas-mode .cabinet>.controls button{min-width:0;min-height:48px}body.wh-page.fight-canvas-mode .cabinet>.tools{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;height:auto;padding:0}body.wh-page.fight-canvas-mode .cabinet>.tools>*{min-width:0;min-height:44px;padding:4px;text-align:center;white-space:normal;font-size:8px}}
body.wh-page #roster{grid-template-columns:repeat(3,minmax(0,1fr))}
body.wh-page .ladder-face{grid-row:1/span 3;width:36px;height:36px}
body.wh-page .wh-description{max-width:760px;margin:12px 0;color:#d5cbb0;font:14px/1.45 Chakra,monospace}
@container cab (max-width:560px){
 body.wh-page.arcade-screen-mode:not(.title-screen-active) .screen{aspect-ratio:1/1.12;grid-template-rows:14cqw minmax(0,1fr)}
 body.wh-page.arcade-screen-mode #ticket .ethen-frame,body.wh-page.arcade-screen-mode #ticket .opp-frame{grid-template-rows:12cqw auto}
 body.wh-page.arcade-screen-mode #ticket #fighter-quote{grid-template-columns:14% minmax(0,1fr);font-size:clamp(7px,1.85cqw,10px)}
 body.wh-page.arcade-screen-mode #ticket .announcer-badge{display:none}
 body.wh-page.arcade-screen-mode .hud-points>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}
@media(max-width:800px){body.wh-page .play-layout>.cabinet{width:100%}body.wh-page .game-sidebar{width:100%}}
@media(max-width:420px){body.wh-page #roster{grid-template-columns:minmax(0,1fr)}}
/* Shared PWA safe area, in both normal and explicit Focus view. */
@media(max-width:600px){.wh-page .game-header{height:calc(var(--head-h) + var(--pwa-safe-top, 0px));padding:var(--pwa-safe-top, 0px) var(--side) 0}.wh-page .game-header .brand{min-height:var(--head-h)}.wh-page.focus-play .game-layout { padding-top: calc(var(--main-pt) + var(--pwa-safe-top, 0px)); }}
@media (display-mode: standalone) and (max-width: 600px){.wh-page{--pwa-safe-top: max(44px, calc(env(safe-area-inset-top, 0px) + 24px))}}
/* The artwork is fully visible; compact controls sit below it, not over fighters. */
body.wh-page.arcade-screen-mode.title-screen-active .screen{aspect-ratio:auto}
body.wh-page.arcade-screen-mode.title-screen-active .stage{height:auto}
body.wh-page.arcade-screen-mode #overlay{position:relative;inset:auto}
body.wh-page.arcade-screen-mode .stage>#ring{position:absolute;inset:0;width:100%;height:100%}
body.wh-page.arcade-screen-mode #title-screen{height:auto;background:#050505}
body.wh-page #title-art{display:block;width:100%;height:auto;aspect-ratio:4/3;background:#050505 url('/assets/wh-punch-out/title-screen.png') center/100% 100% no-repeat;image-rendering:pixelated}
body.wh-page .title-accessible{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%)}
body.wh-page.arcade-screen-mode .title-menu{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%;padding:6px;border:0;border-top:2px solid #ffd23a;background:#080b10}
body.wh-page.arcade-screen-mode .title-menu button{min-width:0;min-height:44px;padding:6px 4px;border:1px solid #9b8439;font-size:clamp(8px,1.65cqw,13px);line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-align:center}
/* Intrinsic card height lets dialogue/records wrap, including enlarged text. */
body.wh-page.arcade-screen-mode:not(.title-screen-active) .screen{aspect-ratio:auto;grid-template-rows:auto auto}
body.wh-page.arcade-screen-mode .screen>.hud{height:12cqw;min-height:52px}
body.wh-page.arcade-screen-mode .screen>.stage{height:auto}
body.wh-page.prefight-screen .screen{display:block}
body.wh-page.arcade-screen-mode #ticket[data-mode]{height:auto;overflow:visible;align-content:start;grid-template-rows:auto auto auto auto auto;gap:1.8cqw;padding:1.5cqw}
body.wh-page.arcade-screen-mode #ticket .ethen-frame,body.wh-page.arcade-screen-mode #ticket .opp-frame{grid-template-rows:minmax(12cqw,auto) auto}
body.wh-page.arcade-screen-mode #ticket .fighter-intro{min-height:12cqw;padding:1cqw}
body.wh-page.arcade-screen-mode #ticket :is(.fighter-record,.fighter-byline,#announcer-lines,#copy,#card-venue,.fight-summary dt,.fight-summary dd){max-width:100%;min-width:0;overflow-wrap:anywhere;white-space:normal}
body.wh-page.arcade-screen-mode #ticket :is(.fighter-record,.fighter-byline,#card-stats){font-size:clamp(8px,1.35cqw,13px)}
body.wh-page.arcade-screen-mode #ticket :is(#opponent-portrait-name,#card-venue){white-space:pre-line}
body.wh-page.arcade-screen-mode #ticket .matchup-center{justify-content:space-around;gap:2cqw}
body.wh-page.arcade-screen-mode #ticket #card-stats>div{flex-wrap:wrap;min-width:0}
body.wh-page.arcade-screen-mode #ticket .fight-summary>div{min-width:0}
body.wh-page.arcade-screen-mode #ticket .fight-summary dd{margin:0}
body.wh-page.arcade-screen-mode #ticket #fighter-quote{grid-template-columns:17% minmax(0,1fr) 14%;font-size:clamp(9px,1.65cqw,16px);padding:1.5cqw}
@container cab (max-width:560px){body.wh-page.arcade-screen-mode #ticket #fighter-quote{grid-template-columns:20% minmax(0,1fr)}body.wh-page.arcade-screen-mode #ticket .fighter-card-heading{font-size:clamp(7px,1.8cqw,10px);overflow-wrap:anywhere}}
/* One event heading and one large emblem; the duplicate square WH mark is retired. */
body.wh-page.arcade-screen-mode #ticket .championship-name{align-self:stretch;font-size:clamp(8px,2cqw,20px);line-height:1.5;margin:0}
body.wh-page.arcade-screen-mode #ticket .matchup-emblem{width:19cqw;height:19cqw;min-width:44px;min-height:44px;max-width:100%;border:3px solid #e1b839;font-size:clamp(18px,6cqw,60px);box-shadow:inset 0 0 0 2px #ffd23a,0 0 0 1px #5b380b}
body.wh-page.arcade-screen-mode #ticket .matchup-center{justify-content:space-between;padding-top:0}
/* Empty-ring title: crop the mat, then place choices and copy underneath. */
body.wh-page #title-art{aspect-ratio:960/570;background-size:100% auto;background-position:top center}
body.wh-page.arcade-screen-mode #title-screen :is(.intro-invitation,#continue-note){position:static;width:auto;height:auto;max-width:100%;clip-path:none;overflow-wrap:anywhere;white-space:normal;margin:0;padding:8px 10px;line-height:1.6;font-size:clamp(9px,1.5cqw,13px)}
body.wh-page .intro-invitation{color:#ffd23a;font-family:var(--font-pixel);border-top:1px solid #9b8439}
body.wh-page.arcade-screen-mode #title-screen #continue-note{padding-top:0;color:#c4bdac}

/* Keep the controller below the scene, with readable labels and full touch targets. */
body.wh-page .controls button{min-width:44px;min-height:44px}
body.wh-page .game-header .brand{min-width:44px;min-height:44px}
body.wh-page .controls kbd{font-size:max(9px,var(--kbd-fs))}
body.wh-page .tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;height:auto;min-height:48px;padding:2px 4px}
body.wh-page .tools :is(button,summary){justify-content:center;min-width:44px;min-height:44px;height:auto;padding:4px 6px;font-size:max(9px,var(--tools-fs));line-height:1.5;white-space:normal;text-align:center}
body.wh-page .tools details{margin:0}
body.wh-page .tools summary{width:100%}
body.wh-page .game-sidebar button{min-height:44px}
body.wh-page .game-sidebar .motion-option{display:flex;align-items:center;gap:8px;min-height:44px}
body.wh-page.arcade-screen-mode .title-menu button{font-size:clamp(9px,1.65cqw,13px)}
body.wh-page.arcade-screen-mode #ticket[data-mode=ready]{grid-template-rows:auto auto auto;grid-template-areas:"faceoff" "quote" "start"}
body.wh-page .asset-loading{display:flex;align-items:center;gap:12px;min-width:0;margin:10px 0;padding:12px;border:1px solid #9b8439;background:#080b10;color:#fff1cb}
body.wh-page #asset-status{flex:1;min-width:0;margin:0;font-size:clamp(11px,1.8cqw,14px);line-height:1.5;overflow-wrap:anywhere}
body.wh-page #asset-retry{flex:none;min-width:44px;min-height:44px;border-color:#9b8439;background:#201d15;color:#ffd23a;font-size:11px}
@media(max-width:420px){body.wh-page .asset-loading{flex-wrap:wrap}body.wh-page #asset-status{flex-basis:100%}}

/* Pause choices use the cabinet's black, cream and gold palette. The panel grows
   naturally on small screens, so every action stays reachable by page scrolling. */
body.wh-page.paused-screen .screen{display:block;aspect-ratio:auto}
body.wh-page.paused-screen .screen>.hud{display:none}
body.wh-page.paused-screen .screen>.stage{height:auto;aspect-ratio:auto}
body.wh-page.paused-screen .play-layout>.cabinet{display:block}
body.wh-page #pause-menu{display:grid;gap:16px;width:100%;min-width:0;margin:0;padding:clamp(16px,3cqw,28px);background:#080b10;color:#fff1cb;font-family:var(--font-pixel);text-align:center}
body.wh-page #pause-menu h2{margin:0;color:#ffd23a;font-size:clamp(18px,4cqw,28px);line-height:1.4;letter-spacing:.06em}
body.wh-page #pause-menu p{margin:0;color:#d5cbb0;font-size:clamp(10px,1.7cqw,13px);line-height:1.6;overflow-wrap:anywhere}
body.wh-page .pause-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
body.wh-page .pause-actions :is(button,a){display:flex;align-items:center;justify-content:center;min-width:44px;min-height:48px;margin:0;padding:10px 8px;border:1px solid #9b8439;border-radius:0;background:#201d15;color:#fff1cb;font:400 clamp(10px,1.7cqw,13px)/1.5 var(--font-pixel);text-align:center;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
body.wh-page .pause-actions :is(button,a):hover:enabled,body.wh-page .pause-actions a:hover{background:#3b3219;border-color:#ffd23a}
body.wh-page .pause-actions :is(button,a):focus-visible{outline:2px solid #ffd23a;outline-offset:3px}
body.wh-page .pause-actions #resume-fight{grid-column:1/-1;background:#ffd23a;border-color:#ffd23a;color:#080b10}
body.wh-page .pause-actions #resume-fight:hover{background:#ffe269}
body.wh-page .pause-actions button:disabled{color:#a7a18f;background:#181711;opacity:1}

/* Completed fights have one headline and scorecard. The upcoming fight keeps
   its own faceoff card, shown only after the player chooses to continue. */
body.wh-page.arcade-screen-mode .screen:has(#ticket:is([data-mode=won],[data-mode=lost]))>.hud{display:none}
body.wh-page.arcade-screen-mode #ticket:is([data-mode=won],[data-mode=lost]){grid-template-rows:auto auto auto auto auto auto;grid-template-areas:"result-title" "start" "result-copy" "summary" "result-banter" "quote";gap:12px;padding:clamp(16px,3cqw,28px)}
body.wh-page.arcade-screen-mode #ticket:is([data-mode=won],[data-mode=lost])>.portrait-row{display:none}
body.wh-page.arcade-screen-mode #ticket #result-title{grid-area:result-title;color:#ffd23a;font-size:clamp(18px,4.4cqw,36px);line-height:1.4;letter-spacing:.03em}
body.wh-page.arcade-screen-mode #ticket #result-copy{grid-area:result-copy;color:#fff1cb;font-size:clamp(11px,1.8cqw,16px);line-height:1.6}
body.wh-page.arcade-screen-mode #ticket #result-banter{grid-area:result-banter;color:#fff1cb;font-size:clamp(10px,1.65cqw,15px);line-height:1.6}
body.wh-page.arcade-screen-mode #ticket:is([data-mode=won],[data-mode=lost]) :is(#copy,#card-venue){display:none}
body.wh-page.arcade-screen-mode #ticket:is([data-mode=won],[data-mode=lost]) .fight-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;font-size:clamp(10px,1.7cqw,16px)}
body.wh-page.arcade-screen-mode #ticket:is([data-mode=won],[data-mode=lost]) #start{grid-area:start;justify-self:stretch;align-self:stretch;min-height:56px;margin:0;font-size:clamp(11px,1.8cqw,18px);background:#ffd23a;color:#080b10;font-weight:700}
/* A short landscape fight fits the framebuffer and deck after the cabinet is
   revealed. The shared arcade page remains available above and below it. */
@media(max-height:500px) and (orientation:landscape){
 body.wh-page.fight-canvas-mode .play-layout>.cabinet{width:min(100%,max(220px,calc((100dvh - var(--ctrl-h) - var(--tools-h) - var(--deck-gap) - 2 * var(--bez) - var(--bot) - 32px) * 4 / 3 + 2 * var(--bez) + 8px)))}
 body.wh-page.fight-canvas-mode .controls button{grid-template-columns:auto;grid-template-areas:"glyph" "label";row-gap:3px;column-gap:0}
}

/* Fight depth & replay: win-card rating, roster badges and rematch picks, after-hours venue. */
.wh-page .fight-rating{display:block;margin-top:.5em;color:#ffd84a;font:400 max(9px,1.1cqw)/1.35 var(--font-pixel);letter-spacing:.03em}
.wh-page #roster li .ladder-badges{grid-column:1/-1;color:#ffd84a;font-size:12px;letter-spacing:.12em}
.wh-page #roster li .ladder-rematch{grid-column:1/-1;justify-self:start;min-height:32px;padding:4px 10px;border:2px solid #ffd84a;border-radius:3px;background:#1c1606;color:#ffe9a0;font:400 10px/1 var(--font-pixel);cursor:pointer}
.wh-page #roster li .ladder-rematch:disabled{opacity:.45;cursor:not-allowed}
.wh-page #roster li .ladder-rematch:focus-visible{outline:3px solid #fff;outline-offset:2px}
.wh-page #roster li.secret{border-color:#6b2a52;background:#14070f}
.wh-page #roster li.rematch-current{border-color:#ffd84a}
body.wh-page #ticket.after-hours-card{background:radial-gradient(ellipse at 50% 30%,#2a1030 0,#0b0610 60%,#050307 100%)}
body.wh-page .fight-summary .corner-tip{grid-column:1/-1;justify-items:center;gap:3px}
body.wh-page .fight-summary .corner-tip dt{color:#9fe8ff}
body.wh-page .fight-summary .corner-tip dd{color:#fff1a8;font:600 max(10px,1.2cqw)/1.3 'Chakra Petch',Chakra,sans-serif;letter-spacing:0;white-space:normal;text-align:center}

/* Current phone fight deck: two rows of three controls, no retired practice/mobile-crop UI. */
@media(max-width:600px) and (orientation:portrait){body.wh-page.fight-canvas-mode{--ctrl-h:104px}body.wh-page.fight-canvas-mode .controls{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));row-gap:6px}}

/* Expanded mode keeps the entire 4:3 cabinet visible below its safe-area dock. */
body.wh-page.play-expanded .game-layout{position:fixed;z-index:1;inset:0;display:block;box-sizing:border-box;width:100%;max-width:none;height:100dvh;margin:0;padding:calc(58px + env(safe-area-inset-top,0px)) max(6px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));overflow:hidden}
body.wh-page.play-expanded :is(.game-header,.game-topline,.arcade-tools,.game-sidebar,.circuit,footer,.mode-setup){display:none!important}
body.wh-page.play-expanded .play-layout{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;margin:0;gap:0}
body.wh-page.play-expanded .play-layout>.cabinet{flex:0 1 auto;width:min(100%,max(var(--cab-min),calc((100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 58px - var(--hud-h) - var(--call-h) - var(--deck-gap) - var(--ctrl-h) - var(--tools-h) - 2 * var(--bez) - var(--bot)) * 4 / 3 + 2 * var(--bez)));max-width:100%;height:auto;min-width:0;margin:0 auto}
body.wh-page.play-expanded .play-layout>.cabinet .screen{max-width:100%}
body.wh-page.play-expanded .play-expansion-dock :is(button,.back-link){border-color:#937728;background:#0b0b0c;color:#fff1cb;box-shadow:0 2px 10px #000b}
body.wh-page.play-expanded .play-expansion-dock .game-expansion-toggle{border-color:#ffd23a;color:#ffd23a}
body.wh-page.play-expanded .play-expansion-dock :is(button,.back-link):focus-visible{outline-color:#ffd23a}
@media(max-height:500px) and (orientation:landscape){body.wh-page.play-expanded{--cab-min:180px}}
