/* 11 wrapped — full-bleed responsive, hot maximalist */

:root {
    --magenta: #ff2e93;
    --orange: #ff6a1f;
    --red: #e8113a;
    --pink: #ffb1c8;
    --yellow: #ffd23f;
    --cream: #fff4e6;
    --ink: #14080e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--ink);
    color: var(--cream);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
}

#root {
    width: 100%;
    height: 100%;
}

/* ─── Story container: full bleed everywhere ─── */

.story {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
    user-select: none;
}

/* ─── Progress bars ─── */

.progress-row {
    position: absolute;
    top: clamp(14px, 2vh, 22px);
    left: clamp(14px, 2vw, 28px);
    right: clamp(14px, 2vw, 28px);
    display: flex;
    gap: 4px;
    z-index: 30;
    pointer-events: none;
}
.progress-seg {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 244, 230, 0.25);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--cream);
    transition: width 60ms linear;
}

/* ─── Top chrome (brand + audio) ─── */

.chrome {
    position: absolute;
    top: clamp(32px, 4.5vh, 56px);
    left: clamp(20px, 3vw, 40px);
    right: clamp(20px, 3vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 25;
    pointer-events: none;
}
.brand {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: clamp(11px, 1.1vw, 13px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 0 14px var(--magenta);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(0.75);
    }
}

.audio-btn {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 244, 230, 0.5);
    background: rgba(20, 8, 14, 0.45);
    backdrop-filter: blur(8px);
    color: var(--cream);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 14px;
    transition:
        transform 0.15s,
        background 0.2s;
}
.audio-btn:hover {
    background: rgba(255, 244, 230, 0.15);
}
.audio-btn:active {
    transform: scale(0.92);
}

/* ─── Nav zones (invisible tap targets) ─── */

.nav-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 20;
    cursor: pointer;
}
.nav-zone.left {
    left: 0;
}
.nav-zone.right {
    right: 0;
}

/* ─── Slide base ─── */

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(90px, 12vh, 140px) clamp(24px, 5vw, 80px)
        clamp(60px, 8vh, 100px);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Each slide animates content in via stagger when .active is added */
.slide .anim {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.slide.active .anim {
    opacity: 1;
    transform: translateY(0);
}

/* Inner content column — keeps things centered & readable on wide screens */
.col {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(640px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gradient backdrops */
.bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.bg::before,
.bg::after {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(
        circle,
        var(--bg-a, var(--magenta)) 0%,
        transparent 60%
    );
    filter: blur(60px);
    animation: drift 18s ease-in-out infinite;
}
.bg::after {
    background: radial-gradient(
        circle,
        var(--bg-b, var(--orange)) 0%,
        transparent 60%
    );
    animation: drift 22s ease-in-out infinite reverse;
    animation-delay: -7s;
}
@keyframes drift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(8%, -6%) scale(1.15);
    }
    66% {
        transform: translate(-6%, 7%) scale(0.95);
    }
}

/* ─── Type system ─── */

.display {
    font-family: "Anton", "Archivo Black", sans-serif;
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 0.86;
}
.italic {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 400;
    line-height: 0.95;
}
.mono {
    font-family: "JetBrains Mono", monospace;
    font-weight: 500;
}

.label {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: clamp(12px, 1.1vw, 14px);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.95;
    color: var(--cream);
}

/* ═════════════════════════════════════════════════════════════════════════
   TRANSITION OVERLAY — black-BG ring-trail race
   ═════════════════════════════════════════════════════════════════════════ */

.transition-overlay {
    position: absolute;
    inset: 0;
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.22s ease;
    background: #000;
}
.transition-overlay.active {
    opacity: 1;
}

.transition-overlay .trans-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 50% at 50% 50%,
            rgba(255, 46, 147, 0.06),
            transparent 70%
        ),
        #000;
}

.transition-overlay .trans-label {
    position: absolute;
    top: clamp(70px, 9vh, 110px);
    left: 0;
    right: 0;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(255, 244, 230, 0.6);
    z-index: 5;
}

/* ─── Falling tracks: ring-trail lanes ─── */

.falling-tracks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.falling-tracks .lane {
    --size: clamp(58px, 7vw, 86px);
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--col);
    width: var(--size);
    transform: translateX(-50%);
}

.falling-tracks .race-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: clamp(150px, 22vh, 210px);
}

