:root {
    color-scheme: dark;
    --bg: #090912;
    --text: #fff8ec;
    --muted: rgba(255, 248, 236, 0.70);
    --faint: rgba(255, 248, 236, 0.48);
    --line: rgba(255, 248, 236, 0.16);
    --line-strong: rgba(255, 248, 236, 0.32);
    --surface: rgba(255, 255, 255, 0.075);
    --surface-strong: rgba(255, 255, 255, 0.13);
    --gold: #ffd88a;
    --gold-strong: #ffbd59;
    --gold-hot: #ff9f2f;
    --rose: #ff7fa3;
    --violet: #b888ff;
    --green: #76f0b1;
    --green-text: #07140d;
    --red: #ff6f74;
    --red-text: #21080a;
    --shadow: 0 28px 100px rgba(0, 0, 0, 0.46);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --ease: cubic-bezier(.2,.86,.18,1);
    --spin-ease: cubic-bezier(.08,.78,.08,1);
    --wheel-size: clamp(19rem, min(70vw, 61svh), 39rem);
    --center-counter-rotation: 0deg;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 9%, rgba(255, 127, 163, 0.24), transparent 34rem),
        radial-gradient(circle at 86% 13%, rgba(255, 216, 138, 0.25), transparent 32rem),
        radial-gradient(circle at 57% 90%, rgba(184, 136, 255, 0.17), transparent 35rem),
        linear-gradient(135deg, #17151d 0%, #0d0b10 54%, #151018 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body.has-modal {
    overflow: hidden;
}

body.is-dragging-picker {
    cursor: grabbing;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.hidden,
[hidden] {
    display: none !important;
}

.noise,
.ambient {
    position: fixed;
    pointer-events: none;
}

.noise {
    inset: 0;
    z-index: 0;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image:
        linear-gradient(115deg, rgba(255,255,255,0.18), transparent 38%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 2px);
}

.ambient {
    width: 36rem;
    height: 36rem;
    border-radius: 999px;
    filter: blur(58px);
    opacity: 0.36;
    z-index: 0;
    transform: translate3d(0, 0, 0);
}

.ambient-one {
    left: -13rem;
    top: -12rem;
    background: #ff7fa3;
    animation: floatOne 13s ease-in-out infinite alternate;
}

.ambient-two {
    right: -15rem;
    bottom: -14rem;
    background: #ffd88a;
    animation: floatTwo 16s ease-in-out infinite alternate;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 28px));
    min-height: calc(100vh - 28px);
    min-height: calc(100svh - 28px);
    margin: 14px auto;
    padding: clamp(14px, 2.5vw, 30px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(10px, 1.8vh, 18px);
    border: 1px solid var(--line);
    border-radius: clamp(26px, 4vw, 42px);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)),
        rgba(11, 9, 15, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(135%);
    overflow: hidden;
}

.app-shell::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(118deg, rgba(255,255,255,.20), transparent 27%, transparent 70%, rgba(255,216,138,.12)),
        radial-gradient(circle at 50% 0%, rgba(255,216,138,.14), transparent 35rem);
}

.topbar,
.wheel-area,
.toast,
.noscript-box {
    position: relative;
    z-index: 2;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #151016;
    background:
        radial-gradient(circle at 33% 20%, rgba(255,255,255,.62), transparent 22px),
        linear-gradient(135deg, var(--gold), #fff3d0 45%, var(--rose));
    box-shadow: 0 16px 42px rgba(255, 189, 89, 0.30);
    font-weight: 1000;
    font-size: 1.35rem;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: clamp(1.02rem, 1.7vw, 1.3rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.brand-copy small,
.status-pill {
    color: var(--muted);
    font-size: 0.84rem;
}

.status-pill {
    max-width: 100%;
    padding: 0.58rem 0.88rem;
    border: 1px solid rgba(255, 216, 138, 0.30);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.21);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 28px rgba(255, 189, 89, 0.08);
    white-space: nowrap;
}

.wheel-area {
    min-height: 0;
    display: grid;
    place-items: center;
}

.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045)),
        rgba(255,255,255,0.055);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(22px);
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 34%, rgba(255,216,138,0.11));
    opacity: 0.72;
}

