/* ==========================================================================
   Jalalpur Mini Marathon 2026 — "সবুজ জালালপুর" (Green Jalalpur)
   Built on the organisers' green registration flyer: deep green, flyer yellow, a light-green wave, diagonal light stripes in the
   corner, a faint street map with pins, the white sticker round the logo. The logo's red, navy and sky blue are accents.
   No CDN, no inline style blocks (CSP), state classes have their own names (rv, rv-on, is-*), decorative layers clip x-overflow.
   ========================================================================== */
:root {
    --g-950: #052F17;
    --g-900: #06401F;
    --g-800: #08572A;
    --g-700: #0B6B32;
    --g-600: #12813F;
    --g-500: #3DAA48;
    --lime: #8DC63F;
    --yellow: #FFE21F;
    --yellow-soft: #FFF6B0;
    --cream: #F5F8F0;
    --paper: #FFFFFF;
    --ink: #122318;
    --muted: #4A5A4F;
    --line: #D8E3D3;
    --red: #E31E24;
    --red-dark: #B5151B;
    --navy: #1B2A7B;
    --sky: #2AA8E0;
    --sky-ink: #0E6A99;
    --orange: #F6A623;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(6, 64, 31, .12);
    --shadow-lg: 0 24px 60px rgba(5, 47, 23, .22);
    --head-h: 68px;
    --f-head: "Baloo Da 2", "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
    --f-body: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-num: "Russo One", "Baloo Da 2", system-ui, sans-serif;
}
html[lang="en"] {
    --f-head: "Russo One", "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
    --f-body: "Barlow", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--f-body); overflow-x: clip; }
html[lang="en"] body { font-size: 17.5px; line-height: 1.6; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 400; letter-spacing: .3px; }
h1, h2, h3, h4, p, a, span, li, td, th, label, dd, dt, summary { overflow-wrap: break-word; }
p { margin: 0 0 1em; }
a { color: var(--g-700); text-underline-offset: 3px; }
a:hover { color: var(--g-900); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -.15em; }
.num { font-family: var(--f-num); font-weight: 400; letter-spacing: .5px; }
html[lang="bn"] .num { font-family: "Baloo Da 2", var(--f-head); font-weight: 800; }

