/* Layout: an athletics track. The order is the hero: one slider grows a pile of folded washing, one tap picks tonight or tomorrow, the bib drops in. */
:root {
  --red: #E10600;
  --red-deep: #B30500;
  --white: #FFFFFF;
  --paper: #FFF5F3;
  --blush: #FFD9D3;
  --ink: #1F1414;
  --muted: #6A5856;
  --line: #F0DCD8;
  --go: #0E7A3A;
  --display: 'Kanit', 'Arial Black', system-ui, sans-serif;
  --body: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 12px; --r-card: 20px; --r-sheet: 28px; --r-pill: 999px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--red); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-red :focus-visible { outline-color: var(--white); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 900; line-height: 0.92; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(40px, 6.4vw, 72px); }
p { margin: 0; }
.muted { color: var(--muted); }
.tartan { background-color: var(--red); color: var(--white); }

/* Wordmarks */
.wm { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
.wm-badge b { display: inline-block; background: var(--white); color: var(--red); padding: 4px 10px 2px 8px; transform: skewX(-12deg); }
.wm-badge b span { display: inline-block; transform: skewX(12deg); }
.wm-outline .o { color: transparent; -webkit-text-stroke: 3px var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: var(--r-pill); font-family: var(--display); font-weight: 600; font-size: 19px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--paper); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.linkish { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: 600 16px var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--red); color: var(--white); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.site-head .wm { font-size: 24px; min-height: 44px; }
.site-head .btn { min-height: 44px; font-size: 16px; padding: 0 20px; }

/* Hero = the order */
.hero .wrap { padding-block: 56px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { font-size: clamp(46px, 6.6vw, 92px); line-height: 0.88; }
.hero h1 span { display: block; }
.hero-copy p { font-size: 22px; font-weight: 600; }
.hero-copy small { font-size: 15px; font-weight: 600; }

.order { background: var(--white); color: var(--ink); border-radius: var(--r-sheet); padding: 24px; box-shadow: 0 30px 70px rgba(70, 0, 0, .35); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.order h2 { font-size: 30px; }
.pile-stage { position: relative; background: var(--paper); border-radius: var(--r-card); height: 236px; overflow: hidden; }
.pile-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pile-stage .g { transition: transform .5s cubic-bezier(.3,1.45,.5,1), opacity .25s ease; }
.pile-tag { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: -12px; }
.pile-tag strong { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; }
.pile-tag span { font-size: 15px; color: var(--muted); font-weight: 600; }
.slider { display: flex; flex-direction: column; gap: 6px; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.slider input::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(to right, var(--red) var(--p, 25%), var(--line) var(--p, 25%)); }
.slider input::-moz-range-track { height: 12px; border-radius: 6px; background: var(--line); }
.slider input::-moz-range-progress { height: 12px; border-radius: 6px; background: var(--red); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; margin-top: -14px; border-radius: 50%; background: var(--white); border: 5px solid var(--red); box-shadow: 0 4px 10px rgba(60,0,0,.3); }
.slider input::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 5px solid var(--red); box-shadow: 0 4px 10px rgba(60,0,0,.3); }
.slider input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 22px; }
.ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; padding-inline: 6px; }

.when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.when legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; min-height: 64px; border-radius: var(--r-card); border: 3px solid var(--line); background: var(--white); cursor: pointer; transition: border-color .15s, background-color .15s; }
.opt label:hover { border-color: var(--red); }
.opt input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--white); }
.opt input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
.opt .name { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1; }
.opt .tag { font-size: 14px; font-weight: 600; color: var(--red); }
.opt input:checked + label .tag { color: var(--blush); }

.pay { display: flex; align-items: center; gap: 16px; }
.pay .price { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.pay .btn { flex: 1; }
.fine { font-size: 14px; color: var(--muted); text-align: center; }

/* Bib view */
.bib-view { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.bib { position: relative; background: var(--white); border: 4px solid var(--ink); border-radius: 14px; padding: 26px 26px 20px; transform: rotate(-2deg); box-shadow: 0 18px 40px rgba(31,20,20,.18); display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.bib.drop { animation: drop .6s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes drop { from { transform: translateY(-60px) rotate(-12deg); opacity: 0; } }
.bib .pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.bib .pin:nth-of-type(1) { top: 10px; left: 10px; } .bib .pin:nth-of-type(2) { top: 10px; right: 10px; } .bib .pin:nth-of-type(3) { bottom: 10px; left: 10px; } .bib .pin:nth-of-type(4) { bottom: 10px; right: 10px; }
.bib .event { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; padding-inline: 8px; }
.bib .event span:first-child { color: var(--red); }
.bib .num { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 76px; line-height: .9; letter-spacing: -0.02em; padding-top: 6px; }
.bib .small { font-size: 15px; color: var(--muted); }
.bib .strip { background: var(--red); color: var(--white); margin: 6px -26px 4px; padding: 10px 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.bib .strip strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 28px; line-height: 1; }
.bib-view .next { font-weight: 600; font-size: 18px; text-align: center; }

/* The race */
section.block { padding-block: 88px; }
section.block.infield { background: var(--paper); }
.block-head { margin-bottom: 32px; }
.race { background: var(--white); border-radius: var(--r-sheet); padding: 24px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; border: 2px solid var(--line); }
.race-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.race-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.race-head .who { display: flex; gap: 12px; align-items: center; }
.race-head .status { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 22px; color: var(--red); }
.race-head .eta { font-size: 15px; color: var(--muted); }
.race-head .eta b { color: var(--ink); }
.bib-mini { background: var(--white); border: 3px solid var(--ink); border-radius: 6px; padding: 2px 10px; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; position: relative; display: inline-block; }
.bib-mini::before, .bib-mini::after { content: ""; position: absolute; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.bib-mini::before { left: 3px; } .bib-mini::after { right: 3px; }
.lane { position: relative; height: 92px; background: var(--red); border-radius: var(--r-sm); border-top: 3px solid var(--white); border-bottom: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red); margin-inline: 4px; }
.lane::before { content: "3"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%) skewX(-10deg); font-family: var(--display); font-weight: 900; font-size: 40px; color: rgba(255,255,255,.35); }
.finish { position: absolute; right: 0; top: 0; bottom: 0; width: 18px; background-color: var(--white); background-image: linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%), linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; border-radius: 0 8px 8px 0; }
.mark { position: absolute; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.55); transform: translateX(-50%); }
.mark.start { width: 4px; background: var(--white); }
.runner { position: absolute; top: 50%; left: 6%; transform: translate(-50%, -50%) rotate(-4deg); transition: left 1s cubic-bezier(.6,.05,.3,1); z-index: 2; }
.runner .bib-mini { font-size: 26px; padding: 4px 12px; box-shadow: 0 8px 16px rgba(60,0,0,.35); }
.runner .trail { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; padding-right: 6px; opacity: 0; transition: opacity .2s; }
.runner .trail i { display: block; height: 4px; border-radius: 2px; background: var(--white); }
.runner .trail i:nth-child(1) { width: 26px; margin-left: 10px; } .runner .trail i:nth-child(2) { width: 36px; } .runner .trail i:nth-child(3) { width: 20px; margin-left: 16px; }
.runner.moving .trail { opacity: 1; }
.checkpoints { list-style: none; margin: 0; padding: 0; position: relative; height: 40px; margin-inline: 4px; }
.checkpoints li { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; line-height: 1.2; transition: color .3s; }
.checkpoints li small { display: block; font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }
.checkpoints li.hit { color: var(--ink); }
.checkpoints li:first-child { transform: none; text-align: left; }
.checkpoints li:last-child { transform: translateX(-100%); text-align: right; }
.text-bubble { align-self: flex-start; background: var(--paper); border: 2px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 8px 14px; font-size: 15px; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.text-bubble b { color: var(--red); }
.text-bubble.pop { animation: pop .35s ease both; }
@keyframes pop { from { transform: translateY(8px) scale(.96); opacity: 0; } }
.board { background: var(--ink); color: var(--white); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board h3 { font-size: 20px; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board td { color: var(--white); padding: 8px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 16px; }
.board td:not(:first-child) { text-align: right; }
.board td:first-child { font-weight: 600; }
.board tr.pending td { color: rgba(255,255,255,.58); }
.board tr.live td:first-child::after { content: " \25CF"; color: var(--red); font-size: 12px; }
.board .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid rgba(255,255,255,.3); }
.board .total span { font-size: 14px; color: rgba(255,255,255,.72); }
.board .total strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }

/* House rules */
.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.rule { border-radius: var(--r-sheet); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.rule h3 { font-size: clamp(34px, 4.6vw, 52px); }
.rule p { font-size: 19px; font-weight: 600; }
.socks { display: flex; align-items: flex-end; height: 104px; }
.socks svg { width: 74px; height: 102px; }
.socks svg:last-child { transform: scaleX(-1) rotate(-6deg); margin-left: -16px; }
.rule.dq { background: var(--ink); color: var(--white); }
.dq ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dq li { padding: 8px 14px; border-radius: var(--r-pill); border: 2px solid rgba(255,255,255,.3); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }

/* Course */
.course { display: flex; flex-direction: column; gap: 24px; }
.suburbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.suburbs li { padding: 8px 14px; border-radius: var(--r-pill); background: var(--white); border: 2px solid var(--line); font-weight: 600; font-size: 16px; }
.checker { display: flex; gap: 8px; max-width: 520px; }
.field { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--white); font: inherit; color: var(--ink); }
.field:focus { border-color: var(--ink); outline: none; }
.checker .field { flex: 1; min-width: 0; }
.result { min-height: 26px; font-weight: 600; }
.result.yes { color: var(--go); }

/* FAQ */
.faq { max-width: 760px; display: grid; }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 60ch; }

/* Finish */
.finish-band { height: 36px; background-color: var(--white); background-image: linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%), linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%); background-size: 36px 36px; background-position: 0 0, 18px 18px; }
.sign-off .wrap { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 28px; }
.sign-off .wm { font-size: clamp(30px, 9vw, 132px); gap: 0; }
.sign-off-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sign-off small { font-size: 15px; }


