/* Bikes: a mountain stage of a road race, summit finish. White race-number paper as the page and panels (the booth is a
   race number held by four safety pins), a celeste steel-frame header with a bicycle chain as its edge, the race as the
   sun-bleached road of the climb seen from the side: crowd barriers on the verge, dashed lane paint, race numbers at the
   start line, a white painted finish line. Riders on race bikes in team kits carry the coin on the rear disc wheel. The
   timing board is a bike computer's grey LCD, the prizes are leader's jerseys on hangers (gold/silver/bronze) hanging from a
   chrome rail next to a cotton musette full of coins as the pot. Jersey yellow is the action colour. */
@font-face { font-family: 'Anybody'; src: url(/fonts/anybody-italic.woff2) format('woff2'); font-weight: 100 900; font-stretch: 50% 150%; font-style: italic; font-display: swap; }
@font-face { font-family: 'Sofia Sans'; src: url(/fonts/sofia-sans.woff2) format('woff2'); font-weight: 1 1000; font-display: swap; }
@font-face { font-family: 'Inconsolata'; src: url(/fonts/inconsolata.woff2) format('woff2'); font-weight: 200 900; font-stretch: 50% 200%; font-display: swap; }

:root {
  --wall: #f4f4ef;          /* race-number paper */
  --wall-2: #e2e4dc;
  --cream: #fdfdf9;
  --paper: #f7f7f2;
  --ink: #16161b;           /* tyre black */
  --ink-2: #3c3d44;
  --ink-3: #64656d;
  --red: #d7262f;           /* the red of the race number */
  --red-dk: #b01c24;
  --yellow: #ffd12a;        /* leader's jersey */
  --yellow-dk: #f2bc0c;
  --celeste: #7ccfbd;       /* steel frame paint */
  --celeste-dk: #4fae99;
  --bulb: #ffd12a;
  --amber: #f2b824;
  --cobalt: #2c5fd6;
  --turf: #46454b;          /* asphalt */
  --turf-2: #3d3c42;
  --grass: #7aa84a;
  --plank: #c7cbd0;
  --plank-dk: #8d939a;
  --tin: #c9ced4;
  --lcd: #c9d3b9;
  --up: #158149;
  --down: #d3302b;
  --edge: 2.5px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --r: 10px;
  --display: 'Anybody', 'Arial Black', system-ui, sans-serif;
  --text: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Inconsolata', ui-monospace, 'SF Mono', Menlo, monospace;
  --barrier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18' viewBox='0 0 64 18'%3E %3Cpath d='M2 4 H62 M2 13 H62' stroke='%2316161b' stroke-width='2.6'/%3E%3Cpath d='M2 4 H62 M2 13 H62' stroke='%23d7dadd' stroke-width='1.2'/%3E %3Cg stroke='%2316161b' stroke-width='1.8'%3E%3Cpath d='M8 4 V13 M14 4 V13 M20 4 V13 M26 4 V13 M38 4 V13 M44 4 V13 M50 4 V13 M56 4 V13'/%3E%3C/g%3E %3Cg stroke='%23c7cbd0' stroke-width='.7'%3E%3Cpath d='M8 4 V13 M14 4 V13 M20 4 V13 M26 4 V13 M38 4 V13 M44 4 V13 M50 4 V13 M56 4 V13'/%3E%3C/g%3E %3Cpath d='M1.6 2 V17 M62.4 2 V17' stroke='%2316161b' stroke-width='3'/%3E%3Cpath d='M1.6 2 V17 M62.4 2 V17' stroke='%23d7dadd' stroke-width='1.2'/%3E %3Cpath d='M-2 17 L4 15 M60 15 L66 17' stroke='%2316161b' stroke-width='1.6'/%3E %3C/svg%3E");
  --asphalt-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E %3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.62'/%3E%3C/filter%3E %3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.75'/%3E%3C/filter%3E %3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3Crect width='180' height='180' filter='url(%23d)' opacity='.5'/%3E %3C/svg%3E") 0 0 / 180px 180px;
}

