:root {
  --bg: #0a0a0b;
  --panel: #141416;
  --panel-2: #1c1c20;
  --line: #2a2a30;
  --txt: #f2f2f4;
  --muted: #8a8a93;
  --gold: #d9a441;
  --green: #34c759;
  --red: #ff453a;
  --blue: #0a84ff;
  --radius: 16px;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.muted { color: var(--muted); }
.gold { color: var(--gold); }
.hidden { display: none !important; }

/* ===================== DISPLAY ===================== */

.display {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(1200px 600px at 50% -10%, #18181c 0%, var(--bg) 60%);
}

.display .topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.display .topbar h1 {
  font-size: clamp(20px, 2.4vw, 38px);
  letter-spacing: .18em;
  font-weight: 800;
  text-transform: uppercase;
}
.display .topbar .clock {
  position: absolute;
  right: 8px;
  top: 0;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: clamp(12px, 1vw, 16px);
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.stat .label {
  font-size: clamp(10px, .9vw, 14px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat .value {
  font-size: clamp(26px, 3.4vw, 56px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stat.prize .value { color: var(--gold); }

.center {
  background: linear-gradient(180deg, var(--panel) 0%, #0e0e10 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.center .status-pill {
  background: var(--gold);
  color: #1a1208;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: clamp(11px, 1vw, 15px);
  margin-bottom: 10px;
}
.center .status-pill.running { background: var(--green); color: #06210e; }
.center .status-pill.paused { background: var(--gold); }
.center .status-pill.setup { background: var(--blue); color: #021830; }
.center .status-pill.finished { background: var(--red); color:#2a0703; }

.center .time-label {
  color: var(--muted);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(10px, 1vw, 14px);
}
.center .timer {
  font-size: clamp(72px, 13vw, 220px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 18px;
}
.center .timer.warn { color: var(--red); }
.center .level-label {
  color: var(--muted);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.2vw, 18px);
}
.center .blinds {
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.center .ante {
  color: var(--gold);
  font-size: clamp(14px, 1.4vw, 22px);
  margin-top: 6px;
}
.center .next {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(12px, 1.2vw, 18px);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
  text-align: center;
}
.center .addon-info {
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(12px, 1.1vw, 17px);
  text-align: center;
}
.status-pill.addon { background: #ff453a; color: #fff; }

/* Banner grande de break de add-on */
.addon-banner {
  position: absolute;
  inset: 0;
  background: rgba(217, 164, 65, .96);
  color: #1a1208;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: addonPulse 1s ease-in-out infinite alternate;
  z-index: 5;
}
.addon-banner .ab-title { font-size: clamp(36px, 6vw, 90px); font-weight: 900; letter-spacing: .04em; }
.addon-banner .ab-sub { font-size: clamp(16px, 2.2vw, 34px); font-weight: 700; margin-top: 10px; }
@keyframes addonPulse {
  from { background: rgba(217, 164, 65, .96); }
  to { background: rgba(255, 69, 58, .96); }
}

.status-pill.finaltable { background: var(--blue); color: #fff; }

/* Overlay de Mesa Final / Burbuja graciosa */
.ft-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: radial-gradient(circle at 50% 40%, rgba(10,132,255,.25), rgba(0,0,0,.94) 70%);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.ft-overlay .ft-title {
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--blue);
  text-shadow: 0 0 30px rgba(10,132,255,.6);
  animation: ftPulse 1s ease-in-out infinite alternate;
}
@keyframes ftPulse { from { transform: scale(1); } to { transform: scale(1.06); } }

.bubble-wrap { position: relative; margin: 10px 0; }
.bubble {
  width: clamp(160px, 22vw, 320px);
  height: clamp(160px, 22vw, 320px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 6px solid rgba(255,255,255,.7);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(10,132,255,.35) 50%, rgba(10,132,255,.15));
  box-shadow: 0 0 60px rgba(10,132,255,.5), inset 0 0 40px rgba(255,255,255,.25);
  animation: bubbleFloat 3s ease-in-out infinite;
}
@keyframes bubbleFloat {
  0% { transform: translateY(0) rotate(-2deg) scale(1); }
  25% { transform: translateY(-14px) rotate(2deg) scale(1.02); }
  50% { transform: translateY(0) rotate(-1deg) scale(1); }
  75% { transform: translateY(-8px) rotate(1.5deg) scale(1.015); }
  100% { transform: translateY(0) rotate(-2deg) scale(1); }
}
.bubble-photo { width: 100%; height: 100%; object-fit: cover; }
.bubble-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(70px, 11vw, 160px); font-weight: 900; color: #fff;
}
.bubble-shine {
  position: absolute; top: 12%; left: 18%;
  width: 26%; height: 26%;
  background: radial-gradient(circle, rgba(255,255,255,.9), transparent 70%);
  border-radius: 50%; z-index: 2; pointer-events: none;
}
.bubble-pop {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(120px, 20vw, 280px); opacity: 0; pointer-events: none;
}
.ft-overlay .ft-name {
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 900;
  color: #fff;
}
.ft-overlay .ft-sub {
  font-size: clamp(15px, 2vw, 30px);
  color: #cfe4ff;
  max-width: 80%;
}

/* Botón de sonido */
.sound-btn {
  position: fixed;
  top: 8px;
  left: 10px;
  z-index: 60;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  width: auto;
  flex: none;
}
.sound-btn.on { background: var(--green); color: #06210e; border-color: transparent; }
.sound-btn.faded { opacity: .25; }
.sound-btn.faded:hover { opacity: 1; }

.right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.champion-card {
  background: linear-gradient(180deg, #1e1a10 0%, var(--panel) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  flex: 0 0 auto;
}
.champion-card .champ-label {
  font-size: clamp(10px, .9vw, 14px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.champ-photo-wrap {
  width: clamp(90px, 9vw, 150px);
  height: clamp(90px, 9vw, 150px);
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: var(--panel-2);
}
.champ-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.champ-name {
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 800;
}
.champ-meta { color: var(--gold); font-size: clamp(12px, 1vw, 16px); margin-top: 2px; }

.side-players {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.side-players h2 {
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
}
.side-players .prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel-2);
  margin-bottom: 6px;
  font-size: clamp(12px, 1.1vw, 17px);
}
.side-players .prow.out { opacity: .4; text-decoration: line-through; }
.side-players .prow .chips { color: var(--muted); font-variant-numeric: tabular-nums; }
.side-players .prow .tag { color: var(--gold); font-size: .85em; }

/* ===================== CONTROL ===================== */

.control {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 14px 60px;
}
.control h1 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 4px;
}
.control .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.bigtime {
  text-align: center;
  font-size: 56px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}
.bigtime.warn { color: var(--red); }
.blinds-now {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}
.lvl-now { text-align:center; color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.row { display: flex; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--txt);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  flex: 1;
  transition: filter .12s, transform .04s;
}
button:active { transform: scale(.97); }
button:hover { filter: brightness(1.15); }
button.primary { background: var(--green); color: #06210e; border-color: transparent; }
button.warn { background: var(--gold); color: #1a1208; border-color: transparent; }
button.danger { background: var(--red); color: #fff; border-color: transparent; }
button.ghost { background: transparent; }
button.sm { padding: 8px 10px; font-size: 13px; flex: 0 0 auto; }

input, select {
  font: inherit;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 11px 12px;
  border-radius: 10px;
  width: 100%;
}
label.field { display: block; margin-bottom: 10px; }
label.field span { display:block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }

.stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.stat-mini {
  background: var(--panel-2);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.stat-mini .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-mini .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-mini.prize .v { color: var(--gold); }

.player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--panel-2);
  margin-bottom: 8px;
}
.player.out { opacity: .55; }
.player .pname { flex: 1; font-weight: 600; }
.pavatar {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; padding: 0; cursor: pointer;
}
.pavatar.empty { color: var(--muted); }
a.link { color: var(--blue); text-decoration: none; }
a.link:hover { text-decoration: underline; }

.reg-photo {
  width: 130px; height: 130px; margin: 0 auto;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.reg-photo img { width: 100%; height: 100%; object-fit: cover; }
.player .pname small { display:block; color: var(--muted); font-weight: 400; font-size: 11px; }
.player .out-tag { color: var(--red); font-size: 11px; }

/* Login PIN */
.login {
  max-width: 320px;
  margin: 18vh auto 0;
  padding: 24px;
  text-align: center;
}
.login h1 { font-size: 22px; margin-bottom: 6px; }
.login p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.login input { text-align: center; font-size: 24px; letter-spacing: .3em; margin-bottom: 12px; }
.login .err { color: var(--red); font-size: 13px; min-height: 18px; }

.level-editor-row { display: grid; grid-template-columns: 30px 1fr 1fr 1fr 1fr 32px; gap: 6px; align-items: center; margin-bottom: 6px; }
.level-editor-row input { padding: 8px; font-size: 13px; text-align: center; }
.level-editor-row .n { color: var(--muted); font-size: 12px; text-align: center; }
.level-editor-head { font-size: 11px; color: var(--muted); }

/* ===================== MENÚ (home /) ===================== */
.menu {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
  gap: 28px;
  background: radial-gradient(1000px 500px at 50% -10%, #18181c 0%, var(--bg) 60%);
}
.menu-head { text-align: center; }
.menu-head h1 { font-size: clamp(40px, 8vw, 88px); font-weight: 900; letter-spacing: .08em; }
.menu-head .menu-sub { color: var(--muted); font-size: clamp(13px, 1.6vw, 18px); margin-top: 6px; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 820px;
}
.menu-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  text-decoration: none;
  color: var(--txt);
  text-align: center;
  transition: transform .08s, border-color .15s, background .15s;
}
.menu-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.menu-card:active { transform: scale(.98); }
.menu-card.live { border-color: var(--green); background: linear-gradient(180deg, rgba(52,199,89,.10), var(--panel) 60%); }
.menu-card .mc-icon { font-size: clamp(40px, 6vw, 60px); }
.menu-card .mc-title { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; margin-top: 6px; }
.menu-card .mc-desc { color: var(--muted); font-size: clamp(12px, 1.4vw, 15px); margin-top: 6px; }

/* ===================== TABLA ANUAL (visualizador) ===================== */
.tabla {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 40px;
  background: radial-gradient(1200px 500px at 50% -10%, #18181c 0%, var(--bg) 60%);
}
.tabla-top { text-align: center; margin-bottom: 18px; }
.tabla-top h1 {
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: .06em;
}
.tabla-top .muted { font-size: clamp(12px, 1.4vw, 18px); letter-spacing: .12em; text-transform: uppercase; }

.champ-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, #1e1a10 0%, var(--panel) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 22px;
}
.champ-banner .cb-photo {
  width: clamp(70px, 8vw, 110px);
  height: clamp(70px, 8vw, 110px);
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
}
.champ-banner .cb-photo img { width: 100%; height: 100%; object-fit: cover; }
.champ-banner .cb-photo span { font-size: clamp(30px, 4vw, 52px); font-weight: 900; }
.champ-banner .cb-label { font-size: clamp(11px, 1.1vw, 15px); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.champ-banner .cb-name { font-size: clamp(24px, 3.2vw, 46px); font-weight: 900; }
.champ-banner .cb-meta { font-size: clamp(13px, 1.4vw, 20px); }

.board { display: flex; flex-direction: column; gap: 8px; }
.board-empty { text-align: center; padding: 30px; font-size: 16px; }
.bd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
}
.bd-row.top1 { border-color: var(--gold); background: linear-gradient(90deg, rgba(217,164,65,.16), var(--panel) 60%); }
.bd-row.top2 { border-color: #9aa7b3; }
.bd-row.top3 { border-color: #b3793f; }
.bd-pos {
  width: clamp(36px, 4vw, 56px);
  text-align: center;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.bd-avatar {
  width: clamp(44px, 5vw, 64px);
  height: clamp(44px, 5vw, 64px);
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: clamp(18px, 2vw, 26px);
}
.bd-name {
  flex: 1;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 700;
  min-width: 0;
}
.bd-name small { display: block; color: var(--muted); font-weight: 400; font-size: clamp(11px, 1.2vw, 15px); }
.bd-trend { flex: 0 0 auto; }
.bd-trend .tr { font-weight: 800; font-size: clamp(14px, 1.6vw, 22px); font-variant-numeric: tabular-nums; }
.bd-trend .up { color: var(--green); }
.bd-trend .down { color: var(--red); }
.bd-trend .same { color: var(--muted); }
.bd-trend .new { color: var(--gold); font-size: clamp(11px, 1.2vw, 15px); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px; }
.bd-prize {
  flex: 0 0 auto;
  min-width: clamp(80px, 10vw, 150px);
  text-align: right;
  font-size: clamp(20px, 2.8vw, 40px);
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Campeón (control) */
.champ-edit { display: flex; gap: 12px; align-items: flex-start; }
.champ-thumb {
  width: 84px; height: 84px; flex: 0 0 84px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.champ-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Tabla de ranking */
table.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rank th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); }
table.rank td { padding: 8px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.rank td:last-child, table.rank th:last-child { text-align: right; }
table.rank tr.leader td { color: var(--gold); font-weight: 700; }

.res-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--panel-2); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }

/* Configuración: bloque principal + acordeones */
.cfg-block {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}
.cfg-block-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--gold); }
.cfg-acc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  margin-bottom: 10px;
  background: var(--panel-2);
}
.cfg-acc summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}
.cfg-acc summary::-webkit-details-marker { display: none; }
.cfg-acc summary::after { content: '▸'; float: right; color: var(--muted); transition: transform .15s; }
.cfg-acc[open] summary::after { transform: rotate(90deg); }
.cfg-acc[open] { padding-bottom: 12px; }

.res-prize-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.res-prize-row .rp-pos { width: 34px; color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.res-prize-row .rp-name { flex: 1; font-weight: 600; }
.res-prize-row .rp-input { width: 110px; }
.res-prize-row .fp-select { flex: 1; max-width: 200px; }
.break-hint { background: var(--blue); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 13px !important; }

.addon-break {
  margin-top: 10px;
  background: var(--gold);
  color: #1a1208;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
  animation: pulseBg 1s ease-in-out infinite alternate;
}
@keyframes pulseBg { from { filter: brightness(1); } to { filter: brightness(1.25); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--green);
  color: #06210e;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  z-index: 50;
}
.toast.show { opacity: 1; }

.conn {
  position: fixed; top: 8px; right: 10px;
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.conn.ok .dot { background: var(--green); }

@media (max-width: 900px) {
  .display { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; height: auto; min-height: 100vh; }
  .stats { flex-direction: row; }
  .side-players { max-height: 40vh; }
}
