:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#fff;background:#0c1020}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#28344f 0,#0c1020 65%);min-height:100vh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:1px solid #ffffff22;background:#ffffff09;border-radius:10px;padding:10px 16px;touch-action:manipulation}button:hover{background:#ffffff18}button:focus-visible,a:focus-visible{outline:3px solid #ffcf58;outline-offset:4px}[hidden]{display:none!important}main{max-width:1440px;margin:auto;padding:22px 30px}header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.brand{font-size:22px;font-weight:900;letter-spacing:2px;text-decoration:none;color:white}.brand b{color:#ffcf58}.tag{font-size:11px;letter-spacing:2px;font-weight:600;display:block;color:#8d99b5;margin-top:4px}.top-actions{display:flex;gap:8px}.top-actions button{font-size:13px}#game-wrap{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:20px;border:1px solid #ffffff25;box-shadow:0 30px 100px #0007;background:#151e32}canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(130deg,#172339f5,#0c1528f2);padding:24px;z-index:3}.menu-top{text-align:center}.eyebrow{font-size:12px;font-weight:700;letter-spacing:3px;color:#a3b6d4}h1{font-size:clamp(28px,4.4vw,64px);margin:4px 0 0;letter-spacing:-3px;font-weight:950}h1 em{font-style:normal;color:#ffcf58}.menu-top p{color:#afbdd3;margin:4px 0 12px;font-size:15px}.heroes{display:flex;gap:16px;width:76%;max-width:760px}.hero{width:33.33%;padding:8px 10px 15px;background:linear-gradient(180deg,#2c3c5770,#19253c);border:1px solid #ffffff20;border-radius:14px;text-align:center;transition:transform .2s,border-color .2s}.hero.selected{border:2px solid #ffcf58;box-shadow:0 0 35px #ffcc4420;transform:translateY(-3px)}.hero:nth-child(2).selected{border-color:#8fecb3}.hero:nth-child(3).selected{border-color:#fb819e}.hero-art{height:clamp(130px,18vw,250px);display:flex;align-items:center;justify-content:center}.hero-art img{height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 8px 7px #0004)}.hero-name{display:block;font-weight:900;font-size:24px}.role{display:block;color:#ffcf58;font-size:10px;font-weight:800;letter-spacing:2px;margin:3px 0 5px}.hero:nth-child(2) .role{color:#8fecb3}.hero:nth-child(3) .role{color:#fb819e}.hero-desc{font-size:12px;color:#a9b7d0}.start-row{display:flex;align-items:center;gap:12px;margin-top:18px}.primary{background:#ffcf58;color:#1f2430;border:0;font-weight:850;padding:14px 30px;box-shadow:0 5px 0 #bd8f32}.primary:hover{background:#ffdd84}.primary span{margin-left:16px}.menu-note{font-size:12px;color:#8d9bb4;margin:12px 0 0}footer{padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#a3b1cb;font-size:12px}.keys{display:flex;gap:18px;flex-wrap:wrap}.keys span{white-space:nowrap}kbd{display:inline-block;border:1px solid #ffffff30;border-bottom-width:3px;border-radius:4px;font:11px system-ui;padding:2px 5px;margin:0 2px;color:#e0e7f6;background:#1b263b}.footer-note{color:#ffcf58;font-size:12px}#dialog{text-align:center}#dialog h2{font-size:38px;margin:0 0 12px;color:#ffcf58}#dialog p{max-width:680px;color:#c0cce0;font-size:16px;line-height:1.6}#dialog .controls{display:grid;grid-template-columns:1fr 1fr;text-align:left;gap:8px 25px;font-size:15px;line-height:1.6;margin-bottom:14px}#dialog button{margin:7px}#touch{position:absolute;inset:0;z-index:2;pointer-events:none}.touch-actions{position:absolute;left:16px;bottom:14px;display:flex;flex-wrap:wrap;gap:7px;width:250px;pointer-events:auto}.touch-actions button{width:70px;height:47px;font-size:10px;font-weight:800;letter-spacing:.6px;background:#17243dd9;border:2px solid #a9c3ef77;border-radius:50%;padding:0;user-select:none;touch-action:none}.touch-actions .jump{background:#3a6e91dd}.touch-actions .super{border-color:#ffd45a;background:#846327dd}#stick{position:absolute;right:28px;bottom:20px;width:115px;height:115px;border:2px solid #ffffff50;border-radius:50%;background:#17243d99;pointer-events:auto;touch-action:none;user-select:none}#knob{position:absolute;left:35px;top:35px;width:42px;height:42px;background:#ccdef4aa;border:2px solid #fff8;border-radius:50%}#stick span{position:absolute;top:120px;left:0;width:100%;text-align:center;font-size:9px;letter-spacing:2px;color:#dbe7ff}#game-wrap:fullscreen{width:100vw;height:100vh;border-radius:0;background:#000;display:flex;align-items:center;justify-content:center}#game-wrap:fullscreen canvas{object-fit:contain}body.playing #menu{display:none}button.pressed{background:#ffd65b99!important} @media(max-width:900px){main{padding:10px}.brand{font-size:17px}.tag{font-size:9px}.heroes{width:86%;gap:10px}.hero-name{font-size:19px}.hero-desc{display:none}.overlay{padding:15px}.role{font-size:9px}.hero-art{height:18vw}.menu-top p{font-size:12px}.eyebrow{font-size:9px}.start-row{margin-top:12px}.primary{padding:10px 20px}.menu-note{font-size:10px}.keys{gap:10px}footer{flex-direction:column;align-items:flex-start}.top-actions button{padding:7px 10px;font-size:11px}#dialog h2{font-size:25px}#dialog p,#dialog .controls{font-size:12px;margin:6px 0}#dialog .controls{gap:3px 15px}}@media(max-width:600px) and (orientation:portrait){#game-wrap{aspect-ratio:4/5}canvas{object-fit:contain}.hero-art{height:32vw}.heroes{width:100%;gap:6px}.hero{padding:6px 3px}.menu-top{margin-bottom:16px}h1{font-size:42px}.menu-top p{font-size:14px}.hero-name{font-size:18px}.role{font-size:8px;letter-spacing:1px}.menu-note{font-size:11px}.start-row{margin-top:22px}#stick{right:16px;width:95px;height:95px}#knob{left:25px;top:25px}#stick span{top:98px}.touch-actions{width:220px;left:10px}.touch-actions button{width:62px;height:44px}}@media(max-height:500px) and (orientation:landscape){main{padding:4px 10px}header{margin-bottom:5px}.tag,footer{display:none}#game-wrap{max-height:calc(100dvh - 45px);width:auto;max-width:100%;margin:auto}.menu-top p,.menu-note,.eyebrow{display:none}h1{font-size:27px;letter-spacing:-1px}.hero-art{height:23vh}.heroes{max-width:570px}.hero-name{font-size:16px}.role{font-size:8px}.hero{padding:3px 10px}.start-row{margin-top:7px}.primary{padding:7px 20px}.touch-actions button{width:58px;height:39px}.touch-actions{width:200px}#stick{width:85px;height:85px;bottom:12px}#knob{left:20px;top:20px}#stick span{display:none}}