/* Watch it run: the phone */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: center; }
.watch-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.watch-sub { font-size: 22px; font-weight: 600; color: var(--muted); }
.how { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; counter-increment: how; }
.how li::before { content: counter(how); grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; background: var(--white); border: 3px solid var(--ink); border-radius: 10px; transform: rotate(-4deg); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 28px; color: var(--red); }
.how b { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1.1; align-self: end; }
.how span { color: var(--muted); font-size: 17px; }
.phone { width: 320px; max-width: 100%; height: 640px; border-radius: 52px; background: var(--ink); padding: 12px; box-shadow: 0 40px 80px rgba(70,0,0,.25); justify-self: center; }
.screen { position: relative; height: 100%; border-radius: 42px; background: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.scr-bar { background: var(--red); padding: 44px 18px 14px; }
.scr-bar .wm { font-size: 17px; color: var(--white); }
.scr-body { flex: 1; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.scr-status { display: flex; align-items: center; gap: 12px; }
.scr-status div { display: flex; flex-direction: column; }
.scr-status small { font-size: 12px; color: var(--muted); font-weight: 600; }
.scr-status strong { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1; color: var(--red); }
.scr-eta { font-size: 14px; color: var(--muted); }
.scr-eta b { color: var(--ink); }
.track { flex: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; min-height: 0; padding-block: 6px; }
.vlane { position: relative; background: var(--red); border-radius: 10px; border-left: 3px solid var(--white); border-right: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red); }
.vlane::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; border-radius: 0 0 8px 8px; background-color: var(--white); background-image: linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%), linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.vrunner { position: absolute; left: 50%; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--ink); transform: translate(-50%, -50%); transition: top .9s cubic-bezier(.6,.05,.3,1); z-index: 1; box-shadow: 0 4px 10px rgba(60,0,0,.35); }
.vlegs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.vlegs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .3s; }
.vlegs li small { font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.vlegs li.done { color: var(--ink); }
.vlegs li.now { color: var(--red); }
.vlegs li.now span { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 17px; }
.scr-foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 2px dashed var(--line); }
.scr-foot span { font-size: 13px; color: var(--muted); font-weight: 600; }
.scr-foot strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.banner { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 10px 30px rgba(31,20,20,.28); transform: translateY(-140%); transition: transform .45s cubic-bezier(.3,1.3,.5,1); }
.banner.show { transform: translateY(0); }
.banner .app { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: var(--white); display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 14px; }
.banner-copy { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; }
.banner-copy b { font-size: 13px; }
.banner-now { margin-left: auto; align-self: flex-start; font-size: 12px; color: var(--muted); }

