:root {
  --uv-cyan: #00f0ff;
  --uv-pink: #ff1ad9;
  --uv-lime: #a6ff00;
  --uv-violet: #9d4edd;
  --laser-red: #ff2244;
  --amber: #ffaa33;
  --bg-dark: #070412;
  --panel-bg: rgba(11, 7, 26, 0.82);
  --panel-border: rgba(0, 240, 255, 0.45);
  --text: #f3efff;
  --muted: #a699cc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#game-container {
  position: fixed;
  inset: 0;
}

.hidden {
  display: none !important;
}

#damage-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, transparent 45%, rgba(255, 26, 217, 0.65) 100%);
  transition: opacity 0.2s ease-out;
  z-index: 5;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hud-panel {
  position: absolute;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 22px rgba(157, 78, 221, 0.3), inset 0 0 14px rgba(0, 240, 255, 0.08);
}

.panel-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 800;
}

/* Top-Left Round Timer */
#round-panel {
  top: 16px;
  left: 16px;
  min-width: 260px;
}

.round-timer {
  margin-top: 2px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--uv-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.round-timer.urgent {
  color: var(--laser-red);
  text-shadow: 0 0 14px rgba(255, 34, 68, 0.8);
}

.meta-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.pill.cyan {
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--uv-cyan);
}

.pill.pink {
  background: rgba(255, 26, 217, 0.14);
  border: 1px solid rgba(255, 26, 217, 0.45);
  color: #ff88eb;
}

.hint-line {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

/* Top Center Feed */
#center-top {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 340px;
}

#deactivated-banner {
  position: fixed;
  bottom: 132px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(36, 10, 26, 0.92);
  border: 2px solid var(--amber);
  border-radius: 10px;
  padding: 8px 18px;
  text-align: center;
  box-shadow: 0 0 24px rgba(255, 170, 51, 0.4);
  z-index: 12;
}

.deact-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.deact-sub {
  font-size: 11px;
  color: #ffd8a6;
  margin-top: 2px;
}

#kill-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.feed-item {
  background: rgba(11, 7, 26, 0.86);
  border: 1px solid rgba(255, 34, 68, 0.55);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

/* Top-Right Live Scoreboard */
#scoreboard-panel {
  top: 16px;
  right: 16px;
  min-width: 270px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}

#player-score-pill {
  color: var(--uv-lime);
}

#entity-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.entity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.entity-name {
  font-weight: 800;
  min-width: 78px;
}

.entity-name.deact {
  color: #7c7291;
}

.entity-stats {
  font-size: 11px;
  color: var(--muted);
}

.entity-state {
  font-size: 10px;
  font-weight: 800;
  min-width: 58px;
  text-align: right;
  color: var(--uv-lime);
}

.entity-state.off {
  color: var(--amber);
}

/* Crosshair & Hitmarker */
#crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
}

.ch-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 6px rgba(255, 34, 68, 0.9);
}

.ch-top { width: 2px; height: 7px; left: 13px; top: 0; }
.ch-bottom { width: 2px; height: 7px; left: 13px; bottom: 0; }
.ch-left { height: 2px; width: 7px; top: 13px; left: 0; }
.ch-right { height: 2px; width: 7px; top: 13px; right: 0; }
.ch-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--laser-red);
  top: 12px;
  left: 12px;
}

#hitmarker {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
}

.hm-arm {
  position: absolute;
  width: 9px;
  height: 2.5px;
  background: var(--uv-lime);
  box-shadow: 0 0 8px var(--uv-lime);
}

.hm-1 { top: 4px; left: 2px; transform: rotate(45deg); }
.hm-2 { top: 4px; right: 2px; transform: rotate(-45deg); }
.hm-3 { bottom: 4px; left: 2px; transform: rotate(-45deg); }
.hm-4 { bottom: 4px; right: 2px; transform: rotate(45deg); }

#damage-popups {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dmg-popup {
  position: absolute;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 2px 5px #000;
  transform: translate(-50%, -50%);
}

.dmg-popup.sensor-hit {
  color: var(--uv-lime);
}

.dmg-popup.armor-miss {
  color: #8f9bb8;
  font-size: 12px;
}

/* Bottom Left Pack Status */
#pack-panel {
  bottom: 18px;
  left: 18px;
  width: 310px;
}

.pack-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pack-active {
  font-size: 15px;
  font-weight: 900;
  color: var(--uv-lime);
  text-shadow: 0 0 8px rgba(166, 255, 0, 0.5);
}

.pack-active.off {
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255, 170, 51, 0.5);
}

.sensor-pills {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.sensor-chip {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 2px;
  border-radius: 5px;
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--uv-cyan);
}

.sensor-chip.off {
  background: rgba(60, 48, 72, 0.4);
  border-color: rgba(140, 120, 150, 0.4);
  color: #8c8299;
}

.status-sub {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

/* Bottom Right Phaser */
#weapon-panel {
  bottom: 18px;
  right: 18px;
  width: 240px;
  text-align: right;
}

