/* RALLY WORKS: the game's front end as a web page. Colors and proportions follow ui_shell.gd. */
:root {
  --cream: #efe6d2; --paper2: #e3d7bd; --ink: #16131c; --ink-soft: rgba(22, 19, 28, .62);
  --orange: #e8622c; --red: #c8322a; --amber: #f2b630; --cyan: #5fd3c8;
  --vfd-bg: #1a1410; --vfd-on: #ffb43a; --floor: #2c2538;
  --disp: 'Michroma', 'Eurostile', 'Arial Black', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --pw: clamp(360px, 34vw, 500px);
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 15px/1.65 var(--mono); overflow-x: hidden; }
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--orange); }
::selection { background: var(--orange); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; letter-spacing: .2em; font-size: 12px; border-left: 5px solid var(--orange); }
.skip:focus { left: 8px; }

/* the three sunset stripes */
.stripes { display: grid; gap: 3px; }
.stripes i { display: block; height: 5px; background: var(--orange); }
.stripes i:nth-child(2) { background: var(--red); }
.stripes i:nth-child(3) { background: var(--amber); }
.stripes.thin { gap: 2px; }
.stripes.thin i { height: 3px; }

/* ------------------------------------------------------------ loading: the logo draws on, then the stripes wipe */
#loader, #wipe { display: none; }
.loading #loader { display: block; position: fixed; inset: 0; z-index: 100; background: var(--ink); }
.loading body { overflow: hidden; }
#loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-line { position: absolute; left: calc(28px + var(--sl)); right: calc(28px + var(--sr)); bottom: calc(26px + var(--sb)); display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .28em; color: rgba(239, 230, 210, .55); }
.loader-line span:last-child { color: var(--amber); animation: blink 1.1s steps(1) infinite; }
.wiping #wipe { display: block; position: fixed; inset: 0; z-index: 101; pointer-events: none; overflow: hidden; }
#wipe i { position: absolute; left: 0; width: 100%; height: 33.6%; background: var(--orange); transform: translateX(-101%); will-change: transform; }
#wipe i:nth-child(1) { top: 0; }
#wipe i:nth-child(2) { top: 33.3%; background: var(--red); }
#wipe i:nth-child(3) { top: 66.6%; height: 33.5%; background: var(--amber); }
@keyframes blink { 0%, 62% { opacity: 1; } 62.01%, 100% { opacity: 0; } }

/* ------------------------------------------------------------ the shell: paper column left, the world right */
.shell { display: grid; grid-template-columns: var(--pw) minmax(0, 1fr); min-height: 100vh; }
.paper { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--cream); color: var(--ink); z-index: 5;
  border-right: 3px solid var(--ink); }
/* the printed edge: three stripes just off the paper */
.paper::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(100% + 5px); width: 18px; pointer-events: none;
  background: linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 7px, var(--red) 7px 11px, transparent 11px 14px, var(--amber) 14px 18px); opacity: .92; }
.paper-in { height: 100%; display: flex; flex-direction: column; padding: calc(34px + var(--st)) 44px calc(26px + var(--sb)) calc(44px + var(--sl)); overflow: hidden; }
.card-line { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .28em; color: var(--ink-soft); margin-bottom: 10px; }
h1 { font: 400 calc((var(--pw) - 88px) * .0835)/1.1 var(--disp); letter-spacing: .1em; margin: 26px -20px 0 0; white-space: nowrap; }
.sub { font-size: 12px; font-weight: 500; letter-spacing: .26em; color: var(--ink-soft); margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-soft); }

