:root{color-scheme:dark;--bg: #0b0f17;--panel: rgba(15, 23, 42, .88);--border: rgba(148, 163, 184, .28);--accent: #38bdf8;--danger: #f43f5e;--success: #22c55e;--warn: #facc15}*{box-sizing:border-box;margin:0;padding:0}html,body,#app{width:100%;height:100%;overflow:hidden;background:var(--bg);color:#f8fafc;font-family:system-ui,-apple-system,Segoe UI,sans-serif;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.screen-overlay{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:radial-gradient(circle at top,#1e293b,#090d16 70%);z-index:20;overflow-y:auto}.card{width:100%;max-width:560px;margin:auto;background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:24px;backdrop-filter:blur(12px);box-shadow:0 20px 50px #0000008c}.title-logo{font-size:clamp(1.6rem,4vw,2.3rem);font-weight:900;letter-spacing:.04em;background:linear-gradient(90deg,#38bdf8,#f43f5e,#facc15);-webkit-background-clip:text;color:transparent;margin-bottom:6px}.subtitle{font-size:.85rem;color:#94a3b8;margin-bottom:18px}.btn-stack{display:flex;flex-direction:column;gap:10px}.btn{padding:12px 16px;border-radius:10px;border:1px solid var(--border);background:#1e293b;color:#f8fafc;font-size:.95rem;font-weight:700;cursor:pointer;transition:transform .1s,background .15s}.btn:active{transform:scale(.98)}.btn-primary{background:linear-gradient(135deg,#0284c7,#2563eb);border-color:#38bdf8}.btn-danger{background:#be123c;border-color:#f43f5e}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.field{display:flex;flex-direction:column;gap:4px;font-size:.8rem;color:#cbd5e1}.field input,.field select,.field textarea{background:#0f172a;border:1px solid var(--border);border-radius:8px;color:#f8fafc;padding:8px 10px;font-size:.85rem}.lobby-comm-panel{display:flex;flex-direction:column;gap:10px;margin-bottom:12px;padding:10px;border-radius:10px;background:#0f172aa6;border:1px solid var(--border)}.lobby-section-title{font-size:.78rem;font-weight:700;color:#94a3b8;margin-bottom:4px}.lobby-participants-list{display:flex;flex-wrap:wrap;gap:6px}.lobby-participant-item{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#1e293be6;border:1px solid var(--border);font-size:.78rem}.lobby-color-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.lobby-role-badge{font-size:.68rem;color:#94a3b8}.lobby-kick-btn{border:1px solid rgba(244,63,94,.5);background:#be123c59;color:#fecdd3;border-radius:999px;font-size:.65rem;line-height:1;padding:2px 6px;cursor:pointer}.lobby-kick-btn:hover{background:#f43f5ebf;color:#fff}.lobby-settings-summary{margin-bottom:10px;padding:8px 10px;border-radius:8px;background:#0f172ab3;border:1px solid var(--border);font-size:.76rem;color:#cbd5e1;display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}.lobby-chat-log{height:110px;overflow-y:auto;background:#0f172a;border:1px solid var(--border);border-radius:8px;padding:6px 8px;font-size:.78rem;display:flex;flex-direction:column;gap:3px;margin-bottom:6px;user-select:text;-webkit-user-select:text}.lobby-chat-system{color:#22c55e;font-weight:600}.lobby-empty{color:#64748b;font-size:.75rem}.lobby-chat-form{display:flex;gap:6px}.lobby-chat-form input{flex:1;background:#0f172a;border:1px solid var(--border);border-radius:8px;color:#f8fafc;padding:6px 10px;font-size:.82rem}.hud-layer{position:fixed;inset:0;pointer-events:none;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));z-index:10}.hud-top-left{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:4px;font-size:.8rem}.hud-rank-item{background:#0f172ab8;padding:4px 8px;border-radius:6px;border-left:4px solid #38bdf8}.hud-top-center{position:absolute;top:max(10px,env(safe-area-inset-top));left:50%;transform:translate(-50%);text-align:center;font-size:.85rem}.hud-top-right{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.hud-box{background:#0f172ac2;padding:6px 10px;border-radius:8px;border:1px solid var(--border);font-size:.82rem}.hud-pause-btn{pointer-events:auto;padding:6px 10px;border-radius:8px;border:1px solid var(--border);background:#0f172ad9;color:#f8fafc;font-weight:700;cursor:pointer}.touch-overlay{position:fixed;inset:0;pointer-events:none;z-index:15;display:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}@media(pointer:coarse),(max-width:900px){.touch-overlay{display:block}}.touch-left-zone{position:absolute;left:0;bottom:0;width:45%;height:55%;pointer-events:auto;display:flex;align-items:flex-end;padding:24px;touch-action:none}.touch-stick-base{width:112px;height:112px;border-radius:50%;background:#ffffff1f;border:2px solid rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center}.touch-stick-knob{width:48px;height:48px;border-radius:50%;background:#38bdf8bf}.touch-right-zone{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));pointer-events:auto;display:grid;grid-template-columns:repeat(2,auto);gap:10px;align-items:end;touch-action:none}.touch-btn{border-radius:50%;border:2px solid rgba(255,255,255,.35);background:#0f172ab3;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:.75rem;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.touch-btn-large{width:76px;height:76px}.touch-btn-fire{background:#f43f5ea6}.touch-btn-jump{background:#10b9818c}.touch-btn-reverse{background:#334155b8}.touch-btn-reverse.is-active{background:#f59e0bd9;border-color:#fde68a;color:#0f172a}.touch-btn-enter{width:60px;height:60px;background:#38bdf8a6}.touch-btn-small{width:52px;height:52px}.hud-hotbar{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translate(-50%);display:flex;align-items:center;gap:4px;padding:5px;border-radius:10px;background:#0f172ac7;border:2px solid rgba(148,163,184,.45);backdrop-filter:blur(4px);pointer-events:auto;z-index:20}.hud-hotbar-slot{position:relative;width:48px;height:48px;border-radius:6px;border:2px solid rgba(148,163,184,.4);background:#1e293bd1;color:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;padding:2px;touch-action:manipulation;user-select:none;-webkit-user-select:none}.hud-hotbar-slot.is-selected{border-color:#38bdf8;background:#38bdf847;box-shadow:0 0 10px #38bdf88c}.hud-hotbar-slot.is-vehicle{border-color:#fb923c;background:#fb923c47}.hud-hotbar-icon{font-size:1.25rem;line-height:1.1}.hud-hotbar-ammo{font-size:.68rem;font-weight:800;color:#22d3ee;line-height:1}@media(max-width:900px){.hud-hotbar-slot{width:42px;height:42px}.hud-hotbar-icon{font-size:1.05rem}}.qr-box{display:flex;flex-direction:column;align-items:center;gap:8px;margin:10px 0;padding:10px;background:#fff;color:#0f172a;border-radius:10px}.qr-box[hidden],.field input[hidden]{display:none}.hud-lcd-timer{margin-top:6px;padding:4px 10px;background:#062814;border:3px solid #090d16;box-shadow:inset 0 0 8px #22c55e59,0 2px 6px #000000b3;color:#4ade80;font-family:Courier New,monospace;font-size:1.15rem;font-weight:900;letter-spacing:.08em;text-shadow:0 0 6px rgba(74,222,128,.7)}.hud-vehicle-banner{display:inline-block;margin-top:4px;padding:4px 18px;background:linear-gradient(180deg,#fde047,#eab308 55%,#ca8a04);border:3px solid #1e293b;box-shadow:0 3px #000,inset 0 1px #ffffffb3;color:#090d16;font-family:Impact,Arial Black,sans-serif;font-size:1.05rem;font-weight:900;letter-spacing:.08em}.hud-spectate-banner{background:#0f172ae0;border:2px solid #38bdf8;color:#090d16;text-shadow:-1px -1px 0 #ffffff,1px -1px 0 #ffffff,-1px 1px 0 #ffffff,1px 1px 0 #ffffff,0 0 4px #ffffff}.hud-center-notice{margin-top:4px;font-size:.9rem;font-weight:900;color:#ef4444;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000}.hud-vehicle-hp{display:flex;align-items:center;gap:6px;margin:2px 0 4px}.hud-vehicle-hp-icon{font-size:.8rem;line-height:1}.hud-vehicle-hp-bar{flex:1;min-width:88px;height:8px;background:#0f172ae6;border:1px solid rgba(255,255,255,.35);border-radius:999px;overflow:hidden}.hud-vehicle-hp-fill{height:100%;transition:width .1s linear,background-color .2s ease}.hud-wasted-overlay{position:fixed;top:22%;left:50%;transform:translate(-50%);font-family:Impact,Arial Black,sans-serif;font-size:clamp(2.8rem,8vw,5rem);font-weight:900;letter-spacing:.08em;color:#fb923c;text-shadow:-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000,2px 2px 0 #000,0 6px 12px rgba(0,0,0,.85);pointer-events:none;z-index:15}.hud-bottom-left{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:4px;max-width:340px}.hud-chat-line{font-size:.8rem;font-weight:700;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000}.hud-chat-input{pointer-events:auto;margin-top:4px;padding:6px 10px;border-radius:6px;border:1px solid #38bdf8;background:#0f172ae6;color:#f8fafc;font-size:.82rem;outline:none}.hud-buffs-row{display:flex;flex-direction:row-reverse;gap:6px;margin-top:4px}.hud-buff-item{display:flex;flex-direction:column;align-items:center;font-size:.85rem;font-weight:900;text-shadow:0 1px 2px #000}.result-ribbon{display:inline-block;padding:6px 16px;background:linear-gradient(135deg,#facc15,#f97316);color:#090d16;font-family:Impact,Arial Black,sans-serif;font-size:1.25rem;letter-spacing:.06em;border-radius:6px;margin-bottom:10px}.result-table{width:100%;border-collapse:collapse;font-size:.8rem;margin-bottom:14px}.result-table th,.result-table td{padding:5px 6px;border-bottom:1px solid var(--border);text-align:center}.result-table th:first-child,.result-table td:first-child{text-align:left}@keyframes hudWantedBounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}.hud-wanted-spotting{display:inline-block;animation:hudWantedBounce .35s ease-in-out infinite}.controls-help-box{background:#0f172ab8;border:1px solid var(--border);border-radius:10px;padding:10px 12px;margin-bottom:12px}.controls-help-title{font-size:.8rem;font-weight:700;color:#38bdf8;margin-bottom:6px}.controls-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;font-size:.76rem;color:#cbd5e1}.controls-help-item{display:flex;justify-content:space-between;gap:6px}.controls-help-key{color:#facc15;font-weight:700;white-space:nowrap}.result-auto-countdown{text-align:center;font-size:.8rem;color:#94a3b8;margin-bottom:8px}#app.is-portrait-rotated{position:fixed;top:0;left:100%;width:100vh;height:100vw;transform:rotate(90deg);transform-origin:top left}@supports (width: 100dvh){#app.is-portrait-rotated{width:100dvh;height:100dvw}}