.wheel-card {
    width: min(100%, 820px);
    height: min(100%, 100%);
    min-height: 0;
    padding: clamp(12px, 2.6vw, 26px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 1.8vh, 18px);
}

.wheel-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -34% -18%;
    height: 46%;
    background: radial-gradient(ellipse at center, rgba(255, 189, 89, 0.22), transparent 68%);
    pointer-events: none;
}

.jackpot-marquee {
    position: relative;
    z-index: 2;
    width: min(100%, 680px);
    min-height: 2.2rem;
    margin: 0 auto;
    padding: 0.42rem 0.52rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 216, 138, 0.24);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255,216,138,.10), rgba(255,127,163,.13), rgba(184,136,255,.10)),
        rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 36px rgba(0,0,0,.20);
    overflow: hidden;
}

.jackpot-marquee::before,
.jackpot-marquee::after {
    content: "";
    position: absolute;
    inset-block: 0;
    width: 22%;
    pointer-events: none;
    z-index: 1;
}

.jackpot-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(12,9,16,.92), transparent);
}

.jackpot-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(12,9,16,.92), transparent);
}

.jackpot-marquee span {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    color: rgba(255, 248, 236, 0.76);
    background: rgba(255, 255, 255, 0.055);
    font-size: clamp(0.68rem, 1vw, 0.78rem);
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: marqueePulse 2.7s ease-in-out infinite;
}

.jackpot-marquee span:nth-child(2n) {
    animation-delay: .45s;
}

.jackpot-marquee span:nth-child(3n) {
    animation-delay: .9s;
}

.wheel-stage {
    position: relative;
    z-index: 2;
    min-height: 0;
    width: 100%;
    display: grid;
    place-items: center;
    padding: clamp(6px, 1vh, 12px) 0;
    isolation: isolate;
}

.wheel-shadow {
    position: absolute;
    width: calc(var(--wheel-size) * 0.82);
    height: calc(var(--wheel-size) * 0.82);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    filter: blur(30px);
    transform: translateY(12%);
    z-index: 0;
}

.casino-lights {
    position: absolute;
    width: calc(var(--wheel-size) + 34px);
    height: calc(var(--wheel-size) + 34px);
    border-radius: 999px;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 16px rgba(255, 189, 89, 0.28));
}

.casino-lights::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 216, 138, 0.30);
    background:
        radial-gradient(circle at 50% 50%, transparent 66%, rgba(255,255,255,.08) 67%, transparent 72%),
        conic-gradient(from 0deg, rgba(255,216,138,.26), rgba(255,127,163,.14), rgba(184,136,255,.18), rgba(255,216,138,.26));
    mask: radial-gradient(circle at center, transparent 68%, #000 69% 100%);
}

.casino-lights span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(6px, 1vw, 9px);
    height: clamp(6px, 1vw, 9px);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #fff8d7, #ffd27d 40%, #ff9f2f 74%);
    box-shadow: 0 0 13px rgba(255, 189, 89, 0.85), 0 0 30px rgba(255, 127, 163, 0.18);
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 11.25deg)) translateY(calc((var(--wheel-size) / -2) - 17px));
    animation: bulbBlink 1.18s steps(2, end) infinite;
    animation-delay: calc(var(--i) * -0.075s);
}

.wheel {
    position: relative;
    width: var(--wheel-size);
    height: var(--wheel-size);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), transparent 22%),
        linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
    box-shadow:
        inset 0 0 0 10px rgba(255, 255, 255, 0.055),
        inset 0 0 0 16px rgba(0, 0, 0, 0.18),
        inset 0 0 50px rgba(0, 0, 0, 0.32),
        0 30px 80px rgba(0, 0, 0, 0.46),
        0 0 50px rgba(255, 189, 89, 0.16);
    transition: transform 7s var(--spin-ease);
    will-change: transform;
    z-index: 3;
    overflow: hidden;
}