/* Rulebook */
.rulebook { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { border-radius: var(--r-card); padding: 24px; min-height: 260px; display: flex; flex-direction: column; gap: 8px; }
.tile svg { width: 108px; height: 96px; margin-bottom: auto; }
.tile h3 { font-size: 30px; margin-top: 24px; }
.tile p { font-weight: 600; }
.t-red { background: var(--red); color: var(--white); }
.t-white { background: var(--white); border: 3px solid var(--ink); }
.t-ink { background: var(--ink); color: var(--white); }
.t-blush { background: var(--blush); }
.t-red:nth-child(1) { transform: rotate(-1.5deg); }
.t-ink { transform: rotate(1.5deg); }
.dq-band { margin-top: 24px; border: 3px dashed var(--ink); border-radius: var(--r-card); padding: 20px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dq-band h3 { font-size: 28px; color: var(--red); }
.dq-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dq-band li { padding: 8px 14px; border-radius: var(--r-pill); background: var(--paper); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }

/* Ask us anything: a text thread */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.ask .block-head { display: flex; flex-direction: column; gap: 12px; }
.chat { min-width: 0; background: var(--paper); border-radius: var(--r-sheet); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; padding: 12px 16px; font-size: 17px; animation: pop .3s ease both; }
.msg.q { align-self: flex-end; background: var(--ink); color: var(--white); border-radius: 20px 20px 4px 20px; }
.msg.a { align-self: flex-start; background: var(--white); border: 2px solid var(--line); border-radius: 20px 20px 20px 4px; }
.msg.a b { display: block; font-size: 13px; color: var(--red); }
.typing { align-self: flex-start; background: var(--white); border: 2px solid var(--line); border-radius: 20px 20px 20px 4px; padding: 14px 16px; display: flex; gap: 5px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.asks { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 2px solid var(--line); }
.asks button, .asks a { min-height: 48px; padding: 0 18px; border-radius: var(--r-pill); border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 600 16px var(--body); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.asks button:hover { background: var(--ink); color: var(--white); }
.asks a { background: var(--red); border-color: var(--red); color: var(--white); }

.thumb-bar { display: none; }
@media (max-width: 960px) {
  .hero .wrap, .race, .rules, .watch, .ask { grid-template-columns: minmax(0, 1fr); }
  .ask { gap: 0; }
  .watch { gap: 40px; }
  .rulebook { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap { gap: 32px; }
}
@media (max-width: 640px) {
  .site-head .btn { display: none; }
  .site-head .wm { font-size: 22px; }
  .hero .wrap { padding-block: 36px 48px; }
  .hero-copy p { font-size: 19px; }
  .order { padding: 16px; gap: 16px; }
  .pile-stage { height: 208px; }
  .pay .price { font-size: 40px; }
  .bib .num { font-size: 60px; }
  .race { padding: 16px; }
  .lane { height: 76px; }
  .lane::before { font-size: 30px; }
  .runner .bib-mini { font-size: 20px; }
  .checkpoints li { font-size: 12px; }
  .checkpoints li small { font-size: 11px; }
  section.block { padding-block: 64px; }
  .rule { padding: 24px; }
  .rulebook { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; transform: none !important; }
  .tile h3 { margin-top: 8px; }
  .phone { width: 300px; height: 600px; }
  .chat { padding: 16px; }
  .msg { max-width: 90%; }
  .thumb-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--white); border-top: 2px solid var(--line); }
  .thumb-bar .btn { flex: 1; }
  body { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================== Site chrome ===================== */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--white); color: var(--ink); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
.site-head .wrap { justify-content: flex-start; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-weight: 600; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 4px; background: var(--white); transform: skewX(-20deg) scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: skewX(-20deg) scaleX(1); }
.site-head .head-book { margin-left: 8px; }


/* Footer */
.site-foot .wrap { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 40px; }
.site-foot .wm { font-size: clamp(30px, 9vw, 132px); gap: 0; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
.foot-h { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 20px; margin: 0 0 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.foot-cols .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.foot-cols a { text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 8px; font-size: 15px; }

/* ===================== Inner pages ===================== */
.page-hero .wrap { padding-block: 56px 64px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: .88; max-width: 14ch; }
.page-hero p { font-size: 22px; font-weight: 600; max-width: 34ch; }
.page-hero .btn { align-self: flex-start; margin-top: 8px; }
.crumbs { font-size: 15px; font-weight: 600; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.lead { font-size: 22px; font-weight: 600; color: var(--muted); max-width: 40ch; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cta-band { text-align: left; }
.cta-band .wrap { padding-block: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(36px, 5.4vw, 64px); }

/* Facts strip */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts li { background: var(--white); border: 3px solid var(--ink); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; }
.facts span { color: var(--muted); font-weight: 600; }

/* Legs, detailed */
.legs-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: lg; }
.legs-big li { counter-increment: lg; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--white); border: 2px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; }
.legs-big li::before { content: counter(lg); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 56px; line-height: 1; color: var(--red); }
.legs-big h3 { font-size: 28px; }
.legs-big p { color: var(--muted); font-weight: 600; }
.legs-big time { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px; white-space: nowrap; }

/* Prices */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.price-card { border-radius: var(--r-sheet); padding: 28px; display: flex; flex-direction: column; gap: 16px; border: 3px solid var(--ink); background: var(--white); }
.price-card.hot { background: var(--red); color: var(--white); border-color: var(--red); }
.price-card h3 { font-size: 40px; }
.price-card .kgs { font-weight: 600; color: var(--muted); }
.price-card.hot .kgs { color: var(--white); }
.price-card dl { margin: 0; display: grid; gap: 0; }
.price-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 14px; border-top: 2px dashed currentColor; }
.price-card dt { font-weight: 600; font-size: 19px; }
.price-card dd { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-card); overflow: hidden; }
.compare-wrap { overflow-x: auto; border-radius: var(--r-card); border: 2px solid var(--line); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 2px solid var(--line); font-size: 17px; }
.compare thead th { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 20px; }
.compare thead th:last-child { background: var(--red); color: var(--white); }
.compare td:last-child { font-weight: 600; background: var(--paper); }
.compare tr:last-child td { border-bottom: 0; }

/* What we wash */
.yes-no { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.yes-no > div { border-radius: var(--r-sheet); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.yes-no .yes { background: var(--white); border: 3px solid var(--ink); }
.yes-no .no { background: var(--ink); color: var(--white); }
.yes-no h3 { font-size: 36px; }
.yes-no ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.yes-no li { padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; }
.yes-no .yes li { background: var(--paper); }
.yes-no .no li { border: 2px solid rgba(255,255,255,.3); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }

/* FAQ page: answers as messages */
.qa-list { display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.qa { display: flex; flex-direction: column; gap: 8px; }
.qa h3 { align-self: flex-end; max-width: 85%; background: var(--ink); color: var(--white); border-radius: 20px 20px 4px 20px; padding: 12px 16px; font-family: var(--body); font-style: normal; text-transform: none; font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: 0; }
.qa p { align-self: flex-start; max-width: 85%; background: var(--white); border: 2px solid var(--line); border-radius: 20px 20px 20px 4px; padding: 12px 16px; }
.qa p a { color: var(--red); font-weight: 600; }

/* Areas */
.suburb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.suburb-grid a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 0 20px; border-radius: var(--r-card); background: var(--white); border: 2px solid var(--line); text-decoration: none; font-weight: 600; font-size: 18px; }
.suburb-grid a:hover { border-color: var(--red); }
.suburb-grid small { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.near { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.near a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 2px solid var(--ink); text-decoration: none; font-weight: 600; background: var(--white); }
.near a:hover { background: var(--ink); color: var(--white); }

/* About */
.about-big { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 4.6vw, 56px); line-height: 1; max-width: 22ch; }
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.prose h2 { font-size: 32px; margin-top: 16px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--red); font-weight: 600; }
.draft { align-self: flex-start; background: var(--blush); color: var(--ink); border-radius: var(--r-pill); padding: 6px 14px; font-weight: 600; font-size: 15px; }

/* Book page */
.book-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.book-page .order { box-shadow: none; border: 2px solid var(--line); }
.details { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-sheet); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.details h2 { font-size: 30px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label, .f legend { font-weight: 600; }
.f .hint { font-size: 15px; color: var(--muted); }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.err { color: var(--red-deep); font-weight: 600; min-height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; }
.chip input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
textarea.field { min-height: 88px; padding-block: 12px; resize: vertical; }
.order .go-book { flex: 1; }

/* 404 */
.lost { text-align: left; }

@media (max-width: 960px) {
  .nav, .site-head .head-book { display: none; }
  .menu-btn { display: inline-flex; }
  .foot-cols, .split, .book-page, .yes-no, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .legs-big li { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; }
  .legs-big li::before { font-size: 40px; }
  .legs-big time { grid-column: 2; font-size: 18px; }
  .legs-big h3 { font-size: 24px; }
  .page-hero .wrap { padding-block: 40px 48px; }
  .page-hero p { font-size: 19px; }
  .f-row { grid-template-columns: minmax(0, 1fr); }
  .price-card dd { font-size: 40px; }
  .details { padding: 16px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-red { color: var(--red); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; margin-left: auto; }
.result a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-foot a.wm { color: var(--white); min-height: 44px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.crumbs { align-items: center; }

/* Menu: full-screen sheet on phones and tablets */
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px; background: none; border: 0; color: var(--white); font: 600 17px var(--body); cursor: pointer; }
.burger { display: inline-flex; flex-direction: column; gap: 6px; }
.burger i { display: block; width: 26px; height: 4px; background: var(--white); transform: skewX(-20deg); }
.burger i:last-child { width: 18px; margin-left: 8px; }
.menu-sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; animation: sheet .25s ease both; }
@keyframes sheet { from { opacity: 0; transform: translateY(-12px); } }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.menu-top .wm { font-size: 22px; min-height: 44px; }
.menu-close { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--white); background: none; position: relative; cursor: pointer; }
.menu-close span::before, .menu-close span::after { content: ""; position: absolute; left: 12px; right: 12px; top: 21px; height: 3px; background: var(--white); border-radius: 2px; transform: rotate(45deg); }
.menu-close span::after { transform: rotate(-45deg); }
.menu-links { display: flex; flex-direction: column; margin-block: auto; padding-block: 24px; }
.menu-links a { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 11vw, 64px); line-height: 1.05; text-decoration: none; min-height: 56px; display: flex; align-items: center; gap: 12px; }
.menu-links a[aria-current="page"]::before { content: ""; width: 22px; height: 8px; background: var(--white); transform: skewX(-20deg); flex: none; }
.menu-book { width: 100%; }
body.menu-open { overflow: hidden; }
@media (max-width: 960px) { .menu-btn { display: inline-flex; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bib-view #bib-track { align-self: center; }

/* The customer's tracker (/t/<token>) */
.trk-wrap .wrap { max-width: 560px; }
.trk { background: var(--white); border-radius: var(--r-sheet); border: 2px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.trk-hi { font-weight: 600; color: var(--muted); }
.trk-status { font-size: clamp(44px, 12vw, 72px); color: var(--red); }
.trk-back { font-size: 19px; font-weight: 600; }
.trk-track { min-height: 340px; margin-top: 12px; }
.trk .vlegs li { font-size: 17px; min-height: 44px; }
.trk .vlegs li.now span { font-size: 20px; }
.trk-meta { padding-top: 12px; border-top: 2px dashed var(--line); color: var(--muted); font-weight: 600; font-size: 15px; }
.trk-missing { font-size: 19px; font-weight: 600; }
.trk-missing a { color: var(--red); }

/* ===================== Booking: one question per screen ===================== */
.wiz { background: var(--paper); min-height: calc(100vh - 68px); }
.wiz-wrap { max-width: 560px; padding-block: 20px 132px; display: flex; flex-direction: column; gap: 12px; }
.wiz-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.wiz-bar i { display: block; height: 6px; border-radius: 3px; background: var(--line); transform: skewX(-20deg); transition: background-color .25s; }
.wiz-bar i.on { background: var(--red); }
.wiz-count { font-size: 15px; font-weight: 600; color: var(--muted); }
.step { display: flex; flex-direction: column; gap: 16px; animation: stepin .25s ease both; }
@keyframes stepin { from { opacity: 0; transform: translateX(16px); } }
.step h1 { font-size: clamp(40px, 10vw, 60px); line-height: .9; outline: none; margin-bottom: 4px; }
.step .pile-stage { height: 250px; background: var(--white); }
.step .pile-tag { margin-bottom: -6px; }
.step .pile-tag strong { font-size: 30px; }
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-list .opt label { position: relative; min-height: 84px; padding: 16px 20px; justify-content: center; gap: 4px; }
.opt-list .opt .name { font-size: 30px; }
.opt-list .opt .tag { color: var(--muted); }
.opt-list .opt input:checked + label .tag { color: var(--blush); }
.opt-price { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; }
.step .chips .chip label { min-height: 48px; }
.step .chip input:checked + label { background: var(--red); border-color: var(--red); }
.step .field { min-height: 56px; font-size: 18px; }
.sum { margin: 0; background: var(--white); border: 2px solid var(--line); border-radius: var(--r-card); padding: 4px 20px; }
.sum div { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 12px; border-top: 2px dashed var(--line); }
.sum div:first-child { border-top: 0; }
.sum dt { font-weight: 600; color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sum .linkish { font-size: 15px; padding-inline: 4px; }
.wiz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 2px solid var(--line); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.wiz-foot-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.wiz-foot .ghost { min-height: 56px; padding: 0 20px; border-radius: var(--r-pill); border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 600 17px var(--body); cursor: pointer; }
.wiz-total { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 32px; line-height: 1; margin-left: auto; font-variant-numeric: tabular-nums; }
.wiz-foot .btn { min-width: 132px; }
.wiz .bib-view { padding-top: 24px; }
#paid-wait { text-align: center; padding-block: 48px; }
@media (max-width: 380px) { .wiz-foot .btn { min-width: 0; padding: 0 20px; } .wiz-total { font-size: 26px; } }

/* ===== Booking, jazzed: race-lane progress, big tiles, slide-in steps ===== */
.wiz { background: var(--white); }
.wiz-top { display: flex; align-items: center; gap: 12px; }
.wiz-lane { position: relative; flex: 1; height: 22px; background: var(--red); border-radius: 11px; border-top: 3px solid var(--white); border-bottom: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red); margin-inline: 2px; }
.wiz-lane i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.6); }
.wl-fin { position: absolute; right: 0; top: 0; bottom: 0; width: 12px; border-radius: 0 9px 9px 0; background-color: var(--white); background-image: linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%), linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.wl-dot { position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--white); border: 5px solid var(--ink); box-shadow: 0 4px 10px rgba(60,0,0,.3); transition: left .55s cubic-bezier(.5,1.6,.4,1); z-index: 1; }
.wiz-count { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 20px; min-width: 2.4ch; text-align: right; }
.step { animation: stepin .32s cubic-bezier(.2,.9,.3,1) both; }
.step.from-left { animation-name: stepback; }
@keyframes stepin { from { opacity: 0; transform: translateX(40px) skewX(-4deg); } }
@keyframes stepback { from { opacity: 0; transform: translateX(-40px) skewX(4deg); } }
.step h1 { font-size: clamp(48px, 13vw, 72px); margin-top: 16px; }
.step .pile-stage { background: var(--paper); }
.tile-big label { min-height: 112px !important; flex-direction: row !important; align-items: center; gap: 16px !important; padding: 18px 20px !important; border-width: 3px; }
.tile-big .ico { width: 44px; height: 44px; flex: none; color: var(--red); transition: transform .3s cubic-bezier(.5,1.8,.4,1); }
.tile-big .name { font-size: 36px !important; }
.tile-big .tag { font-size: 15px; font-weight: 600; }
.tile-big input:checked + label .ico { color: var(--white); transform: rotate(-12deg) scale(1.12); }
.opt input:checked + label { animation: pick .3s ease; }
@keyframes pick { 40% { transform: scale(1.03); } }
.run-note { font-weight: 600; color: var(--muted); }
.big-field { min-height: 64px !important; font-size: 20px !important; border-width: 3px; border-radius: var(--r-card); padding-inline: 20px; }
.big-field:focus { border-color: var(--red); }
.step .chips { gap: 8px; }
.time-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile-time label { min-height: 128px !important; align-items: center; justify-content: center; text-align: center; padding: 12px 8px !important; border-width: 3px; }
.tile-time .big-n { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 56px; line-height: .9; }
.tile-time .big-n small { font-size: 22px; }
.tile-time .tag { font-weight: 600; font-size: 15px; }
.note-toggle { align-self: flex-start; color: var(--red); text-decoration: none; }
.bib-preview { transform: rotate(-1.5deg); margin-top: 8px; }
.bib-preview .num { font-size: clamp(40px, 11vw, 60px); }
.bib-preview .small { font-size: 16px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.bib-preview .strip { font-size: 16px; }
.edit-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.edit-row::before { content: "Change:"; font-weight: 600; color: var(--muted); margin-right: 4px; }
.edit { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--white); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.edit:hover { border-color: var(--ink); }
.wiz-foot { transition: transform .15s ease; box-shadow: 0 -10px 30px rgba(31,20,20,.06); }
.wiz-foot .ghost { width: 56px; padding: 0; font-size: 24px; }
.wiz-foot .btn { min-width: 150px; font-size: 20px; }
.wiz .bib-view { align-items: center; padding-top: 48px; gap: 24px; }
.wiz .bib-view .bib { width: 100%; }
.wiz .bib-view .bib .strip { font-size: 18px; }
.wiz .bib-view .btn { min-width: 220px; }
.tile-big label { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-content: center; }
.tile-big .ico { grid-row: 1 / span 2; align-self: center; }
.tile-big .name { grid-column: 2; grid-row: 1; }
.tile-big .tag { grid-column: 2; grid-row: 2; }
.tile-big .opt-price { position: static; transform: none; grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 32px; }
.tile-big .name { font-size: clamp(26px, 7vw, 36px) !important; }
.tile-big .opt-price { font-size: clamp(26px, 7vw, 32px); }
/* Bottom bar: Back and Next only */
.wiz-foot-in { gap: 12px; }
.wiz-foot .btn { flex: 1; min-width: 0; }
.step-sub { font-size: 19px; font-weight: 600; color: var(--muted); margin-top: -8px; max-width: 32ch; }
.tile-time .big-n { font-size: clamp(34px, 10vw, 48px); white-space: nowrap; }
.tile-time label { min-height: 104px !important; }
.pv-lines { display: flex; flex-direction: column; gap: 2px; padding-block: 8px 4px; font-size: 18px; font-weight: 600; }
.bib-preview .strip strong { font-size: 30px; }
.wiz .bib-view .bib .strip { font-size: 17px; }
.tile-time .big-n { font-size: clamp(26px, 7.4vw, 44px); }

/* ===== Booking toys: scenes, tile map, morning sky, race bib, price stub ===== */
.scenes { display: flex; flex-direction: column; gap: 12px; }
.scene-opt { position: relative; }
.scene-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scene-opt label { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); align-items: end; min-height: 150px; border-radius: var(--r-sheet); overflow: hidden; cursor: pointer; border: 4px solid transparent; transition: transform .25s cubic-bezier(.4,1.5,.5,1), opacity .25s, border-color .2s; }
.scene-opt.night label { background: var(--ink); color: var(--white); }
.scene-opt.day label { background: var(--blush); color: var(--ink); }
.sc-text { padding: 18px 0 18px 22px; display: flex; flex-direction: column; gap: 2px; align-self: center; }
.sc-text .name { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 8.6vw, 42px); line-height: 1; }
.sc-text .tag { font-weight: 600; font-size: 15px; }
.sc-price { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; margin-top: 8px; }
.scene { display: block; width: 100%; height: auto; }
.scene-opt input:not(:checked) + label { opacity: .72; transform: scale(.97); }
.scene-opt input:checked + label { border-color: var(--red); transform: scale(1); }
.scene-opt input:checked + label::after { content: ""; position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; animation: pop .3s ease both; }
.scene-opt input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }

.map-cap { font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 10px; }
.tilemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 72px; gap: 8px; }
.mt { position: relative; }
.mt input { position: absolute; opacity: 0; pointer-events: none; }
.mt label { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; padding: 6px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); font: 600 13px/1.15 var(--body); color: var(--ink); cursor: pointer; transition: transform .25s cubic-bezier(.4,1.6,.5,1), background-color .2s; }
.mt label:hover { border-color: var(--red); }
.mt .pin-ico { width: 18px; height: 18px; display: none; }
.mt input:checked + label { background: var(--red); color: var(--white); border-color: var(--red); transform: scale(1.07) rotate(-2deg); box-shadow: 0 8px 18px rgba(225,6,0,.35); }
.mt input:checked + label .pin-ico { display: block; animation: pop .35s ease both; }
.mt input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.addr-field { position: relative; }
.field-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; pointer-events: none; }
.addr-field .big-field { padding-left: 56px; }