nav { position: relative; margin-top: 22px; }
.rows a { position: relative; display: flex; align-items: center; height: 44px; margin: 0 -12px; padding: 0 14px 0 16px; text-decoration: none; color: var(--ink); z-index: 1; transition: color .12s; }
.rows .n { width: 36px; font-size: 11px; letter-spacing: .1em; opacity: .6; }
.rows .l { font: 400 15px/1 var(--disp); letter-spacing: .14em; }
.rows a[aria-current] { color: var(--cream); }
.rows a:hover:not([aria-current]) .l { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--orange); }
/* the highlight bar glides to the selected row */
.bar { position: absolute; left: -12px; right: -12px; top: 2px; height: 40px; background: var(--ink); border-left: 5px solid var(--orange); border-right: 5px solid var(--amber); transition: transform .16s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
/* rows slide in one after another when the page opens */
.rows li { animation: row-in .26s cubic-bezier(.2, .8, .2, 1) both; }
.rows li:nth-child(2) { animation-delay: .05s; } .rows li:nth-child(3) { animation-delay: .1s; }
.rows li:nth-child(4) { animation-delay: .15s; } .rows li:nth-child(5) { animation-delay: .2s; }
.loading .rows li { animation-play-state: paused; }
@keyframes row-in { from { opacity: 0; transform: translateX(-40px); } }
@media (prefers-reduced-motion: reduce) { .rows li { animation: none; } }

.paper-foot { margin-top: auto; }
.sunset { display: block; width: 172px; margin: 0 auto 22px; overflow: visible; }
.sunset .sweep { transform-origin: 110px 74px; animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(180deg); } }
.est { font-size: 11px; letter-spacing: .28em; color: var(--ink-soft); margin-bottom: 10px; }
.hints { font-size: 10px; letter-spacing: .14em; color: var(--ink-soft); margin-top: 14px; min-height: 16px; white-space: pre-wrap; }
@media (max-height: 640px) and (min-width: 861px) { .sunset { display: none; } }
@media (prefers-reduced-motion: reduce) { .sunset .sweep { animation: none; } }

/* an amber vacuum-fluorescent readout: dark glass, glowing text, the dot grid in front */
.vfd { position: relative; background: var(--vfd-bg); border: 2px solid var(--ink); min-height: 46px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; text-align: center; overflow: hidden; }
.vfd span { font: 500 clamp(11px, .92vw, 13px)/1.35 var(--mono); letter-spacing: .14em; color: var(--vfd-on); text-shadow: 0 0 6px rgba(255, 180, 58, .55), 0 1px 0 rgba(255, 180, 58, .35); white-space: pre-wrap; }
.vfd::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(26, 20, 16, .55) 0 1px, transparent 1px 2px), repeating-linear-gradient(0deg, rgba(26, 20, 16, .55) 0 1px, transparent 1px 2px); }
.vfd.blink span { animation: blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .vfd.blink span, .loader-line span:last-child { animation: none; } }
.vfd.big { min-height: 58px; padding: 10px 28px; border-color: #000; box-shadow: 0 0 0 1px rgba(239, 230, 210, .28); }
.vfd.big span { font-size: clamp(16px, 1.7vw, 22px); letter-spacing: .34em; margin-right: -.34em; }

/* ------------------------------------------------------------ hero: the welcome screen */
main { min-width: 0; padding-left: 23px; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; margin-left: -23px; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-tl { position: absolute; left: 62px; top: calc(34px + var(--st)); width: 200px; font-size: 11px; letter-spacing: .12em; color: rgba(239, 230, 210, .55); white-space: nowrap; }
.hero-tl .stripes { margin-top: 10px; }
#hero-logo { position: absolute; left: 50%; top: 8%; width: min(74%, 520px); height: 35%; transform: translateX(-50%); }
.hero-car { position: absolute; left: 62px; bottom: calc(34px + var(--sb)); }
.car-name { font-size: 14px; letter-spacing: .12em; }
.car-spec { font-size: 11px; letter-spacing: .1em; color: rgba(239, 230, 210, .55); margin-top: 4px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: calc(30px + var(--sb)); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-left: 23px; }
.hero-note { font-size: 10px; letter-spacing: .24em; color: rgba(239, 230, 210, .5); }

/* ------------------------------------------------------------ sections */
.panel { position: relative; padding: 84px clamp(28px, 5vw, 76px) 72px clamp(28px, 4.4vw, 64px); border-top: 1px solid rgba(239, 230, 210, .14); max-width: 1180px; }
.panel::before, .panel::after { content: ''; position: absolute; top: 26px; width: 12px; height: 12px; border-top: 1px solid rgba(239, 230, 210, .4); }
.panel::before { left: clamp(14px, 2.4vw, 34px); border-left: 1px solid rgba(239, 230, 210, .4); }
.panel::after { right: clamp(14px, 2.4vw, 34px); border-right: 1px solid rgba(239, 230, 210, .4); }
.head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 18px; margin-bottom: 34px; }
.head .num { font-size: 12px; letter-spacing: .14em; color: var(--amber); }
.head h2 { font: 400 clamp(22px, 2.5vw, 32px)/1.1 var(--disp); letter-spacing: .14em; }
.head .stripes { grid-column: 1 / -1; width: min(240px, 60%); margin-top: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.copy p { color: rgba(239, 230, 210, .8); max-width: 58ch; }
.copy p + p { margin-top: 1.05em; }
.copy .lede, p.copy.one { color: var(--cream); font-size: 17px; line-height: 1.55; }
p.copy.one { margin-bottom: 30px; max-width: 58ch; }

/* the spec sheet: the garage card */
.sheet { background: #1b1722; border: 2px solid rgba(239, 230, 210, .6); padding: 8px 20px 10px; position: relative; }
.sheet::before, .sheet::after, .frame::before, .frame::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--orange); }
.sheet::before { left: -5px; top: -5px; box-shadow: 0 0 0 0 var(--orange); }
.sheet::after { right: -5px; bottom: -5px; }
.sheet div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 11px 0 9px; border-bottom: 2px dotted rgba(242, 182, 48, .32); }
.sheet div:last-child { border-bottom: 0; }
.sheet dt { font-size: 10px; letter-spacing: .24em; color: rgba(239, 230, 210, .55); flex: none; }
.sheet dd { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-align: right; color: var(--cream); }
.sheet dd.on { color: var(--vfd-on); text-shadow: 0 0 6px rgba(255, 180, 58, .5); }

