:root {
  --bg: #050d1a;
  --panel: #0b1b2f;
  --line: #23425f;
  --text: #e8f1fb;
  --muted: #a3b9cf;
  --ok: #22c55e;
  --warn: #f59e0b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(59,130,246,0.22), transparent),
    radial-gradient(900px 420px at 88% 4%, rgba(16,185,129,0.15), transparent),
    linear-gradient(180deg, #060d1a, #040a15);
}

a { color: inherit; text-decoration: none; }

.page {
  max-width: 1420px;
  margin: 0 auto;
  padding: 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.title {
  font-size: 1.34rem;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.95), rgba(7, 17, 31, 0.96));
  padding: 0.85rem;
}

.controls { margin-bottom: 0.8rem; }
.standings-card { margin-bottom: 0.8rem; }
.section-hidden { display: none !important; }

.standings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.title-sm {
  font-size: 0.98rem;
  font-weight: 700;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.podium-item {
  border: 1px solid rgba(44,70,96,0.8);
  border-radius: 0.62rem;
  padding: 0.45rem 0.55rem;
  background: rgba(7,18,33,0.86);
}

.podium-rank {
  font-size: 0.7rem;
  color: var(--muted);
}

.podium-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2effd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-points {
  font-size: 0.78rem;
  color: #b5cde6;
}

.podium-item.rank-1 { border-color: rgba(250,204,21,0.58); background: rgba(120,53,15,0.18); }
.podium-item.rank-2 { border-color: rgba(148,163,184,0.6); background: rgba(51,65,85,0.2); }
.podium-item.rank-3 { border-color: rgba(251,146,60,0.58); background: rgba(124,45,18,0.2); }

.standings-table-wrap {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.82rem;
}

.standings-table th,
.standings-table td {
  border-bottom: 1px solid rgba(44,70,96,0.72);
  text-align: left;
  padding: 0.38rem 0.35rem;
}

.standings-table th {
  color: #bcd2e8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: end;
}

label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

select,
input[type="range"] {
  width: 100%;
}

select {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(6, 16, 30, 0.9);
  color: var(--text);
}

.back-btn,
.ghost-btn {
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  color: var(--text);
  background: #15304f;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.ghost-btn.active {
  border-color: rgba(34,197,94,0.65);
  background: rgba(22,163,74,0.2);
}

.zoom-row {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 0.45rem;
  align-items: center;
}

.zoom-label {
  color: var(--muted);
  font-size: 0.82rem;
  min-width: 3.2rem;
  text-align: right;
}

.actions-inline {
  margin-top: 0.55rem;
}

.view-nav-card {
  margin-bottom: 0.8rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.view-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.demo-btn {
  margin-left: auto;
  border-color: rgba(14, 165, 233, 0.58);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.38), rgba(12, 74, 110, 0.5));
  font-weight: 800;
}

.demo-btn.active {
  border-color: rgba(239, 68, 68, 0.9);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.56), rgba(153, 27, 27, 0.6));
  color: #ffe4e6;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22), 0 8px 20px rgba(127, 29, 29, 0.35);
  animation: demoBtnPump 1100ms ease-in-out infinite;
}

@keyframes demoBtnPump {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.36), 0 8px 20px rgba(127, 29, 29, 0.3);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.12), 0 10px 24px rgba(127, 29, 29, 0.42);
  }
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkline input {
  width: auto;
}

.status {
  margin-top: 0.4rem;
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.status.error { color: #fca5a5; }
.status.ok { color: #86efac; }

.bracket-wrap { padding: 0.6rem; }

.boards-wrap {
  margin-top: 0.8rem;
}

.boards-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.boards-head-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.boards-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.boards-fullscreen-btn {
  border-color: rgba(234, 179, 8, 0.72);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.46), rgba(161, 98, 7, 0.58));
  color: #fef9c3;
  font-weight: 800;
}

.boards-disclosure {
  border: 1px solid rgba(45, 75, 108, 0.72);
  border-radius: 0.78rem;
  background: rgba(7, 19, 35, 0.48);
  margin-bottom: 0.62rem;
}

.boards-disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.56rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfe3f8;
}

.boards-disclosure > summary::-webkit-details-marker {
  display: none;
}

.boards-disclosure > summary::after {
  content: "▾";
  float: right;
  opacity: 0.9;
}

.boards-disclosure:not([open]) > summary::after {
  content: "▸";
}

.boards-disclosure-body {
  padding: 0 0.68rem 0.68rem;
}

.boards-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.boards-control-item label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boards-control-item select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.boards-grid.single-board {
  grid-template-columns: 1fr;
}