.ammo-row {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.phaser-ready {
  font-size: 20px;
  font-weight: 900;
  color: var(--laser-red);
}

.phaser-ready.off {
  color: var(--amber);
}

.ammo-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.charge-bar-outer {
  height: 7px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 34, 68, 0.45);
}

#fire-cooldown-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff1ad9, #ff2244);
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 14, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 30;
  overflow-y: auto;
  padding: 20px 18px;
}

.overlay-card {
  margin: auto;
  background: linear-gradient(160deg, rgba(18, 11, 38, 0.96), rgba(8, 5, 19, 0.98));
  border: 2px solid var(--uv-cyan);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 620px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 46px rgba(255, 26, 217, 0.25);
}

.report-card {
  max-width: 960px;
  border-color: var(--uv-pink);
}

.brand-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #080412;
  background: linear-gradient(90deg, var(--uv-cyan), var(--uv-lime));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.overlay-card h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.55);
}

.subtitle {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.controls-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.ctrl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

kbd {
  background: rgba(255, 26, 217, 0.18);
  border: 1px solid rgba(255, 26, 217, 0.55);
  color: #ff99f0;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.settings-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.settings-row input[type="range"] {
  flex: 1;
  accent-color: var(--uv-cyan);
}

.round-opts {
  display: flex;
  gap: 8px;
}

.dur-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.1);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.dur-btn.active {
  background: var(--uv-cyan);
  color: #080412;
}

.menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.primary-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #070412;
  background: linear-gradient(90deg, var(--uv-cyan), var(--uv-lime));
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.4);
}

.secondary-btn {
  width: 100%;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff99f0;
  background: rgba(255, 26, 217, 0.14);
  border: 1px solid rgba(255, 26, 217, 0.55);
  border-radius: 10px;
  cursor: pointer;
}

.menu-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

/* Report Card Tables */
.formula-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.formula-note code {
  color: var(--uv-lime);
  background: rgba(166, 255, 0, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.leaderboard-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th, td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(157, 78, 221, 0.25);
  text-align: center;
}

th {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

tr.winner-row {
  background: rgba(166, 255, 0, 0.12);
}

.report-tabs-header {
  margin-top: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: left;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tab-btn {
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--uv-pink);
  border-color: var(--uv-pink);
  color: #fff;
}

.report-detail-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 1.2fr;
  gap: 12px;
  text-align: left;
}

@media (max-width: 820px) {
  .report-detail-grid {
    grid-template-columns: 1fr;
  }
}

.report-box {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.report-box h3 {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--uv-cyan);
  margin-bottom: 8px;
}

.vest-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vest-svg {
  width: 100%;
  max-width: 190px;
}

.empty-note {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}


/* Scope sight picture (hold right mouse) */
#scope-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0, transparent 30vmin, rgba(0, 0, 0, 0.92) 31vmin);
}
.scope-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62vmin;
  height: 62vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35), inset 0 0 40px rgba(0, 240, 255, 0.12);
}
.scope-line {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 34, 68, 0.75);
  transform: translate(-50%, -50%);
}
.scope-h { width: 62vmin; height: 1px; }
.scope-v { width: 1px; height: 62vmin; }
.scope-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--laser-red);
  box-shadow: 0 0 8px var(--laser-red);
  transform: translate(-50%, -50%);
}

/* ---------- Lobby / game-type picker ---------- */
.pill.lime {
  background: rgba(166, 255, 0, 0.12);
  border: 1px solid rgba(166, 255, 0, 0.45);
  color: var(--uv-lime);
}
.pill.team-blue {
  background: rgba(47, 155, 255, 0.18);
  border: 1px solid rgba(47, 155, 255, 0.6);
  color: #8cc8ff;
}
.pill.team-red {
  background: rgba(255, 45, 85, 0.18);
  border: 1px solid rgba(255, 45, 85, 0.6);
  color: #ff9cb0;
}

.lobby {
  margin-top: 16px;
}
.lobby-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(166, 255, 0, 0.5);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.mode-card:hover {
  transform: translateY(-2px);
  background: rgba(166, 255, 0, 0.08);
  box-shadow: 0 0 22px rgba(166, 255, 0, 0.35);
}
.mode-card.mode-teams {
  border-color: rgba(47, 155, 255, 0.6);
  background: linear-gradient(90deg, rgba(47, 155, 255, 0.1), rgba(0, 0, 0, 0.4) 50%, rgba(255, 45, 85, 0.1));
}
.mode-card.mode-teams:hover {
  box-shadow: -10px 0 22px rgba(47, 155, 255, 0.35), 10px 0 22px rgba(255, 45, 85, 0.35);
}
.mode-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.mode-sub {
  font-size: 11px;
  color: var(--muted);
}
.mode-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
}
.mode-swatches i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.mode-swatches b {
  font-size: 10px;
  color: var(--muted);
  margin: 0 4px;
}
.mode-status {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #070412;
  background: var(--uv-lime);
  padding: 4px 14px;
  border-radius: 999px;
}
.mode-teams .mode-status {
  background: linear-gradient(90deg, #2f9bff, #ff2d55);
  color: #fff;
}

/* ---------- Team score bar (HUD) ---------- */
#team-score-bar {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 7, 26, 0.86);
  font-weight: 900;
}
#team-score-bar.hidden {
  display: none;
}
.ts-side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  min-width: 120px;
}
.ts-blue {
  background: linear-gradient(90deg, rgba(47, 155, 255, 0.45), rgba(47, 155, 255, 0.12));
  justify-content: flex-start;
}
.ts-red {
  background: linear-gradient(270deg, rgba(255, 45, 85, 0.45), rgba(255, 45, 85, 0.12));
  justify-content: flex-end;
}
.ts-name {
  font-size: 11px;
  letter-spacing: 0.16em;
}
.ts-score {
  font-size: 22px;
}
.ts-vs {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 10px;
  color: var(--muted);
}
.ts-side.leading .ts-score {
  text-shadow: 0 0 12px #fff;
}

