:root {
  --bg: #121316;
  --bg-strong: #0d0f12;
  --panel: rgba(23, 25, 29, .94);
  --panel-strong: rgba(30, 33, 39, .98);
  --panel-soft: rgba(18, 20, 24, .92);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(166, 62, 70, .34);
  --text: #f3efe7;
  --text-strong: #fff9f0;
  --muted: #98a0aa;
  --muted-strong: #c8cfd6;
  --accent: #a63e46;
  --accent-soft: rgba(166, 62, 70, .16);
  --gold: #a68552;
  --gold-bright: #d6bc8a;
  --gold-soft: rgba(166, 133, 82, .16);
  --success: #6b8470;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  --font-sans: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --tv-fit: 1;
}

.hidden {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    radial-gradient(780px 420px at 50% 12%, rgba(166, 62, 70, .18), transparent 70%),
    radial-gradient(560px 380px at 18% 84%, rgba(166, 133, 82, .08), transparent 72%),
    linear-gradient(160deg, #0f1013 0%, #17191d 48%, #111317 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: calc(16px * var(--tv-fit));
  letter-spacing: -.01em;
}

button,
input {
  font: inherit;
}

.screen {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.sound-unlock-button {
  position: fixed;
  top: clamp(18px, 2vw, 34px);
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(170px, 14vw, 240px);
  min-height: clamp(48px, 4.2vw, 64px);
  padding: 0 clamp(18px, 1.5vw, 28px);
  border: 1px solid rgba(214, 188, 138, .34);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(34, 36, 42, .96), rgba(18, 20, 24, .98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
  color: var(--text-strong);
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.sound-unlock-button:hover,
.sound-unlock-button:focus-visible {
  transform: translate(-50%, -1px);
  border-color: rgba(214, 188, 138, .56);
  outline: none;
}

.sound-unlock-button[data-state="unlocking"] {
  cursor: progress;
  opacity: .86;
}

.sound-unlock-button[data-state="enabled"] {
  border-color: rgba(107, 132, 112, .46);
  background:
    linear-gradient(145deg, rgba(34, 48, 40, .96), rgba(19, 29, 24, .98));
  color: #eef8ef;
}

.screen[data-density="compact"] {
  --tv-fit: .88;
}

.screen[data-density="cinema"] {
  --tv-fit: 1.12;
}

.screen[data-profile="hall-85"] {
  --tv-fit: .86;
}

.screen[data-profile="hall-55"] {
  --tv-fit: .9;
}

.waiting {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(18px, 2.4vh, 30px);
  padding: 4vw;
  text-align: center;
}

.waiting > * {
  position: relative;
  z-index: 1;
}

.waiting-info {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: inherit;
}

.waiting-badge,
.waiting-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted-strong);
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 650;
}

.waiting-countdown {
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: clamp(92px, 9vw, 180px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.08em;
  line-height: .9;
  text-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

.waiting-countdown-group {
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.2vh, 16px);
}

.screen[data-state="waiting-start"] .waiting-countdown-group {
  margin-top: clamp(2px, .5vh, 8px);
}

.screen[data-state="waiting-start"] .waiting p,
.screen[data-state="waiting-start"] .waiting-meta {
  display: none;
}

.screen[data-state="waiting-start"] .waiting {
  background:
    radial-gradient(720px 420px at 50% 18%, rgba(166, 133, 82, .18), transparent 70%),
    radial-gradient(520px 360px at 20% 82%, rgba(166, 62, 70, .12), transparent 72%);
}

.screen[data-state="waiting-start"] .pulse-table {
  border-color: rgba(166, 133, 82, .28);
}

.board-kicker,
.live-pill,
.blind-caption,
.timer-stat-label,
.payouts-kicker,
.players-board-head,
.players-table th {
  text-transform: uppercase;
  letter-spacing: .12em;
}

.board-kicker {
  color: var(--gold-bright);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 700;
}

.waiting h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(56px, 7vw, 136px);
  line-height: .92;
  font-weight: 800;
  text-wrap: balance;
}

.waiting p {
  width: min(900px, 78vw);
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 1.7vw, 32px);
  line-height: 1.24;
}

.pulse-table {
  width: min(460px, 38vw);
  aspect-ratio: 2.55 / 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 1.4vw;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(30, 33, 39, .96), rgba(18, 20, 24, .94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.pulse-suit {
  width: clamp(42px, 4.8vw, 86px);
  height: clamp(42px, 4.8vw, 86px);
  justify-self: center;
  will-change: transform, opacity;
  contain: layout paint style;
  animation: floatSuit 3.8s cubic-bezier(.22, .72, 0, 1) infinite;
}

.pulse-suit svg,
.board-suit-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.pulse-suit:nth-child(2) { animation-delay: .18s; }
.pulse-suit:nth-child(3) { animation-delay: .36s; }
.pulse-suit:nth-child(4) { animation-delay: .54s; }

.tv-board {
  position: relative;
  max-width: min(100vw, 3840px);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(18px, 1.8vh, 26px);
  padding: clamp(24px, 2.6vw, 42px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(166, 62, 70, .12), transparent 54%),
    linear-gradient(180deg, rgba(18, 19, 22, .98), rgba(16, 18, 22, .98));
}

.tv-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, .92) 52%, transparent 100%);
}

.tv-board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .14), transparent 24%),
    radial-gradient(ellipse at 50% 86%, rgba(166, 0, 20, .22), transparent 42%),
    linear-gradient(90deg, rgba(0, 0, 0, .42), transparent 28%, transparent 72%, rgba(0, 0, 0, .42)),
    url("/assets/ace-logo-mark.jpg") center 50% / min(42vw, 660px) auto no-repeat;
  opacity: .42;
  mix-blend-mode: screen;
}

.board-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 16%, rgba(255, 255, 255, .03), transparent 18%),
    radial-gradient(circle at 84% 88%, rgba(166, 133, 82, .06), transparent 22%);
}

.board-suit {
  position: absolute;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, .9vw, 18px);
  color: rgba(243, 239, 231, .08);
  font-size: clamp(96px, 7vw, 168px);
  font-weight: 800;
  line-height: .8;
  pointer-events: none;
  opacity: .2;
}

.board-suit-left {
  left: 3vw;
  bottom: 4vh;
  transform: rotate(-7deg);
}

.board-suit-right {
  right: 4vw;
  top: 5vh;
  color: rgba(166, 62, 70, .12);
  transform: rotate(6deg);
}

.board-suit-letter {
  line-height: .8;
}

.board-suit-icon {
  width: clamp(82px, 6vw, 146px);
  height: clamp(82px, 6vw, 146px);
  flex: 0 0 auto;
}

.board-header,
.timer-layout {
  position: relative;
  z-index: 1;
}

.board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.board-header-copy {
  display: grid;
  gap: 8px;
}

.board-zone {
  color: var(--muted);
  font-size: clamp(15px, 1.06vw, 21px);
  font-weight: 500;
}

.live-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted-strong);
  font-size: clamp(13px, .94vw, 18px);
  font-weight: 700;
  white-space: nowrap;
}

.live-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(166, 62, 70, .14);
  animation: livePulse 2.6s cubic-bezier(.22, .72, 0, 1) infinite;
}

.timer-layout {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(18px, 1.8vh, 26px);
}

.screen[data-format="wide"] .timer-layout,
.screen[data-format="ultrawide"] .timer-layout {
  grid-template-columns: minmax(340px, .76fr) minmax(520px, 1.08fr) minmax(300px, .62fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
}

.screen[data-profile="hall-85"][data-format="wide"] .timer-layout,
.screen[data-profile="hall-85"][data-format="ultrawide"] .timer-layout {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 16px;
}

.screen[data-profile="hall-55"][data-format="wide"] .timer-layout,
.screen[data-profile="hall-55"][data-format="ultrawide"] .timer-layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(680px, .98fr);
}

.screen[data-format="wide"] .timer-shell,
.screen[data-format="wide"] .players-board,
.screen[data-format="wide"] .rating-board,
.screen[data-format="ultrawide"] .timer-shell,
.screen[data-format="ultrawide"] .players-board,
.screen[data-format="ultrawide"] .rating-board {
  min-height: 0;
  height: 100%;
}

.screen[data-format="wide"] .timer-shell,
.screen[data-format="ultrawide"] .timer-shell {
  width: 100%;
  max-width: none;
}

