/* USA Road Trip Crew. Dark "command center" look; brand colors from the original wordmark. */
:root {
  --bg: #06080d;
  --panel: #0c121c;
  --panel-2: #111a28;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef2f8;
  --muted: #94a0b4;
  --dim: #64708a;
  --red: #ef3b4b;
  --red-2: #ff5a68;
  --blue: #3d8bff;
  --gold: #ffc23d;
  --green: #2bd46b;
  --orange: #ff9f0a;
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Overpass', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Overpass Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 0% -10%, rgba(239, 59, 75, .14), transparent 60%),
    radial-gradient(55vw 40vw at 100% -5%, rgba(61, 139, 255, .16), transparent 60%),
    radial-gradient(60vw 45vw at 70% 105%, rgba(255, 194, 61, .07), transparent 60%);
  transition: opacity .6s;
}
body.mode-live::before {
  background:
    radial-gradient(70vw 45vw at 10% -10%, rgba(239, 59, 75, .24), transparent 60%),
    radial-gradient(55vw 40vw at 100% -5%, rgba(61, 139, 255, .16), transparent 60%),
    radial-gradient(60vw 45vw at 70% 105%, rgba(255, 194, 61, .07), transparent 60%);
}
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.fine { font-size: 12px; color: var(--dim); margin: 12px 0 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 13, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.shield { width: 38px; height: 42px; flex: none; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.wordmark { font-weight: 900; font-size: 19px; letter-spacing: .14em; line-height: 1.15; white-space: nowrap; }
.w-usa { color: var(--red-2); }
.w-road { color: #fff; }
.w-trip { color: var(--blue); }
.w-crew { color: var(--gold); }
.tagline { font-size: 12px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: 800 14px/1 var(--font);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, background .15s;
  flex: none;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .09); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-yt { background: #ff0033; border-color: #ff0033; color: #fff; }
.btn-yt:hover { background: #ff1f4b; }
.btn-yt::before { content: ""; border-left: 9px solid #fff; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #111; }
.btn-gold:hover { background: #ffd06a; }
.btn-live { background: var(--red); border-color: var(--red); color: #fff; }
.btn-live:hover { background: var(--red-2); }

/* ---------- live banner ---------- */
.live-banner {
  background: linear-gradient(90deg, #a90f1c, #ef3b4b 45%, #a90f1c);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 40px rgba(239, 59, 75, .25);
  animation: drop .5s ease-out;
}
.live-banner-in { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.lb-pill { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .18em; font-size: 15px; }
.lb-pill .dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; animation: ping 1.6s infinite; }
.lb-item b { font-family: var(--mono); font-weight: 700; }
.lb-item:first-of-type b { font-family: var(--font); font-weight: 800; }

/* ---------- panels ---------- */
main { padding-top: 24px; padding-bottom: 64px; }
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 68px; flex-wrap: wrap; }
.ph-title { min-width: 0; flex: 1 1 160px; }
.kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ph-title h2 { margin: 2px 0 0; font-size: 17px; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 6px;
  border-radius: 999px;
  font: 800 12px/1 var(--font);
  letter-spacing: .12em;
  flex: none;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
body.mode-live .badge-air { background: var(--red); border-color: var(--red); color: #fff; }
body.mode-live .badge-air .dot { background: #fff; animation: ping 1.6s infinite; }
.badge-gps { background: rgba(43, 212, 107, .12); border-color: rgba(43, 212, 107, .4); color: var(--green); }
body.is-demo .badge-gps { background: rgba(255, 194, 61, .12); border-color: rgba(255, 194, 61, .45); color: var(--gold); }

/* ---------- watch: player + map / off-air card ---------- */
.command { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.player-panel { display: flex; flex-direction: column; overflow: hidden; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; margin: 0 12px 12px; border-radius: var(--radius-sm); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite { all: unset; position: absolute; inset: 0; background: #000 center / cover no-repeat; cursor: pointer; }
.lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); }
.lite-play { position: absolute; left: 50%; top: 50%; width: 78px; height: 54px; margin: -27px 0 0 -39px; border-radius: 14px; background: #ff0033; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .15s; z-index: 1; }
.lite-play::before { content: ""; position: absolute; left: 31px; top: 15px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.lite:hover .lite-play { transform: scale(1.08); }
.lite:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

/* live cameras: main view + picture-in-picture bottom right (tap to swap) */
.cams { position: absolute; inset: 0; background: #000; }
.cam { position: absolute; overflow: hidden; background: #05070b; transition: all .35s ease; }
.cam video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.cam-main { inset: 0; z-index: 1; }
.cam-pip { right: 12px; bottom: 12px; width: 30%; aspect-ratio: 16 / 9; z-index: 2; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); cursor: pointer; }
.cam-pip video { object-fit: cover; }
.cam-pip:hover { border-color: var(--gold); }
.cam-pip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cam-label { position: absolute; left: 10px; top: 10px; padding: 5px 9px 4px; border-radius: 999px; background: rgba(6, 8, 13, .75); font: 800 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.cam-pip .cam-label { left: 6px; top: 6px; font-size: 9px; padding: 4px 7px 3px; }
.cam-main[data-state="live"] .cam-label::before { content: "● "; color: var(--red-2); }
.cam-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 700; pointer-events: none; }
.cam-pip .cam-status { font-size: 11px; }
.cam[data-state="live"] .cam-status { display: none; }
.cam[data-state="offline"] .cam-status { color: var(--red-2); }
.cam-tools { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; gap: 6px; }
.cam-btn { font: 800 12px/1 var(--font); padding: 8px 11px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(6, 8, 13, .75); color: var(--text); cursor: pointer; }
.cam-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.cams:fullscreen .cam-pip { width: 24%; }
.chat { margin: 0 12px 12px; border-radius: var(--radius-sm); overflow: hidden; height: 420px; border: 1px solid var(--line); }
.chat iframe { width: 100%; height: 100%; border: 0; }

.map-panel { display: flex; flex-direction: column; overflow: hidden; }
.toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.tog { font: 800 12px/1 var(--font); letter-spacing: .04em; padding: 8px 11px 7px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.tog[aria-pressed="true"] { background: rgba(61, 139, 255, .16); border-color: rgba(61, 139, 255, .55); color: #cfe0ff; }
.map-wrap { position: relative; flex: 1; min-height: 340px; margin: 0 12px 12px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
#map { position: absolute; inset: 0; background: #0b0f17; }
.map-fix { position: absolute; top: 10px; right: 10px; z-index: 500; padding: 6px 10px; border-radius: 999px; background: rgba(6, 8, 13, .8); border: 1px solid var(--line-2); font: 700 12px/1 var(--mono); color: var(--text); pointer-events: none; }
.recenter { position: absolute; right: 10px; bottom: 28px; z-index: 500; background: rgba(6, 8, 13, .88); }

.offair-panel { padding: 26px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.offair-panel h2 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.1; }
.nl-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--gold); }
.nl-when { margin: 0; color: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 4px; }
.countdown div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px 10px; text-align: center; }
.countdown b { display: block; font: 700 30px/1 var(--mono); color: #fff; }
.countdown span { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.offair-note { margin: 6px 0 4px; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- telemetry ---------- */
.telemetry { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.tile { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.tk { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tv { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; min-width: 0; }
.tv b { font: 700 26px/1.15 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tile-place .tv b { font: 800 20px/1.3 var(--font); }
.tile-alerts.has-alerts { border-color: rgba(239, 59, 75, .6); background: rgba(239, 59, 75, .12); }
.tile-alerts.has-alerts b { color: var(--red-2); }

/* ---------- sections ---------- */
.section { margin-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- storm desk ---------- */
.desk-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.desk-grid .panel { padding: 18px; min-width: 0; }
.desk-grid h3 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.alerts, .forecast { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alert { border-left: 4px solid var(--gold); background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.alert-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.alert-top span { color: var(--muted); white-space: nowrap; }
.alert p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sev-extreme { border-color: #ff3b4f; }
.sev-severe { border-color: var(--orange); }
.sev-moderate { border-color: var(--gold); }
.sev-minor { border-color: var(--blue); }
.alert-none { padding: 12px 14px; border-radius: 10px; background: rgba(43, 212, 107, .08); border: 1px solid rgba(43, 212, 107, .3); color: #bdf5d2; }
.forecast li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.fc-name { font-weight: 800; }
.fc-temp { font: 700 20px/1 var(--mono); grid-row: span 2; align-self: center; }
.fc-sky { font-size: 13px; color: var(--muted); }
.national { display: flex; flex-direction: column; gap: 8px; }
.nat-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.nat-row b { margin-left: auto; font: 700 18px/1 var(--mono); }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }

/* ---------- series ---------- */
.series-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.series-card {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 220px;
  padding: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 8, 13, .05) 0%, rgba(6, 8, 13, .92) 78%), var(--img) center / cover no-repeat;
  transition: transform .2s, border-color .2s;
}
.series-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.series-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.s-kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.s-title { font-size: 22px; font-weight: 900; line-height: 1.1; }
.s-sub { font-size: 13px; color: #c9d2e0; }
.series-card[data-filter="storms"] .s-kicker { color: var(--red-2); }
.series-card[data-filter="explore"] .s-kicker { color: var(--gold); }
.series-card[data-filter="drives"] .s-kicker { color: #8fb8ff; }
.series-card[data-filter="scenic"] .s-kicker { color: var(--green); }

/* ---------- videos ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { font: 800 13px/1 var(--font); padding: 9px 14px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.chip-btn span { opacity: .7; margin-left: 4px; font-family: var(--mono); }
.chip-btn[aria-pressed="true"] { background: var(--text); color: #0b0f17; border-color: var(--text); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
.vcard { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-width: 0; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111 center / cover no-repeat; border: 1px solid var(--line); transition: transform .2s; }
.vcard:hover .vthumb { transform: translateY(-2px); }
.vcard:focus-visible .vthumb { outline: 3px solid var(--gold); outline-offset: 2px; }
.vtag { position: absolute; left: 10px; top: 10px; padding: 5px 9px 4px; border-radius: 999px; font: 800 10px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; background: rgba(6, 8, 13, .82); }
.tag-storms { color: var(--red-2); }
.tag-explore { color: var(--gold); }
.tag-drives { color: #8fb8ff; }
.tag-scenic { color: var(--green); }
.vplay { position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px; border-radius: 10px; background: rgba(255, 0, 51, .92); opacity: 0; transition: opacity .2s; }
.vplay::before { content: ""; position: absolute; left: 21px; top: 10px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vcard:hover .vplay, .vcard:focus-visible .vplay { opacity: 1; }
.vtitle { font-weight: 800; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vmeta { font-size: 13px; color: var(--muted); }
.more { margin-top: 26px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand b { display: block; color: var(--text); }
.footer-brand span { font-size: 13px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--text); }
.footer .fine { flex-basis: 100%; margin: 0; }

/* ---------- prototype control ---------- */
.proto { position: fixed; right: 16px; bottom: 16px; z-index: 1100; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(16, 24, 38, .96); border: 1px solid rgba(255, 194, 61, .5); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-size: 13px; font-weight: 700; }
.proto-k { color: var(--gold); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; }
.proto-switch { font: 700 12px/1 var(--mono); padding: 9px 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--dim); color: #fff; min-width: 54px; }
.proto-switch[aria-pressed="true"] { background: var(--green); color: #04210f; }

/* ---------- map marker + Leaflet dark theme ---------- */
.rig { position: relative; }
.rig-pulse { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 194, 61, .35); animation: pulse 2s ease-out infinite; }
.rig-arrow { position: absolute; inset: 0; transition: transform .6s; }
.rig-arrow::before { content: ""; position: absolute; left: 50%; top: 1px; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid var(--gold); }
.rig-dot { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 18px rgba(255, 194, 61, .8); }
.leaflet-container { background: #0b0f17; font-family: var(--font); }
.tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.55); }
.leaflet-bar { border: 1px solid var(--line-2) !important; box-shadow: none !important; }
.leaflet-bar a, .leaflet-bar a:hover { background: #121b2a; color: var(--text); border-bottom-color: var(--line); }
.leaflet-control-attribution { background: rgba(6, 8, 13, .72) !important; color: var(--dim) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #121b2a; color: var(--text); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.4; }

/* ---------- modes: the GPS transmitter decides ---------- */
body.mode-offair .live-only { display: none !important; }
body.mode-live .offair-only { display: none !important; }
body.mode-live .map-panel, body.mode-live .telemetry { animation: rise .5s ease-out; }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@keyframes pulse { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes drop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .desk-alerts { grid-column: 1 / -1; }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .command { grid-template-columns: minmax(0, 1fr); }
  .map-wrap { min-height: 380px; }
  .nav { display: none; }
  .topbar-in .btn-yt { margin-left: auto; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topbar-in { height: 62px; gap: 12px; }
  .wordmark { font-size: 15px; letter-spacing: .08em; }
  .tagline { display: none; }
  .shield { width: 30px; height: 33px; }
  .live-banner-in { font-size: 13px; gap: 4px 16px; }
  .lb-fix { display: none; }
  .panel-head { padding: 12px; }
  #player-yt { display: none; }
  .cam-pip { width: 38%; right: 8px; bottom: 8px; }
  .cam-tools { left: 8px; bottom: 8px; }
  .cam-btn { padding: 7px 9px 6px; font-size: 11px; }
  .player, .chat { margin: 0 8px 8px; }
  .map-wrap { margin: 0 8px 8px; min-height: 340px; }
  .offair-panel { padding: 20px; }
  .offair-panel h2 { font-size: 26px; }
  .countdown b { font-size: 24px; }
  .telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-place { grid-column: 1 / -1; }
  .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .series-card { min-height: 160px; padding: 14px; }
  .s-title { font-size: 18px; }
  .s-sub { display: none; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .proto { left: 16px; right: 16px; justify-content: space-between; }
  .footer { padding-bottom: 96px; }
}
@media (max-width: 420px) {
  .topbar-in .btn-yt .lbl { display: none; }
  .topbar-in .btn-yt { padding: 0 14px; }
}