.wheel::before,
.wheel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.wheel::before {
    z-index: 4;
    background:
        radial-gradient(circle at 35% 22%, rgba(255,255,255,.27), transparent 24%),
        radial-gradient(circle at 62% 80%, rgba(0,0,0,.30), transparent 39%),
        repeating-conic-gradient(from 0deg, rgba(255,255,255,.16) 0 2deg, transparent 2deg 8deg);
    mix-blend-mode: overlay;
    opacity: 0.42;
}

.wheel::after {
    inset: 7px;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 0 0 1px rgba(255, 216, 138, 0.12);
}

.wheel.is-spinning {
    transition-duration: 7.05s;
}

.wheel.is-spinning::before {
    opacity: 0.70;
    animation: wheelFlash .26s linear infinite;
}

.wheel-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform: translateZ(0);
}

.picker-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: auto;
    border-radius: inherit;
}

.wheel-picker {
    position: absolute;
    width: 4.1rem;
    height: 4.1rem;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: grab;
    background: transparent;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.42));
    transition: filter .16s ease;
    will-change: left, top, transform;
}

.wheel-picker.is-dragging {
    cursor: grabbing;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.58));
}

.wheel-picker-disc {
    position: absolute;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,.78), transparent 35%),
        linear-gradient(135deg, #fff3d0, #ffd27d 54%, #ff7fa3);
    box-shadow: 0 0 0 6px rgba(0,0,0,.18), 0 16px 38px rgba(255, 189, 89, 0.22);
    animation: pickerPulse 1.8s ease-in-out infinite;
}

.wheel-picker-tip {
    position: absolute;
    top: 2.82rem;
    width: 0;
    height: 0;
    border-left: 0.72rem solid transparent;
    border-right: 0.72rem solid transparent;
    border-top: 1.34rem solid #fff3d0;
    filter: drop-shadow(0 8px 8px rgba(0,0,0,.42));
}

.tone-soft .wheel-picker-disc {
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,.78), transparent 35%),
        linear-gradient(135deg, #f4fff8, #9df2c3 54%, #53cd8a);
}

.hint:empty {
    display: none;
}

.wheel-slice {
    filter: saturate(1.12) contrast(1.04);
}

