/* ===== Guest page ===== */
:root {
  --r1: #ff4d5e; --r2: #ff9a1f; --r3: #ffd23f; --r4: #c6f135; --r5: #38b6ff; --r6: #9b6bff;
  --rainbow: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6));
}
.rainbow-bar { height: 6px; background: var(--rainbow); }
.rainbow-text {
  background: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r1));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rb-slide 4s linear infinite;
}
@keyframes rb-slide { to { background-position: 200% 0; } }

/* floating numbers */
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.floaters span {
  position: absolute; font-family: var(--display); opacity: .14; line-height: 1;
  animation: floaty linear infinite;
}
@keyframes floaty {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-40px) rotate(12deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* ---------- gate ---------- */
.gate { position: relative; min-height: 100svh; display: flex; flex-direction: column; background:
  radial-gradient(900px 500px at 50% -10%, rgba(155,107,255,.18), transparent 60%),
  radial-gradient(700px 400px at 100% 100%, rgba(56,182,255,.12), transparent 60%), var(--asphalt); }
.gate-main { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.gate-card { width: 100%; max-width: 440px; text-align: center; }
.lights { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.lights span { width: 36px; height: 36px; border-radius: 50%; background: #2b2f38; box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); transition: background .15s, box-shadow .15s; }
.lights span.red { background: var(--red); box-shadow: 0 0 18px var(--red); }
.lights.go span { background: var(--lime) !important; box-shadow: 0 0 22px var(--lime) !important; }
.gate h1 { font-size: clamp(34px, 9vw, 52px); margin: 0 0 10px; }
.gate p.lead { color: var(--muted); margin: 0 0 26px; }
.code-input { text-align: center; font-family: var(--display); font-size: 26px; letter-spacing: .18em; text-transform: uppercase; min-height: 64px; }
.gate .btn { width: 100%; margin-top: 14px; min-height: 58px; font-size: 18px; }
.gate small.hint { display: block; color: var(--muted); margin-top: 18px; font-size: 14px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(18,20,25,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 15px; text-decoration: none; color: var(--white); min-width: 0; }
.badge span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r1)); color: #111; font-weight: 400; position: relative; }
.badge b::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--white); }
.badge b i { position: relative; font-style: normal; }
.topbar nav { display: flex; gap: 4px; align-items: center; }
.topbar nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.topbar nav a:hover { background: var(--asphalt-3); }
.topbar nav a.cta { background: var(--lime); color: #111; }
.snd { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 18px; }
@media (max-width: 560px) { .topbar nav a:not(.cta) { display: none; } }
.progress { position: relative; height: 6px; background: #0b0c0f; }
.progress .pfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--rainbow); }
.progress .pcar { position: absolute; top: -13px; width: 44px; height: 22px; pointer-events: none; transition: left .1s linear; }
.progress .pcar svg { width: 44px; height: auto; display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 0; background:
  radial-gradient(800px 420px at 85% 10%, rgba(198,241,53,.12), transparent 60%),
  radial-gradient(700px 400px at 0% 60%, rgba(155,107,255,.14), transparent 60%),
  radial-gradient(600px 300px at 60% 100%, rgba(56,182,255,.10), transparent 60%); }
.hero .wrap, .hero-copy, .roundel-stage, .pit, .raceway { position: relative; z-index: 1; }
.pit { display: flex; justify-content: center; padding-bottom: 36px; }
.pit .countdown { text-align: center; }
.pit .odo { justify-content: center; }

.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.hero h1 { margin: 0; font-size: clamp(60px, 17vw, 120px); }
.hero h1 .name { display: block; white-space: nowrap; }
.hero h1 .name i { display: inline-block; font-style: normal; animation: drop .8s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes drop { from { transform: translateY(-120%) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hero h1 .name.wave i { animation: wave .7s ease-in-out both; }
@keyframes wave { 50% { transform: translateY(-16%) rotate(-4deg); } }
.hero h1 .turning { display: block; font-size: .42em; margin-top: 8px; }
.hero h1 .sub { display: block; font-size: .26em; margin-top: 12px; color: var(--muted); letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--asphalt-2); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip:nth-child(1) svg { color: var(--r1); } .chip:nth-child(2) svg { color: var(--r3); } .chip:nth-child(3) svg { color: var(--r5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.roundel-stage { position: relative; display: grid; place-items: center; padding: 6px 0; }
.roundel { position: relative; width: min(66vw, 310px); aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: none; display: grid; place-items: center; }
.roundel .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r1)); animation: spinring 8s linear infinite; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 60px rgba(155,107,255,.25); }
@keyframes spinring { to { transform: rotate(360deg); } }
.roundel .face { position: absolute; inset: 16px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 8px var(--asphalt); display: grid; place-items: center; }
.roundel .face b { font-family: var(--display); font-weight: 400; color: #121419; font-size: min(44vw, 200px); line-height: 1; padding-top: .07em; transition: transform .2s; }
.roundel:hover .face b { transform: scale(1.05) rotate(-4deg); }
.roundel.spin .face { animation: spinface .9s cubic-bezier(.3,1.4,.5,1); }
@keyframes spinface { from { transform: rotate(0) scale(.8); } to { transform: rotate(720deg) scale(1); } }
.roundel-stage .tag { position: absolute; bottom: 10%; right: 6%; transform: rotate(-8deg); background: var(--yellow); color: #111; font-family: var(--display); font-size: 14px; padding: 6px 12px; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.35); pointer-events: none; }
.roundel-stage .tap { position: absolute; top: 4%; left: 4%; font-weight: 700; font-size: 13px; color: var(--muted); transform: rotate(-8deg); pointer-events: none; }
.burst { position: fixed; z-index: 70; font-family: var(--display); font-size: 34px; pointer-events: none; transform: translate(-50%,-50%); animation: burst 1.1s cubic-bezier(.2,.8,.3,1) forwards; text-shadow: 0 4px 12px rgba(0,0,0,.4); }
@keyframes burst { to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.6) rotate(40deg); opacity: 0; } }

/* countdown odometer */
.countdown { margin: 22px 0 8px; }
.countdown h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-family: var(--body); }
.odo { display: flex; gap: 8px; flex-wrap: wrap; }
.odo .unit { text-align: center; }
.odo .num { display: flex; justify-content: center; padding: 10px 10px 8px; min-width: 76px; border-radius: 12px; background: #0b0c0f; border: 2px solid var(--line); font-family: var(--display); font-size: 36px; line-height: 1; height: 58px; overflow: hidden; position: relative; }
.odo .num::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0b0c0f, transparent 28%, transparent 72%, #0b0c0f); pointer-events: none; }
.odo .unit:nth-child(1) .num { color: var(--r1); } .odo .unit:nth-child(3) .num { color: var(--r3); }
.odo .unit:nth-child(5) .num { color: var(--r4); } .odo .unit:nth-child(7) .num { color: var(--r5); }
.dg { display: inline-block; height: 1em; overflow: hidden; }
.dg .strip { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.4,1.6,.5,1); }
.dg b { display: block; height: 1em; font-weight: 400; }
.odo .lbl { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .08em; text-transform: uppercase; }
.odo .sep { font-family: var(--display); font-size: 30px; color: var(--line); align-self: center; padding-bottom: 22px; }
.odo .big { font-size: 30px; padding: 12px 18px; height: auto; color: var(--lime); }
@media (max-width: 420px) { .odo .num { min-width: 62px; font-size: 28px; height: 50px; } .odo .sep { display: none; } }

/* the racing fleet */
.raceway { position: relative; margin-top: 30px; }
.raceway .hint { position: relative; z-index: 2; text-align: center; font-weight: 700; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.raceway .hint b { color: var(--yellow); }
.lanes { position: relative; background: #0d0e12; border-top: 8px solid; border-bottom: 8px solid; border-image: repeating-linear-gradient(90deg, var(--white) 0 22px, var(--red) 22px 44px) 8; overflow: hidden; }
.lane { position: relative; height: clamp(84px, 15vw, 150px); }
.lane-1 { height: clamp(70px, 12vw, 120px); border-bottom: 3px dashed rgba(246,246,241,.35); }
.lane-1 { order: -1; }
.lanes { display: flex; flex-direction: column; }
.lanes .finishline { position: absolute; top: 0; bottom: 0; left: 72%; width: 24px; background: conic-gradient(var(--white) 25%, #0b0c0f 0 50%, var(--white) 0 75%, #0b0c0f 0) 0 0 / 12px 12px; opacity: .85; z-index: 0; }
.fcar { position: absolute; left: 0; bottom: 4px; width: clamp(150px, 24vw, 290px); border: 0; padding: 0; background: none; cursor: pointer; z-index: 1; will-change: transform; -webkit-tap-highlight-color: transparent; }
.lane-1 .fcar { width: clamp(110px, 17vw, 210px); }
.fcar svg.car { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.fcar .wheel { animation: spin .4s linear infinite; }
.fcar.fast .wheel { animation-duration: .12s; }
.fcar.revving svg.car { animation: rev .12s linear 5; }
@keyframes rev { 50% { transform: translateY(-3px) rotate(-1.5deg); } }
.fcar:focus-visible { outline-offset: -4px; }
.trail { position: absolute; right: 88%; top: 52%; width: 70%; height: 24%; display: flex; flex-direction: column; z-index: 0; transition: width .3s; }
.trail i { flex: 1; background: linear-gradient(90deg, transparent, var(--c)); border-radius: 0 4px 4px 0; }
.fcar.fast .trail { width: 180%; }
.fcar.hero-car .trail { width: 110%; }
.fcar.hero-car.fast .trail { width: 260%; }

/* zoom across the screen */
.zoom-across { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: grid; align-items: center; }
.zoom-across.finish { background: rgba(10,11,14,.0); transition: background .3s; }
.zoom-across.finish.go { background: rgba(10,11,14,.72); }
.zoom-across.out { opacity: 0; transition: opacity .3s; }
.zoom-car { position: absolute; top: 50%; left: 0; width: min(80vw, 560px); transform: translate(-130%, -50%); }
.zoom-car svg.car { width: 100%; height: auto; position: relative; z-index: 1; }
.zoom-car .trail { width: 260%; right: 90%; }
.zoom-across.go .zoom-car { transition: transform 1.1s cubic-bezier(.6,.05,.4,1); transform: translate(calc(100vw + 30%), -50%); }
.zoom-across.finish.go .zoom-car { transition-duration: 1.6s; transition-delay: .3s; }
.zoom-car .wheel { animation: spin .1s linear infinite; }
.finish-banner { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) scale(.6); opacity: 0; text-align: center; transition: all .4s cubic-bezier(.3,1.5,.5,1) .1s; }
.zoom-across.go .finish-banner { transform: translateY(-50%) scale(1); opacity: 1; }
.finish-banner .finish-text { font-family: var(--display); font-size: clamp(48px, 14vw, 120px); padding: 18px 0; background: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finish-banner .flag-row { height: 28px; background: conic-gradient(var(--white) 25%, #0b0c0f 0 50%, var(--white) 0 75%, #0b0c0f 0) 0 0 / 28px 28px; animation: flagwave 0.6s linear infinite; }
@keyframes flagwave { to { background-position: 28px 0; } }

/* ---------- sections ---------- */
section.block { padding: 64px 0; position: relative; }
section[id] { scroll-margin-top: 70px; }
.lap { font-family: var(--display); font-size: 14px; letter-spacing: .06em; }
.lap.c1 { color: var(--r1); } .lap.c2 { color: var(--r2); } .lap.c3 { color: var(--r3); } .lap.c4 { color: var(--r4); } .lap.c5 { color: var(--r5); } .lap.c6 { color: var(--r6); }
h2.title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6.5vw, 46px); margin: 6px 0 26px; line-height: 1.05; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* by the numbers */
.numbers-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .numbers-grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; } }
.gauge { text-align: center; padding: 22px 18px 18px; cursor: pointer; position: relative; overflow: hidden; }
.gauge::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%; background: radial-gradient(closest-side, rgba(255,77,94,.18), transparent); }
.gauge-svg { width: 100%; max-width: 380px; height: auto; margin: 0 auto; display: block; position: relative; }
.gauge .needle { transform: rotate(-90deg); }
.gauge h3 { font-family: var(--display); font-weight: 400; margin: 6px 0 2px; font-size: 26px; position: relative; }
.gauge p { margin: 0; color: var(--muted); position: relative; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.numbers .n { background: var(--asphalt-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; }
.numbers .n b { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; display: block; }
.numbers .n b.pop { animation: pop .4s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 50% { transform: scale(1.25); } }
.numbers .n span { color: var(--muted); font-weight: 600; }
.numbers .n:nth-child(1) b { color: var(--r1); } .numbers .n:nth-child(2) b { color: var(--r3); }
.numbers .n:nth-child(3) b { color: var(--r5); } .numbers .n:nth-child(4) b { color: var(--r6); }
.numbers .n .mini { display: flex; gap: 3px; margin-top: 8px; }
.numbers .n .mini i { flex: 1; height: 8px; border-radius: 4px; }

/* driver card */
.driver { display: grid; overflow: hidden; padding: 0; }
@media (min-width: 760px) { .driver { grid-template-columns: 360px 1fr; } }
.driver .photo-wrap { padding: 18px; background: #0b0c0f; display: grid; place-items: center; }
.driver .photo { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; padding: 6px; background: conic-gradient(from var(--a, 0deg), var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r1)); animation: ringrot 6s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ringrot { to { --a: 360deg; } }
.driver .photo .inner { width: 100%; height: 100%; border-radius: 17px; overflow: hidden; background: #15171c; display: grid; place-items: center; }
.driver .photo .inner { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.slide.on img { animation: kenburns 7s ease-out forwards; }
.slide:nth-child(even).on img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes kenburns2 { from { transform: scale(1.12) translate(1.5%, 0); } to { transform: scale(1.02); } }
.slide figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  font-family: var(--display); font-size: 16px; line-height: 1.15; color: #111;
  background: var(--yellow); padding: 8px 12px; border-radius: 10px; width: fit-content; max-width: calc(100% - 24px);
  transform: translateY(14px) rotate(-2deg); opacity: 0; transition: all .5s cubic-bezier(.3,1.4,.5,1) .35s; box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.slide.on figcaption { transform: rotate(-2deg); opacity: 1; }
.slide:nth-child(5n+2) figcaption { background: var(--r5); } .slide:nth-child(5n+3) figcaption { background: var(--r4); }
.slide:nth-child(5n+4) figcaption { background: var(--r2); } .slide:nth-child(5n+5) figcaption { background: var(--r6); color: #fff; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 70%, rgba(0,0,0,.3)); pointer-events: none; }
.driver .photo .empty { text-align: center; color: var(--muted); padding: 20px; }
.driver .photo .empty svg { width: 140px; height: auto; margin: 0 auto 10px; display: block; }
.driver .photo .num { position: absolute; top: -8px; left: -8px; width: 58px; height: 58px; border-radius: 50%; background: var(--white); color: #111; display: grid; place-items: center; font-family: var(--display); font-size: 30px; border: 4px solid var(--asphalt); box-shadow: 0 6px 16px rgba(0,0,0,.4); z-index: 2; }
.driver .info { padding: 26px; }
.driver .info h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 4px; }
.driver .info .role { color: var(--muted); margin: 0 0 18px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.spec div { background: var(--asphalt); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.spec dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.loves-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.loves { display: flex; flex-wrap: wrap; gap: 8px; }
.loves span { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: #111; animation: bob 3s ease-in-out infinite; }
.loves span:nth-child(6n+1) { background: var(--r1); } .loves span:nth-child(6n+2) { background: var(--r2); animation-delay: .3s; }
.loves span:nth-child(6n+3) { background: var(--r3); animation-delay: .6s; } .loves span:nth-child(6n+4) { background: var(--r4); animation-delay: .9s; }
.loves span:nth-child(6n+5) { background: var(--r5); animation-delay: 1.2s; } .loves span:nth-child(6n+6) { background: var(--r6); animation-delay: 1.5s; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* info cards */
.info-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-card { display: flex; gap: 16px; align-items: flex-start; transition: transform .2s, border-color .2s; }
.info-card:hover { transform: translateY(-3px); border-color: #4a5060; }
.info-card .ico { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; }
.info-card .ico svg { width: 28px; height: 28px; }
.info-grid > :nth-child(6n+1) .ico { background: rgba(255,77,94,.14); color: var(--r1); }
.info-grid > :nth-child(6n+2) .ico { background: rgba(255,154,31,.14); color: var(--r2); }
.info-grid > :nth-child(6n+3) .ico { background: rgba(255,210,63,.14); color: var(--r3); }
.info-grid > :nth-child(6n+4) .ico { background: rgba(198,241,53,.14); color: var(--r4); }
.info-grid > :nth-child(6n+5) .ico { background: rgba(56,182,255,.14); color: var(--r5); }
.info-grid > :nth-child(6n+6) .ico { background: rgba(155,107,255,.16); color: var(--r6); }
.info-card h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-card p { margin: 0; font-size: 18px; }
.info-card p.big { font-weight: 700; font-size: 20px; }
.info-card .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* scroll track schedule */
.trackwrap { position: relative; padding-left: 108px; min-height: 420px; }
.track-svg { position: absolute; left: 0; top: 0; width: 92px; overflow: visible; }
.track-car { position: absolute; left: 0; top: 0; width: 36px; height: 60px; z-index: 3; transform-origin: 18px 30px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.track-car svg { width: 36px; height: 60px; display: block; }
.laps { list-style: none; margin: 0; padding: 30px 0; display: grid; gap: 34px; }
.laps li { position: relative; background: var(--asphalt-2); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .3s, transform .3s, box-shadow .3s; }
.laps li .t { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--muted); transition: color .3s; }
.laps li .lapno { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 6px 0 2px; }
.laps li b { display: block; font-size: 20px; }
.laps li span.d { color: var(--muted); }
.laps li.passed { transform: translateX(6px); }
.laps li.passed:nth-child(6n+1) { border-color: var(--r1); box-shadow: 0 0 30px rgba(255,77,94,.15); } .laps li.passed:nth-child(6n+1) .t { color: var(--r1); }
.laps li.passed:nth-child(6n+2) { border-color: var(--r2); box-shadow: 0 0 30px rgba(255,154,31,.15); } .laps li.passed:nth-child(6n+2) .t { color: var(--r2); }
.laps li.passed:nth-child(6n+3) { border-color: var(--r3); box-shadow: 0 0 30px rgba(255,210,63,.15); } .laps li.passed:nth-child(6n+3) .t { color: var(--r3); }
.laps li.passed:nth-child(6n+4) { border-color: var(--r4); box-shadow: 0 0 30px rgba(198,241,53,.15); } .laps li.passed:nth-child(6n+4) .t { color: var(--r4); }
.laps li.passed:nth-child(6n+5) { border-color: var(--r5); box-shadow: 0 0 30px rgba(56,182,255,.15); } .laps li.passed:nth-child(6n+5) .t { color: var(--r5); }
.laps li.passed:nth-child(6n+6) { border-color: var(--r6); box-shadow: 0 0 30px rgba(155,107,255,.15); } .laps li.passed:nth-child(6n+6) .t { color: var(--r6); }
.laps li::before { content: ""; position: absolute; left: -36px; top: 50%; width: 20px; height: 3px; background: var(--line); }
.note { color: var(--muted); font-size: 14px; margin-top: 28px; }

/* RSVP */
.rsvp-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .rsvp-wrap { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.rsvp-side p { color: var(--muted); }
.rsvp-side .deadline { display: inline-block; background: var(--yellow); color: #111; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.choice button { min-height: 76px; border-radius: 14px; border: 2px solid var(--line); background: var(--asphalt); cursor: pointer; font-weight: 700; font-size: 17px; padding: 10px; transition: all .15s; }
.choice button .e { display: block; font-size: 24px; transition: transform .3s; }
.choice button[aria-pressed=true].yes { border-color: var(--lime); background: rgba(198,241,53,.12); color: var(--lime); }
.choice button[aria-pressed=true].yes .e { animation: zoomemoji .6s ease; }
@keyframes zoomemoji { 40% { transform: translateX(30px) scale(1.2); } 41% { transform: translateX(-30px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.choice button[aria-pressed=true].no { border-color: var(--muted); background: var(--asphalt-3); }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.crew-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 0 10px; }
.crew-head h3 { margin: 0; font-size: 18px; }
.crew-head small { color: var(--muted); }
.guest { background: var(--asphalt); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; display: grid; gap: 10px; animation: slidein .35s ease; }
@keyframes slidein { from { opacity: 0; transform: translateX(-16px); } }
.guest .top { display: flex; gap: 8px; align-items: center; }
.guest .top .gnum { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 15px; color: #111; }
.guest:nth-child(6n+1) .gnum { background: var(--r1); } .guest:nth-child(6n+2) .gnum { background: var(--r2); }
.guest:nth-child(6n+3) .gnum { background: var(--r3); } .guest:nth-child(6n+4) .gnum { background: var(--r4); }
.guest:nth-child(6n+5) .gnum { background: var(--r5); } .guest:nth-child(6n+6) .gnum { background: var(--r6); }
.guest .top input { flex: 1; min-width: 0; }
.guest .rm { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }
.guest .rm:hover { color: var(--red); border-color: var(--red); }
.guest .bottom { display: grid; gap: 10px; grid-template-columns: auto 1fr; align-items: center; }
.seg { display: inline-flex; background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--lime); color: #111; }
.guest .extras { display: grid; gap: 10px; grid-template-columns: 90px 1fr; }
.guest .extras.adult { grid-template-columns: 1fr; }
.guest select, .guest input { min-height: 44px; padding: 8px 12px; font-size: 15px; }
@media (max-width: 520px) { .guest .bottom { grid-template-columns: 1fr; } }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 20px; }

.done { text-align: center; padding: 30px 22px; position: relative; overflow: hidden; }
.done::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--rainbow); }
.done .flag { font-size: 52px; display: inline-block; animation: flagflap 1s ease-in-out infinite; transform-origin: 20% 90%; }
@keyframes flagflap { 50% { transform: rotate(-12deg); } }
.done h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 10px 0 6px; }
.done ul { list-style: none; padding: 0; margin: 16px auto; max-width: 380px; text-align: left; }
.done li { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.done li span { color: var(--muted); font-size: 14px; text-align: right; }
.mylink { margin: 18px auto 0; max-width: 460px; background: var(--asphalt); border: 1px dashed var(--line); border-radius: 14px; padding: 14px; text-align: left; }
.mylink p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.mylink .copyrow { display: flex; gap: 8px; }
.mylink input { min-height: 44px; font-size: 14px; }

footer.foot { position: relative; padding: 0 0 80px; text-align: center; color: var(--muted); overflow: hidden; }
footer.foot .display { color: var(--white); font-size: clamp(24px, 5vw, 34px); margin: 40px 0 8px; }
footer.foot a { color: var(--white); }
.parade { position: relative; height: 70px; margin-top: 30px; overflow: hidden; }
.parade .pc { position: absolute; bottom: 6px; width: 110px; animation: parade 14s linear infinite; }
.parade .pc svg { width: 100%; height: auto; }
@keyframes parade { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw + 20px)); } }
.parade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--rainbow); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 85; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 12px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx, 0), 110vh) rotate(720deg); } }

.loading { min-height: 100svh; display: grid; place-items: center; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .floaters span, .roundel .ring, .driver .photo, .slide.on img, .loves span, .rainbow-text, .parade .pc, .done .flag, .hero h1 .name i { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .parade { display: none; }
}

/* phones: cars right under the headline */
@media (max-width: 859px) {
  .hero { display: flex; flex-direction: column; padding-top: 28px; }
  .hero-top, .hero-grid { display: contents; }
  .hero-copy { order: 1; padding: 0 16px; }
  .raceway { order: 2; margin-top: 26px; }
  .pit { order: 3; padding-top: 6px; }
  .roundel-stage { order: 4; margin: 0 auto 40px; }
  .roundel { width: min(62vw, 250px); }
  .roundel .face b { font-size: min(36vw, 150px); }
}

/* "Our house" chip jumps to the address card */
.chip-link { color: var(--white); text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s; }
.chip-link:hover { border-color: var(--r5); transform: translateY(-2px); }
#where { scroll-margin-top: 90px; }
#where.flash { animation: whereflash 1.6s ease .4s; }
@keyframes whereflash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56,182,255,0); border-color: var(--line); }
  30%, 60% { box-shadow: 0 0 0 4px rgba(56,182,255,.55), 0 0 40px rgba(56,182,255,.35); border-color: var(--r5); }
}