.home-actions{display:flex;flex-direction:column;gap:12px;width:min(340px,80%);margin:20px 0}.home-actions button{font-size:18px;padding:13px}.home-actions p{font-size:13px;color:#b4c6df;text-align:center;margin:4px 0}.options-controls{display:grid;gap:12px;width:min(480px,95%);text-align:left}.options-controls label{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:16px}.options-controls input{width:45%;accent-color:#ffcf58}.options-controls input[type=checkbox]{width:24px;height:24px}.menu-info{max-width:700px;font-size:15px;line-height:1.5;color:#c4dcf0}.menu-status{color:#ffdd85;font-size:14px}.touch-actions button{font-size:9px;letter-spacing:0;padding:3px}.touch-actions [data-action=down]{font-size:8px}@media(max-height:500px) and (orientation:landscape){.home-actions{gap:5px;margin:5px 0}.home-actions button{font-size:14px;padding:6px}.home-actions p{font-size:10px}.options-controls{gap:5px}.options-controls label{font-size:13px}#dialog .menu-info{font-size:12px}.menu-info{margin:3px 0}}

#dialog{overflow-y:auto;justify-content:safe center}.home-actions button:disabled{opacity:.45;cursor:default}

.volume-panel{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:16px 18px;margin-top:14px;border:1px solid #ffffff25;border-radius:12px;background:#172339}.volume-panel strong{color:#ffcf58;font-size:16px}.volume-panel label{display:flex;align-items:center;gap:8px;font-size:14px}.volume-panel input[type=range]{width:115px;accent-color:#ffcf58}.volume-panel output{width:38px;color:#c2d5ec;font-size:13px}.volume-panel input[type=checkbox]{accent-color:#ffcf58}.volume-panel .mute-control{font-size:13px}@media(max-width:600px){.volume-panel{gap:12px;padding:12px}.volume-panel label:not(.mute-control){width:100%;justify-content:space-between}.volume-panel input[type=range]{flex:1;max-width:70%}}

.touch-actions{width:250px}@media(max-width:600px) and (orientation:portrait){.touch-actions{width:220px}}

.save-slots{display:grid;gap:12px;width:min(650px,95%);margin:12px 0;text-align:left}.save-slot{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #ffffff35;border-radius:12px;padding:12px 16px;background:#21344f}.save-slot strong{color:#ffdc68;font-size:18px}.save-slot p{white-space:pre-line;margin:4px 0!important;font-size:14px!important;line-height:1.4!important}.save-slot button:disabled{opacity:.4;cursor:default}@media(max-height:500px){.save-slots{gap:5px;margin:4px 0}.save-slot{padding:5px 12px}.save-slot p{font-size:12px!important}.save-slot strong{font-size:14px}}
/* Artwork 2 roster */
.heroes:not([hidden]){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:min(100%,1100px)}.hero{width:auto;min-width:0}.hero-art{height:160px}.hero-art img{width:100%;height:100%;object-fit:contain}.playing #menu:not([hidden]){display:flex!important}.overlay{overflow-y:auto}.menu-note{margin-top:12px}@media(max-width:760px){.heroes:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hero-art{height:100px}.hero-desc{font-size:11px}.menu-top h1{font-size:28px}}

#menu{justify-content:flex-start}#menu .menu-top{margin-top:auto}#menu .menu-note{margin-bottom:auto}
.heroes{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:860px;margin-inline:auto}.hero{border-radius:22px;background:linear-gradient(150deg,#28425c,#132337);border:1px solid #7197b066;box-shadow:0 12px 30px #06111b55;transition:transform .18s,border-color .18s}.hero.selected{border-color:#ffe6a0;box-shadow:0 0 0 2px #ffe6a066,0 12px 30px #06111b55;transform:translateY(-4px)}.hero-art{height:168px;display:flex;align-items:center;justify-content:center}.hero-art img{width:100%;height:100%;object-fit:contain}.hero-name{font-size:24px}.hero:hover{transform:translateY(-4px)}@media(max-width:600px){.heroes{gap:8px}.hero-art{height:108px}.hero-name{font-size:18px}.hero-desc{font-size:11px}}

/* Three heroes form one centered row at every viewport width. */
.heroes:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,860px);margin-inline:auto;justify-content:center;gap:18px}.start-row{justify-content:center;width:100%}@media(max-width:600px){.heroes:not([hidden]){gap:8px}}