.morning { border-radius: var(--r-sheet); overflow: hidden; border: 2px solid var(--line); }
.sky { display: block; width: 100%; height: auto; background: linear-gradient(#FFFFFF, #FFD9D3); }
.sun { transition: transform .75s cubic-bezier(.4,1.4,.5,1); }
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border: 0; margin: 0; padding: 8px; background: var(--ink); }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--r-pill); color: rgba(255,255,255,.8); font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(16px, 4.6vw, 20px); cursor: pointer; transition: background-color .2s; white-space: nowrap; }
.seg input:checked + label { background: var(--red); color: var(--white); }
.seg input:focus-visible + label { outline: 3px solid var(--white); outline-offset: -3px; }

.bib-fill { transform: rotate(-1.5deg); padding: 30px 26px 0; gap: 0; margin-top: 4px; }
.bib-fill .event { padding-inline: 8px; }
.bib-name { width: 100%; border: 0; background: transparent; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 12vw, 64px); line-height: 1.05; color: var(--ink); padding: 10px 0 14px; border-bottom: 3px dashed var(--line); outline: none; margin-bottom: 18px; }
.bib-name::placeholder { color: #D9BDB8; }
.bib-name:focus { border-bottom-color: var(--red); }
.bib-fill .strip { margin: 0 -26px; padding: 12px 26px 22px; display: flex; align-items: center; gap: 12px; }
.bib-fill .strip label { font-weight: 600; white-space: nowrap; }
.bib-mobile { flex: 1; min-width: 0; min-height: 44px; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.6); color: var(--white); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 24px; padding: 6px 0; outline: none; }
.bib-mobile::placeholder { color: rgba(255,255,255,.75); }
.bib-mobile:focus { border-bottom-color: var(--white); }
.bib-preview #pv-name { font-size: clamp(44px, 13vw, 72px); overflow-wrap: anywhere; }