.ticks { margin-top: 26px; border-top: 1px solid rgba(239, 230, 210, .18); }
.ticks li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(239, 230, 210, .18); font-size: 13px; color: rgba(239, 230, 210, .75); }
.ticks b { font: 400 11px var(--disp); letter-spacing: .16em; color: var(--amber); width: 96px; flex: none; }

/* the stage map window */
.map, .reel { position: relative; border: 2px solid rgba(239, 230, 210, .6); background: #1b1722; }
.map::before, .map::after, .reel::before, .reel::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--orange); z-index: 2; }
.map::before, .reel::before { left: -5px; top: -5px; } .map::after, .reel::after { right: -5px; bottom: -5px; }
.map canvas { width: 100%; aspect-ratio: 10 / 7.6; }
.map figcaption, .reel figcaption { position: absolute; left: 14px; top: 12px; display: grid; gap: 2px; font-size: 9px; letter-spacing: .22em; color: rgba(239, 230, 210, .5); z-index: 2; }
figcaption .a { color: var(--amber); font-size: 10px; letter-spacing: .3em; }
.map-name { position: absolute; left: 0; top: calc(100% + 12px); font-size: 10px; letter-spacing: .14em; color: rgba(239, 230, 210, .55); }
.status { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 54px; }
.status .vfd { min-width: 300px; }
.status p { color: rgba(239, 230, 210, .8); }