.falling-tracks .trail {
    position: relative;
    width: 100%;
    height: 0;
    /* Repeating ring outlines, one per --size tile, sized to fit the tile */
    background: radial-gradient(
            circle closest-side,
            transparent calc(100% - 6px),
            var(--ring) calc(100% - 6px),
            var(--ring) calc(100% - 2px),
            transparent calc(100% - 2px)
        )
        center top / var(--size) var(--size) repeat-y;
    filter: drop-shadow(
        0 0 6px color-mix(in srgb, var(--ring) 35%, transparent)
    );
    animation-duration: var(--dur, 13s);
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* 5 motion variants — all reach height: 100% at t=duration, but the path
   between is different. With timing-function: linear, the keyframes
   themselves dictate the pacing. */
.lane.v1 .trail {
    animation-name: drop-steady;
}
.lane.v2 .trail {
    animation-name: drop-fast-start;
}
.lane.v3 .trail {
    animation-name: drop-slow-start;
}
.lane.v4 .trail {
    animation-name: drop-bouncy;
}
.lane.v5 .trail {
    animation-name: drop-stutter;
}

@keyframes drop-steady {
    0% {
        height: 0%;
    }
    100% {
        height: 100%;
    }
}
@keyframes drop-fast-start {
    0% {
        height: 0%;
    }
    40% {
        height: 68%;
    }
    70% {
        height: 80%;
    }
    100% {
        height: 100%;
    }
}
@keyframes drop-slow-start {
    0% {
        height: 0%;
    }
    30% {
        height: 10%;
    }
    60% {
        height: 32%;
    }
    100% {
        height: 100%;
    }
}
@keyframes drop-bouncy {
    0% {
        height: 0%;
    }
    45% {
        height: 60%;
    }
    55% {
        height: 55%;
    }
    68% {
        height: 78%;
    }
    78% {
        height: 73%;
    }
    100% {
        height: 100%;
    }
}
@keyframes drop-stutter {
    0% {
        height: 0%;
    }
    22% {
        height: 32%;
    }
    32% {
        height: 33%;
    } /* pause */
    58% {
        height: 50%;
    }
    68% {
        height: 51%;
    } /* pause */
    100% {
        height: 100%;
    }
}

/* Avatar HEAD — anchored to the bottom of the trail, so it falls as the trail grows */
.falling-tracks .head {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--face);
    border: 3.5px solid var(--ring);
    box-shadow:
        0 0 28px color-mix(in srgb, var(--ring) 55%, transparent),
        inset 0 0 14px rgba(0, 0, 0, 0.35);
    display: grid;
    place-items: center;
    font-family: "Anton", sans-serif;
    font-size: clamp(20px, 2.4vw, 32px);
    color: var(--cream);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    animation: head-wiggle 1.3s ease-in-out infinite alternate;
}
@keyframes head-wiggle {
    from {
        transform: translateX(-8%) rotate(-3deg);
    }
    to {
        transform: translateX(8%) rotate(3deg);
    }
}

/* Card at the bottom — reveals AFTER the race (rank 5 → rank 1) */
.falling-tracks .card {
    position: absolute;
    bottom: clamp(28px, 4vh, 50px);
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: rgba(0, 0, 0, 0.72);
    border: 1.5px solid var(--ring);
    border-radius: 10px;
    padding: 9px 14px 11px;
    text-align: center;
    min-width: clamp(96px, 14vw, 160px);
    white-space: nowrap;
    opacity: 0;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.6),
        0 0 22px color-mix(in srgb, var(--ring) 30%, transparent);
    animation: card-reveal 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: var(--reveal-delay, 13s);
    backdrop-filter: blur(4px);
}
@keyframes card-reveal {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.falling-tracks .card-rank {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: clamp(9px, 0.85vw, 11px);
    letter-spacing: 0.26em;
    color: var(--ring);
    text-transform: uppercase;
}
.falling-tracks .card-name {
    font-family: "Anton", sans-serif;
    font-size: clamp(14px, 1.5vw, 20px);
    color: var(--cream);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 4px;
    letter-spacing: 0.005em;
}
.falling-tracks .card-sub {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: clamp(11px, 1.05vw, 14px);
    color: var(--cream);
    opacity: 0.78;
    margin-top: 2px;
    line-height: 1.1;
}

/* Winner card (#1): larger, slides up from further below */
.falling-tracks .card.winner {
    min-width: clamp(110px, 16vw, 190px);
    padding: 12px 18px 14px;
    border-width: 2.5px;
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.7),
        0 0 32px color-mix(in srgb, var(--ring) 45%, transparent);
    animation-name: card-winner-reveal;
}
.falling-tracks .card.winner .card-rank {
    color: var(--yellow);
    font-size: clamp(10px, 1vw, 13px);
}
.falling-tracks .card.winner .card-name {
    font-size: clamp(16px, 1.8vw, 24px);
}