.final-stage {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(18px, 2vh, 26px);
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid rgba(166, 133, 82, .26);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 4%, rgba(166, 133, 82, .18), transparent 36%),
    linear-gradient(180deg, rgba(28, 25, 22, .98), rgba(18, 20, 24, .98));
  box-shadow:
    0 0 0 1px rgba(166, 133, 82, .08),
    0 32px 90px rgba(0, 0, 0, .42);
}

.final-stage-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.final-stage-title {
  width: min(1180px, 100%);
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(48px, 4.2vw, 88px);
  line-height: .94;
  font-weight: 800;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.final-stage-note {
  width: min(980px, 100%);
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(18px, 1.3vw, 24px);
  line-height: 1.28;
  text-wrap: balance;
}

.final-stage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.final-stage-stat {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .03);
  text-align: center;
}

.final-stage-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.final-stage-seat {
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)),
    rgba(10, 12, 15, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.final-stage-seat-label {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: clamp(16px, 1vw, 20px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.final-stage-seat-name {
  color: var(--text-strong);
  font-size: clamp(28px, 2vw, 42px);
  line-height: .96;
  font-weight: 760;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.final-stage-seat-meta {
  color: var(--muted);
  font-size: clamp(15px, .96vw, 18px);
  font-weight: 600;
}

.timer-shell {
  width: min(980px, 100%);
  display: grid;
  align-content: center;
  gap: 14px;
  justify-self: center;
}

.timer-main-panel,
.payouts-panel,
.players-board,
.rating-board {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(30, 33, 39, .66), rgba(13, 15, 18, .5));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(6px);
}

.timer-main-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 58vh, 620px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(12px, 1vh, 18px);
  padding: clamp(28px, 3vw, 40px);
  text-align: center;
}

.timer-main-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(166, 62, 70, .08), transparent 42%),
    radial-gradient(circle at 50% 92%, rgba(166, 133, 82, .05), transparent 36%);
  pointer-events: none;
}

.timer-main-panel > * {
  position: relative;
  z-index: 1;
}

.timer-main-panel.is-running .timer {
  animation: timerBreath 3.2s cubic-bezier(.22, .72, 0, 1) infinite;
}

.timer-main-panel.is-final-table {
  border-color: rgba(166, 133, 82, .38);
  box-shadow:
    0 0 0 1px rgba(166, 133, 82, .12),
    0 26px 70px rgba(0, 0, 0, .42),
    0 0 80px rgba(166, 133, 82, .14);
  animation: finalTableGlow 4s ease-in-out infinite;
}

.tournament-title {
  max-width: 90%;
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(42px, 3.8vw, 72px);
  line-height: .94;
  font-weight: 750;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.level-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted-strong);
}

.level-code {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #f1d7da;
  font-family: var(--font-mono);
  font-size: clamp(14px, 1vw, 19px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.level-divider {
  color: rgba(255, 255, 255, .28);
  font-size: clamp(18px, 1.5vw, 26px);
}

.level-name {
  font-size: clamp(22px, 1.8vw, 32px);
  font-weight: 600;
}

.timer {
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: clamp(104px, 10vw, 196px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.08em;
  line-height: .88;
  text-shadow: 0 18px 42px rgba(0, 0, 0, .34);
  white-space: nowrap;
}

.blind-caption {
  color: var(--muted);
  font-size: clamp(12px, .88vw, 16px);
  font-weight: 700;
}

.current-blinds {
  display: grid;
  justify-items: center;
  gap: clamp(7px, .65vh, 11px);
}

.timer-main-panel.is-break .current-blinds {
  display: none;
}

.timer-main-panel.is-break .next-line {
  color: var(--gold-bright);
  font-weight: 700;
}

.blind-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, .8vw, 14px);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(34px, 2.9vw, 54px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
}

.blind-divider {
  color: rgba(255, 255, 255, .32);
}

.next-line {
  max-width: 92%;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  text-wrap: balance;
}

.timer-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.screen[data-format="wide"] .timer-stats-grid,
.screen[data-format="ultrawide"] .timer-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen[data-density="compact"] .timer-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen[data-state="running"] .timer-stats-grid,
.screen[data-state="paused"] .timer-stats-grid,
.screen[data-state="final-table"] .timer-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen[data-density="compact"][data-state="running"] .timer-stats-grid,
.screen[data-density="compact"][data-state="paused"] .timer-stats-grid,
.screen[data-density="compact"][data-state="final-table"] .timer-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timer-stat {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 12, 15, .34);
}

.timer-stat-label {
  color: var(--muted);
  font-size: clamp(11px, .86vw, 14px);
  font-weight: 700;
  line-height: 1.35;
}

.timer-stat-value {
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: clamp(28px, 2.2vw, 42px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  line-height: .95;
}

.timer-stat-value.compact {
  font-size: clamp(22px, 1.7vw, 32px);
  line-height: 1.08;
}

.timer-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.timer-flag {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted-strong);
  font-size: clamp(13px, .98vw, 18px);
  font-weight: 650;
  text-align: center;
}

.timer-flag.final-table {
  border-color: rgba(166, 133, 82, .34);
  background: linear-gradient(180deg, rgba(166, 133, 82, .18), rgba(166, 133, 82, .08));
  color: var(--gold-bright);
}

.timer-flag.muted {
  color: var(--muted);
}

.final-table-panel {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(166, 133, 82, .24);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(166, 133, 82, .08), rgba(10, 12, 15, .24));
}

.final-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.final-table-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.final-seat-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(15, 17, 21, .42);
}

.final-seat-number {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: clamp(13px, .95vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.final-seat-card strong {
  color: var(--text-strong);
  font-size: clamp(22px, 1.5vw, 30px);
  line-height: 1.05;
}

.final-seat-sub {
  color: var(--muted);
  font-size: clamp(13px, .96vw, 17px);
  font-weight: 600;
}

.screen[data-state="paused"] .timer-main-panel {
  border-color: rgba(166, 133, 82, .26);
  background:
    radial-gradient(circle at 50% 10%, rgba(166, 133, 82, .08), transparent 42%),
    linear-gradient(180deg, rgba(30, 33, 39, .62), rgba(13, 15, 18, .5));
}

.screen[data-state="paused"] .live-pill::before {
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(166, 133, 82, .14);
  animation: none;
}

.screen[data-state="seating-event"] .timer-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.screen[data-state="seating-event"] .final-stage {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.2vh, 18px);
  padding: clamp(14px, 1.4vw, 24px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(166, 133, 82, .12), transparent 38%),
    linear-gradient(180deg, rgba(28, 25, 22, .72), rgba(18, 20, 24, .58));
  backdrop-filter: blur(6px);
}

.screen[data-state="seating-event"] .timer-shell {
  display: none !important;
}

.screen[data-state="seating-event"] .players-board,
.screen[data-state="seating-event"] .rating-board {
  display: none !important;
}

.screen[data-state="seating-event"] .final-stage-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-align: left;
  gap: 6px;
}

.screen[data-state="seating-event"] .final-stage-copy .board-kicker {
  font-size: clamp(11px, .78vw, 14px);
}

.screen[data-state="seating-event"] .final-stage-title {
  width: auto;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1vw, 18px);
  font-size: clamp(22px, 2vw, 40px);
  line-height: 1;
  white-space: nowrap;
}

.screen[data-state="seating-event"] .final-stage-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(8px, 1vh, 14px);
  overflow: hidden;
}

.seating-countdown {
  display: inline-flex;
  align-items: center;
  min-height: clamp(28px, 2.5vw, 38px);
  padding: 0 clamp(10px, .9vw, 16px);
  border: 1px solid rgba(214, 188, 138, .24);
  border-radius: 999px;
  background: rgba(214, 188, 138, .08);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: clamp(12px, .96vw, 17px);
  font-weight: 800;
  letter-spacing: 0;
  gap: 5px;
}

.seating-map-page {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--seating-columns, 2), minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
}

.seating-page {
  justify-self: end;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(10px, .72vw, 13px);
  font-weight: 700;
}

.seating-empty {
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 700;
}

.seating-table-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1vh, 12px);
  padding: clamp(10px, 1vw, 16px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(8, 10, 13, .44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.seating-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seating-table-head strong {
  color: var(--text-strong);
  font-size: clamp(18px, 1.3vw, 26px);
  line-height: 1;
}

.seating-table-head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(10px, .72vw, 13px);
  font-weight: 700;
  white-space: nowrap;
}

.seating-table-visual {
  position: relative;
  min-height: clamp(360px, 54vh, 640px);
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(166, 62, 70, .1), transparent 56%),
    rgba(0, 0, 0, .18);
}

