:root{color-scheme:dark;font-family:'Atkinson Hyperlegible',sans-serif;background:#101b29;color:#e8eddf}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 25% 15%,#243b47 0,transparent 60%)}main{max-width:1320px;margin:auto;padding:24px 32px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #42515a;padding-bottom:20px;margin-bottom:28px}a{color:#c9d7ce;text-decoration:none;font-size:13px;letter-spacing:2px}h1,h2,strong,button,.eyebrow,.tags,.edition{font-family:'Pixelify Sans',monospace}h1{font-size:30px;line-height:.87;letter-spacing:1px;margin:0;color:#ffd76a;transform:rotate(-3deg)}h1 span{display:block;color:#f4f0de;font-size:38px}.edition{font-size:13px;line-height:1.7;color:#82979f;text-align:right}.edition b{color:#ffd76a}.lobby{display:grid;grid-template-columns:1.2fr 1fr;gap:44px;align-items:center}.eyebrow{font-size:13px;letter-spacing:2px;color:#ffc85e}h2{font-size:48px;line-height:.95;margin:16px 0}.intro>p:not(.eyebrow){font-size:18px;line-height:1.5;color:#aec3c7}.intro img{width:100%;height:auto;border:2px solid #405965;box-shadow:8px 8px #080f19;margin-top:16px;image-rendering:pixelated}.tags{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0;font-size:11px;letter-spacing:1px}.tags span{border:1px solid #52606a;padding:7px}.room-card{padding:28px;background:#1a2939;border:2px solid #52606a;box-shadow:8px 8px #080f19}.room-card h2{font-size:30px;margin-bottom:26px}label{display:block;font-size:14px;margin:15px 0 7px;color:#c9d4d5}input,select{font:inherit;color:#f6f0df;background:#0c1826;border:1px solid #586778;border-radius:0;padding:12px;width:100%;min-height:46px}.customise{display:grid;grid-template-columns:1fr 1fr;gap:12px}.customise select{margin-top:7px}button{font-size:17px;padding:12px 18px;background:#283e50;border:2px solid #647781;color:#fff2d9;cursor:pointer;min-height:46px;box-shadow:3px 3px #080f19}button:hover{background:#3a5367}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffd76a;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}.primary{background:#ffd76a;color:#172132;border-color:#ffe5a2}.primary:hover{background:#ffe6a3}.room-card button{width:100%;margin-top:10px}.muted,#lobbyMessage{font-size:13px;line-height:1.5;color:#adc0cc}.divider{text-align:center;font-size:11px;letter-spacing:2px;margin:24px 0 10px;color:#8fa4af}.red{color:#ff665c}.blue{color:#57a7ff}.yellow{color:#ffd956}.green{color:#77df94}.hud{display:flex;gap:24px;align-items:center;margin-bottom:14px}.hud>div:first-child{margin-right:auto;min-width:130px}.hud span{display:block;font-size:10px;letter-spacing:2px;color:#adc0cc}.hud strong{display:block;font-size:24px}progress{width:140px;height:9px;accent-color:#77df94}.stage{position:relative;border:3px solid #60717c;box-shadow:6px 6px #080f19;background:#293a51}canvas{display:block;width:100%;height:auto;image-rendering:pixelated;touch-action:none}#banner{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:max-content;max-width:95%;padding:7px 12px;text-align:center;background:#101b29e8;color:#ffd76a;font-family:'Pixelify Sans',monospace;font-size:17px;pointer-events:none}#ending{position:absolute;inset:0;background:#0c1527e8;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center}#ending h2{font-size:54px}#ending button{margin:6px;min-width:210px}.touch{display:flex;justify-content:space-between;gap:12px;margin-top:18px;touch-action:none;user-select:none}.touch>div{display:flex;gap:8px}.touch button{min-width:55px}.keys{color:#94a9b3;font-size:11px;text-align:center;letter-spacing:1px;line-height:1.8}.keys i{margin:0 8px}.roster{display:flex;flex-wrap:wrap;gap:18px;padding:18px 0 0;font-family:'Pixelify Sans',monospace}.roster span{border-left:4px solid var(--player);padding-left:8px}details{margin-top:30px;border-top:1px solid #42515a;padding:20px 0;max-width:900px;color:#adc0cc;line-height:1.6}summary{cursor:pointer;color:#f6ebcf}footer{display:flex;justify-content:space-between;border-top:1px solid #42515a;padding-top:18px;margin-top:15px;color:#79909b;font-size:10px;letter-spacing:2px}[hidden]{display:none!important}@media(max-width:750px){main{padding:16px}.lobby{grid-template-columns:1fr;gap:16px}.intro h2{font-size:40px}.intro img{max-height:220px;object-fit:cover}.room-card{padding:20px}header{gap:12px}header a{font-size:10px}.edition{display:none}h1{font-size:22px}h1 span{font-size:28px}.hud{gap:10px;flex-wrap:wrap}.hud strong{font-size:20px}.hud button{font-size:13px;padding:7px}.hud>div:first-child{min-width:95px}progress{width:95px}.touch{flex-wrap:wrap}.touch button{font-size:14px;padding:10px;min-width:50px}.touch>div{flex:1;justify-content:center}#banner{font-size:12px;top:5px;padding:5px}#ending h2{font-size:30px}#ending p{font-size:12px}#ending button{min-height:36px;padding:6px}.keys{font-size:10px}footer span{display:none}}

#nicknameError{color:#ffb0a1;font-size:14px;margin:6px 0}#nicknameError:empty{display:none}input[aria-invalid="true"]{border-color:#ff8c78}
/* The game is the focal point; frame it like an illustrated arcade screen. */
.stage{border-color:#839b9e;box-shadow:0 0 0 1px #243d50,0 8px 0 #080f19,0 18px 45px #050d164d}.hud{padding:14px 18px;background:#182c3a;border-bottom:3px solid #496372}.hud strong{color:#f5dfaa}.hud>div:first-child strong{color:#a7edc3}#banner{border:1px solid #edce8844;box-shadow:0 3px 0 #070f1c66;padding:9px 18px}.roster span{background:#1c3040;padding:8px 14px}.touch button{border-bottom-width:4px}.touch button:active{transform:translateY(2px);border-bottom-width:2px}

.hud{flex-wrap:wrap}#upgrade{color:#182331;background:#ffd76a;max-width:100%;white-space:normal}#upgrade:disabled{opacity:.5}#coins{color:#ffd76a}
.gear{display:flex;align-items:flex-start;flex-wrap:wrap;gap:.65rem;padding:.5rem;color:#e2ebe5}.gear summary{cursor:pointer;padding:.65rem;border:1px solid #607472;color:#ffe297}.gear #stock{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:.4rem}.gear #stock small{display:block;font-size:.8rem;margin-top:.3rem}.gear #slot{align-self:center}.gear details[open]{width:100%}
