:root {
  --ink: #101915;
  --surface: #18231d;
  --surface-light: #202c25;
  --line: #344139;
  --muted: #96a19b;
  --acid: #d9ff43;
  --danger: #ed573e;
  --white: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { min-width: 320px; margin: 0; background: var(--ink); color: var(--white); font-family: "DM Sans", sans-serif; }
.tv-header { min-height: 92px; padding: 0 clamp(28px, 4vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.tv-brand { display: flex; align-items: center; gap: 15px; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -.04em; }
.tv-brand strong { color: var(--acid); }
.brand-mark { width: 38px; height: 38px; padding: 8px; display: flex; align-items: flex-end; gap: 4px; border: 1px solid #56625b; transform: skew(-8deg); }
.brand-mark i { width: 5px; background: var(--acid); }
.brand-mark i:nth-child(1) { height: 45%; }
.brand-mark i:nth-child(2) { height: 75%; }
.brand-mark i:nth-child(3) { height: 100%; }
.live-label { padding: 9px 14px; border: 1px solid #455149; color: var(--acid); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.live-label i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 5px rgba(237,87,62,.14); animation: live-pulse 1.8s ease-in-out infinite; }
.start-time { justify-self: end; text-align: right; }
.start-time span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.start-time time { display: block; margin-top: 2px; font: 700 clamp(21px, 2vw, 30px) "Barlow Condensed", sans-serif; letter-spacing: .06em; }

main { padding: clamp(30px, 4vw, 65px) clamp(28px, 4vw, 72px); }
.overview-header { margin-bottom: clamp(30px, 4vw, 58px); display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; }
.overview-header p { margin: 0 0 10px; color: var(--danger); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.overview-header h1 { margin: 0; font: 800 clamp(54px, 7vw, 105px)/.82 "Barlow Condensed", sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.overview-header h1 em { color: var(--acid); font-style: normal; }
.overview-stats { display: flex; gap: clamp(28px, 4vw, 70px); }
.overview-stats div { min-width: 100px; }
.overview-stats span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.overview-stats strong { display: block; margin-top: 3px; font: 700 clamp(32px, 3.5vw, 52px) "Barlow Condensed", sans-serif; }
.overview-stats div:last-child strong { color: var(--acid); }

.checkpoint-tv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 26px); }
.tv-checkpoint-card { position: relative; min-height: clamp(330px, 43vh, 470px); padding: clamp(22px, 2vw, 34px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-top: 8px solid var(--danger); background: var(--surface); }
.tv-checkpoint-card::after { position: absolute; right: -12px; top: 35px; color: rgba(255,255,255,.025); font: 800 170px "Barlow Condensed", sans-serif; }
.tv-checkpoint-missing::after { content: "!"; }
.tv-checkpoint-closed { border-top-color: var(--acid); background: #1d2a22; }
.tv-checkpoint-closed::after { content: "✓"; color: rgba(217,255,67,.055); }
.tv-checkpoint-active { border-top-color: #66736b; }
.card-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.checkpoint-number { color: var(--muted); font: 700 clamp(18px, 1.7vw, 27px) "Barlow Condensed", sans-serif; }
.checkpoint-state { max-width: 150px; padding: 7px 11px; background: rgba(237,87,62,.14); color: #ff8875; font-size: clamp(9px, .7vw, 12px); font-weight: 800; line-height: 1.2; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.tv-checkpoint-closed .checkpoint-state { background: var(--acid); color: var(--ink); }
.tv-checkpoint-active .checkpoint-state { background: #303d35; color: #c0c9c4; }
.tv-checkpoint-card h2 { position: relative; z-index: 1; margin: clamp(25px, 3vh, 40px) 0 0; font: 800 clamp(34px, 3.6vw, 58px)/.88 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.checkpoint-location { position: relative; z-index: 1; margin: 10px 0 0; color: var(--muted); font-size: clamp(11px, 1vw, 16px); }
.checkpoint-progress { position: relative; z-index: 1; margin-top: auto; }
.checkpoint-progress strong { display: block; font: 800 clamp(52px, 6vw, 90px)/.8 "Barlow Condensed", sans-serif; }
.checkpoint-progress strong span { color: var(--muted); font-size: .55em; }
.checkpoint-progress > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.checkpoint-bottom { position: relative; z-index: 1; margin-top: 25px; padding-top: 19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.missing-count strong { display: block; color: var(--danger); font: 700 clamp(25px, 2.4vw, 38px) "Barlow Condensed", sans-serif; }
.tv-checkpoint-closed .missing-count strong { color: var(--acid); }
.missing-count span, .closed-time span { display: block; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.closed-time { text-align: right; }
.closed-time time { display: block; font: 700 clamp(20px, 1.8vw, 29px) "Barlow Condensed", sans-serif; }
.active-copy { color: #ff8875; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.tv-checkpoint-active .active-copy { color: var(--muted); }
.checkpoint-tv-empty { min-height: 360px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.checkpoint-tv-empty > span { color: #56625b; font: 800 75px "Barlow Condensed", sans-serif; }
.checkpoint-tv-empty h2 { margin: 5px 0 0; font: 700 42px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.checkpoint-tv-empty p { color: var(--muted); }
footer { min-height: 65px; padding: 0 clamp(28px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

@keyframes live-pulse { 50% { opacity: .45; transform: scale(.8); } }

@media (max-width: 1200px) {
  .checkpoint-tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .tv-header { min-height: 76px; grid-template-columns: 1fr auto auto; }
  .tv-header .auth-account span { display: none; }
  .live-label { display: none; }
  main { padding: 28px 18px; }
  .overview-header { align-items: stretch; flex-direction: column; }
  .overview-stats { justify-content: space-between; gap: 12px; }
  .overview-stats div { min-width: 0; }
  .checkpoint-tv-grid { grid-template-columns: 1fr; }
  .tv-checkpoint-card { min-height: 340px; }
  footer { padding: 15px 18px; flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