.wheel-slice.is-selected-preview,
.wheel-slice.is-emphasis {
    filter: url(#sliceGlow) saturate(1.25);
}

.wheel-divider {
    opacity: 0.72;
}

.wheel-label {
    fill: rgba(255, 252, 240, 0.94);
    stroke: rgba(20, 12, 18, 0.58);
    stroke-width: 0.72px;
    paint-order: stroke;
    font-size: 3.15px;
    font-weight: 950;
    letter-spacing: -0.02em;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    text-transform: none;
}

.wheel-label.small {
    font-size: 2.55px;
    stroke-width: 0.64px;
}

.wheel-label.micro {
    font-size: 2.08px;
    stroke-width: 0.54px;
    letter-spacing: -0.03em;
}

.wheel[data-wheel-mode="preview"] .wheel-label {
    fill: rgba(255, 252, 240, 0.28);
    stroke: rgba(255, 216, 138, 0.12);
    stroke-width: 0.45px;
    filter: blur(1.45px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.82;
}

.wheel[data-wheel-mode="preview"] .wheel-divider {
    opacity: 0.42;
}

.wheel-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 7;
    width: clamp(5.2rem, calc(var(--wheel-size) * 0.25), 7.4rem);
    height: clamp(5.2rem, calc(var(--wheel-size) * 0.25), 7.4rem);
    display: grid;
    place-items: center;
    gap: 0.12rem;
    padding: 1rem;
    border-radius: 999px;
    transform: translate(-50%, -50%) rotate(var(--center-counter-rotation));
    color: #161016;
    background:
        radial-gradient(circle at 34% 26%, rgba(255,255,255,.76), transparent 28%),
        linear-gradient(135deg, #fff8da 0%, #ffd27d 50%, #ff7fa3 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.52),
        inset 0 -16px 28px rgba(141, 69, 23, 0.16),
        0 0 0 8px rgba(0,0,0,.16),
        0 22px 45px rgba(0,0,0,.30),
        0 0 54px rgba(255, 189, 89, 0.30);
    transition: transform 7s var(--spin-ease);
}

.wheel-center span {
    display: block;
    line-height: 0.85;
    font-size: clamp(1.8rem, calc(var(--wheel-size) * 0.085), 3rem);
    font-weight: 1000;
    letter-spacing: -0.09em;
}

.wheel-center small {
    display: block;
    color: rgba(22, 16, 22, 0.70);
    font-size: clamp(0.56rem, calc(var(--wheel-size) * 0.022), 0.76rem);
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.control-panel {
    position: relative;
    z-index: 7;
    display: grid;
    justify-items: center;
    gap: clamp(8px, 1.1vh, 12px);
    text-align: center;
}

.mode-label,
.hint {
    margin: 0;
}

.mode-label {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hint {
    width: min(100%, 36rem);
    color: rgba(255, 248, 236, 0.72);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.35;
}

.primary-action,
.secondary-action,
.choice-button,
.ghost-action,
.input-row button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 999px;
    font-weight: 950;
    letter-spacing: -0.025em;
    transform: translateZ(0);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.primary-action {
    min-width: min(100%, 17.5rem);
    padding: 1.03rem 1.52rem;
    color: #171016;
    background:
        radial-gradient(circle at 34% 20%, rgba(255,255,255,.74), transparent 28%),
        linear-gradient(135deg, #fff3c4, var(--gold-strong) 50%, var(--rose));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.50),
        0 16px 36px rgba(255, 189, 89, 0.28),
        0 0 0 1px rgba(255,255,255,.12);
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.primary-action::before,
.secondary-action::before,
.choice-button::before,
.input-row button::before {
    content: "";
    position: absolute;
    inset: -40% -50%;
    z-index: -1;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.58) 50%, transparent 64%);
    transform: translateX(-62%) rotate(8deg);
    animation: actionShine 3.2s ease-in-out infinite;
}

.primary-action .button-glow {
    position: absolute;
    inset: -1rem;
    z-index: -2;
    background: radial-gradient(circle at center, rgba(255, 248, 236, 0.55), transparent 60%);
    opacity: 0.58;
    filter: blur(16px);
    animation: buttonGlow 1.9s ease-in-out infinite alternate;
}

.primary-action:hover,
.secondary-action:hover,
.choice-button:hover,
.ghost-action:hover,
.input-row button:hover {
    transform: translateY(-2px) scale(1.012);
    filter: saturate(1.08);
}

.primary-action:active,
.secondary-action:active,
.choice-button:active,
.ghost-action:active,
.input-row button:active {
    transform: translateY(1px) scale(0.99);
}

.result-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: end center;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    pointer-events: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 216, 138, 0.10), transparent 22rem),
        linear-gradient(180deg, rgba(5, 4, 8, 0.16) 0%, rgba(5, 4, 8, 0.38) 52%, rgba(5, 4, 8, 0.74) 100%);
    backdrop-filter: blur(6px) saturate(108%);
    animation: modalFade .22s ease both;
    pointer-events: none;
}

.modal-stage {
    position: relative;
    z-index: 2;
    width: min(94vw, 560px);
    display: grid;
    place-items: center;
    margin-bottom: clamp(10px, 2vh, 24px);
    pointer-events: auto;
}

.result-card {
    width: 100%;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid rgba(255, 248, 236, 0.18);
    border-radius: clamp(24px, 4vw, 34px);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 216, 138, 0.15), transparent 16rem),
        linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.060)),
        rgba(15, 12, 19, 0.90);
    box-shadow:
        0 34px 110px rgba(0,0,0,.56),
        inset 0 1px 0 rgba(255,255,255,.12);
    text-align: center;
    backdrop-filter: blur(28px) saturate(132%);
    animation: modalPop .34s var(--ease) both;
}

