/* Race Day in Raccoon Creek: a prototype for the Raccoon Racing League community site.
   Small-town race-day print (cream paper, barn red, mustard, country green, sky blue) sitting on the game's own
   charcoal panels, signal red, italic spaced headings and red-dot labels. Mobile first. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/open-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("/fonts/open-sans-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Alfa Slab One"; font-weight: 400; font-display: swap;
  src: url("/fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: italic; font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Caveat Brush"; font-weight: 400; font-display: swap;
  src: url("/fonts/caveat-brush-latin-400-normal.woff2") format("woff2"); }

:root {
  --paper: #f4ecd8; --paper-2: #eadfc4; --paper-3: #dccfae;
  --ink: #1f2023; --char: #1a1b1e; --panel: #232428; --line: #34363b;
  --barn: #a8282a; --signal: #e0453a; --logo: #d9604f;
  --mustard: #e8b93c; --green: #3f6b45; --grass: #86ad6c; --sky: #9ccbe6; --tarmac: #3a3c41;
  --muted: #6d6a60; --muted-d: #a3a6ad;
  --slab: "Alfa Slab One", Rockwell, Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --hand: "Caveat Brush", "Comic Sans MS", cursive;
  --max: 1200px; --bar: 56px; --tab: 66px;
  --checker: conic-gradient(#16171a 25%, #f6f3ea 0 50%, #16171a 0 75%, #f6f3ea 0);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --bunting: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='136' height='30'%3E%3Cpath d='M0 3 Q68 9 136 3' fill='none' stroke='%231f2023' stroke-width='1.5'/%3E%3Cpath d='M2 4h30l-15 24z' fill='%23a8282a'/%3E%3Cpath d='M36 6h30l-15 24z' fill='%23e8b93c'/%3E%3Cpath d='M70 6h30l-15 24z' fill='%233f6b45'/%3E%3Cpath d='M104 4h30l-15 24z' fill='%236aa9cf'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper) var(--noise); color: var(--ink);
  font: 500 16px/1.5 "Open Sans", system-ui, sans-serif; padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.02; }
.slab { font-family: var(--slab); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.h-race { font: italic 800 clamp(1.6rem, 6.4vw, 2.4rem)/1.05 "Open Sans", sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.hand { font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; color: var(--barn); }
.label { display: inline-flex; align-items: center; gap: 8px; font: 700 .7rem/1.2 "Open Sans", sans-serif;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.dark .label, .label.on-dark { color: var(--muted-d); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-family: var(--slab); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 8vw, 3rem); color: var(--ink); }
.sec-head h2 em { font-style: normal; color: var(--barn); }
.more { flex: none; font: italic 700 1.05rem var(--cond); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--barn); padding: 10px 0 2px; border-bottom: 3px solid var(--mustard); }
section { padding: 34px 0; }

/* ---------- buttons: the game's slanted red, plus a print-shop outline ---------- */
.btn { --c: var(--signal); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; background: none; color: #fff; text-decoration: none; isolation: isolate;
  font: italic 700 1.25rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: transform .12s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: skewX(-12deg);
  box-shadow: 4px 4px 0 var(--ink); border: 2px solid var(--ink); }
