:root {
  --bg: #050505;
  --bg-2: #0b0b09;
  --panel: rgba(16, 15, 12, 0.94);
  --panel-strong: rgba(24, 20, 13, 0.96);
  --gold: #f2b637;
  --gold-soft: #ffdc78;
  --gold-deep: #8a5d12;
  --text: #fff8e9;
  --muted: #c6b88d;
  --dim: #8f8469;
  --line: rgba(242, 182, 55, 0.34);
  --line-soft: rgba(242, 182, 55, 0.16);
  --success: #2ee867;
  --warn: #f6c159;
  --danger: #ff6d6d;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    linear-gradient(180deg, rgba(255, 216, 106, 0.06), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 86px),
    linear-gradient(135deg, #020202 0%, #0b0b09 54%, #050505 100%);
}

.tv-shell {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100vh;
  padding: 14px 18px 10px;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) 78px 70px 28px;
  gap: 8px;
  border: 1px solid rgba(255, 216, 106, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.glitter-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(circle at 7% 14%, rgba(255, 230, 144, 0.88) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 8%, rgba(242, 182, 55, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 43% 17%, rgba(255, 230, 144, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 10%, rgba(242, 182, 55, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 16%, rgba(255, 230, 144, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 49%, rgba(242, 182, 55, 0.52) 0 1px, transparent 2px),
    radial-gradient(circle at 53% 45%, rgba(255, 230, 144, 0.56) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 56%, rgba(242, 182, 55, 0.58) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 84%, rgba(255, 230, 144, 0.68) 0 1px, transparent 2px),
    radial-gradient(circle at 71% 78%, rgba(242, 182, 55, 0.55) 0 1px, transparent 2px);
  filter: drop-shadow(0 0 5px rgba(242, 182, 55, 0.7));
  animation: glitter-twinkle 4.8s ease-in-out infinite;
}

.topbar,
.content-grid,
.lower-grid,
.info-strip,
.ticker,
.connection-badge,
.state-panel {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
  background: #090806;
  box-shadow: 0 0 28px rgba(242, 182, 55, 0.2);
  flex: 0 0 auto;
}

.logo-fallback {
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 800;
}

.brand-copy {
  min-width: 0;
}

.branch-name {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.4vh, 44px);
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.subtitle {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: clamp(11px, 1.55vh, 15px);
  font-weight: 700;
  text-transform: uppercase;
}

.subtitle strong {
  color: var(--gold-soft);
}

.live-card {
  min-width: 150px;
  border: 1px solid rgba(46, 232, 103, 0.24);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(4, 24, 10, 0.58);
  color: var(--success);
  font-size: clamp(10px, 1.35vh, 13px);
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.live-card > span:last-child {
  display: block;
  margin-top: 3px;
  color: #d7eadb;
  font-size: clamp(9px, 1.15vh, 12px);
  font-weight: 600;
  text-transform: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.time-card {
  text-align: right;
  white-space: nowrap;
}

.clock {
  color: var(--text);
  font-size: clamp(25px, 3.5vh, 34px);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.date-line {
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(10px, 1.35vh, 14px);
  font-weight: 700;
}

.content-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(280px, 0.92fr);
  gap: 12px;
}

.now-serving-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  overflow: hidden;
}

.serving-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 16px;
  text-align: center;
}

.serving-heading::before,
.serving-heading::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 9px;
  height: 9px;
  background: var(--gold-soft);
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  filter: drop-shadow(0 0 9px rgba(255, 220, 120, 0.9));
  animation: sparkle-pulse 2.6s ease-in-out infinite;
}

.serving-heading::before {
  left: 28%;
}

.serving-heading::after {
  right: 28%;
  animation-delay: 1.3s;
}

.serving-heading > span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.serving-heading h2 {
  margin: 0;
  color: var(--gold-soft);
  font-size: clamp(22px, 3.5vh, 34px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.serving-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(9px, 1.2vh, 12px);
  font-weight: 800;
  text-transform: uppercase;
}

.panel,
.chair-card,
.info-tile {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
  min-height: 0;
  overflow: hidden;
}

.panel::after,
.chair-card::after,
.info-tile::after,
.service-ad::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 231, 150, 0.16) 48%, transparent 55% 100%);
  transform: translateX(-120%);
  animation: border-glint 7.5s ease-in-out infinite;
}

.chair-card:nth-child(2)::after,
.info-tile:nth-child(2)::after {
  animation-delay: 1.8s;
}

.upcoming-panel::after,
.info-tile:nth-child(3)::after {
  animation-delay: 3.2s;
}

.panel-header {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  margin: 0;
  color: var(--gold-soft);
  font-size: clamp(13px, 1.75vh, 17px);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-meta {
  color: var(--muted);
  font-size: clamp(10px, 1.35vh, 13px);
  font-weight: 700;
}

.chairs-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  overflow: hidden;
}

.chair-card {
  padding: 14px 16px 12px;
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr) auto;
  border-color: rgba(242, 182, 55, 0.42);
  background:
    linear-gradient(130deg, rgba(255, 216, 106, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(26, 23, 18, 0.96), rgba(8, 8, 7, 0.96));
}

.chair-card.is-serving {
  box-shadow:
    0 0 0 1px rgba(242, 182, 55, 0.2),
    0 18px 40px rgba(0, 0, 0, 0.46);
}

.chair-card.is-ready-next {
  border-color: rgba(46, 232, 103, 0.42);
  box-shadow:
    0 0 0 1px rgba(46, 232, 103, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.46);
}

.chair-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: clamp(11px, 1.5vh, 14px);
  font-weight: 900;
  text-transform: uppercase;
}

.chair-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chair-icon {
  width: 15px;
  height: 16px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.chair-icon::before,
.chair-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
}

.chair-icon::before {
  left: -2px;
  right: -2px;
  top: 5px;
  height: 1px;
}

.chair-icon::after {
  left: 2px;
  right: 2px;
  bottom: -5px;
  height: 5px;
}

.chair-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 216, 106, 0.16);
  background: rgba(255, 216, 106, 0.07);
  color: var(--gold-soft);
  font-size: clamp(9px, 1.22vh, 12px);
}

