/* Console's own visual identity. All navigation lives outside HUD and touch zones. */
:root{--accent:#80e6b0;--paper:#f0f4f1;--surface:#121c20;--line:#79948d44}html,body{font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--paper)}body{background:linear-gradient(110deg,#080e12ee,#0b151ccc),url('/art/console-hq21.png') center/cover fixed}h1,h2,h3{letter-spacing:-.035em}p{color:#b7c8c6}small{color:#9dbaa9}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
button{border-radius:7px;border:1px solid #638376;background:#182a25;color:#eefaf3;box-shadow:none;font-weight:650}button:focus-visible,select:focus-visible{outline:3px solid #b2ffcc;outline-offset:4px}.gold{background:linear-gradient(130deg,#b2f5b9,#73d997);color:#10291d;border:1px solid #c9f9d0;border-radius:6px;text-shadow:none;box-shadow:0 6px 24px #031d1355;font-weight:800;min-height:48px}.quiet{background:#111b20;border-color:#65776b77;color:#dee8e1}
header{position:fixed;min-height:58px;border:0;background:#091115f5;padding:8px max(24px,env(safe-area-inset-right)) 8px max(24px,env(safe-area-inset-left));justify-content:flex-start;gap:10px}#connectionLabel{margin-right:auto;color:#d9e2df;letter-spacing:.1em;text-transform:uppercase;font-size:10px}header button{min-height:40px;font-size:12px;white-space:nowrap}#menuToggle{margin-left:auto}#gameTools{position:absolute;right:22px;top:calc(100% + 8px);display:flex;flex-direction:column;min-width:220px;background:#101c22;border:1px solid #6e8b7a;padding:14px;box-shadow:0 14px 40px #0009;border-radius:8px;gap:10px;z-index:75}#gameTools .zoom-tools{justify-content:space-between;display:flex}#fullscreen{background:#1c3429;border:1px solid #80b299;border-radius:6px;color:#c3f9d6}#pause{background:#18252d;border:1px solid #6b818c}
main{max-width:1480px;padding:90px 4.5vw 40px}.intro{display:flex;align-items:center;justify-content:space-between;max-width:none;gap:32px;padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:24px}.intro .console-logo{width:clamp(200px,24vw,330px);height:130px;object-fit:contain;padding:8px}.intro>div{margin-right:auto}.intro h1{font-size:clamp(28px,3.5vw,45px);font-weight:650;margin:8px 0;text-shadow:none}.intro p{font-size:13px}.setup{grid-template-columns:minmax(250px,.65fr) minmax(500px,1.35fr);gap:30px;align-items:start}.team-panel{padding:0 0 0 30px;border:0;border-left:1px solid var(--line);background:none}.showcase{padding:10px 0;background:radial-gradient(ellipse at 50% 40%,#28554060,transparent 65%)}.showcase canvas{max-height:340px;object-fit:contain}.showcase h2{color:#f0f5ec;font-size:29px;font-weight:650}.showcase p{font-size:13px;padding:0 15px}
.mode-tabs{gap:12px}.mode-tabs button{position:relative;min-height:105px;flex:1;background:linear-gradient(0deg,#051218f5,#07121b44),url('/art/console-city21.png') center/cover;border:1px solid #788d8244;border-radius:5px;box-shadow:0 4px 16px #0005;color:#f5fff7;font-size:15px;padding:64px 8px 12px;text-shadow:0 2px 5px #000;transition:transform .16s,border-color .16s}.mode-tabs button[data-mode=street]{background-image:linear-gradient(0deg,#051218f5,#07121b44),url('/art/world23-alley.png')}.mode-tabs button[data-mode=duel]{background-image:linear-gradient(0deg,#051218f5,#07121b44),url('/art/world23-market.png')}.mode-tabs button.selected{filter:none;border:2px solid #a5f7c4;color:#d3ffe2;box-shadow:0 0 0 3px #59c88622}.mode-tabs button:hover{transform:translateY(-2px)}
select,input{background:#0e191e;border:1px solid #526b62;border-radius:5px;color:#e7f2ea;min-height:42px}.slot{padding:14px 0;gap:10px;grid-template-columns:32px minmax(110px,1fr) minmax(120px,1fr);border-top:1px solid var(--line)}.slot .outfit{grid-column:2;grid-row:2}.slot .fight-style{grid-column:3;grid-row:2}.slot .move-list{grid-column:2/4;border:0;padding:6px 0;min-height:30px;background:none;color:#96d9ae;justify-self:start;font-size:12px}.slot .pair{grid-row:auto}.start-row{padding-top:12px}.start-row button{min-height:50px}.join-panel{margin-top:35px;border-color:var(--line)}#duelOptions{background:#0e191e;border-color:var(--line)}#duelOptions legend{color:#b5c9bb}
#loading{background:#071114}#loading>img:not(.boot-logo){opacity:.16;filter:blur(3px)}#loading>.boot-logo{position:absolute;width:min(68vw,650px);height:auto;max-height:48vh;object-fit:contain;top:20%;left:50%;transform:translateX(-50%);opacity:1;padding:20px}.loading-panel{bottom:12%;padding:15px;background:none}.loading-panel small{display:none}.loading-panel p{font-size:13px;color:#c3d4c9}progress{height:5px;accent-color:#90e4a9;border:0;border-radius:4px}progress::-webkit-progress-bar{background:#263b32}progress::-webkit-progress-value{background:#9ceab8}
#consoleIntro{position:fixed;inset:0;z-index:95;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px;background:radial-gradient(ellipse at 50% 46%,#163c2b,#071014 65%);padding:5vh 6vw;overflow:hidden}#consoleIntro:before{content:'';position:absolute;inset:15%;border:1px solid #71d19b16;border-radius:50%;transform:scale(1.3);pointer-events:none}#consoleIntro>img{width:min(72vw,700px);max-height:48vh;object-fit:contain;padding:20px;animation:logoReveal .7s ease-out both}#consoleIntro p{font-size:11px;letter-spacing:.22em;color:#b6d3c1;text-align:center;margin:0}#enterConsole{min-width:260px;min-height:52px;background:#b7f3c7;color:#102d1b;border-color:#d6f9df;font-weight:800;border-radius:5px;display:flex;justify-content:space-between;align-items:center;padding:14px 23px}#consoleIntro small{font-size:9px;letter-spacing:.15em;color:#91aa9a}@keyframes logoReveal{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
/* A slim fixed top rail reserves room for portraits; the tools open only on demand. */
body.playing header,body[data-mode=duel].playing header{top:0;bottom:auto;left:0;right:0;width:100%;max-width:none;transform:none;border-radius:0;min-height:42px;height:42px;padding:4px max(10px,env(safe-area-inset-right)) 4px max(10px,env(safe-area-inset-left));background:#081115f0;border:0;border-bottom:1px solid #698e7b44;box-shadow:none;gap:8px}body.playing header>span{display:block;font-size:9px}body.playing header button{min-height:32px;font-size:11px;padding:5px 11px}body.playing #stage{top:42px;height:calc(var(--screen-height) - 42px)}body.playing #exit{border:0;display:block;color:#c5d9cc}body.playing #help{display:block}body.playing #gameTools{background:#101c22;border:1px solid #6e8b7a;top:calc(100% + 5px);right:10px}body.controller-only header{left:0;right:0;top:0;bottom:auto;transform:none;border-radius:0}body.controller-only #stage{top:42px;height:calc(var(--screen-height) - 42px)}
#touch .actions button,#touch .dpad button,#touch #extraActions button{border:1px solid #849e94;box-shadow:inset 0 2px 3px #caffde44,inset 0 -4px 6px #0006,0 3px 0 #020908,0 5px 12px #0008;border-radius:28%;background:linear-gradient(145deg,#344d45,#142820 65%);color:#f1f9f3;text-shadow:0 1px 1px #000;font-weight:750}#touch .actions .attack{background:linear-gradient(145deg,#c17e62,#602c26)}#touch .actions .jump{background:linear-gradient(145deg,#5da8b4,#1b4553)}#touch .actions .defend{background:linear-gradient(145deg,#8ea78c,#34513d)}#touch .actions .shoot{background:linear-gradient(145deg,#9d8fb8,#493956)}#touch button.pressed{border-color:#fff;filter:brightness(1.3);transform:translateY(3px)}#touch #extraActions{background:#0e1b19ee;border-color:#7f9e87;border-radius:16px}#touch #contextHelp{background:#2f6650;border:1px solid #b4e1bf;border-radius:7px}
.modal-content{border:1px solid #6f9a81;outline:0;border-radius:9px;background:linear-gradient(120deg,#10251ff5,#0a141df5);box-shadow:0 25px 100px #000b}.modal-content h2{color:#e3f7e9}.modal-content small{color:#97cda9}#toast{background:#10291f;border-color:#92c8a6;border-radius:6px}
@media(max-width:900px){.setup{grid-template-columns:minmax(210px,.65fr) minmax(350px,1.35fr);gap:18px}.team-panel{padding-left:18px}.mode-tabs{gap:7px}.mode-tabs button{font-size:12px}.intro .console-logo{width:210px;height:95px}.intro h1{font-size:30px}.slot select{font-size:12px}}
@media(max-width:650px) and (orientation:portrait){main{padding:78px 18px 30px}.intro{gap:12px;padding-bottom:15px}.intro .console-logo{width:130px;height:80px;padding:0}.intro h1{font-size:25px}.intro p{display:none}.intro small{font-size:8px}.setup{grid-template-columns:1fr}.showcase canvas{max-height:230px}.team-panel{padding-left:0;border-left:0}.mode-tabs button{min-height:96px}.slot .outfit{grid-column:2/4}.slot .fight-style{grid-column:2/4;grid-row:3}#connectionLabel{display:none!important}.join-panel{display:block}header{padding:8px 12px}header button{font-size:11px;padding:6px 10px}.intro>div{min-width:0}#consoleIntro>img{width:92vw;max-height:40vh}.dpad{bottom:18px}.actions{bottom:195px;right:12px}body.controller-only .actions{bottom:195px}body.controller-only #extraActions{bottom:calc(195px + var(--key)*2 + 25px);right:12px}#extraActions{bottom:calc(195px + var(--key)*2 + 25px)}#touch #contextHelp{bottom:26px;left:auto;right:16px;transform:none;width:110px}}
@media(orientation:landscape) and (max-height:550px){main{padding-top:68px}.intro{display:flex;padding-bottom:12px;margin-bottom:15px}.intro .console-logo{width:150px;height:65px;padding:0}.intro h1{font-size:26px}.intro p{display:none}.intro small{font-size:8px}.setup{grid-template-columns:.65fr 1.35fr}.team-panel{padding-left:18px}.showcase canvas{max-height:230px}.mode-tabs button{min-height:68px;padding:32px 4px 10px}.slot{padding:9px 0}.showcase h2{font-size:22px}body[data-mode=duel].playing:not(.controller-only) header{max-width:none;bottom:auto;top:0;padding:4px 10px}#consoleIntro{gap:10px}#consoleIntro>img{max-height:52vh}#consoleIntro p{font-size:9px}#enterConsole{min-height:42px;padding:10px 18px}body.playing #gameTools{max-height:calc(var(--screen-height) - 70px);overflow:auto}body.controller-only #remoteWaiting{top:20px}.dpad{bottom:12px}.actions{bottom:14px}}
@media(prefers-reduced-motion:reduce){#consoleIntro>img{animation:none}*{transition:none!important}}
body.playing #gameTools #help{display:block}
@media(orientation:portrait) and (max-width:650px){#touch .dpad{--key:52px}#touch .actions{--key:52px}#touch #extraActions{--key:52px}#touch #contextHelp{max-width:30vw}}
/* Revision 28 — illustrated Nino-family shell, reserved navigation and stable fullscreen. */
:root{--accent:#7bd4df;--paper:#fff0c8;--surface:#123b4b;--line:#d8b76a66}
body{background:linear-gradient(90deg,#051c2cea,#12394dc9),url('/art/console-city21.png') center/cover fixed}
button{font-family:'Trebuchet MS',Arial,sans-serif;font-weight:800;border-radius:12px;border:2px solid #8ac6c9;background:linear-gradient(#316e83,#144558 52%,#0d3042);box-shadow:inset 0 2px 0 #b9edf05c,inset 0 -4px 0 #071d2f66,0 4px 0 #041922;color:#f4f5df}
button:active{transform:translateY(2px);box-shadow:inset 0 2px 5px #0005,0 1px 0 #041922}
.gold,#enterConsole{background:var(--button-art,linear-gradient(#fff3b9,#edb33d 50%,#b86a19)) center/100% 100% no-repeat;border:0;border-radius:0;color:#432709;text-shadow:0 1px #fff8cb;box-shadow:none;font-weight:900;min-height:56px;padding:16px 32px}
.team-panel{border:1px solid #d4b16a88;border-radius:22px;padding:24px;background:linear-gradient(135deg,#214f64e8,#082636f2);box-shadow:inset 0 1px #c9e1d766,0 16px 30px #0005}
.mode-tabs button{border:2px solid #8ca8aa;border-radius:14px;box-shadow:inset 0 0 0 3px #102333,0 5px 0 #041922;font-size:15px}.mode-tabs button.selected{border-color:#ffe39c;box-shadow:inset 0 0 0 3px #9e722b,0 5px 0 #041922;color:#fff1bd}
.showcase{border-bottom:2px solid #b18b4b;border-radius:40%;background:radial-gradient(ellipse at 50% 70%,#59a3ad55,transparent 65%)}
#consoleIntro{background:linear-gradient(#041c2b8c,#031b2edb),url('/art/console-city21.png') center/cover}#consoleIntro>img{width:min(80vw,850px);max-height:56vh;padding:12px;filter:drop-shadow(0 12px 14px #001a29bb)}#consoleIntro:before{display:none}#enterConsole{min-width:290px}#consoleIntro p{color:#fff0ce;letter-spacing:.1em}
#loading{background:#08273b}#loading>img:not(.boot-logo){opacity:.4;filter:none}.loading-panel{background:linear-gradient(90deg,transparent,#08273bed,transparent);padding:20px}.loading-panel progress{height:15px;border:2px solid #e5cb91;border-radius:12px;overflow:hidden}.loading-panel progress::-webkit-progress-value{background:linear-gradient(#c6ff88,#4bba50)}
header,body.playing header,body[data-mode=duel].playing header{z-index:110;display:flex;flex-wrap:nowrap;min-width:0;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-top:max(4px,env(safe-area-inset-top));height:calc(46px + env(safe-area-inset-top));min-height:46px;background:#082b3df5;border-bottom:1px solid #d3b97a66}
#fullscreen,body.playing #fullscreen{display:block!important;visibility:visible!important;flex:0 0 auto;white-space:nowrap;min-height:36px;min-width:98px;padding:6px 10px;font-size:12px;border:1px solid #c6e8e3;background:linear-gradient(#43849c,#175068);border-radius:10px;color:#fff4d4;touch-action:manipulation}
#connectionLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}header>button{flex-shrink:0}#menuToggle{margin-left:auto}
body.playing #stage,body.controller-only #stage{top:calc(46px + env(safe-area-inset-top));height:calc(var(--screen-height) - 46px - env(safe-area-inset-top));bottom:auto}
#modal{padding-top:calc(65px + env(safe-area-inset-top))}#modal>div{max-height:calc(var(--screen-height) - 100px)}#gameTools{max-height:calc(var(--screen-height) - 70px);overflow:auto}
html.game-expanded,html.game-expanded body{height:100%;overflow:hidden}html.game-expanded #stage{width:100vw}html:fullscreen{width:100%;height:100%}html:-webkit-full-screen{width:100%;height:100%}
@media(max-width:650px){header,body.playing header{gap:5px}header #connectionLabel{display:none!important}.team-panel{padding:15px}.mode-tabs button{font-size:12px}#fullscreen,body.playing #fullscreen{min-width:92px;font-size:11px}#consoleIntro{padding-top:60px}#consoleIntro>img{max-height:45vh}}