/* screenshots */
.shots { display: grid; gap: 16px; }
.shots.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots.tall { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.shots a { display: block; text-decoration: none; border: 2px solid rgba(239, 230, 210, .28); background: #1b1722; transition: border-color .12s; }
.shots a:hover, .shots a:focus-visible { border-color: var(--amber); }
.shots img { width: 100%; height: auto; object-fit: cover; image-rendering: auto; }
.shots.wide img { aspect-ratio: 16 / 9; } .shots.tall img { aspect-ratio: 9 / 16; }
.shots span { display: flex; gap: 12px; padding: 9px 12px 8px; font-size: 10px; letter-spacing: .14em; color: rgba(239, 230, 210, .78); border-top: 2px solid rgba(239, 230, 210, .28); white-space: pre-wrap; }
.shots span i { font-style: normal; color: var(--amber); }

/* dev diary */
.cols.diary { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.reel video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.reel figcaption { background: rgba(22, 19, 28, .78); padding: 6px 9px; left: 8px; top: 8px; }
.go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }
.key { display: inline-flex; align-items: center; height: 40px; padding: 0 18px 0 16px; background: var(--cream); color: var(--ink); border: 0; border-left: 5px solid var(--orange); font: 500 12px var(--mono); letter-spacing: .2em; text-decoration: none; white-space: pre; cursor: pointer; }
.key:hover { background: var(--amber); }

/* follow: menu rows with dot-matrix tags */
.links { border-top: 1px solid rgba(239, 230, 210, .2); max-width: 760px; }
.links a { display: grid; grid-template-columns: 74px auto 1fr; align-items: center; column-gap: 20px; min-height: 76px; padding: 10px 16px 10px 12px; text-decoration: none; border-bottom: 1px solid rgba(239, 230, 210, .2); border-left: 5px solid transparent; border-right: 5px solid transparent; }
.links .t { font: 400 16px var(--disp); letter-spacing: .14em; }
.links .h { justify-self: end; font-size: 13px; letter-spacing: .06em; color: var(--amber); overflow-wrap: anywhere; text-align: right; }
.links a:hover, .links a:focus-visible { background: var(--cream); color: var(--ink); border-left-color: var(--orange); border-right-color: var(--amber); }
.links a:hover .h, .links a:focus-visible .h { color: var(--ink); }
.dm { display: inline-block; background: var(--vfd-bg); border: 2px solid #000; box-shadow: 0 0 0 1px rgba(239, 230, 210, .25); width: 74px; height: 50px; line-height: 0; }
.dm svg { width: 100%; height: 100%; display: block; }
.dm.sm { width: 34px; height: 24px; vertical-align: middle; margin-right: 10px; box-shadow: none; }

/* footer */
.foot { margin-top: 30px; margin-left: -23px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; padding: 26px clamp(28px, 5vw, 76px) calc(30px + var(--sb)) calc(clamp(28px, 4.4vw, 64px) + 23px); font-size: 11px; letter-spacing: .16em; color: rgba(239, 230, 210, .7); }
.foot ul { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.foot a:hover { color: var(--amber); }
.foot .c { font: 400 12px var(--disp); letter-spacing: .16em; color: var(--cream); }
.foot .end { margin-left: auto; white-space: pre; }

/* viewer */
dialog { border: 2px solid var(--cream); background: var(--ink); color: var(--cream); padding: 0; max-width: min(94vw, 1320px); max-height: 94vh; }
dialog::backdrop { background: rgba(10, 8, 14, .88); }
dialog img { max-width: 100%; max-height: calc(94vh - 64px); width: auto; height: auto; margin: 0 auto; }
dialog .cap { position: absolute; left: 14px; bottom: 18px; font-size: 10px; letter-spacing: .14em; white-space: pre-wrap; max-width: calc(100% - 150px); }
dialog form { display: flex; justify-content: flex-end; padding: 10px; border-top: 2px solid rgba(239, 230, 210, .28); }

/* ------------------------------------------------------------ narrower desktops */
@media (max-width: 1180px) {
  .cols { grid-template-columns: 1fr; }
  .cols.diary { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .shots.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { max-width: 520px; margin-bottom: 26px; }
  .status { grid-template-columns: 1fr; gap: 14px; }
  .status .vfd { min-width: 0; max-width: 360px; }
}

/* ------------------------------------------------------------ phone: the paper stacks above the hero */
@media (max-width: 860px) {
  .shell { display: block; }
  .paper { position: relative; height: auto; border-right: 0; border-bottom: 3px solid var(--ink); }
  .paper::after { top: calc(100% + 5px); bottom: auto; left: 0; width: 100%; height: 18px;
    background: linear-gradient(180deg, var(--orange) 0 4px, transparent 4px 7px, var(--red) 7px 11px, transparent 11px 14px, var(--amber) 14px 18px); }
  .paper-in { padding: calc(22px + var(--st)) calc(22px + var(--sr)) 22px calc(22px + var(--sl)); overflow: visible; }
  h1 { font-size: clamp(22px, 7.1vw, 40px); margin: 20px 0 0; letter-spacing: .08em; }
  .sub { font-size: 10px; letter-spacing: .2em; margin-top: 12px; padding-bottom: 12px; }
  nav { margin-top: 14px; }
  .rows a { height: 44px; margin: 0 -8px; }
  .bar { left: -8px; right: -8px; }
  .sunset, .est { display: none; }
  .paper-foot { margin-top: 14px; }
  .vfd span { font-size: 11px; letter-spacing: .16em; }
  .hints { margin-top: 10px; }
  main { padding-left: 0; padding-top: 23px; }
  .hero { margin-left: 0; height: 84svh; min-height: 480px; }
  .hero-tl { display: none; }
  #hero-logo { top: 6%; width: 88%; height: 36%; }
  .hero-car { left: 0; right: 0; bottom: 112px; text-align: center; }
  .hero-foot { padding-left: 0; }
  .vfd.big span { font-size: 17px; }
  .panel { padding: 64px calc(22px + var(--sr)) 54px calc(22px + var(--sl)); }
  .panel::before { left: 10px; } .panel::after { right: 10px; }
  .panel::before, .panel::after { top: 20px; }
  .head { margin-bottom: 26px; }
  .copy .lede, p.copy.one { font-size: 16px; }
  .cols.diary { grid-template-columns: 1fr; }
  .reel { max-width: 300px; }
  .shots.wide { grid-template-columns: 1fr; }
  .shots.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { gap: 14px; }
  .links a { grid-template-columns: 60px 1fr; row-gap: 2px; padding: 12px 8px; }
  .links .dm { grid-row: span 2; width: 60px; height: 42px; }
  .links .t { font-size: 14px; }
  .links .h { justify-self: start; text-align: left; font-size: 12px; }
  .foot { margin-left: 0; }
  .foot-in { padding: 24px calc(22px + var(--sr)) calc(28px + var(--sb)) calc(22px + var(--sl)); flex-direction: column; align-items: flex-start; }
  .foot ul { flex-direction: column; gap: 6px; }
  .foot .end { margin-left: 0; }
  .sheet dd { font-size: 11px; }
}

/* ------------------------------------------------------------ locked header (phones): the paper column scrolls away, so a
   slim paper strip stays at the top: the name, the current section, and a menu button whose three lines are the
   sunset stripes; it drops the numbered rows down like the game menu (desktop keeps its sticky column) */
.minibar { display: none; }
@media (max-width: 860px) {
  .minibar { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--cream); color: var(--ink);
    padding-top: var(--st); transform: translateY(-110%); transition: transform .14s ease-out; box-shadow: 0 2px 0 var(--ink); }
  .minibar.show, .minibar.open { transform: none; }
  .mini-in { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 calc(10px + var(--sr)) 0 calc(16px + var(--sl)); }
  .mini-name { font-family: Michroma, sans-serif; font-size: 11px; letter-spacing: .12em; color: var(--ink); text-decoration: none; white-space: nowrap; }
  .mini-cur { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .14em; opacity: .6; white-space: nowrap; }
  .burger { width: 44px; height: 44px; display: grid; align-content: center; gap: 4px; padding: 0 9px; border: 0; background: transparent; cursor: pointer; }
  .burger i { display: block; height: 4px; }
  .burger i:nth-child(1) { background: var(--orange); } .burger i:nth-child(2) { background: var(--red); } .burger i:nth-child(3) { background: var(--amber); }
  .burger i { transition: transform .18s ease, opacity .18s ease; }
  .minibar.open .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .minibar.open .burger i:nth-child(2) { opacity: 0; }
  .minibar.open .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .burger:focus-visible, .mini-name:focus-visible, .mini-rows a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  .mini-stripes { display: grid; gap: 2px; }
  .mini-stripes i { display: block; height: 3px; }
  .mini-stripes i:nth-child(1) { background: var(--orange); }
  .mini-stripes i:nth-child(2) { background: var(--red); }
  .mini-stripes i:nth-child(3) { background: var(--amber); }
  .mini-menu { background: var(--cream); border-top: 1px solid rgba(22,19,28,.25); padding: 8px calc(16px + var(--sr)) 14px calc(16px + var(--sl)); }
  .mini-menu[hidden] { display: none; }
  .mini-rows { list-style: none; margin: 0; padding: 0; }
  .mini-rows a { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 10px; font-family: Michroma, sans-serif; font-size: 15px;
    letter-spacing: .1em; color: var(--ink); text-decoration: none; border-left: 4px solid transparent; }
  .mini-rows a .n { font-family: "IBM Plex Mono", monospace; font-size: 10px; opacity: .55; letter-spacing: .1em; }
  .mini-rows a[aria-current="true"] { background: var(--ink); color: var(--cream); border-left-color: var(--orange); }
  .mini-rows a[aria-current="true"] .n { color: var(--amber); opacity: 1; }
  main section[id] { scroll-margin-top: calc(54px + var(--st)); }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .minibar, .burger i { transition: none; } }
/* (Sam, 2026-11-13) on a phone the page opens on the logo and the car, with the slim header always on top; the big
   paper menu column is not shown (the header's menu button carries the same five rows) */
@media (max-width: 860px) {
  .paper { display: none; }
  .minibar { transform: none; }
  main { padding-top: calc(53px + var(--st)); }
}
