.display-body {
  overflow: hidden;
}

.status-banners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1vh;
  margin-bottom: 1.5vh;
  width: 100%;
  max-width: 1400px;
}

.status-pill {
  padding: 0.8vh 2vw;
  border-radius: var(--pill-radius);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(0.75rem, 1.8vw, 1.1rem);
}

.status-pill.status-open {
  background: rgba(93, 255, 168, 0.15);
  border: 1px solid #5dffa8;
  color: #5dffa8;
}

.status-pill.status-closed {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.display-body {
  overflow: hidden;
}

.display-viewport {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.display-scale {
  width: 100vw;
  transform: scale(var(--tv-scale, 1));
  transform-origin: top center;
}

.display-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 2vh 3vw 3vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.display-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  align-items: stretch;
}

.display-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-bottom: 2vh;
  width: 100%;
  max-width: 1400px;
}

.display-logo {
  object-fit: contain;
  max-height: clamp(80px, 14vh, 140px);
  width: auto;
  max-width: 30vw;
  border-radius: 12px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.fullscreen-btn {
  position: fixed;
  top: 1.5vh;
  right: 1.5vw;
  z-index: 20;
  padding: 0.8vh 1.2vw;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(62, 184, 188, 0.4);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

.tv-sound-test-btn {
  position: fixed;
  top: 1.5vh;
  right: 5.5vw;
  z-index: 20;
  padding: 0.8vh 1.1vw;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(196, 146, 58, 0.45);
  color: var(--gold-light);
  cursor: pointer;
  font-size: 1.1rem;
}

.tv-sound-status {
  position: fixed;
  left: 1.2vw;
  bottom: 1.2vh;
  z-index: 20;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.tv-sound-status.sound-ready {
  color: var(--gold-light);
  border-color: rgba(196, 146, 58, 0.45);
}

.header-pill {
  border: 1px solid rgba(196, 146, 58, 0.35);
}

.title-block {
  text-align: center;
}

.club-tag {
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  letter-spacing: 0.2em;
  color: var(--teal-glow);
  margin-bottom: 0.5vh;
}

.pill-card {
  border: 1px solid rgba(62, 184, 188, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.timer-pill {
  border: 2px solid rgba(196, 146, 58, 0.45);
}

.main-clock.gap-mode {
  color: var(--gold-light);
}

.gap-label {
  margin-top: 1vh;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--gold-light);
}

.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.fs-overlay-hint {
  margin: 0;
  max-width: 28rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.fs-overlay .btn {
  padding: 16px 28px;
  font-size: 1rem;
}

.tournament-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.display-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  align-items: stretch;
}

.timer-block {
  text-align: center;
  width: 100%;
  padding: 3vh 2vw;
  border: 2px solid rgba(62, 184, 188, 0.4);
  box-shadow: 0 0 60px rgba(42, 138, 141, 0.15);
}

.level-badge {
  display: inline-block;
  padding: 0.6vh 2vw;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1vh;
}

.main-clock {
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  transition: color 0.3s ease;
}

.until-break {
  margin-top: 0.6vh;
  font-size: clamp(0.95rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.until-break.hidden {
  display: none;
}

.main-clock.urgent {
  color: #ff6b6b;
  animation: pulse 1s ease-in-out infinite;
}

.main-clock.break-mode {
  color: var(--gold-light);
}

.break-label {
  margin-top: 1vh;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  flex: 1;
}

.info-card {
  padding: 2vh 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-title {
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 1vh;
}

.info-title.inline {
  display: inline;
  margin-right: 0.5em;
}

.blinds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1vw;
  text-align: center;
}

.blind-item {
  padding: 1.5vh 0.5vw;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
}

.blind-item.highlight {
  background: rgba(196, 146, 58, 0.2);
  border: 1px solid rgba(196, 146, 58, 0.45);
}

.blind-key {
  display: block;
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5vh;
}

.blind-num {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.big-stat {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.big-stat.gold {
  color: var(--gold-light);
}

.stats-card {
  gap: 2vh;
}

.small-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 2vw;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.small-stat-row strong {
  font-variant-numeric: tabular-nums;
}

.next-bar {
  padding: 1.2vh 2vw;
  text-align: center;
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
}

.next-label {
  color: var(--teal-glow);
  font-weight: 700;
  margin-right: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hidden {
  display: none !important;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (orientation: portrait) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.qr-panel {
  position: absolute;
  right: 5.5vw;
  bottom: 18vh;
  padding: 1.2vh 1.2vw;
  text-align: center;
  max-width: 160px;
  opacity: 0.92;
  z-index: 2;
}

.qr-image {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 0.5vh;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

.qr-caption {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-glow);
  margin-bottom: 0.3vh;
}

.qr-url {
  font-size: 0.55rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .qr-panel {
    position: static;
    margin: 2vh auto 0;
    max-width: 200px;
  }
}

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 190, 64, 0.18), rgba(0, 0, 0, 0.92) 58%);
  opacity: 1;
  transform: scale(1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.splash-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
}

.splash-frame {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-fallback {
  width: min(92vw, 1500px);
  padding: 8vh 5vw;
  border-radius: 40px;
  text-align: center;
  border: 2px solid rgba(255, 210, 100, 0.65);
  background: linear-gradient(135deg, rgba(40, 0, 0, 0.94), rgba(5, 5, 8, 0.96));
  box-shadow: 0 0 80px rgba(255, 140, 0, 0.45), inset 0 0 50px rgba(255, 210, 90, 0.12);
}

.splash-title {
  font-size: clamp(72px, 12vw, 220px);
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: 0.03em;
  color: #ffd36a;
  text-shadow: 0 6px 0 #3b0900, 0 0 42px rgba(255, 110, 0, 0.9);
  text-transform: uppercase;
}

.splash-subtitle {
  margin-top: 2vh;
  font-size: clamp(36px, 4.2vw, 86px);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.6);
}

.splash-bust .splash-fallback {
  border-color: rgba(255, 80, 80, 0.75);
  box-shadow: 0 0 90px rgba(255, 0, 0, 0.45), inset 0 0 50px rgba(255, 210, 90, 0.1);
}
