/* axiotrax race viewer — phone first (opened from an email / WhatsApp link). */

:root {
  --rv-navy: #122540;
  --rv-navy-md: #2D5080;
  --rv-orange: #FF6B35;
  --rv-ink: #122540;
  --rv-muted: #5b6b80;
  --rv-glass: rgba(255, 255, 255, 0.94);
  --rv-line: rgba(18, 37, 64, 0.12);
  --rv-shadow: 0 6px 24px rgba(18, 37, 64, 0.18);
  --rv-radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #dfe9f2; }
body {
  font-family: Metropolis, -apple-system, system-ui, sans-serif;
  color: var(--rv-ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#race-viewer { position: fixed; inset: 0; }
.rv-map, .rv-canvas { position: absolute; inset: 0; }
.rv-canvas { pointer-events: none; z-index: 1; }

/* ── Header ─────────────────────────────── */
.rv-head {
  position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px;
  max-width: 420px;
  background: var(--rv-glass); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow);
  padding: 10px 14px 11px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rv-brand {
  font-weight: 800; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rv-orange); text-decoration: none;
}
.rv-title { margin: 2px 0 0; padding-right: 80px; font-size: 17px; font-weight: 700; line-height: 1.2; }
.rv-sub { margin: 2px 0 0; font-size: 13px; color: var(--rv-muted); }
.rv-wind:empty { display: none; }
.rv-wind {
  all: unset; cursor: pointer;
  position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  padding: 4px 6px; border-radius: 8px;
  font-variant-numeric: tabular-nums; color: var(--rv-navy-md);
}
.rv-wind:hover { background: rgba(18, 37, 64, 0.06); }
.rv-wind:focus-visible { outline: 2px solid var(--rv-orange); }
.rv-wind-dir { font-size: 13px; font-weight: 700; }
.rv-up { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rv-orange); }
/* TV, Chase, Ladder: one row under the subtitle, so three of them never sit
   on top of the venue line on a phone. */
.rv-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rv-tv {
  all: unset; cursor: pointer;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px;
  color: var(--rv-orange); box-shadow: inset 0 0 0 1.5px var(--rv-orange);
}
.rv-tv[aria-pressed="true"] { color: #fff; background: var(--rv-orange); box-shadow: none; }
.rv-tv:focus-visible { outline: 2px solid var(--rv-orange); outline-offset: 2px; }
.rv-ladder {
  all: unset; cursor: pointer;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
  color: var(--rv-muted); box-shadow: inset 0 0 0 1px var(--rv-line);
}
.rv-ladder[aria-pressed="true"] { color: #fff; background: #30B0C7; box-shadow: none; }
.rv-ladder:focus-visible { outline: 2px solid var(--rv-orange); outline-offset: 2px; }
.rv-ladder[hidden] { display: none; }
.rv-chase {
  all: unset; cursor: pointer;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
  color: var(--rv-muted); box-shadow: inset 0 0 0 1px var(--rv-line);
}
.rv-chase[aria-pressed="true"] { color: #fff; background: var(--rv-orange); box-shadow: none; }
.rv-chase:focus-visible { outline: 2px solid var(--rv-orange); outline-offset: 2px; }
.rv-chase[hidden] { display: none; }
.rv-arrow { display: inline-block; margin-right: 4px; color: var(--rv-orange); transition: transform 0.3s; }
.rv-flag { color: #17A589; font-weight: 700; }

/* ── Leaderboard ────────────────────────── */
.rv-board {
  position: absolute; z-index: 2;
  /* leaves the bottom-right corner to the map controls */
  top: 12px; right: 12px; width: 300px; max-height: calc(100% - 340px); min-height: 0;
  display: flex; flex-direction: column;
  background: var(--rv-glass); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.rv-board-toggle {
  all: unset; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--rv-muted);
  border-bottom: 1px solid var(--rv-line);
}
.rv-board-count {
  background: var(--rv-navy); color: #fff; border-radius: 99px;
  font-size: 11px; padding: 2px 8px; letter-spacing: 0;
}
.rv-rows { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.rv-rows li {
  display: grid; grid-template-columns: 22px 12px 1fr auto 40px; align-items: center; gap: 8px;
  padding: 7px 14px; cursor: pointer; font-size: 14px;
}
.rv-unranked li { grid-template-columns: 12px 1fr auto 40px; }
.rv-unranked .rv-pos { display: none; }
.rv-rows li:hover { background: rgba(18, 37, 64, 0.05); }
.rv-rows li.rv-sel { background: rgba(255, 107, 53, 0.12); }
.rv-rows li:focus-visible { outline: 2px solid var(--rv-orange); outline-offset: -2px; }
.rv-pos { font-weight: 700; color: var(--rv-muted); text-align: right; font-variant-numeric: tabular-nums; }
.rv-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.rv-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-name small { margin-left: 6px; font-weight: 500; color: var(--rv-muted); font-size: 12px; }
.rv-num { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.rv-num small { font-size: 10px; font-weight: 500; color: var(--rv-muted); margin-left: 2px; }
.rv-cog { color: var(--rv-muted); font-weight: 500; }
/* boat-length gap column (replaces heading once the standings have positions) */
.rv-gaps li { grid-template-columns: 22px 12px 1fr auto 58px; }
.rv-gaps .rv-cog { font-weight: 700; }
.rv-gap-ahead { color: #17A589; }
.rv-gap-behind { color: #E4572E; }
.rv-gap-ref { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rv-muted); }
/* ── The focus boat's card ── */
.rv-stats { flex: none; padding: 10px 14px 12px; border-top: 1px solid var(--rv-line); }
.rv-stats[hidden] { display: none; }
.rv-stats h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.rv-stats dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
.rv-stats dl div { min-width: 0; }
.rv-stats dt { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rv-muted); }
.rv-stats dd { margin: 1px 0 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-stats dd small { font-size: 10px; font-weight: 500; color: var(--rv-muted); margin-left: 2px; }
.rv-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--rv-muted); font-variant-numeric: tabular-nums; }
.rv-legend i {
  flex: 1; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgb(41,98,255), rgb(0,199,230), rgb(52,199,89), rgb(255,204,0), rgb(255,59,48));
}
/* ── SmartCoach's call ── */
.rv-coach { flex: none; padding: 10px 14px 12px; border-top: 1px solid var(--rv-line); }
.rv-coach[hidden] { display: none; }
.rv-coach-tag {
  margin: 0 0 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rv-orange);
}
.rv-coach-line { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.rv-coach-go {
  all: unset; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--rv-navy-md);
}
.rv-coach-go:hover { text-decoration: underline; }
.rv-coach-go:focus-visible { outline: 2px solid var(--rv-orange); outline-offset: 2px; border-radius: 3px; }
.rv-coach-go[hidden] { display: none; }
.rv-coach-pro { display: block; margin-top: 6px; font-size: 11px; color: var(--rv-muted); text-decoration: none; }
.rv-coach-pro:hover { color: var(--rv-orange); }
.rv-board-note:empty { display: none; }
.rv-board-note { margin: 0; padding: 8px 14px 10px; font-size: 12px; color: var(--rv-muted); border-top: 1px solid var(--rv-line); }

/* ── Playback bar ───────────────────────── */
.rv-bar {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  background: var(--rv-navy); color: #fff;
  border-radius: var(--rv-radius); box-shadow: var(--rv-shadow);
  padding: 10px 14px;
}
.rv-play, .rv-speed {
  all: unset; cursor: pointer; flex: none;
  display: grid; place-items: center; border-radius: 99px;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.rv-play { width: 42px; height: 42px; background: var(--rv-orange); font-size: 15px; }
.rv-speed { min-width: 44px; height: 32px; padding: 0 8px; font-size: 13px; background: rgba(255,255,255,0.12); }
.rv-play:focus-visible, .rv-speed:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rv-clock { flex: none; display: flex; flex-direction: column; min-width: 74px; font-variant-numeric: tabular-nums; }
.rv-rel { font-size: 18px; font-weight: 700; line-height: 1.1; }
.rv-abs { font-size: 11px; opacity: 0.65; }
/* The timeline is the focus boat's speed trace with a transparent slider on
   top: the thumb is the playhead, the trace is the race under it. */
.rv-track { position: relative; flex: 1; min-width: 0; height: 40px; }
.rv-trace {
  position: absolute; left: 0; right: 0; top: 4px; bottom: 4px; width: 100%; height: calc(100% - 8px);
  border-radius: 6px; background: rgba(255,255,255,0.06);
}
.rv-scrub {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.rv-scrub::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.rv-scrub::-moz-range-track { height: 100%; background: transparent; }
.rv-scrub::-webkit-slider-thumb {
  -webkit-appearance: none; width: 4px; height: 40px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 0 2px var(--rv-orange), 0 1px 6px rgba(0,0,0,0.4);
}
.rv-scrub::-moz-range-thumb {
  width: 4px; height: 40px; border: 0; border-radius: 2px;
  background: #fff; box-shadow: 0 0 0 2px var(--rv-orange), 0 1px 6px rgba(0,0,0,0.4);
}
.rv-scrub:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.rv-ticks { position: absolute; inset: 0; pointer-events: none; }
.rv-tick { position: absolute; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; background: rgba(255,255,255,0.35); }
.rv-tick-gun { background: var(--rv-orange); }
.rv-tick[data-label]::after {
  content: attr(data-label); position: absolute; top: -3px; left: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rv-orange); white-space: nowrap;
}

/* ── TV caption: the broadcast lower third ── */
.rv-caption {
  position: absolute; z-index: 3; left: 12px; bottom: calc(126px + env(safe-area-inset-bottom));
  display: flex; align-items: stretch; max-width: calc(100% - 24px);
  border-radius: 8px; overflow: hidden; box-shadow: var(--rv-shadow);
  font-weight: 700; pointer-events: none;
}
.rv-caption[hidden] { display: none; }
.rv-cap-tag {
  background: var(--rv-orange); color: #fff; padding: 8px 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.rv-cap-text:empty { display: none; }
.rv-cap-text {
  background: var(--rv-navy); color: #fff; padding: 8px 14px; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* a coach line is a sentence, not a label: let it wrap */
.rv-cap-long { max-width: min(560px, calc(100% - 24px)); }
.rv-cap-long .rv-cap-text { white-space: normal; line-height: 1.3; }
.rv-cap-in { animation: rv-cap-in 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes rv-cap-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rv-cap-in { animation: none; } }

/* ── Watch the race: what a fresh link opens on ── */
.rv-watch {
  position: absolute; inset: 0; z-index: 9;
  display: grid; place-items: center; padding: 16px;
  background: linear-gradient(180deg, rgba(18,37,64,0.15), rgba(18,37,64,0.55));
}
.rv-watch[hidden] { display: none; }
.rv-watch-card {
  width: min(380px, 100%); text-align: center;
  background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(18, 37, 64, 0.35);
  padding: 22px 20px 16px;
}
.rv-watch-card h2 { margin: 4px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.rv-watch-sub { margin: 0 0 18px; font-size: 14px; color: var(--rv-muted); }
.rv-watch-go {
  all: unset; cursor: pointer; box-sizing: border-box; display: block; width: 100%;
  padding: 14px; border-radius: 14px; background: var(--rv-orange); color: #fff;
  font-size: 17px; font-weight: 800;
}
.rv-watch-go:hover { filter: brightness(1.05); }
.rv-watch-go:focus-visible { outline: 3px solid var(--rv-navy); outline-offset: 2px; }
.rv-watch-explore {
  all: unset; cursor: pointer; display: inline-block; margin-top: 10px; padding: 6px 10px;
  font-size: 14px; font-weight: 600; color: var(--rv-navy-md); border-radius: 8px;
}
.rv-watch-explore:hover { background: rgba(18,37,64,0.06); }
.rv-watch-explore:focus-visible { outline: 2px solid var(--rv-orange); }

.rv-cta {
  position: absolute; z-index: 2; left: 12px; bottom: calc(80px + env(safe-area-inset-bottom));
  font-size: 12px; font-weight: 600; color: var(--rv-navy); text-decoration: none;
  background: var(--rv-glass); border-radius: 99px; padding: 6px 12px; box-shadow: var(--rv-shadow);
}

.rv-controls {
  position: absolute; z-index: 2; right: 12px; bottom: calc(110px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.rv-help-btn {
  all: unset; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rv-glass); box-shadow: var(--rv-shadow);
  font-size: 18px; font-weight: 800; color: var(--rv-orange);
}
.rv-help-btn:hover { background: #fff; }
.rv-help-btn:focus-visible { outline: 2px solid var(--rv-orange); outline-offset: 2px; }
.rv-zoom {
  display: flex; flex-direction: column;
  background: var(--rv-glass); border-radius: 10px; box-shadow: var(--rv-shadow);
  overflow: hidden;
}
.rv-zoom button {
  all: unset; cursor: pointer;
  width: 40px; height: 40px; display: grid; place-items: center;
  font-size: 22px; font-weight: 600; line-height: 1; color: var(--rv-navy);
}
.rv-zoom button + button { border-top: 1px solid var(--rv-line); }
.rv-zoom button:hover { background: rgba(18, 37, 64, 0.06); }
.rv-zoom button:focus-visible { outline: 2px solid var(--rv-orange); outline-offset: -2px; }
.rv-share-btn {
  all: unset; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rv-orange); color: #fff; box-shadow: var(--rv-shadow);
}
.rv-share-btn:hover { filter: brightness(1.06); }
.rv-share-btn:focus-visible { outline: 2px solid var(--rv-navy); outline-offset: 2px; }
.rv-toast {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: calc(86px + env(safe-area-inset-bottom));
  background: var(--rv-navy); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 99px; box-shadow: var(--rv-shadow); white-space: nowrap;
}
.rv-toast[hidden] { display: none; }

.rv-help {
  position: absolute; inset: 0; z-index: 10;
  display: grid; place-items: center; padding: 16px;
  background: rgba(18, 37, 64, 0.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.rv-help[hidden] { display: none; }
.rv-help-card {
  width: min(440px, 100%); max-height: calc(100% - 32px); overflow-y: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(18, 37, 64, 0.35);
  padding: 20px 20px 18px;
}
.rv-help-eyebrow {
  margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rv-orange);
}
.rv-help-card h2 { margin: 2px 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.rv-help-card ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.rv-help-card li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: start; }
.rv-help-card li p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--rv-muted); }
.rv-help-card li strong { color: var(--rv-ink); }
.rv-help-card li b { color: var(--rv-ink); font-weight: 700; }
/* each key is a small copy of the control it explains */
.rv-hk { justify-self: center; margin-top: 1px; }
.rv-hk-play {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rv-orange); color: #fff; font-size: 12px;
}
.rv-hk-chip {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 99px; white-space: nowrap;
}
.rv-hk-wind { color: var(--rv-orange); box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.4); }
.rv-hk-gap { color: #E4572E; background: rgba(228, 87, 46, 0.1); text-transform: none; letter-spacing: 0; font-size: 12px; }
.rv-hk-chase { color: #fff; background: var(--rv-orange); }
.rv-hk-tv { color: var(--rv-orange); box-shadow: inset 0 0 0 1.5px var(--rv-orange); }
.rv-hk-rung {
  width: 60px; height: 12px; margin-top: 8px;
  background: repeating-linear-gradient(90deg, #30B0C7 0 6px, transparent 6px 11px) center / 100% 2px no-repeat;
}
.rv-hk-heat {
  width: 60px; height: 8px; margin-top: 9px; border-radius: 4px;
  background: linear-gradient(90deg, rgb(41,98,255), rgb(0,199,230), rgb(52,199,89), rgb(255,204,0), rgb(255,59,48));
}
.rv-hk-link {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(18, 37, 64, 0.07); color: var(--rv-navy); font-weight: 800;
}
.rv-help-done {
  all: unset; cursor: pointer; box-sizing: border-box;
  display: block; width: 100%; text-align: center;
  padding: 12px; border-radius: 12px;
  background: var(--rv-navy); color: #fff; font-weight: 700; font-size: 15px;
}
.rv-help-done:hover { background: var(--rv-navy-md); }
.rv-help-done:focus-visible { outline: 2px solid var(--rv-orange); outline-offset: 2px; }

.rv-error { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 16px; }
.rv-error p { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.rv-error small { color: var(--rv-muted); }

.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-bottom-right { bottom: 80px; }

/* ── Phone ──────────────────────────────── */
@media (max-width: 759px) {
  .rv-head { right: 12px; max-width: none; padding: 8px 12px 9px; }
  .rv-title { font-size: 15px; }
  .rv-board {
    top: auto; left: 12px; right: 12px; width: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-height: 38vh;
  }
  .rv-board.rv-collapsed .rv-rows, .rv-board.rv-collapsed .rv-board-note,
  .rv-board.rv-collapsed .rv-stats, .rv-board.rv-collapsed .rv-coach { display: none; }
  /* The sheet is a third of a phone: a picked boat's card takes the room and
     the coach line steps aside (TV mode shows it as a caption instead). The
     fleet list never shrinks below two rows. */
  .rv-rows { min-height: 66px; }
  .rv-stats:not([hidden]) ~ .rv-coach { display: none; }
  .rv-coach { padding: 8px 12px 10px; }
  .rv-coach-line { font-size: 13px; margin-bottom: 6px; }
  .rv-stats { padding: 8px 12px 10px; }
  .rv-stats dl { grid-template-columns: repeat(4, 1fr); gap: 6px 8px; }
  .rv-stats dd { font-size: 14px; }
  .rv-caption { bottom: calc(130px + env(safe-area-inset-bottom)); }
  .rv-cap-text { font-size: 13px; }
  .rv-toast { bottom: calc(80px + env(safe-area-inset-bottom)); max-width: calc(100% - 24px); white-space: normal; text-align: center; }
  .rv-rows li { padding: 6px 12px; font-size: 13px; }
  .rv-bar { gap: 10px; padding: 8px 10px; }
  .rv-clock { min-width: 62px; }
  .rv-rel { font-size: 16px; }
  .rv-cta { display: none; }
  /* between the header and the fleet sheet */
  .rv-controls { top: 38%; bottom: auto; transform: translateY(-50%); }
  .maplibregl-ctrl-bottom-right { bottom: 76px; }
}

/* ── Framed in another page (the homepage's live replay) ── */
.rv-fullscreen { display: none; }
.rv-embed .rv-cta { display: none; }
.rv-embed .rv-fullscreen {
  display: block; position: absolute; z-index: 2; left: 12px; bottom: calc(80px + env(safe-area-inset-bottom));
  font-size: 12px; font-weight: 600; color: var(--rv-navy); text-decoration: none;
  background: var(--rv-glass); border-radius: 99px; padding: 6px 12px; box-shadow: var(--rv-shadow);
}
@media (max-width: 759px) { .rv-embed .rv-fullscreen { display: none; } }

/* The site-wide chat widget (injected by Netlify on every page) appends a bare
   button to <body>, where it covers the playback controls. The viewer's own
   buttons all live inside #race-viewer, so this only ever hits injected UI. */
body > button, body > iframe { display: none !important; }