.wiz-foot .btn { flex: none; min-width: 124px; }
.stub { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding-right: 4px; }
.stub small { font-size: 13px; font-weight: 600; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stub #price { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; }

/* ===== Round of fixes: tracker line, Disqualified, footers, booking bar, address ===== */
/* Tracker: a thin track that fills red as the washing moves */
.vlane { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.vlane::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--line); }
.vlane::after { content: ""; position: absolute; left: 50%; top: 10px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--red); height: var(--fill, 0px); transition: height .9s cubic-bezier(.6,.05,.3,1); }
.vrunner { width: 22px; height: 22px; background: var(--red); border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--red), 0 6px 14px rgba(225,6,0,.35); z-index: 2; }
.vlegs li.done span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: middle; }
.phone { box-shadow: 0 30px 60px rgba(70,0,0,.22); }
@media (max-width: 640px) {
  .phone { width: 272px; height: 552px; padding: 10px; border-radius: 46px; }
  .screen { border-radius: 37px; }
  .scr-bar { padding: 38px 16px 12px; }
  .scr-body { padding: 14px 16px 16px; }
  .scr-status strong { font-size: 21px; }
  .vlegs li { font-size: 14px; }
  .scr-foot strong { font-size: 22px; }
}

/* Disqualified: a proper card */
.dq-card { margin-top: 24px; background: var(--ink); color: var(--white); border-radius: var(--r-sheet); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: center; }
.dq-head h3 { font-size: clamp(32px, 4.4vw, 44px); color: var(--white); }
.dq-head p { color: rgba(255,255,255,.82); font-weight: 600; margin-top: 6px; }
.dq-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.dq-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; }
.dq-x { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--red); }
.dq-x::before, .dq-x::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 4px; border-radius: 2px; background: var(--white); transform: rotate(45deg); }
.dq-x::after { transform: rotate(-45deg); }
@media (max-width: 960px) { .dq-card { grid-template-columns: minmax(0, 1fr); } .dq-card .btn { justify-self: start; } }
@media (max-width: 480px) { .dq-list { grid-template-columns: minmax(0, 1fr); } }

