/* Full Throttle 2.0: depth, cards, and the new sections. Loaded after throttle.css; the opener is left as it was. */
:root {
    --card: linear-gradient(180deg, #17130b 0%, #0b0906 55%, #060504 100%);
    --line: rgba(212, 175, 99, .24);
    --line2: rgba(212, 175, 99, .12);
    --red: #C9493F;
}

/* Ambient light and grain behind the page */
body { background: transparent !important; }
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
    background:
        radial-gradient(70% 38% at 50% 0%, rgba(212, 175, 99, .16), transparent 70%),
        radial-gradient(45% 30% at 0% 55%, rgba(156, 122, 52, .09), transparent 70%),
        radial-gradient(45% 30% at 100% 88%, rgba(156, 122, 52, .1), transparent 70%);
}
body::after {
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frame, .info .it, .plan .road, .fc, .stg, .odo, .tomb, .cand { background: transparent; }
section[id], .hero { scroll-margin-top: 24px; }

/* Road centre line between sections */
.gap { position: relative; height: 104px; }
.gap::before {
    content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 2px; margin-left: -1px;
    background: repeating-linear-gradient(180deg, rgba(212, 175, 99, .5) 0 8px, transparent 8px 17px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}

.btn { transition: background .25s, color .25s; }
.btn:hover { background: rgba(212, 175, 99, .12); }
.tap { font-family: var(--cap); font-size: 12px; }

/* Hero */
.hero { padding-bottom: 30px; }
.halo {
    position: absolute; left: 50%; top: 4%; width: min(120vw, 520px); aspect-ratio: 1; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(243, 221, 155, .2), rgba(212, 175, 99, .07) 38%, transparent 66%);
    animation: breathe 6s ease-in-out infinite; pointer-events: none;
}
@keyframes breathe { 50% { opacity: .55; transform: translateX(-50%) scale(1.08); } }
.hero > :not(.halo) { position: relative; }
.odo { gap: 5px; }
.odo .dg {
    border: 1px solid var(--line); border-radius: 7px;
    background: linear-gradient(180deg, #000 0%, #1d180e 48%, #1d180e 52%, #000 100%);
    box-shadow: inset 0 0 14px #000;
}
.odo .dg::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.odo-l { margin-top: 6px; }
.plate {
    align-self: center; display: grid; gap: 5px; min-width: 232px; margin: 30px auto 0; padding: 11px 38px 10px;
    border: 2px solid var(--gold); border-radius: 9px; background: linear-gradient(180deg, #19150c, #060504);
    box-shadow: inset 0 0 0 3px #000, inset 0 0 0 4px rgba(212, 175, 99, .35), 0 16px 34px rgba(0, 0, 0, .75), 0 0 40px rgba(212, 175, 99, .1);
}
.plate span { font: 500 10px/1 var(--num); letter-spacing: .34em; color: var(--ink2); text-indent: .34em; }
.plate b { font: 600 36px/1 var(--num); letter-spacing: .12em; text-indent: .12em; color: var(--gold2); overflow-wrap: anywhere; }
.plate em { display: inline-block; margin: 0 .3em; font-size: 12px; font-style: normal; color: var(--gold); vertical-align: middle; transform: translateY(-3px); }
.plate > i { position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; border: 1px solid var(--gold3); background: #000; }
.plate > i:first-child { left: 13px; }
.plate > i:nth-child(2) { right: 13px; }

/* Caution tape */
.tape { margin: 30px calc(50% - 50vw); padding: 26px 0; overflow: hidden; pointer-events: none; }
.tape-run {
    display: flex; width: max-content; padding: 12px 0 11px; rotate: -2.2deg; transform-origin: 50vw 50%;
    background: var(--gg); background-size: 200% 100%; color: #0b0804; font: 600 15px/1 var(--num); letter-spacing: .3em;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .8); animation: tape 30s linear infinite;
}
.tape-run span { flex: none; white-space: pre; }
.tape-run i { font-style: normal; font-size: 10px; vertical-align: 2px; opacity: .7; }
.tape.alt { margin-top: 70px; margin-bottom: 40px; }
.tape.alt .tape-run {
    rotate: 2.2deg; background: #0b0906; color: var(--gold2); animation-direction: reverse;
    border-block: 1px solid var(--gold); box-shadow: none;
}
@keyframes tape { to { transform: translateX(-50%); } }

/* Farewell */
.tomb {
    background: linear-gradient(180deg, #15110a, #050403 85%);
    box-shadow: inset 0 0 0 7px #080705, inset 0 0 0 8px var(--line), 0 -18px 60px rgba(212, 175, 99, .09);
}
.tomb p.gold { color: transparent; font-style: normal; }
.candles { position: relative; }
.cand { background: linear-gradient(90deg, #17130b, #050403); }
.ground { height: 1px; width: min(96vw, 420px); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); }

/* Where and when: ticket */
.ticket { position: relative; margin-top: 26px; padding: 6px 20px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); }
.ticket .info { margin-top: 0; gap: 0; }
.ticket .info .it { padding: 17px 0; border-bottom: 1px solid var(--line2); }
.ticket .info .it:last-child { border-bottom: 0; }
.perf { position: relative; height: 0; margin: 4px -20px 0; border-top: 1px dashed rgba(212, 175, 99, .45); }
.perf::before, .perf::after {
    content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #000;
    border: 1px solid; border-color: transparent rgba(212, 175, 99, .3) rgba(212, 175, 99, .3) transparent;
}
.perf::before { left: -12px; transform: rotate(-45deg); }
.perf::after { right: -12px; transform: rotate(135deg); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.acts .btn { margin: 0; padding: 15px 6px; font-size: 12.5px; letter-spacing: .13em; text-align: center; }
.ics { display: block; margin: 14px auto 0; padding: 6px; border: 0; background: none; color: var(--ink2); font: 500 16px var(--serif); font-style: italic; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); cursor: pointer; }
.ics:hover { color: var(--gold2); }

/* Cover story */
.memo {
    position: relative; margin: 34px auto 0; max-width: 400px; padding: 38px 22px 26px; rotate: -1.4deg;
    border: 1px solid var(--line); border-radius: 4px;
    background: repeating-linear-gradient(180deg, transparent 0 33px, rgba(212, 175, 99, .07) 33px 34px), var(--card);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .65);
}
.stamp {
    position: absolute; top: -15px; right: 16px; padding: 5px 9px 5px 12px; rotate: 5deg; background: #060504;
    border: 1px solid rgba(201, 73, 63, .7); color: var(--red); font: 500 12px/1 var(--num); letter-spacing: .4em;
}
.memo-k { margin: 0; font: 500 12px var(--cap); letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }
.memo-q { margin: 12px 0 0; font-size: 28px; line-height: 1.25; font-style: italic; font-weight: 600; color: var(--gold2); overflow-wrap: anywhere; }
.memo .copy { margin-top: 22px; padding: 12px 20px; font-size: 12px; }
.memo .copy.ok { background: var(--gold2); color: #0b0804; }

/* Ride plan */
.plan .road::after { background: repeating-linear-gradient(180deg, rgba(212, 175, 99, .55) 0 10px, transparent 10px 20px); }
.plan .st::before {
    content: ""; position: absolute; left: -40px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
    border: 1px solid var(--gold); background: #000; transition: background .5s, box-shadow .5s;
}
.plan .st.on::before { background: var(--gold2); box-shadow: 0 0 12px rgba(243, 221, 155, .8); }
.plan .st.hot { margin: 0 0 28px; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.plan .st.hot.on { border-color: var(--gold); box-shadow: 0 0 40px rgba(212, 175, 99, .14); }
.plan .st.hot::before { left: -41px; top: 23px; }
.plan .st::before { transition: background .5s, box-shadow .5s, transform .6s; }
.plan .st:not(.on)::before { transform: translateX(-12px); }
html:not(.throttle-enhanced) .plan .st::before { transform: none; }

/* Rules */
.rules > div {
    position: relative; padding: 18px 14px 18px; text-align: left; overflow: hidden;
    border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.rules > div::before { content: ""; position: absolute; left: 14px; top: 0; width: 34px; height: 2px; background: var(--gold); }
.rules .e { padding: 0; background: none; font-size: 34px; }
.rules p { font-size: 19px; }

/* The road so far */
.miles {
    display: flex; gap: 14px; margin: 26px calc(50% - 50vw) 0; padding: 8px max(20px, calc(50vw - 240px)) 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.miles::-webkit-scrollbar { display: none; }
.miles:focus-visible { outline: 2px solid var(--gold2); outline-offset: -2px; }
.mile {
    position: relative; flex: 0 0 min(72vw, 290px); scroll-snap-align: center; padding: 20px 20px 46px; text-align: left; cursor: pointer;
    border: 1px solid var(--line); border-radius: 16px; background: var(--card);
}
.mile::after {
    content: ""; position: absolute; left: 20px; right: 20px; bottom: 22px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(212, 175, 99, .55) 0 12px, transparent 12px 22px);
}
.mile .mk { font: 500 11px/1 var(--num); letter-spacing: .32em; color: var(--ink2); }
.mile b { display: block; width: max-content; max-width: 100%; margin: 12px 0 10px; font: 600 60px/1 var(--num); letter-spacing: .02em; }
.mile h3 { margin: 0 0 6px; font: 600 19px/1.2 var(--cap); letter-spacing: .06em; overflow-wrap: anywhere; }
.mile p { margin: 0; font-size: 19px; line-height: 1.35; color: var(--ink2); }
.mile.last { border-color: var(--gold); box-shadow: 0 0 44px rgba(212, 175, 99, .16); }
.mile.last h3 { color: var(--gold2); }
@media (min-width: 760px) {
    .miles {
        margin-inline: -110px; padding-inline: 110px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 100px, #000 calc(100% - 100px), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 100px, #000 calc(100% - 100px), transparent);
    }
}

/* Flip cards */
.fc { border-radius: 16px; }
.fc .fr, .fc .bk { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #17130b, #070605); }
.fc .fr { background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(212, 175, 99, .045) 11px 12px), linear-gradient(180deg, #17130b, #070605); }
.fc .fr::before, .fc .fr::after { content: "◆"; position: absolute; font-size: 8px; color: var(--gold3); }
.fc .fr::before { left: 12px; top: 10px; }
.fc .fr::after { right: 12px; bottom: 10px; }
.fc .bk { border-color: var(--gold); font-size: 19px; }
.fc:hover .fr { border-color: rgba(212, 175, 99, .55); }

/* Rev it */
.revbox { margin-top: 26px; padding: 28px 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); transition: border-color .4s, box-shadow .4s; }
.rev-read { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.rev-read b { font: 600 92px/1 var(--num); color: var(--gold2); font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(212, 175, 99, .35); transition: color .2s; }
.rev-read span { font: 500 18px/1 var(--num); letter-spacing: .12em; color: var(--ink2); }
.leds { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 28px; margin: 20px 0 22px; }
.leds i { border-radius: 2px; background: rgba(212, 175, 99, .12); }
.leds i.on { background: var(--gold2); box-shadow: 0 0 9px rgba(243, 221, 155, .7); }
.leds i:nth-child(n+19) { background: rgba(201, 73, 63, .16); }
.leds i:nth-child(n+19).on { background: #e2584c; box-shadow: 0 0 11px rgba(226, 88, 76, .9); }
.throttle {
    position: relative; display: block; width: 100%; min-height: 66px; overflow: hidden; cursor: pointer;
    border: 1px solid var(--gold); border-radius: 999px; background: linear-gradient(180deg, #1d180e, #090705); color: var(--gold2);
    font: 600 16px/1 var(--num); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase;
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.throttle::before {
    content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--rev, 0));
    background: linear-gradient(90deg, rgba(212, 175, 99, .25), rgba(212, 175, 99, .45) 70%, rgba(226, 88, 76, .7));
}
.throttle span { position: relative; }
.throttle.held { box-shadow: 0 0 34px rgba(212, 175, 99, .35); }
.rev-msg { margin: 16px 0 0; min-height: 2.7em; font-size: 19px; line-height: 1.35; color: var(--ink2); }
.revbox.hot .rev-read b { color: #ff9d8f; text-shadow: 0 0 34px rgba(226, 88, 76, .6); }
.revbox.done { border-color: var(--gold); box-shadow: 0 0 60px rgba(212, 175, 99, .2); }
.revbox.done .rev-msg { color: var(--gold2); }
html:not(.throttle-enhanced) #rev { display: none; }

/* Dress code */
.sw .k { border: 1px solid #3c3c3c; background: radial-gradient(circle at 32% 26%, #4a4a4a, #111 46%, #000 75%); }
.sw .g { border: 1px solid var(--gold2); background: radial-gradient(circle at 32% 26%, #FFF6D6, #E2C47A 30%, #9C7A34 72%, #6b5226); box-shadow: 0 0 34px rgba(212, 175, 99, .35), 0 10px 24px rgba(0, 0, 0, .6); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 15px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(212, 175, 99, .05); font-size: 18px; line-height: 1.2; }

/* Gift */
.gift svg { filter: drop-shadow(0 0 18px rgba(212, 175, 99, .35)); }

/* Countdown */
.cd div { padding: 18px 2px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cd b { font-size: clamp(34px, 11vw, 46px); }
.cd span { display: block; margin-top: 7px; }
.cd-when { margin: 20px 0 0; font: 500 13px var(--cap); letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }
.cd-when i { margin: 0 .5em; font-style: normal; font-size: 8px; color: var(--gold); vertical-align: 2px; }

/* Pit stop */
.faq { margin-top: 24px; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; list-style: none; cursor: pointer; font-size: 22px; font-weight: 600; line-height: 1.25; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 30px/1 var(--num); color: var(--gold); transition: transform .3s; }
.faq details[open] summary { color: var(--gold2); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; padding: 0 34px 0 2px; font-size: 20px; line-height: 1.4; color: var(--ink2); }
.faq summary:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }

/* RSVP */
#rsvp form { margin-top: 26px; padding: 6px 20px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); }
#rsvp input[type=text], #rsvp input[type=email], #rsvp textarea, .stp input { background: transparent; }
#rsvp input[type=text]:focus, #rsvp input[type=email]:focus, #rsvp textarea:focus { border-bottom-color: var(--gold2); }
.ch label > span { border-radius: 12px; background: transparent; transition: background .2s, border-color .2s; }
.ch input:checked + span { background: rgba(212, 175, 99, .12); border: 1px solid var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.btn.f.send { padding-block: 18px; border: 0; background: var(--gg); background-size: 160% 100%; color: #0b0804; letter-spacing: .22em; }
.btn.f.send:hover { background-position: 60% 0; }
.rsvp-confirm { padding: 28px 18px 22px; border: 1px solid var(--gold); border-radius: 20px; background: var(--card); box-shadow: 0 0 60px rgba(212, 175, 99, .14); }
.rsvp-confirm .cl-gold-button { padding: 13px 20px; border: 1px solid var(--gold); font: 500 13px var(--cap); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }

/* The sticker art needs a pure black backdrop. */
.mq-s { margin-inline: calc(50% - 50vw); padding-inline: 20px; background: #000; box-shadow: 0 0 20px 12px #000; }
.ch { margin-top: 18px; }
.ch legend.l { margin-top: 0; }

/* Closing */
.closing .rule { margin-bottom: 30px; }
.ask { margin: 34px 0 0; font-size: 20px; color: var(--ink2); }
.ask + .btn { margin-top: 14px; }
.hush { margin: 38px 0 0; font-size: 17px; line-height: 1.45; font-style: italic; color: var(--ink2); }

/* Music switch */
.snd {
    position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 3px;
    width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(0, 0, 0, .72); cursor: pointer;
}
.snd i { width: 3px; height: 4px; border-radius: 2px; background: var(--ink2); transition: height .3s, background .3s; }
.snd.on { border-color: var(--gold); }
.snd.on i { height: 16px; background: var(--gold2); transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.snd.on i:nth-child(2) { animation-delay: -.35s; }
.snd.on i:nth-child(3) { animation-delay: -.7s; }
.snd.on i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 50% { transform: scaleY(.3); } }

/* Trip meter */
.trip .km {
    position: absolute; right: 10px; bottom: calc(38px + env(safe-area-inset-bottom)); padding: 4px 9px 4px 11px;
    border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .78);
    font: 500 11px/1 var(--num); letter-spacing: .2em; color: var(--gold2); font-variant-numeric: tabular-nums;
    opacity: 0; transition: opacity .4s;
}
.trip .km.show { opacity: 1; }

/* Section rail on wide screens */
.rail { display: none; }
@media (min-width: 1100px) {
    .rail { display: flex; flex-direction: column; position: fixed; left: max(28px, calc(50vw - 540px)); top: 50%; z-index: 30; transform: translateY(-50%); text-align: left; }
    .rail a { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--ink2); opacity: .5; text-decoration: none; font: 500 11px/1 var(--cap); letter-spacing: .24em; text-transform: uppercase; transition: color .3s, opacity .3s; }
    .rail i { width: 16px; height: 1px; background: currentColor; transition: width .35s cubic-bezier(.2, .8, .2, 1), background .3s; }
    .rail a:hover { opacity: 1; }
    .rail a.on { color: var(--gold2); opacity: 1; }
    .rail a.on i { width: 40px; background: var(--gold); }
    html:not(.throttle-enhanced) .rail { display: none; }
}

@media (max-width: 360px) {
    .acts { grid-template-columns: 1fr; }
    .plan .st::before { left: -30px; }
    .plan .st.hot::before { left: -31px; }
    .plate { min-width: 0; padding-inline: 30px; }
    .plate b { font-size: 30px; }
    .rev-read b { font-size: 76px; }
    #rsvp form, .ticket { padding-inline: 14px; }
    .perf { margin-inline: -14px; }
}
@media (prefers-reduced-motion: reduce) {
    .tape-run { animation: none; }
    .trip .km { display: none; }
}
