:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #080b12;
    --gold: #e8c56b;
    --gold-light: #fff0b5;
    --ink: #080b12;
    --panel: rgba(18, 23, 34, .86);
    --line: rgba(255, 255, 255, .1);
    --muted: #99a2b3;
    --success: #86ddb0;
    --danger: #ff9a9a;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #080b12;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 28px 18px;
    overflow-x: hidden;
    color: #f8f5ea;
    background:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        radial-gradient(circle at 15% 5%, rgba(216, 176, 79, .12), transparent 28%),
        radial-gradient(circle at 85% 90%, rgba(85, 106, 171, .13), transparent 30%),
        #080b12;
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .16;
    pointer-events: none;
}

.ambient-one {
    top: -180px;
    left: -120px;
    background: #d8ad47;
}

.ambient-two {
    right: -180px;
    bottom: -160px;
    background: #536cb5;
}

.app-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #f9f3dc;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(232, 197, 107, .55);
    border-radius: 50%;
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 22px;
    background: linear-gradient(145deg, rgba(232, 197, 107, .2), rgba(232, 197, 107, .03));
    box-shadow: inset 0 0 20px rgba(232, 197, 107, .08);
}

.secure-badge {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    background: rgba(255, 255, 255, .025);
}

.secure-badge span {
    margin-right: 5px;
    color: var(--gold);
}

.hero-copy {
    max-width: 720px;
    margin: 34px auto 30px;
    text-align: center;
}

.eyebrow,
.card-kicker,
.result-copy p {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 8vw, 78px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .98;
    text-wrap: balance;
}

.subtitle {
    max-width: 620px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
}

.progress-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(620px, 100%);
    margin: 0 auto 36px;
    padding: 0;
    list-style: none;
}

.progress-steps::before {
    position: absolute;
    top: 17px;
    right: 16.7%;
    left: 16.7%;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, .12);
}

.step {
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #626b7c;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.step span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: #0d111a;
}

.step.active,
.step.complete {
    color: #eee7d1;
}

.step.active span {
    border-color: rgba(232, 197, 107, .75);
    color: #12151c;
    background: linear-gradient(145deg, var(--gold-light), #c99e3f);
    box-shadow: 0 0 24px rgba(232, 197, 107, .24);
}

.step.complete span {
    border-color: rgba(134, 221, 176, .5);
    color: var(--success);
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 22px;
    align-items: stretch;
}

.entry-card,
.wheel-card,
.result {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(24, 30, 43, .9), rgba(12, 16, 25, .88));
    box-shadow: 0 26px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(18px);
}

.entry-card {
    display: flex;
    min-height: 505px;
    padding: clamp(28px, 4vw, 48px);
    flex-direction: column;
    justify-content: center;
}

.entry-card h2 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    line-height: 1.12;
}

.entry-card > p {
    margin: 0 0 30px;
    color: var(--muted);
    line-height: 1.6;
}

.code-form label {
    display: block;
    margin: 0 0 9px;
    color: #c4cada;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

input[type="text"] {
    width: 100%;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 11px;
    outline: none;
    color: #fff8df;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(4, 6, 10, .5);
    transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="text"]::placeholder {
    color: #626b7b;
}

input[type="text"]:focus {
    border-color: rgba(232, 197, 107, .7);
    box-shadow: 0 0 0 4px rgba(232, 197, 107, .08);
}

.verify-button {
    padding: 14px 20px;
    border: 0;
    border-radius: 11px;
    color: #16130c;
    font-weight: 850;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold-light), #c89a35);
    box-shadow: 0 10px 28px rgba(200, 154, 53, .18);
    transition: transform .18s ease, filter .18s ease;
}

.verify-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.message {
    min-height: 26px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.message.success {
    color: var(--success);
}

.message.error {
    color: var(--danger);
}

.trust-row {
    display: flex;
    gap: 12px 18px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #747e90;
    font-size: 11px;
}

.trust-row i {
    color: var(--gold);
    font-style: normal;
}

.wheel-card {
    position: relative;
    display: grid;
    min-height: 505px;
    padding: 26px;
    place-items: center;
    overflow: hidden;
}

.wheel-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(213, 170, 65, .13);
    filter: blur(65px);
}

.wheel-container {
    position: relative;
    width: min(78vw, 400px);
    aspect-ratio: 1;
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .48));
}

.wheel-container::before,
.wheel-container::after {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.wheel-container::before {
    inset: -8px;
    border: 1px solid rgba(232, 197, 107, .75);
    box-shadow: inset 0 0 0 5px rgba(232, 197, 107, .09), 0 0 32px rgba(232, 197, 107, .12);
}

.wheel-container::after {
    inset: 2px;
    border: 5px solid #121722;
}

.wheel {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-origin: center;
}

.pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    z-index: 8;
    width: 40px;
    height: 48px;
    transform: translateX(-50%);
    filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .5));
}