.board-projection {
  border: 1px solid rgba(56, 95, 132, 0.82);
  border-radius: 0.92rem;
  padding: 0.72rem;
  background:
    radial-gradient(circle at 82% 10%, rgba(34, 211, 238, 0.14), transparent 38%),
    linear-gradient(160deg, rgba(8, 23, 40, 0.95), rgba(5, 12, 26, 0.96));
  min-height: calc(100vh - 340px);
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.board-projection.empty {
  min-height: 320px;
  align-items: center;
  justify-content: center;
  color: #9fb8d2;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.board-projection-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.board-slot-picker-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.1rem;
}

.board-keypad-warning {
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.34), rgba(153, 27, 27, 0.22));
  color: #fecaca;
  border-radius: 0.62rem;
  padding: 0.42rem 0.58rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.board-slot-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.board-slot-picker > span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fb8d2;
}

.board-slot-select {
  min-width: 260px;
  max-width: min(42vw, 420px);
}

.board-projection-title {
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #dcecff;
}

.board-projection-sub {
  color: #9fb8d2;
  font-size: clamp(0.76rem, 0.95vw, 0.95rem);
}

.board-projection-players {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  flex: 1 1 auto;
}

.board-projection-player {
  border: 1px solid rgba(53, 86, 117, 0.8);
  border-radius: 0.78rem;
  background: linear-gradient(145deg, rgba(5, 17, 33, 0.88), rgba(5, 13, 27, 0.92));
  padding: 0.6rem 0.68rem;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.48rem;
}

.board-projection-player.active {
  border-color: rgba(16, 185, 129, 0.72);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 10px 24px rgba(2, 12, 24, 0.42);
  background:
    radial-gradient(circle at 78% 18%, rgba(52, 211, 153, 0.16), transparent 45%),
    linear-gradient(145deg, rgba(7, 31, 47, 0.9), rgba(5, 22, 39, 0.94));
}

.board-projection-player.active .board-dial-value,
.board-projection-player.active .board-dial-visit-value {
  color: #86efac;
  text-shadow: 0 0 20px rgba(22, 163, 74, 0.25);
}

.board-projection-player.active .board-dial-value {
  animation: boardDialValueIn 340ms ease-out 120ms both, activeRemainingPulse 980ms ease-in-out infinite 420ms;
}

.board-player-name {
  font-size: clamp(1.05rem, 1.6vw, 1.65rem);
  font-weight: 800;
  color: #deecfb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-player-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.board-player-name-row .board-player-name {
  flex: 1 1 auto;
  min-width: 0;
}

.board-on-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.7);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.28), rgba(21, 128, 61, 0.2));
  color: #bbf7d0;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.12rem 0.42rem;
}

.board-projection-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
}