/* Footer polish */
.site-foot .wrap { padding-block: 48px 40px; gap: 36px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-top .wm { font-size: clamp(30px, 7vw, 96px); }
.foot-h { font-size: 18px; margin-bottom: 12px; }
.foot-cols a { font-weight: 600; opacity: .95; }
.foot-base { background: var(--red-deep); color: var(--white); padding: 0; border: 0; }
.foot-base .wrap { padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: row; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }

/* "Book a pickup" floats on phones instead of sitting in a bar */
@media (max-width: 640px) {
  .thumb-bar { background: transparent; border-top: 0; pointer-events: none; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .thumb-bar .btn { pointer-events: auto; min-height: 58px; box-shadow: 0 12px 30px rgba(225,6,0,.38), 0 2px 0 rgba(0,0,0,.08); }
}

/* Booking bar: back, and one wide button with the price in it */
.wiz-foot .next-btn { flex: 1; min-width: 0; justify-content: space-between; padding: 0 8px 0 26px; min-height: 60px; }
.next-btn #next-label { font-size: 20px; }
.next-price { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.18); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 24px; font-variant-numeric: tabular-nums; }
.wiz-foot .ghost { width: 60px; height: 60px; min-height: 60px; flex: none; }

/* Where from: address with suggestions, then the course check */
.addr-field { position: relative; }
.addr-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: 0 18px 40px rgba(31,20,20,.18); }
.addr-list li { display: flex; flex-direction: column; padding: 10px 14px; min-height: 52px; justify-content: center; border-radius: var(--r-sm); cursor: pointer; }
.addr-list li b { font-weight: 600; }
.addr-list li span { font-size: 14px; color: var(--muted); }
.addr-list li[aria-selected="true"], .addr-list li:hover { background: var(--paper); }
.course-hit { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-card); background: var(--paper); border: 3px solid var(--red); animation: stepin .3s ease both; }
.course-hit .hit-pin { width: 40px; height: 40px; flex: none; animation: pop .4s ease both; }
.course-hit div { display: flex; flex-direction: column; }
.course-hit b { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; }
.course-hit span { font-weight: 600; color: var(--go); }
.course-hit.off { border-color: var(--line); }
.course-hit.off span { color: var(--muted); }
.course-hit.off .hit-pin path { fill: var(--muted); }
.sub-pick legend { font-weight: 600; color: var(--muted); margin-bottom: 10px; padding: 0; }
.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sb { position: relative; }
.sb input { position: absolute; opacity: 0; pointer-events: none; }
.sb label { display: flex; align-items: center; min-height: 56px; padding: 0 16px; border-radius: var(--r-card); border: 2px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s; }
.sb label:hover { border-color: var(--ink); }
.sb input:checked + label { background: var(--red); border-color: var(--red); color: var(--white); }
.sb input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Suburb tiles: a full 3 x 4 grid (11 suburbs + Somewhere else?) */
.tilemap { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 68px; }
.mt-other label { background: var(--white); border-style: dashed; color: var(--muted); }
.mt-other input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: none; }
.other-note { font-weight: 600; color: var(--ink); background: var(--paper); border-radius: var(--r-sm); padding: 12px 16px; }
/* Powered by ClientTell: the words, then the mark, then the wordmark (one logo file, in that order) */
.pby { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--white); }
.pby img { height: 20px; width: auto; display: block; }
.pby:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base .wrap { align-items: center; }
.foot-base .wrap { justify-content: space-between; width: 100%; }
/* Race cards: the names fit a phone-width card (TOMORROW is the long one) */
.when .opt label { padding-inline: 14px; }
.when .opt .name { font-size: clamp(18px, 5.2vw, 24px); letter-spacing: -.01em; }
/* Booking form fits the screen: no progress lane. The form is exactly the height left between the header and the
   Next bar, and each step's picture (pile, scenes, morning sky) takes whatever room is left, so nothing needs scrolling. */
.wiz { min-height: 0; }
.wiz-wrap { min-height: calc(100svh - 68px - env(safe-area-inset-top, 0px)); height: calc(100svh - 68px - env(safe-area-inset-top, 0px)); padding-block: 12px calc(92px + env(safe-area-inset-bottom, 0px)); }
#book-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#book-form .step:not([hidden]) { flex: 1; min-height: 0; gap: 12px; }
.step h1 { font-size: clamp(30px, min(12vw, 6.4svh), 72px); margin-top: 4px; margin-bottom: 0; }
.step-sub { font-size: 17px; margin-top: -4px; }
.step .pile-stage { flex: 1 1 0; min-height: 72px; height: auto; max-height: 250px; }
.scenes { flex: 1 1 0; min-height: 0; max-height: 330px; }
.scene-opt { flex: 1 1 0; min-height: 0; display: flex; }
.scene-opt label { flex: 1; min-height: 76px; }
.step .morning { flex: 1 1 0; min-height: 0; max-height: 300px; display: flex; flex-direction: column; }
.step .morning .sky { flex: 1 1 0; min-height: 56px; height: auto; }
.tilemap { grid-auto-rows: clamp(38px, 6.4svh, 64px); }
.step .field { min-height: 52px; }
.bib-fill { padding-top: 20px; }
.wiz .bib-view { height: auto; }
body:has(.wiz) { padding-bottom: 0; }