.pointer::before {
    display: block;
    width: 0;
    height: 0;
    border-right: 20px solid transparent;
    border-left: 20px solid transparent;
    border-top: 42px solid var(--gold-light);
    content: "";
}

.pointer span {
    position: absolute;
    top: -4px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff7d8;
}

.go-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    display: grid;
    width: 92px;
    height: 92px;
    place-content: center;
    transform: translate(-50%, -50%);
    border: 7px solid rgba(255, 240, 181, .82);
    border-radius: 50%;
    color: #17130a;
    cursor: pointer;
    background: radial-gradient(circle at 35% 30%, #fff8d8, #d2a33d 75%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .42), inset 0 0 0 2px rgba(74, 50, 8, .2);
    transition: transform .16s ease, opacity .2s ease, box-shadow .2s ease;
}

.go-button small {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .18em;
}

.go-button strong {
    margin-top: -1px;
    font-size: 28px;
    line-height: 1;
}

.go-button:not(:disabled):hover {
    box-shadow: 0 10px 30px rgba(232, 197, 107, .3), inset 0 0 0 2px rgba(74, 50, 8, .2);
}

.go-button:not(:disabled):active {
    transform: translate(-50%, -50%) scale(.94);
}

.go-button:disabled {
    cursor: not-allowed;
    filter: grayscale(.75);
    opacity: .5;
}

.wheel-caption {
    position: relative;
    z-index: 2;
    max-width: 360px;
    margin: -5px 0 0;
    color: #697386;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.result {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    width: min(760px, 100%);
    margin: 22px auto 0;
    padding: 22px 26px;
    align-items: center;
    opacity: .72;
    transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}

.result.visible {
    border-color: rgba(232, 197, 107, .38);
    opacity: 1;
    transform: translateY(-2px);
}

.result-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(232, 197, 107, .48);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 22px;
    background: rgba(232, 197, 107, .08);
}

.result-copy {
    display: grid;
    gap: 3px;
}

.result-copy p {
    margin: 0;
    font-size: 9px;
}

.result-copy strong {
    color: #fff5d5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 500;
}

.result-copy span {
    color: var(--muted);
    font-size: 12px;
}

.footer-note {
    margin: 28px auto 4px;
    color: #697386;
    font-size: 12px;
    text-align: center;
}

.footer-note span {
    margin-right: 6px;
    color: var(--gold);
}

.celebration {
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow: hidden;
    pointer-events: none;
}

.celebration-piece {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    animation: celebrate-fall 2.6s ease-in forwards;
}

.celebration-piece:nth-child(5n+1) { left: 10%; background: #f5d678; animation-delay: .05s; }
.celebration-piece:nth-child(5n+2) { left: 30%; background: #fff3bf; animation-delay: .18s; }
.celebration-piece:nth-child(5n+3) { left: 50%; background: #95d9ba; animation-delay: .1s; }
.celebration-piece:nth-child(5n+4) { left: 70%; background: #d9b65b; animation-delay: .24s; }
.celebration-piece:nth-child(5n) { left: 90%; background: #8fa8e5; animation-delay: .14s; }
.celebration-piece:nth-child(even) { width: 6px; height: 10px; animation-duration: 2.2s; }
.celebration-piece:nth-child(3n) { margin-left: 7%; animation-duration: 2.9s; }

@keyframes celebrate-fall {
    0% { opacity: 0; transform: translateY(-5vh) rotate(0deg); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translateY(108vh) rotate(620deg); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .entry-card {
        min-height: auto;
    }

    .wheel-card {
        min-height: 520px;
    }
}

@media (max-width: 560px) {
    body {
        padding: 18px 12px;
    }

    .topbar {
        padding-bottom: 16px;
    }

    .brand {
        font-size: 11px;
        letter-spacing: .1em;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .secure-badge {
        display: none;
    }

    .hero-copy {
        margin-top: 26px;
    }

    h1 {
        font-size: clamp(40px, 14vw, 58px);
    }

    .progress-steps {
        margin-bottom: 24px;
    }

    .entry-card,
    .wheel-card,
    .result {
        border-radius: 18px;
    }

    .entry-card {
        padding: 26px 20px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .wheel-card {
        min-height: 430px;
        padding: 20px 12px;
    }

    .wheel-container {
        width: min(82vw, 350px);
    }

    .go-button {
        width: 78px;
        height: 78px;
        border-width: 6px;
    }

    .go-button strong {
        font-size: 24px;
    }

    .result {
        gap: 14px;
        padding: 18px;
    }

    .result-icon {
        width: 44px;
        height: 44px;
    }

    .result-copy strong {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
