/* ============================================================
   OUTBREAK — shared styles (player · facilitator · big screen)
   ============================================================ */
:root {
  --bg: #07090a;
  --panel: rgba(14, 20, 17, 0.92);
  --line: rgba(160, 255, 140, 0.18);
  --toxic: #b6ff4a;
  --toxic-dim: #6fae2a;
  --blood: #ff3b30;
  --amber: #ffb02e;
  --text: #e9f1e6;
  --muted: #8c9a8c;
  --team: #b6ff4a;
  --head: 'Black Ops One', Impact, 'Arial Black', sans-serif;
  --body: 'Rajdhani', 'Segoe UI', Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; }
body { overscroll-behavior: none; }
h1, h2, h3, .stencil { font-family: var(--head); font-weight: 400; letter-spacing: 0.04em; margin: 0 0 0.4em; }
button { font-family: inherit; }
input {
  font: 600 20px var(--body); color: var(--text); background: rgba(0,0,0,0.5);
  border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; outline: none;
}
input:focus { border-color: var(--toxic); }
.err { color: #ff6b5e; min-height: 1.2em; font-weight: 600; margin: 8px 0 0; }
.fine { color: var(--muted); font-size: 14px; text-align: center; }
.small { font-size: 14px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--line); background: rgba(255,255,255,0.06); color: var(--text);
  font: 700 16px var(--body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 10px; cursor: pointer; user-select: none;
}
.btn:hover { border-color: var(--toxic-dim); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--toxic); color: #0b1205; border-color: var(--toxic); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: #3a0d0b; border-color: #a02a22; color: #ffb7b1; }
.btn.warn { background: #3a2a07; border-color: #a77815; color: #ffe2a3; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 16px; font-size: 19px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.card h3 { font-size: 18px; color: var(--toxic); }

/* ---------------- toasts ---------------- */
#toasts { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 128px); transform: translateX(-50%); width: min(92vw, 440px); z-index: 60; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { background: rgba(10,14,12,0.94); border-left: 4px solid var(--toxic); padding: 10px 12px; border-radius: 8px; font-weight: 600; opacity: 0; transform: translateY(-8px); transition: all .3s; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.toast.in { opacity: 1; transform: none; }
.toast.bad { border-color: var(--blood); }
.toast.warn { border-color: var(--amber); }
.toast.good { border-color: #3ddc84; }

/* ============================================================
   PLAYER
   ============================================================ */
body.player { position: fixed; inset: 0; overflow: hidden; }
.screen { display: none; position: absolute; inset: 0; }
.screen.active { display: block; }
#scr-join, #scr-lobby, #scr-results { overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: radial-gradient(ellipse at 50% 0%, rgba(110,200,60,0.16), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 9px), var(--bg); }
.join-wrap, .lobby-wrap, .results-wrap { max-width: 460px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 28px) 20px 40px; }
.logo { text-align: center; margin: 20px 0 26px; }
.logo-mark { font-size: 64px; color: var(--toxic); text-shadow: 0 0 24px rgba(182,255,74,.6); line-height: 1; animation: pulse 2.4s infinite; }
.logo h1 { font-size: 56px; margin: 6px 0 0; color: var(--text); text-shadow: 3px 3px 0 #3a0d0b; }
.logo .tag { letter-spacing: 0.4em; text-transform: uppercase; color: var(--toxic); margin: 4px 0 0; font-weight: 700; font-size: 14px; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }
#join-form label { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
#join-form label input { margin-top: 6px; }
#in-code { font-family: var(--head); font-size: 34px; letter-spacing: 0.35em; text-align: center; text-transform: uppercase; }

.team-badge { text-align: center; border: 3px solid var(--team); border-radius: 16px; padding: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--team) 22%, transparent), transparent); }
.team-badge strong { display: block; font-family: var(--head); font-size: 36px; color: var(--team); margin: 4px 0; }
.members { list-style: none; margin: 0; padding: 0; }
.members li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 600; }
.members li:last-child { border-bottom: 0; }
.members li.off .nm { opacity: .45; }
.members li.off .nm::after { content: ' · offline'; font-size: 12px; color: var(--muted); }
.mini-hp { width: 90px; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.mini-hp i { display: block; height: 100%; background: var(--toxic); }
.tag-inf { background: #2b5d10; color: #c8ff8c; font-size: 12px; padding: 2px 8px; border-radius: 6px; letter-spacing: .1em; }
.brief ol { margin: 0; padding-left: 20px; }
.brief li { margin-bottom: 8px; line-height: 1.35; }
#btn-arm { margin-top: 8px; }

/* ---------------- game view ---------------- */
#scr-game { background: #000; touch-action: none; user-select: none; -webkit-user-select: none; }
#cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
body.has-cam #cam { display: block; }
#tint { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(20,40,10,0.05), rgba(0,10,0,0.45)); mix-blend-mode: multiply; }
body.has-cam #tint { background: radial-gradient(ellipse at center, rgba(30,60,20,0.12), rgba(0,15,0,0.55)); }
#view, #gl, #bg, #lens { position: absolute; inset: 0; }
#gl, #bg, #lens { pointer-events: none; width: 100%; height: 100%; }
#lens { opacity: 0; }
#lens.fade { transition: opacity 2.6s ease-in; }
.credit { font-size: 11px; opacity: .6; margin-top: 18px; }
#vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; box-shadow: inset 0 0 120px 40px rgba(220,0,0,0.75); }
#flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
#flash.on { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
body.is-infected #gl, body.is-infected #view { filter: grayscale(.6) sepia(.4) hue-rotate(50deg); }

#hud { position: absolute; inset: 0; pointer-events: none; }
#hud button, #hud .ammo { pointer-events: auto; }
.hud-top { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; }
.phase-box, .team-box { background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; }
.phase-box #hud-phase { font-family: var(--head); font-size: 15px; color: var(--toxic); }
.phase-box #hud-timer { font: 700 26px var(--body); font-variant-numeric: tabular-nums; line-height: 1; }
#hud-timer.urgent { color: var(--blood); animation: pulse 1s infinite; }
.team-box { text-align: right; border-color: var(--team); }
.team-box #hud-team-name { font-family: var(--head); color: var(--team); font-size: 15px; }
.team-box b { font-size: 20px; }
.powered { align-self: flex-start; margin-top: 2px; padding: 3px 8px; text-align: center; line-height: 1.05; background: rgba(0,0,0,0.45); border: 1px solid rgba(182,255,74,0.35); border-radius: 8px; backdrop-filter: blur(4px); }
.powered small { display: block; font: 700 8px var(--body); letter-spacing: .22em; color: var(--muted); }
.powered b { display: block; font: 400 13px var(--head); letter-spacing: .12em; color: var(--toxic); text-shadow: 0 0 8px rgba(182,255,74,.45); }
@media (max-width: 340px) { .powered { display: none; } }
.powered-line { text-align: center; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.powered-line b { font-family: var(--head); font-weight: 400; color: var(--toxic); letter-spacing: .14em; }
.sc-powered { font-size: 2.2vh; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.sc-powered b { font: 400 3.4vh var(--head); color: var(--toxic); letter-spacing: .15em; text-shadow: 0 0 14px rgba(182,255,74,.4); }
.sc-powered.big { font-size: 2.4vh; margin-top: 1vh; }
#hud-effects { position: absolute; top: calc(env(safe-area-inset-top) + 74px); left: 10px; display: flex; flex-direction: column; gap: 4px; }
.chip { background: rgba(0,0,0,0.6); border: 1px solid var(--amber); color: #ffe2a3; padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 14px; }
#ticker { position: absolute; top: calc(env(safe-area-inset-top) + 74px); right: 10px; max-width: 60%; text-align: right; font-weight: 700; font-size: 14px; background: rgba(0,0,0,0.55); padding: 4px 8px; border-radius: 6px; opacity: 0; transition: opacity .3s; }
#ticker.on { opacity: 1; }
#mode-hint { position: absolute; left: 0; right: 0; top: 42%; text-align: center; font-weight: 700; color: var(--amber); text-shadow: 0 1px 4px #000; padding: 0 30px; }

#crosshair { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; }
#crosshair i { position: absolute; background: var(--toxic); box-shadow: 0 0 6px rgba(182,255,74,.9); }
#crosshair i:nth-child(1) { left: 26px; top: 0; width: 4px; height: 16px; }
#crosshair i:nth-child(2) { left: 26px; bottom: 0; width: 4px; height: 16px; }
#crosshair i:nth-child(3) { top: 26px; left: 0; width: 16px; height: 4px; }
#crosshair i:nth-child(4) { top: 26px; right: 0; width: 16px; height: 4px; }
#crosshair::after { content: ''; position: absolute; left: 25px; top: 25px; width: 6px; height: 6px; border-radius: 50%; background: var(--toxic); }
#crosshair.kick { animation: kick .16s ease-out; }
@keyframes kick { 40% { transform: scale(1.35); } }
#hitmark { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; opacity: 0;
  background: linear-gradient(45deg, transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #fff 46% 54%, transparent 54%); }
#hitmark.on { animation: flash .25s; }
#hitmark.head { filter: drop-shadow(0 0 4px #f00) sepia(1) saturate(8) hue-rotate(-30deg); transform: scale(1.3); }

#radar { position: absolute; left: 10px; bottom: calc(env(safe-area-inset-bottom) + 150px); width: 100px; height: 100px; }

.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 10px calc(env(safe-area-inset-bottom) + 10px); background: linear-gradient(transparent, rgba(0,0,0,0.75)); }
.vitals { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hp { position: relative; flex: 1; height: 26px; background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.25); border-radius: 8px; overflow: hidden; }
#hp-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #47c21b, var(--toxic)); transition: width .25s; }
#hp-fill.low { background: linear-gradient(90deg, #a5170f, var(--blood)); animation: pulse 0.8s infinite; }
#hp-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; text-shadow: 0 1px 2px #000; }
#hp-text::before { content: 'HEALTH\00a0\00a0'; font-size: 12px; letter-spacing: .12em; opacity: .85; }
.ammo { position: relative; min-width: 92px; height: 44px; display: flex; align-items: baseline; justify-content: center; gap: 2px; background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.25); border-radius: 8px; padding-top: 4px; cursor: pointer; }
#ammo-text { font: 700 30px var(--body); line-height: 1; }
.ammo small { color: var(--muted); }
.ammo em { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-style: normal; font-weight: 700; color: var(--amber); background: rgba(0,0,0,0.75); border-radius: 6px; letter-spacing: .1em; }
.ammo.empty em, .ammo.reloading em { display: flex; }
.ammo.reloading em { animation: pulse .5s infinite; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; background: rgba(12,18,14,0.85); border: 2px solid var(--line); border-radius: 12px; color: var(--text); font: 700 14px var(--body); text-transform: uppercase; letter-spacing: .06em; }
.act span { font-size: 22px; color: var(--toxic); line-height: 1; }
.act:active { transform: scale(.96); border-color: var(--toxic); }

/* overlays */
.overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; z-index: 20; }
.overlay.open { display: flex; }
.overlay.soft { pointer-events: none; align-items: flex-start; padding-top: calc(env(safe-area-inset-top) + 130px); }
.overlay.soft .ov-card { background: rgba(0,0,0,0.6); border: 1px solid var(--line); padding: 12px 16px; border-radius: 12px; text-align: center; max-width: 360px; }
.overlay.soft h2 { color: var(--toxic); font-size: 20px; }
.overlay.soft p { margin: 0; font-weight: 600; }
.overlay.panel { background: rgba(0,0,0,0.55); align-items: flex-end; padding: 0; z-index: 30; }
.panel-card { width: 100%; max-height: 86%; overflow-y: auto; background: #0d1310; border-top: 2px solid var(--toxic); border-radius: 18px 18px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom) + 18px); }
.panel-card h2 { color: var(--toxic); font-size: 22px; }
.panel-card h3 { margin-top: 16px; font-size: 16px; color: var(--muted); }
.panel-card .btn { width: 100%; margin-top: 10px; }

.overlay.infected { background: radial-gradient(ellipse at center, rgba(40,90,10,0.82), rgba(5,20,2,0.95)); z-index: 25; text-align: center; }
.overlay.infected h2 { font-size: 30px; color: var(--toxic); }
.biohazard { font-size: 80px; color: var(--toxic); animation: pulse 1.6s infinite; line-height: 1; }
.cure-code { font: 400 72px var(--head); letter-spacing: 0.18em; color: #fff; background: rgba(0,0,0,0.5); border: 3px dashed var(--toxic); border-radius: 14px; padding: 6px 10px 6px 24px; margin: 10px auto; display: inline-block; }
.cure-code.input { display: block; text-align: center; font-size: 54px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.keypad button { font: 700 28px var(--body); padding: 12px 0; border-radius: 12px; border: 2px solid var(--line); background: rgba(255,255,255,0.05); color: var(--text); }
.keypad button:active { background: var(--toxic); color: #000; }
.keypad .ok { color: var(--toxic); }

#ov-scan { flex-direction: column; justify-content: space-between; background: transparent; }
.scan-frame { margin-top: calc(env(safe-area-inset-top) + 90px); position: relative; width: 66vw; height: 66vw; max-width: 320px; max-height: 320px; border: 3px solid var(--toxic); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5); }
.scan-frame i { position: absolute; left: 6%; right: 6%; height: 3px; background: var(--toxic); box-shadow: 0 0 10px var(--toxic); animation: scan 1.8s ease-in-out infinite alternate; }
.scan-frame span { position: absolute; top: 100%; left: -20%; right: -20%; text-align: center; margin-top: 12px; font-weight: 700; text-shadow: 0 1px 3px #000; }
@keyframes scan { from { top: 8%; } to { top: 92%; } }
#scan-form { display: flex; gap: 8px; }
#scan-form input { text-transform: uppercase; }
#scan-form .btn { width: auto; margin: 0; }

.size-row { display: flex; align-items: center; gap: 12px; }
.size-row input[type=range] { flex: 1; padding: 0; height: 28px; accent-color: var(--toxic); background: none; border: 0; }
.size-row output { font-weight: 700; min-width: 48px; text-align: right; }
.radio-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.radio-parts span { padding: 4px 10px; border-radius: 8px; border: 1px dashed rgba(255,255,255,0.25); color: var(--muted); font-weight: 700; }
.radio-parts span.got { border: 1px solid var(--toxic); color: var(--toxic); background: rgba(182,255,74,0.08); }
.mini-board { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.mini-board li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); counter-increment: r; font-weight: 600; }
.mini-board li::before { content: counter(r); width: 20px; color: var(--muted); }
.mini-board li i { width: 12px; height: 12px; border-radius: 3px; }
.mini-board li .nm { flex: 1; }
.mini-board li.me { background: rgba(182,255,74,0.08); border-radius: 6px; }

.loot { text-align: center; }
.loot-icon { font-size: 72px; animation: pop .5s; }
.loot .pts { color: var(--toxic); font-weight: 700; font-size: 20px; }
@keyframes pop { 0% { transform: scale(.2) rotate(-20deg); } 70% { transform: scale(1.2); } }

#announce { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font: 400 54px var(--head); letter-spacing: .05em; pointer-events: none; opacity: 0; text-shadow: 0 0 20px rgba(0,0,0,.9), 3px 3px 0 #000; z-index: 40; padding: 0 16px; }
#announce.on { animation: announce 3.2s ease-out forwards; }
@keyframes announce { 0% { opacity: 0; transform: scale(2); } 10% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

#rotate-warn { display: none; position: absolute; inset: 0; z-index: 90; background: #000; align-items: center; justify-content: center; text-align: center; font: 400 26px var(--head); color: var(--toxic); }
@media (orientation: landscape) and (pointer: coarse) { #rotate-warn { display: flex; } }

body.offline .hud-top::after { content: 'RECONNECTING…'; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; background: var(--blood); color: #fff; padding: 2px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; }

/* results */
.results-wrap h1 { text-align: center; font-size: 40px; color: var(--toxic); }
.res-team { text-align: center; border: 3px solid var(--toxic); border-radius: 16px; padding: 16px; }
.res-team .place { font: 400 64px var(--head); line-height: 1; }
.res-team .nm { font: 400 28px var(--head); }
.res-team .pts { color: var(--toxic); font-weight: 700; font-size: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat b { display: block; font: 400 30px var(--head); color: var(--toxic); }
.stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   FACILITATOR
   ============================================================ */
body.host { background: radial-gradient(ellipse at 20% 0%, rgba(110,200,60,0.10), transparent 50%), var(--bg); min-height: 100%; }
.host-wrap { max-width: 1280px; margin: 0 auto; padding: 20px; }
.host-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.host-head h1 { font-size: 30px; margin: 0; }
.host-head h1 span { color: var(--toxic); }
.login { max-width: 380px; margin: 12vh auto; text-align: center; }
.login form { display: flex; flex-direction: column; gap: 10px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.form-grid label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form-grid input, .form-grid select { margin-top: 4px; }
select { font: 600 18px var(--body); color: var(--text); background: rgba(0,0,0,0.5); border: 2px solid var(--line); border-radius: 10px; padding: 10px; width: 100%; }
.game-list { list-style: none; padding: 0; margin: 0; }
.game-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-big { font: 400 54px var(--head); letter-spacing: .15em; color: var(--toxic); line-height: 1; }
.join-box { display: flex; gap: 16px; align-items: center; }
.join-box img { width: 120px; height: 120px; background: #fff; border-radius: 8px; padding: 4px; }
.join-box a { color: var(--text); word-break: break-all; }
.status-line { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.status-line .ph { font: 400 26px var(--head); color: var(--toxic); }
.status-line .tm { font: 700 34px var(--body); font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bcast { display: flex; gap: 8px; margin-top: 10px; }
.bcast .btn { white-space: nowrap; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.team-card { border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 10px; padding: 10px; background: rgba(0,0,0,0.3); }
.team-card .th { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.team-card .th input { font: 400 17px var(--head); color: var(--c); background: transparent; border: 1px dashed transparent; padding: 2px 4px; }
.team-card .th input:hover, .team-card .th input:focus { border-color: var(--line); }
.team-card .sc { font: 700 22px var(--body); }
.team-card .meta { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.team-card ul { list-style: none; margin: 0; padding: 0; }
.team-card li { display: flex; align-items: center; gap: 6px; font-size: 15px; padding: 3px 0; }
.team-card li .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card li.off .nm { opacity: .45; }
.team-card li .inf { color: var(--toxic); font-weight: 700; font-size: 12px; }
.team-card li select { width: auto; padding: 2px; font-size: 12px; border-width: 1px; }
.team-card li .x { background: none; border: 0; color: #ff8a80; cursor: pointer; font-size: 15px; }
.team-card .adj { display: flex; gap: 4px; margin-top: 6px; }
.team-card .adj button { flex: 1; padding: 4px; font-size: 13px; }
table.caches { width: 100%; border-collapse: collapse; font-size: 15px; }
table.caches th, table.caches td { text-align: left; padding: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
table.caches td code { font: 700 16px ui-monospace, monospace; color: var(--toxic); }
.dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.feed { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; font-size: 15px; }
.feed li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.feed li time { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.feed li.bad { color: #ff9b93; } .feed li.good { color: #a9f59b; } .feed li.alert { color: var(--amber); } .feed li.loot { color: #9fd8ff; }
.warnbar { background: #3a2a07; border: 1px solid #a77815; color: #ffe2a3; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }

/* ============================================================
   BIG SCREEN
   ============================================================ */
body.screen-page { overflow: hidden; height: 100vh; background:
  radial-gradient(ellipse at 50% -10%, rgba(110,200,60,0.18), transparent 55%),
  repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 10px), var(--bg); }
.sc-wrap { height: 100vh; display: grid; grid-template-rows: auto 1fr; padding: 2.2vh 2.5vw; gap: 2vh; }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-title { font: 400 5vh var(--head); margin: 0; }
.sc-title span { color: var(--toxic); }
.sc-phase { text-align: right; }
.sc-phase .ph { font: 400 4vh var(--head); color: var(--toxic); }
.sc-phase .tm { font: 700 8vh var(--body); line-height: .9; font-variant-numeric: tabular-nums; }
.sc-phase .tm.urgent { color: var(--blood); animation: pulse 1s infinite; }
.sc-main { display: grid; grid-template-columns: 1fr 26vw; gap: 2vw; min-height: 0; }
.board { display: flex; flex-direction: column; gap: 1vh; min-height: 0; }
.brow { position: relative; display: grid; grid-template-columns: 5vh 1fr auto; align-items: center; gap: 1.5vw; padding: 0 1.5vw; background: rgba(0,0,0,0.45); border: 1px solid var(--line); border-left: 1vh solid var(--c); border-radius: 1vh; overflow: hidden; flex: 1; max-height: 9vh; transition: transform .6s; }
.brow .bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, transparent), transparent); transition: width .8s; z-index: 0; }
.brow > *:not(.bar) { position: relative; z-index: 1; }
.brow .rk { font: 400 4vh var(--head); color: var(--muted); }
.brow .nm { font: 400 3.6vh var(--head); color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .info { font-size: 2vh; color: var(--muted); font-weight: 600; display: flex; gap: 1.2vw; }
.brow .info .parts b { color: var(--toxic); }
.brow .sc { font: 700 5vh var(--body); font-variant-numeric: tabular-nums; }
.side { display: flex; flex-direction: column; gap: 2vh; min-height: 0; }
.side .card { margin: 0; }
.side .card h3 { font-size: 2.4vh; }
.side .feed { max-height: none; font-size: 2vh; flex: 1; overflow: hidden; }
.side .feedcard { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.sc-stats b { display: block; font: 400 4.5vh var(--head); color: var(--toxic); }
.sc-stats span { font-size: 1.7vh; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.sc-join { text-align: center; }
.sc-join img { width: 100%; max-width: 30vh; background: #fff; padding: 1vh; border-radius: 1vh; }
.sc-join .code { font: 400 7vh var(--head); letter-spacing: .2em; color: var(--toxic); }
.sc-join .url { font-size: 2vh; color: var(--muted); }
.sc-join .count { font-size: 2.6vh; font-weight: 700; }
#sc-announce { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font: 400 12vh var(--head); pointer-events: none; opacity: 0; text-shadow: 0 0 40px rgba(0,0,0,.9), 6px 6px 0 #000; padding: 0 5vw; z-index: 10; }
#sc-announce.on { animation: announce 4s ease-out forwards; }
.podium { position: fixed; inset: 0; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(4,7,5,0.96); gap: 3vh; }
.podium.on { display: flex; }
.podium h1 { font-size: 7vh; color: var(--toxic); }
.pod { display: flex; align-items: flex-end; gap: 2vw; }
.pod .p { width: 20vw; text-align: center; }
.pod .p .blk { border-radius: 1vh 1vh 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 2vh; font: 400 8vh var(--head); color: #0b1205; }
.pod .p .nm { font: 400 3.4vh var(--head); margin-bottom: 1vh; }
.pod .p .pt { font: 700 3vh var(--body); color: var(--toxic); }
.mvps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5vw; width: 86vw; }
.mvp { background: rgba(0,0,0,0.45); border: 1px solid var(--line); border-radius: 1.2vh; padding: 1.6vh; text-align: center; }
.mvp .aw { font: 400 2.2vh var(--head); color: var(--amber); }
.mvp .who { font: 700 3vh var(--body); }
.mvp .val { color: var(--muted); font-size: 2vh; font-weight: 600; }
.sc-empty { display: flex; align-items: center; justify-content: center; height: 100vh; flex-direction: column; gap: 2vh; }