@keyframes card-winner-reveal {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(90px) scale(0.88);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* On narrower screens, cards can overlap — allow soft wrap and shrink */
@media (max-width: 640px) {
    .falling-tracks .lane {
        --size: 48px;
    }
    .falling-tracks .card {
        min-width: 0;
        padding: 6px 8px;
        white-space: normal;
        max-width: 80px;
    }
    .falling-tracks .card-name {
        font-size: 11px;
    }
    .falling-tracks .card-sub {
        font-size: 9px;
    }
    .falling-tracks .card-rank {
        font-size: 8px;
    }
    .falling-tracks .card.winner {
        min-width: 0;
        max-width: 90px;
    }
    .falling-tracks .card.winner .card-name {
        font-size: 13px;
    }
}

/* ═════════════════════════════════════════════════════════════════════════
   CHASING AVATARS — original racing-circles animation
   ═════════════════════════════════════════════════════════════════════════ */

.chase {
    position: absolute;
    width: 100%;
    height: clamp(150px, 22vh, 280px);
    pointer-events: none;
    overflow: visible;
}

.chase .runner {
    position: absolute;
    top: 50%;
    width: clamp(72px, 9vw, 130px);
    height: clamp(72px, 9vw, 130px);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: chase-run var(--dur, 8s) cubic-bezier(0.4, 0.05, 0.5, 0.95)
        infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}

.chase .runner .face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--face, linear-gradient(135deg, #ff2e93, #ff6a1f));
    border: 3px solid var(--cream);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    display: grid;
    place-items: center;
    font-family: "Anton", sans-serif;
    font-size: clamp(28px, 4vw, 56px);
    color: var(--cream);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Motion trail */
.chase .runner::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 90%;
    transform: translateY(-50%);
    width: clamp(80px, 12vw, 180px);
    height: 70%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--trail, rgba(255, 46, 147, 0.55)) 90%
    );
    border-radius: 50%;
    filter: blur(6px);
}

@keyframes chase-run {
    0% {
        transform: translate(-30vw, -50%) scale(0.85);
    }
    45% {
        transform: translate(40vw, -50%) scale(1);
    }
    50% {
        transform: translate(50vw, -50%) scale(1);
    }
    55% {
        transform: translate(60vw, -50%) scale(1);
    }
    100% {
        transform: translate(130vw, -50%) scale(0.85);
    }
}

/* Subtle bob */
.chase .runner .face {
    animation: bob 0.6s ease-in-out infinite alternate;
}
@keyframes bob {
    from {
        transform: translateY(-3%);
    }
    to {
        transform: translateY(3%);
    }
}

/* ═════════════════════════════════════════════════════════════════════════
   SLIDES
   ═════════════════════════════════════════════════════════════════════════ */

/* Intro */
.intro .stack {
    text-align: center;
}
.intro .year {
    font-size: clamp(12px, 1.2vw, 14px);
    letter-spacing: 0.42em;
    margin-bottom: clamp(20px, 4vh, 36px);
    opacity: 0.9;
}
.intro h1 {
    font-size: clamp(108px, 22vw, 260px);
    text-align: center;
    text-transform: uppercase;
}
.intro h1 .wrapped {
    display: block;
    font-size: clamp(80px, 18vw, 220px);
    margin-top: -0.18em;
    color: var(--cream);
}
.intro .tagline {
    margin-top: clamp(24px, 4vh, 40px);
    font-size: clamp(13px, 1.3vw, 16px);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.85;
}
.intro .chase-wrap {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    z-index: -1;
    opacity: 0.4;
}

/* Stat slides (petya-late, chairs, teeth, board-count) */
.stat-slide {
    text-align: center;
}
.stat-slide .label {
    margin-bottom: clamp(18px, 3vh, 28px);
}
.stat-slide .big {
    font-size: clamp(120px, 24vw, 320px);
    background: linear-gradient(
        180deg,
        var(--yellow),
        var(--orange) 50%,
        var(--magenta)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 40px rgba(255, 106, 31, 0.55));
    line-height: 0.88;
}
.stat-slide .unit {
    font-size: clamp(28px, 3.5vw, 48px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 8px;
    color: var(--cream);
}
.stat-slide .sub {
    margin-top: clamp(24px, 3.5vh, 40px);
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.2;
    max-width: 20ch;
    text-align: center;
}
.stat-slide .sub em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    color: var(--yellow);
}

/* Petya-late: number is huge, shrink slightly */
.petya-late .big {
    font-size: clamp(72px, 14vw, 210px);
}