/* ---- buttons ---- */
.btn { --bg: var(--yellow); --fg: var(--g-950); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; background: var(--bg); color: var(--fg); font: 700 1rem/1.2 var(--f-body); cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 47, 23, .22); }
.btn .i { transition: transform .25s ease; }
.btn:hover .i-go { transform: translateX(5px); }
.btn-green { --bg: var(--g-700); --fg: #fff; }
.btn-green:hover { --bg: var(--g-800); }
.btn-red { --bg: var(--red-dark); --fg: #fff; }
.btn-white { --bg: #fff; --fg: var(--g-800); }
.btn-outline { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-outline:hover { --bg: rgba(255, 255, 255, .12); }
.btn-line { --bg: transparent; --fg: var(--g-800); border-color: var(--g-700); }
.btn-line:hover { --bg: rgba(11, 107, 50, .08); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; line-height: 1.3; }
.chip-red { background: var(--red-dark); color: #fff; }
.chip-yellow { background: var(--yellow); color: var(--g-950); }
.chip-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.chip-green { background: #DDF2E3; color: var(--g-900); }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: var(--g-800); color: #fff; transition: background .25s ease, box-shadow .25s ease; }
.site-head.is-stuck { background: #06401F; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.head-row { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: .78rem; color: var(--yellow); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a.is-current { background: rgba(255, 255, 255, .14); color: #fff; }
.head-cta { display: inline-flex; }
.lang { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 6px 12px; font-size: .9rem; white-space: nowrap; }
.lang:hover { color: var(--g-950); background: var(--yellow); border-color: var(--yellow); }
.nav .menu-only { display: none; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .i { width: 26px; height: 26px; }
@media (max-width: 1060px) {
    .nav { position: fixed; inset: var(--head-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 16px 120px; background: var(--g-900); overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
    .nav a { padding: 14px 16px; font-size: 1.1rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); }
    body.is-menu .nav { transform: none; visibility: visible; }
    .nav .menu-only { display: block; background: rgba(255, 226, 31, .08); }
    .menu-btn { display: inline-flex; }
    .head-cta { display: none; }
}
/* phones: the full name on two lines instead of "… ২০…" */
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: .95rem; line-height: 1.12; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; } .lang { padding: 6px 9px; } }

/* ---- phone bottom bar and back to top ---- */
.dock { display: none; }
@media (max-width: 760px) {
    .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 64, 31, .97); box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
    .dock a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; border: 1px solid rgba(255, 255, 255, .3); font-size: .95rem; }
    .dock a.dock-main { background: var(--yellow); color: var(--g-950); border-color: var(--yellow); }
    body.is-menu .dock, body.no-dock .dock { display: none; }
    /* room for the dock inside the dark footer: a body padding showed a light strip, and missed the iPhone home-bar inset */
    .site-foot { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    body.no-dock .site-foot { padding-bottom: 0; }
}
.to-top { position: fixed; right: 16px; bottom: 22px; z-index: 39; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--g-950); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; cursor: pointer; }
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.to-top .i { transform: rotate(-90deg); width: 24px; height: 24px; }
@media (max-width: 760px) { .to-top { bottom: calc(90px + env(safe-area-inset-bottom)); right: 12px; width: 44px; height: 44px; } }

/* ---- sections ---- */
.sec { position: relative; padding: clamp(56px, 8vw, 96px) 0; overflow-x: clip; }
.sec-green { background: var(--g-700); color: #fff; }
.sec-deep { background: var(--g-900); color: #fff; }
.sec-white { background: var(--paper); }
.sec-cream { background: var(--cream); }
.sec-green a:not(.btn), .sec-deep a:not(.btn) { color: var(--yellow); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--g-700); margin-bottom: 10px; }
.kicker::before { content: ""; width: 34px; height: 10px; background: repeating-linear-gradient(90deg, currentColor 0 22px, transparent 22px 26px, currentColor 26px 30px); border-radius: 4px; opacity: .9; }
.sec-green .kicker, .sec-deep .kicker { color: var(--yellow); }
.title { font-size: clamp(1.75rem, 4.2vw, 2.9rem); }
.title em, .gold-text { font-style: normal; color: var(--g-600); }
.sec-green .title em, .sec-deep .title em, .sec-green .gold-text, .sec-deep .gold-text { color: var(--yellow); }
.lead { font-size: 1.12rem; color: var(--muted); }
.sec-green .lead, .sec-deep .lead { color: #DDEFE2; }
/* the flyer's light stripes in the top right corner */
.stripes::before { content: ""; position: absolute; top: 0; right: 0; width: min(520px, 70vw); height: min(420px, 70%); background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .075) 0 16px, transparent 16px 44px); -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 75%); mask-image: linear-gradient(200deg, #000 20%, transparent 75%); pointer-events: none; }
/* the flyer's wave at the foot of a green section */
.wave-foot { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 90px); pointer-events: none; }
.wave-foot svg { width: 100%; height: 100%; display: block; }

/* ---- hero ---- */
.hero { position: relative; background: radial-gradient(120% 90% at 50% 0%, var(--g-700) 0%, var(--g-800) 55%, var(--g-900) 100%); color: #fff; padding: clamp(28px, 5vw, 56px) 0 clamp(120px, 16vw, 190px); overflow: clip; isolation: isolate; }
.hero-map { position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none; }
.hero-map svg { width: 100%; height: 100%; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 3vw, 30px); }
.sponsor-chip { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 16px; padding: 8px 14px 8px 10px; box-shadow: var(--shadow); text-decoration: none; }
.sponsor-chip img { height: 44px; width: auto; }
.sponsor-chip small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sticker { background: #fff; border-radius: 26px; padding: clamp(12px, 2vw, 20px); box-shadow: 0 0 0 6px rgba(255, 255, 255, .22), var(--shadow-lg); }
.hero-logo { max-width: 520px; margin-inline: auto; transform: rotate(-1.5deg); }
.hero-logo img { width: 100%; }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 4.4rem); color: var(--yellow); margin-bottom: .25em; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
html[lang="en"] .hero h1 { font-size: clamp(2rem, 5.6vw, 3.8rem); }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 600; color: #fff; }
.hero-when { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 6px; font-weight: 600; }
.hero-when span { display: inline-flex; align-items: center; gap: 8px; }
.hero-when .i { color: var(--yellow); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 22px 0 10px; }
.cd-cell { background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 10px 6px 8px; text-align: center; }
.cd-num { display: block; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1; color: #fff; word-break: keep-all; }
.cd-unit { display: block; font-size: .82rem; color: var(--yellow); margin-top: 4px; }
.cd-label { font-size: .95rem; color: #DDEFE2; margin: 0; }
@media (max-width: 380px) { .countdown { gap: 6px; } .cd-num { font-size: 1.35rem; } .cd-unit { font-size: .72rem; } }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(110px, 15vw, 180px); z-index: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; display: block; }
/* the art is an 8:1 "slice": on screens wider than 1440 a 180 px box cropped its top (the runner's head), so there it stays width ÷ 8 */
@media (min-width: 1441px) { .hero-art { height: 12.5vw; } .hero { padding-bottom: calc(12.5vw + 10px); } }
/* home intro: the runner sprints in from off-screen (bobbing each stride), breaks the tape; site.js adds dust + confetti, a tap runs it again */
.runner { transform-box: view-box; animation: run-in 2.1s linear .35s both; pointer-events: auto; cursor: pointer; }
.runner use { transform-box: fill-box; transform-origin: 50% 100%; animation: stride .15s ease-in-out .35s 12 alternate; }
.ribbon-l { transform-box: fill-box; transform-origin: 0% 50%; animation: ribbon-l 1s ease 2.05s both; }
.ribbon-r { transform-box: fill-box; transform-origin: 100% 50%; animation: ribbon-r 1s ease 2.05s both; }
@keyframes run-in {
    0% { transform: translateX(-1100px); animation-timing-function: cubic-bezier(.3, .25, .6, 1); }
    86% { transform: translateX(16px); animation-timing-function: ease-out; }
    100% { transform: none; }
}
@keyframes run-in-sm { /* phones see only the middle of the art: a shorter run, so the runner is on screen for most of it */
    0% { transform: translateX(-620px); animation-timing-function: cubic-bezier(.3, .25, .6, 1); }
    86% { transform: translateX(12px); animation-timing-function: ease-out; }
    100% { transform: none; }
}
@media (max-width: 760px) { .runner { animation-name: run-in-sm; } }
@keyframes stride { to { transform: translateY(-7px) rotate(-3deg); } }
.m-dust, .m-confetti { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.m-dust { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.m-confetti { width: 8px; height: 14px; border-radius: 2px; }
@keyframes ribbon-l { to { transform: rotate(18deg) translateY(10px); opacity: .85; } }
@keyframes ribbon-r { to { transform: rotate(-16deg) translateY(12px); opacity: .85; } }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-logo { max-width: 420px; order: -1; }
}

/* ---- notice strip ---- */
.ticker { background: var(--yellow); color: var(--g-950); overflow: hidden; border-block: 3px solid var(--g-950); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; font-weight: 700; white-space: nowrap; }
.ticker-item a { color: var(--g-950); }
.ticker-item .i { color: var(--red-dark); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---- BIB card (at a glance, status, runner pass) ---- */
.bib-card { --pin: radial-gradient(circle, var(--cream) 0 5px, #9AA79C 5px 7px, transparent 7.5px); position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 3px solid var(--g-950); }
.bib-card::before { content: ""; position: absolute; inset: 12px; background: var(--pin) left top / 16px 16px no-repeat, var(--pin) right top / 16px 16px no-repeat, var(--pin) left bottom / 16px 16px no-repeat, var(--pin) right bottom / 16px 16px no-repeat; pointer-events: none; }
.bib-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--g-700); color: #fff; border-radius: 12px; padding: 8px 16px; margin-bottom: 18px; font-weight: 700; }
.bib-band .i { color: var(--yellow); }
.bib-band .bib-logo { width: 34px; height: 34px; flex: none; margin: -5px -6px -5px 0; }
.bib-number { font-family: var(--f-num); font-size: clamp(3rem, 11vw, 5.6rem); line-height: 1; color: var(--ink); text-align: center; margin: 4px 0 8px; letter-spacing: 2px; }
html[lang="bn"] .bib-number { font-family: "Baloo Da 2", var(--f-head); font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.facts div { border-top: 2px dashed var(--line); padding-top: 10px; }
.facts dt { font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.facts dt .i { color: var(--g-600); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.glance-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.male-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--red-dark); color: #fff; border-radius: 999px; padding: 10px 20px 10px 12px; font-weight: 800; font-size: 1.05rem; margin-top: 18px; }
.male-badge .i { width: 28px; height: 28px; background: #fff; color: var(--red-dark); border-radius: 50%; padding: 4px; }
@media (max-width: 860px) { .glance-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ---- awaken: three words and four values ---- */
.words { display: grid; gap: 14px; }
.word { display: flex; align-items: center; gap: 16px; background: rgba(0, 0, 0, .18); border: 2px solid rgba(255, 226, 31, .55); border-radius: 999px; padding: 12px 26px 12px 14px; width: fit-content; max-width: 100%; }
.word:nth-child(2) { margin-left: clamp(0px, 6vw, 70px); }
.word:nth-child(3) { margin-left: clamp(0px, 12vw, 140px); }
.word .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--g-950); flex: none; }
.word .ico .i { width: 28px; height: 28px; }
.word b { font-family: var(--f-head); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.value { background: rgba(255, 255, 255, .07); border: 2px solid var(--c, var(--yellow)); border-radius: 20px; padding: 22px 18px; text-align: center; transition: transform .25s ease, background .25s ease; }
.value:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); }
.value .i { width: 44px; height: 44px; color: var(--c, var(--yellow)); }
.value b { display: block; font-family: var(--f-head); font-size: 1.45rem; margin-top: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---- categories: two lane cards ---- */
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
.lane { position: relative; background: #fff; border-radius: 26px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); overflow: hidden; border-top: 10px solid var(--lc, var(--g-700)); }
.lane::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; background: repeating-linear-gradient(135deg, var(--lc, var(--g-700)) 0 6px, transparent 6px 22px); opacity: .09; border-radius: 50%; }
.lane-km { font-family: var(--f-num); font-size: clamp(3.4rem, 9vw, 5.4rem); line-height: .95; color: var(--lc, var(--g-700)); }
html[lang="bn"] .lane-km { font-family: "Baloo Da 2", var(--f-head); font-weight: 800; }
.lane-km small { font-size: .38em; margin-left: 6px; color: var(--ink); }
.lane h3 { font-size: 1.35rem; margin-top: 8px; }
.lane ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.lane li { display: flex; align-items: center; gap: 10px; }
.lane li .i { color: var(--lc, var(--g-700)); }
.lane-yellow { --lc: #C99A00; }
.lane-sky { --lc: var(--sky-ink); }
@media (max-width: 720px) { .lanes { grid-template-columns: 1fr; } }

/* ---- route ---- */
.route-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.route-map { background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; padding: 12px; }
.route-map svg { width: 100%; height: auto; display: block; }
.rm-road { stroke: rgba(255, 255, 255, .55); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.rm-side { stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.rm-river { fill: none; stroke: #5BC0EB; stroke-width: 3.6; opacity: .55; stroke-linecap: round; }
.rm-label { fill: rgba(255, 255, 255, .75); font: 600 3px/1 var(--f-body); }
.rm-path { fill: none; stroke: var(--yellow); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .rm-path { stroke-dashoffset: 1; }
.rm-path-bg { fill: none; stroke: rgba(255, 226, 31, .18); stroke-width: 2.4; }
.js .rv-on .rm-path { animation: draw 3.2s ease-in-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rm-pin circle { fill: #fff; stroke: var(--g-900); stroke-width: .8; }
.rm-pin text { font: 800 3.1px/1 var(--f-num); fill: var(--g-950); text-anchor: middle; dominant-baseline: central; }
.rm-pin.start circle { fill: var(--red); stroke: #fff; }
.rm-pin.start text { fill: #fff; }
.rm-pin { transform-box: fill-box; transform-origin: 50% 100%; }
.js .rm-pin { opacity: 0; }
.js .rv-on .rm-pin { animation: pin 0.5s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(.4s + var(--i) * .32s); }
@keyframes pin { from { opacity: 0; transform: translateY(-4px) scale(.6); } to { opacity: 1; transform: none; } }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: stop; }
.stops li { display: flex; gap: 14px; align-items: flex-start; background: rgba(0, 0, 0, .18); border-radius: 14px; padding: 12px 14px; }
.stops .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--g-950); font: 800 .95rem/1 var(--f-num); }
.stops li.start .n { background: var(--red); color: #fff; }
.stops b { display: block; }
.stops small { color: #CFE6D6; }
.route-note { font-size: .92rem; color: #CFE6D6; margin-top: 12px; }
@media (max-width: 900px) { .route-grid { grid-template-columns: 1fr; } }

/* ---- kit bento ---- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 16px rgba(6, 64, 31, .07); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #E3F3E7; color: var(--g-700); }
.tile .ico .i { width: 30px; height: 30px; }
.tile b { font-size: 1.08rem; line-height: 1.3; }
.tile small { color: var(--muted); font-weight: 600; }
.tile.big { grid-column: span 2; grid-row: span 2; background: var(--g-700); color: #fff; justify-content: flex-end; padding: 28px; min-height: 230px; position: relative; overflow: hidden; border: 0; }
.tile.big::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 14px, transparent 14px 40px); }
.tile.big .ico { width: 76px; height: 76px; background: var(--yellow); color: var(--g-950); position: relative; }
.tile.big .ico .i { width: 44px; height: 44px; }
.tile.big b { font-family: var(--f-head); font-size: clamp(1.4rem, 3vw, 1.9rem); position: relative; }
.tile.big small { color: var(--yellow); position: relative; }
.tile.big:nth-of-type(2) { background: var(--navy); }
.kit-groups { display: grid; gap: 34px; }
.kit-groups h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.big { grid-row: span 1; min-height: 190px; } }
@media (max-width: 420px) { .bento { grid-template-columns: 1fr 1fr; gap: 10px; } .tile { padding: 14px; } .tile b { font-size: .98rem; } }

/* ---- how to register ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps li { position: relative; background: #fff; border-radius: 22px; padding: 26px 22px 22px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: -18px; left: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--g-950); font: 800 1.2rem/1 var(--f-num); border: 3px solid var(--g-950); }
html[lang="bn"] .steps li:nth-child(1)::before { content: "১"; }
html[lang="bn"] .steps li:nth-child(2)::before { content: "২"; }
html[lang="bn"] .steps li:nth-child(3)::before { content: "৩"; }
.steps h3 { font-size: 1.2rem; margin-top: 8px; }
.pay { background: var(--yellow-soft); border: 3px dashed #C9A800; border-radius: 22px; padding: 22px; }
.pay-num { font-family: var(--f-num); font-size: clamp(1.6rem, 5vw, 2.3rem); letter-spacing: 1px; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html[lang="bn"] .pay-num { font-family: "Baloo Da 2", var(--f-head); font-weight: 800; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.point { display: flex; gap: 14px; background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.point .i { width: 32px; height: 32px; color: var(--g-700); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---- live count, schedule ---- */
.live { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; text-align: center; }
.live-num { font-size: clamp(3rem, 10vw, 5.5rem); line-height: 1; color: var(--yellow); }
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.schedule li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; background: #fff; border-radius: 16px; padding: 16px 18px; border-left: 6px solid var(--g-700); }
.schedule time { font: 400 1.15rem/1.2 var(--f-num); color: var(--g-700); }
html[lang="bn"] .schedule time { font-family: "Baloo Da 2", var(--f-head); font-weight: 800; }
@media (max-width: 480px) { .schedule li { grid-template-columns: 1fr; gap: 4px; } }

/* ---- sponsors, organiser, team ---- */
.sponsors { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 28px; text-align: center; min-width: 240px; box-shadow: 0 4px 16px rgba(6, 64, 31, .06); text-decoration: none; color: var(--ink); }
.sponsor.title-tier { padding: 30px 40px; border: 3px solid var(--yellow); }
.sponsor img { max-height: 110px; width: auto; margin: 0 auto 10px; }
.sponsor small { display: block; font-weight: 700; color: var(--g-700); }
.org { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.org-logo { background: #000; border-radius: 26px; padding: 18px; box-shadow: var(--shadow-lg); }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; margin-top: 40px; }
.member { text-align: center; }
.member-photo { width: min(170px, 100%); aspect-ratio: 1; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--yellow), var(--shadow); background: var(--g-800); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member b { display: block; font-size: 1.05rem; line-height: 1.3; }
.member small { color: var(--yellow); font-weight: 700; }
.member.lead .member-photo { width: min(200px, 100%); box-shadow: 0 0 0 4px var(--yellow), var(--shadow-lg); }
@media (max-width: 900px) { .org { grid-template-columns: 1fr; } .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- posters, videos, gallery, lightbox ---- */
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.poster { display: block; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .3s ease; }
.poster:hover { transform: translateY(-5px) rotate(-.6deg); }
.poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; background: #fff; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(3, 25, 12, .88); }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; margin: auto; border-radius: 12px; }
.lightbox-close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--g-950); cursor: pointer; display: grid; place-items: center; }
@media (max-width: 760px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--g-700); color: #fff; display: grid; place-items: center; font-weight: 800; transition: transform .25s ease; }
.faq details[open] summary::after { content: "−"; background: var(--yellow); color: var(--g-950); }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }

/* ---- closing call ---- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(2rem, 6vw, 3.6rem); color: var(--yellow); }
.closing p { font-size: 1.2rem; }

/* ---- page top (inner pages) ---- */
.page-top { position: relative; background: var(--g-700); color: #fff; padding: clamp(36px, 6vw, 64px) 0 clamp(54px, 8vw, 84px); overflow: clip; }
.page-top h1 { font-size: clamp(1.9rem, 5vw, 3rem); color: #fff; margin-bottom: .2em; }
.page-top p { color: #DDEFE2; margin: 0; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; margin-bottom: 12px; color: #CFE6D6; }
.crumbs a { color: var(--yellow); display: inline-block; padding: 7px 0; margin: -7px 0; }
.page-body { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }

/* ---- cards and forms ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; box-shadow: 0 4px 16px rgba(6, 64, 31, .05); }
.card h2 { font-size: 1.35rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 700; }
.field small { color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 2px solid #B8C9BB; border-radius: 12px; padding: 10px 14px; min-height: 50px; width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g-700); box-shadow: 0 0 0 4px rgba(255, 226, 31, .55); }
.field.bad input, .field.bad select, .field.bad textarea, .check.bad input { border-color: var(--red-dark); }
.err { color: var(--red-dark); margin: 0; font-size: .92rem; font-weight: 600; }
.form-error { background: #FDECEC; color: var(--red-dark); border: 1px solid #F3B9B9; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.form-error ul { margin: 0; padding-left: 18px; }
.dob { display: grid; grid-template-columns: .9fr 1.4fr 1.1fr; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 24px; min-height: 24px; height: 24px; margin-top: 3px; flex: none; accent-color: var(--g-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.test-flag { background: var(--red-dark); color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-weight: 700; }
.notice-box { background: var(--yellow-soft); border: 1px solid #E8D46A; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.code { font: 700 1.35rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: 1px; }

/* ---- registration wizard ---- */
.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; position: relative; }
.track li { position: relative; text-align: center; font-size: .86rem; font-weight: 700; color: var(--muted); padding-top: 34px; }
.track li::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #C9D6CB 0 14px, transparent 14px 18px); }
.track li.is-done::before, .track li.is-now::before { background: var(--g-700); }
.track li.is-now { color: var(--g-800); }
.track .i { position: absolute; top: -6px; left: 50%; width: 30px; height: 30px; margin-left: -15px; color: var(--g-800); opacity: 0; transition: opacity .2s ease; }
.track li.is-now .i { opacity: 1; }
.wiz-step[hidden] { display: none; }
/* The wizard: one form, its parts shown step by step once site.js sets data-at (without script everything shows at once). */
form[data-at] [data-part] { display: none; }
form[data-at="1"] [data-part="1"], form[data-at="2"] [data-part="2"], form[data-at="3"] [data-part="3"], form[data-at="4"] [data-part="4"] { display: block; }
form[data-at="3"] [data-runners], form[data-at="4"] [data-runners] { display: none; }
form:not([data-at]) .wiz-only, form:not([data-at]) [data-track] { display: none; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.runner-box { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; background: #fff; }
.runner-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.runner-head h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.size-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pick label { position: relative; }
.size-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-pick span { display: grid; place-items: center; min-width: 58px; min-height: 48px; padding: 0 10px; border: 2px solid #B8C9BB; border-radius: 12px; font-weight: 800; cursor: pointer; background: #fff; }
.size-pick input:checked + span { background: var(--g-700); color: #fff; border-color: var(--g-700); }
.size-pick input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cat-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.cat-pick label { position: relative; }
.cat-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-pick span { display: block; border: 2px solid #B8C9BB; border-radius: 16px; padding: 14px; cursor: pointer; background: #fff; }
.cat-pick b { display: block; font-size: 1.25rem; }
.cat-pick input:checked + span { border-color: var(--g-700); background: #E6F4EA; box-shadow: inset 0 0 0 2px var(--g-700); }
.cat-pick input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cat-pick input:disabled + span { opacity: .5; cursor: not-allowed; }
.summary-list { display: grid; gap: 10px; }
.summary-list div { background: var(--cream); border-radius: 12px; padding: 12px 14px; }

/* ---- status and runner pass ---- */
.state { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 16px; font-weight: 800; }
.state-Pending { background: #FFF1B8; color: #5C4A00; }
.state-NeedsCorrection { background: #FDECEC; color: var(--red-dark); }
.state-Confirmed { background: #DDF5E5; color: var(--g-900); }
.state-Rejected, .state-Cancelled { background: #ECECEC; color: #3A3A3A; }
.pass { max-width: 520px; margin: 0 auto 18px; }
.pass-qr { width: 150px; margin: 12px auto 0; background: #fff; padding: 6px; border-radius: 10px; }
.pass-qr svg { width: 100%; height: auto; }
.done-burst { text-align: center; }
.done-burst .i { width: 72px; height: 72px; color: var(--g-600); }

/* ---- footer ---- */
.site-foot { background: var(--g-950); color: #D7E8DC; padding-top: 52px; position: relative; }
.site-foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--yellow) 0 70%, var(--red) 70% 85%, var(--sky) 85%); }
.site-foot a { color: #fff; text-decoration: none; transition: color .2s ease; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--yellow); }
.foot-grid li a { display: inline-block; transition: color .2s ease, transform .25s var(--ease-out); }
.foot-grid li a:hover { transform: translateX(4px); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h3 { font-size: 1.05rem; color: var(--yellow); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-logo { background: #fff; border-radius: 16px; padding: 10px; width: 220px; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.social a:hover { background: var(--yellow); color: var(--g-950); }
.foot-bottom { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .92rem; }
.credit { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 4px 12px; }
.credit b { color: var(--yellow); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
/* phones: the two link lists side by side (about + contact full width), links tall enough to tap */
@media (max-width: 520px) {
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
    .foot-grid > :first-child, .foot-grid > :last-child { grid-column: 1 / -1; }
    .foot-grid li a { display: inline-block; padding: 5px 0; }
}

/* ---- reveal on scroll (only below the first screen; see site.js) ---- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.rv-on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .rv { opacity: 1; transform: none; }
    .js .rm-path { stroke-dashoffset: 0; }
    .js .rm-pin { opacity: 1; }
    .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
}

@media print {
    .site-head, .site-foot, .dock, .to-top, .no-print, .btn-row, .ticker, .hero-art { display: none !important; }
    body { background: #fff; padding: 0; }
    .card { border: 0; box-shadow: none; }
    .bib-card { box-shadow: none; }
}

/* ---- results, live board and certificate checks ---- */
.find-bib { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.find-bib .field { flex: 1 1 220px; }
.my-result { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; border: 2px solid var(--g-700); background: linear-gradient(135deg, #fff 60%, #EAF6E3); }
.my-result h2 { margin: 0; }
.my-result p { margin: 4px 0; }
.my-rank { flex: none; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--g-950); font-size: 1.9rem; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--g-700); }
.my-time { font-size: clamp(2rem, 6vw, 3rem); color: var(--g-800); line-height: 1.1; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h2 { margin: 0; }
.podium { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.podium li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; border-radius: 16px; padding: 16px 10px; background: var(--cream); border: 1px solid var(--line); }
.podium .i { width: 34px; height: 34px; }
.podium-1 { order: 2; background: #FFF6B0 !important; border-color: #E8D46A !important; padding-top: 26px !important; }
.podium-1 .i { color: #B88A00; width: 44px; height: 44px; }
.podium-2 { order: 1; } .podium-2 .i { color: #7B8A90; }
.podium-3 { order: 3; } .podium-3 .i { color: #A0612B; }
.podium-name { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.podium small { color: var(--muted); }
.results-table td.num, .results-table th { white-space: nowrap; }
.results-table tr.is-mine td { background: var(--yellow-soft); font-weight: 700; }
@media (max-width: 560px) { .podium { grid-template-columns: 1fr; } .podium li { order: 0 !important; flex-direction: row; justify-content: space-between; padding: 12px 14px !important; } }

.verify { display: flex; gap: 16px; align-items: flex-start; }
.verify > .i { flex: none; width: 52px; height: 52px; }
.verify h2 { margin-top: 0; }
.verify-ok { border: 2px solid var(--g-600); background: #F0FAF2; }
.verify-ok > .i { color: var(--g-600); }
.verify-void, .verify-none { border: 2px solid var(--red-dark); background: #FDF1F1; }
.verify-void > .i, .verify-none > .i { color: var(--red-dark); }
.verify-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.verify-facts dt { color: var(--muted); }
.verify-facts dd { margin: 0; }

body.live-board { background: var(--g-950); color: #fff; }
body.live-board .site-head, body.live-board .site-foot, body.live-board .ticker, body.live-board .to-top { display: none !important; }
.board { min-height: 100vh; padding: clamp(14px, 2vw, 28px); display: flex; flex-direction: column; gap: 18px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 18px, transparent 18px 36px), var(--g-950); }
.board-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.board-head img { background: #fff; border-radius: 14px; padding: 6px; width: 150px; height: auto; }
.board-head h1 { color: var(--yellow); margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.board-head p { margin: 0; color: #CFE6D6; }
.board-clock { margin-left: auto; font-size: clamp(2rem, 5vw, 4rem); color: var(--yellow); }
.board-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; flex: 1; }
.board-cat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 16px 18px; }
.board-cat h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.3rem, 2.2vw, 2rem); display: flex; justify-content: space-between; gap: 10px; }
.board-run { color: var(--yellow); font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.board-count { color: #CFE6D6; margin: 0 0 10px; }
.board-row { display: grid; grid-template-columns: 54px 78px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: clamp(1rem, 1.6vw, 1.4rem); }
.board-row.top { color: var(--yellow); font-weight: 800; }
.board-row .t { font-family: var(--f-num); }
.board-wait { color: #CFE6D6; font-size: 1.3rem; }
.board-foot { text-align: center; color: #9FC4AB; font-size: .95rem; }
.board-foot b { color: var(--yellow); }
.board-row.is-new { animation: board-in 1.2s ease; }
@keyframes board-in { from { background: rgba(255, 226, 31, .35); } to { background: transparent; } }

/* ==== motion: the premium layer ====
   transform / opacity / filter only (no layout shift). site.js adds the classes and skips all of it for prefers-reduced-motion;
   the load sequence sits in a no-preference block. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
.scroll-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--yellow), #FFB703 55%, var(--red)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* kinetic headings: site.js wraps every word, each rises out of its own mask */
.kw { display: inline-block; clip-path: inset(-.45em -.25em -.35em -.25em); }
.kw > span { display: inline-block; transition: transform 1.05s var(--ease-out), opacity .7s ease; transition-delay: calc(var(--kd, 0ms) + var(--w, 0) * 80ms); }
.kin:not(.kin-on) .kw > span { opacity: 0; transform: translateY(118%) rotate(5deg); }
.sec-head.hd .kicker { transition: opacity .7s ease, transform .8s var(--ease-out); }
.sec-head.hd .kicker::before { transform-origin: 0 50%; transition: transform .9s var(--ease-out) .15s; }
.sec-head.hd:not(.hd-on) .kicker { opacity: 0; transform: translateY(10px); }
.sec-head.hd:not(.hd-on) .kicker::before { transform: scaleX(0); }

/* scroll reveal: every part enters its own way (site.js: .rv below the fold, .rv-on when seen, then .rv is dropped so hover works again) */
.rv { transition: opacity .8s ease, transform 1s var(--ease-out), filter .9s ease; transition-delay: calc(var(--d, 0) * 110ms); }
.rv.rv-on { filter: none; }
.word.rv, .value.rv, .member.rv, .pay.rv { transition-timing-function: ease, var(--ease-spring), ease; }
.bib-card.rv:not(.rv-on) { transform: perspective(1100px) rotateX(32deg) translateY(60px) scale(.95); transform-origin: 50% 100%; }
.lane.rv:not(.rv-on) { transform: perspective(1000px) rotateX(18deg) translateY(70px); transform-origin: 50% 100%; }
.word.rv:not(.rv-on) { transform: translateX(-70px); }
.value.rv:not(.rv-on) { transform: scale(.6) rotate(-6deg); }
.tile.rv:not(.rv-on) { transform: translateY(36px) scale(.9); filter: blur(5px); }
.route-map.rv:not(.rv-on), .org-logo.rv:not(.rv-on) { transform: scale(.9); filter: blur(8px); }
.steps li.rv:not(.rv-on) { transform: translateY(60px); }
.steps li::before { transition: transform .8s var(--ease-spring) calc(var(--d, 0) * 110ms + .35s); }
.steps li.rv:not(.rv-on)::before { transform: scale(0) rotate(-120deg); }
.pay.rv:not(.rv-on) { transform: scale(.85); }
.member.rv:not(.rv-on) { transform: translateY(40px) scale(.8); }
.member.rv .member-photo img { transition-delay: calc(var(--d, 0) * 110ms); }
.member.rv:not(.rv-on) .member-photo img, .poster.rv:not(.rv-on) img { transform: scale(1.3); }
.poster.rv:not(.rv-on) { transform: perspective(900px) rotateY(-22deg) translateY(50px); }
.faq details.rv:not(.rv-on) { transform: translateX(50px); }
.schedule li.rv:not(.rv-on) { transform: translateX(-40px); }
.card.rv:not(.rv-on), .sticker.rv:not(.rv-on) { transform: translateY(40px) scale(.96); }

/* hover and touch polish */
.member-photo { transition: box-shadow .35s ease; }
.member-photo img, .poster img { transition: transform 1.3s var(--ease-out); }
.member:hover .member-photo { box-shadow: 0 0 0 5px var(--yellow), var(--shadow-lg); }
.member:hover .member-photo img { transform: scale(1.08); }
.poster:hover img { transform: scale(1.05); }
.lane:not(.rv) { transition: transform .4s var(--ease-out), box-shadow .4s ease; } /* not while revealing: .rv's own transition must win */
.lane:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile .ico { transition: transform .5s var(--ease-spring); }
.tile:hover .ico { transform: translateY(-3px) rotate(-8deg) scale(1.1); }
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease, translate .35s var(--ease-out), scale .15s ease; }
.btn:active, .dock a:active { scale: .96; }
.btn-shine { position: relative; overflow: hidden; }

/* desktop pointer (site.js, fine pointers only): poster tilt + glare, a spotlight that follows the cursor on cards, magnetic buttons */
.hero-logo { position: relative; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateX(0) scale(1) rotate(-1.5deg); transition: transform .6s var(--ease-out); }
.hero-logo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 55%); opacity: 0; transition: opacity .4s ease; }
.hero-logo.is-tilt::after { opacity: 1; }
.spot { position: relative; isolation: isolate; }
.spot-glow { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 226, 31, .22), transparent 60%); }
.spot:hover .spot-glow { opacity: 1; }

/* route: a glowing runner laps the course once the line is drawn */
.rm-runner { fill: #fff; stroke: var(--red); opacity: 0; transition: opacity .6s ease; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px rgba(255, 226, 31, .9)); }
.rm-runner.is-on { opacity: 1; }

@keyframes m-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes m-down { from { opacity: 0; transform: translateY(-20px); } }
@keyframes m-pop { from { opacity: 0; transform: scale(.55); } }
@keyframes m-card { from { opacity: 0; transform: perspective(1000px) rotateX(10deg) rotateY(-28deg) translateX(80px) scale(.88) rotate(-1.5deg); } }
@keyframes m-float { 50% { translate: 0 -12px; } }
@keyframes m-show { to { opacity: 1; } }
@keyframes m-tick { from { opacity: 0; transform: translateY(-45%); } }
@keyframes m-shine { 0% { transform: translateX(-130%) skewX(-18deg); } 24%, 100% { transform: translateX(330%) skewX(-18deg); } }
@keyframes m-dock { from { transform: translateY(110%); } }
@keyframes m-drop { from { opacity: 0; transform: translateY(-8px); } }

/* load sequence for the hero and the page tops: only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
    .js .hero h1:not(.kin), .js .page-top h1:not(.kin) { opacity: 0; animation: m-show 0s 1.2s forwards; } /* site.js splits it into words; if the script is late, it simply appears */
    .hero-top > * { animation: m-down .8s var(--ease-out) .1s backwards; }
    .hero-top > :nth-child(2) { animation-delay: .25s; }
    .hero-sub { animation: m-up .9s var(--ease-out) .6s backwards; }
    .hero-when { animation: m-up .9s var(--ease-out) .75s backwards; }
    .countdown .cd-cell { animation: m-pop .8s var(--ease-spring) .9s backwards; }
    .countdown .cd-cell:nth-child(2) { animation-delay: 1s; }
    .countdown .cd-cell:nth-child(3) { animation-delay: 1.1s; }
    .countdown .cd-cell:nth-child(4) { animation-delay: 1.2s; }
    .hero .btn-row { animation: m-up .9s var(--ease-out) 1.25s backwards; }
    .hero-logo { animation: m-card 1.4s var(--ease-out) .15s backwards, m-float 7s ease-in-out 1.8s infinite; }
    .page-top .crumbs { animation: m-down .7s var(--ease-out) .05s backwards; }
    .page-top p { animation: m-up .8s var(--ease-out) .5s backwards; }
    .dock.is-enter { animation: m-dock .8s var(--ease-out) 1.1s backwards; }
    .cd-num.is-tick { animation: m-tick .5s var(--ease-out); }
    .faq details[open] > div { animation: m-drop .45s var(--ease-out); }
    .btn-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, .6) 50%, transparent 85%); transform: translateX(-130%) skewX(-18deg); animation: m-shine 5.5s ease-in-out 2.4s infinite; pointer-events: none; }
}
@media print { .kin .kw > span, .rv { opacity: 1 !important; transform: none !important; filter: none !important; } .scroll-bar, .spot-glow { display: none; } }

/* ---- payment slip (status page); slip.js draws the same text into the downloaded PNG ---- */
.slip-box { margin: 24px 0; }
.slip { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.slip-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px 24px; background: linear-gradient(135deg, var(--g-700), var(--g-950)); color: #fff; }
.slip-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--yellow) 0 70%, var(--red) 70% 85%, var(--sky) 85%); }
.slip-head img { width: 52px; height: 52px; flex: none; }
.slip-head b { display: block; color: var(--yellow); font-family: var(--f-head); font-size: 1.08rem; line-height: 1.25; }
.slip-head span { color: #DDEFE2; font-size: .95rem; }
.slip-body { padding: 18px 20px 4px; }
.slip-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; margin-bottom: 12px; }
.slip-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 16px; margin: 0; }
.slip-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; margin: 0; }
.slip-meta dt, .slip-pay dt { font-size: .8rem; color: var(--muted); }
.slip-meta dd, .slip-pay dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.slip-stamp { border: 2px solid currentColor; border-radius: 10px; padding: 3px 10px; font-weight: 800; font-size: .9rem; white-space: nowrap; transform: rotate(-6deg); margin-top: 8px; }
.slip-stamp.is-paid { color: #0B8A3E; }
.slip-stamp.is-wait { color: #C77700; }
.slip-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .93rem; }
.slip-table th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.slip-table td { padding: 8px 8px 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.slip-table td:first-child { font-weight: 700; }
.slip-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 14px; padding: 12px 16px; background: var(--yellow-soft); border: 2px dashed #E0C200; border-radius: 14px; font-weight: 600; }
.slip-total b { font-family: var(--f-head); font-size: 1.6rem; line-height: 1.1; color: var(--g-700); }
.slip-foot { border-top: 2px dashed var(--line); padding: 12px 20px 16px; text-align: center; font-size: .84rem; color: var(--muted); }
.slip-foot p { margin: 0; }
.slip-foot .slip-credit { margin-top: 6px; color: var(--g-700); font-weight: 700; }
.slip-credit a { color: inherit; }
@media print {
    body.print-slip .page-top, body.print-slip .page-body .wrap-narrow > :not(.slip-box) { display: none !important; }
    .slip { box-shadow: none; border-color: #BBB; break-inside: avoid; }
    .slip-head, .slip-total { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body.print-pass .page-top, body.print-pass .page-body .wrap-narrow > :not(.pass) { display: none !important; }
    body.print-pass .pass { margin: 0 auto; }
    .aic-toasts { display: none !important; } /* a "downloaded" toast must not end up on the paper */
    .bib-band, .bib-card::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}