:root{font-family:'Bricolage Grotesque',sans-serif;color:#f1f5f9;background:#0b0f17;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #67e8f9;outline-offset:3px}.boot{display:grid;place-items:center;min-height:100vh;color:#a7b5c6}.screen{min-height:100dvh;background:linear-gradient(#060b12aa,#060b12aa),url('/city-grid.png') center/cover fixed;display:grid;place-items:center;padding:24px}.menu-panel{width:min(760px,100%);min-height:650px;border:1px solid #334155b3;border-radius:28px;background:#0b0f17d9;backdrop-filter:blur(12px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;box-shadow:0 24px 70px #0005;text-align:center}.menu-panel h1{font-size:clamp(38px,5vw,60px);letter-spacing:-.05em;line-height:1.02;margin:0 0 14px}.muted{color:#a4b3c5;line-height:1.55}.menu-panel p{max-width:448px;margin:0 0 30px;font-size:14px}.menu-nav{display:grid;gap:14px;width:min(300px,100%)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #35506b;background:#111827e8;border-radius:12px;color:#f1f5f9;padding:13px 20px;font-weight:700;min-height:48px;transition:border-color .15s,transform .15s}.btn:hover:not(:disabled){border-color:#67e8f9;transform:translateY(-1px)}.btn.primary{border-color:#ffffff40;color:#061018;background:linear-gradient(135deg,#06b6d4,#10b981)}.menu-nav .btn{height:58px;font-size:17px}.guide{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin-top:34px;color:#aab9c9;font-size:12px}.guide span::first-letter{color:#5eead4}.dialog{width:min(500px,100%);border-radius:16px;border:1px solid #334155;background:#111827;box-shadow:0 24px 80px #0008;padding:28px}.dialog.wide{width:min(672px,100%);padding:0;overflow:hidden}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.dialog-head h2,.dialog h2{font-size:26px;letter-spacing:-.025em;margin:4px 0 0}.eyebrow{font-size:11px;letter-spacing:.07em;color:#22d3ee;font-weight:700;text-transform:uppercase}.close{border:1px solid #334155;border-radius:8px;background:#0f172a;color:#cbd5e1;padding:7px 11px}.dialog p{font-size:14px;margin:12px 0 20px}.stack{display:grid;gap:12px}.stack .btn{width:100%}.field{display:grid;gap:7px;margin:18px 0;color:#a8b6c7;font-size:12px;font-weight:700;text-transform:uppercase}.field input,.field select{width:100%;height:45px;background:#0f172a;border:1px solid #475569;border-radius:10px;color:white;padding:0 13px;text-transform:none}.field input{font-size:15px}.avatar-grid{display:flex;gap:8px;margin:8px 0 20px}.avatar-grid button{font-size:22px;flex:1;padding:8px 0;border-radius:10px;border:1px solid #334155;background:#0f172a}.avatar-grid button.selected,.segmented button.selected{border-color:#22d3ee;background:#164e634d;color:#67e8f9}.stats{display:grid;grid-template-columns:repeat(3,1fr);background:#0f172a;border:1px solid #1e293b;border-radius:12px;margin:18px 0;padding:14px;text-align:center;gap:8px}.stat-label{font-size:10px;color:#94a3b8;text-transform:uppercase}.stat-value{font-weight:700;margin-top:4px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:8px}.segmented button{padding:12px;border:1px solid #334155;border-radius:10px;background:#0f172a;color:#94a3b8;font-size:12px;font-weight:700}.checkrow{display:flex;justify-content:space-between;align-items:center;background:#0f172a;border:1px solid #1e293b;border-radius:12px;padding:14px;font-size:13px}.checkrow input{accent-color:#06b6d4;width:18px;height:18px}.wide-header{padding:20px 24px;background:#0f172a;border-bottom:1px solid #1e293b}.tabs{display:grid;grid-template-columns:1fr 1fr;background:#0f172a99}.tab{background:none;color:#94a3b8;border:0;border-bottom:2px solid transparent;padding:16px;font-weight:700}.tab.active{color:#22d3ee;border-color:#22d3ee;background:#111827}.dialog-body{padding:24px}.info-box{background:#0f172a;border:1px solid #1e293b;border-radius:12px;padding:18px;margin-bottom:18px}.info-box h3{margin:0;font-size:18px}.info-box p{margin:8px 0 0}.callout{padding:12px;background:#08334466;color:#a5f3fc;border:1px solid #155e75;border-radius:9px;font-size:12px;margin-top:14px}.room-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.code{font-size:22px;letter-spacing:.08em;color:#22d3ee;font-weight:700}.room-list{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 18px}.slot{min-height:66px;padding:10px;border:1px solid #263449;border-radius:10px;background:#0f172a;font-size:12px;overflow-wrap:anywhere}.slot small{display:block;color:#5eead4;margin-top:4px}.slot.empty{color:#64748b;display:grid;place-items:center;border-style:dashed}.slot .unready{color:#fbbf24}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions .btn{flex:1;font-size:13px}.center{text-align:center}.status-box{background:#0f172a;border:1px solid #1e293b;border-radius:10px;padding:14px;color:#67e8f9;font-size:12px;font-weight:700;margin:20px 0}.game{position:relative;height:100dvh;min-height:500px;background:#091018;overflow:hidden}.map-full{position:absolute;inset:0;z-index:0}.vignette{position:absolute;inset:0;z-index:400;pointer-events:none;box-shadow:inset 0 0 90px #0b0f17a8}.crosshair{position:absolute;z-index:401;left:50%;top:50%;width:44px;height:44px;border:1px solid #67e8f999;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.crosshair:before,.crosshair:after{content:'';position:absolute;left:50%;top:50%;background:#67e8f9;width:13px;height:1px;transform:translate(-50%,-50%)}.crosshair:after{width:1px;height:13px}.hud{position:absolute;top:20px;left:20px;right:20px;z-index:500;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;pointer-events:none}.hud>*{pointer-events:auto}.hud-left{display:flex;gap:8px}.hud-box{background:#111827ed;border:1px solid #334155;border-radius:12px;padding:9px 14px;box-shadow:0 8px 24px #0004}.hud-label{color:#94a3b8;font-size:10px;text-transform:uppercase}.hud-value{font-size:15px;font-weight:700}.teal{color:#22d3ee}.green{color:#34d399}.rose{color:#fb7185}.timer{font-size:22px;font-weight:800;min-width:110px;text-align:center}.danger{color:#fda4af;border-color:#f43f5e;background:#4c0519e6}.health{min-width:250px}.health-row{display:flex;justify-content:space-between;gap:15px;font-size:11px;font-weight:700}.health-bars{display:flex;gap:6px;margin-top:6px}.health-bars div{height:8px;flex:1;border-radius:20px;background:#1e293b;overflow:hidden}.health-bars i{display:block;height:100%;background:#22d3ee}.health-bars div:last-child i{background:#f43f5e}.panic{position:absolute;z-index:501;top:74px;left:50%;transform:translateX(-50%);background:#e11d48;border:1px solid #fda4af;border-radius:8px;padding:8px 14px;font-size:12px;font-weight:700;white-space:nowrap}.zoom-widget{position:absolute;z-index:500;bottom:24px;left:24px;width:250px;display:grid;gap:8px}.zoom-widget .btn{justify-content:space-between;text-align:left}.zoom-note{font-size:11px;color:#fbbf24;font-weight:500}.zoom-meter{height:6px;background:#1e293b;border-radius:5px;margin-top:7px}.zoom-meter i{display:block;height:100%;background:#22d3ee;border-radius:5px}.guess-panel{position:absolute;z-index:500;right:24px;bottom:24px;width:325px;height:245px;display:flex;flex-direction:column;background:#0f172a;border:1px solid #334155;border-radius:16px;overflow:hidden;box-shadow:0 20px 45px #0008;transition:width .2s,height .2s}.guess-panel.expanded{width:min(530px,calc(100vw - 48px));height:min(400px,55vh)}.map-title{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;font-size:11px;color:#cbd5e1}.map-title button{border:0;color:#67e8f9;background:#1e293b;border-radius:4px;font-weight:700;font-size:10px;padding:4px 8px}.guess-map{flex:1;min-height:40px;background:#0b1520}.map-action{padding:8px}.map-action .btn{width:100%;min-height:40px;font-size:13px}.leaflet-control-attribution{font-size:9px!important}.overlay{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;background:#0b0f17cf;backdrop-filter:blur(5px);padding:20px}.result{width:min(896px,100%);max-height:92dvh;overflow:auto;background:#111827;border:1px solid #334155;border-radius:16px}.result-header{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#0f172a}.result-header h2{margin:3px 0 0;font-size:24px}.coords{color:#cbd5e1;background:#1e293b;padding:8px;border-radius:8px;font-size:12px}.result-map{height:300px;background:#0f172a}.result-body{padding:22px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.result-stat{background:#0f172a;border:1px solid #1e293b;border-radius:12px;padding:14px}.result-stat strong{display:block;font-size:20px;margin-top:4px}.results-actions{display:flex;justify-content:flex-end}.leaderboard{margin:12px 0}.rank{display:flex;justify-content:space-between;border-bottom:1px solid #263449;padding:10px 4px;font-size:13px}.final-score{background:#0f172a;border:1px solid #1e293b;border-radius:12px;padding:20px;margin:20px 0}.final-score strong{display:block;color:#22d3ee;font-size:36px}.alert{color:#fda4af;font-size:13px;margin:10px 0}#toast{position:fixed;z-index:2000;top:16px;left:50%;transform:translateX(-50%);background:#163040;color:#cffafe;border:1px solid #22d3ee80;border-radius:10px;padding:10px 16px;font-size:13px;display:none}#toast.show{display:block}@media(max-width:650px){.screen{padding:16px}.menu-panel{min-height:min(620px,calc(100dvh - 32px));padding:36px 20px}.menu-panel h1{font-size:39px}.guide{gap:12px;font-size:11px}.room-list{grid-template-columns:repeat(2,1fr)}.hud{top:10px;left:10px;right:10px;gap:5px}.hud-box{padding:8px}.hud-value{font-size:12px}.timer{min-width:75px;font-size:17px}.health{min-width:155px}.health-row{font-size:9px}.panic{top:75px;font-size:10px}.zoom-widget{bottom:18px;left:12px;width:145px}.zoom-widget .btn{padding:8px;font-size:11px}.guess-panel{right:12px;bottom:18px;width:200px;height:215px}.result-stats{gap:6px}.result-stat{padding:8px}.result-stat strong{font-size:15px}.result-header h2{font-size:19px}.coords{font-size:10px}.result-map{height:220px}.dialog{padding:22px}.dialog.wide{padding:0}.dialog-body{padding:18px}}

/* Private room setup */
.dialog.wide { max-height: calc(100dvh - 48px); overflow-y: auto; }
.game-setup { margin: 0 0 22px; padding: 18px; border: 1px solid #273a4d; border-radius: 12px; background: #0d1726; }
.setup-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.setup-heading h3 { margin: 0; font-size: 16px; }
.setup-heading p { margin: 3px 0 0; color: #94a3b8; font-size: 12px; }
.setup-mode { padding: 4px 9px; color: #67e8f9; background: #164e634d; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setup-field { display: grid; gap: 6px; min-width: 0; color: #a7b7c9; font-size: 11px; font-weight: 700; }
.setup-field select { width: 100%; min-width: 0; height: 42px; padding: 0 10px; color: #e6edf5; background: #111f30; border: 1px solid #385069; border-radius: 9px; font-size: 13px; }
.setup-field select:disabled { color: #d4deea; opacity: 1; cursor: default; }
.setup-note { margin: 14px 0 0 !important; color: #9aabbd; font-size: 11px !important; line-height: 1.45; }
.setup-note.setup-warning { color: #fbbf24; }
.score-rule { margin: 0 0 16px; color: #a5b4c4; font-size: 12px; line-height: 1.45; }
@media (max-width: 480px) { .dialog.wide { max-height: calc(100dvh - 32px); } .setup-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .setup-field select { font-size: 12px; } .game-setup { padding: 14px; } }

/* Solo and versus setup */
.dialog.setup-dialog { max-height: calc(100dvh - 48px); overflow-y: auto; }
.match-setup { margin-top: 20px; }
.dialog .queue-settings { color: #67e8f9; font-size: 12px; line-height: 1.5; }
@media (max-width: 480px) { .dialog.setup-dialog { max-height: calc(100dvh - 32px); } }
.results-actions { gap: 10px; flex-wrap: wrap; }
.music-setting { margin-top: 10px; }
.field.music-volume { grid-template-columns: 1fr auto; align-items: center; }
.music-volume input { grid-column: 1 / -1; height: auto; padding: 0; accent-color: #14b8a6; }

/* Brand mark above the main menu title */
.menu-logo { display: block; width: 154px; height: auto; flex: none; margin: 0 0 2px; }
.menu-panel { padding-top: 28px; padding-bottom: 28px; }
@media (max-width: 650px) { .menu-logo { width: 130px; } .menu-panel { padding-top: 24px; padding-bottom: 24px; } }
.hud-context { color: #a8b9c9; font-size: 10px; margin-top: 3px; }
.map-controls { display: flex; align-items: center; gap: 4px; }
.map-title { gap: 6px; }
.map-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-controls button[aria-pressed="true"] { color: #071b1f; background: #5eead4; }
.data-credit { font-size: 11px !important; color: #94a3b8; }
.data-credit a { color: #67e8f9; }
@media (max-width: 650px) { .map-title { padding: 6px; font-size: 9px; } .map-title button { padding: 4px; font-size: 8px; } .map-controls { gap: 2px; } }

/* Match confirmation */
.confirm-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 1px solid #36516a; border-radius: 20px; background: #101a29; color: #f1f5f9; box-shadow: 0 28px 90px #000a; }
.confirm-dialog::backdrop { background: #030812c7; backdrop-filter: blur(5px); }
.confirm-content { padding: 28px; }
.confirm-top { display: flex; align-items: center; gap: 10px; }
.confirm-symbol { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #4a2830; color: #fda4af; font-size: 17px; font-weight: 800; }
.confirm-eyebrow { color: #86a2b8; font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.confirm-content h2 { margin: 18px 0 8px; font-size: 27px; letter-spacing: -.035em; line-height: 1.1; }
.confirm-content p { margin: 0; color: #b5c3d1; font-size: 14px; line-height: 1.55; }
.confirm-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #90a3b5; font-size: 12px; line-height: 1.4; }
.confirm-note-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #fbbf24; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.confirm-actions .btn { min-height: 48px; padding: 10px 14px; }
.confirm-continue { background: #1c3a42; border-color: #45877e; color: #d9fff6; }
.confirm-end { background: #241d27; border-color: #7b4650; color: #fecdd3; }
.confirm-end:hover:not(:disabled) { border-color: #fb7185; }
@media (max-width: 400px) { .confirm-content { padding: 22px; } .confirm-actions { grid-template-columns: 1fr; } }