.seating-table-felt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 44%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(213, 45, 50, .72);
  border-radius: 30% / 46%;
  clip-path: polygon(8% 0, 36% 0, 36% 18%, 64% 18%, 64% 0, 92% 0, 97% 5%, 100% 18%, 100% 82%, 97% 95%, 92% 100%, 8% 100%, 3% 95%, 0 82%, 0 18%, 3% 5%);
  background:
    repeating-radial-gradient(ellipse at 50% 48%, rgba(255,255,255,.022) 0 1px, transparent 2px 15px),
    radial-gradient(ellipse at 50% 42%, rgba(37, 30, 32, .96), rgba(9, 10, 12, .98));
  box-shadow:
    inset 0 0 0 8px rgba(133, 22, 27, .34),
    inset 0 0 52px rgba(0, 0, 0, .68),
    0 0 22px rgba(191, 26, 32, .18),
    0 18px 50px rgba(0, 0, 0, .42);
}

.seating-table-felt .seating-table-number {
  position: absolute;
  right: 7%;
  top: 9%;
  color: rgba(243, 239, 231, .88);
  font-family: var(--font-mono);
  font-size: clamp(10px, .76vw, 14px);
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seating-table-brand {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: .28em;
  color: #f7f4ef;
  font-size: clamp(22px, 2vw, 38px);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}

.seating-table-brand b,
.seating-table-brand strong {
  font: inherit;
}

.seating-table-brand strong,
.seating-table-brand i {
  color: #d51f2b;
}

.seating-table-brand i {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: .08em;
  font-size: .72em;
  font-style: normal;
  line-height: .8;
}

.seating-table-felt small {
  position: absolute;
  left: 50%;
  bottom: 19%;
  transform: translateX(-50%);
  color: rgba(243, 239, 231, .58);
  font-size: clamp(7px, .54vw, 11px);
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.seating-map-seat {
  position: absolute;
  left: calc(var(--seat-x) * 1%);
  top: calc(var(--seat-y) * 1%);
  width: clamp(116px, 13.5vw, 210px);
  max-width: 24%;
  min-width: 92px;
  min-height: clamp(48px, 5.2vh, 72px);
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 6px 8px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(17, 19, 23, .82);
  color: var(--muted);
  text-align: center;
}

.seating-map-seat.assigned {
  border-color: rgba(214, 188, 138, .52);
  background:
    linear-gradient(180deg, rgba(166, 133, 82, .24), rgba(23, 25, 29, .8));
  color: var(--text-strong);
  box-shadow: 0 0 24px rgba(166, 133, 82, .12);
}

.seating-map-seat.occupied {
  border-color: rgba(107, 132, 112, .42);
  background:
    linear-gradient(180deg, rgba(107, 132, 112, .18), rgba(23, 25, 29, .78));
}

.seating-map-seat.dealer {
  z-index: 3;
  border-color: rgba(214, 188, 138, .62);
  background: linear-gradient(180deg, rgba(166, 133, 82, .28), rgba(23, 25, 29, .86));
  color: var(--text-strong);
  min-width: 104px;
}

.seating-seat-number {
  position: absolute;
  left: 6px;
  top: 5px;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: clamp(9px, .7vw, 12px);
  font-weight: 900;
}

.seating-map-seat strong {
  min-width: 0;
  overflow: visible;
  color: inherit;
  font-size: clamp(11px, .9vw, 16px);
  font-weight: 850;
  line-height: 1.12;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
}

.seating-map-seat span:last-child {
  color: var(--muted);
  font-size: clamp(8px, .62vw, 10px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.screen[data-state="seating-event"] .final-stage-seat {
  min-height: 0;
  padding: clamp(10px, .9vw, 14px);
  border-radius: 16px;
  gap: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(10, 12, 15, .48);
}

.screen[data-state="seating-event"] .final-stage-seat-label {
  font-size: clamp(10px, .72vw, 13px);
  line-height: 1.18;
}

.screen[data-state="seating-event"] .final-stage-seat-name {
  font-size: clamp(17px, 1.26vw, 24px);
  line-height: 1.02;
}

.screen[data-state="seating-event"] .final-stage-seat-meta {
  font-size: clamp(10px, .72vw, 13px);
  line-height: 1.25;
}

.screen[data-state="seating-event"] .timer-main-panel {
  min-height: clamp(420px, 48vh, 560px);
  padding: clamp(22px, 2.2vw, 34px);
  align-content: center;
}

.screen[data-state="seating-event"] .timer {
  font-size: clamp(96px, 8.4vw, 168px);
}

.screen[data-state="seating-event"] .level-line,
.screen[data-state="seating-event"] .blind-caption,
.screen[data-state="seating-event"] .blind-values,
.screen[data-state="seating-event"] .next-line,
.screen[data-state="seating-event"] .timer-stats-grid,
.screen[data-state="seating-event"] .timer-flags,
.screen[data-state="seating-event"] .final-table-panel {
  display: none !important;
}

.screen[data-state="seating-event"] .tournament-title::after {
  content: "До старта";
  display: block;
  margin-top: clamp(12px, 1.1vw, 18px);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: clamp(13px, .92vw, 17px);
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.screen[data-state="final-table"] .board-header,
.screen[data-state="final-table"] .players-board,
.screen[data-state="final-table"] .rating-board,
.screen[data-state="final-table"] .timer-shell {
  display: none;
}

.screen[data-state="final-table"] .timer-layout {
  grid-template-rows: minmax(0, 1fr);
}

.screen[data-state="final-table"] .final-stage {
  display: grid;
}

.screen[data-state="final-table"] .final-stage-copy {
  justify-items: center;
  text-align: center;
}

.screen[data-state="final-table"] .final-stage-title {
  width: min(1200px, 100%);
  font-size: clamp(40px, 3vw, 68px);
}

.screen[data-state="final-table"] .board-kicker {
  font-size: clamp(14px, 1vw, 18px);
}

.screen[data-state="final-table"] .final-stage {
  padding: 28px 32px;
  gap: 22px;
  justify-content: center;
}

.screen[data-state="final-table"] .final-stage-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.screen[data-state="final-table"] .final-stage-seat {
  padding: 24px 26px;
  border-radius: 26px;
  gap: 12px;
  min-height: 180px;
}

.screen[data-state="final-table"] .final-stage-seat-label {
  font-size: clamp(16px, 1vw, 22px);
}

.screen[data-state="final-table"] .final-stage-seat-name {
  font-size: clamp(28px, 1.9vw, 42px);
  line-height: 1;
}

.screen[data-state="final-table"] .final-stage-seat-meta {
  font-size: clamp(15px, .96vw, 19px);
}

.payouts-panel,
.rating-board {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}

.payouts-header,
.rating-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payouts-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 600;
}

.payouts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.payout-chip {
  min-width: 144px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(166, 133, 82, .22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(166, 133, 82, .1), rgba(10, 12, 15, .22));
}

.payout-chip strong {
  color: var(--text-strong);
  font-size: clamp(22px, 1.55vw, 30px);
  font-weight: 700;
  line-height: 1;
}

.payout-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rating-board {
  grid-template-rows: auto minmax(0, 1fr);
  border-color: rgba(166, 133, 82, .28);
  background:
    radial-gradient(circle at 50% 0%, rgba(166, 133, 82, .1), transparent 42%),
    linear-gradient(180deg, rgba(30, 27, 23, .58), rgba(10, 12, 15, .44));
}

.rating-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

.rating-row {
  min-height: clamp(58px, 5.8vh, 78px);
  display: grid;
  grid-template-columns: clamp(58px, 4.6vw, 90px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(166, 133, 82, .2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(166, 133, 82, .1), rgba(255, 255, 255, .018)),
    rgba(10, 12, 15, .38);
}

.rating-place {
  grid-row: 1 / 3;
  width: auto;
  min-width: clamp(52px, 4.2vw, 82px);
  height: clamp(42px, 3.2vw, 58px);
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(214, 188, 138, .3);
  border-radius: 999px;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: clamp(18px, 1.35vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rating-row strong {
  min-width: 0;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: clamp(24px, 1.9vw, 38px);
  line-height: .95;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.rating-row span:last-child {
  color: var(--muted);
  font-size: clamp(11px, .84vw, 14px);
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.players-board {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.players-board-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 72px;
  padding: 0 24px;
  color: var(--text-strong);
  font-size: clamp(13px, .98vw, 18px);
  font-weight: 700;
}

.players-board-head span:last-child {
  display: none;
}

.players-table-wrap {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: 0 10px 10px;
}

.players-scroll-window {
  min-height: 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
}

.players-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.players-table-head {
  flex: none;
}

.players-table-body {
  will-change: transform;
}

.players-board.is-scrolling .players-table-body {
  animation: playerRoll var(--players-scroll-duration, 36s) linear infinite;
}

.screen[data-format="ultrawide"] .players-table td,
.screen[data-format="ultrawide"] .place-cell {
  height: clamp(66px, 6.4vh, 86px);
}

.screen[data-density="compact"] .players-table td,
.screen[data-density="compact"] .place-cell {
  height: clamp(58px, 6vh, 72px);
}

.screen[data-density="compact"] .player-name {
  font-size: clamp(18px, 1.3vw, 24px);
}

.screen[data-density="compact"] .stack-value {
  font-size: clamp(16px, 1.2vw, 22px);
}

.screen[data-density="compact"] .status-badge {
  font-size: clamp(13px, .96vw, 18px);
}

.screen[data-density="compact"] .players-board-head {
  min-height: 62px;
}

.screen[data-state="running"] #startTimerCard,
.screen[data-state="paused"] #startTimerCard,
.screen[data-state="final-table"] #startTimerCard {
  display: none;
}

.screen[data-profile="hall-85"] .tv-board {
  max-width: 2560px;
  padding: clamp(22px, 2vw, 32px);
}

.screen[data-profile="hall-85"]:not([data-state="final-table"]) .timer-layout {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
}

.screen[data-profile="hall-85"]:not([data-state="final-table"]) .timer-shell {
  width: min(980px, 100%);
  max-width: 980px;
}

.screen[data-profile="hall-85"]:not([data-state="final-table"]) .players-board,
.screen[data-profile="hall-85"]:not([data-state="final-table"]) .payouts-panel {
  display: none !important;
}

.screen[data-profile="hall-85"]:not([data-state="final-table"]) .timer-flags,
.screen[data-profile="hall-85"]:not([data-state="final-table"]) .final-table-panel {
  display: none !important;
}

.screen[data-profile="hall-85"] .timer-main-panel,
.screen[data-profile="hall-85"] .players-board,
.screen[data-profile="hall-85"] .payouts-panel,
.screen[data-profile="hall-85"] .final-stage {
  border-radius: 28px;
}

.screen[data-profile="hall-85"] .tournament-title {
  max-width: 100%;
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.02;
}

.screen[data-profile="hall-85"] .timer {
  font-size: clamp(72px, 6vw, 120px);
}

.screen[data-profile="hall-85"] .timer-stat {
  min-height: 96px;
  padding: 14px 16px;
}

.screen[data-profile="hall-85"] .timer-stat-value {
  font-size: clamp(22px, 1.5vw, 32px);
}

.screen[data-profile="hall-85"] .timer-stat-label {
  font-size: clamp(10px, .72vw, 12px);
}

.screen[data-profile="hall-85"] .players-table td,
.screen[data-profile="hall-85"] .place-cell {
  height: clamp(52px, 5.3vh, 64px);
}

.screen[data-profile="hall-85"] .player-name {
  font-size: clamp(16px, 1.1vw, 22px);
}

.screen[data-profile="hall-85"] .final-stage-title {
  font-size: clamp(42px, 3.3vw, 72px);
}

.screen[data-profile="hall-85"] .timer-main-panel {
  padding: 16px 18px 18px;
  gap: 8px;
}

.screen[data-profile="hall-85"] .timer-shell {
  gap: 10px;
}

.screen[data-profile="hall-85"] .players-board-head {
  min-height: 48px;
  padding: 0 14px;
  font-size: clamp(12px, .9vw, 15px);
}

.screen[data-profile="hall-85"] .players-board-head span:last-child {
  font-size: clamp(11px, .78vw, 13px);
}

.screen[data-profile="hall-85"] .players-table th {
  height: 38px;
  padding: 0 10px;
  font-size: clamp(10px, .7vw, 12px);
}

.screen[data-profile="hall-85"] .players-table td {
  padding: 0 10px;
}

.screen[data-profile="hall-85"] .place-cell {
  font-size: clamp(18px, 1.5vw, 28px);
}

.screen[data-profile="hall-85"] .player-avatar {
  width: clamp(30px, 2.2vw, 38px);
  height: clamp(30px, 2.2vw, 38px);
  border-radius: 10px;
  font-size: clamp(14px, 1vw, 18px);
}

.screen[data-profile="hall-85"] .seat-badge,
.screen[data-profile="hall-85"] .stack-value,
.screen[data-profile="hall-85"] .status-badge {
  font-size: clamp(11px, .8vw, 14px);
}

.screen[data-profile="hall-85"] .level-name {
  font-size: clamp(15px, 1vw, 20px);
}

.screen[data-profile="hall-85"] .level-code {
  min-height: 34px;
  padding: 0 12px;
  font-size: clamp(11px, .8vw, 14px);
}

.screen[data-profile="hall-85"] .blind-values {
  font-size: clamp(20px, 1.45vw, 28px);
}

.screen[data-profile="hall-85"] .next-line {
  font-size: clamp(11px, .8vw, 14px);
}

.screen[data-profile="hall-85"] .timer-flags {
  gap: 8px;
}

.screen[data-profile="hall-85"] .timer-flag {
  min-height: 38px;
  padding: 0 12px;
  font-size: clamp(11px, .8vw, 13px);
}

.screen[data-profile="hall-85"] .final-table-panel {
  display: none !important;
}

.screen[data-profile="hall-85"] .final-stage {
  padding: 18px 20px;
  gap: 10px;
}

.screen[data-profile="hall-85"] .final-stage-copy {
  gap: 4px;
}

.screen[data-profile="hall-85"] .final-stage-title {
  width: 100%;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1;
}

.screen[data-profile="hall-85"] .final-stage-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.screen[data-profile="hall-85"] .final-stage-seat {
  padding: 10px 12px;
  border-radius: 14px;
  gap: 6px;
}

.screen[data-profile="hall-85"] .final-stage-seat-label {
  font-size: clamp(10px, .68vw, 12px);
}

.screen[data-profile="hall-85"] .final-stage-seat-name {
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.02;
}

.screen[data-profile="hall-85"] .final-stage-seat-meta {
  font-size: clamp(10px, .66vw, 12px);
}

.screen[data-profile="hall-85"][data-state="final-table"] .final-stage {
  padding: 28px 30px;
  gap: 18px;
}

.screen[data-profile="hall-85"][data-state="final-table"] .final-stage-copy {
  gap: 8px;
}

.screen[data-profile="hall-85"][data-state="final-table"] .final-stage-title {
  width: min(1200px, 100%);
  font-size: clamp(34px, 2.5vw, 56px);
}

.screen[data-profile="hall-85"][data-state="final-table"] .final-stage-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.screen[data-profile="hall-85"][data-state="final-table"] .final-stage-seat {
  min-height: 170px;
  padding: 20px 22px;
  border-radius: 22px;
  gap: 10px;
}

.screen[data-profile="hall-85"][data-state="final-table"] .final-stage-seat-label {
  font-size: clamp(14px, .9vw, 18px);
}

.screen[data-profile="hall-85"][data-state="final-table"] .final-stage-seat-name {
  font-size: clamp(24px, 1.55vw, 34px);
}

.screen[data-profile="hall-85"][data-state="final-table"] .final-stage-seat-meta {
  font-size: clamp(13px, .82vw, 16px);
}

.screen[data-profile="hall-55"] .tv-board {
  padding: clamp(20px, 2vw, 28px);
}

.screen[data-profile="hall-55"] .timer-main-panel,
.screen[data-profile="hall-55"] .players-board,
.screen[data-profile="hall-55"] .payouts-panel,
.screen[data-profile="hall-55"] .final-stage {
  border-radius: 24px;
}

.screen[data-profile="hall-55"] .tournament-title {
  font-size: clamp(34px, 3vw, 58px);
}

.screen[data-profile="hall-55"] .timer {
  font-size: clamp(88px, 8vw, 168px);
}

.screen[data-profile="hall-55"] .timer-stat {
  min-height: 104px;
  padding: 16px 18px;
}

.screen[data-profile="hall-55"] .timer-stat-label {
  font-size: clamp(10px, .75vw, 13px);
}

.screen[data-profile="hall-55"] .timer-stat-value {
  font-size: clamp(24px, 1.7vw, 36px);
}

.screen[data-profile="hall-55"] .players-board-head {
  min-height: 60px;
  padding: 0 18px;
}

.screen[data-profile="hall-55"] .players-table th {
  height: 48px;
  padding: 0 12px;
}

.screen[data-profile="hall-55"] .players-table td {
  padding: 0 12px;
}

.screen[data-profile="hall-55"] .players-table td,
.screen[data-profile="hall-55"] .place-cell {
  height: clamp(54px, 5.8vh, 68px);
}

.screen[data-profile="hall-55"] .place-cell {
  font-size: clamp(22px, 2vw, 36px);
}

.screen[data-profile="hall-55"] .player-avatar {
  width: clamp(38px, 3vw, 50px);
  height: clamp(38px, 3vw, 50px);
  border-radius: 14px;
}

.screen[data-profile="hall-55"] .player-name {
  font-size: clamp(16px, 1.15vw, 24px);
}

.screen[data-profile="hall-55"] .seat-badge,
.screen[data-profile="hall-55"] .stack-value,
.screen[data-profile="hall-55"] .status-badge {
  font-size: clamp(12px, .9vw, 16px);
}

@media (min-width: 3000px) and (min-height: 1600px) {
  .screen {
    padding: 0;
  }

  .waiting {
    gap: 40px;
    padding: 4vw 5vw;
  }

  .waiting-badge,
  .waiting-meta {
    min-height: 64px;
    padding: 0 26px;
    font-size: 24px;
  }

  .waiting h1 {
    font-size: min(8vw, 184px);
  }

  .waiting-countdown {
    font-size: min(10vw, 240px);
  }

  .waiting p {
    width: min(1500px, 70vw);
    font-size: 36px;
    line-height: 1.22;
  }

  .pulse-table {
    width: min(780px, 34vw);
    padding: 26px;
  }

  .pulse-suit {
    width: min(5.2vw, 116px);
    height: min(5.2vw, 116px);
  }

  .tv-board {
    gap: 34px;
    padding: 40px 48px 44px;
  }

  .board-header {
    gap: 32px;
  }

  .board-kicker {
    font-size: 22px;
  }

  .board-zone {
    font-size: 28px;
  }

  .live-pill {
    min-height: 72px;
    padding: 0 28px;
    font-size: 24px;
  }

  .timer-layout {
    grid-template-columns: minmax(520px, .72fr) minmax(900px, 1.08fr) minmax(480px, .62fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 26px;
  }

  .timer-shell,
  .players-board,
  .rating-board {
    min-height: 0;
    height: 100%;
  }

  .timer-shell {
    width: 100%;
    max-width: none;
    gap: 18px;
  }

  .timer-main-panel,
  .payouts-panel,
  .players-board,
  .rating-board,
  .final-stage {
    border-radius: 38px;
  }

  .timer-main-panel {
    padding: 42px 44px 46px;
    gap: 20px;
  }

  .tournament-title {
    max-width: 100%;
    font-size: min(4vw, 102px);
  }

  .level-code {
    min-height: 56px;
    padding: 0 22px;
    font-size: 24px;
  }

  .level-name {
    font-size: min(2vw, 42px);
  }

  .timer {
    font-size: min(11vw, 300px);
  }

  .blind-caption {
    font-size: 20px;
  }

  .blind-values {
    font-size: min(3vw, 82px);
    gap: 18px;
  }

  .next-line {
    max-width: 100%;
    font-size: 24px;
  }

  .timer-stats-grid {
    gap: 18px;
  }

  .timer-stat {
    min-height: 154px;
    padding: 24px 26px;
    border-radius: 24px;
  }

  .timer-stat-label {
    font-size: 16px;
  }

  .timer-stat-value {
    font-size: min(2vw, 56px);
  }

  .timer-stat-value.compact {
    font-size: min(1.6vw, 42px);
  }

  .timer-flag {
    min-height: 62px;
    padding: 0 24px;
    font-size: 21px;
  }

  .players-board-head {
    min-height: 88px;
    padding: 0 28px;
    font-size: 22px;
  }

  .players-board-head span:last-child {
    font-size: 20px;
  }

  .players-table-wrap {
    padding: 0 14px 14px;
  }

  .players-table th {
    height: 66px;
    padding: 0 20px;
    font-size: 15px;
  }

  .players-table td,
  .place-cell {
    height: 92px;
  }

  .players-table td {
    padding: 0 20px;
  }

  .place-cell {
    font-size: 54px;
  }

  .player-avatar {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    font-size: 28px;
  }

  .player-name {
    font-size: 32px;
  }

  .seat-badge {
    min-height: 46px;
    padding: 0 16px;
    font-size: 19px;
  }

  .stack-value {
    font-size: 30px;
  }

  .status-badge {
    font-size: 21px;
  }

  .final-stage {
    padding: 42px 44px;
    gap: 26px;
  }

  .final-stage-title {
    width: min(1800px, 100%);
    font-size: min(4.2vw, 122px);
  }

  .final-stage-note {
    width: min(1500px, 100%);
    font-size: 30px;
  }

  .final-stage-stat {
    min-height: 170px;
    border-radius: 28px;
  }

  .final-stage-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .final-stage-seat {
    padding: 26px;
    border-radius: 28px;
  }

  .final-stage-seat-label {
    font-size: 20px;
  }

  .final-stage-seat-name {
    font-size: min(1.8vw, 50px);
  }

  .final-stage-seat-meta {
    font-size: 20px;
  }
}

.players-table th {
  height: 54px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(11px, .84vw, 14px);
  font-weight: 700;
  text-align: left;
}

.players-table td {
  height: clamp(62px, 6.7vh, 78px);
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: var(--text);
  vertical-align: middle;
}

.players-table tr:last-child td {
  border-bottom: 0;
}

.place-col {
  width: clamp(58px, 4.8vw, 92px);
  text-align: center !important;
}

.seat-col {
  width: clamp(156px, 42%, 250px);
}

.stack-col {
  width: clamp(150px, 13vw, 220px);
}

.status-col {
  width: clamp(150px, 12vw, 220px);
}

.place-cell {
  display: grid;
  place-items: center;
  height: clamp(62px, 6.7vh, 78px);
  margin: 0 -16px;
  color: rgba(243, 239, 231, .68);
  font-family: var(--font-mono);
  font-size: clamp(28px, 2.5vw, 48px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.players-table tr:first-child .place-cell {
  color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(166, 133, 82, .12), transparent);
}

.player-cell {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1vw, 18px);
  min-width: 0;
}

.player-avatar {
  position: relative;
  flex: none;
  width: clamp(44px, 3.7vw, 60px);
  height: clamp(44px, 3.7vw, 60px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--avatar-a), var(--avatar-b));
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .3);
  color: var(--text-strong);
  font-size: clamp(17px, 1.3vw, 26px);
  font-weight: 800;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: clamp(20px, 1.55vw, 30px);
  font-weight: 700;
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted-strong);
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 600;
  white-space: nowrap;
}

.screen[data-format="wide"] .player-name,
.screen[data-format="ultrawide"] .player-name {
  font-size: clamp(18px, 1.28vw, 26px);
}

.screen[data-format="wide"] .player-avatar,
.screen[data-format="ultrawide"] .player-avatar {
  width: clamp(38px, 3vw, 54px);
  height: clamp(38px, 3vw, 54px);
  border-radius: 15px;
}

.screen[data-format="wide"] .seat-badge,
.screen[data-format="ultrawide"] .seat-badge {
  padding: 0 10px;
  font-size: clamp(12px, .86vw, 16px);
}

.seat-badge.no-seat {
  border-color: rgba(166, 133, 82, .28);
  color: var(--gold-bright);
}

.stack-value {
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: clamp(18px, 1.45vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-badge {
  font-size: clamp(14px, 1.04vw, 20px);
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.active {
  color: #d8eadb;
}

.status-badge.out,
.status-badge.no-show {
  color: rgba(152, 160, 170, .9);
}

.status-badge.winner {
  color: var(--gold-bright);
}

.empty-row td {
  height: 18vh;
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 600;
  text-align: center;
}

.screen[data-profile="harper-86"] .tv-board,
.screen[data-profile="hartens-55"] .tv-board {
  padding: clamp(14px, 1.25vw, 22px);
  gap: clamp(8px, 1vh, 14px);
}

.screen[data-profile="harper-86"] .board-header,
.screen[data-profile="hartens-55"] .board-header {
  min-height: 42px;
}

.screen[data-profile="harper-86"] .board-kicker,
.screen[data-profile="hartens-55"] .board-kicker {
  font-size: clamp(10px, .68vw, 13px);
  letter-spacing: .1em;
}

.screen[data-profile="harper-86"] .board-zone,
.screen[data-profile="hartens-55"] .board-zone {
  font-size: clamp(11px, .78vw, 15px);
}

.screen[data-profile="harper-86"] .live-pill,
.screen[data-profile="hartens-55"] .live-pill {
  min-height: clamp(34px, 2.6vw, 44px);
  padding: 0 clamp(10px, .9vw, 16px);
  font-size: clamp(10px, .76vw, 14px);
}

.screen[data-profile="harper-86"][data-format="wide"] .timer-layout,
.screen[data-profile="harper-86"][data-format="ultrawide"] .timer-layout,
.screen[data-profile="hartens-55"][data-format="wide"] .timer-layout,
.screen[data-profile="hartens-55"][data-format="ultrawide"] .timer-layout {
  grid-template-columns: minmax(250px, .56fr) minmax(520px, 1.12fr) minmax(230px, .5fr);
  grid-template-areas: "players timer rating";
  gap: clamp(10px, 1vw, 18px);
}

.screen[data-profile="harper-86"] .players-board,
.screen[data-profile="hartens-55"] .players-board {
  grid-area: players;
  min-width: 0;
}

.screen[data-profile="harper-86"] .timer-shell,
.screen[data-profile="hartens-55"] .timer-shell {
  grid-area: timer;
  min-width: 0;
}

.screen[data-profile="harper-86"] .rating-board,
.screen[data-profile="hartens-55"] .rating-board {
  grid-area: rating;
  width: 100%;
  min-width: 0;
  height: 100%;
  align-self: stretch;
  justify-self: stretch;
  overflow: hidden;
}

.screen[data-profile="harper-86"] .timer-shell,
.screen[data-profile="hartens-55"] .timer-shell {
  gap: 8px;
}

.screen[data-profile="harper-86"] .timer-main-panel,
.screen[data-profile="hartens-55"] .timer-main-panel {
  min-height: clamp(260px, 48vh, 440px);
  padding: clamp(14px, 1.5vw, 26px);
  border-radius: 18px;
}

.screen[data-profile="harper-86"] .timer-stats-grid,
.screen[data-profile="hartens-55"] .timer-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.screen[data-profile="harper-86"] .timer-stat,
.screen[data-profile="hartens-55"] .timer-stat {
  min-height: clamp(76px, 9vh, 102px);
  gap: 7px;
  padding: clamp(10px, .85vw, 14px);
  border-radius: 14px;
}

.screen[data-profile="harper-86"] .timer-stat-label,
.screen[data-profile="hartens-55"] .timer-stat-label {
  font-size: clamp(9px, .62vw, 11px);
}

.screen[data-profile="harper-86"] .timer-stat-value,
.screen[data-profile="hartens-55"] .timer-stat-value {
  font-size: clamp(20px, 1.55vw, 30px);
}

.screen[data-profile="harper-86"] .timer-stat-value.compact,
.screen[data-profile="hartens-55"] .timer-stat-value.compact {
  font-size: clamp(16px, 1.2vw, 23px);
}

.screen[data-profile="harper-86"] .tournament-title,
.screen[data-profile="hartens-55"] .tournament-title {
  max-width: 100%;
  font-size: clamp(24px, 2.55vw, 48px);
  line-height: .98;
}

.screen[data-profile="harper-86"] .level-line,
.screen[data-profile="hartens-55"] .level-line {
  gap: 7px;
}

.screen[data-profile="harper-86"] .level-code,
.screen[data-profile="hartens-55"] .level-code {
  min-height: clamp(26px, 2vw, 34px);
  padding: 0 clamp(8px, .75vw, 12px);
  font-size: clamp(10px, .72vw, 13px);
}

.screen[data-profile="harper-86"] .level-name,
.screen[data-profile="hartens-55"] .level-name {
  font-size: clamp(15px, 1.2vw, 22px);
}

.screen[data-profile="harper-86"] .timer,
.screen[data-profile="hartens-55"] .timer {
  font-size: clamp(78px, 7.2vw, 132px);
  line-height: .86;
}

.screen[data-profile="harper-86"] .blind-caption,
.screen[data-profile="hartens-55"] .blind-caption {
  font-size: clamp(9px, .64vw, 12px);
}

.screen[data-profile="harper-86"] .blind-values,
.screen[data-profile="hartens-55"] .blind-values {
  font-size: clamp(22px, 2vw, 38px);
  gap: clamp(5px, .55vw, 9px);
}

.screen[data-profile="harper-86"] .next-line,
.screen[data-profile="hartens-55"] .next-line {
  font-size: clamp(10px, .72vw, 13px);
}

.screen[data-profile="harper-86"] .players-board,
.screen[data-profile="harper-86"] .rating-board,
.screen[data-profile="hartens-55"] .players-board,
.screen[data-profile="hartens-55"] .rating-board {
  border-radius: 16px;
}

.screen[data-profile="harper-86"] .players-board-head,
.screen[data-profile="hartens-55"] .players-board-head {
  min-height: clamp(40px, 3.5vw, 54px);
  padding: 0 clamp(10px, .9vw, 16px);
  font-size: clamp(11px, .8vw, 15px);
}

.screen[data-profile="harper-86"] .players-table-wrap,
.screen[data-profile="hartens-55"] .players-table-wrap {
  padding: 0 6px 6px;
}

.screen[data-profile="harper-86"] .players-table th,
.screen[data-profile="hartens-55"] .players-table th {
  height: clamp(28px, 2.5vw, 38px);
  padding: 0 8px;
  font-size: clamp(8px, .62vw, 11px);
}

.screen[data-profile="harper-86"] .players-table td,
.screen[data-profile="harper-86"] .place-cell,
.screen[data-profile="hartens-55"] .players-table td,
.screen[data-profile="hartens-55"] .place-cell {
  height: clamp(38px, 4.6vh, 54px);
}

.screen[data-profile="harper-86"] .players-table td,
.screen[data-profile="hartens-55"] .players-table td {
  padding: 0 8px;
}

.screen[data-profile="harper-86"] .place-col,
.screen[data-profile="hartens-55"] .place-col {
  width: clamp(34px, 3vw, 46px);
}

.screen[data-profile="harper-86"] .seat-col,
.screen[data-profile="hartens-55"] .seat-col {
  width: clamp(104px, 43%, 150px);
}

.screen[data-profile="harper-86"] .place-cell,
.screen[data-profile="hartens-55"] .place-cell {
  margin: 0 -8px;
  font-size: clamp(16px, 1.5vw, 26px);
}

.screen[data-profile="harper-86"] .player-cell,
.screen[data-profile="hartens-55"] .player-cell {
  gap: 7px;
}

.screen[data-profile="harper-86"] .player-avatar,
.screen[data-profile="hartens-55"] .player-avatar {
  width: clamp(26px, 2.3vw, 38px);
  height: clamp(26px, 2.3vw, 38px);
  display: grid;
  border-radius: 10px;
  font-size: clamp(10px, .82vw, 14px);
}

.screen[data-profile="harper-86"] .player-name,
.screen[data-profile="hartens-55"] .player-name {
  font-size: clamp(12px, 1vw, 17px);
  line-height: 1.1;
}

.screen[data-profile="harper-86"] .seat-badge,
.screen[data-profile="hartens-55"] .seat-badge {
  min-height: clamp(24px, 2vw, 32px);
  padding: 0 6px;
  border-radius: 8px;
  font-size: clamp(9px, .72vw, 12px);
}

.screen[data-profile="harper-86"] .rating-board,
.screen[data-profile="hartens-55"] .rating-board {
  gap: 8px;
  padding: clamp(12px, 1.1vw, 18px);
}

.screen[data-profile="harper-86"] .rating-board-head,
.screen[data-profile="hartens-55"] .rating-board-head {
  gap: 8px;
}

.screen[data-profile="harper-86"] .payouts-kicker,
.screen[data-profile="hartens-55"] .payouts-kicker {
  font-size: clamp(11px, .78vw, 14px);
}

.screen[data-profile="harper-86"] .payouts-meta,
.screen[data-profile="hartens-55"] .payouts-meta {
  font-size: clamp(10px, .72vw, 13px);
}

.screen[data-profile="harper-86"] .rating-list,
.screen[data-profile="hartens-55"] .rating-list {
  gap: 8px;
}

.screen[data-profile="harper-86"] .rating-row,
.screen[data-profile="hartens-55"] .rating-row {
  min-height: clamp(54px, 7vh, 72px);
  padding: 8px 10px;
  border-radius: 14px;
  gap: 8px;
}

.screen[data-profile="harper-86"] .rating-place,
.screen[data-profile="hartens-55"] .rating-place {
  width: auto;
  min-width: clamp(44px, 3.8vw, 66px);
  height: clamp(32px, 2.8vw, 44px);
  padding: 0 6px;
  font-size: clamp(14px, 1.2vw, 20px);
}

.screen[data-profile="harper-86"] .rating-row strong,
.screen[data-profile="hartens-55"] .rating-row strong {
  font-size: clamp(20px, 1.75vw, 32px);
}

.screen[data-profile="harper-86"] .rating-row span:last-child,
.screen[data-profile="hartens-55"] .rating-row span:last-child {
  font-size: clamp(9px, .72vw, 12px);
}

.seating-map-seat strong {
  white-space: normal;
}

.final-stage.is-seat-map {
  grid-template-rows: auto minmax(0, 1fr);
  justify-content: stretch;
}

.final-stage.is-seat-map .final-stage-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(10px, 1vw, 18px);
  text-align: left;
}

.final-stage.is-seat-map .final-stage-title {
  width: auto;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1vw, 18px);
  font-size: clamp(24px, 2.2vw, 42px);
  line-height: 1;
  white-space: nowrap;
}

.final-stage.is-seat-map .final-stage-list {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(8px, 1vh, 14px);
  overflow: hidden;
}

.screen[data-state="final-table"] .final-stage.is-seat-map {
  padding: clamp(16px, 1.8vw, 28px);
  gap: clamp(10px, 1.4vh, 18px);
  grid-template-columns: minmax(0, 1fr);
  justify-content: normal;
}

.screen[data-state="final-table"] .final-stage.is-seat-map .final-stage-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: initial;
  text-align: left;
}

.screen[data-state="final-table"] .final-stage.is-seat-map .final-stage-title {
  grid-column: 2;
  justify-self: center;
  width: auto;
  font-size: clamp(28px, 2.5vw, 48px);
}

.screen[data-state="final-table"] .sound-unlock-button,
.screen[data-state="seating-event"] .sound-unlock-button {
  left: auto;
  right: clamp(18px, 2vw, 34px);
  transform: none;
}

.screen[data-state="final-table"] .sound-unlock-button:hover,
.screen[data-state="final-table"] .sound-unlock-button:focus-visible,
.screen[data-state="seating-event"] .sound-unlock-button:hover,
.screen[data-state="seating-event"] .sound-unlock-button:focus-visible {
  transform: translateY(-1px);
}

.screen[data-state="final-table"] .final-stage.is-seat-map .seating-map-page {
  grid-template-columns: minmax(0, 1fr);
}

.screen[data-state="final-table"] .final-stage.is-seat-map .seating-table-card {
  padding: clamp(12px, 1.2vw, 20px);
}

.screen[data-state="final-table"] .final-stage.is-seat-map .seating-table-visual {
  min-height: clamp(420px, 66vh, 720px);
}

.screen[data-state="final-table"] .final-stage.is-seat-map .seating-map-seat {
  width: clamp(138px, 16vw, 260px);
  max-width: 24%;
  min-width: 116px;
  min-height: clamp(54px, 6.4vh, 82px);
  padding: 8px 10px;
}

.screen[data-state="final-table"] .final-stage.is-seat-map .seating-map-seat strong {
  font-size: clamp(13px, 1.05vw, 19px);
}

.screen[data-state="final-table"] .final-stage.is-seat-map .seating-seat-number {
  font-size: clamp(10px, .76vw, 14px);
}

.screen[data-profile][data-state="seating-event"] .timer-layout,
.screen[data-profile][data-state="final-table"] .timer-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.screen[data-profile][data-state="seating-event"] .final-stage.is-seat-map,
.screen[data-profile][data-state="final-table"] .final-stage.is-seat-map {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

@keyframes floatSuit {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: .76;
  }
  50% {
    transform: translate3d(0, -8px, 0);
    opacity: 1;
  }
}

@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(.8);
    opacity: .68;
  }
}

@keyframes timerBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.012);
  }
}

@keyframes finalTableGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(166, 133, 82, .12),
      0 26px 70px rgba(0, 0, 0, .42),
      0 0 62px rgba(166, 133, 82, .12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(166, 133, 82, .2),
      0 32px 82px rgba(0, 0, 0, .46),
      0 0 88px rgba(166, 133, 82, .2);
  }
}