.btn:active { transform: translate(3px, 3px); }
.btn:active::before { box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { color: var(--ink); --c: var(--paper); }
.btn.mustard { color: var(--ink); --c: var(--mustard); }
.btn.dark { --c: var(--char); }
.btn.wide { width: 100%; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.go { --c: var(--green); }

/* ---------- race-day furniture ---------- */
.checker { height: 12px; background: var(--checker) 0 0 / 12px 12px; }
.kerb { height: 12px; background: repeating-linear-gradient(-60deg, var(--signal) 0 22px, #f6f3ea 22px 44px); }
.tyres { height: 46px; background:
  radial-gradient(circle at 50% 50%, #6a6c70 0 3px, #1b1c1f 4px 9px, #2e3035 10px 11px, #141517 12px 13px, transparent 14px) 0 0 / 30px 26px repeat-x,
  radial-gradient(circle at 50% 50%, #6a6c70 0 3px, #1b1c1f 4px 9px, #2e3035 10px 11px, #141517 12px 13px, transparent 14px) 15px 20px / 30px 26px repeat-x; }
.bales { height: 34px; background:
  repeating-linear-gradient(90deg, transparent 0 24px, #8a5a1e 24px 26px, transparent 26px 56px, #8a5a1e 56px 58px, transparent 58px 82px, var(--paper) 82px 90px),
  repeating-linear-gradient(180deg, #e3b548 0 4px, #d19f35 4px 6px); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.bunting { height: 30px; background: var(--bunting) center top repeat-x; pointer-events: none; }

/* pit board: black board, number chalked on, held out on a pole */
.pitboard { --n: var(--mustard); display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 7px;
  background: #17181b; color: var(--n); border: 2px solid #000; border-radius: 5px; box-shadow: inset 0 0 0 2px #3a3c41, 2px 3px 0 rgba(0,0,0,.35);
  font: 400 1.5rem/1 var(--slab); letter-spacing: .02em; transform: rotate(-4deg); }
.pitboard small { display: block; font: 700 .5rem/1 "Open Sans", sans-serif; letter-spacing: .2em; color: #fff; opacity: .7; margin-bottom: -6px; padding-top: 4px; }
.pitboard.has-small { grid-template-rows: auto 1fr; }
.pitboard.lg { min-width: 74px; height: 74px; font-size: 2.5rem; border-radius: 7px; }
.pitboard.pole::after { content: ""; position: absolute; left: 50%; top: 100%; width: 5px; height: 60px; margin-left: -2px;
  background: linear-gradient(90deg, #8d9197, #d6d9dd 50%, #7c8086); border: 1px solid #000; border-top: 0; z-index: -1; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--char); color: #fff; }
.topbar .in { height: var(--bar); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 40px; height: 40px; object-fit: cover; object-position: 50% 50%; clip-path: inset(12%); transform: scale(1.3); }
.brand b { font: italic 800 .78rem/1.1 "Open Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.brand b span { display: block; font: 400 .95rem/1 var(--hand); letter-spacing: .02em; text-transform: none; color: var(--mustard); margin-top: 2px; }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { font: italic 700 1.1rem var(--cond); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 10px 14px; color: #d8dade; border-bottom: 3px solid transparent; }
.topnav a[aria-current], .topnav a:hover { color: #fff; border-color: var(--signal); }
/* "Play on iOS!": the signal-red slanted race button, top right beside the account ticket. */
.playios { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 2px solid #f1f3f5;
  background: var(--signal); color: #fff; font: italic 700 .95rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer; transform: skewX(-10deg); box-shadow: 3px 3px 0 #000; }
.playios > * { transform: skewX(10deg); }
.playios svg { width: 18px; height: 18px; flex: none; }
.playios .ios { text-transform: none; transform: none; }
.playios:hover { filter: brightness(1.1); }
.playios:active { transform: skewX(-10deg) translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.playios:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
@media (max-width: 420px) { .playios { padding: 0 9px; font-size: .85rem; letter-spacing: .06em; } .playios svg { display: none; } .brand b { display: none; } }
.soon h2 { font: 400 2rem/1 var(--slab); text-transform: uppercase; margin: 4px 0 10px; }
.soon p { margin: 0 0 14px; }
.acct { margin-left: 8px; display: flex; }
.pass { display: inline-flex; align-items: center; height: 38px; padding: 0 14px 0 16px; border: 0; color: var(--ink);
  font: italic 700 1rem var(--cond); letter-spacing: .12em; text-transform: uppercase; background: var(--mustard); text-decoration: none; white-space: nowrap; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; line-height: 38px; display: inline-block;
  /* a ticket: notches bitten out of the short ends */
  -webkit-mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) , radial-gradient(circle 6px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 8px; text-decoration: none;
  font: italic 700 1.1rem var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.back svg { width: 22px; height: 22px; }

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--char); color: #c9ccd1;
  padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 3px solid var(--ink); }
.tabbar::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 6px; background: var(--checker) 0 0 / 6px 6px; }
.tabbar .in { height: var(--tab); display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; max-width: 520px; margin: 0 auto; }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none;
  text-decoration: none; color: inherit; font: 600 .82rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.tabbar svg { width: 25px; height: 25px; }
.tabbar [aria-current] { color: #fff; }
.tabbar [aria-current] svg { color: var(--signal); }
.tabbar .post span.dot { position: relative; z-index: 1; /* sits in front of the checkered strip */ display: grid; place-items: center; width: 54px; height: 54px; margin-top: -24px; border-radius: 50%; background: var(--signal);
  color: #fff; border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 6px 0 rgba(0,0,0,.4); }
.tabbar .post svg { width: 28px; height: 28px; color: #fff; }

/* ---------- swipeable rows ---------- */
.row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 18px; margin: 0 -16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-left: 16px; }
.row::-webkit-scrollbar { display: none; }
.row > * { flex: none; scroll-snap-align: start; }
.swipe-hint { font: 400 1.05rem var(--hand); color: var(--muted); }

/* ---------- paddock bay card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.bay { position: relative; display: block; text-decoration: none; background: #fbf6e8; border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.bay:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.bay .pitboard { position: absolute; left: -7px; top: -9px; z-index: 2; min-width: 40px; height: 38px; font-size: 1.2rem; }
.scene { position: relative; aspect-ratio: 8 / 5.4; overflow: hidden; border-bottom: 2px solid var(--ink); border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #b7dbef 0, #d9ecf2 40%, var(--grass) 40%, #6f9a5a 52%, #55575c 52%, #404247 100%); }
.scene::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 10px, #f6f3ea 10px 20px); opacity: .95; }
.scene.night { background: linear-gradient(180deg, #131a33 0, #2a3560 40%, #26402f 40%, #1f3326 52%, #2b2d31 52%, #1d1e21 100%); }
.scene.night::before { content: ""; position: absolute; inset: 0 0 60% 0;
  background: radial-gradient(circle, #fff 0 1px, transparent 1.5px) 7px 9px / 37px 29px, radial-gradient(circle, #ffe9a8 0 1px, transparent 1.5px) 21px 3px / 53px 41px; opacity: .8; }
.scene.snow { background: linear-gradient(180deg, #c9d6e2 0, #e6edf2 40%, #f4f7f8 40%, #e2e9ee 52%, #6a6e75 52%, #54575d 100%); }
.scene.dirt { background: linear-gradient(180deg, #b7dbef 0, #e4ecd9 40%, var(--grass) 40%, #6f9a5a 52%, #9b7a4d 52%, #7c5f3a 100%); }
.scene.dirt::after { background: repeating-linear-gradient(90deg, #5c4527 0 6px, transparent 6px 18px); }
.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transform: translateX(14px);
  transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.thumb.ready { opacity: 1; transform: none; }
.bay .info { padding: 9px 10px 10px; }
.bay h3 { font: italic 700 1.22rem/1.05 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.bay .car { font-size: .76rem; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bay .foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; font-size: .78rem; font-weight: 700; }
.bay .by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.likes { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--barn); font: 600 1.05rem/1 var(--cond); letter-spacing: .04em; }
.likes svg { width: 15px; height: 15px; }
.row .bay { width: min(64vw, 260px); }

/* ---------- garages: a roller door goes up, there's the car ---------- */
.garage { position: relative; width: min(78vw, 330px); text-decoration: none; display: block; border: 2px solid var(--ink); border-radius: 4px 4px 2px 2px;
  background: repeating-linear-gradient(90deg, #a8282a 0 20px, #8e2023 20px 22px); box-shadow: 5px 5px 0 var(--ink); padding: 0 12px; }
.garage .sign { display: flex; align-items: center; justify-content: space-between; height: 46px; color: #fff;
  font: 400 1rem var(--slab); letter-spacing: .06em; text-transform: uppercase; }
.garage .sign i { font: 400 1.1rem var(--hand); text-transform: none; color: var(--mustard); letter-spacing: 0; }
.garage .opening { position: relative; aspect-ratio: 8 / 5.6; overflow: hidden; border: 5px solid #f4ecd8; border-bottom: 0; outline: 2px solid var(--ink);
  background: radial-gradient(ellipse 70% 60% at 50% 0, #6b6055, #2a2622 75%); }
.garage .opening::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, #5d5a55, #7b7770); }
.garage .thumb { transform: none; }
.door { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: repeating-linear-gradient(180deg, #e2dccb 0 15px, #bdb5a1 15px 17px); border-bottom: 6px solid #6f6a5e;
  transition: transform 1.15s cubic-bezier(.65, 0, .2, 1) var(--d, 0s); }
.door b { font: 400 4.6rem/1 var(--slab); color: rgba(31, 32, 35, .78); }
.door::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 44px; height: 8px; margin-left: -22px; background: #55524a; border-radius: 4px; }
.garage.open .door { transform: translateY(-91%); }
.garage .plate { background: var(--char); color: #fff; margin: 0 -12px; padding: 11px 12px 12px; border-top: 2px solid var(--ink); display: flex; gap: 10px; align-items: center; }
.garage .plate h3 { font: italic 700 1.35rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.garage .plate p { margin: 3px 0 0; font-size: .76rem; color: var(--muted-d); }
.garage .plate .likes { margin-left: auto; color: #ff8a7d; }
.garage .plate .pitboard { flex: none; }

/* ---------- home: the poster ---------- */
.poster { position: relative; padding: 0; overflow: hidden; border-bottom: 3px solid var(--ink);
  background: repeating-conic-gradient(from -3deg at 50% 58%, rgba(232, 185, 60, .42) 0 7.5deg, transparent 7.5deg 15deg), var(--paper) var(--noise); }
.poster .frame { margin: 10px; border: 3px solid var(--barn); outline: 1px solid var(--barn); outline-offset: 3px; padding: 26px 14px 22px; text-align: center; position: relative; }
.poster .bunting { position: absolute; left: 0; right: 0; top: -2px; }
.poster .label { color: var(--ink); margin-top: 10px; }
.raceday { font: 400 clamp(5.2rem, 27vw, 9.5rem)/.8 var(--slab); text-transform: uppercase; color: var(--barn); margin: 12px 0 0; letter-spacing: -.01em;
  text-shadow: 4px 4px 0 var(--mustard), 5px 5px 0 var(--ink); transform: rotate(-3deg); }
.raceday span { display: block; }
.raceday span + span { color: var(--ink); text-shadow: 4px 4px 0 var(--mustard); margin-left: .5em; }
.poster .in-creek { font-size: clamp(1.7rem, 7.6vw, 2.6rem); transform: rotate(-3deg); margin: 2px 0 0; }
.stage { position: relative; height: 230px; margin: -18px -14px 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; touch-action: pan-y !important; }
.stage .road { position: absolute; left: -20px; right: -20px; bottom: 26px; height: 74px; background: var(--tarmac); transform: rotate(-3deg);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--signal) 0 20px, #f6f3ea 20px 40px) 9; box-shadow: 0 0 0 2px var(--ink); }
.stage .road::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, #f6f3ea 0 26px, transparent 26px 52px); opacity: .7; }
.stage .pitboard { position: absolute; left: 20px; top: 46px; z-index: 3; }
.stage .tag { position: absolute; right: 12px; bottom: 0; z-index: 3; text-decoration: none; background: var(--paper); border: 2px solid var(--ink);
  padding: 5px 10px 6px; font: 400 1.05rem/1.1 var(--hand); transform: rotate(2deg); box-shadow: 2px 2px 0 var(--ink); text-align: left; min-height: 44px; display: grid; align-content: center; }
.stage .tag b { display: block; font: italic 700 1rem/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.poster .lede { font-size: 1.02rem; font-weight: 600; max-width: 30em; margin: 14px auto 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; }
.fine { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #4d4a42; margin: 18px 0 0; }

/* ticker: the tannoy */
.ticker { background: var(--char); color: var(--mustard); overflow: hidden; border-bottom: 3px solid var(--ink); padding: 0; }
.ticker .run { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .run, .ticker:focus-within .run { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; font: italic 700 1.15rem/44px var(--cond); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker li::after { content: "◆"; color: var(--signal); margin: 0 18px; font-style: normal; font-size: .7em; }
.ticker a { color: #fff; text-decoration: none; display: block; }
.ticker a:hover, .ticker a:focus-visible { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.ticker a em { font-style: italic; color: var(--ink); background: var(--mustard); padding: 2px 8px; margin-right: 8px; font-size: .85em; }
.ticker a small { font: inherit; font-size: .88em; color: var(--mustard); letter-spacing: .1em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* how codes work: three pit boards */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; background: #fbf6e8; border: 2px solid var(--ink);
  padding: 14px 14px 14px 10px; box-shadow: 4px 4px 0 var(--ink); border-radius: 4px; }
.step h3 { font: italic 700 1.45rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.step p { margin: 5px 0 0; font-size: .92rem; }
.stub { display: flex; align-items: center; gap: 10px; margin-top: 18px; background: var(--mustard); border: 2px solid var(--ink); padding: 10px 12px; border-radius: 4px;
  font: 600 .86rem/1.3 ui-monospace, Menlo, Consolas, monospace; overflow: hidden;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000), radial-gradient(circle 9px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; padding-inline: 20px; }
.stub code { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: inherit; }
.stub b { font: italic 700 .95rem var(--cond); letter-spacing: .14em; text-transform: uppercase; border-right: 2px dashed var(--ink); padding-right: 10px; flex: none; }

/* timing sheet: the game's charcoal panel */
.dark { background: var(--char); color: #fff; }
.dark .sec-head h2 { color: #fff; } .dark .sec-head h2 em { color: var(--mustard); }
.timing { border: 2px solid #000; background: var(--panel); border-radius: 4px; overflow: hidden; }
.trow { display: grid; grid-template-columns: 44px 84px 1fr auto; align-items: center; gap: 10px; min-height: 66px; padding: 4px 12px 4px 0; text-decoration: none;
  border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-24px); transition: opacity .4s var(--d, 0s), transform .5s cubic-bezier(.2, .9, .3, 1.1) var(--d, 0s); }
.in-view .trow { opacity: 1; transform: none; }
.trow:last-child { border-bottom: 0; }
.trow .pos { align-self: stretch; display: grid; place-items: center; background: #2d2f34; font: 400 1.35rem var(--slab); }
.trow:nth-child(1) .pos { background: var(--mustard); color: var(--ink); }
.trow:nth-child(2) .pos { background: #c9ccd1; color: var(--ink); }
.trow:nth-child(3) .pos { background: #b9773f; color: var(--ink); }
.trow .mini { position: relative; height: 54px; }
.trow .mini .thumb { transform: none; }
.trow b { display: block; font: italic 700 1.2rem/1.05 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.trow i { display: block; font-style: normal; font-size: .74rem; color: var(--muted-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .who { min-width: 0; }
.trow .gap { text-align: right; font: 600 1.25rem/1 var(--cond); letter-spacing: .04em; color: #fff; }
.trow .gap small { display: block; font-size: .8rem; color: var(--muted-d); margin-top: 3px; }
.trow .gap svg { width: 14px; height: 14px; color: var(--signal); vertical-align: -1px; }

/* the game: a photo pinned up, and the day's card */
.photo { position: relative; background: #fff; padding: 8px 8px 10px; border: 1px solid #cfc5ab; box-shadow: 3px 5px 0 rgba(31, 32, 35, .25); transform: rotate(-1.2deg); }
.photo img { width: 100%; height: auto; }
.photo::before { content: ""; position: absolute; left: 50%; top: -13px; width: 92px; height: 26px; margin-left: -46px; background: rgba(232, 185, 60, .78);
  transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.photo figcaption { font: 400 1.15rem/1.1 var(--hand); padding-top: 8px; text-align: center; }
figure { margin: 0; }
.card-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 3px double var(--ink); }
.card-list li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--ink); }
.card-list b { font: 400 1rem var(--slab); color: var(--barn); }
.card-list span { font-weight: 600; font-size: .95rem; }
.card-list span em { display: block; font: 400 1.05rem/1.1 var(--hand); color: var(--muted); font-style: normal; }
.snaps .photo { width: min(74vw, 340px); transform: rotate(var(--r, 1deg)); margin-top: 16px; }
.platform { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px;
  font: italic 700 1.2rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; margin-top: 20px; }
.platform svg { width: 22px; height: 22px; color: var(--mustard); }

/* ticket */
.ticket { position: relative; background: var(--mustard); border: 2px solid var(--ink); border-radius: 6px; padding: 22px 20px; text-align: center;
  -webkit-mask: radial-gradient(circle 13px at 0 50%, transparent 98%, #000), radial-gradient(circle 13px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.ticket h2 { font: 400 clamp(2rem, 9vw, 3.2rem)/.95 var(--slab); text-transform: uppercase; }
.ticket p { margin: 10px auto 18px; max-width: 30em; font-weight: 600; }
.ticket .admit { font: italic 700 1rem var(--cond); letter-spacing: .3em; text-transform: uppercase; border-bottom: 2px dashed var(--ink); padding-bottom: 10px; margin-bottom: 14px; }

/* footer */
.footer { background: var(--green); color: #f4ecd8; padding: 0 0 26px; margin-top: 20px; }
.footer .wrap { padding-top: 22px; display: grid; gap: 16px; }
.footer a { color: #fff; text-underline-offset: 3px; display: inline-block; padding: 8px 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font-weight: 700; font-size: .92rem; }
.footer .small { font-size: .78rem; opacity: .85; }
.footer .hand { color: var(--mustard); font-size: 1.5rem; }

/* ---------- gallery: The Paddock ---------- */
.pad-head { padding: 0 0 6px; background: linear-gradient(180deg, #b7dbef 0, #dceef3 62%, var(--grass) 62%, #7aa462 100%); border-bottom: 3px solid var(--ink); position: relative; }
.pad-head .wrap { padding-top: 40px; padding-bottom: 18px; position: relative; }
.pad-head .bunting { position: absolute; left: 0; right: 0; top: 0; }
.signboard { display: inline-block; background: var(--barn); color: #fff; border: 3px solid var(--ink); padding: 10px 18px 12px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-2deg); position: relative; }
.signboard::before, .signboard::after { content: ""; position: absolute; top: 100%; width: 8px; height: 46px; background: #6a4a2e; border: 2px solid var(--ink); border-top: 0; z-index: -1; }
.signboard::before { left: 18px; } .signboard::after { right: 18px; }
.signboard h1 { font: 400 clamp(2.4rem, 11vw, 4.2rem)/.9 var(--slab); text-transform: uppercase; }
.signboard p { margin: 4px 0 0; font: 400 1.2rem/1 var(--hand); color: var(--mustard); }
.search { display: flex; align-items: center; gap: 8px; margin-top: 40px; background: #fbf6e8; border: 2px solid var(--ink); border-radius: 26px; padding: 0 16px; height: 50px; box-shadow: 3px 3px 0 var(--ink); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); outline: 0; height: 100%; }
.controls { position: sticky; top: var(--bar); z-index: 40; background: var(--char); border-bottom: 3px solid var(--ink); }
.sorts { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 8px; scrollbar-width: none; }
.sorts::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
.sorts button { flex: none; position: relative; isolation: isolate; height: 44px; padding: 0 18px; border: 0; background: none; color: #c9ccd1;
  font: italic 700 1.1rem var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.sorts button::before { content: ""; position: absolute; inset: 3px 0; z-index: -1; transform: skewX(-12deg); background: #2d2f34; border: 1px solid #44474d; }
.sorts button[aria-pressed="true"] { color: #fff; }
.sorts button[aria-pressed="true"]::before { background: var(--signal); border-color: #ff8a7d; }
.filters { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.chip { flex: none; height: 40px; border-radius: 20px; border: 1.5px solid #55585f; background: #2a2c30; color: #fff; padding: 0 12px; font: 700 .82rem "Open Sans", sans-serif;
  max-width: 190px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%); background-size: 6px 6px; background-repeat: no-repeat;
  background-position: calc(100% - 17px) 17px, calc(100% - 11px) 17px; padding-right: 30px; }
.chip.on { background-color: var(--mustard); color: var(--ink); border-color: var(--mustard);
  background-image: linear-gradient(45deg, transparent 50%, #1f2023 50%), linear-gradient(-45deg, transparent 50%, #1f2023 50%); }
.dots { display: flex; gap: 2px; flex: none; padding-left: 4px; border-left: 1px solid #44474d; }
.dot-btn { flex: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.dot-btn i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .5); transition: transform .12s; }
.dot-btn[aria-pressed="true"] i { transform: scale(1.25); border-color: #fff; box-shadow: 0 0 0 3px var(--signal); }
.count { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.count b { font: italic 700 1.3rem var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.count button { border: 0; background: none; text-decoration: underline; font-weight: 700; font-size: .85rem; min-height: 44px; color: var(--barn); }
.empty { grid-column: 1 / -1; text-align: center; padding: 36px 10px; border: 2px dashed var(--ink); border-radius: 6px; }
.empty .hand { font-size: 1.8rem; }

/* ---------- livery page: parked in the paddock, spec sheet on a clipboard ---------- */
.lot { position: relative; height: min(52vh, 440px); min-height: 320px; overflow: hidden; border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(ellipse 60% 26% at 22% 47%, #6f9a5a 0 99%, transparent 100%),
    radial-gradient(ellipse 70% 30% at 85% 48%, #7aa462 0 99%, transparent 100%),
    linear-gradient(180deg, #a9d3ec 0, #dceef3 44%, var(--grass) 44%, #6f9a5a 54%, #4b4d52 54%, #36383c 100%); }
.lot.night { background: radial-gradient(ellipse 60% 26% at 22% 47%, #1f3326 0 99%, transparent 100%), radial-gradient(ellipse 70% 30% at 85% 48%, #26402f 0 99%, transparent 100%),
  linear-gradient(180deg, #10162c 0, #2a3560 44%, #26402f 44%, #1f3326 54%, #2b2d31 54%, #1b1c1f 100%); }
.lot.snow { background: radial-gradient(ellipse 60% 26% at 22% 47%, #e9eff2 0 99%, transparent 100%), radial-gradient(ellipse 70% 30% at 85% 48%, #f4f7f8 0 99%, transparent 100%),
  linear-gradient(180deg, #c3d1de 0, #e6edf2 44%, #f4f7f8 44%, #dfe7ec 54%, #6a6e75 54%, #505359 100%); }
.lot .fence { position: absolute; left: 0; right: 0; top: calc(54% - 22px); height: 22px;
  background: repeating-linear-gradient(90deg, #f6f3ea 0 5px, transparent 5px 34px), linear-gradient(180deg, transparent 5px, #f6f3ea 5px 8px, transparent 8px 14px, #f6f3ea 14px 17px, transparent 17px); opacity: .9; }
.lot .lines { position: absolute; left: 0; right: 0; top: 54%; bottom: 0;
  background: linear-gradient(180deg, var(--signal) 0 0) 0 0 / 100% 0 no-repeat, repeating-linear-gradient(105deg, transparent 0 118px, rgba(246, 243, 234, .5) 118px 123px); border-top: 5px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--signal) 0 16px, #f6f3ea 16px 32px) 5; }
.lot .bunting { position: absolute; left: 0; right: 0; top: 0; z-index: 3; }
.lot canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: grab; touch-action: none; }
.lot canvas.pixelated { image-rendering: pixelated; }
.lot .pitboard { position: absolute; left: 16px; top: 40px; z-index: 3; }
.lot .tools { position: absolute; right: 10px; top: 38px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.tool { height: 44px; min-width: 44px; padding: 0 12px; border-radius: 22px; border: 2px solid var(--ink); background: var(--paper); font: 600 .95rem var(--cond); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink); }
.tool[aria-pressed="true"] { background: var(--mustard); }
.lot .hint { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; text-align: center; font: 400 1.15rem var(--hand); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); pointer-events: none; transition: opacity .4s; }
.clip { position: relative; margin: -22px 10px 0; z-index: 5; background: #8a5f38; border: 2px solid var(--ink); border-radius: 10px; padding: 26px 9px 9px; box-shadow: 5px 6px 0 rgba(31, 32, 35, .3);
  background-image: var(--noise); }
.clip::before { content: ""; position: absolute; left: 50%; top: -14px; width: 112px; height: 34px; margin-left: -56px; border-radius: 8px 8px 4px 4px; border: 2px solid var(--ink);
  background: linear-gradient(180deg, #e3e6ea, #9a9fa6 55%, #c9cdd2); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.clip::after { content: ""; position: absolute; left: 50%; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.sheet-paper { background: #fbf6e8 linear-gradient(180deg, transparent 31px, rgba(108, 160, 200, .22) 31px 32px) 0 0 / 100% 32px; padding: 18px 14px 16px; border: 1px solid #cfc5ab; }
.sheet-paper .label { margin-bottom: 6px; }
.spec-title { font: 400 clamp(1.9rem, 8.4vw, 2.8rem)/.95 var(--slab); text-transform: uppercase; color: var(--barn); }
.byline { display: flex; align-items: center; gap: 10px; margin-top: 12px; text-decoration: none; min-height: 48px; }
.avatar { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sky); overflow: hidden; }
.avatar .thumb, .avatar .thumb.ready { object-fit: contain; transform: scale(1.7); }
.avatar svg { width: 60%; height: 60%; margin: 20%; color: var(--ink); }
.byline b { display: block; font: italic 700 1.25rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.byline small { color: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0; border: 2px solid var(--ink); background: var(--paper); }
.stats div { padding: 8px 4px 9px; text-align: center; border-right: 2px solid var(--ink); }
.stats div:last-child { border: 0; }
.stats b { display: block; font: 400 1.5rem/1 var(--slab); }
.stats span { font: 700 .62rem "Open Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
dl.spec { margin: 0; display: grid; grid-template-columns: 92px 1fr; }
dl.spec dt, dl.spec dd { margin: 0; padding: 7px 0; border-bottom: 1px dashed #b9ad8c; min-height: 32px; }
dl.spec dt { font: 700 .66rem/1.9 "Open Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
dl.spec dd { font-weight: 700; font-size: .95rem; }
dl.spec dd a { text-decoration-color: var(--signal); text-underline-offset: 3px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; font-size: .76rem; font-weight: 700; }
.sw i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { text-decoration: none; background: var(--ink); color: #fff; padding: 4px 10px; font: 600 .95rem var(--cond); letter-spacing: .08em; text-transform: uppercase; transform: skewX(-8deg); }
.codebox { margin-top: 16px; }
.codebox .stub { margin-top: 6px; }
.remark { font: 400 1.25rem/1.15 var(--hand); color: #2f4a7e; margin: 14px 0 0; transform: rotate(-1deg); }
.inline-actions { display: none; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.quiet svg { width: 16px; height: 16px; }
.sharelink { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sharelink input { flex: 1; min-width: 0; height: 44px; border: 2px solid var(--ink); background: #fff; padding: 0 10px; font: 600 .82rem ui-monospace, Menlo, monospace; color: var(--ink); border-radius: 4px; }
.sharelink button { flex: none; height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--paper); border-radius: 4px; font: 600 1rem var(--cond); letter-spacing: .1em; text-transform: uppercase; }

/* sticky action bar: the thumb does the work */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--char); border-top: 3px solid var(--ink); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px 58px; gap: 8px; align-items: center; }
.actionbar::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 6px; background: var(--checker) 0 0 / 6px 6px; }
.act { height: 56px; border-radius: 8px; border: 1.5px solid #4a4d54; background: #2a2c30; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 600 .82rem/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.act svg { width: 24px; height: 24px; }
.act[aria-pressed="true"] { background: #fff; color: var(--barn); border-color: #fff; }
.act[aria-pressed="true"] svg { fill: currentColor; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.actionbar .btn { min-height: 56px; margin: 0 8px; font-size: 1.35rem; padding: 0 6px; min-width: 0; letter-spacing: .1em; }
.actionbar .btn::before { box-shadow: none; border-color: #ff8a7d; }
.btn.done { --c: #3f8f4f; }
.btn.done::before { border-color: #9be0a7 !important; }

/* ---------- player: the racing licence ---------- */
.lic-wrap { padding: 28px 16px 8px; background: linear-gradient(180deg, var(--green) 0, #345a3a 100%); border-bottom: 3px solid var(--ink); position: relative; overflow: hidden; }
.lic-wrap::before { content: ""; position: absolute; left: 50%; top: -30px; width: 30px; height: 84px; margin-left: -15px; background: var(--barn); border: 2px solid var(--ink); }
.licence { position: relative; max-width: 560px; margin: 26px auto 22px; background: #fbf6e8 var(--noise); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 6px 7px 0 rgba(0, 0, 0, .35); overflow: hidden; transform: rotate(-1.2deg); }
.licence::before { content: ""; position: absolute; left: 50%; top: 9px; width: 46px; height: 10px; margin-left: -23px; border-radius: 5px; background: #345a3a; border: 2px solid var(--ink); z-index: 3; }
.lic-top { background: var(--barn); color: #fff; padding: 28px 14px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); }
.lic-top img { width: 38px; height: 38px; }
.lic-top b { font: 400 1.25rem/1 var(--slab); text-transform: uppercase; letter-spacing: .03em; }
.lic-top span { display: block; font: 700 .58rem "Open Sans", sans-serif; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.lic-body { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 14px; position: relative;
  background: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(63, 107, 69, .07) 9px 10px); }
.lic-photo { position: relative; aspect-ratio: 1 / 1.12; border: 2px solid var(--ink); background: linear-gradient(180deg, var(--sky) 0 62%, #7fa868 62%); overflow: hidden; }
.lic-photo .thumb, .lic-photo .thumb.ready { object-fit: contain; transform: scale(1.75); }
.lic-photo svg { position: absolute; inset: 22% 18% 18%; color: var(--ink); opacity: .8; }
.lic-photo + small { display: block; font: 400 .95rem/1.1 var(--hand); text-align: center; margin-top: 4px; color: var(--muted); }
.lic-name { font: 400 clamp(1.45rem, 6.6vw, 2.2rem)/.95 var(--slab); text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.lic-handle { font: italic 700 1.1rem var(--cond); letter-spacing: .08em; color: var(--barn); margin-top: 3px; }
.lic-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 10px; }
.lic-fields div span { display: block; font: 700 .55rem "Open Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lic-fields div b { font: 600 1.08rem/1.1 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.lic-foot { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 0 14px 14px; position: relative; }
.lic-foot .sig { white-space: nowrap; font: 400 clamp(1.1rem, 5.4vw, 1.7rem)/1 var(--hand); color: #2f4a7e; border-bottom: 1.5px solid var(--ink); padding: 0 4px 2px; transform: rotate(-2deg); transform-origin: left; }
.lic-foot small { display: block; font: 700 .55rem "Open Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.bio { font: 400 1.2rem/1.15 var(--hand); color: var(--ink); margin: 0 14px 12px; }
.stamps { display: flex; gap: 6px; }
.stamp { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 50%; border: 3px double var(--c, var(--barn)); color: var(--c, var(--barn)); text-align: center;
  font: 600 .72rem/1.05 var(--cond); letter-spacing: .1em; text-transform: uppercase; transform: rotate(var(--r, -12deg)); opacity: .88; padding: 6px; background: rgba(251, 246, 232, .6);
  animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) var(--d, .3s) backwards; }
.stamp b { display: block; font: 400 1.1rem/1 var(--slab); }
.stamp b.word { font-size: .74rem; letter-spacing: 0; margin-bottom: 2px; }
@keyframes stamp { from { transform: rotate(var(--r, -12deg)) scale(2.2); opacity: 0; } }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 560px; margin: 0 auto 18px; color: #fff; text-align: center; }
.tally b { display: block; font: 400 1.7rem/1 var(--slab); color: var(--mustard); }
.tally span { font: 700 .62rem "Open Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.tabs { display: flex; gap: 4px; padding: 0 16px; max-width: var(--max); margin: 0 auto; }
.tabs button { flex: 1; max-width: 260px; height: 52px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: #2f5236; color: #dfe9d9;
  font: italic 700 1.2rem var(--cond); letter-spacing: .1em; text-transform: uppercase; position: relative; top: 11px; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.tabs button span { font-style: normal; opacity: .7; margin-left: 4px; }
.panel-note { font: 400 1.25rem/1.15 var(--hand); color: var(--muted); margin: 0 0 18px; }

/* ---------- sign-in sheet: a paddock pass ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(20, 21, 24, .62); opacity: 0; pointer-events: none; transition: opacity .25s; }
.signin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-width: 520px; margin: 0 auto; background: var(--paper) var(--noise); border: 2px solid var(--ink); border-bottom: 0;
  border-radius: 18px 18px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); visibility: hidden; transition: transform .38s cubic-bezier(.2, .9, .25, 1), visibility 0s .38s; max-height: 94vh; overflow: auto; }
.signin-open .scrim { opacity: 1; pointer-events: auto; }
.signin-open .signin { transform: none; visibility: visible; transition-delay: 0s; }
.grab { width: 48px; height: 5px; border-radius: 3px; background: var(--paper-3); margin: 0 auto 10px; }
.pass-head { position: relative; background: var(--barn); color: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 14px 16px 14px; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  -webkit-mask: radial-gradient(circle 10px at 0 100%, transparent 98%, #000), radial-gradient(circle 10px at 100% 100%, transparent 98%, #000); -webkit-mask-composite: source-in; mask-composite: intersect; }
.pass-head h2 { font: 400 2rem/.9 var(--slab); text-transform: uppercase; }
.pass-head p { margin: 6px 0 0; font: 400 1.15rem/1.1 var(--hand); color: var(--mustard); }
.pass-head .admit { font: italic 700 .9rem var(--cond); letter-spacing: .26em; text-transform: uppercase; writing-mode: vertical-rl; border-left: 2px dashed rgba(255, 255, 255, .6); padding-left: 10px; align-self: stretch; text-align: center; }
.signin .why { font-weight: 600; font-size: .92rem; margin: 14px 2px 12px; }
.providers { display: grid; gap: 10px; }
.prov { text-decoration: none; display: flex; align-items: center; gap: 12px; width: 100%; height: 54px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink);
  font: 700 1rem "Open Sans", sans-serif; box-shadow: 3px 3px 0 var(--ink); text-align: left; }
.prov:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.prov svg { width: 24px; height: 24px; flex: none; }
.prov.discord { background: #5865f2; color: #fff; } .prov.apple { background: #111; color: #fff; }
.prov small { margin-left: auto; font: 400 1.05rem var(--hand); opacity: .85; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font: italic 700 .95rem var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dashed var(--paper-3); }
.email { display: flex; gap: 8px; }
.email input { flex: 1; min-width: 0; height: 54px; border: 2px solid var(--ink); border-radius: 8px; padding: 0 14px; font: inherit; font-weight: 600; background: #fff; color: var(--ink); }
.email button { flex: none; height: 54px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 8px; background: var(--mustard); font: italic 700 1.1rem var(--cond); letter-spacing: .1em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); }
.signin .small { font-size: .74rem; color: var(--muted); margin: 14px 2px 0; }
.signin:focus { outline: 0; }
.signin .x { position: absolute; right: 8px; top: 4px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); z-index: 2; }

/* toast: held out over the pit wall */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 26px + env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translate(-50%, 30px) rotate(-2deg); opacity: 0; pointer-events: none;
  background: #17181b; color: #fff; border: 2px solid #000; box-shadow: inset 0 0 0 2px #3a3c41, 4px 5px 0 rgba(0, 0, 0, .35); border-radius: 8px; padding: 12px 16px; width: max-content; max-width: calc(100vw - 32px);
  font: 600 .9rem/1.3 "Open Sans", sans-serif; transition: opacity .2s, transform .3s cubic-bezier(.2, 1.4, .4, 1); display: flex; gap: 10px; align-items: center; }
.toast b { font: 400 1.15rem/1 var(--slab); color: var(--mustard); text-transform: uppercase; display: block; margin-bottom: 2px; }
.toast i { flex: none; width: 30px; height: 30px; background: var(--checker) 0 0 / 10px 10px; border: 1px solid #000; }
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }

/* ---------- desktop ---------- */
@media (min-width: 860px) {
  :root { --bar: 64px; }
  body { padding-bottom: 0; }
  .wrap { padding: 0 32px; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .acct { margin-left: 10px; }
  .playios { margin-left: 14px; height: 42px; font-size: 1.05rem; padding: 0 16px; }
  .pass { height: 42px; line-height: 42px; font-size: 1.1rem; max-width: 220px; }
  .brand b { font-size: .95rem; } .brand b span { font-size: 1.05rem; }
  section { padding: 56px 0; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
  .bay:hover { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 7px 8px 0 var(--ink); }
  .bay h3 { font-size: 1.4rem; }
  .row { overflow: visible; margin: 0; padding: 6px 0 8px; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 26px; }
  .row .bay, .garage, .snaps .photo { width: auto; }
  .swipe-hint { display: none; }
  .poster .frame { margin: 16px; padding: 44px 40px 40px; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 10px 30px; text-align: left; min-height: min(760px, calc(100vh - 150px)); }
  .poster .copy { grid-column: 1; }
  .raceday { font-size: clamp(8rem, 14.5vw, 13.5rem); }
  .poster .in-creek { font-size: 3.4rem; margin-left: 1.2em; }
  .stage { grid-column: 2; grid-row: 1; height: 520px; margin: 0; }
  .stage .road { height: 190px; bottom: 34px; border-width: 14px; }
  .stage .pitboard { left: 30px; top: 70px; }
  .stage .tag { right: 30px; bottom: 16px; font-size: 1.3rem; }
  .stage .tag b { font-size: 1.3rem; }
  .cta { justify-content: flex-start; }
  .poster .lede { margin: 26px 0 24px; font-size: 1.2rem; }
  .poster .label { margin-top: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; padding: 26px 20px 20px; text-align: left; }
  .step .pitboard { justify-self: start; }
  .two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: start; }
  .trow { grid-template-columns: 64px 120px 1fr auto; min-height: 76px; padding-right: 22px; gap: 18px; }
  .trow .mini { height: 68px; } .trow b { font-size: 1.5rem; } .trow .gap { font-size: 1.5rem; }
  .ticket { padding: 40px; }
  .footer .wrap { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .pad-head .wrap { display: grid; grid-template-columns: 1fr minmax(300px, 420px); align-items: end; gap: 30px; padding-top: 56px; padding-bottom: 28px; }
  .search { margin: 0 0 6px; }
  .controls .wrap { padding: 0 32px !important; }
  .sorts { padding: 10px 0 6px; }
  .filters { padding: 0 0 10px; flex-wrap: wrap; overflow: visible; }
  .dot-btn { width: 36px; }
  .lv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); gap: 0 34px; max-width: 1380px; margin: 0 auto; padding: 28px 32px 0; align-items: start; }
  .lot { height: calc(100vh - 150px); max-height: 760px; min-height: 480px; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); position: sticky; top: 92px; }
  .clip { margin: 14px 0 0; }
  .sheet-paper { padding: 24px 22px 22px; }
  .actionbar { display: none; }
  .inline-actions { display: flex; }
  .toast { bottom: 40px; }
  .lic-wrap { padding-top: 40px; }
  .licence { margin-bottom: 30px; }
  .lic-body { grid-template-columns: 170px 1fr; gap: 20px; padding: 20px; }
  .lic-foot, .bio { padding-inline: 20px; margin-inline: 0; }
  .signin { bottom: auto; top: 50%; transform: translateY(-40%) scale(.96); opacity: 0; pointer-events: none; border-bottom: 2px solid var(--ink); border-radius: 18px; transition: opacity .2s, transform .3s; padding-bottom: 22px; box-shadow: 10px 12px 0 rgba(0, 0, 0, .4); }
  .signin-open .signin { transform: translateY(-50%); opacity: 1; pointer-events: auto; }
  .grab { visibility: hidden; }
}
@media (min-width: 860px) and (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .ticker .run { transform: none; }
}

/* ================= production additions ================= */
[hidden] { display: none !important; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--mustard); color: var(--ink); padding: 12px 16px; font-weight: 700; border: 2px solid var(--ink); }
.skip:focus { top: 8px; }
main:focus { outline: 0; }
.brand.compact { margin-left: auto; } .brand.compact b { display: none; }
.back + .brand + .topnav { margin-left: 0; }
.tabbar a.post { color: inherit; }
.mockflag { position: fixed; left: 6px; top: 70px; z-index: 300; background: #8e44d6; color: #fff; font: 700 .6rem/1 "Open Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; opacity: .8; pointer-events: none; }
.btn[disabled], button[disabled] { opacity: .55; cursor: not-allowed; }
.btn.small { min-height: 44px; font-size: 1.05rem; padding: 0 18px; }
.btn.small::before { box-shadow: 3px 3px 0 var(--ink); }
.linkish { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; color: var(--barn); min-height: 44px; }
.loadmore { display: grid; place-items: center; margin-top: 26px; min-height: 10px; }

/* sector colours on a card: this week's likes, copies and saves, timing-screen style */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); border-bottom: 2px solid var(--ink); }
.sec { display: flex; align-items: center; justify-content: center; gap: 4px; height: 24px; background: #2d2f34; color: #d3d6db; font: 600 .86rem/1 var(--cond); letter-spacing: .06em; }
.sec svg { width: 12px; height: 12px; }
.sec.purple { background: #8e44d6; color: #fff; }
.sec.green { background: #23803c; color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; font-weight: 600; margin: 0 0 18px; align-items: center; }
.legend .sec { display: inline-flex; height: 22px; padding: 0 8px; margin-right: 6px; border-radius: 2px; }
.flagged { position: absolute; right: 6px; top: 6px; z-index: 2; background: var(--ink); color: var(--mustard); font: 600 .8rem var(--cond); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; }
.bay.skel { box-shadow: none; opacity: .55; animation: skel 1.2s ease-in-out infinite alternate; }
.bay.skel .scene { background: var(--paper-3); } .bay.skel .scene::after { display: none; }
.bay.skel h3, .bay.skel .car, .bay.skel .foot { background: var(--paper-2); border-radius: 3px; color: transparent; }
.bay.skel .car { width: 60%; } .bay.skel .foot { width: 40%; }
@keyframes skel { to { opacity: .3; } }

/* simple page heads (cars, post, settings, admin, and friends) */
.page-head { background: var(--green); color: #fff; border-bottom: 3px solid var(--ink); padding: 26px 0 22px; position: relative; }
.page-head .label { color: #dfe9d9; }
.page-head h1 { font: 400 clamp(2.1rem, 9.5vw, 3.6rem)/.95 var(--slab); text-transform: uppercase; margin-top: 4px; }
.page-head p.hand { color: var(--mustard); margin: 6px 0 0; }
.page-head.red { background: var(--barn); } .page-head.dark { background: var(--char); }
.narrow { max-width: 760px; }
.panel { background: #fbf6e8; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); padding: 18px 16px; margin-bottom: 22px; }
.panel > h2 { font: 400 1.5rem/1 var(--slab); text-transform: uppercase; margin-bottom: 12px; }
.panel.danger { border-color: var(--barn); box-shadow: 4px 4px 0 var(--barn); }
.prose p { margin: 0 0 12px; } .prose { font-weight: 500; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .lab { font: 700 .72rem/1.2 "Open Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #4d4a42; }
.field input[type="text"], .field input[type="email"], .field input[type="search"], .field textarea, .field select {
  width: 100%; min-height: 50px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); padding: 10px 12px; font: 600 1rem/1.4 "Open Sans", sans-serif; }
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.code { font: 600 .82rem/1.45 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; min-height: 120px; }
.field .help { font-size: .82rem; color: #4d4a42; font-weight: 500; }
.field .count { justify-self: end; font-size: .74rem; color: var(--muted); font-weight: 700; margin-top: -4px; }
.field [aria-invalid="true"] { border-color: var(--barn); box-shadow: 0 0 0 2px rgba(168, 40, 42, .25); }
.form-msg, .field .bad { color: #8e1f21; font-weight: 700; font-size: .88rem; margin: 6px 0 0; }
.field .good { color: #23703a; font-weight: 700; font-size: .88rem; }
.notice { border: 2px solid var(--ink); border-left-width: 10px; background: #fff; padding: 12px 14px; border-radius: 4px; font-weight: 600; margin: 0 0 16px; }
.notice.ok { border-color: #23803c; } .notice.err { border-color: var(--barn); } .notice.info { border-color: #2f4a7e; }
.notice a { font-weight: 700; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 12px; min-height: 50px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; padding: 6px 12px; font-weight: 700; letter-spacing: 0; text-transform: none; font-size: .95rem; color: var(--ink); }
.radios input { width: 22px; height: 22px; accent-color: var(--barn); flex: none; }
.radios small { display: block; font-weight: 500; color: #4d4a42; }
.sheet-h { font: 400 1.8rem/1 var(--slab); text-transform: uppercase; margin: 6px 40px 0 0; }
.signin .small a { color: inherit; }
.turnstile:empty { display: none; } .turnstile { margin-top: 12px; }

/* body paint picker */
.paints { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.paint-label { grid-column: 1 / -1; font: 700 .62rem/1 "Open Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #4d4a42; margin-top: 6px; }
.swatch { aspect-ratio: 1; min-height: 36px; border-radius: 6px; border: 2px solid var(--ink); background: var(--c); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--signal); position: relative; z-index: 1; }

/* cars */
.packhead { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; border-bottom: 3px double var(--ink); padding-bottom: 6px; }
.packhead h2 { font: 400 1.5rem/1 var(--slab); text-transform: uppercase; }
.packhead span { font: 400 1.1rem var(--hand); color: var(--muted); }
.carcard .scene.shut { background: repeating-linear-gradient(180deg, #e2dccb 0 13px, #bdb5a1 13px 15px); display: grid; place-items: center; }
.carcard .scene.shut::after { display: none; }
.carcard .scene.shut b { font: 400 1.05rem/1.1 var(--hand); color: #4d4a42; background: var(--paper); border: 2px solid var(--ink); padding: 4px 10px; transform: rotate(-3deg); }
.lot.short { height: min(46vh, 400px); }
.lot .nameplate { position: absolute; left: 12px; bottom: 12px; z-index: 3; background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 6px 12px 8px; transform: rotate(-1.500deg); pointer-events: none; }
.lot .nameplate b { display: block; font: 400 1.4rem/1 var(--slab); text-transform: uppercase; }
.lot .nameplate span { font: 400 1.05rem/1 var(--hand); color: var(--barn); }

/* livery page extras */
.desc { margin: 12px 0 0; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.owner-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; border-top: 1px dashed #b9ad8c; padding-top: 6px; }

/* post: three steps */
.stepno { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stepno .pitboard { flex: none; }
.stepno h2 { font: italic 700 1.6rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.preview { position: relative; height: 300px; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.preview .lot { height: 100%; min-height: 0; border: 0; position: relative; top: 0; box-shadow: none; border-radius: 0; max-height: none; }

/* stewards' office (admin): plainer, same paint */
.atabs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; background: var(--char); border-bottom: 3px solid var(--ink); scrollbar-width: none; position: sticky; top: var(--bar); z-index: 40; }
.atabs button { flex: none; height: 44px; padding: 0 16px; border: 1px solid #44474d; background: #2d2f34; color: #d3d6db; font: italic 700 1.05rem var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.atabs button[aria-selected="true"] { background: var(--signal); color: #fff; border-color: #ff8a7d; }
.arow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--ink); }
.arow .pic { position: relative; aspect-ratio: 8 / 5.4; border: 2px solid var(--ink); background: linear-gradient(180deg, #b7dbef 0 45%, var(--grass) 45% 56%, #55575c 56%); overflow: hidden; display: block; }
.arow.nopic { grid-template-columns: minmax(0, 1fr); }
.arow h3 { font: italic 700 1.25rem/1.05 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.arow p { margin: 3px 0 0; font-size: .86rem; overflow-wrap: anywhere; }
.arow .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.abtn { min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font: 600 1rem var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.abtn.warn { background: var(--barn); color: #fff; } .abtn.fine2 { background: var(--mustard); }
.arow select { min-height: 44px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; padding: 0 8px; font: 600 .9rem "Open Sans", sans-serif; color: var(--ink); }
.badge { display: inline-block; font: 600 .8rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; background: var(--ink); color: #fff; vertical-align: 2px; margin-left: 4px; }
.badge.red { background: var(--barn); } .badge.gold { background: var(--mustard); color: var(--ink); }

@media (min-width: 860px) {
  .brand.compact b { display: block; } .brand.compact { margin-left: 18px; }
  .panel { padding: 26px 26px; }
  .paints { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .arow { grid-template-columns: 150px minmax(0, 1fr); }
  .cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .preview { height: 420px; }
  .atabs { padding: 8px max(32px, calc((100vw - 1200px) / 2 + 32px)); }
  .mockflag { top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .thumb { opacity: 1; transform: none; }
}

/* home + gallery bits */
.hero-car { object-fit: contain; z-index: 2; transform: translateX(40px); }
.hero-car.ready { transform: none; }
.stage .hero-car { inset: -6% 4% 4%; width: 92%; height: 100%; }
ol.steps { list-style: none; margin: 0; padding: 0; }
.pitboard.lap2 { --n: #fff; transform: rotate(3deg); } .pitboard.lap3 { --n: #ff8a7d; }
.more.on-dark { color: #fff; } .hand.on-dark { color: var(--mustard); }
p.platform { margin-bottom: 0; }
.trow-empty { margin: 0; padding: 22px 16px; font-weight: 600; color: #fff; } .trow-empty a { color: var(--mustard); }
.count h2 { font: italic 700 1.3rem var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.controls .wrap { padding: 0; }
.pad-head + .ticker { border-top: 0; }
@media (min-width: 860px) { .stage .hero-car { inset: 0 2% 6%; width: 96%; } }

/* livery + player bits */
body.has-actionbar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.actionbar .btn .ico { display: contents; }
.codehelp { font-size: .84rem; color: #4d4a42; margin: 8px 2px 0; font-weight: 600; }
.sec-head h2.sub { font-size: 1.7rem; }
a.sw { text-decoration: none; }
.lic-logo { background: #f1f3f5; border-radius: 4px; }
.lic-photo { display: block; }
dl.lic-fields { margin: 10px 0 0; } .lic-fields dt { font: 700 .55rem "Open Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #5b584f; }
.lic-fields dd { margin: 0; font: 600 1.08rem/1.1 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.own-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; margin: 0 0 22px; }
.tally { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 860px) { body.has-actionbar { padding-bottom: 0; } }
.pass-page .email { flex-wrap: wrap; } .page-head .label.on-dark { color: var(--muted-d); }
#code-msg { margin: 0; font-weight: 700; font-size: .9rem; } #code-msg.bad { color: #8e1f21; } #code-msg.good { color: #23703a; } #code-msg:empty { display: none; }
.tagbtn { border: 0; background: var(--ink); color: #fff; padding: 0 12px; min-height: 40px; font: 600 .95rem var(--cond); letter-spacing: .08em; text-transform: uppercase; transform: skewX(-8deg); }
.preview .lot .tools { top: 10px; }

/* welcome, settings, admin bits */
#name-msg { margin: 0; font-weight: 700; font-size: .9rem; min-height: 1.3em; } #name-msg.bad { color: #8e1f21; } #name-msg.good { color: #23703a; }
.avatars { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.avopt { flex: none; width: 104px; display: grid; gap: 4px; justify-items: center; text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.avopt input { position: absolute; opacity: 0; }
.avopt .pic { position: relative; width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sky); overflow: hidden; display: block; }
.avopt .pic .thumb { object-fit: contain; transform: scale(1.7); opacity: 1; }
.avopt .pic.none svg { width: 56%; height: 56%; margin: 22%; }
.avopt input:checked + .pic { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--signal); }
.avopt input:focus-visible + .pic { outline: 3px solid var(--signal); outline-offset: 6px; }
.methods { list-style: none; margin: 0; padding: 0; }
.methods li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; border-bottom: 1px dashed #b9ad8c; }
.methods .abtn { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.methods .badge { background: #23703a; }
table.audit { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
.audit th { text-align: left; font: 700 .66rem "Open Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #4d4a42; padding: 8px 10px 8px 0; border-bottom: 2px solid var(--ink); }
.audit td { padding: 10px 10px 10px 0; border-bottom: 1px dashed #b9ad8c; font-weight: 600; vertical-align: top; }
.arow .thumb { opacity: 1; transform: none; }
#pane .field input[type="search"] { flex: 1; }
.brand { min-width: 0; } .brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 859px) { .pass { max-width: 30vw; } .brand b { font-size: .7rem; letter-spacing: .1em; } }
.btn { max-width: 100%; }
fieldset { min-width: 0; margin: 0; }
.avopt { position: relative; } .avopt input { left: 0; top: 0; }
.lic-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; } .lic-foot .stamps { margin-left: auto; }
/* Long-form pages (privacy, terms). */
.prose h2 { font: 400 1.35rem/1.1 var(--slab); text-transform: uppercase; margin: 26px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 12px; padding-left: 20px; } .prose li { margin: 0 0 6px; }
.prose code { font-size: .9em; background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 3px; }
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(0, 0, 0, .15); }
.prose th { font: italic 700 .85rem var(--cond); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 640px) {
  .prose table { min-width: 0; } .prose thead { display: none; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose tr { padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .15); }
  .prose td { border: 0; padding: 2px 0; }
  .prose td:nth-child(2)::before { content: "Why: "; font-weight: 700; }
  .prose td:nth-child(3)::before { content: "Kept: "; font-weight: 700; }
}