/* Team grouping rows in scoreboard + report card */
.entity-team-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 4px 6px 2px;
  margin-top: 4px;
  border-bottom: 1px solid currentColor;
}
tr.team-header-row td {
  font-weight: 900;
  letter-spacing: 0.14em;
  border-bottom: 2px solid currentColor;
}
tr.team-header-row td:first-child {
  text-align: left;
}
.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.report-actions > * {
  flex: 1;
}

/* ---------- Online lobby ---------- */
.lobby-card {
  max-width: 980px;
}
.name-form {
  margin: 22px auto 4px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.name-form label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.name-form input,
.chat-form input {
  font: inherit;
  font-size: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  outline: none;
  user-select: text;
}
.name-form input {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.name-form input:focus,
.chat-form input:focus {
  border-color: var(--uv-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}
.form-error {
  min-height: 16px;
  font-size: 12px;
  color: #ff8aa0;
}
.link-btn {
  background: none;
  border: none;
  color: var(--uv-cyan);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 4px;
}
#menu-lobby-btn {
  margin-top: 4px;
}
.lobby-topbar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.lobby-topbar strong {
  color: #fff;
}
.queue-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.queue-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.38);
  border: 2px solid rgba(166, 255, 0, 0.35);
  text-align: left;
}
.queue-panel[data-mode='teams'] {
  border-color: rgba(47, 155, 255, 0.45);
}
.queue-panel.joined {
  border-color: var(--uv-lime);
  box-shadow: 0 0 24px rgba(166, 255, 0, 0.25);
}
.queue-panel[data-mode='teams'].joined {
  border-color: #2f9bff;
  box-shadow: -8px 0 22px rgba(47, 155, 255, 0.3), 8px 0 22px rgba(255, 45, 85, 0.3);
}
.queue-panel .mode-title,
.queue-panel .mode-sub {
  text-align: center;
}
.queue-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
}
.queue-status {
  color: var(--uv-lime);
}
.queue-count {
  color: var(--muted);
}
.queue-live {
  font-size: 11px;
  color: var(--amber);
  min-height: 14px;
}
.queue-body {
  flex: 1;
}
.queue-panel .primary-btn,
.queue-panel .secondary-btn {
  padding: 10px;
  font-size: 13px;
}
.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.slot-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
}
.slot-chip i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--slot);
  box-shadow: 0 0 8px var(--slot);
  flex: none;
}
.slot-chip .slot-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slot-chip .slot-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.slot-chip.human {
  color: #fff;
  font-weight: 800;
  border-color: var(--slot);
}
.slot-chip.me {
  background: color-mix(in srgb, var(--slot) 22%, transparent);
}
.slot-chip:not(:disabled) {
  cursor: pointer;
}
.slot-chip:not(:disabled):hover {
  border-color: var(--slot);
  color: #fff;
}
.slot-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.team-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.team-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--team) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--team) 50%, transparent);
}
.team-col-head {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--team);
  white-space: pre;
}
.team-member {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-member.me::after {
  content: ' (you)';
  color: var(--team);
  font-weight: 600;
}
.team-member.bot {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.switch-btn {
  margin-top: 4px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--team);
  background: color-mix(in srgb, var(--team) 20%, transparent);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.switch-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.queue-chat {
  margin-top: 14px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 12px;
}
.chat-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--uv-cyan);
  margin-bottom: 6px;
}
.chat-log {
  height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  user-select: text;
  padding-right: 4px;
}
.chat-line {
  overflow-wrap: anywhere;
}
.chat-line.sys {
  color: var(--muted);
  font-style: italic;
  font-size: 12px;
}
.chat-who {
  font-weight: 900;
  color: var(--uv-pink);
  margin-right: 8px;
}
.chat-who.me {
  color: var(--uv-lime);
}
.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.chat-form input {
  flex: 1;
  font-size: 14px;
  padding: 8px 12px;
}
.chat-form .primary-btn {
  width: auto;
  padding: 8px 16px;
  font-size: 12px;
}
.lobby-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lobby-footer .menu-note {
  margin: 0;
  text-align: left;
}
.lobby-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: rgba(36, 10, 26, 0.95);
  border: 1px solid var(--amber);
  color: #ffd8a6;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 40;
}
.lobby-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.online-name-me {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .queue-grid {
    grid-template-columns: 1fr;
  }
  .lobby-footer {
    flex-direction: column;
  }
}