/* the page: race-number paper, the profile of the climb rising very faintly behind the top of the page */
body {
  font-weight: 500;
  background-color: var(--wall);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='420' viewBox='0 0 1600 420' preserveAspectRatio='none'%3E %3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e6eae1'/%3E%3Cstop offset='.55' stop-color='%23eef0ea'/%3E%3Cstop offset='1' stop-color='%23f4f4ef'/%3E%3C/linearGradient%3E%3C/defs%3E %3Cpath fill='url(%23f)' d='M0 420 V352 L120 344 L240 330 L330 318 L420 300 L520 286 L600 262 L690 240 L780 226 L860 196 L940 170 L1020 150 L1100 118 L1180 96 L1260 78 L1340 54 L1420 40 L1500 30 L1600 26 V420 Z'/%3E %3Cpath fill='none' stroke='%23dde2da' stroke-width='3' d='M0 352 L120 344 L240 330 L330 318 L420 300 L520 286 L600 262 L690 240 L780 226 L860 196 L940 170 L1020 150 L1100 118 L1180 96 L1260 78 L1340 54 L1420 40 L1500 30 L1600 26'/%3E %3C/svg%3E");
  background-size: 100% 420px;
  background-position: 0 60px;
  background-repeat: no-repeat;
}
h1, h2, h3 { font-style: italic; font-weight: 860; font-stretch: 112%; letter-spacing: -.012em; line-height: 1.02; }
h1 { font-size: clamp(40px, 5vw, 66px); }
.hero h1 { font-size: clamp(38px, 3.7vw, 54px); font-stretch: 104%; line-height: 1.04; }
.hero h1 span { white-space: nowrap; }
.hero h1 .h1b { color: var(--red); text-shadow: none; margin-top: 2px; }
.lede { font-weight: 500; color: var(--ink-2); }