/* ================= The customer's link (/t/...): their washing's race, live ================= */
.tk { background: var(--paper); padding-block: 16px 48px; }
.tk-wrap { max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tk-hi { font-weight: 600; color: var(--muted); }
.tk-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--red-deep); background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.tk-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.tk-head { font-size: clamp(44px, 13vw, 76px); line-height: .9; color: var(--red); }
.tk-sub { font-size: 19px; font-weight: 600; max-width: 32ch; }
.stage { position: relative; border-radius: var(--r-sheet); overflow: hidden; border: 3px solid var(--ink); aspect-ratio: 360 / 220; background: linear-gradient(#FFFFFF, #FFE3DE); transition: background-color .4s; }
.stage .sc { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.tk[data-st="booked"] .sc-booked, .tk[data-st="unpaid"] .sc-booked, .tk[data-st="picked_up"] .sc-picked_up, .tk[data-st="washing"] .sc-washing, .tk[data-st="drying"] .sc-drying,
.tk[data-st="folding"] .sc-folding, .tk[data-st="out"] .sc-out, .tk[data-st="home"] .sc-home { display: block; animation: scene-in .5s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes scene-in { from { transform: scale(.94) translateY(8px); opacity: 0; } }
.tk[data-st="picked_up"] .stage, .tk[data-st="out"] .stage { background: linear-gradient(#FFFFFF 60%, #FFF1EE); }
.tk[data-st="washing"] .stage { background: linear-gradient(#F3FAFF, #FFFFFF); }
.tk[data-st="drying"] .stage { background: linear-gradient(#FFF1EC, #FFFFFF); }
.tk[data-st="folding"] .stage { background: #FFFFFF; }
.tk[data-st="home"] .stage { background: linear-gradient(#1F1414, #4A2424); }
.van-txt { font: italic 900 12px var(--display); fill: #FFFFFF; letter-spacing: .02em; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-5px); } }
.stage .wheel { transform-box: fill-box; transform-origin: center; animation: spin .5s linear infinite; }
.stage .van-body { animation: bob .35s ease-in-out infinite; }
.stage .road { animation: road .5s linear infinite; }
@keyframes road { to { stroke-dashoffset: 36; } }
.stage .speed path { animation: whoosh .7s linear infinite; }
.stage .speed path:nth-child(2) { animation-delay: .2s; } .stage .speed path:nth-child(3) { animation-delay: .4s; }
@keyframes whoosh { from { transform: translateX(30px); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(-30px); opacity: 0; } }
.stage .peek { animation: bob .35s ease-in-out infinite; }
.stage .dash { animation: dash 3.2s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes dash { 0% { transform: translateX(-40px); } 70%, 100% { transform: translateX(60px); } }
.stage .sunup { animation: sunup 4s ease-in-out infinite alternate; }
@keyframes sunup { from { transform: translateY(18px); } }
.stage .rays { transform-origin: 80px 70px; animation: spin 14s linear infinite; }
.stage .bob { animation: bob 1.4s ease-in-out infinite; }
.stage .tumble { transform-origin: 180px 130px; animation: spin 2.6s linear infinite; }
.stage .tumble.fast { animation-duration: 1.2s; }
.stage .slosh { animation: slosh 1.3s ease-in-out infinite alternate; }
@keyframes slosh { from { transform: translateX(-60px); } to { transform: translateX(0); } }
.stage .blink { animation: pulse 1s steps(2) infinite; }
.stage .bubbles circle { animation: rise 2.4s ease-in infinite; transform-box: fill-box; }
.stage .bubbles circle:nth-child(2) { animation-delay: .6s; } .stage .bubbles circle:nth-child(3) { animation-delay: 1.2s; } .stage .bubbles circle:nth-child(4) { animation-delay: .3s; } .stage .bubbles circle:nth-child(5) { animation-delay: 1.5s; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-110px); opacity: 0; } }
.stage .heat path { animation: heat 1.6s ease-in-out infinite; }
.stage .heat path:nth-child(2) { animation-delay: .5s; } .stage .heat path:nth-child(3) { animation-delay: 1s; }
@keyframes heat { from { transform: translateY(8px); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(-10px); opacity: 0; } }
.stage .fold-top { animation: fold 2.4s cubic-bezier(.4,1.4,.5,1) infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes fold { 0% { transform: translate(-70px, -60px) rotate(-20deg) scaleY(2.2); opacity: 0; } 20% { opacity: 1; } 55%, 100% { transform: none; opacity: 1; } }
.stage .sock.l { animation: sockl 1.6s ease-in-out infinite; } .stage .sock.r { animation: sockr 1.6s ease-in-out infinite; }
@keyframes sockl { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(0); } }
@keyframes sockr { 0%, 100% { transform: translateX(10px); } 50% { transform: translateX(0); } }
.stage .heart { transform-box: fill-box; transform-origin: center; animation: heart 1.6s ease-in-out infinite; }
@keyframes heart { 0%, 35%, 100% { transform: scale(0); } 55% { transform: scale(1.2); } 70% { transform: scale(1); } }
.stage .land { animation: land .8s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes land { from { transform: translateY(-80px); } }
.stage .confetti rect { animation: fall 2.8s linear infinite; transform-box: fill-box; transform-origin: center; }
.stage .confetti rect:nth-child(2n) { animation-duration: 3.4s; animation-delay: .7s; } .stage .confetti rect:nth-child(3n) { animation-duration: 2.4s; animation-delay: 1.3s; } .stage .confetti rect:nth-child(4n) { animation-delay: 1.9s; }
@keyframes fall { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(230px) rotate(540deg); } }
.stage .stars circle { animation: pulse 2s ease-in-out infinite; } .stage .stars circle:nth-child(2n) { animation-delay: 1s; }

/* The lane: a running track with the steps under it */
.tk-lane { padding: 8px 4px 0; }
.tk-track { position: relative; height: 20px; border-radius: 10px; background: var(--blush); border-top: 3px solid var(--white); border-bottom: 3px solid var(--white); box-shadow: 0 0 0 2px var(--line); }
.tk-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 10px; background: var(--red); transition: width .9s cubic-bezier(.5,1.3,.4,1); }
.tk-dot { position: absolute; top: 50%; left: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--white); border: 5px solid var(--ink); box-shadow: 0 4px 10px rgba(60,0,0,.3); transition: left .9s cubic-bezier(.5,1.3,.4,1); }
.tk-steps { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 10px; }
.tk-steps li { text-align: center; font-size: 12px; white-space: nowrap; font-weight: 600; color: var(--muted); line-height: 1.2; }
.tk-steps li small { display: block; font-size: 11px; font-weight: 400; min-height: 14px; }
.tk-steps li.done { color: var(--ink); }
.tk-steps li.now { color: var(--red-deep); }

/* Bib, actions, medals */
.tk-bib { margin-top: 16px; transform: rotate(-1.5deg); }
.tk-bib .num { font-size: clamp(48px, 14vw, 72px); overflow-wrap: anywhere; }
.tk-bib .small { font-weight: 600; font-size: 16px; padding-inline: 8px; }
.tk-when { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 8px; }
.tk-when small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.tk-when b { font-weight: 600; font-size: 17px; }
.tk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.tk-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; min-height: 132px; border-radius: var(--r-card); text-align: left; cursor: pointer; font: inherit; transition: transform .15s; }
.tk-card:active { transform: scale(.97); }
.tk-card svg { width: 44px; height: 44px; margin-bottom: auto; }
.tk-card b { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1; margin-top: 12px; }
.tk-card span { font-size: 15px; font-weight: 600; }
.tk-again { background: var(--red); color: var(--white); border: 3px solid var(--red); box-shadow: 0 10px 24px rgba(225,6,0,.28); }
.tk-again svg { animation: spin 6s linear infinite; }
.tk-receipt { background: var(--white); color: var(--ink); border: 3px solid var(--ink); }
.tk-receipt span { color: var(--muted); }
.medals { margin-top: 24px; }
.medals h2 { font-size: 32px; }
.medals-sub { color: var(--muted); font-weight: 600; margin-top: 4px; }
.medal-row { list-style: none; display: flex; gap: 12px; overflow-x: auto; padding: 12px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.medal-row::-webkit-scrollbar { display: none; }
.medal { flex: none; width: 104px; scroll-snap-align: start; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.medal-disc { position: relative; width: 76px; height: 96px; }
.medal-disc::before { content: ""; position: absolute; left: 22px; top: 0; width: 32px; height: 40px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, var(--white) 8px 16px); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); border: 2px solid var(--ink); }
.medal-disc i { position: absolute; left: 4px; bottom: 0; width: 68px; height: 68px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, #FFE3DE 60%, #F5C2B9); border: 3px solid var(--ink); display: grid; place-items: center; font: italic 900 26px/1 var(--display); color: var(--red); }
.medal.now .medal-disc i { background: radial-gradient(circle at 35% 30%, #FFF3F1, var(--red) 70%); color: var(--white); }
.medal.running .medal-disc i { background: var(--white); border-style: dashed; color: var(--muted); }
.medal b { font-weight: 600; font-size: 14px; }
.medal small { font-size: 13px; color: var(--muted); }
.tk-help { color: var(--muted); font-weight: 600; text-align: center; margin-top: 16px; }
.tk-demo { align-self: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); font: 600 16px var(--body); cursor: pointer; }

/* Sheets: Run it back, the receipt */
.tk-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(31,20,20,.5); display: flex; align-items: flex-end; justify-content: center; }
.tk-sheet { width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; background: var(--white); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; animation: sheet-up .3s cubic-bezier(.2,.9,.3,1) both; }
@keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
.tk-sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tk-sheet-top h2 { font-size: 36px; }
.tk-sheet-top p { color: var(--muted); font-weight: 600; margin-top: 4px; }
.tk-x { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font: 600 22px/1 var(--body); color: var(--ink); cursor: pointer; }
.door { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); font-weight: 600; }
.door svg { width: 22px; height: 22px; flex: none; }
.ag-label { font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: -8px; }
.piles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border: 0; }
.piles input, .ag-race input, .ag-win input { position: absolute; opacity: 0; pointer-events: none; }
.piles label { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 96px; padding: 8px 2px; border-radius: 16px; border: 2px solid var(--line); background: var(--white); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.1; cursor: pointer; }
.piles label i { display: block; width: 34px; border-radius: 4px; background: repeating-linear-gradient(var(--red) 0 7px, var(--ink) 7px 9px, var(--white) 9px 16px, var(--ink) 16px 18px); border: 2px solid var(--ink); }
.piles input:checked + label { border-color: var(--red); background: var(--blush); transform: translateY(-3px); }
.piles input:focus-visible + label, .ag-race input:focus-visible + label, .ag-win input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.ag-race { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ag-race label { display: flex; flex-direction: column; gap: 2px; padding: 14px; min-height: 92px; border-radius: var(--r-card); border: 3px solid var(--line); cursor: pointer; }
.ag-race .night + label { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ag-race .day + label { background: var(--blush); }
.ag-race label b { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1; }
.ag-race label span { font-size: 14px; font-weight: 600; opacity: .85; }
.ag-race label strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px; margin-top: auto; }
.ag-race input:not(:checked) + label { opacity: .6; transform: scale(.97); }
.ag-race input:checked + label { box-shadow: 0 0 0 3px var(--red); }
.ag-win { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 999px; background: var(--ink); border: 0; }
.ag-win label { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; color: var(--white); font: italic 900 17px var(--display); cursor: pointer; }
.ag-win input:checked + label { background: var(--red); }
.ag-pay { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 0 12px 0 24px; border-radius: 999px; border: 0; background: var(--red); color: var(--white); font: italic 900 22px var(--display); text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 24px rgba(225,6,0,.3); }
.ag-pay span { background: rgba(255,255,255,.18); border-radius: 999px; padding: 8px 14px; }
.ag-pay:disabled { opacity: .6; }
.ag-err { color: var(--red-deep); font-weight: 600; min-height: 20px; }
.rcpt { position: relative; background: var(--white); border: 3px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 12px; }
.rcpt::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: -12px; height: 14px; background: linear-gradient(-45deg, transparent 8px, var(--ink) 8px, var(--ink) 11px, transparent 11px) 0 0 / 16px 14px, linear-gradient(45deg, transparent 8px, var(--ink) 8px, var(--ink) 11px, transparent 11px) 0 0 / 16px 14px; }
.rcpt .wm { color: var(--red); font-size: 22px; }
.rcpt .wm b { background: var(--red); color: var(--white); }
.rcpt dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.rcpt dt { color: var(--muted); font-weight: 600; }
.rcpt dd { text-align: right; font-weight: 600; }
.rcpt .tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line-2, #E6CEC9); padding-top: 12px; }
.rcpt .tot strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 36px; }
.rcpt .stamp { align-self: flex-end; transform: rotate(-8deg); border: 3px solid var(--red); color: var(--red); border-radius: 8px; padding: 2px 10px; font: italic 900 22px var(--display); text-transform: uppercase; }

/* Confetti burst when it's home */
.confetti-burst { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti-burst i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: burst-fall linear forwards; }
@keyframes burst-fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  .stage *, .stage .sc, .tk-again svg, .tk-live::before, .tk-sheet { animation: none !important; }
  .tk-fill, .tk-dot { transition: none; }
  .confetti-burst { display: none; }
}
@media print {
  body > *:not(.tk-layer) { display: none !important; }
  .tk-scrim { position: static; background: none; display: block; }
  .tk-sheet { max-height: none; box-shadow: none; animation: none; }
  .tk-sheet .tk-x, .tk-sheet .no-print { display: none !important; }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Lane: the dot, the red fill and a mark for each step sit at the centre of that step's column, so every label and time lines up under its own mark */
.tk-mark { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--white); z-index: 1; }
.tk-fill { border-radius: 10px 0 0 10px; }
.tk-dot { z-index: 2; }
.tk-steps { margin-top: 12px; }
.tk-steps li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tk-steps li span { line-height: 1; }
.tk-steps li small { font-size: 11px; line-height: 1; min-height: 11px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.tk-steps { padding: 0; }
/* Pile size: roughly how much it weighs, next to the name (we price by the bag: Standard about 10kg, Family about 20kg) */
.pile-who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pile-who small { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.piles label .pk { font-size: 11px; font-weight: 400; color: var(--muted); }
.pile-tag { flex-wrap: wrap; row-gap: 2px; }
.pile-who { white-space: nowrap; }
.pile-tag #pile-note { margin-left: auto; }
.order .pay .btn { white-space: nowrap; padding-inline: 22px; }
@media (max-width: 380px) { .pile-tag strong, .step .pile-tag strong { font-size: 25px; } }
/* Pile label: name and weight on one line, the bag(s) underneath, the same for every size so nothing jumps as you slide */
.pile-tag { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 2px; }
.pile-tag #pile-note { margin-left: 0; }
.pile-who { flex-wrap: nowrap; }
@media (max-width: 380px) { .pile-tag strong, .step .pile-tag strong { font-size: 24px; } }
