@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:oklch(.94 .008 355);background:oklch(.105 0 0);font-synthesis:none;--red:oklch(.62 .218 355);--white:oklch(.96 0 0);--muted:oklch(.68 .007 355);--panel:oklch(.17 .008 355);--line:oklch(.29 .008 355)}*{box-sizing:border-box}body{margin:0;min-width:320px}button{font:inherit;cursor:pointer}button:focus-visible,[role=option]:focus-visible{outline:3px solid oklch(.84 .15 80);outline-offset:3px}.hidden{display:none!important}.topbar{height:76px;padding:0 max(4vw,24px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:oklch(.12 0 0)}.brand{display:flex;align-items:center;gap:12px;color:var(--white);text-decoration:none;font:800 25px 'Barlow Condensed',sans-serif;letter-spacing:.06em}.brand-mark{width:35px;height:35px;display:grid;place-items:center;background:var(--red);font-size:25px;line-height:1;position:relative}.brand-mark span{font-size:10px;position:absolute;right:2px;top:1px}.brand-light{font-weight:500}.topbar-right{display:flex;align-items:center;gap:26px}.edition{font-size:10px;letter-spacing:.19em;font-weight:800;color:var(--muted)}.edition-dot{display:inline-block;width:5px;height:5px;background:var(--red);border-radius:50%;margin:0 7px 2px}.icon-button{border:1px solid var(--line);color:var(--white);background:transparent;width:38px;height:38px;display:grid;place-items:center;font-size:18px}.icon-button:hover{background:var(--panel)}.select-screen{max-width:1512px;margin:auto;padding:56px max(4vw,24px) 0}.select-top{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:39px}.overline{font-size:11px;font-weight:800;letter-spacing:.18em;color:var(--red);margin:0 0 11px}.red-dash{display:inline-block;background:var(--red);width:21px;height:2px;vertical-align:middle;margin-right:9px}h1,h2,p{margin-top:0}h1,h2,.season-badge,.timer,.score,.hud-name,.result-score strong{font-family:'Barlow Condensed',Impact,sans-serif}h1{font-size:clamp(64px,8.2vw,116px);line-height:.85;letter-spacing:-.025em;margin:0}h1 em{font-style:normal;color:var(--red)}.intro{font-size:14px;color:var(--muted);margin:17px 0 0}.season-badge{display:flex;align-items:center;gap:12px;color:var(--red)}.season-badge>span{font-size:88px;font-weight:900;line-height:.75}.season-badge small{font:800 10px/1.5 'DM Sans',sans-serif;letter-spacing:.13em;color:var(--white)}.select-layout{display:grid;grid-template-columns:minmax(320px,.83fr) minmax(470px,1.17fr);gap:16px;min-height:500px}.roster-panel{padding:24px;background:var(--panel)}.section-heading{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.section-heading h2{font-size:25px;letter-spacing:.03em;margin:0}.section-heading span{font:700 13px 'Barlow Condensed';color:var(--muted)}.roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fighter-card{min-height:168px;position:relative;overflow:hidden;padding:0;background:oklch(.23 .01 355);border:2px solid transparent;text-align:left;color:var(--white);transition:transform .2s ease,background .2s ease,border-color .2s ease}.fighter-card:hover{transform:translateY(-3px)}.fighter-card.selected{border-color:var(--red);background:oklch(.29 .035 355)}.fighter-card .portrait{position:absolute;inset:0;display:flex;justify-content:center;align-items:end;overflow:hidden}.fighter-card .portrait svg{height:145%;width:120%;transform:translateY(22%)}.fighter-card:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,oklch(.10 0 0 /.94))}.fighter-card .card-name{position:absolute;bottom:12px;left:11px;z-index:1;font:800 22px 'Barlow Condensed',sans-serif;letter-spacing:.02em}.fighter-card .card-type{position:absolute;bottom:38px;left:12px;z-index:1;font-size:9px;letter-spacing:.12em;font-weight:800}.selection-tip{font-size:11px;color:var(--muted);line-height:1.5;margin-top:17px}.fighter-feature{position:relative;overflow:hidden;background:radial-gradient(circle at 68% 30%,oklch(.37 .11 355),transparent 44%),oklch(.21 .01 355);min-height:500px}.feature-glow{position:absolute;width:460px;height:460px;top:-100px;right:-70px;border:1px solid oklch(.79 .12 355 /.26);border-radius:50%;box-shadow:0 0 0 65px oklch(.75 .15 355 /.025),0 0 0 130px oklch(.75 .15 355 /.025)}.feature-art{position:absolute;width:70%;height:110%;right:-4%;top:-1%;display:flex;justify-content:center;align-items:flex-end;filter:drop-shadow(-20px 16px 0 oklch(.08 0 0 /.42))}.feature-art svg{width:100%;height:110%}.feature-info{position:absolute;left:28px;bottom:25px;z-index:1;width:min(55%,330px)}.feature-index{font:800 12px 'Barlow Condensed';color:var(--red);letter-spacing:.1em}.feature-label{font-size:10px;letter-spacing:.2em;font-weight:800;color:var(--white);margin:9px 0 3px}.feature-info h2{font-size:clamp(65px,7.5vw,106px);line-height:.82;margin:0 0 12px;letter-spacing:-.02em}.feature-desc{font-size:12px;color:oklch(.85 .01 355);line-height:1.5;max-width:260px;min-height:36px}.stat-row{display:flex;gap:17px;margin:20px 0 22px}.stat{min-width:60px}.stat label{display:block;font-size:9px;font-weight:800;letter-spacing:.13em;margin-bottom:7px}.stat-track{display:flex;gap:3px}.stat-track b{height:4px;width:14px;background:oklch(.43 .01 355)}.stat-track b.on{background:var(--red)}.fight-button{background:var(--red);border:0;color:white;font:800 20px 'Barlow Condensed';letter-spacing:.06em;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:30px;min-width:220px;transition:filter .16s ease,transform .16s ease}.fight-button:hover{filter:brightness(1.12);transform:translateY(-2px)}.fight-button span{font:400 25px 'DM Sans'}.bottom-strip{margin-top:22px;padding:18px 0;display:flex;align-items:center;gap:32px;border-top:1px solid var(--line);font-size:10px;letter-spacing:.14em;font-weight:800;color:var(--muted)}.bottom-strip i{display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--red);margin:0 9px 2px}.bottom-strip .text-button{margin-left:auto}.text-button,.quiet-button{background:none;border:0;color:var(--white);font-weight:800;font-size:10px;letter-spacing:.12em;padding:8px 0}.text-button:hover,.quiet-button:hover{color:var(--red)}.game-screen{padding:22px max(2vw,15px) 0;max-width:1600px;margin:auto}.arena-shell{position:relative;aspect-ratio:16/9;max-height:calc(100vh - 170px);margin:auto;background:#101018;overflow:hidden}canvas{display:block;width:100%;height:100%;object-fit:contain}.game-hud{position:absolute;z-index:4;left:3%;right:3%;top:3%;display:grid;grid-template-columns:1fr 145px 1fr;gap:18px;pointer-events:none}.hud-name{display:flex;align-items:baseline;gap:12px;font-size:30px;font-weight:800;letter-spacing:.04em;text-shadow:0 2px 3px #000}.hud-name small{font:800 10px 'DM Sans';letter-spacing:.13em}.hud-player.enemy .hud-name{flex-direction:row-reverse}.health-outer{height:18px;background:oklch(.12 0 0 /.8);border:2px solid oklch(.91 0 0);padding:2px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}.health-fill{height:100%;width:100%;background:linear-gradient(90deg,oklch(.68 .19 90),oklch(.85 .16 95));transition:width .25s}.enemy .health-fill{margin-left:auto}.meter-outer{height:6px;width:45%;background:oklch(.25 0 0);margin-top:7px}.enemy .meter-outer{margin-left:auto}.meter-fill{height:100%;width:0;background:oklch(.74 .18 235);transition:width .2s}.hud-center{text-align:center}.stage-label{font-size:9px;font-weight:800;letter-spacing:.16em}.timer{font-size:55px;font-weight:800;line-height:.95}.score{font-size:17px;font-weight:700;letter-spacing:.05em}.fight-announcement{position:absolute;z-index:6;inset:0;display:grid;place-items:center;pointer-events:none;font:900 clamp(80px,11vw,180px) 'Barlow Condensed';letter-spacing:-.015em;color:oklch(.98 0 0);text-shadow:0 7px 0 var(--red),0 18px 25px #000;opacity:0;transition:opacity .18s}.fight-announcement.show{opacity:1}.pause-overlay,.result-overlay{position:absolute;inset:0;z-index:8;background:oklch(.08 0 0 /.87);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.pause-overlay h2,.result-overlay h2{font-size:100px;line-height:.9;margin:0 0 10px}.pause-overlay p,.result-overlay p{color:var(--muted)}.pause-overlay .fight-button,.result-overlay .fight-button{margin:22px auto 10px}.result-inner{max-width:430px;padding:20px}.result-overlay h2{color:var(--red)}.result-score{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px 0;font-size:11px;font-weight:800;letter-spacing:.1em}.result-score strong{font-size:40px;color:var(--white)}.game-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 4px}.controls-hint{display:flex;gap:17px;flex-wrap:wrap;color:var(--muted);font-size:10px;font-weight:800;align-items:center}.controls-hint span{white-space:nowrap}kbd{font:800 10px 'DM Sans';background:oklch(.24 0 0);color:var(--white);border:1px solid oklch(.36 0 0);padding:4px 5px;margin-right:3px}.mobile-controls{display:none}dialog{border:1px solid var(--line);background:oklch(.16 0 0);color:var(--white);width:min(480px,calc(100vw - 32px));padding:26px}dialog::backdrop{background:oklch(.04 0 0 /.82)}.dialog-head{display:flex;align-items:start;justify-content:space-between}.dialog-head h2{font-size:48px;margin:0 0 22px}.dialog-head .icon-button{font-size:25px}.dialog-head .overline{margin-bottom:0}#leaderboardList{list-style:none;padding:0;margin:0}#leaderboardList li{padding:13px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:center;font-size:12px}#leaderboardList li strong{font-family:'Barlow Condensed';font-size:23px}#leaderboardList .rank{color:var(--red);font-weight:800}.leaderboard-note{font-size:11px;color:var(--muted);margin:18px 0 0}
@media(max-width:900px){.select-layout{grid-template-columns:1fr}.fighter-feature{min-height:480px}.fighter-card{min-height:145px}.select-top{margin-bottom:25px}.season-badge{display:none}.game-hud{grid-template-columns:1fr 75px 1fr;gap:6px}.hud-name{font-size:19px}.hud-name small{display:none}.timer{font-size:37px}.score{font-size:12px}.stage-label{font-size:7px}.health-outer{height:14px}.mobile-controls{display:flex;justify-content:space-between;gap:10px;padding:0 5px 15px}.mobile-pad,.mobile-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.mobile-controls button{touch-action:none;user-select:none;border:1px solid oklch(.43 0 0);color:white;background:oklch(.24 0 0);min-width:48px;min-height:40px;font:800 11px 'DM Sans'}.mobile-actions button:nth-child(3){background:var(--red);border-color:var(--red)}.controls-hint{display:none}.arena-shell{max-height:none}}
@media(max-width:550px){.topbar{height:60px}.edition{display:none}.select-screen{padding:36px 16px 0}h1{font-size:57px}.intro{font-size:12px}.roster-panel{padding:14px}.fighter-card{min-height:119px}.fighter-card .card-name{font-size:18px;bottom:8px}.fighter-card .card-type{font-size:7px;bottom:31px}.feature-art{right:-23%;width:97%}.feature-info{left:16px;bottom:16px;width:60%}.feature-info h2{font-size:65px}.feature-desc{font-size:11px}.fighter-feature{min-height:430px}.stat-row{gap:8px}.stat-track b{width:9px}.fight-button{min-width:190px}.bottom-strip{flex-wrap:wrap;gap:15px}.bottom-strip .text-button{margin-left:0}.game-screen{padding:0}.arena-shell{aspect-ratio:4/3}.game-hud{top:2%;left:2%;right:2%}.hud-name{font-size:17px}.stage-label{display:none}.timer{font-size:30px}.score{font-size:10px}.pause-overlay h2,.result-overlay h2{font-size:70px}.result-overlay p{font-size:12px}.result-score strong{font-size:30px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.audio-controls{display:flex;align-items:center;gap:12px}.audio-toggle{height:38px;min-width:72px;border:1px solid var(--line);background:oklch(.17 0 0);color:var(--white);font-size:18px;font-weight:700}.audio-toggle span{font-size:10px;letter-spacing:.08em;margin-left:3px}.audio-toggle[aria-label="Play background music"]{color:var(--muted)}.volume-control{display:flex;align-items:center;gap:8px;font-size:9px;font-weight:800;letter-spacing:.12em;color:var(--muted)}.volume-control input{width:78px;accent-color:var(--red);cursor:pointer}.fighter-card .portrait img{height:185%;width:100%;object-fit:contain;object-position:center top;transform:translateY(19%);filter:drop-shadow(0 8px 8px #0009)}.feature-art img{height:100%;width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 20px 12px #0009)}.fighter-feature{background:radial-gradient(circle at 68% 30%,oklch(.34 .05 355),transparent 44%),oklch(.18 .01 355)}.feature-art{width:69%;height:103%;right:-1%;top:-3%}.feature-glow{opacity:.6}
@media(max-width:550px){.audio-controls{gap:5px}.audio-toggle{min-width:54px;height:34px;font-size:15px}.audio-toggle span{font-size:8px}.volume-control{gap:3px}.volume-control span{display:none}.volume-control input{width:48px}.audio-controls .icon-button{width:34px;height:34px}.fighter-card .portrait img{height:195%;transform:translateY(22%)}.feature-art{width:96%;right:-24%}}
.fighter-card .portrait{align-items:flex-start;justify-content:center}.fighter-card .portrait img{width:160%;height:auto;max-width:none;object-fit:initial;transform:translateY(-1%);flex:none}
@media(max-width:550px){.fighter-card .portrait img{width:150%;height:auto;transform:translateY(-1%)}}
@media(max-width:550px){.arena-shell canvas{object-fit:cover}.game-footer{padding:8px 6px}.mobile-controls{padding-top:5px}.mobile-controls button{min-height:48px}}
.fighter-feature::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,oklch(.13 0 0 /.84),transparent 75%);pointer-events:none}.feature-info{z-index:2}
.track-label{max-width:145px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.12em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-left:2px solid var(--red);padding-left:10px}
@media(max-width:1050px){.edition{display:none}}
@media(max-width:650px){.track-label{display:none}}

/* Mobile fighting layout: preserve the full arena and keep controls within reach. */
@media(max-width:550px){
  .topbar{padding:0 10px;gap:8px}
  .brand{font-size:20px;gap:7px;white-space:nowrap}
  .brand-mark{width:30px;height:30px;font-size:21px}
  .topbar-right{gap:4px}
  .arena-shell{aspect-ratio:16/9}
  .arena-shell canvas{object-fit:contain}
  .fighter-card .card-type,.selection-tip,.feature-label,.stat label,.bottom-strip,.score{font-size:11px}
}
@media(pointer:coarse){
  .mobile-controls{display:flex;justify-content:space-between;gap:10px;padding:6px max(8px,env(safe-area-inset-right)) max(15px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .mobile-pad,.mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(48px,1fr));gap:7px}
  .mobile-controls button{min-width:48px;min-height:48px;touch-action:none;user-select:none;border:1px solid oklch(.43 0 0);color:white;background:oklch(.24 0 0);font:800 11px 'DM Sans',sans-serif}
  .mobile-actions button[data-key="l"]{background:var(--red);border-color:var(--red)}
  .controls-hint{display:none}
  .audio-toggle,.audio-controls .icon-button{min-width:44px;min-height:44px}
  .volume-control input{height:44px}
  .game-footer .text-button,.bottom-strip .text-button{min-height:44px;min-width:44px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){
  .is-playing .topbar{height:44px}
  .is-playing .game-screen{height:calc(100dvh - 44px);min-height:0;display:flex;align-items:center;justify-content:center;padding:0;position:relative;overflow:hidden}
  .is-playing .arena-shell{width:calc(100vw - 240px - env(safe-area-inset-left) - env(safe-area-inset-right));max-height:calc(100dvh - 44px);aspect-ratio:16/9;flex:none;margin:0}
  .is-playing .mobile-controls{position:absolute;inset:0;z-index:9;align-items:center;padding:44px max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));pointer-events:none}
  .is-playing .mobile-pad,.is-playing .mobile-actions{pointer-events:auto}
  .is-playing .mobile-controls button{min-height:52px}
  .is-playing .game-footer{position:absolute;top:0;right:max(8px,env(safe-area-inset-right));z-index:10;padding:0}
  .is-playing .game-footer .text-button{min-height:44px;padding:5px}
}

/* City journey and dialogue layer. */
.portrait-sheet{display:block;width:160%;height:185%;flex:none;background-repeat:no-repeat;background-size:300% 100%;background-position:left top;transform:translateY(-1%)}
.feature-sheet{display:block;height:100%;aspect-ratio:2/3;background-repeat:no-repeat;background-size:300% 100%;background-position:left top;filter:drop-shadow(0 20px 12px #0009)}
.journey-hud{position:absolute;z-index:5;left:3%;bottom:3%;width:min(37%,370px);padding:11px 14px;background:linear-gradient(90deg,#080c19dc,#080c1988);border-left:3px solid var(--red);pointer-events:none}
.journey-label{font:800 10px 'DM Sans',sans-serif;letter-spacing:.14em;color:#f7bdd0}
.journey-objective{font:700 14px 'DM Sans',sans-serif;color:#fff;line-height:1.25;margin-top:4px}
.journey-track{height:4px;background:#ffffff38;margin-top:9px;overflow:hidden}.journey-track span{display:block;height:100%;width:0;background:var(--red)}
.dialogue-overlay{position:absolute;inset:0;z-index:7;display:flex;align-items:flex-end;justify-content:center;padding:24px;background:linear-gradient(transparent 35%,#090d18a8 70%,#060913df)}
.dialogue-inner{width:min(740px,100%);padding:20px 24px 18px;background:#101927ed;border-left:4px solid var(--red);color:#fff;box-shadow:0 8px 18px #0008}
.dialogue-kicker{font:800 10px 'DM Sans',sans-serif;letter-spacing:.16em;color:#e5b8c6;margin-bottom:8px}
.dialogue-speaker{font:900 30px 'Barlow Condensed',sans-serif;line-height:1;color:#fff;letter-spacing:.04em}
.dialogue-text{font:500 17px/1.4 'DM Sans',sans-serif;margin:9px 0 14px;max-width:60ch}
.dialogue-next{border:0;background:var(--red);color:white;font:800 14px 'DM Sans',sans-serif;min-height:44px;padding:9px 18px;display:flex;align-items:center;gap:18px}
.dialogue-next span{font-size:22px;line-height:1}
.result-overlay h2{font-size:clamp(48px,6.2vw,90px)}
@media(max-width:900px){.journey-hud{width:min(48%,310px)}.journey-objective{font-size:12px}.dialogue-overlay{padding:12px}.dialogue-inner{padding:14px 16px}.dialogue-text{font-size:14px}.dialogue-speaker{font-size:25px}}
@media(max-width:550px){.fighter-card .portrait-sheet{width:150%;height:195%}.journey-hud{left:2%;bottom:3%;width:62%;padding:7px 9px}.journey-label{font-size:8px}.journey-objective{font-size:11px}.journey-track{margin-top:5px}.dialogue-overlay{align-items:center;background:#070b17d9}.dialogue-inner{max-height:96%;overflow:auto}.dialogue-text{font-size:12px;margin:5px 0 8px}.dialogue-speaker{font-size:21px}.dialogue-kicker{font-size:8px;margin-bottom:4px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){.is-playing .dialogue-overlay{padding:9px;align-items:flex-end}.is-playing .dialogue-inner{max-width:72%;max-height:100%;padding:10px 13px}.is-playing .dialogue-text{font-size:12px;margin:4px 0 6px}.is-playing .dialogue-speaker{font-size:22px}.is-playing .dialogue-next{min-height:44px}.is-playing .journey-hud{width:42%;padding:5px 8px}.is-playing .journey-objective{font-size:10px}}
.select-layout{min-height:720px}.fighter-feature{min-height:720px}
.difficulty-setting{margin:4px 0 14px;color:var(--white)}
.difficulty-setting>span{display:block;font:800 10px 'DM Sans',sans-serif;letter-spacing:.12em;margin-bottom:7px}
.difficulty-options{display:flex;gap:5px;flex-wrap:wrap}
.difficulty-options button{min-height:36px;padding:5px 9px;border:1px solid #ffffff55;background:#111923cc;color:#fff;font:800 10px 'DM Sans',sans-serif;letter-spacing:.04em}
.difficulty-options button.active{background:var(--red);border-color:var(--red)}
.practice-button{margin-top:8px;padding:8px 0;min-height:44px;border:0;background:transparent;color:#fff;font:800 11px 'DM Sans',sans-serif;letter-spacing:.08em;text-align:left}
.practice-button:hover{color:var(--red)}
@media(max-width:900px){.select-layout{min-height:0}.fighter-feature{min-height:560px}}
@media(max-width:550px){.fighter-feature{min-height:520px}.feature-info{width:68%}.difficulty-options button{min-height:38px;padding:5px 7px;font-size:9px}.practice-button{font-size:10px}}
@media(pointer:coarse){.difficulty-options button{min-height:44px}}
.is-finale .result-overlay{background:linear-gradient(180deg,#080b16a6,#080b16d9)}
.is-travelling .hud-player.enemy{visibility:hidden}
.is-travelling .timer{visibility:hidden}