.btn { background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 19px; border-radius: 10px; letter-spacing: 0; }
.btn:hover { background: #ffdb55; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #2b2b33; }
.step h3::before { color: var(--red); }
.ticket-head .fee-in { color: var(--red); font-weight: 860; }
.link { color: var(--ink); text-decoration-color: var(--red); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline-color: var(--cobalt); }

/* the header: celeste frame paint, a chain along its lower edge */
.top {
  color: var(--ink); border-bottom: 0;
  background-color: var(--celeste);
  background-image: linear-gradient(180deg, #9bdccd 0, #7ccfbd 48%, #69c2ae 100%);
}
.top-in { min-height: 96px; padding-bottom: 20px; }
.brand { gap: 10px; color: var(--ink); }
.brand-horse { width: 82px; height: 61px; filter: drop-shadow(2px 3px 0 rgba(22, 22, 27, .28)); }
.brand-word { font: italic 900 50px/1 var(--display); font-stretch: 118%; letter-spacing: -.02em; color: var(--ink); text-shadow: none; translate: 0 -2px; }
.nav a { color: var(--ink); font-weight: 700; }
.nav a:hover { border-color: rgba(22, 22, 27, .35); }
.nav a[aria-current='page'] { background: var(--cream); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.top .btn { background: var(--yellow); color: var(--ink); }
.top .btn:hover { background: #ffdb55; }
.mode-note { color: var(--ink); }
.bulbs { bottom: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E %3Cpath fill='%236c7178' stroke='%2316161b' stroke-width='1.1' d='M9.6 3.2 C13 4.300000000000001 17 4.300000000000001 20.4 3.2 C23 3.2 24 5.1 24 7 C24 8.9 23 10.8 20.4 10.8 C17 9.700000000000001 13 9.700000000000001 9.6 10.8 C7 10.8 6 8.9 6 7 C6 5.1 7 3.2 9.6 3.2 Z'/%3E%3Cpath fill='%236c7178' stroke='%2316161b' stroke-width='1.1' d='M-10.4 3.2 C-7 4.300000000000001 -3 4.300000000000001 0.3999999999999999 3.2 C3 3.2 4 5.1 4 7 C4 8.9 3 10.8 0.3999999999999999 10.8 C-3 9.700000000000001 -7 9.700000000000001 -10.4 10.8 C-13 10.8 -14 8.9 -14 7 C-14 5.1 -13 3.2 -10.4 3.2 Z'/%3E %3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.1' d='M-0.9999999999999996 2.2 C3 3.3000000000000003 7 3.3000000000000003 11 2.2 C13.6 2.2 14.6 4.6 14.6 7 C14.6 9.4 13.6 11.8 11 11.8 C7 10.700000000000001 3 10.700000000000001 -0.9999999999999996 11.8 C-3.5999999999999996 11.8 -4.6 9.4 -4.6 7 C-4.6 4.6 -3.5999999999999996 2.2 -0.9999999999999996 2.2 Z'/%3E%3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.1' d='M19 2.2 C23 3.3000000000000003 27 3.3000000000000003 31 2.2 C33.6 2.2 34.6 4.6 34.6 7 C34.6 9.4 33.6 11.8 31 11.8 C27 10.700000000000001 23 10.700000000000001 19 11.8 C16.4 11.8 15.4 9.4 15.4 7 C15.4 4.6 16.4 2.2 19 2.2 Z'/%3E %3Cpath d='M-2 4.6 H12 M18 4.6 H22' stroke='%23fff' stroke-opacity='.7' stroke-width='1'/%3E %3Cg fill='%233b3e44' stroke='%2316161b' stroke-width='.9'%3E%3Ccircle cx='0' cy='7' r='2.1'/%3E%3Ccircle cx='10' cy='7' r='2.1'/%3E%3Ccircle cx='20' cy='7' r='2.1'/%3E%3C/g%3E %3Cg fill='%23fff' fill-opacity='.6'%3E%3Ccircle cx='9.3' cy='6.3' r='.7'/%3E%3Ccircle cx='19.3' cy='6.3' r='.7'/%3E%3Ccircle cx='-.7' cy='6.3' r='.7'/%3E%3C/g%3E %3C/svg%3E") 0 0 / 20px 14px repeat-x, linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 6px no-repeat; }
.nav-mobile { padding-bottom: 26px; }
.nav-mobile a { color: var(--ink); font-weight: 700; border-color: rgba(22, 22, 27, .3); }
.nav-mobile a[aria-current='page'] { background: var(--cream); color: var(--ink); }

/* the booth: a race number on white paper, held by four safety pins */
.booth {
  border-radius: 6px; padding: 18px 12px; box-shadow: 6px 6px 0 var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E %3Cg %3E %3Cpath d='M5 3.4 H29 M5 8.6 H27' stroke='%2316161b' stroke-width='2.6' stroke-linecap='round'/%3E %3Cpath d='M5 3.4 H29 M5 8.6 H27' stroke='%23d4d8dc' stroke-width='1.2' stroke-linecap='round'/%3E %3Ccircle cx='4.4' cy='6' r='3.2' fill='none' stroke='%2316161b' stroke-width='2.4'/%3E%3Ccircle cx='4.4' cy='6' r='3.2' fill='none' stroke='%23d4d8dc' stroke-width='1'/%3E %3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.2' d='M26 1.6 H32 C34 1.6 35 3 35 4.6 V7.4 C35 9 34 10.4 32 10.4 H26 Z'/%3E %3Cpath d='M27.4 3.6 H32' stroke='%23fff' stroke-opacity='.8' stroke-width='1'/%3E %3C/g%3E %3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E %3Cg transform='translate(36 0) scale(-1 1)'%3E %3Cpath d='M5 3.4 H29 M5 8.6 H27' stroke='%2316161b' stroke-width='2.6' stroke-linecap='round'/%3E %3Cpath d='M5 3.4 H29 M5 8.6 H27' stroke='%23d4d8dc' stroke-width='1.2' stroke-linecap='round'/%3E %3Ccircle cx='4.4' cy='6' r='3.2' fill='none' stroke='%2316161b' stroke-width='2.4'/%3E%3Ccircle cx='4.4' cy='6' r='3.2' fill='none' stroke='%23d4d8dc' stroke-width='1'/%3E %3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.2' d='M26 1.6 H32 C34 1.6 35 3 35 4.6 V7.4 C35 9 34 10.4 32 10.4 H26 Z'/%3E %3Cpath d='M27.4 3.6 H32' stroke='%23fff' stroke-opacity='.8' stroke-width='1'/%3E %3C/g%3E %3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E %3Cg %3E %3Cpath d='M5 3.4 H29 M5 8.6 H27' stroke='%2316161b' stroke-width='2.6' stroke-linecap='round'/%3E %3Cpath d='M5 3.4 H29 M5 8.6 H27' stroke='%23d4d8dc' stroke-width='1.2' stroke-linecap='round'/%3E %3Ccircle cx='4.4' cy='6' r='3.2' fill='none' stroke='%2316161b' stroke-width='2.4'/%3E%3Ccircle cx='4.4' cy='6' r='3.2' fill='none' stroke='%23d4d8dc' stroke-width='1'/%3E %3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.2' d='M26 1.6 H32 C34 1.6 35 3 35 4.6 V7.4 C35 9 34 10.4 32 10.4 H26 Z'/%3E %3Cpath d='M27.4 3.6 H32' stroke='%23fff' stroke-opacity='.8' stroke-width='1'/%3E %3C/g%3E %3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E %3Cg transform='translate(36 0) scale(-1 1)'%3E %3Cpath d='M5 3.4 H29 M5 8.6 H27' stroke='%2316161b' stroke-width='2.6' stroke-linecap='round'/%3E %3Cpath d='M5 3.4 H29 M5 8.6 H27' stroke='%23d4d8dc' stroke-width='1.2' stroke-linecap='round'/%3E %3Ccircle cx='4.4' cy='6' r='3.2' fill='none' stroke='%2316161b' stroke-width='2.4'/%3E%3Ccircle cx='4.4' cy='6' r='3.2' fill='none' stroke='%23d4d8dc' stroke-width='1'/%3E %3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.2' d='M26 1.6 H32 C34 1.6 35 3 35 4.6 V7.4 C35 9 34 10.4 32 10.4 H26 Z'/%3E %3Cpath d='M27.4 3.6 H32' stroke='%23fff' stroke-opacity='.8' stroke-width='1'/%3E %3C/g%3E %3C/svg%3E"), linear-gradient(180deg, #fff, #f4f4ee);
  background-size: 36px 12px, 36px 12px, 36px 12px, 36px 12px, 100% 100%;
  background-position: 8px 3px, calc(100% - 8px) 3px, 8px calc(100% - 3px), calc(100% - 8px) calc(100% - 3px), 0 0;
  background-repeat: no-repeat;
}
/* the timing board: a bike computer, grey-green reflective LCD in a black rubber bezel */
.booth-sign {
  margin: 4px 4px 0; border-radius: 9px; color: var(--ink); border: 2.5px solid var(--ink); padding: 11px 16px;
  background: linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, .22) 62% 72%, transparent 72%), linear-gradient(175deg, #d5ddc6, var(--lcd) 55%, #b6c2a2);
  box-shadow: 0 0 0 5px #2c2d33, 0 0 0 7.5px var(--ink), inset 0 2px 5px rgba(22, 22, 27, .22);
}
.booth-sign .t-name { font: italic 860 24px/1 var(--display); font-stretch: 108%; letter-spacing: -.01em; }
.booth-sign .t-meta { color: #3e4537; font-weight: 700; }
.booth-sign .clock { font: 800 30px/1 var(--mono); font-stretch: 112%; color: var(--ink); letter-spacing: -.01em; }
.booth-sign .clock small { color: #3e4537; font-family: var(--text); font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
.booth-more, .booth-more a { color: var(--ink); text-shadow: none; }

/* prizes: leader's jerseys on hangers and the musette, hanging from a chrome rail */
.shelf { padding-top: 22px; gap: clamp(6px, 2vw, 24px); align-items: start; }
.shelf::after {
  top: 14px; bottom: auto; height: 8px; border-width: 2px; border-radius: 5px; z-index: 0;
  background: linear-gradient(180deg, #f4f5f6, #c7cbd0 55%, #8d939a);
}
.prize { margin-bottom: 4px; }
.prize svg { width: clamp(58px, 6.6vw, 80px); height: clamp(63.8px, 7.26vw, 88px); margin-top: -10px; }
.prize b { top: calc(clamp(63.8px, 7.26vw, 88px) * .432 - 10px); translate: 0 -50%; font: italic 900 clamp(11px, 1.1vw, 14px)/1 var(--display); color: var(--red); letter-spacing: -.02em; }
.prize span { margin-top: 2px; border-radius: 4px; font-weight: 800; }
.pot { margin-bottom: 4px; }
.pot svg { width: clamp(64px, 7.4vw, 88px); height: clamp(75.6px, 8.75vw, 104px); margin-top: -10px; }
.pot .pot-sum { top: 63%; translate: -50% -50%; background: var(--cream); border: 1.5px solid var(--ink); border-radius: 3px; padding: 2px 4px; color: var(--ink); font: 800 clamp(11px, 1vw, 14px)/1 var(--mono); letter-spacing: -.02em; }
.pot .pot-label { color: var(--ink); text-shadow: none; position: relative; z-index: 2; font-weight: 800; }

/* the road: crowd barriers on the verge, sun-bleached asphalt, dashed lane paint, a white edge line */
.track {
  --lane-h: 66px; --start: 42px; --fin: 26px; --top: 18px; --bot: 11px;
  container-type: inline-size;
  margin-top: 12px; border-radius: 6px; border-width: 2.5px; padding: var(--top) 0 var(--bot);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18' viewBox='0 0 64 18'%3E %3Cpath d='M2 4 H62 M2 13 H62' stroke='%2316161b' stroke-width='2.6'/%3E%3Cpath d='M2 4 H62 M2 13 H62' stroke='%23d7dadd' stroke-width='1.2'/%3E %3Cg stroke='%2316161b' stroke-width='1.8'%3E%3Cpath d='M8 4 V13 M14 4 V13 M20 4 V13 M26 4 V13 M38 4 V13 M44 4 V13 M50 4 V13 M56 4 V13'/%3E%3C/g%3E %3Cg stroke='%23c7cbd0' stroke-width='.7'%3E%3Cpath d='M8 4 V13 M14 4 V13 M20 4 V13 M26 4 V13 M38 4 V13 M44 4 V13 M50 4 V13 M56 4 V13'/%3E%3C/g%3E %3Cpath d='M1.6 2 V17 M62.4 2 V17' stroke='%2316161b' stroke-width='3'/%3E%3Cpath d='M1.6 2 V17 M62.4 2 V17' stroke='%23d7dadd' stroke-width='1.2'/%3E %3Cpath d='M-2 17 L4 15 M60 15 L66 17' stroke='%2316161b' stroke-width='1.6'/%3E %3C/svg%3E") 0 0 / 64px var(--top) repeat-x,
    linear-gradient(180deg, #8fbd58, #6d9a40) 0 0 / 100% var(--top) no-repeat,
    linear-gradient(#fdfdf9, #fdfdf9) 0 calc(100% - var(--bot)) / 100% 3px no-repeat,
    linear-gradient(180deg, #7aa84a, #5f8a36) 0 100% / 100% var(--bot) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E %3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.62'/%3E%3C/filter%3E %3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.75'/%3E%3C/filter%3E %3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3Crect width='180' height='180' filter='url(%23d)' opacity='.5'/%3E %3C/svg%3E") 0 0 / 180px 180px,
    linear-gradient(180deg, #55545a 0, #4a494f 40%, #424147 100%);
}
.mini-booth .track { --lane-h: 44px; --top: 12px; --bot: 8px; }
.lane { border-bottom: 0; background: none; }
.lane:nth-child(even) { background: none; }
.lane::after { display: none; }
.lane + .lane::before { content: ''; position: absolute; z-index: 1; left: 34px; right: 0; top: 0; border-top: 2px dashed rgba(253, 253, 249, .55); }
/* the start line: race numbers pinned at the white start stripe */
.lane-no {
  width: 34px; background: none; border-right: 3px solid #fdfdf9; color: var(--red); font: italic 900 13px/1 var(--display); z-index: 2;
}
.lane-no::before { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 19px; translate: -50% -50%; z-index: -1; border-radius: 2px; background: #fdfdf9; border: 1.5px solid var(--ink); box-shadow: 1.5px 1.5px 0 rgba(0, 0, 0, .35); }
.lane-empty { color: var(--ink); text-shadow: none; font-weight: 700; }
.lane-empty > span:not(.lane-no) { position: relative; z-index: 2; background: var(--cream); border: 2px solid var(--ink); border-radius: 4px; padding: 5px 12px; box-shadow: 2px 2px 0 var(--ink); max-width: calc(100% - 60px); text-align: center; }
.zero { top: calc(var(--top) - 2px); bottom: calc(var(--bot) - 2px); border-left: 2px dashed var(--yellow); }
.zero span { font: 800 12px/1 var(--mono); color: var(--ink); background: var(--yellow); border-radius: 2px; padding: 2px 3px; top: 3px; left: 4px; }

/* the finish: a white painted line with the black timing stripe */
.finish {
  top: calc(var(--top) - 2px); bottom: var(--bot); right: 4px; width: 14px; border-left: 0;
  background: linear-gradient(90deg, #fdfdf9 0 38%, var(--ink) 38% 62%, #fdfdf9 62%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}

/* the riders: 150 x 100 symbol, coin on the rear disc wheel, front spokes turning */
.runner.bike {
  --hw: calc((var(--lane-h, 66px) - 6px) * 1.5);
  top: 3px; bottom: 3px;
  left: calc(var(--start) + (100% - var(--start) - var(--fin) - var(--hw)) * var(--x, 0));
}
.runner.bike .horse { inset: 0; height: 100%; transform-origin: 50% 90%; animation: ride 1.1s ease-in-out infinite; }
.lane:nth-child(2n) .runner.bike .horse { animation-delay: -.55s; }
.lane:nth-child(3n) .runner.bike .horse { animation-delay: -.3s; }
@keyframes ride { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(0, -.8px) rotate(-.5deg); } }
.bk-spin { transform-box: view-box; transform-origin: 118px 75px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .runner.bike .horse, .bk-spin { animation: none; } }
.runner.bike .disc { left: 9.6%; top: 60%; width: 20.8%; border-width: 1.6px; border-color: var(--ink); box-shadow: 0 0 0 1.6px var(--silk, #16161b); }
.runner.bike .rod { display: none; }
.tag { border-radius: 4px; border-color: var(--ink); background: var(--cream); font-weight: 800; }
.tag em { font: 700 13px/1.1 var(--mono); }
.mono, .addr, .pick .w, .results .when { letter-spacing: -.01em; }
.runner.p1 .tag { background: #fff0b8; }
.runner.me .tag { background: var(--yellow); }
.done-box svg { width: 180px; height: 120px; }
.step svg.art { width: 92px; height: 72px; }

/* panels and paper bits */
.panel { border-radius: 8px; }
.ticket { border-radius: 8px; background: var(--cream); }
.ticket.sprint { --tk: var(--yellow); }
.ticket.heat { --tk: var(--celeste); }
.ticket.classic { --tk: var(--red); }
.ticket.dash { --tk: var(--cobalt); }
.dlg { border-radius: 10px; }
.dlg-head { background: var(--celeste); color: var(--ink); border-bottom: 0; padding-bottom: 32px; background-image: linear-gradient(180deg, #9bdccd, #7ccfbd 60%, #69c2ae); }
.dlg-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E %3Cpath fill='%236c7178' stroke='%2316161b' stroke-width='1.1' d='M9.6 3.2 C13 4.300000000000001 17 4.300000000000001 20.4 3.2 C23 3.2 24 5.1 24 7 C24 8.9 23 10.8 20.4 10.8 C17 9.700000000000001 13 9.700000000000001 9.6 10.8 C7 10.8 6 8.9 6 7 C6 5.1 7 3.2 9.6 3.2 Z'/%3E%3Cpath fill='%236c7178' stroke='%2316161b' stroke-width='1.1' d='M-10.4 3.2 C-7 4.300000000000001 -3 4.300000000000001 0.3999999999999999 3.2 C3 3.2 4 5.1 4 7 C4 8.9 3 10.8 0.3999999999999999 10.8 C-3 9.700000000000001 -7 9.700000000000001 -10.4 10.8 C-13 10.8 -14 8.9 -14 7 C-14 5.1 -13 3.2 -10.4 3.2 Z'/%3E %3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.1' d='M-0.9999999999999996 2.2 C3 3.3000000000000003 7 3.3000000000000003 11 2.2 C13.6 2.2 14.6 4.6 14.6 7 C14.6 9.4 13.6 11.8 11 11.8 C7 10.700000000000001 3 10.700000000000001 -0.9999999999999996 11.8 C-3.5999999999999996 11.8 -4.6 9.4 -4.6 7 C-4.6 4.6 -3.5999999999999996 2.2 -0.9999999999999996 2.2 Z'/%3E%3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.1' d='M19 2.2 C23 3.3000000000000003 27 3.3000000000000003 31 2.2 C33.6 2.2 34.6 4.6 34.6 7 C34.6 9.4 33.6 11.8 31 11.8 C27 10.700000000000001 23 10.700000000000001 19 11.8 C16.4 11.8 15.4 9.4 15.4 7 C15.4 4.6 16.4 2.2 19 2.2 Z'/%3E %3Cpath d='M-2 4.6 H12 M18 4.6 H22' stroke='%23fff' stroke-opacity='.7' stroke-width='1'/%3E %3Cg fill='%233b3e44' stroke='%2316161b' stroke-width='.9'%3E%3Ccircle cx='0' cy='7' r='2.1'/%3E%3Ccircle cx='10' cy='7' r='2.1'/%3E%3Ccircle cx='20' cy='7' r='2.1'/%3E%3C/g%3E %3Cg fill='%23fff' fill-opacity='.6'%3E%3Ccircle cx='9.3' cy='6.3' r='.7'/%3E%3Ccircle cx='19.3' cy='6.3' r='.7'/%3E%3Ccircle cx='-.7' cy='6.3' r='.7'/%3E%3C/g%3E %3C/svg%3E") 0 0 / 20px 14px repeat-x, linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 6px no-repeat; }
.dlg-head h2 { text-shadow: none; }
.seg button b { font-weight: 860; }
.seg button[aria-pressed='true'] { box-shadow: 3px 3px 0 var(--yellow); }
.seg button[aria-pressed='true'] b { color: var(--yellow); }
.inp:focus-within { box-shadow: 0 0 0 3px #bfe8de; }
.count .big, .potline b, .standings .place { font-weight: 860; font-style: italic; }
.test-note { background: #e9f6f2; border-color: #bfe3da; }
.toast { box-shadow: 4px 4px 0 var(--yellow); }
.hits button:hover, .hits button:focus-visible, .wallets button:hover, .standings tr.me td { background: #fff3c2; }
.foot {
  position: relative; border-top: 0; color: #c9cad0; padding-top: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E %3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.62'/%3E%3C/filter%3E %3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.75'/%3E%3C/filter%3E %3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3Crect width='180' height='180' filter='url(%23d)' opacity='.5'/%3E %3C/svg%3E") 0 0 / 180px 180px, linear-gradient(180deg, #424147, #34333a 55%, #2a2a2f);
}
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E %3Cpath fill='%236c7178' stroke='%2316161b' stroke-width='1.1' d='M9.6 3.2 C13 4.300000000000001 17 4.300000000000001 20.4 3.2 C23 3.2 24 5.1 24 7 C24 8.9 23 10.8 20.4 10.8 C17 9.700000000000001 13 9.700000000000001 9.6 10.8 C7 10.8 6 8.9 6 7 C6 5.1 7 3.2 9.6 3.2 Z'/%3E%3Cpath fill='%236c7178' stroke='%2316161b' stroke-width='1.1' d='M-10.4 3.2 C-7 4.300000000000001 -3 4.300000000000001 0.3999999999999999 3.2 C3 3.2 4 5.1 4 7 C4 8.9 3 10.8 0.3999999999999999 10.8 C-3 9.700000000000001 -7 9.700000000000001 -10.4 10.8 C-13 10.8 -14 8.9 -14 7 C-14 5.1 -13 3.2 -10.4 3.2 Z'/%3E %3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.1' d='M-0.9999999999999996 2.2 C3 3.3000000000000003 7 3.3000000000000003 11 2.2 C13.6 2.2 14.6 4.6 14.6 7 C14.6 9.4 13.6 11.8 11 11.8 C7 10.700000000000001 3 10.700000000000001 -0.9999999999999996 11.8 C-3.5999999999999996 11.8 -4.6 9.4 -4.6 7 C-4.6 4.6 -3.5999999999999996 2.2 -0.9999999999999996 2.2 Z'/%3E%3Cpath fill='%23c9cdd2' stroke='%2316161b' stroke-width='1.1' d='M19 2.2 C23 3.3000000000000003 27 3.3000000000000003 31 2.2 C33.6 2.2 34.6 4.6 34.6 7 C34.6 9.4 33.6 11.8 31 11.8 C27 10.700000000000001 23 10.700000000000001 19 11.8 C16.4 11.8 15.4 9.4 15.4 7 C15.4 4.6 16.4 2.2 19 2.2 Z'/%3E %3Cpath d='M-2 4.6 H12 M18 4.6 H22' stroke='%23fff' stroke-opacity='.7' stroke-width='1'/%3E %3Cg fill='%233b3e44' stroke='%2316161b' stroke-width='.9'%3E%3Ccircle cx='0' cy='7' r='2.1'/%3E%3Ccircle cx='10' cy='7' r='2.1'/%3E%3Ccircle cx='20' cy='7' r='2.1'/%3E%3C/g%3E %3Cg fill='%23fff' fill-opacity='.6'%3E%3Ccircle cx='9.3' cy='6.3' r='.7'/%3E%3Ccircle cx='19.3' cy='6.3' r='.7'/%3E%3Ccircle cx='-.7' cy='6.3' r='.7'/%3E%3C/g%3E %3C/svg%3E") 0 0 / 20px 14px repeat-x, linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 6px no-repeat; }
.foot-links a { color: var(--cream); }
.foot-risk { color: var(--cream); }
.launch { background: var(--ink); }
.launch a { color: var(--yellow); }

@media (max-width: 640px) {
  .top-in { min-height: 78px; }
  .brand-horse { width: 52px; height: 39px; }
  .brand-word { font-size: 32px; }
  .top-in { gap: 8px; }
  .track { --lane-h: 52px; --start: 28px; --fin: 18px; --top: 13px; --bot: 8px; }
  .runner.bike { top: 2px; bottom: 2px; --hw: calc((var(--lane-h, 52px) - 4px) * 1.5); }
  .lane-no { width: 24px; font-size: 10px; border-right-width: 2px; }
  .lane-no::before { width: 19px; height: 15px; }
  .lane + .lane::before { left: 24px; }
  .finish { width: 10px; right: 3px; }
  .booth { padding: 15px 7px; border-radius: 5px; background-size: 28px 9.3px, 28px 9.3px, 28px 9.3px, 28px 9.3px, 100% 100%; }
  .booth-sign { padding: 9px 11px; }
  .booth-sign .clock { font-size: 22px; }
  .hero h1 { font-size: clamp(30px, 9.6vw, 44px); }
  .tag em { font-size: 11px; }
  .prize b { font-size: 10px; }
  .step svg.art { width: 64px; height: 50px; }
}