/* Reza drawings */
.reza-drawings {
    overflow: hidden;
}
.reza-header {
    position: absolute;
    top: clamp(80px, 12vh, 130px);
    left: 0;
    right: 0;
    text-align: center;
    z-index: 12;
    pointer-events: none;
}
.reza-header .heading {
    font-size: clamp(56px, 7.5vw, 110px);
    line-height: 0.92;
    margin-top: 10px;
}
.reza-header .heading em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
}
.reza-gallery {
    position: absolute;
    bottom: clamp(50px, 7vh, 90px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 32px);
    z-index: 15;
    pointer-events: auto;
}
.reza-img-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}
.reza-img-card image-slot {
    width: clamp(90px, 18vw, 160px);
    height: clamp(90px, 18vw, 160px);
}
.reza-rank {
    font-family: "Anton", sans-serif;
    font-size: clamp(18px, 1.8vw, 26px);
    color: var(--yellow);
    letter-spacing: 0.1em;
}
.reza-name {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(10px, 0.95vw, 13px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cream);
    text-align: center;
    max-width: clamp(90px, 18vw, 160px);
}

/* Board carousel */
.board-carousel {
    text-align: center;
}
.board-carousel .label {
    margin-bottom: clamp(18px, 2.5vh, 28px);
}
.carousel-stage {
    position: relative;
    width: clamp(280px, 55vw, 520px);
    aspect-ratio: 4 / 3;
    margin: 0 auto;
}
.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.carousel-item.visible {
    opacity: 1;
    pointer-events: auto;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(14px, 2vh, 22px);
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 244, 230, 0.35);
    transition:
        background 0.3s,
        transform 0.3s;
}
.carousel-dot.on {
    background: var(--cream);
    transform: scale(1.3);
}

/* Outro / share card */
.outro .label {
    margin-bottom: 14px;
}
.outro .share-card {
    width: clamp(300px, 36vw, 480px);
    background: linear-gradient(
        160deg,
        var(--magenta),
        var(--red) 50%,
        var(--orange)
    );
    border-radius: 20px;
    padding: clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 32px)
        clamp(24px, 3vw, 34px);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}
