:root{--app-height:100vh;--app-width:100vw;--app-top:0px}
@supports(height:100dvh){:root{--app-height:100dvh;--app-width:100dvw}}
html{background:#08090c;overscroll-behavior:none}
body{background:#08090c}
/* Preserve the large RC1 targets and logical layout; fade backgrounds, never labels. */
#game #touch .actionpad button,#game #touch .actionpad button[data-key="special"]{background:rgba(8,12,20,.08);border:1px solid rgba(255,255,255,.42);box-shadow:none;color:#fff;opacity:1;text-shadow:1px 1px 2px #000,-1px -1px 2px #000,0 1px 4px #000;transition:background-color .1s,border-color .1s}
#game #touch .actionpad button:is(.held,:active),#game #touch .actionpad button[data-key="special"]:is(.held,:active){background:rgba(255,255,255,.34);border-color:rgba(255,255,255,.95);color:#fff;text-shadow:1px 1px 2px #000,-1px -1px 2px #000;box-shadow:0 0 0 2px #fff5}
#game #touch #finisherDpad button{background:rgba(8,12,20,.06);border:1px solid #ffffff66;color:#fff;text-shadow:1px 1px 2px #000,-1px -1px 2px #000;box-shadow:none}
#game #touch #finisherDpad button:is(.held,:active){background:rgba(255,255,255,.3);border-color:#fffffff0;color:#fff;text-shadow:1px 1px 2px #000;box-shadow:0 0 0 2px #fff4}
#game #joystick{background:#080c1410;border-color:#ffffff60;opacity:1}
#game #joystickThumb{background:#ffffff30;border-color:#ffffff90}
#game #joystick.engaged{background:#ffffff20;border-color:#ffffffb0}
/* Training has a complete Resume menu option; suppress the duplicate floating arrows. */
body.training-session:has(#overlay:not([hidden])) #pause{display:none!important}
body.training-session #overlay:has(#resume:not([hidden])) button::before{content:none!important;display:none!important}
/* Match mobile by input + available size, rather than UA sniffing. */
@media (pointer:coarse) and (max-width:1400px),(max-width:1000px) and (max-height:600px){
 html,body{position:fixed;left:0;top:0;margin:0;width:100%;height:var(--app-height);min-height:0;max-height:var(--app-height);overflow:hidden!important;overscroll-behavior:none}
 body{width:var(--app-width)}
 body>header,body>footer{display:none}
 body>main{box-sizing:border-box;position:relative;width:100%;height:100%;min-height:0;max-height:100%;max-width:none;margin:0;padding:0;overflow:hidden}
 main>section:not(#game):not(#storyScreen){box-sizing:border-box;min-height:0!important;max-height:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 main>section:not(#game):not(#storyScreen)::-webkit-scrollbar{display:none}
 #game,#game:fullscreen{width:var(--app-width)!important;height:var(--app-height)!important;max-height:var(--app-height);min-height:0;top:0;bottom:auto;overflow:hidden}
 #game .screen,#game:fullscreen .screen{max-width:100%;max-height:100%;margin:0}
 #storyScreen{height:var(--app-height);max-height:var(--app-height);min-height:0;overflow:hidden}
 dialog{box-sizing:border-box;position:fixed;top:calc(var(--app-top) + 8px);bottom:auto;margin-block:0;max-height:calc(var(--app-height) - 16px)!important;overscroll-behavior:contain;touch-action:pan-y}
 #playerAccount.player-account{max-height:calc(var(--app-height) - 16px)!important;overflow-y:auto}
 /* Original comfortable illustrated mobile cards, single column and natural scrolling. */
 #moveList.frameless-moves{width:min(720px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px));padding:10px 12px;border:1px solid #69d6ed88;border-radius:7px;background:linear-gradient(110deg,#091121f5,#15102bf2),var(--fighter-menu) left center/auto 100% no-repeat;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#8bdfff55 transparent;-webkit-overflow-scrolling:touch}
 #moveList .move-list-top{position:sticky;top:-10px;z-index:5;gap:10px;padding:4px 0 8px;background:#0a1023f5}
 #moveList #moveTitle{font-size:24px}
 #moveList.frameless-moves #moveRows{display:flex;flex-direction:column;gap:4px}
 #moveList.frameless-moves .move-column{display:contents}
 #moveList .move-group[data-group=basic]{order:0}#moveList .move-group[data-group=combos]{order:1}#moveList .move-group[data-group=specials]{order:2}#moveList .move-group[data-group=finishers]{order:3}#moveList .move-group[data-group=unlockable]{order:4}
 #moveList.frameless-moves #moveRows .move-group-title{font-size:16px;margin:8px 0 4px}
 #moveList.frameless-moves #moveRows article:not(.universal-combos){display:block;position:relative;min-height:95px;margin:6px 0;padding:12px 105px 12px 12px;background:#131c34c9;border:1px solid #bca25988;border-left:3px solid #ffda54;border-radius:5px;overflow:hidden}
 #moveList.frameless-moves #moveRows article:not(:has(img)){padding-right:12px;min-height:0}
 #moveList.frameless-moves #moveRows article h3{font-size:18px;line-height:1.15;margin:0 0 6px}
 #moveList.frameless-moves #moveRows article:not(.universal-combos)>strong{font-size:16px;line-height:1.3;max-width:none;margin:0 0 4px;padding:4px 7px}
 #moveList.frameless-moves #moveRows p{font-size:14px;line-height:1.4;margin:4px 0 0}
 #moveList.frameless-moves #moveRows article img{display:block;position:absolute;right:5px;top:5px;width:90px;height:calc(100% - 10px);object-fit:contain;mask-image:none;pointer-events:none}
 #moveList.frameless-moves #moveRows .universal-combos{padding:8px 10px;background:#080f24b0;border:0}
 #moveList.frameless-moves #moveRows .universal-combos p{gap:8px;margin:6px 0}
 #moveList.frameless-moves #moveRows .universal-combos strong{font-size:16px}
 #moveList.frameless-moves #moveRows .transformation-locked{border-left:3px solid #a1a3af!important;background:#111829d9!important}
 #moveList.frameless-moves>p{font-size:13px;line-height:1.4;margin:10px 0}
 #moveList :is(#closeMoves,#practiceFinisher,#pinMoves){min-height:44px;font-size:15px}
}
@media(prefers-reduced-motion:reduce){#game #touch .actionpad button{transition:none}}
@media (pointer:coarse) and (max-width:1400px),(max-width:1000px) and (max-height:600px){#moveList.frameless-moves #moveRows{align-items:stretch}#moveList.frameless-moves .move-group{width:100%}}
