/* ROAD CLOSED reader. The issue lies on a closed road at dawn: asphalt, the double yellow, a low warm sun.
   The book is the loud part; everything here stays small and steps back while you read. */
@font-face { font-family: 'Anton'; src: url(/site/roadclosed/fonts/anton-latin.woff2) format('woff2'); font-display: swap; }
:root {
  --asphalt: #1e2023;
  --line: #f2c230;          /* centre-line yellow: focus, tabs, the page you are on */
  --white: #eceae4;         /* barricade white */
  --concrete: #8d9096;
  --ink: #15161a;
  --panel: #141518;
  --display: 'Anton', 'Archivo', 'Arial Narrow', sans-serif;
  --ui: 'Archivo', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--asphalt); color: var(--white); overflow: hidden; overscroll-behavior: none; }
body { font: 400 15px/1.45 var(--ui); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }
.sr-only, .page-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#stage { position: fixed; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
#gl { display: block; width: 100%; height: 100%; }
body.zoomed #stage { cursor: grab; }
.light { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 85% at 50% 46%, transparent 66%, rgba(8, 8, 10, .38)); }
body.loading #stage { opacity: 0; }
#stage { transition: opacity .5s; }

/* pinned page layers (PDF points) */
#overlay { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.pl { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity .2s; }
#overlay.on .pl { opacity: 1; }
.pl > * { position: absolute; }
.lv-foil { background: linear-gradient(100deg, transparent 0 40%, rgba(255, 226, 170, .55) 45%, #fff 50%, rgba(255, 170, 160, .7) 54%, transparent 60% 100%);
  background-size: 320% 160%; mix-blend-mode: screen; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.lv-bar { clip-path: inset(0 100% 0 0); transition: clip-path .95s cubic-bezier(.2, .75, .2, 1); }
.lv-bar.go { clip-path: inset(0 0 0 0); }
.lv-nums { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.lv-nums text { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 700; }
.lv-video { opacity: 0; transition: opacity .5s; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.lv-video.on { opacity: 1; }
.lv-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.lv-hit, .lv-toc { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; pointer-events: auto; }
.lv-toc { border-radius: 2px; }
.lv-toc:hover, .lv-toc:focus-visible { background: rgba(242, 194, 48, .14); box-shadow: inset 0 -2px 0 var(--line); outline: none; }
.lv-route { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.lv-route .trail { stroke: #fff; opacity: .9; }
.lv-route .head { fill: #fff; }
.lv-route .glow { fill: #e3d2ff; opacity: .45; transition: opacity .6s; }
.lv-route.rest .glow { opacity: .15; }
.lv-hl { border: 2px solid var(--line); border-radius: 3px; box-shadow: 0 0 0 4px rgba(242, 194, 48, .22); opacity: 0; transform: scale(1.12);
  transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.lv-hl.go { opacity: 1; transform: none; }
.lv-hl.fade { opacity: 0; transition: opacity .8s; }

/* screen space: tabs and cards beside the page */
#screen { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#screen > * { pointer-events: auto; }
.tab { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; height: 32px; margin-top: -16px; padding: 0 13px 0 11px;
  background: var(--line); color: var(--ink); border: 0; border-radius: 0 7px 7px 0; cursor: pointer; white-space: nowrap;
  font: 650 13.5px/1 var(--ui); font-stretch: 88%; letter-spacing: .005em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .38), inset 0 -2px 0 rgba(0, 0, 0, .12);
  animation: tab-r .42s .12s cubic-bezier(.2, .8, .2, 1) both; }
.tab[data-side="L"] { border-radius: 7px 0 0 7px; flex-direction: row-reverse; padding: 0 11px 0 13px; animation-name: tab-l; }
.tab:hover { background: #ffd34a; }
.tab-i svg { display: block; width: 15px; height: 15px; }
@keyframes tab-r { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tab-l { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
body.idle .tab { opacity: .8; }

.card { position: fixed; left: 50%; top: 50%; width: min(392px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
  transform: translate(-50%, -46%); opacity: 0; transition: opacity .22s, transform .28s cubic-bezier(.2, .8, .2, 1);
  background: var(--panel); color: var(--white); border-radius: 12px; padding: 20px 20px 16px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .07); z-index: 25; }
.card.in { opacity: 1; transform: translate(-50%, -50%); }
.card.out { opacity: 0; transform: translate(-50%, -48%); }
.card h3 { margin: 0 0 6px; font: 400 30px/1 var(--display); letter-spacing: .01em; }
.card .rule { margin: 0 0 12px; color: var(--concrete); font-size: 14px; max-width: 34em; }
.card .x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; background: none; color: var(--concrete); font-size: 28px; line-height: 1; cursor: pointer; border-radius: 6px; }
.card .x:hover { color: var(--white); }
.watch { display: block; width: min(286px, 72vw); margin: 0 auto; padding: 0; background: none; border: 0; cursor: pointer; border-radius: 50%; }
.watch svg { display: block; width: 100%; }
.sw-crown { transition: transform .08s; }
.watch.pressed .sw-crown { transform: translateY(5px); }
.sw-fog { opacity: 0; transition: opacity .3s; }
.watch.blind .sw-fog { opacity: 1; }
.watch.blind .sw-hand { opacity: 0; }
.sw-num { font: 700 15px var(--ui); fill: #14151a; }
.sw-brand { font: 400 12px var(--display); letter-spacing: .14em; fill: #14151a; }
.sw-sub { font: 700 7px var(--ui); letter-spacing: .22em; fill: #6a696d; }
.sw-lcd { font: 600 22px ui-monospace, 'SF Mono', Menlo, monospace; fill: #23261d; }
.res { min-height: 3.1em; margin: 12px 2px 0; font-size: 14.5px; }
.res b { color: var(--line); font-weight: 650; }

/* bars */
.bar { position: fixed; left: 0; right: 0; z-index: 10; transition: opacity .5s; }
body.idle .bar, body.idle .turn { opacity: 0; }
.bar.top { top: 0; height: 62px; padding: env(safe-area-inset-top) 18px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(rgba(16, 17, 20, .6), rgba(16, 17, 20, 0)); }
.brand h1 { display: contents; margin: 0; font: inherit; }
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.mark { font: 400 23px/1 var(--display); letter-spacing: .025em; color: var(--white); text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.mark:hover { color: var(--line); }
.ed { color: var(--concrete); font-size: 13px; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 2px; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 9px 10px; background: none; border: 0; border-radius: 6px; color: var(--white);
  font: 500 14px/1 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.act[hidden] { display: none; }
.act svg { width: 17px; height: 17px; flex: none; }
.act:hover { color: var(--line); }
.act:disabled { opacity: .3; cursor: default; }

.bar.bottom { bottom: 0; height: 92px; padding: 0 22px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(260px, 720px) minmax(150px, 1fr); align-items: center; gap: 22px;
  background: linear-gradient(rgba(16, 17, 20, 0), rgba(16, 17, 20, .66)); }
.where { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.where .pg { font: 400 25px/1 var(--display); letter-spacing: .02em; }
.where .ttl { font-size: 13px; color: var(--concrete); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.on-cover .where .ttl { white-space: normal; max-width: 30ch; }
.zoom { justify-self: end; display: flex; gap: 2px; }
.ruler { position: relative; height: 48px; cursor: pointer; touch-action: none; }
.ticks { position: absolute; inset: 0; }
.ruler .tk { position: absolute; bottom: 19px; width: 1px; height: 8px; background: rgba(236, 234, 228, .3); transform: translateX(-.5px); }
.ruler .tk.major { height: 14px; background: rgba(236, 234, 228, .65); }
.ruler .n { position: absolute; bottom: 1px; transform: translateX(-50%); font: 600 10.5px/1 var(--ui); color: var(--concrete); }
.ruler .live { position: absolute; bottom: 31px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--line); }
.ruler .cur { position: absolute; bottom: 16px; height: 20px; transform: translateX(-50%); border: 2px solid var(--line); border-radius: 3px; transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s; pointer-events: none; }
.peek { position: absolute; bottom: 54px; transform: translateX(-50%); width: 116px; padding: 7px; background: #111214; border-radius: 7px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55); pointer-events: none; }
.peek .im { background-repeat: no-repeat; border-radius: 2px; }
.peek span { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.3; }

.turn { position: fixed; top: 50%; z-index: 6; width: 52px; height: 104px; margin-top: -52px; padding: 0 12px; background: none; border: 0; color: var(--white);
  opacity: .62; cursor: pointer; transition: opacity .3s, color .2s; }
.turn svg { display: block; width: 100%; height: 100%; }
.turn.prev { left: 10px; }
.turn.next { right: 10px; }
.turn:hover { opacity: 1; color: var(--line); }
.turn:disabled { opacity: .12; cursor: default; color: var(--white); }

/* find a name */
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; width: min(410px, 100vw); display: flex; flex-direction: column;
  background: var(--panel); box-shadow: -24px 0 70px rgba(0, 0, 0, .55); transform: translateX(102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.panel.open { transform: none; }
.find-head { display: flex; gap: 8px; align-items: center; padding: calc(16px + env(safe-area-inset-top)) 14px 10px 18px; }
.find-head input { flex: 1; min-width: 0; padding: 12px 13px; border: 1px solid #34363b; border-radius: 7px; background: #1d1f23; font-size: 17px; font-weight: 500; }
.find-head input:focus { border-color: var(--line); outline: none; }
.find-note { margin: 0; padding: 0 18px 8px; color: var(--concrete); font-size: 13px; }
.find-list { overflow: auto; padding: 2px 8px 28px; }
.hit { display: grid; grid-template-columns: 54px 1fr; gap: 13px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; text-align: left; cursor: pointer; }
.hit:hover, .hit:focus-visible { background: #1e2024; }
.hit .th { border-radius: 2px; background-repeat: no-repeat; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.hit .tx { display: flex; flex-direction: column; min-width: 0; }
.hit .pgn { font: 400 17px/1.1 var(--display); letter-spacing: .02em; }
.hit .t { color: var(--concrete); font-size: 12.5px; margin-top: 1px; }
.hit .sn { margin-top: 5px; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
mark { background: none; color: var(--line); font-weight: 650; }

/* all pages */
.sheet { position: fixed; inset: 0; z-index: 20; overflow: auto; background: rgba(17, 18, 21, .975); opacity: 0; transition: opacity .25s; }
.sheet.open { opacity: 1; }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding: calc(18px + env(safe-area-inset-top)) 28px 14px; background: linear-gradient(rgba(17, 18, 21, 1) 70%, rgba(17, 18, 21, 0)); }
.sheet-head h2 { margin: 0; font: 400 28px/1 var(--display); letter-spacing: .02em; }
.sheet-head p { margin: 0; color: var(--concrete); font-size: 13.5px; }
.sheet-head .close { margin-left: auto; }
.sheet-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 30px 20px; padding: 10px 28px 60px; }
.sp { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 8px 4px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: center; }
.sp:hover, .sp:focus-visible { background: #1c1e22; }
.sp.here { box-shadow: inset 0 0 0 2px var(--line); }
.sp .pp { display: flex; }
.sp .th { position: relative; background-repeat: no-repeat; box-shadow: 0 8px 16px rgba(0, 0, 0, .45); }
.sp .th.lv::after { content: ''; position: absolute; right: -7px; top: 14px; width: 8px; height: 20px; background: var(--line); border-radius: 0 3px 3px 0; }
.sp .cap { display: flex; flex-direction: column; gap: 3px; }
.sp .cap b { font: 400 15px/1 var(--display); letter-spacing: .03em; font-weight: 400; }
.sp .ti { font-size: 12px; line-height: 1.3; color: var(--concrete); max-width: 20ch; }

.toast { position: fixed; left: 50%; bottom: 108px; z-index: 30; transform: translateX(-50%); padding: 10px 15px; border-radius: 7px;
  background: var(--white); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.nojs { position: fixed; inset: auto 20px 40%; text-align: center; }
.nojs a { color: var(--line); }

/* one page at a time: phones and narrow windows */
body[data-mode="single"] .turn { display: none; }
body[data-mode="single"] .bar.bottom { grid-template-columns: 1fr auto; grid-template-rows: auto auto; height: 96px; gap: 4px 12px; padding: 6px 14px calc(6px + env(safe-area-inset-bottom)); }
body[data-mode="single"] .where { flex-direction: row; align-items: baseline; gap: 10px; }
body[data-mode="single"] .where .pg { font-size: 20px; }
body[data-mode="single"] .ruler { grid-column: 1 / -1; grid-row: 2; height: 44px; }
body[data-mode="single"] .zoom { display: none; }
@media (max-width: 719px) {
  .bar.top { height: 54px; padding-left: 14px; padding-right: 6px; }
  .mark { font-size: 20px; }
  .ed { display: none; }
  .act span { display: none; }
  .act { padding: 10px 9px; }
  .act svg { width: 20px; height: 20px; }
  .sheet-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 10px; padding: 6px 12px 60px; }
  .sheet-head { padding-left: 16px; padding-right: 10px; }
  .sheet-head p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
body[data-mode="single"].on-cover .where .ttl { white-space: nowrap; max-width: none; }

/* ---------- more living pages ---------- */
@font-face { font-family: 'Podkova'; font-weight: 700; src: url(/site/roadclosed/fonts/podkova-700-latin.woff2) format('woff2'); font-display: swap; }
.lv-cv { overflow: hidden; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.lv-cv canvas { display: block; width: 100%; height: 100%; }
.lv-embers { pointer-events: none; }

/* the letter is signed: her own pixels revealed behind a pen point */
.lv-ink { clip-path: inset(0 100% 0 0); transition: clip-path var(--dur) cubic-bezier(.42, .08, .5, .96) var(--delay); }
.lv-ink.go { clip-path: inset(0 0 0 0); }
.lv-nib { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #ffe3a0; opacity: 0;
  box-shadow: 0 0 7px 2px rgba(255, 205, 110, .85); transition: left var(--dur) cubic-bezier(.42, .08, .5, .96) var(--delay), opacity .2s var(--delay); }
.lv-nib.go { left: var(--to) !important; opacity: 1; animation: nib-out .3s calc(var(--delay) + var(--dur)) forwards; }
@keyframes nib-out { to { opacity: 0; } }

/* the tower beacon */
.lv-beacon { width: 0; height: 0; }
.lv-beacon i { position: absolute; border-radius: 50%; transition: opacity .04s, background .04s, box-shadow .04s; }
.lv-beacon .halo { width: 46px; height: 46px; left: -23px; top: -23px; background: radial-gradient(rgba(255, 46, 30, .62), rgba(255, 46, 30, 0) 68%); opacity: 0; }
.lv-beacon .core { width: 6px; height: 6px; left: -3px; top: -3px; background: #b7201a; opacity: .7; }
.lv-beacon.on .halo { opacity: 1; }
.lv-beacon.on .core { opacity: 1; background: #ffd9cf; box-shadow: 0 0 8px 3px rgba(255, 52, 32, .95); }

/* night over Great Basin */
.lv-night { background: linear-gradient(180deg, rgba(5, 8, 26, .9), rgba(9, 13, 34, .8) 30%, rgba(10, 12, 26, .58) 62%, rgba(10, 12, 24, .5)); opacity: 0; transition: opacity 3.4s ease-in-out;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.lv-night.on { opacity: 1; }

/* the viewfinder card */
.card.vf-card { width: min(560px, calc(100vw - 24px)); }
.vf { position: relative; width: 100%; margin: 4px 0 12px; overflow: hidden; border-radius: 6px; background: #000; touch-action: none; cursor: crosshair; }
.vf img, .vf canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vf img { object-fit: cover; }
.vf::after { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.vf.flash::after { animation: vf-flash .5s ease-out; }
@keyframes vf-flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.vf-c { position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .85); }
.vf-c.tl { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.vf-c.tr { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.vf-c.bl { left: 8px; bottom: 8px; border-right: 0; border-top: 0; }
.vf-c.br { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.vf-af { position: absolute; width: 30px; height: 22px; margin: -11px 0 0 -15px; border: 1.5px solid var(--line); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.tab-cal { height: 28px; margin-top: -14px; font-size: 12.5px; }

/* Hold 110 */
.card .seg { display: inline-flex; padding: 3px; margin: 2px 0 8px; border: 1px solid #34363b; border-radius: 999px; }
.card .seg button { padding: 7px 12px; border: 0; border-radius: 999px; background: none; color: var(--concrete); font: 600 12.5px/1 var(--ui); cursor: pointer; }
.card .seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.gauge { display: block; width: min(270px, 66vw); margin: 0 auto; }
.sp-num { font: 600 13px var(--ui); fill: #cfcdc7; }
.sp-v { font: 400 40px var(--display); fill: var(--white); }
.sp-u { font: 700 9px var(--ui); letter-spacing: .2em; fill: var(--concrete); }
.sp-nav { font: 700 10.5px var(--ui); letter-spacing: .12em; fill: var(--line); }
.track { position: relative; height: 26px; margin: 8px 6px 4px; }
.track .ln { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: #3a3c41; }
.track .flag { position: absolute; right: -2px; top: 4px; width: 4px; height: 18px; background: repeating-linear-gradient(#fff 0 4px, #111 4px 8px); }
.track i { position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; }
.track .you { background: var(--line); box-shadow: 0 0 0 3px rgba(242, 194, 48, .25); }
.track .ghost { border: 2px dashed var(--concrete); }
.sp-stats { display: flex; justify-content: space-between; gap: 10px; margin: 6px 2px 10px; font-size: 12px; color: var(--concrete); }
.sp-stats span { display: flex; flex-direction: column; gap: 2px; }
.sp-stats b { font: 400 19px/1 var(--display); color: var(--white); letter-spacing: .02em; }
.throttle { display: block; width: 100%; padding: 15px; border: 0; border-radius: 9px; background: var(--line); color: var(--ink); font: 700 15px var(--ui);
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.throttle.on { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18); background: #ffd34a; }

.cal-list { list-style: none; margin: 4px 0 0; padding: 0; }
.cal-list li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #26282d; }
.cal-n { font: 400 24px/1 var(--display); color: var(--line); text-align: right; }
.cal-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-t b { font-weight: 600; font-size: 14.5px; }
.cal-t small { color: var(--concrete); font-size: 12.5px; }
.cal-save { border: 1px solid #3a3c42; padding: 8px 12px; }

/* gold catches the light */
.lv-shine { background: linear-gradient(100deg, transparent 0 43%, rgba(255, 250, 228, .9) 50%, transparent 57% 100%) no-repeat; background-size: 300% 100%;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mix-blend-mode: screen; animation: shine 6s 1s infinite; background-position: 100% 0; }
@keyframes shine { 0% { background-position: 100% 0; } 26% { background-position: 0% 0; } 100% { background-position: 0% 0; } }
/* dashcam */
.lv-scan { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; pointer-events: none; }
.lv-osd { display: flex; justify-content: space-between; font: 600 13px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: #fff; letter-spacing: .06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8); pointer-events: none; }
.lv-osd .rec { display: inline-flex; align-items: center; gap: 5px; }
.lv-osd .rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 6px #ff2d2d; animation: rec 1s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0; } }
/* a chart draws in */
.lv-reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.25, .7, .25, 1); }
.lv-reveal.go { clip-path: inset(0 0 0 0); }
/* ride along */
.trip-map { display: block; width: 100%; height: auto; margin: 2px 0 6px; background: #101114; border-radius: 6px; }
.trip-map .grat line { stroke: #24262b; stroke-width: 1; }
.trip-map .grat text { fill: #4a4d54; font: 600 8px var(--ui); }
.trip-ghost { fill: none; stroke: #2d3036; stroke-width: 2; stroke-dasharray: 3 4; }
.trip-line { fill: none; stroke: var(--line); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.trip-dot { fill: #2d3036; transition: fill .3s; }
.trip-dot.on { fill: var(--line); }
.trip-now { fill: var(--white); font: 600 11px var(--ui); paint-order: stroke; stroke: #101114; stroke-width: 3px; }
.trip-odo { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 2px 8px; color: var(--concrete); font-size: 13px; }
.trip-odo b { font: 400 26px/1 var(--display); color: var(--white); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.trip-stops { display: flex; flex-wrap: wrap; gap: 5px 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.trip-stops li { padding: 4px 8px; border-radius: 999px; background: #1d1f23; color: #6b6e75; font-size: 12px; transition: background .3s, color .3s; }
.trip-stops li.on { background: rgba(242, 194, 48, .16); color: var(--white); }

/* Racing in Heaven: light passing over each name */
.lv-mem-halo { opacity: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 196, 120, .34), rgba(255, 196, 120, .12) 55%, rgba(255, 196, 120, 0)) no-repeat;
  background-size: 44% 150%; background-position: -30% 50%; animation-name: mem-halo; animation-timing-function: cubic-bezier(.45, .05, .55, .95); animation-fill-mode: both; }
@keyframes mem-halo { 0% { opacity: 0; background-position: -30% 50%; } 18% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; background-position: 130% 50%; } }
.lv-mem-gold { opacity: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background: linear-gradient(90deg, rgba(176, 122, 34, 0), #b07a22 42%, #c8963a 50%, #b07a22 58%, rgba(176, 122, 34, 0)) no-repeat; background-size: 70% 100%; background-position: -60% 0;
  animation-name: mem-gold; animation-timing-function: cubic-bezier(.45, .05, .55, .95); animation-fill-mode: both; }
@keyframes mem-gold { 0% { opacity: 0; background-position: -60% 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 160% 0; } }

/* p78 Women behind the wheel: her bars grow back in from her own picture */
.lv-chart { left: 0; top: 0; transform-origin: 0 0; }
.lv-chart > div { position: absolute; }
.lv-chart > .b { clip-path: inset(0 100% 0 0); }
.lv-chart > .v { opacity: 0; transform: scale(.55); transition: opacity .25s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.lv-chart > .v.in { opacity: 1; transform: none; }

/* p79 Women of Big Bend: the stat strip lights its rows; every name opens her record on RaceCarly */
.lv-frow { pointer-events: none; border-radius: 2px; transition: background .25s, box-shadow .25s; }
.lv-frow.on { background: rgba(214, 120, 255, .2); box-shadow: inset 0 0 0 1.2px #d678ff; }
.lv-frow.dim { background: rgba(6, 4, 10, .6); }
.lv-fstat, .lv-fname { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; pointer-events: auto; border-radius: 3px; }
.lv-fname:hover, .lv-fname:focus-visible { background: rgba(242, 194, 48, .14); box-shadow: inset 0 -1.5px 0 var(--line); outline: none; }
.lv-fstat:hover { background: rgba(214, 120, 255, .08); }
.lv-fstat:focus-visible { outline: 2px solid var(--line); outline-offset: 1px; }
.lv-fstat.on { box-shadow: inset 0 0 0 2px #d678ff, 0 0 16px rgba(214, 120, 255, .45); }
.lv-fstat.hint:not(.on) { animation: lv-fhint 1.2s ease-out 1; }
@keyframes lv-fhint { 0% { box-shadow: inset 0 0 0 0 rgba(214, 120, 255, 0); }
  30% { box-shadow: inset 0 0 0 2px rgba(214, 120, 255, .9), 0 0 14px rgba(214, 120, 255, .4); } 100% { box-shadow: inset 0 0 0 2px rgba(214, 120, 255, 0); } }
.rc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 10px; }
.rc-stats div { background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 9px 10px 8px; }
.rc-stats dt { color: var(--concrete); font-size: 12px; }
.rc-stats dd { margin: 3px 0 0; font: 400 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.rc-split, .rc-none { margin: 0 0 12px; color: var(--concrete); font-size: 13.5px; }
.rc-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: var(--line); color: var(--ink);
  font: 600 14px var(--ui); text-decoration: none; }
.rc-link:hover { background: #ffd34a; }
.rc-link svg { width: 16px; height: 16px; }
.wsec { display: block; width: 100%; height: auto; }
.wsec .nm { fill: var(--white); font: 500 12.5px var(--ui); }
.wsec .val { fill: var(--white); font: 500 12px var(--ui); font-variant-numeric: tabular-nums; }
.wsec .ax { fill: var(--concrete); font: 500 11px var(--ui); }
.wsec .mid { stroke: var(--concrete); stroke-width: 1; }
.wsec .tk { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.wsec .trk { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.wsec .dot { fill: var(--line); stroke: var(--panel); stroke-width: 2; transition: r .15s; }
.wsec .wrow:hover .dot { r: 7.5px; }
.wsec-note { margin: 10px 0 0; color: var(--concrete); font-size: 13px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .lv-fstat.hint { animation: none; } }