.outro .share-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 60%;
    height: 60%;
    background: var(--yellow);
    opacity: 0.5;
    border-radius: 50%;
    filter: blur(28px);
}
.outro .share-card .badge {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(10px, 0.95vw, 12px);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 12px;
}
.outro .share-card .you {
    font-family: "Anton", sans-serif;
    font-size: clamp(48px, 5.5vw, 76px);
    text-transform: uppercase;
    line-height: 0.88;
    letter-spacing: -0.005em;
    position: relative;
}
.outro .share-card .you em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    text-transform: lowercase;
    display: block;
    font-size: 0.95em;
}
.outro .share-card .stats {
    margin-top: clamp(20px, 2.4vh, 28px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 1.8vh, 20px) 16px;
    position: relative;
}
.outro .share-card .stat-key {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(9px, 0.85vw, 11px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.85;
}
.outro .share-card .stat-val {
    font-family: "Anton", sans-serif;
    font-size: clamp(22px, 2.2vw, 30px);
    text-transform: uppercase;
    line-height: 1.05;
    margin-top: 3px;
}
.outro .share-card .stat-val em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    text-transform: lowercase;
}
.outro .share-card .footer {
    margin-top: clamp(18px, 2.2vh, 24px);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(9px, 0.85vw, 11px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.95;
}
.outro .actions {
    margin-top: clamp(22px, 3vh, 32px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: clamp(300px, 36vw, 480px);
}
.outro .btn {
    display: block;
    width: 100%;
    padding: clamp(14px, 1.8vh, 18px);
    border-radius: 999px;
    border: none;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(12px, 1.1vw, 14px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.15s,
        background 0.2s,
        border-color 0.2s;
}
.outro .btn-primary {
    background: var(--cream);
    color: var(--ink);
}
.outro .btn-primary:hover {
    background: var(--yellow);
}
.outro .btn-video {
    background: transparent;
    color: var(--yellow);
    border: 1.5px solid var(--yellow);
    text-decoration: none;
    display: block;
    text-align: center;
}
.outro .btn-video:hover {
    background: rgba(255, 210, 63, 0.12);
}
.outro .btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(255, 244, 230, 0.5);
}
.outro .btn-secondary:hover {
    border-color: var(--cream);
    background: rgba(255, 244, 230, 0.08);
}
.outro .btn:active {
    transform: scale(0.97);
}
.outro .btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Hint */
.hint {
    position: absolute;
    bottom: clamp(20px, 3vh, 36px);
    left: 0;
    right: 0;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(10px, 1vw, 12px);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.5;
    z-index: 15;
    pointer-events: none;
}

/* ─── Star Wars crawl slide ─── */
.starwars {
    background: #000;
}

.sw-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.sw-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

/* Crawl wrapper — perspective + top-fade mask */
.sw-crawl-wrap {
    position: absolute;
    inset: 0;
    perspective: 700px;
    overflow: hidden;
    z-index: 4;
    opacity: 0;
    -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
    mask-image: linear-gradient(to top, black 60%, transparent 100%);
}
.sw-crawl-wrap.playing {
    animation: sw-fade-in 1.4s ease 0.4s forwards;
}
@keyframes sw-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* The scrolling block, tilted in perspective */
.sw-crawl {
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    transform-origin: 50% 100%;
}
.sw-crawl-wrap.playing .sw-crawl {
    animation: sw-scroll 85s linear 1s forwards;
}
@keyframes sw-scroll {
    from {
        transform: rotateX(14deg) translateY(100%);
    }
    to {
        transform: rotateX(14deg) translateY(-350%);
    }
}

/* Text inside the crawl */
.sw-crawl-inner {
    text-align: center;
    color: #4fc3f7;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(15px, 1.9vw, 22px);
    line-height: 1.85;
    padding-bottom: 100px;
}
.sw-galaxy {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: clamp(16px, 1.8vw, 22px);
    letter-spacing: 0.06em;
    opacity: 0.8;
    margin-bottom: clamp(28px, 4vh, 44px) !important;
}
.sw-ep {
    font-family: "Anton", sans-serif;
    font-size: clamp(14px, 1.6vw, 20px);
    letter-spacing: 0.44em;
    margin-bottom: 16px;
}
.sw-title {
    font-family: "Anton", sans-serif;
    font-size: clamp(28px, 4.5vw, 60px);
    line-height: 1.05;
    letter-spacing: 0.05em;
    margin-bottom: clamp(32px, 5vh, 56px);
}
.sw-crawl-inner p {
    margin-bottom: clamp(20px, 2.8vh, 34px);
    max-width: 48ch;
    margin-left: auto;
    margin-right: auto;
}
.sw-end {
    font-style: italic;
    opacity: 0.75;
    margin-top: clamp(32px, 5vh, 56px) !important;
}

/* ─── Credits slide ─── */
.credits-slide {
    background: #000;
    overflow: hidden;
}

.credits-scroll-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    z-index: 2;
}
.credits-scroll {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 clamp(24px, 6vw, 120px) 60px;
}
.credits-scroll-wrap.playing .credits-scroll {
    animation: credits-roll 26s linear 0.3s forwards;
}
@keyframes credits-roll {
    from {
        transform: translateY(100vh);
    }
    to {
        transform: translateY(-220%);
    }
}

.credits-title-block {
    margin-bottom: clamp(48px, 7vh, 80px);
}
.credits-main-title {
    font-size: clamp(96px, 18vw, 220px);
    background: linear-gradient(
        180deg,
        var(--yellow),
        var(--orange) 50%,
        var(--magenta)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 0.88;
}
.credits-main-sub {
    font-size: clamp(60px, 12vw, 160px);
    color: var(--cream);
    line-height: 0.92;
    margin-top: -0.1em;
}
.credits-year {
    font-size: clamp(12px, 1.2vw, 16px);
    letter-spacing: 0.4em;
    opacity: 0.65;
    margin-top: clamp(16px, 2vh, 24px);
}

.credit-item {
    margin-bottom: clamp(28px, 4vh, 44px);
}
.credit-role {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(10px, 0.9vw, 12px);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cream);
    opacity: 0.55;
    margin-bottom: 6px;
}
.credit-name {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: clamp(28px, 3.2vw, 48px);
    color: var(--cream);
    line-height: 1;
}

.credits-fin {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: clamp(36px, 4.5vw, 64px);
    color: var(--cream);
    opacity: 0.6;
    margin-top: clamp(40px, 6vh, 70px);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .slide {
        padding: 96px 22px 70px;
    }
    .col {
        max-width: 100%;
    }
    .intro h1 {
        font-size: 26vw;
    }
    .intro h1 .wrapped {
        font-size: 22vw;
    }
    .stat-slide .big {
        font-size: 28vw;
    }
    .petya-late .big {
        font-size: 18vw;
    }
    .reza-header .heading {
        font-size: 13vw;
    }
    .reza-img-card image-slot {
        width: 22vw;
        height: 22vw;
    }
    .carousel-stage {
        width: 90vw;
    }
    .outro .share-card,
    .outro .actions {
        width: 100%;
        max-width: 360px;
    }
}