.result-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22), transparent 34%, rgba(255, 216, 138, .12)),
        radial-gradient(circle at 50% 8%, rgba(255,255,255,.08), transparent 15rem);
}

.result-card > * {
    position: relative;
    z-index: 2;
}

.result-kicker,
.result-label,
.duel-copy,
.form-note,
#successText {
    margin: 0;
}

.result-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.34rem 0.74rem;
    border: 1px solid rgba(255, 216, 138, 0.26);
    border-radius: 999px;
    color: rgba(255, 216, 138, 0.92);
    background: rgba(255, 216, 138, 0.07);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.result-label {
    margin-top: 1.15rem;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 760;
}

.result-card h2 {
    margin: 0.38rem auto 0;
    max-width: 12em;
    color: var(--text);
    font-size: clamp(2.1rem, 7.2vw, 4.35rem);
    line-height: 0.92;
    letter-spacing: -0.085em;
    text-wrap: balance;
    text-shadow: 0 0 36px rgba(255, 216, 138, 0.16);
}

.reroll-card h2,
.success-card h2 {
    margin-top: 1rem;
    font-size: clamp(1.75rem, 5.8vw, 3.2rem);
    line-height: 0.98;
}

.duel-copy,
#successText,
.form-note {
    color: rgba(255, 248, 236, 0.70);
    line-height: 1.45;
}

.duel-copy {
    max-width: 27rem;
    margin: 0.72rem auto 1.25rem;
}

.decision-copy {
    margin: 0.85rem 0 0;
    color: rgba(255, 248, 236, 0.74);
    line-height: 1.42;
}

