/* Race/Pass 27 — shared styles */
:root {
  --rp-bg: #E6E6E3; --rp-band: #D9DAD6; --rp-card: #FFFFFF; --rp-sub: #F2F2F0; --rp-hover: #F4F4F2;
  --rp-ink: #0E1014; --rp-inv: #FFFFFF; --rp-muted: #50535A; --rp-muted2: #7C7F86; --rp-body: #2F3238;
  --rp-line: rgba(14,16,20,.12); --rp-line2: #C9CBD0; --rp-line3: #ECECEA; --rp-deep: #0E1014;
  --rp-blue: #1D3BF5; --rp-tbc: #D9DAD6; --rp-glass: rgba(230,230,227,.94); --rp-veil: rgba(230,230,227,.55);
  --rp-warn: #FFF1EA; --rp-warnInk: #7A2A0A; --rp-warnInk2: #C2410C;
  --orange: #FF5B1F; --orange-hi: #FF7A47; --blue: #1D3BF5;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Archivo', system-ui, sans-serif;
  color-scheme: light;
}
html[data-rp-theme="dark"] {
  color-scheme: dark;
  --rp-bg: #111215; --rp-band: #0A0B0D; --rp-card: #1B1D22; --rp-sub: #22252B; --rp-hover: #26292F;
  --rp-ink: #ECECE8; --rp-inv: #0E1014; --rp-muted: #A3A6AD; --rp-muted2: #8E9198; --rp-body: #C9CBD0;
  --rp-line: rgba(255,255,255,.16); --rp-line2: #3A3D44; --rp-line3: #2C2F35; --rp-deep: #08090B;
  --rp-blue: #8597FF; --rp-tbc: #2C2F35; --rp-glass: rgba(17,18,21,.92); --rp-veil: rgba(17,18,21,.6);
  --rp-warn: #2A1810; --rp-warnInk: #FFB494; --rp-warnInk2: #FF9A6B;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; background: var(--rp-bg); color: var(--rp-ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; min-width: 0; }
a { color: var(--rp-blue); }
a:hover { color: var(--orange); }
button, select { font: inherit; cursor: pointer; color: inherit; }
input, textarea { font: inherit; color: var(--rp-ink); background: var(--rp-card); }
input::placeholder, textarea::placeholder { color: var(--rp-muted2); }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.display { font-family: var(--sans); font-stretch: 125%; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--rp-blue); font-weight: 700; }
.eyebrow.muted { color: var(--rp-muted); font-weight: 400; }
.eyebrow.orange { color: var(--orange); }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rp-muted); }
.h-page { font-family: var(--sans); font-stretch: 125%; text-transform: uppercase; margin: 14px 0 0; font-size: clamp(48px, 8vw, 104px); line-height: .9; font-weight: 300; letter-spacing: -.02em; }
.h-page b, .h-page strong { font-weight: 800; }
.c-orange { color: var(--orange); }
.c-blue { color: var(--rp-blue); }
.c-muted { color: var(--rp-muted); }
.muted { color: var(--rp-muted); }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.card { background: var(--rp-card); border-radius: 18px; }
.topo { background-color: var(--rp-deep); background-image: repeating-radial-gradient(ellipse 120% 90% at 85% 20%, transparent 0 26px, rgba(255,255,255,.05) 26px 27px), repeating-radial-gradient(ellipse 90% 120% at 10% 90%, transparent 0 34px, rgba(255,255,255,.04) 34px 35px); color: #FFFFFF; }

/* Header */
.site-header { border-bottom: 1px solid var(--rp-line); }
.site-header.sticky { position: sticky; top: 0; z-index: 30; background: var(--rp-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header .bar { height: 76px; display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--rp-ink); flex: none; }
.brand:hover { color: var(--rp-ink); }
.brand svg { flex: none; }
.brand span { font-stretch: 125%; text-transform: uppercase; font-weight: 800; font-size: 18px; white-space: nowrap; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.hdr-link { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rp-ink); text-decoration: none; padding: 0 6px; white-space: nowrap; }
.hdr-note { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rp-muted); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1.5px solid var(--rp-line); background: transparent; color: var(--rp-ink); display: grid; place-items: center; flex: none; }
.icon-btn:hover { border-color: var(--rp-ink); }
.theme-btn { height: 44px; padding: 0 14px 0 10px; border-radius: 999px; border: 1.5px solid var(--rp-line); background: transparent; color: var(--rp-ink); display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; flex: none; }
.theme-btn:hover { border-color: var(--rp-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; border-radius: 14px; font-family: var(--mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, filter .15s; }
.btn-orange { background: var(--orange); color: #0E1014; }
.btn-orange:hover { background: var(--orange-hi); color: #0E1014; }
.btn-orange.hov-ink:hover { background: var(--rp-ink); color: var(--rp-inv); }
.btn-orange.cta-white:hover { background: #FFFFFF; color: #0E1014; }
.btn-ink { background: var(--rp-ink); color: var(--rp-inv); }
.btn-ink:hover { background: #1D3BF5; color: #FFFFFF; }
.btn-outline { background: var(--rp-card); color: var(--rp-ink); border: 1.5px solid var(--rp-ink); font-weight: 400; }
.btn-outline:hover { background: var(--rp-ink); color: var(--rp-inv); }
.btn-ghost { background: transparent; border: 2px solid var(--rp-ink); color: var(--rp-ink); font-weight: 400; }
.btn-ghost:hover { background: var(--rp-ink); color: var(--rp-inv); }
.btn-disabled, .btn[disabled] { background: var(--rp-line2); color: #0E1014; cursor: not-allowed; }
.pill { border-radius: 999px; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 12px; }
.btn-md { height: 56px; padding: 0 22px; font-size: 13px; }
.btn-lg { height: 68px; padding: 0 28px; font-size: 15px; }
.btn-xl { height: 76px; padding: 0 34px; font-size: 15px; }
.btn-block { width: 100%; }

/* Chips */
.chip { height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--rp-line); background: var(--rp-card); color: var(--rp-ink); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.chip:hover { border-color: var(--rp-ink); }
.chip.on { background: var(--rp-ink); color: var(--rp-inv); border-color: var(--rp-ink); }
.chip.sm { height: 34px; padding: 0 11px; font-size: 11px; letter-spacing: .04em; text-transform: none; }
.chip.dark { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.3); }
.chip.dark:hover { border-color: #FFFFFF; }
.chip.dark.on { background: #FFFFFF; color: #0E1014; border-color: #FFFFFF; }
.chip.square { border-radius: 8px; height: 36px; padding: 0 14px; font-size: 11px; }

/* Status badge (date status) */
.st { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--rp-ink); background: transparent; color: var(--rp-ink); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.st.sm { height: 24px; padding: 0 9px; font-size: 10px; }
.st-confirmed { background: #1D3BF5; border-color: #1D3BF5; color: #FFFFFF; }
.st-estimated { border-style: dashed; }
.st-tbc { background: var(--rp-tbc); color: var(--rp-muted); border: 1.5px dotted #7C7F86; }
.on-dark .st { border-color: #FFFFFF; color: #FFFFFF; }
.on-dark .st-confirmed { background: #1D3BF5; border-color: #1D3BF5; }
.on-dark .st-tbc { background: transparent; color: #C9CBD0; border-color: #7C7F86; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }

/* Entry state */
.en { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.en i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #9A9DA3; display: inline-block; flex: none; }
.en-open i { background: #FF5B1F; border-color: #FF5B1F; }
.en-notyet i { background: var(--rp-card); border-color: #1D3BF5; }
.en-closed i { background: #9A9DA3; border-color: #9A9DA3; }
.en-soldout i { background: var(--rp-ink); border-color: var(--rp-ink); }
.en-unknown i { background: transparent; border-color: #9A9DA3; }
.on-dark .en-soldout i { background: #FFFFFF; border-color: #FFFFFF; }

.miss { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rp-muted2); }
.miss-box { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--rp-muted2); border: 1.5px dashed var(--rp-line2); border-radius: 6px; padding: 5px 9px; }
.tag-soft { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; background: var(--rp-bg); border-radius: 6px; padding: 6px 9px; white-space: nowrap; }

/* Inputs */
.field { height: 60px; border-radius: 12px; border: 1.5px solid var(--rp-line2); padding: 0 18px; font-size: 18px; outline: none; width: 100%; min-width: 0; }
.field:focus { border-color: var(--rp-ink); }
textarea.field { height: auto; padding: 14px 16px; font-size: 17px; resize: vertical; }
select.field { background: var(--rp-card); color: var(--rp-ink); font-size: 16px; padding: 0 14px; }
.field.invalid { border-color: var(--orange); }

/* Checkbox rows */
.check { display: flex; gap: 12px; align-items: flex-start; background: none; border: none; padding: 0; text-align: left; font-size: 14px; line-height: 1.45; color: var(--rp-muted); }
.check .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--rp-ink); background: var(--rp-card); flex: none; display: grid; place-items: center; color: #FFFFFF; font-size: 13px; font-weight: 800; }
.check[aria-checked="true"] .box { background: #1D3BF5; border-color: #1D3BF5; }

/* Toggle */
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--rp-line2); display: flex; justify-content: flex-start; padding: 3px; flex: none; transition: background .15s; }
.switch::after { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--rp-card); }
[aria-checked="true"] > .switch { background: #1D3BF5; justify-content: flex-end; }

/* Footer */
.site-footer { background: var(--rp-band); border-top: 1px solid var(--rp-line); }
.site-footer .row { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--rp-muted); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Toast + back to top */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; background: var(--rp-ink); color: var(--rp-inv); border-radius: 999px; padding: 14px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; box-shadow: 0 12px 30px rgba(14,16,20,.3); max-width: calc(100vw - 32px); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 55; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; border: none; background: var(--orange); color: #0E1014; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 28px rgba(14,16,20,.25); }
.to-top:hover { background: var(--rp-ink); color: var(--rp-inv); }

/* Modal / dialog */
.scrim { position: fixed; inset: 0; background: rgba(14,16,20,.5); z-index: 50; }
.dialog { position: fixed; left: 50%; top: 10vh; transform: translateX(-50%); width: min(560px, 92vw); max-height: 76vh; background: var(--rp-card); border-radius: 18px; z-index: 51; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(14,16,20,.3); }

/* ---------- Landing ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { margin: 0; font-stretch: 125%; text-transform: uppercase; font-weight: 800; font-size: clamp(48px, 8.4vw, 132px); line-height: .86; letter-spacing: -.01em; }
.hero .lede { margin: 0; max-width: 540px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--rp-muted); text-wrap: pretty; }
.outline-tag { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rp-ink); display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.price-card { background: var(--rp-card); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(14,16,20,.12); max-width: 520px; width: 100%; justify-self: end; }
.price-card .top { background: #1D3BF5; color: #FFFFFF; padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.perk { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--rp-line2); font-size: 16px; font-weight: 600; }
.perk .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #0E1014; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.stats-band { background: var(--rp-ink); color: var(--rp-inv); }
.stats-band .row { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.stats-band b { color: var(--orange); }
.why-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.why { background: var(--rp-card); border-radius: 18px; padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.why h3 { margin: 0; font-stretch: 125%; text-transform: uppercase; font-weight: 800; font-size: 28px; line-height: .95; }
.why p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--rp-muted); text-wrap: pretty; }
.board-band { background: var(--rp-band); color: #FFFFFF; }
html:not([data-rp-theme="dark"]) .board-band { background: #0E1014; }
.board-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 2px solid var(--rp-ink); }
.steps > div { padding: 26px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.steps .no { font-stretch: 125%; font-weight: 800; font-size: 64px; line-height: .9; }
.steps h3 { margin: 0; font-size: 22px; font-weight: 800; }
.steps p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--rp-muted); max-width: 340px; text-wrap: pretty; }
.cta-band { max-width: 1312px; margin: 0 auto; background: #1D3BF5; color: #FFFFFF; border-radius: 24px; padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta-band h2 { margin: 0; font-stretch: 125%; text-transform: uppercase; font-weight: 800; font-size: clamp(44px, 6.4vw, 96px); line-height: .86; }

/* ---------- Checkout ---------- */
.co-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; align-items: start; }
.ticket { background: var(--rp-card); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 rgba(14,16,20,.06); }
.ticket .head { background: #1D3BF5; color: #FFFFFF; padding: 16px 26px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.tear { position: relative; height: 0; border-top: 2px dashed var(--rp-line2); margin: 0 18px; }
.tear::before, .tear::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--rp-bg); }
.tear::before { left: -30px; } .tear::after { right: -30px; }
.barcode { width: 120px; height: 56px; flex: none; background: repeating-linear-gradient(90deg, var(--rp-ink) 0 2px, transparent 2px 4px, var(--rp-ink) 4px 7px, transparent 7px 9px, var(--rp-ink) 9px 10px, transparent 10px 13px); }
.diamond { width: 8px; height: 8px; background: #1D3BF5; transform: rotate(45deg); flex: none; position: relative; top: -2px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method-grid .chip { height: 52px; border-radius: 10px; padding: 0 8px; }
.card-box { border: 1.5px solid var(--rp-line2); border-radius: 12px; overflow: hidden; }
.card-box input { width: 100%; height: 56px; border: none; padding: 0 18px; font-size: 17px; outline: none; min-width: 0; }
.card-box .split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--rp-line3); }
.card-box .split input:first-child { border-right: 1.5px solid var(--rp-line3); }
.summary { background: var(--rp-sub); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; }
.stamp { border: 3px solid var(--orange); color: var(--orange); border-radius: 10px; padding: 12px 18px; font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-align: center; line-height: 1.4; transform: rotate(-9deg); }

.welcome-stamp { position: absolute; right: 56px; top: 48px; }
@media (max-width: 1100px) { .welcome-stamp { position: static; display: inline-block; margin: 0 0 22px 6px; } }

/* ---------- Legal ---------- */
.legal-grid { padding-top: 48px; padding-bottom: 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 6px; }
.legal-nav button { height: 52px; border-radius: 12px; border: none; background: transparent; color: var(--rp-ink); text-align: left; padding: 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.legal-nav button:hover { background: var(--rp-card); }
.legal-nav button[aria-current="true"] { background: var(--rp-ink); color: var(--rp-inv); }
.legal-sec { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px dashed var(--rp-line2); }
.legal-sec h2 { margin: 0; font-size: 21px; font-weight: 800; }
.legal-sec p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--rp-body); text-wrap: pretty; max-width: 720px; }

/* ---------- Hub ---------- */
.hub-nav { display: flex; gap: 2px; height: 100%; }
.hub-nav button { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: none; border: none; border-top: 3px solid transparent; border-bottom: 3px solid transparent; color: var(--rp-ink); padding: 0 10px; white-space: nowrap; height: 100%; display: flex; align-items: center; gap: 8px; }
.hub-nav button[aria-current="page"] { color: var(--rp-blue); border-bottom-color: #1D3BF5; }
.count-pill { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rp-ink); color: var(--rp-inv); font-size: 11px; letter-spacing: 0; display: grid; place-items: center; }
.pass-chip { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1.5px dashed var(--rp-ink); border-radius: 999px; padding: 8px 14px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.pass-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: none; background: #1D3BF5; color: #FFFFFF; font-weight: 800; font-size: 16px; flex: none; }
.units-pop { position: absolute; right: 0; top: 54px; z-index: 41; width: 280px; background: var(--rp-card); color: var(--rp-ink); border: 1px solid var(--rp-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(14,16,20,.18); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.seg { display: flex; gap: 2px; border: 1.5px solid var(--rp-line); border-radius: 999px; padding: 3px; }
.seg button { height: 36px; min-width: 56px; padding: 0 12px; border-radius: 999px; border: none; background: transparent; color: var(--rp-ink); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.seg button.on { background: var(--rp-ink); color: var(--rp-inv); }

.hub-main { position: relative; padding-top: 44px; padding-bottom: 96px; min-height: 80vh; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; margin-bottom: 30px; }
.surprise { height: 76px; padding: 0 30px 0 16px; border-radius: 999px; border: none; background: var(--rp-ink); color: var(--rp-inv); display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.surprise:hover { background: #1D3BF5; color: #FFFFFF; }
.surprise .globe { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; }
.search { flex: 1 1 420px; height: 64px; background: var(--rp-card); border-radius: 14px; display: flex; align-items: center; gap: 14px; padding: 0 20px; border: 1.5px solid var(--rp-line); }
.search:focus-within { border-color: var(--rp-ink); }
.search input { flex: 1; border: none; outline: none; background: transparent; font-size: 18px; min-width: 0; }
.viewtoggle { display: flex; background: var(--rp-card); border-radius: 14px; padding: 6px; gap: 4px; border: 1.5px solid var(--rp-line); }
.viewtoggle button { height: 50px; padding: 0 22px; border-radius: 10px; border: none; background: transparent; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.viewtoggle button.on { background: var(--rp-ink); color: var(--rp-inv); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.finder { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { background: var(--rp-card); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.filters .grp { display: flex; flex-direction: column; gap: 10px; }
.filters .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sparse { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--rp-muted2); border: 1px dashed var(--rp-line2); border-radius: 4px; padding: 2px 5px; }
.linkbtn { background: none; border: none; padding: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-blue); }
.unk { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: none; padding: 0; text-align: left; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.legend { display: flex; gap: 14px; align-items: center; color: var(--rp-muted); flex-wrap: wrap; }
.legend span { display: flex; gap: 6px; align-items: center; }
.list { background: var(--rp-card); border-radius: 16px; overflow: hidden; }
.race-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--rp-line3); cursor: pointer; }
.race-row:hover { background: var(--rp-hover); }
.race-row .day { font-stretch: 125%; font-weight: 800; font-size: 28px; line-height: 1; }
.race-row .mon { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rp-muted); }
.race-row .name { font-size: 19px; font-weight: 700; line-height: 1.15; }
.race-row .meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--rp-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.race-row .badges { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 4px; }
.warn { color: var(--rp-warnInk2); text-transform: uppercase; letter-spacing: .1em; }
.save-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rp-line); background: transparent; color: var(--rp-ink); display: grid; place-items: center; }
.save-btn.on { background: var(--orange); border-color: var(--orange); color: #FFFFFF; }
.empty { padding: 56px 28px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty .t { font-stretch: 125%; text-transform: uppercase; font-size: 28px; font-weight: 800; }
.mapbox { position: relative; border-radius: 16px; overflow: hidden; height: min(680px, 72vh); min-height: 420px; background: var(--rp-sub); }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.filters-btn { display: none; }

/* Deadlines */
.dl-board { border-radius: 20px; padding: 44px 40px 20px; }
.dl-head, .dl-row { display: grid; grid-template-columns: 150px 130px minmax(0, 1fr) 80px; gap: 20px; align-items: center; }
.dl-head { padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #9A9DA3; }
.dl-row { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.flip { width: 34px; height: 50px; border-radius: 6px; background: linear-gradient(#22242A 0 49%, #060708 49% 51%, #1A1C21 51%); display: grid; place-items: center; font-family: var(--mono); font-size: 27px; font-weight: 700; color: #FFFFFF; }
.flip.hot { color: var(--orange); }
.kind { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border: 1.5px solid; border-radius: 6px; padding: 6px 10px; }
.kind-opens { background: #FF5B1F; border-color: #FF5B1F; color: #0E1014; }
.kind-closes { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.kind-results { background: #1D3BF5; border-color: #1D3BF5; color: #FFFFFF; }
.dl-race { background: none; border: none; padding: 0; color: #FFFFFF; text-align: left; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-race:hover { color: var(--orange-hi); }
.cal-btn { height: 44px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #FFFFFF; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.cal-btn:hover { background: #FFFFFF; color: #0E1014; }
.rem-card { background: var(--rp-card); border-radius: 20px; padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.rem-card .chip { height: 44px; padding: 0 16px; font-size: 11.5px; letter-spacing: .08em; }

/* Compare */
.cmp-wrap { overflow-x: auto; border-radius: 18px; }
.cmp { display: grid; background: var(--rp-card); border-radius: 18px; overflow: hidden; min-width: 640px; }
.cmp .hd { padding: 30px 22px 22px; border-bottom: 2px solid var(--rp-ink); border-left: 1px solid var(--rp-line3); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cmp .hd.first { border-left: none; justify-content: flex-end; padding: 26px 22px; }
.cmp .rl { padding: 16px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rp-muted); display: flex; align-items: center; }
.cmp .cell { padding: 14px 22px; border-left: 1px solid var(--rp-line3); display: flex; align-items: center; min-width: 0; font-size: 16px; line-height: 1.4; }
.cmp .z { background: var(--rp-sub); }
.cmp-tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; border-radius: 4px; }
.cmp-name { background: none; border: none; padding: 0; text-align: left; font-stretch: 125%; text-transform: uppercase; font-size: clamp(16px, 1.7vw, 26px); font-weight: 800; line-height: 1.05; color: var(--rp-ink); margin-top: 6px; overflow-wrap: anywhere; }
.cmp-name:hover { color: var(--rp-blue); }
.add-col { flex: 1; min-height: 150px; border-radius: 12px; border: 2px dashed var(--rp-line2); background: var(--rp-sub); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rp-muted); }
.add-col:hover { border-color: #1D3BF5; color: var(--rp-blue); }
.sq-btn { height: 40px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--rp-ink); background: var(--rp-card); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.sq-btn:hover { background: var(--rp-ink); color: var(--rp-inv); }
.x-btn { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--rp-line2); background: var(--rp-card); font-size: 18px; color: var(--rp-muted); flex: none; }
.x-btn:hover { border-color: var(--rp-ink); color: var(--rp-ink); }

/* Saved */
.saved-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.saved-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.saved-card { background: var(--rp-card); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.soft-btn { flex: 1; height: 44px; border-radius: 10px; border: none; background: var(--rp-bg); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.soft-btn:hover { background: var(--rp-band); }
.passport { background: var(--rp-card); border-radius: 16px; overflow: hidden; }
.pstamp { width: 104px; height: 104px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; text-align: center; overflow: hidden; transition: transform .15s; }
.pstamp:hover { transform: rotate(0deg) scale(1.06) !important; }
.mrz { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--rp-muted2); white-space: nowrap; overflow: hidden; line-height: 1.6; margin-top: 4px; }

/* Locked overlay */
.locked-veil { position: absolute; inset: 0; z-index: 20; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: var(--rp-veil); display: flex; justify-content: center; align-items: flex-start; padding: 200px 24px 0; }
.locked-card { position: sticky; top: 140px; width: min(580px, 100%); background: var(--rp-card); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(14,16,20,.25); }

/* Race panel */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--rp-card); z-index: 41; display: flex; flex-direction: column; box-shadow: -24px 0 60px rgba(14,16,20,.25); animation: slideIn .22s ease-out; }
.panel-scrim { position: fixed; inset: 0; background: rgba(14,16,20,.5); z-index: 40; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel .scroll { flex: 1; overflow: auto; overscroll-behavior: contain; }
.panel .sec { padding: 28px 32px; border-bottom: 1px solid var(--rp-line3); }
.ptag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.12); border-radius: 5px; padding: 5px 8px; }
.fact { background: var(--rp-sub); border-radius: 10px; padding: 13px 14px; min-height: 82px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.fact.missing { background: transparent; border: 1.5px dashed var(--rp-line2); }
.fact .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-muted); }
.fact .v { font-size: 16px; font-weight: 700; line-height: 1.2; }
.tl { position: relative; height: 60px; margin: 20px 0 6px; }
.tl .track { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: var(--rp-bg); }
.tl .seg-e { position: absolute; top: 30px; height: 6px; border-radius: 3px; background: #FF5B1F; }
.tl .seg-b { position: absolute; top: 30px; height: 6px; background: repeating-linear-gradient(90deg, #1D3BF5 0 6px, transparent 6px 10px); }
.tl .mk { position: absolute; top: 25px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid; }
.tl .today { position: absolute; top: 2px; bottom: 4px; width: 2px; background: var(--rp-ink); }
.tl .today span { position: absolute; top: -2px; left: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tl-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--rp-line2); }
.tl-row i { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid; display: inline-block; }
.warnbox { background: var(--rp-warn); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--rp-warnInk); }

.swap-item:hover { background: var(--rp-hover) !important; }

/* Mobile tab bar (hub) */
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .saved-grid { grid-template-columns: minmax(0, 1fr); }
  .rem-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
  .finder { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; }
  .filters.sheet-open { display: flex; position: fixed; inset: auto 0 0 0; top: 8vh; max-height: none; border-radius: 22px 22px 0 0; z-index: 61; padding: 22px 20px 0; box-shadow: 0 -20px 60px rgba(14,16,20,.3); animation: slideUp .22s ease-out; }
  .filters .sheet-foot { display: block !important; position: sticky; bottom: 0; background: var(--rp-card); padding: 12px 0 calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rp-line3); margin-top: auto; }
  .filters-btn { display: inline-flex; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .legal-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; }
  .legal-nav .label { display: none; }
  .legal-nav button { height: 44px; flex: none; padding: 0 12px; font-size: 11.5px; letter-spacing: .08em; }
}
@media (max-width: 1200px) {
  .hide-md { display: none; }
}
@media (max-width: 1000px) {
  .hub-nav { display: none; }
  .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: calc(68px + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); background: var(--rp-card); border-top: 1px solid var(--rp-line2); grid-template-columns: repeat(4, 1fr); }
  .tabbar button { background: none; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--rp-ink); }
  .tabbar button::before { content: ''; width: 20px; height: 3px; border-radius: 2px; background: transparent; }
  .tabbar button[aria-current="page"] { color: var(--rp-blue); font-weight: 700; }
  .tabbar button[aria-current="page"]::before { background: #1D3BF5; }
  body.has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-tabbar .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-tabbar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .wrap, .wrap-wide { padding-left: 16px; padding-right: 16px; }
  .site-header .bar { height: 64px; gap: 10px; }
  .brand svg { width: 34px; height: 34px; }
  .brand span { font-size: 15px; }
  .theme-btn .lbl, .hdr-note .lbl { display: none; }
  .theme-btn { padding: 0; width: 44px; justify-content: center; }
  .hub-main { padding-top: 24px; }
  .h-page { font-size: clamp(36px, 11vw, 64px); }
  .dl-board .h-page { font-size: clamp(30px, 9.5vw, 64px); }
  .eyebrow { overflow-wrap: anywhere; }
  .surprise { height: 56px; padding: 0 18px 0 8px; font-size: 12px; }
  .surprise .globe { width: 40px; height: 40px; }
  .search { height: 56px; flex-basis: 100%; }
  .viewtoggle { flex: 1; }
  .viewtoggle button { flex: 1; height: 42px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .race-row { grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 12px; padding: 12px 14px; }
  .race-row .day { font-size: 20px; }
  .race-row .name { font-size: 16px; }
  .save-btn { width: 40px; height: 40px; }
  .legend { display: none; }
  .dl-board { padding: 28px 18px 14px; border-radius: 16px; }
  .dl-head { display: none; }
  .dl-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "d info" "date cal"; gap: 10px 14px; }
  .dl-row .c-days { grid-area: d; }
  .dl-row .c-info { grid-area: info; }
  .dl-row .c-date { grid-area: date; font-size: 11.5px !important; }
  .dl-row .c-cal { grid-area: cal; justify-self: end; width: 80px; }
  .flip { width: 26px; height: 40px; font-size: 21px; }
  .rem-card { padding: 26px 20px; }
  .panel { top: 6vh; width: 100vw; border-radius: 22px 22px 0 0; overflow: hidden; animation: slideUp .22s ease-out; }
  .panel .sec { padding: 22px 20px; }
  .panel .facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .panel .two { grid-template-columns: minmax(0, 1fr) !important; }
  .panel .hero-sec { padding: 16px 20px 24px !important; }
  .panel h2 { font-size: 32px !important; }
  .panel .foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)) !important; }
  .panel .foot .btn-row button { padding: 0 12px !important; font-size: 11px !important; }
  .locked-veil { padding-top: 120px; }
  .site-footer .row { padding-top: 22px; padding-bottom: 22px; }
  .co-grid { gap: 18px; }
  .stamp { font-size: 12px; padding: 8px 12px; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .brand.collapse-sm > span { display: none; }
}
@media (max-width: 420px) {
  .method-grid .chip { font-size: 10.5px; letter-spacing: .06em; }
  .hdr-right { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