.board-projection-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.board-projection-stat {
  border: 1px solid rgba(67, 101, 132, 0.7);
  border-radius: 0.65rem;
  background: rgba(7, 21, 38, 0.86);
  padding: 0.36rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.board-projection-stat span {
  color: #9fb8d2;
  font-size: clamp(0.66rem, 0.86vw, 0.84rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-projection-stat strong {
  color: #e8f2ff;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.board-throws-row {
  border: 1px solid rgba(67, 101, 132, 0.7);
  border-radius: 0.65rem;
  background: rgba(7, 21, 38, 0.86);
  padding: 0.48rem 0.56rem;
  min-height: 4.1rem;
  display: grid;
  align-content: center;
}

.board-throws-row > span {
  color: #9fb8d2;
  font-size: clamp(0.72rem, 0.96vw, 0.96rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.34rem;
}

.board-throws-list {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.board-throw-chip {
  border: 1px solid rgba(88, 124, 158, 0.82);
  border-radius: 999px;
  padding: 0.16rem 0.58rem;
  min-width: 2.8rem;
  text-align: center;
  font-size: clamp(1rem, 1.32vw, 1.26rem);
  font-weight: 800;
  line-height: 1.2;
  color: #dcecff;
  background: rgba(12, 29, 50, 0.92);
}

.board-throw-chip.empty {
  opacity: 0.75;
}

.board-dial {
  --dial-progress: 0%;
  width: clamp(180px, 18vw, 300px);
  height: clamp(180px, 18vw, 300px);
  border-radius: 999px;
  position: relative;
  background:
    radial-gradient(circle at 30% 22%, rgba(148, 163, 184, 0.2) 0%, rgba(15, 23, 42, 0.05) 44%, transparent 66%),
    rgba(8, 18, 36, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25), 0 16px 28px rgba(2, 8, 23, 0.58);
  isolation: isolate;
  animation: boardDialEnter 480ms ease-out;
}

.board-dial::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from -90deg,
    #22d3ee 0%,
    #34d399 34%,
    #facc15 64%,
    #f97316 84%,
    #ef4444 var(--dial-progress, 0%),
    rgba(15, 23, 42, 0.2) var(--dial-progress, 0%),
    rgba(15, 23, 42, 0.2) 100%
  );
  -webkit-mask: radial-gradient(circle at center, transparent 60%, #000 61%);
  mask: radial-gradient(circle at center, transparent 60%, #000 61%);
  animation: boardDialRingSweep 760ms cubic-bezier(0.19, 1, 0.22, 1);
}

.board-dial::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(5, 12, 26, 0.96), rgba(8, 18, 36, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.25);
  z-index: 1;
}

.board-dial-inner {
  position: absolute;
  inset: 12%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.board-dial-value {
  font-size: clamp(2.5rem, 5.8vw, 4.6rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #f8fafc;
  animation: boardDialValueIn 340ms ease-out 120ms both;
}

.board-dial-visit-wrap {
  margin-top: 0.5rem;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  color: #67e8f9;
  text-transform: uppercase;
  animation: boardDialVisitIn 340ms ease-out 210ms both;
}

.board-dial-visit-label {
  font-size: clamp(0.6rem, 0.86vw, 0.88rem);
  letter-spacing: 0.11em;
  font-weight: 800;
  opacity: 0.95;
}

.board-dial-visit-value {
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.board-dial-visit-wrap.bust {
  color: #fb7185;
}

.board-remaining {
  min-width: 0;
  text-align: center;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.board-projection-foot {
  margin-top: 0.12rem;
  color: #9db5cd;
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  letter-spacing: 0.03em;
}

@keyframes boardDialEnter {
  from { transform: scale(0.97); opacity: 0.65; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes boardDialRingSweep {
  from { filter: saturate(0.75) brightness(0.9); }
  to { filter: saturate(1) brightness(1); }
}

@keyframes boardDialValueIn {
  from { transform: translateY(5px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes boardDialVisitIn {
  from { transform: translateY(4px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes activeRemainingPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 14px rgba(34, 197, 94, 0.22);
  }
  50% {
    transform: scale(1.035);
    text-shadow: 0 0 24px rgba(34, 197, 94, 0.45);
  }
}

.board-slot-chip {
  border-radius: 999px;
  border: 1px solid rgba(67, 101, 132, 0.8);
  background: rgba(10, 26, 44, 0.88);
  color: #c6dbef;
  padding: 0.14rem 0.52rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bracket-viewport {
  width: 100%;
  height: calc(100vh - 270px);
  min-height: 420px;
  border: 1px solid rgba(35,66,95,0.75);
  border-radius: 0.78rem;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 12%, rgba(59,130,246,0.08), transparent 35%),
    linear-gradient(180deg, rgba(5,12,22,0.95), rgba(4,10,20,0.98));
}

.stage-sizer {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}

.bracket-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  padding: 1rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.bracket-connectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.round-col {
  min-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.de-round-col {
  min-width: 360px;
}

.round-head {
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid rgba(37,99,235,0.45);
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  background: rgba(7,20,37,0.88);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 600;
  width: fit-content;
}

.de-lane {
  border: 1px solid rgba(44,70,96,0.72);
  border-radius: 0.72rem;
  padding: 0.5rem;
  background: linear-gradient(180deg, rgba(8,20,36,0.92), rgba(7,17,31,0.95));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.de-lane-head {
  border: 1px solid rgba(35,66,95,0.8);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.de-lane-wb .de-lane-head {
  color: #a7f3d0;
  border-color: rgba(16,185,129,0.55);
  background: rgba(6,78,59,0.26);
}

.de-lane-lb .de-lane-head {
  color: #fde68a;
  border-color: rgba(245,158,11,0.55);
  background: rgba(120,53,15,0.22);
}

.de-lane-gf .de-lane-head {
  color: #dbeafe;
  border-color: rgba(96,165,250,0.58);
  background: rgba(30,58,138,0.22);
}

.de-lane-gfr .de-lane-head {
  color: #fecaca;
  border-color: rgba(248,113,113,0.58);
  background: rgba(127,29,29,0.2);
}

.de-lane-empty {
  border: 1px dashed rgba(44,70,96,0.75);
  border-radius: 0.6rem;
  padding: 0.5rem 0.6rem;
  color: #9bb2c9;
  font-size: 0.78rem;
  background: rgba(8,18,32,0.6);
}

.match-card {
  border: 1px solid rgba(44,70,96,0.8);
  border-radius: 0.7rem;
  background: rgba(8,20,36,0.88);
  padding: 0.55rem;
  position: relative;
  z-index: 1;
}

.match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  gap: 0.5rem;
}

.table-chip {
  border: 1px solid rgba(35,66,95,0.85);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.status-chip {
  border-radius: 999px;
  padding: 0.1rem 0.44rem;
  font-size: 0.7rem;
  border: 1px solid rgba(35,66,95,0.9);
  color: #c8dcf0;
}
.status-chip.completed { color: #dcfce7; border-color: rgba(34,197,94,0.52); background: rgba(22,163,74,0.18); }
.status-chip.live { color: #fde68a; border-color: rgba(245,158,11,0.5); background: rgba(180,83,9,0.2); }
.status-chip.pending { color: #cde0f4; }
.status-chip.bye { color: #d1fae5; border-color: rgba(16,185,129,0.45); }
.status-chip.projected { color: #c7d8ec; border-color: rgba(107,132,160,0.5); background: rgba(51,65,85,0.2); }

.player-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.32rem 0.35rem;
  border-radius: 0.5rem;
}

.player-row + .player-row { margin-top: 0.2rem; }

.player-row.winner {
  border: 1px solid rgba(34,197,94,0.46);
  background: linear-gradient(90deg, rgba(22,163,74,0.24), rgba(22,163,74,0.1));
}

.winner-badge {
  font-size: 0.66rem;
  border-radius: 999px;
  padding: 0.08rem 0.38rem;
  color: #052e16;
  background: linear-gradient(135deg, #86efac, #34d399);
}

.winner-badge.placeholder {
  visibility: hidden;
}

.score {
  min-width: 1.6rem;
  text-align: right;
  font-weight: 700;
}

.match-foot {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.match-card.projected {
  border-style: dashed;
  opacity: 0.92;
}

.empty-note {
  color: var(--muted);
  padding: 0.8rem;
}

.boards-keypad-wrap {
  margin-top: 0;
}

.boards-keypad-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.boards-keypad-list {
  margin-top: 0.48rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.52rem;
}

.boards-keypad-card {
  border: 1px solid rgba(56, 95, 132, 0.72);
  border-radius: 0.78rem;
  background: rgba(7, 19, 35, 0.84);
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.boards-keypad-card-head {
  min-width: 0;
}

.boards-keypad-card-title {
  color: #dbeafe;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.boards-keypad-card-sub {
  margin-top: 0.15rem;
  color: #9fb8d2;
  font-size: 0.78rem;
}

.exit-fullscreen-btn {
  position: fixed;
  top: max(0.45rem, env(safe-area-inset-top));
  right: max(0.45rem, env(safe-area-inset-right));
  z-index: 1800;
  border-color: rgba(248, 113, 113, 0.66);
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.82), rgba(185, 28, 28, 0.74));
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  padding: 0;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(127, 29, 29, 0.45);
}

body.live-boards-fullscreen #navbar-container,
body.live-boards-fullscreen .top-tabs,
body.live-boards-fullscreen .topbar,
body.live-boards-fullscreen .controls,
body.live-boards-fullscreen .view-nav-card,
body.live-boards-fullscreen #standingsSection,
body.live-boards-fullscreen #bracketSection {
  display: none !important;
}

body.live-boards-fullscreen .page {
  max-width: none;
  padding: 0.35rem;
}

body.live-boards-fullscreen #boardsSection {
  display: block !important;
  margin-top: 0;
  min-height: calc(100vh - 0.7rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.2rem;
}

body.live-boards-fullscreen #boardsSection .boards-head,
body.live-boards-fullscreen #boardsSection .boards-disclosure,
body.live-boards-fullscreen #boardsSection #boardsKeypadSection {
  display: none !important;
}

body.live-boards-fullscreen #boardsSection .boards-grid {
  gap: 0.6rem;
}

body.live-boards-fullscreen #boardsSection .board-projection {
  min-height: calc(100vh - 1rem);
}

@media (max-width: 900px) {
  .row {
    grid-template-columns: 1fr;
  }
  .boards-controls {
    grid-template-columns: 1fr;
  }
  .boards-grid {
    grid-template-columns: 1fr;
  }
  .boards-keypad-list {
    grid-template-columns: 1fr;
  }
  .boards-head-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
  .board-projection {
    min-height: 320px;
  }
  .board-projection-main {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .board-dial {
    width: min(220px, 62vw);
    height: min(220px, 62vw);
  }
  .zoom-row {
    grid-template-columns: auto 1fr auto auto auto;
  }
  .zoom-label { display: none; }
  .view-nav-row {
    gap: 0.4rem;
  }
  .bracket-viewport {
    height: calc(100vh - 320px);
  }
  .podium {
    grid-template-columns: 1fr;
  }
}
