@font-face {
    font-family: Manrope;
    src: url("manrope-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("manrope-latin-ext.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0100-02FF, U+1E00-1EFF;
}

:root {
    color-scheme: dark;
    --bg: #0e1319;
    --panel: #141b22;
    --line: #3c4a59;
    --subtle: #aeb9c4;
    --ink: #f6f7fa;
    --accent: #ff7d20;
    font: 16px/1.5 Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    color: var(--ink);
    background: radial-gradient(ellipse at 40% 24%, #171e25 0, var(--bg) 63%);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #ffad71; outline-offset: 4px; }
.shell { width: min(1440px, calc(100% - 5.2vw)); margin-inline: auto; }
.topbar { border-bottom: 1px solid #354250; background: #0e141be6; }
.topbar-inner, .brand { display: flex; align-items: center; }
.topbar-inner { min-height: 65px; justify-content: space-between; gap: 14px; }
.brand { gap: clamp(12px, 2vw, 28px); }
.wordmark { display: block; flex-shrink: 0; width: 115px; height: auto; }
.brand-label { border-left: 1px solid var(--line); padding-left: clamp(12px, 2vw, 28px); font-size: 1rem; font-weight: 700; }
.help-link { color: var(--accent); text-underline-offset: 4px; font-size: .89rem; font-weight: 800; white-space: nowrap; }
.help-link span { margin-left: .2rem; text-decoration: none; display: inline-block; }
.main { padding-block: clamp(23px, 3vw, 40px) clamp(26px, 4vw, 60px); }
.intro { margin: 0 0 clamp(18px, 2vw, 30px); }
.eyebrow, .stage-caption, .result-label, .demo-badge {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .15em;
}
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--accent); margin-bottom: 6px; }
.eyebrow span, .stage-caption i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.05rem, 3.65vw, 3.45rem); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
.intro p { margin-top: 8px; color: #c1cbd4; font-size: clamp(.96rem, 1.55vw, 1.3rem); }

.arena {
    display: grid;
    grid-template-columns: minmax(0, 1.64fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #48596a;
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 22px 70px #07090c48;
}
.stage {
    display: grid;
    position: relative;
    place-items: center;
    min-width: 0;
    padding: clamp(44px, 4.2vw, 66px) 30px 53px;
    isolation: isolate;
    background: radial-gradient(circle at 50% 52%, #28323e 0, #1a222b 47%, #141b22 75%);
    border-right: 1px solid var(--line);
}
.stage-head {
    position: absolute;
    z-index: 2;
    top: 19px;
    left: clamp(17px, 2vw, 28px);
    right: clamp(17px, 2vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.stage-caption { display: flex; gap: 9px; align-items: center; color: var(--subtle); }
.stage-caption i { width: 5px; height: 5px; box-shadow: 0 0 12px #ff7d2090; }
.demo-badge { color: #ffd1b3; background: #9f4d2b29; border: 1px solid #a7613b; border-radius: 5px; padding: 3px 7px; }
.caliper {
    position: absolute;
    width: clamp(32px, 6vw, 79px);
    height: 18px;
    opacity: .7;
    border-top: 1px solid #7e8e9e;
    border-left: 1px solid #7e8e9e;
    background: repeating-linear-gradient(90deg, transparent 0 13px, #7e8e9e 14px 15px) top left / 100% 8px no-repeat;
}
.caliper-tl, .caliper-tr { top: 51px; }
.caliper-bl, .caliper-br { bottom: 34px; }
.caliper-tl, .caliper-bl { left: clamp(17px, 2.1vw, 32px); }
.caliper-tr, .caliper-br { right: clamp(17px, 2.1vw, 32px); }
.caliper-tr { transform: scaleX(-1); }
.caliper-bl { transform: scaleY(-1); }
.caliper-br { transform: scale(-1); }
.stage-legend {
    position: absolute;
    inset: auto 10px 16px;
    color: #b9c3cf;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
}

.dial {
    position: relative;
    width: min(100%, 524px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #10151a 0 86%, #263341 87% 91%, #6d8091 96%, #253241 98%);
    box-shadow: 0 18px 42px #05060888, inset 0 0 0 2px #687b8b;
}
.dial-classic { width: min(100%, 490px); background: #12171d; box-shadow: none; }
.wheel-rims, .prize-highlights {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.wheel-rims { z-index: 1; }
.wheel-rim {
    transform-box: view-box;
    transform-origin: center;
    animation: wheel-rim-rotate 16s linear infinite;
}
.wheel-rim--outer { color: #ff963f; }
.wheel-rim--inner { color: #818e9b; animation-duration: 23s; animation-direction: reverse; }
@keyframes wheel-rim-rotate { to { transform: rotate(1turn); } }
.prize-highlight-border { stroke: #e6ba58; stroke-width: 5; stroke-linejoin: round; }
.prize-highlight-trace {
    stroke: #fff5c9;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 13 87;
    animation: prize-highlight-sweep 3.4s linear infinite;
}
@keyframes prize-highlight-sweep { to { stroke-dashoffset: -100; } }
.rotor {
    position: absolute;
    inset: 7.5%;
    border: 2px solid #647687;
    border-radius: 50%;
    overflow: hidden;
    background: conic-gradient(#e06a1b 0 60deg, #232a32 60deg 120deg, #e06a1b 120deg 180deg, #232a32 180deg 240deg, #e06a1b 240deg 300deg, #232a32 300deg);
    box-shadow: 0 0 0 1px #0a0e12, inset 0 0 24px #06090d80;
}
.rotor canvas { display: block; width: 100%; height: 100%; }
.dial-classic .rotor { inset: 5.2%; border: 0; box-shadow: none; background: #242b31; }
.hub {
    position: absolute;
    display: grid;
    place-items: center;
    inset: 36.4%;
    border-radius: 50%;
    border: 2px solid #71869a;
    background: radial-gradient(circle at 33% 23%, #303a43, #141a21 65%);
    box-shadow: inset 0 0 0 3px #0e151c, 0 5px 18px #050608bb;
}
.hub .wordmark { width: 76%; }
.dial-classic .hub {
    z-index: 2;
    inset: 38%;
    align-content: center;
    gap: clamp(3px, .7vw, 6px);
    border: clamp(3px, .55vw, 5px) solid #f26b04;
    background: #171c23;
    box-shadow: 0 0 0 5px #171c23;
}
.dial-classic .hub .wordmark { width: 64%; }
.dial-classic .hub span { color: #adb5be; font-size: clamp(5px, .7vw, 7px); font-weight: 800; letter-spacing: 1.2px; }
.pointer {
    position: absolute;
    width: 6.5%;
    height: 10%;
    left: 50%;
    top: -2.1%;
    transform: translateX(-50%);
    filter: drop-shadow(0 3px 3px #251000cc);
}
.pointer::before {
    content: "";
    display: block;
    height: 100%;
    background: radial-gradient(circle at 50% 18%, #42220d 0 6%, transparent 7%), linear-gradient(#ffab54, #ff7210);
    clip-path: polygon(7% 0, 93% 0, 100% 7%, 54% 97%, 46% 97%, 0 7%);
}
.dial-classic .pointer { top: 0; width: 6.75%; height: 8.8%; z-index: 3; filter: drop-shadow(0 3px 0 #12171d); }
.dial-classic .pointer::before {
    background: radial-gradient(circle at 50% 26%, #171c23 0 10%, transparent 11%), #ff963f;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%);
}
@media (prefers-reduced-motion: reduce) {
    .wheel-rim, .prize-highlight-trace { animation: none; }
    .prize-highlight-trace { display: none; }
}

.controls { align-self: center; min-width: 0; padding: clamp(25px, 2.45vw, 40px); }
.category { min-width: 0; padding: 0; margin: 0; border: 0; }
.category legend, .spin-panel h2 {
    display: flex;
    align-items: baseline;
    gap: .62em;
    padding: 0;
    font-size: clamp(1.4rem, 2.05vw, 1.95rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.028em;
}
.step-number { color: var(--accent); font-variant-numeric: tabular-nums; }
.choices { display: grid; gap: 12px; margin-top: clamp(15px, 1.7vw, 25px); }
.choice {
    display: grid;
    grid-template-columns: clamp(47px, 5.3vw, 79px) 1fr 19px;
    align-items: center;
    gap: clamp(12px, 1.3vw, 22px);
    min-height: clamp(72px, 7.1vw, 101px);
    padding: 13px clamp(15px, 1.5vw, 23px);
    position: relative;
    border: 1px solid #526173;
    border-radius: 13px;
    background: #131a22;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.choice:has(input:focus-visible) { outline: 2px solid #ffad71; outline-offset: 3px; }
.choice:has(input:enabled):hover { border-color: #e7925a; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px #ff7d2040; background: #39251a; }
.category:disabled .choice { cursor: default; }
.choice-icon { display: grid; place-items: center; border-right: 1px solid var(--line); padding-right: 14px; }
.choice-icon svg { width: min(100%, 46px); height: auto; }
.choice-text { display: grid; }
.choice-text strong { font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.2; font-weight: 800; }
.choice-text small { margin-top: 2px; color: #d0d8df; font-size: .95rem; }
.radio-mark { width: 19px; height: 19px; border: 1.5px solid #8897a5; border-radius: 50%; }
.choice:has(input:checked) .choice-icon { color: var(--accent); }
.choice:has(input:checked) .radio-mark { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, transparent 49%); }
.spin-panel { padding-top: clamp(19px, 2vw, 29px); margin-top: clamp(21px, 2.25vw, 34px); border-top: 1px solid var(--line); }
.rights { display: flex; align-items: center; gap: 11px; margin: 16px 0 19px; font-weight: 700; }
.rights strong { color: var(--accent); min-width: 32px; border: 1px solid #a96030; border-radius: 7px; padding: 1px 7px; text-align: center; }
.spin-button {
    display: flex;
    width: 100%;
    min-height: clamp(55px, 5.6vw, 76px);
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid #ff9d56;
    border-radius: 12px;
    background: linear-gradient(175deg, #ff913e, #ff7214);
    color: #151009;
    font-size: clamp(1.08rem, 1.8vw, 1.5rem);
    font-weight: 800;
    box-shadow: 0 8px 23px #ff650025;
}
.spin-button:enabled:hover { background: #ffa565; }
.spin-button:disabled { border-color: #71533e; color: #f3c7a6; background: #473123; box-shadow: none; }
.notice { color: var(--subtle); margin-top: 11px; min-height: 1.5em; font-size: .8rem; }
.notice[data-error="true"] { color: #ffbc98; }
.campaign-notice {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(22px, 3.2vw, 36px);
    border: 1px solid #795236;
    border-radius: 16px;
    background: radial-gradient(ellipse at 0 0, #39271d 0, #1b242c 58%, #151c23 100%);
    text-align: left;
}
.campaign-notice::before {
    content: "";
    position: absolute;
    inset: 16px auto 16px 0;
    width: 3px;
    border-radius: 4px;
    background: var(--accent);
}
.campaign-notice-label {
    color: #ffab73;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
}
.campaign-notice h2 {
    margin-top: 11px;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: -.035em;
}
.campaign-notice h2:focus { outline: none; }
.campaign-notice [role="status"] { max-width: 38ch; margin-top: 10px; color: #c4ced7; font-size: .94rem; }
.campaign-notice-button {
    min-height: 44px;
    margin-top: 19px;
    padding: 7px 14px;
    border: 1px solid #db894f;
    border-radius: 8px;
    background: #422c1f;
    color: #ffdfca;
    font-size: .86rem;
    font-weight: 800;
}
.campaign-notice-button:enabled:hover { background: #593924; }
.campaign-notice-button:disabled { opacity: .7; }
.campaign-blocked .controls > .category,
.campaign-blocked .controls > .spin-panel,
.campaign-blocked .intro > p,
.campaign-blocked .topbar .help-link,
.campaign-blocked .how,
.campaign-blocked .block-selection { display: none; }
.block-main > .campaign-notice { margin-top: clamp(35px, 10svh, 90px); }
@media (max-width: 760px) {
    .campaign-blocked .arena > .stage { display: none; }
}
.result { margin-top: 13px; padding: 15px 17px; border: 1px solid #9e582d; border-radius: 12px; background: #292017; }
.result-label { color: var(--accent); }
.result h2 { margin-block: 3px; font-size: clamp(1.34rem, 2.25vw, 1.9rem); font-weight: 800; letter-spacing: -.025em; }
.result p { color: #e2cdbf; font-size: .82rem; }
.result p small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.result-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.result-actions > * { margin-top: 9px; }
.result-actions code { overflow-wrap: anywhere; font-size: .9rem; color: #ffd5b6; }
.result-actions button { border: 1px solid #965f3c; background: #1b1714; border-radius: 6px; padding: 5px 8px; color: var(--ink); font-size: .78rem; font-weight: 800; }
.result-actions button:hover { border-color: var(--accent); }

.how { margin-top: clamp(15px, 2vw, 28px); background: #151c24; border: 1px solid #48596a; border-radius: 15px; }
.how ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 17px; list-style: none; }
.how li { display: flex; gap: 13px; justify-content: center; align-items: center; position: relative; min-width: 0; }
.how li + li { border-left: 1px solid var(--line); }
.how li > span { display: grid; flex: 0 0 36px; aspect-ratio: 1; place-items: center; border: 1.5px solid var(--accent); border-radius: 50%; font-weight: 800; }
.how strong, .how small { display: block; }
.how strong { font-size: .95rem; }
.how small { color: var(--subtle); font-size: .73rem; }

@media (max-width: 760px) {
    .shell { width: calc(100% - 30px); }
    .topbar-inner { min-height: 57px; }
    .wordmark { width: clamp(78px, 23vw, 115px); }
    .brand-label { font-size: .83rem; }
    .help-link { font-size: .74rem; }
    .arena { grid-template-columns: 1fr; border-radius: 17px; }
    .stage { border-right: 0; border-bottom: 1px solid var(--line); padding: 47px 22px 40px; }
    .dial { width: min(100%, 440px); }
    .dial-classic { width: min(100%, 430px); }
    .stage-head { top: 12px; }
    .caliper { height: 11px; width: 28px; opacity: .5; }
    .caliper-tl, .caliper-tr { top: 42px; }
    .caliper-bl, .caliper-br { bottom: 24px; }
    .stage-legend { bottom: 11px; }
    .controls { padding: 22px 17px; }
    .choices { grid-template-columns: 1fr 1fr; gap: 8px; }
    .choice { grid-template-columns: 26px minmax(0, 1fr) 12px; gap: 7px; min-height: 65px; padding: 8px; }
    .choice-icon { padding-right: 4px; }
    .choice-text strong { font-size: 1rem; }
    .choice-text small { font-size: .75rem; }
    .radio-mark { width: 12px; height: 12px; }
    .how ol { padding: 10px 5px; }
    .how li { gap: 5px; padding: 0 4px; }
    .how li > span { flex-basis: 20px; font-size: .72rem; }
    .how strong { font-size: clamp(.64rem, 2.55vw, .9rem); }
    .how small { display: none; }
}

@media (max-width: 345px) {
    .brand-label { display: none; }
    .choice { grid-template-columns: 22px minmax(0, 1fr) 10px; gap: 5px; padding: 6px; }
}

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