@keyframes playerRoll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@media (max-aspect-ratio: 4 / 3) {
  body {
    overflow: auto;
  }

  .screen,
  .tv-board {
    min-height: 100dvh;
    height: auto;
  }

  .timer-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .players-board,
  .rating-board {
    min-height: 520px;
  }
}

@media (max-width: 1200px) {
  .timer-layout {
    gap: 16px;
  }

  .timer-shell {
    width: 100%;
  }

  .timer-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-table-list {
    grid-template-columns: 1fr;
  }

  .final-stage-summary,
  .final-stage-list {
    grid-template-columns: 1fr;
  }

  .tournament-title {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  html,
  body {
    overflow: auto;
  }

  .screen {
    min-height: 100dvh;
    height: auto;
  }

  .tv-board {
    min-height: 100dvh;
    height: auto;
    padding: 18px;
  }

  .board-header {
    display: grid;
    gap: 14px;
  }

  .live-pill {
    justify-self: start;
  }

  .timer-main-panel,
  .payouts-panel,
  .players-board,
  .rating-board {
    border-radius: 24px;
  }

  .timer-main-panel {
    padding: 24px 18px;
  }

  .timer {
    font-size: clamp(86px, 22vw, 140px);
  }

  .timer-stats-grid {
    grid-template-columns: 1fr;
  }

  .final-table-head {
    display: grid;
  }

  .final-table-list {
    grid-template-columns: 1fr;
  }

  .final-stage {
    padding: 22px 18px;
  }

  .final-stage-summary,
  .final-stage-list {
    grid-template-columns: 1fr;
  }

  .timer-flag {
    width: 100%;
  }

  .payouts-header,
  .rating-board-head {
    display: grid;
  }

  .payouts-list,
  .rating-list {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .players-table {
    min-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* PDF reference timer: the two backgrounds below are extracted byte-for-byte
   from the user-provided taymer.pdf and taymer_final.pdf files. */
.screen .tv-board.timer-design-active {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #000 url("/tv-static/timer-standard-bg.jpg") center / contain no-repeat;
  color: #ffff00;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.screen .tv-board.timer-design-active::before {
  display: none;
}

.screen .tv-board.timer-design-active::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  background: transparent url("/tv-static/timer-final-bg.jpg") center / contain no-repeat;
  opacity: 0;
  mix-blend-mode: normal;
  transition: opacity 1s ease;
}

.screen[data-timer-mode="final"] .tv-board.timer-design-active::after {
  opacity: 1;
}

.screen .tv-board.timer-design-active .board-texture,
.screen .tv-board.timer-design-active .board-suit,
.screen .tv-board.timer-design-active .board-header {
  display: none !important;
}

.screen .tv-board.timer-design-active .timer-layout {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(100vw, 177.7778dvh);
  height: min(100dvh, 56.25vw);
  min-height: 0;
  display: block;
  padding: 0;
  transform: translate(-50%, -50%);
}

.screen .tv-board.timer-design-active .timer-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  display: block;
}

.screen .tv-board.timer-design-active .timer-main-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #ffff00;
  text-align: center;
  animation: none;
}

.screen .tv-board.timer-design-active .timer-main-panel::before {
  display: none;
}

.screen .tv-board.timer-design-active .timer-main-panel > * {
  position: absolute;
  z-index: 1;
}

.screen .tv-board.timer-design-active .tournament-title {
  top: 10.7%;
  left: 50%;
  width: 58%;
  max-width: 58%;
  margin: 0;
  transform: translateX(-50%);
  color: #ffff00;
  font-family: "Calibri Light", Calibri, "Segoe UI Light", "Segoe UI", Arial, sans-serif;
  font-size: min(var(--tournament-title-vw, 5.45vw), var(--tournament-title-vh, 9.69vh));
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: nowrap;
  white-space: nowrap;
  overflow-wrap: normal;
}

.screen .tv-board.timer-design-active .level-line {
  top: 29.1%;
  left: 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: min(.45vw, .8vh);
  transform: translateX(-50%);
  color: #ffff00;
}

.screen .tv-board.timer-design-active .level-code {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffff00;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: min(2.85vw, 5.07vh);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.screen .tv-board.timer-design-active .level-divider,
.screen .tv-board.timer-design-active .level-name {
  display: none;
}

.screen .tv-board.timer-design-active .timer-main-panel.is-break .level-name {
  display: block;
  max-width: 44vw;
  color: #d5e995;
  font-size: min(1.55vw, 2.76vh);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

.screen .tv-board.timer-design-active .timer-main-panel.is-break .level-line {
  top: 26.5%;
}

.screen .tv-board.timer-design-active .timer-main-panel.is-break .timer {
  top: 38.2%;
}

.screen .tv-board.timer-design-active .timer {
  top: 35.6%;
  left: 50%;
  transform: translateX(-50%);
  color: #ffff00;
  font-family: "Calibri Light", Calibri, "Segoe UI Light", "Segoe UI", Arial, sans-serif;
  font-size: min(7.6vw, 13.51vh);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: .86;
  letter-spacing: -.025em;
  text-shadow: none;
  white-space: nowrap;
  animation: none !important;
}

.screen .tv-board.timer-design-active .current-blinds {
  top: 52.5%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: min(1.15vw, 2.04vh);
  transform: translateX(-50%);
}

.screen .tv-board.timer-design-active .blind-caption {
  color: #ffff00;
  font-size: min(1.7vw, 3.02vh);
  font-weight: 400;
  line-height: 1;
}

.screen .tv-board.timer-design-active .blind-values {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  color: #ffff00;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: min(2.65vw, 4.71vh);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
}

.screen .tv-board.timer-design-active .blind-divider {
  padding: 0 .08em;
  color: #ffff00;
}

.screen .tv-board.timer-design-active .timer-main-panel.is-break .current-blinds {
  display: none;
}

.screen .tv-board.timer-design-active .next-line {
  top: 66.3%;
  left: 50%;
  width: 24%;
  max-width: none;
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: min(.55vw, .98vh);
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d5e995;
  font-weight: 400;
  text-wrap: nowrap;
}

.screen .tv-board.timer-design-active .next-line span {
  font-size: min(1.55vw, 2.76vh);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.screen .tv-board.timer-design-active .next-line strong {
  color: #d5e995;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: min(2.35vw, 4.18vh);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.screen[data-timer-mode="final"] .tv-board.timer-design-active .next-line {
  top: 61.1%;
  width: 19.45%;
  height: 13.9%;
  padding: 0 min(.7vw, 1.24vh);
  border-radius: min(1.45vw, 2.58vh);
  background: rgba(127, 127, 127, .5);
}

.screen .tv-board.timer-design-active .players-board {
  position: absolute;
  top: 25.75%;
  left: 3.85%;
  z-index: 3;
  width: 21.84%;
  height: 64.9%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 13% minmax(0, 1fr) 18%;
  overflow: hidden;
  padding: 0;
  border: min(.085vw, .15vh) solid #000;
  border-radius: min(3.65vw, 6.49vh);
  background: rgba(127, 127, 127, .5);
  box-shadow: none;
  backdrop-filter: none;
  color: #ffff00;
}

.screen .tv-board.timer-design-active .players-board-head {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: min(1.25vw, 2.22vh) 7% 0;
  color: #ffff00;
  font-size: min(1.7vw, 3.02vh);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.screen .tv-board.timer-design-active .players-table-wrap {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: 0 8%;
}

.screen .tv-board.timer-design-active .players-scroll-window {
  min-height: 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 91%, transparent 100%);
}

.screen .tv-board.timer-design-active .players-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: #ffff00;
}

.screen .tv-board.timer-design-active .players-table th,
.screen .tv-board.timer-design-active .players-table td {
  height: auto;
  padding: min(.18vw, .32vh) 0;
  border: 0;
  color: #ffff00;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: min(1.56vw, 2.77vh);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  vertical-align: middle;
}

.screen .tv-board.timer-design-active .players-table th {
  padding-bottom: min(.55vw, .98vh);
  font-size: min(1.25vw, 2.22vh);
  white-space: nowrap;
}

.screen .tv-board.timer-design-active .players-table th:first-child,
.screen .tv-board.timer-design-active .players-table td:first-child {
  width: 57%;
}

.screen .tv-board.timer-design-active .players-table .seat-col,
.screen .tv-board.timer-design-active .players-table td:last-child {
  width: 43%;
  padding-left: 4%;
  text-align: left;
}

.screen .tv-board.timer-design-active .player-cell {
  min-width: 0;
  display: block;
}

.screen .tv-board.timer-design-active .player-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #ffff00;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen .tv-board.timer-design-active .seat-badge {
  min-height: 0;
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffff00;
  font-size: inherit;
  font-weight: 400;
  white-space: nowrap;
}

.screen .tv-board.timer-design-active .empty-row td {
  padding-top: min(1.2vw, 2.13vh);
  font-size: min(1.25vw, 2.22vh);
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.screen .tv-board.timer-design-active .players-average {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: min(.55vw, .98vh);
  padding: 0 7% min(1.7vw, 3.02vh);
  color: #ffff00;
  text-align: center;
}

.screen .tv-board.timer-design-active .players-average span,
.screen .tv-board.timer-design-active .players-average strong {
  color: #ffff00;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: min(1.65vw, 2.93vh);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.screen .tv-board.timer-design-active .timer-stats-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.screen .tv-board.timer-design-active .timer-stat {
  position: absolute;
  left: 70.75%;
  width: 16.02%;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: min(.65vw, 1.16vh);
  padding: min(.65vw, 1.16vh) min(.8vw, 1.42vh);
  border: min(.085vw, .15vh) solid #000;
  background: rgba(127, 127, 127, .5);
  box-shadow: none;
  color: #ffff00;
  text-align: center;
}

.screen .tv-board.timer-design-active #breakTimerStat {
  top: 30.3%;
  height: 12.15%;
  border-radius: min(1.25vw, 2.22vh);
}

.screen .tv-board.timer-design-active #registrationTimerStat {
  top: 57.15%;
  height: 17.4%;
  border-radius: min(1.7vw, 3.02vh);
}

.screen .tv-board.timer-design-active .timer-stat-label,
.screen .tv-board.timer-design-active .timer-stat-value,
.screen .tv-board.timer-design-active .timer-stat-value.compact {
  color: #ffff00;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: min(1.7vw, 3.02vh);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.14;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.screen[data-timer-mode="final"] .tv-board.timer-design-active .timer-stats-grid,
.screen .tv-board.timer-design-active .timer-flags,
.screen .tv-board.timer-design-active .final-table-panel {
  display: none !important;
}

.screen[data-timer-mode="regular"] .tv-board.timer-design-active .rating-board {
  display: none !important;
}

.screen .tv-board.timer-design-active .rating-board {
  position: absolute;
  top: 25.75%;
  left: 73.18%;
  z-index: 3;
  width: 21.84%;
  height: 64.9%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 16% minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 0 8%;
  border: min(.085vw, .15vh) solid #000;
  border-radius: min(3.65vw, 6.49vh);
  background: rgba(127, 127, 127, .5);
  box-shadow: none;
  backdrop-filter: none;
  color: #ffff00;
}

.screen .tv-board.timer-design-active .rating-board-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: min(.8vw, 1.42vh);
  text-align: center;
}

.screen .tv-board.timer-design-active .payouts-kicker {
  color: #ffff00;
  font-size: min(1.65vw, 2.93vh);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.screen .tv-board.timer-design-active .payouts-meta {
  display: none;
}

.screen .tv-board.timer-design-active .rating-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: min(.5vw, .89vh);
  overflow: hidden;
  padding-top: min(.55vw, .98vh);
}

.screen .tv-board.timer-design-active .rating-row {
  min-height: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: min(.35vw, .62vh);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffff00;
}

.screen .tv-board.timer-design-active .rating-place,
.screen .tv-board.timer-design-active .rating-dash,
.screen .tv-board.timer-design-active .rating-row strong {
  grid-row: auto;
  width: auto;
  min-width: 0;
  height: auto;
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ffff00;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: min(1.56vw, 2.77vh);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.28;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.screen[data-timer-mode] .sound-unlock-button {
  top: auto;
  right: min(1.25vw, 2.22vh);
  bottom: min(1.25vw, 2.22vh);
  left: auto;
  min-width: 0;
  min-height: 0;
  padding: min(.5vw, .89vh) min(.75vw, 1.33vh);
  transform: none;
  border-color: rgba(255, 255, 0, .28);
  border-radius: min(.55vw, .98vh);
  background: rgba(0, 0, 0, .58);
  color: #ffff00;
  font-size: min(.78vw, 1.39vh);
  opacity: .16;
}

.screen[data-timer-mode] .sound-unlock-button:hover,
.screen[data-timer-mode] .sound-unlock-button:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 0, .7);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .screen .tv-board.timer-design-active::after {
    transition: none;
  }
}
