:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; background: #101923; color: #f5f7f0; }
button, input { font: inherit; }
.game-shell { min-height: 100vh; position: relative; overflow: hidden; background: #172b2d; }
#game { display: block; height: 100vh; width: 100vw; cursor: crosshair; }
.topbar { position: absolute; top: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: linear-gradient(180deg, rgba(12, 20, 25, .86), rgba(12, 20, 25, 0)); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; color: #fbf8ec; font-weight: 800; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: #f1cb59; color: #1b2830; border: 2px solid #f8e39a; font-size: 11px; font-weight: 900; transform: rotate(-5deg); }
.connection { font-size: 12px; font-weight: 700; color: #9cd8cd; display: flex; gap: 7px; align-items: center; }
.connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #50d49a; box-shadow: 0 0 10px #50d49a; }
.connection.is-connecting { color: #f1cb59; }.connection.is-connecting::before { background: #f1cb59; box-shadow: none; }.connection.is-offline { color: #ff877b; }.connection.is-offline::before { background: #ff877b; box-shadow: none; }
.hud { position: absolute; left: 24px; bottom: 24px; width: min(275px, calc(100vw - 48px)); padding: 14px 16px; background: rgba(12, 22, 27, .85); border: 1px solid rgba(205, 240, 218, .18); box-shadow: 0 14px 35px rgba(0, 0, 0, .22); }
.is-hidden { display: none !important; }
.vitals { display: grid; gap: 9px; }.health-row, .weapon-row { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: 0; color: #a8bab7; }.health-row strong { color: #f5f7f0; }.weapon-row strong { color: #f1cb59; }
.health-track { height: 7px; overflow: hidden; background: #243a3b; }.health-fill { height: 100%; width: 100%; background: #57d79b; transition: width .15s ease, background-color .15s ease; }
.hint { position: absolute; left: 0; bottom: calc(100% + 12px); color: rgba(244, 250, 245, .8); font-size: 12px; text-shadow: 0 1px 3px #101923; }.hint span { color: #f1cb59; padding: 0 4px; }
.leaderboard { position: absolute; top: 82px; right: 24px; width: min(290px, calc(100vw - 48px)); background: rgba(12, 22, 27, .86); border: 1px solid rgba(205, 240, 218, .18); box-shadow: 0 14px 35px rgba(0, 0, 0, .22); }
.leaderboard header { display: flex; justify-content: space-between; padding: 12px 14px; color: #d7e8df; font-size: 12px; font-weight: 800; text-transform: uppercase; background: rgba(52, 89, 83, .35); }.leaderboard header strong { color: #f1cb59; }
.leaderboard ol { max-height: 320px; overflow: auto; list-style: none; padding: 4px 0; margin: 0; counter-reset: rank; }.leaderboard li { counter-increment: rank; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; min-height: 32px; padding: 0 14px; font-size: 13px; color: #dceae4; }.leaderboard li::before { content: counter(rank); color: #7f9c97; font-size: 11px; }.leaderboard li.is-you { background: rgba(241, 203, 89, .13); color: #fff8d7; }.score-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.score-name::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--tank-color); }.score-score { color: #f1cb59; font-variant-numeric: tabular-nums; }
.message { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 14px 18px; background: rgba(12, 22, 27, .92); border: 1px solid rgba(205, 240, 218, .24); color: #f4f7ee; font-weight: 700; text-align: center; }
.join-panel { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(9, 16, 20, .58); backdrop-filter: blur(5px); }
.join-inner { width: min(420px, calc(100vw - 32px)); padding: 32px; background: #142329; border: 1px solid rgba(219, 239, 216, .25); box-shadow: 0 28px 80px rgba(0, 0, 0, .42); }.eyebrow { color: #f1cb59; font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: 1.1px; }.join-inner h1 { margin: 8px 0; font-size: 38px; line-height: 1; letter-spacing: 0; }.join-inner p { margin: 0 0 25px; color: #a8c0b8; line-height: 1.45; }.name-field { display: grid; gap: 7px; color: #b8ccc5; font-size: 12px; font-weight: 700; text-transform: uppercase; }.name-field input { width: 100%; border: 1px solid #47635f; border-radius: 0; outline: none; background: #0d191e; color: #f7fbf5; padding: 12px; }.name-field input:focus { border-color: #f1cb59; box-shadow: 0 0 0 2px rgba(241, 203, 89, .18); }
.color-label { margin: 21px 0 9px; color: #b8ccc5; font-size: 12px; font-weight: 700; text-transform: uppercase; }.swatches { display: flex; gap: 8px; flex-wrap: wrap; }.swatch { width: 29px; height: 29px; border-radius: 50%; padding: 0; border: 3px solid transparent; background: var(--color); cursor: pointer; }.swatch[aria-checked="true"] { border-color: #f6f3e4; box-shadow: 0 0 0 2px var(--color); }.join-button { width: 100%; margin-top: 28px; border: 0; border-radius: 0; padding: 13px 18px; color: #122027; background: #f1cb59; cursor: pointer; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }.join-button:hover { background: #ffe58a; }.join-inner small { display: block; margin-top: 15px; color: #78928d; text-align: center; font-size: 11px; }
@media (max-width: 680px) { .topbar { padding: 0 14px; height: 58px; }.leaderboard { top: 67px; right: 12px; width: 190px; }.leaderboard li { padding: 0 10px; grid-template-columns: 22px 1fr auto; font-size: 11px; }.leaderboard ol { max-height: 190px; }.hud { left: 12px; bottom: 12px; }.hint { display: none; }.join-inner { padding: 25px; }.join-inner h1 { font-size: 33px; } }