.chair-status.serving,
.chair-status.available {
  border-color: rgba(46, 232, 103, 0.22);
  background: rgba(46, 232, 103, 0.1);
  color: var(--success);
}

.chair-status.paused {
  color: var(--warn);
}

.chair-status.unavailable {
  color: var(--dim);
}

.token-now {
  align-self: center;
  justify-self: center;
  width: 100%;
  color: var(--gold-soft);
  font-size: clamp(58px, 10.4vh, 102px);
  line-height: 0.9;
  font-weight: 950;
  text-align: center;
  text-shadow: 0 0 18px rgba(242, 182, 55, 0.32);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-available {
  align-self: center;
  justify-self: center;
  color: var(--success);
  font-size: clamp(34px, 6vh, 62px);
  line-height: 1;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.token-ready {
  align-self: center;
  justify-self: center;
  width: 100%;
  display: grid;
  gap: 6px;
  color: var(--success);
  text-align: center;
}

.token-ready span {
  font-size: clamp(11px, 1.55vh, 15px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.token-ready strong {
  color: var(--gold-soft);
  font-size: clamp(58px, 10.4vh, 102px);
  line-height: 0.86;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(242, 182, 55, 0.32);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-name {
  color: var(--text);
  font-size: clamp(17px, 2.35vh, 23px);
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-list {
  display: grid;
  gap: 4px;
  max-height: 118px;
  overflow: hidden;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(242, 182, 55, 0.16);
  border-radius: 6px;
  background: rgba(255, 216, 106, 0.045);
  color: var(--text);
  font-size: clamp(11px, 1.55vh, 15px);
  font-weight: 900;
}

.service-item.active {
  border-color: rgba(46, 232, 103, 0.32);
  background: rgba(46, 232, 103, 0.08);
}

.service-item.done {
  color: var(--muted);
  opacity: 0.74;
}

.service-item-name,
.service-item-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-item-time {
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.chair-detail {
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(11px, 1.45vh, 14px);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chair-meta-row {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(242, 182, 55, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 10px;
  color: var(--muted);
  font-size: clamp(10px, 1.35vh, 13px);
  font-weight: 800;
}

.chair-meta-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serving-note {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  border: 1px solid rgba(46, 232, 103, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--success);
  background: rgba(46, 232, 103, 0.08);
  font-size: clamp(10px, 1.25vh, 12px);
  font-weight: 800;
  white-space: nowrap;
}

.upcoming-panel {
  background:
    linear-gradient(180deg, rgba(255, 216, 106, 0.055), transparent),
    rgba(8, 8, 7, 0.93);
}

.upcoming-list {
  height: calc(100% - 46px);
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: hidden;
}

.upcoming-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(58px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.upcoming-item.is-next {
  border-color: rgba(242, 182, 55, 0.46);
  background:
    linear-gradient(90deg, rgba(242, 182, 55, 0.18), rgba(255, 255, 255, 0.045) 42%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 4px 0 0 var(--gold);
}

.upcoming-token {
  color: var(--gold-soft);
  font-size: clamp(28px, 4.4vh, 42px);
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.upcoming-service {
  color: var(--text);
  font-size: clamp(12px, 1.7vh, 16px);
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-time {
  margin-top: 3px;
  color: var(--gold-soft);
  font-size: clamp(10px, 1.35vh, 13px);
  font-weight: 700;
}

.lower-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 0.86fr 1fr 1.24fr;
  gap: 10px;
}

.metric-panel,
.offer-panel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
}

.metric-icon,
.offer-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(242, 182, 55, 0.52);
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(242, 182, 55, 0.06);
}

.metric-icon::before,
.offer-icon::before,
.offer-icon::after {
  content: "";
  position: absolute;
  border-color: var(--gold);
}

.metric-icon::before {
  width: 17px;
  height: 25px;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: skewX(-12deg);
}

.offer-icon::before {
  width: 22px;
  height: 18px;
  border: 2px solid var(--gold);
  border-radius: 3px;
}

.offer-icon::after {
  width: 2px;
  height: 24px;
  background: var(--gold);
  border: 0;
}

.metric-label,
.offer-label,
.qr-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: clamp(9px, 1.25vh, 12px);
  font-weight: 950;
}

.wait-range {
  margin-top: 3px;
  color: var(--text);
  font-size: clamp(25px, 4vh, 36px);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.next-chair {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(10px, 1.35vh, 13px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-title {
  margin-top: 3px;
  color: var(--gold-soft);
  font-size: clamp(16px, 2.45vh, 23px);
  line-height: 1.03;
  font-weight: 950;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(10px, 1.35vh, 13px);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qr-panel {
  padding: 9px 12px;
}

.qr-row {
  height: calc(100% - 17px);
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.qr-tile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.qr-tile img,
.qr-placeholder {
  display: block;
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 5px;
  padding: 3px;
}

.qr-title {
  color: var(--text);
  font-size: clamp(12px, 1.65vh, 16px);
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(9px, 1.18vh, 12px);
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-strip {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(250px, 1.25fr);
  gap: 9px;
}

.info-tile,
.service-ad {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
}

.info-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 182, 55, 0.44);
  color: var(--gold-soft);
  font-size: clamp(10px, 1.35vh, 12px);
  font-weight: 950;
  background: rgba(242, 182, 55, 0.06);
}

.info-title {
  color: var(--gold-soft);
  font-size: clamp(10px, 1.32vh, 12px);
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(9px, 1.12vh, 11px);
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-ad {
  position: relative;
  grid-template-columns: 84px minmax(0, 1fr);
  border: 1px solid rgba(242, 182, 55, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(242, 182, 55, 0.1), transparent 62%),
    var(--panel);
  min-width: 0;
  overflow: hidden;
}

.service-ad img,
.service-ad-fallback {
  width: 84px;
  height: 54px;
  border-radius: 6px;
  border: 1px solid rgba(242, 182, 55, 0.36);
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(242, 182, 55, 0.28), rgba(0, 0, 0, 0.1)),
    #15120d;
}

.service-ad-fallback {
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 800;
}

.service-ad-label {
  color: var(--muted);
  font-size: clamp(9px, 1.15vh, 11px);
  font-weight: 950;
  text-transform: uppercase;
}

.service-ad-title {
  margin-top: 3px;
  color: var(--gold-soft);
  font-size: clamp(12px, 1.55vh, 15px);
  line-height: 1.1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-ad-copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(9px, 1.1vh, 11px);
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker {
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  color: var(--gold-soft);
  font-size: clamp(11px, 1.45vh, 14px);
  font-weight: 850;
  white-space: nowrap;
}

.fm-player {
  position: fixed;
  right: 14px;
  bottom: 34px;
  z-index: 6;
  width: min(310px, 30vw);
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(242, 182, 55, 0.34);
  border-radius: 8px;
  padding: 8px 10px;
  background:
    linear-gradient(120deg, rgba(242, 182, 55, 0.12), transparent 70%),
    rgba(7, 7, 6, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.fm-toggle {
  border: 1px solid rgba(46, 232, 103, 0.38);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--success);
  background: rgba(46, 232, 103, 0.1);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.fm-copy {
  min-width: 0;
}

.fm-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.fm-station {
  margin-top: 2px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-volume {
  width: 72px;
  accent-color: var(--gold);
}

.ticker-track {
  display: inline-flex;
  gap: 42px;
  min-width: max-content;
  animation: ticker-scroll 54s linear infinite;
  will-change: transform;
}

.ticker-item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}

@keyframes glitter-twinkle {
  0%,
  100% {
    opacity: 0.36;
    transform: translate3d(0, 0, 0) scale(1);
  }
  45% {
    opacity: 0.72;
    transform: translate3d(0, -2px, 0) scale(1.012);
  }
  70% {
    opacity: 0.48;
    transform: translate3d(1px, 1px, 0) scale(0.998);
  }
}

@keyframes sparkle-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.75) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.18) rotate(22deg);
  }
}

@keyframes border-glint {
  0%,
  68% {
    transform: translateX(-120%);
  }
  82% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.connection-badge {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 5;
  background: rgba(246, 193, 89, 0.16);
  border: 1px solid rgba(246, 193, 89, 0.45);
  color: var(--warn);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
}

.state-shell {
  width: 100vw;
  height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.state-panel {
  width: min(760px, 74vw);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 48px 42px;
  text-align: center;
}

.state-title {
  color: var(--gold-soft);
  font-size: clamp(32px, 5.5vh, 62px);
  line-height: 1;
  font-weight: 950;
}

.state-copy {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 2.25vh, 24px);
}

.empty-center {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(242, 182, 55, 0.32);
  border-radius: 8px;
  color: var(--muted);
}

.empty-center strong {
  display: block;
  color: var(--gold-soft);
  font-size: clamp(25px, 4vh, 42px);
  margin-bottom: 6px;
}

@media (orientation: landscape) and (max-height: 680px) {
  .tv-shell {
    padding: 10px 14px 8px;
    grid-template-rows: 58px minmax(0, 1fr) 70px 60px 24px;
    gap: 7px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .now-serving-panel {
    grid-template-rows: 45px minmax(0, 1fr);
  }

  .chair-card {
    padding: 11px 13px 10px;
  }

  .token-now {
    font-size: clamp(48px, 9.4vh, 82px);
  }

  .qr-tile {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .qr-tile img,
  .qr-placeholder {
    width: 48px;
    height: 48px;
  }

  .info-mark {
    width: 32px;
    height: 32px;
  }

  .fm-player {
    bottom: 28px;
    width: min(280px, 34vw);
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fm-volume {
    display: none;
  }
}

@media (max-width: 1100px) and (orientation: portrait) {
  html,
  body {
    overflow: auto;
  }

  .tv-shell {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto auto auto auto;
  }

  .topbar,
  .content-grid,
  .lower-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .time-card,
  .live-card {
    text-align: left;
  }

  .chairs-grid {
    overflow: visible;
  }

  .fm-player {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) 72px;
    margin-top: 8px;
  }
}


/* ── Night-closed screen ─────────────────────────────────────────────────── */
.tv-night-closed .night-closed-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 60vh;
  gap: 16px;
  padding: 40px;
}

.night-closed-icon {
  font-size: 72px;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.night-closed-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.04em;
}

.night-closed-sub {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  color: var(--muted);
  margin: 0;
}

.night-closed-tagline {
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  color: var(--dim);
  margin: 0;
}