.decision-actions {
    margin-top: clamp(18px, 3.2vw, 28px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.choice-button,
.secondary-action,
.ghost-action,
.input-row button {
    min-height: 3.25rem;
    padding: 0.9rem 1.15rem;
}

.choice-button.positive {
    color: var(--green-text);
    background:
        radial-gradient(circle at 32% 20%, rgba(255,255,255,.72), transparent 28%),
        linear-gradient(135deg, #d6ffe8, var(--green));
    box-shadow: 0 16px 38px rgba(118, 240, 177, 0.18);
}

.choice-button.negative {
    color: var(--red-text);
    background:
        radial-gradient(circle at 32% 20%, rgba(255,255,255,.62), transparent 28%),
        linear-gradient(135deg, #ffd0d2, var(--red));
    box-shadow: 0 16px 38px rgba(255, 111, 116, 0.20);
}

.secondary-action {
    min-width: min(100%, 16rem);
    color: #171016;
    background:
        radial-gradient(circle at 32% 20%, rgba(255,255,255,.70), transparent 28%),
        linear-gradient(135deg, #fff3c4, var(--gold-strong) 54%, var(--rose));
    box-shadow: 0 18px 40px rgba(255, 189, 89, 0.22);
}

.alternatives {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.78rem;
}

.alternative-card {
    min-height: 8.6rem;
    padding: 1.08rem;
    display: grid;
    align-content: center;
    gap: 0.52rem;
    border: 1px solid rgba(255, 248, 236, 0.15);
    border-radius: 24px;
    color: var(--text);
    background:
        radial-gradient(circle at 28% 0%, rgba(255, 216, 138, 0.14), transparent 12rem),
        rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.20);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.alternative-card.is-highlight {
    border-color: rgba(255, 216, 138, 0.56);
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 216, 138, 0.24), transparent 12rem),
        rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 50px rgba(255, 189, 89, 0.13);
}

.alternative-card:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(255, 248, 236, 0.30);
}

.alternative-card span {
    color: rgba(255, 216, 138, 0.86);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.alternative-card strong {
    color: var(--text);
    font-size: clamp(1.3rem, 4.6vw, 2.05rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.escape-actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.62rem;
}

.ghost-action {
    color: rgba(255, 248, 236, 0.86);
    border: 1px solid rgba(255, 248, 236, 0.16);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.new-dish-form {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 248, 236, 0.12);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.18);
    text-align: left;
}

.new-dish-form label {
    display: block;
    margin-bottom: 0.54rem;
    color: rgba(255, 216, 138, 0.86);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

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

.input-row input {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.82rem 0.98rem;
    border: 1px solid rgba(255, 248, 236, 0.16);
    border-radius: 999px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.input-row input:focus {
    border-color: rgba(255, 216, 138, 0.46);
    box-shadow: 0 0 0 4px rgba(255, 216, 138, 0.10), inset 0 1px 0 rgba(255,255,255,.08);
}

.input-row button {
    color: #171016;
    background: linear-gradient(135deg, #fff3c4, var(--gold-strong));
}

.form-note {
    margin-top: 0.62rem;
    font-size: 0.9rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 70;
    max-width: min(92vw, 32rem);
    padding: 0.82rem 1rem;
    border: 1px solid rgba(255, 248, 236, 0.16);
    border-radius: 999px;
    color: rgba(255, 248, 236, 0.92);
    background: rgba(18, 14, 23, 0.88);
    box-shadow: 0 16px 44px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.jackpot-burst {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    overflow: hidden;
}

.burst-piece {
    position: absolute;
    width: 0.58rem;
    height: 1.05rem;
    border-radius: 0.18rem;
    background: linear-gradient(135deg, #fff3c4, var(--gold-strong), var(--rose));
    box-shadow: 0 0 18px rgba(255, 189, 89, 0.28);
    animation: burstFly 1.05s cubic-bezier(.16,.84,.22,1) forwards;
}

.burst-piece:nth-child(3n) {
    background: linear-gradient(135deg, #c59cff, #6ee7ff);
}

.burst-piece:nth-child(4n) {
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 999px;
    background: #fff3c4;
}

.noscript-box {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(0,0,0,.72);
    color: var(--text);
}

body.is-result .wheel-stage::after {
    content: "";
    position: absolute;
    width: calc(var(--wheel-size) * 1.05);
    height: calc(var(--wheel-size) * 1.05);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 216, 138, 0.24), transparent 62%);
    animation: resultPulse 1.1s ease-out both;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 760px) {
    :root {
        --wheel-size: clamp(16.8rem, 86vw, 54svh);
        --radius-xl: 26px;
    }

    body {
        background:
            radial-gradient(circle at 18% 4%, rgba(255, 127, 163, 0.23), transparent 24rem),
            radial-gradient(circle at 84% 10%, rgba(255, 216, 138, 0.20), transparent 22rem),
            linear-gradient(145deg, #15121a, #090912 62%, #130e16);
    }

    .app-shell {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        margin: 0;
        padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        border: 0;
        border-radius: 0;
        gap: 8px;
    }

    .topbar {
        min-height: 44px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 15px;
        font-size: 1.12rem;
    }

    .brand-copy strong {
        font-size: 1.03rem;
    }

    .brand-copy small {
        display: none;
    }

    .status-pill {
        padding: 0.48rem 0.66rem;
        font-size: 0.74rem;
    }

    .wheel-card {
        width: 100%;
        height: 100%;
        padding: 10px 8px 12px;
        border-radius: 28px;
        gap: 8px;
    }

    .jackpot-marquee {
        width: 100%;
        min-height: 2rem;
        padding: 0.34rem;
        justify-content: flex-start;
        overflow: hidden;
    }

    .jackpot-marquee span {
        padding: 0.22rem 0.54rem;
        font-size: 0.64rem;
    }

    .wheel-stage {
        padding: 0;
    }

    .casino-lights {
        width: calc(var(--wheel-size) + 24px);
        height: calc(var(--wheel-size) + 24px);
    }

    .casino-lights span {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 11.25deg)) translateY(calc((var(--wheel-size) / -2) - 12px));
    }

    .wheel-picker {
        width: 3.6rem;
        height: 3.6rem;
    }

    .wheel-picker-disc {
        width: 2.82rem;
        height: 2.82rem;
    }

    .wheel-picker-tip {
        top: 2.46rem;
        border-left-width: 0.62rem;
        border-right-width: 0.62rem;
        border-top-width: 1.12rem;
    }

    .wheel-center {
        width: clamp(4.65rem, calc(var(--wheel-size) * 0.255), 6.1rem);
        height: clamp(4.65rem, calc(var(--wheel-size) * 0.255), 6.1rem);
    }

    .control-panel {
        gap: 7px;
    }

    .mode-label {
        font-size: 0.69rem;
    }

    .primary-action {
        width: min(100%, 18rem);
        min-height: 3.5rem;
        padding: 0.95rem 1.2rem;
    }

    .hint {
        max-width: 20rem;
        font-size: 0.88rem;
        line-height: 1.28;
    }

    .modal-stage {
        width: min(94vw, 28rem);
        margin-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .result-card {
        padding: 22px 16px;
        border-radius: 26px;
    }

    .result-card h2 {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .decision-actions,
    .alternatives {
        grid-template-columns: 1fr;
    }

    .alternative-card {
        min-height: 6.8rem;
    }

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

    .input-row button {
        width: 100%;
    }
}

@media (max-height: 660px) and (max-width: 760px) {
    :root {
        --wheel-size: clamp(15.8rem, 78vw, 49svh);
    }

    .jackpot-marquee {
        display: none;
    }

    .hint {
        display: none;
    }

    .wheel-card {
        gap: 6px;
    }

    .primary-action {
        min-height: 3.15rem;
        padding: 0.78rem 1.08rem;
    }
}

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

    .wheel,
    .wheel-center {
        transition-duration: .62s !important;
    }
}

@keyframes floatOne {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(5rem, 2rem, 0) scale(1.08); }
}

@keyframes floatTwo {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-4rem, -2.5rem, 0) scale(1.1); }
}

@keyframes marqueePulse {
    0%, 100% { opacity: .58; box-shadow: none; }
    50% { opacity: 1; box-shadow: 0 0 22px rgba(255, 216, 138, 0.14); }
}

@keyframes bulbBlink {
    0%, 49% { opacity: .44; filter: saturate(.8); transform: translate(-50%, -50%) rotate(calc(var(--i) * 11.25deg)) translateY(calc((var(--wheel-size) / -2) - 17px)) scale(.86); }
    50%, 100% { opacity: 1; filter: saturate(1.2); transform: translate(-50%, -50%) rotate(calc(var(--i) * 11.25deg)) translateY(calc((var(--wheel-size) / -2) - 17px)) scale(1.08); }
}

@media (max-width: 760px) {
    @keyframes bulbBlink {
        0%, 49% { opacity: .44; filter: saturate(.8); transform: translate(-50%, -50%) rotate(calc(var(--i) * 11.25deg)) translateY(calc((var(--wheel-size) / -2) - 12px)) scale(.86); }
        50%, 100% { opacity: 1; filter: saturate(1.2); transform: translate(-50%, -50%) rotate(calc(var(--i) * 11.25deg)) translateY(calc((var(--wheel-size) / -2) - 12px)) scale(1.08); }
    }
}

@keyframes wheelFlash {
    0%, 100% { opacity: .46; }
    50% { opacity: .76; }
}

@keyframes buttonGlow {
    from { opacity: .34; transform: scale(.96); }
    to { opacity: .74; transform: scale(1.08); }
}

@keyframes pickerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0,0,0,.18), 0 16px 38px rgba(255, 189, 89, 0.22); }
    50% { transform: scale(1.035); box-shadow: 0 0 0 6px rgba(0,0,0,.18), 0 18px 42px rgba(255, 189, 89, 0.32); }
}

@keyframes actionShine {
    0%, 38% { transform: translateX(-70%) rotate(8deg); opacity: 0; }
    48% { opacity: .70; }
    62%, 100% { transform: translateX(70%) rotate(8deg); opacity: 0; }
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes burstFly {
    0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg) scale(.6); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1); }
}

@keyframes resultPulse {
    from { opacity: .72; transform: scale(.78); }
    to { opacity: 0; transform: scale(1.24); }
}
