:root { color-scheme: dark; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: #10151c; color: #eaf0f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #10151c; }
button, input { font: inherit; }
.hidden { display: none !important; }
.panel { width: min(440px, calc(100vw - 32px)); margin: 12vh auto 0; padding: 34px; border: 1px solid #2f3b48; border-radius: 10px; background: #18212b; box-shadow: 0 18px 60px #0006; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.brand.compact { margin: 0; gap: 9px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid #f2c14e; border-radius: 8px; color: #f2c14e; font-weight: 800; letter-spacing: 1px; }
.compact .brand-mark { width: 30px; height: 30px; font-size: 11px; border-radius: 5px; }
h1 { margin: 0; font-size: 28px; letter-spacing: .2px; }
.brand p { margin: 4px 0 0; color: #95a4b3; }
label { display: block; color: #aebbc7; font-size: 13px; }
input { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid #3a4a5a; border-radius: 6px; color: #eef5f9; background: #111820; outline: none; }
input:focus { border-color: #f2c14e; }
button { border: 1px solid #4c5e6e; border-radius: 6px; padding: 11px 18px; color: #edf4f7; background: #263544; cursor: pointer; }
button:hover { background: #334859; }
button.primary { border-color: #f2c14e; color: #1a1c1d; background: #f2c14e; font-weight: 700; }
button.primary:hover { background: #ffd66b; }
.panel > button { width: 100%; margin-top: 18px; }
.hint { margin: 18px 0 0; color: #8d9aa8; font-size: 13px; line-height: 1.5; }
.error { min-height: 20px; color: #f58a86; font-size: 13px; }
#room { min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 22px; height: 58px; padding: 0 18px; border-bottom: 1px solid #293642; background: #151e27; }
.topbar > :nth-child(2) { flex: 1; color: #aab8c4; font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
#stageWrap { position: relative; height: calc(100vh - 58px); padding: 18px 300px 18px 18px; }
#game { display: block; width: 100%; height: 100%; min-height: 360px; border: 1px solid #30404d; border-radius: 7px; background: #0e151b; cursor: crosshair; outline: none; }
#scoreboard { position: absolute; top: 76px; right: 18px; width: 260px; max-height: calc(100vh - 130px); padding: 14px; border: 1px solid #2d3c49; border-radius: 7px; background: #18212bd9; overflow: auto; }
#scoreboard h2 { margin: 0 0 10px; color: #abb9c6; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.score { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #273540; font-size: 13px; }
.score:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.score .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score.me { color: #f2c14e; }
#hud { position: absolute; left: 34px; bottom: 31px; display: flex; align-items: center; gap: 12px; padding: 8px 11px; border: 1px solid #364754; border-radius: 6px; background: #111a22dd; font-size: 13px; }
#weapon { color: #f2c14e; font-weight: 700; }
#ammo { min-width: 26px; color: #d6e0e8; }
#powerups { color: #93d5c6; }
#toast { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 16px 22px; border: 1px solid #465867; border-radius: 7px; background: #141d26ee; color: #f2c14e; font-size: 20px; font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .2s; }
#toast.visible { opacity: 1; }
@media (max-width: 900px) { #stageWrap { padding-right: 18px; padding-bottom: 120px; } #scoreboard { top: auto; right: 18px; bottom: 18px; left: 18px; width: auto; max-height: 86px; display: flex; align-items: center; gap: 10px; } #scoreboard h2 { margin: 0; } #scores { display: flex; gap: 10px; overflow: auto; } .score { min-width: 110px; border: 0; } }
@media (max-width: 560px) { .topbar { padding: 0 10px; gap: 10px; } .topbar strong { display: none; } .top-actions { gap: 7px; } #start { padding: 8px 10px; } #stageWrap { padding: 10px 10px 112px; } }
