
:root{--bg:#13162b;--panel:#1b1f39;--line:#ffffff18;--muted:#a3a7bc;--white:#f7f5ee;--lime:#d3ff59;--purple:#b7a0ff;--orange:#ffad78;--sans:Inter,"Segoe UI","Noto Sans JP",Meiryo,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font:14px/1.8 var(--sans);-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--lime);outline-offset:5px}[hidden]{display:none!important}.skip{position:fixed;z-index:100;left:20px;top:-80px;background:var(--lime);color:var(--bg);padding:10px}.skip:focus{top:10px}.header,main,footer{width:min(1280px,calc(100% - 96px));margin:auto}.header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:7px;font-size:23px;font-weight:950;letter-spacing:-1.1px;line-height:1}.brand-icon{font-size:33px;color:var(--lime);margin-right:6px}.brand-small{font-size:10px;letter-spacing:1.5px;writing-mode:vertical-rl;line-height:1;margin-left:2px}.header-right{display:flex;align-items:center;gap:9px}.online-dot{width:7px;height:7px;border-radius:50%;background:#ffb363}.online-dot.connected{background:var(--lime);box-shadow:0 0 12px #d3ff5950}.server-label{font-size:10px;color:var(--muted);margin-right:23px}.help-button,.icon-button{border:0;background:transparent;color:var(--white);font-size:11px}.help-button{border:1px solid #ffffff40;padding:9px 18px;border-radius:6px;display:flex;gap:22px}.hero{display:flex;justify-content:space-between;padding:64px 0 48px;gap:30px;position:relative}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;margin-bottom:22px;color:var(--muted)}.hero .eyebrow{color:var(--lime)}.tiny-star{font-size:14px;margin-right:8px}h1{font-size:clamp(44px,6vw,78px);line-height:1.17;letter-spacing:-3px;font-weight:900}h1>span{color:var(--lime)}.hero-lead{font-size:13px;color:#d1d3e1;line-height:2;margin-top:24px}.hero-tags{display:flex;gap:8px;margin-top:28px;flex-wrap:wrap}.hero-tags span{font-size:8px;font-weight:700;letter-spacing:1px;border:1px solid #ffffff25;border-radius:3px;padding:5px 9px}.hero-side{width:260px;text-align:right;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding-top:3px}.edition{font-size:8px;letter-spacing:2px;line-height:2;color:var(--muted)}.orbit-star{font-size:145px;line-height:1;color:var(--purple);transform:rotate(-13deg);text-shadow:25px 9px 0 #b7a0ff0b;position:relative}.hero-side>p{font-size:11px;color:var(--muted);line-height:2}.game-shell{border:1px solid #ffffff24;border-radius:16px;overflow:hidden;background:#1c203a;box-shadow:0 30px 80px #0002}.game-topbar{min-height:52px;padding:0 23px;display:flex;justify-content:space-between;align-items:center;gap:10px}.game-topbar>div{display:flex;gap:16px;align-items:center}.live-label{font-size:8px;letter-spacing:1.5px;color:var(--lime);font-weight:800}.live-label::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--lime);margin-right:8px}.stage-name{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.icon-button{border:1px solid #ffffff20;border-radius:5px;padding:3px 9px;font-size:10px}.room-label{font-size:10px;color:var(--lime);letter-spacing:2px}.canvas-wrap{position:relative;aspect-ratio:16/9;background:#252b59;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none}.stage-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;pointer-events:none;background:linear-gradient(transparent,#171a3930 55%,transparent)}.overlay-kicker{font-size:9px;letter-spacing:4px;margin-top:-35px;margin-bottom:16px;color:#eee5ff}.stage-overlay strong{font-size:clamp(30px,5.2vw,70px);line-height:1.03;letter-spacing:-2px;font-weight:950;text-shadow:0 5px 20px #24204b55;transform:rotate(-3deg)}.stage-overlay strong span{color:var(--lime)}.stage-overlay p{font-size:11px;margin-top:20px;color:#ece7ff}.match-clock{position:absolute;left:50%;top:22px;transform:translateX(-50%);font-size:25px;font-weight:900;letter-spacing:2px;background:#15192cbb;padding:4px 19px;border:1px solid #fff2;border-radius:9px;font-variant-numeric:tabular-nums}.countdown{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(60px,10vw,150px);font-weight:950;color:var(--lime);text-shadow:0 8px 0 #2c3350;pointer-events:none}.game-toast{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:#101529e8;color:white;padding:9px 20px;border-radius:30px;font-size:11px;max-width:90%;text-align:center;pointer-events:none}.players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border-top:1px solid var(--line)}.empty-seat,.player-seat{background:#1c2038;padding:18px 22px;display:grid;grid-template-columns:10px 1fr;gap:2px 9px;align-items:center;min-width:0;min-height:83px}.empty-seat>span:not(.seat-dot){font-size:9px;letter-spacing:1px;color:var(--muted)}.empty-seat small{font-size:9px;grid-column:2;color:#686f8e}.seat-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.c0{background:#d3ff59}.c1{background:#b7a0ff}.c2{background:#ffad78}.c3{background:#82d9f0}.player-seat{grid-template-columns:10px 1fr auto}.player-name{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.player-badge{font-size:7px;letter-spacing:1px;color:var(--muted);margin-left:6px}.damage{grid-column:2;line-height:1.1;font-weight:900;font-size:28px;font-variant-numeric:tabular-nums}.score{grid-column:3;grid-row:1/3;text-align:right;font-size:10px;color:var(--muted)}.score strong{display:block;font-size:23px;color:var(--white);line-height:1.3}.player-seat.me{background:#242b3a}.player-seat.offline{opacity:.5}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:52px 0 25px}.section-heading .eyebrow{margin-bottom:10px}.section-heading h2,.room-panel h2{font-size:28px;letter-spacing:-1px}.section-heading>p{font-size:11px;color:var(--muted);line-height:2}.entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.entry-card{padding:30px 34px;border:1px solid #ffffff1e;border-radius:13px;background:#1b1f36}.card-number{font-size:11px;font-weight:700;color:var(--lime);display:flex;align-items:center;gap:12px;margin-bottom:17px}.card-number>span{font-size:8px;letter-spacing:2px;color:var(--muted)}.entry-card h3{font-size:23px;font-weight:750;letter-spacing:-.5px}.entry-card>p{font-size:11px;color:var(--muted);margin:7px 0 23px}.entry-card label{display:block;font-size:10px;color:#b8bdd2;font-weight:500}.entry-card input{display:block;width:100%;height:46px;border:1px solid #ffffff25;background:#13172b;color:var(--white);border-radius:6px;padding:0 13px;margin:8px 0 22px;font-size:13px;outline-offset:2px}.entry-card input::placeholder{color:#656c88}.code-input{text-transform:uppercase;letter-spacing:4px;font-weight:750}.join-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.btn{display:flex;align-items:center;justify-content:space-between;gap:15px;border:0;border-radius:6px;padding:14px 20px;font-size:12px;font-weight:800;transition:transform .15s,background .15s}.btn:not(:disabled):hover{transform:translateY(-2px)}.btn-lime{background:var(--lime);color:var(--bg)}.btn-outline{background:transparent;border:1px solid #ffffff50;color:var(--white)}.entry-card .btn{width:100%}.practice-link{display:flex;justify-content:space-between;width:100%;margin-top:16px;padding:0;background:none;border:0;color:#c8cbd8;font-size:10px}.form-message{font-size:12px;color:var(--orange);margin:15px 0;min-height:20px}.room-panel{border:1px solid #ffffff30;border-radius:12px;margin-top:28px;padding:30px 34px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;background:var(--panel)}.room-info>p:not(.eyebrow){font-size:12px;color:var(--muted);margin-top:8px}.room-panel .eyebrow{margin-bottom:7px}.invite-row{display:flex;gap:20px;align-items:center;margin-top:20px;flex-wrap:wrap}.invite-code{font-size:26px;font-weight:800;letter-spacing:5px;color:var(--lime)}.small-button{background:transparent;color:var(--white);font-size:11px;padding:9px 12px;border:1px solid #fff3;border-radius:5px}.room-buttons{display:flex;flex-direction:column;gap:12px;min-width:190px;justify-content:center}.room-panel .form-message{flex-basis:100%;margin:0}.rules-section{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:35px;margin:72px 0 50px}.rules-intro .eyebrow{font-size:8px;letter-spacing:1.1px;margin-bottom:16px}.rules-intro h2{font-size:29px;line-height:1.5}.text-button{background:transparent;color:var(--muted);border:0;padding:0;font-size:10px;margin-top:20px}.rule{border-top:1px solid #fff3;padding-top:12px}.rule>span{font-size:8px;letter-spacing:2px;color:var(--muted)}.rule-icon{font-size:38px;font-weight:800;height:75px;display:flex;align-items:center;color:var(--purple)}.rule:nth-child(3) .rule-icon{color:var(--orange)}.rule:nth-child(4) .rule-icon{color:var(--lime)}.rule h3{font-size:14px;margin-bottom:10px}.rule p{font-size:11px;color:var(--muted);line-height:2}.keyboard-strip{display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:#1a1d32;border-radius:8px;padding:16px 20px;color:var(--muted);font-size:9px}.keyboard-strip>span{font-size:8px;letter-spacing:1.5px;color:#d5d7e2;margin-right:5px}.keyboard-strip p{display:flex;align-items:center;gap:6px}kbd{font-family:var(--sans);font-size:8px;border:1px solid #fff3;border-bottom:3px solid #fff2;padding:0 5px;border-radius:3px;min-width:18px;text-align:center;line-height:22px;color:var(--white)}.keyboard-strip small{margin-left:auto;font-size:8px}footer{margin-top:60px;min-height:125px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}footer .brand{font-size:17px}footer .brand-small{font-size:7px}footer p{font-size:8px;letter-spacing:2px;color:var(--muted)}footer small{font-size:8px;color:#747b97}dialog{width:min(600px,calc(100% - 32px));max-height:85dvh;overflow:auto;background:#20243d;color:var(--white);border:1px solid #fff3;border-radius:16px;padding:38px;box-shadow:0 40px 100px #0005}dialog::backdrop{background:#070a18b8;backdrop-filter:blur(6px)}dialog h2{font-size:34px;margin-bottom:20px}dialog p{font-size:12px;line-height:2;color:#c2c7db;margin-bottom:20px}dialog dl{display:grid;grid-template-columns:100px 1fr;font-size:12px;gap:12px;margin:25px 0}dialog dt{font-weight:750}dialog dd{margin:0;color:#c2c7db}.help-note{font-size:10px!important;color:var(--muted)!important}.dialog-close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:white;font-size:28px}.touch-controls{position:absolute;bottom:12px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:end;gap:12px;pointer-events:none}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #ffffff65;background:#13192b99;color:white;border-radius:50%;width:48px;height:48px;font-size:10px;font-weight:900;box-shadow:0 3px 0 #1115}.touch-controls button:active,.touch-controls button.held{background:var(--lime);color:var(--bg)}.touch-move,.touch-actions{display:flex;gap:9px;align-items:end}.touch-move button{font-size:22px;border-radius:12px}.touch-actions .attack-touch{width:58px;height:58px;color:var(--bg);background:var(--lime);font-size:12px}.touch-actions .dash-touch{width:39px;height:39px;font-size:8px}.canvas-wrap:fullscreen{width:100vw;height:100dvh;aspect-ratio:auto;background:#252b59}.canvas-wrap:fullscreen canvas{width:100%;height:100%;object-fit:contain}@media(min-width:900px) and (pointer:fine){.touch-controls{display:none!important}}@media(max-width:900px){.header,main,footer{width:calc(100% - 48px)}.hero{padding-top:40px}.hero-side{width:190px}.orbit-star{font-size:115px}.rules-section{gap:20px}.keyboard-strip small{flex-basis:100%;margin-left:0}.empty-seat,.player-seat{padding:13px 12px}.stage-name{display:none}}@media(max-width:600px){.header,main,footer{width:calc(100% - 30px)}.header{height:76px}.brand{font-size:19px}.brand-icon{font-size:27px}.brand-small{font-size:8px}.server-label{display:none}.help-button{font-size:10px;padding:7px 10px;gap:10px}.header-right{gap:12px}.hero{padding:34px 0 30px;gap:10px}.hero .eyebrow{font-size:7px;letter-spacing:1.1px;margin-bottom:16px}.tiny-star{margin-right:3px}h1{font-size:45px;letter-spacing:-2px}.hero-lead{font-size:10px;margin-top:18px;line-height:2}.hero-tags{gap:5px;margin-top:20px}.hero-tags span{font-size:6px;letter-spacing:.5px;padding:4px 5px}.hero-side{width:90px;min-width:70px;padding-top:2px}.edition{font-size:5px;letter-spacing:.8px}.orbit-star{font-size:75px;margin:20px 0}.hero-side>p{font-size:8px;line-height:1.9}.game-shell{border-radius:10px}.game-topbar{padding:0 12px;min-height:42px}.game-topbar>div{gap:9px}.live-label{font-size:6px;letter-spacing:1px}.icon-button{font-size:8px;padding:3px 6px}.room-label{font-size:7px;letter-spacing:1px}.canvas-wrap{aspect-ratio:4/3}.stage-overlay strong{font-size:36px;letter-spacing:-1px}.overlay-kicker{font-size:6px;letter-spacing:2px;margin-bottom:12px;margin-top:-20px}.stage-overlay p{font-size:8px;margin-top:14px}.match-clock{font-size:16px;top:10px;padding:2px 12px}.players{grid-template-columns:1fr 1fr}.empty-seat,.player-seat{padding:11px 12px;min-height:65px}.damage{font-size:23px}.score strong{font-size:20px}.player-name{font-size:10px}.empty-seat small{font-size:8px}.section-heading{margin-top:34px;gap:15px;align-items:start}.section-heading h2{font-size:25px}.section-heading .eyebrow{font-size:7px;letter-spacing:1.3px}.section-heading>p{font-size:8px;line-height:1.9}.entry-grid{grid-template-columns:1fr;gap:14px}.entry-card{padding:24px}.entry-card h3{font-size:22px}.entry-card>p{font-size:10px;margin-bottom:20px}.entry-card input{height:46px;font-size:16px}.entry-card label{font-size:10px}.card-number{margin-bottom:12px}.card-number>span{font-size:7px}.btn{font-size:12px;min-height:48px}.entry-card .practice-link{font-size:10px}.room-panel{padding:22px;gap:18px}.room-panel h2{font-size:23px}.room-buttons{width:100%}.room-info>p:not(.eyebrow){font-size:10px}.invite-code{font-size:24px}.small-button{font-size:10px}.rules-section{grid-template-columns:1fr 1fr;gap:25px 20px;margin:42px 0 30px}.rules-intro h2{font-size:25px}.rules-intro .eyebrow{font-size:6px;letter-spacing:.8px}.rule h3{font-size:12px}.rule p{font-size:10px}.rule-icon{height:63px;font-size:33px}.keyboard-strip{padding:15px;gap:10px 14px;font-size:8px}.keyboard-strip>span{flex-basis:100%}.keyboard-strip small{font-size:8px}footer{margin-top:35px;padding:24px 0;min-height:120px;flex-wrap:wrap;gap:15px}footer .brand{font-size:16px}footer p{font-size:6px;letter-spacing:1px}footer small{flex-basis:100%;font-size:8px}dialog{padding:27px 23px}dialog h2{font-size:29px}dialog dl{font-size:10px;grid-template-columns:80px 1fr}.touch-controls{bottom:9px;left:9px;right:9px}.touch-controls button{width:39px;height:39px}.touch-actions .attack-touch{width:49px;height:49px}.touch-actions .dash-touch{width:32px;height:32px;font-size:7px}.touch-move,.touch-actions{gap:6px}.game-toast{font-size:8px;padding:6px 10px;bottom:68px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.player-seat[data-slot="0"] .damage{color:#d3ff59}.player-seat[data-slot="1"] .damage{color:#b7a0ff}.player-seat[data-slot="2"] .damage{color:#ffad78}.player-seat[data-slot="3"] .damage{color:#82d9f0}

.seat-settings{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.seat-settings label{display:flex;flex-direction:column;font-size:12px;gap:6px}.seat-settings select{font:inherit;background:#13162b;color:#f7f5ee;border:1px solid #ffffff40;border-radius:6px;padding:10px;width:100%}.seat-settings select:disabled{opacity:.6}@media(max-width:700px){.seat-settings{grid-template-columns:1fr 1fr}}

.public-lobby{margin:32px 0;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.public-lobby>p{color:var(--muted)}#lobby-list{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.lobby-room{border:1px solid #b7a0ff70;border-radius:10px;background:#262744;color:var(--white);padding:14px;text-align:left}.lobby-flow,.stage-settings{width:100%}.lobby-flow{display:flex;flex-wrap:wrap;gap:12px;color:var(--lime);font-size:12px}.stage-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.stage-card{background:#252640;color:var(--white);border:2px solid #ffffff20;border-radius:12px;padding:18px 10px}.stage-card.selected{border-color:var(--lime);background:#333e37}.stage-card span{display:block;color:var(--muted);font-size:11px}.stage-settings>p{color:var(--muted);margin-bottom:12px}.stage-card:focus-visible{outline:3px solid var(--lime)}.touch-actions{gap:5px}.touch-controls .touch-actions button{font-size:9px}@media(max-width:700px){.stage-options{gap:6px}.stage-card{padding:12px 5px;font-size:11px}.stage-card span{font-size:9px}.touch-controls .touch-actions button{width:33px;height:36px;font-size:7px}.touch-controls .touch-actions .attack-touch{width:40px;height:42px}.server-label{margin-right:4px}.icon-button{font-size:8px}}
