.wheel {
    --wheel-arena: #1a0a18;
    --wheel-ink: #f8f0ff;
    --wheel-muted: #c4a8c8;
    --wheel-accent: #2dff6a;
    --wheel-gold: #f0c14b;
    --wheel-gold-deep: #b8860b;
    --wheel-magenta: #c44d8a;
    --wheel-danger: #ff5c7a;
    --wheel-panel: rgba(48, 18, 58, 0.92);
    --wheel-glow: rgba(45, 255, 106, 0.35);
    --wheel-line: rgba(240, 193, 75, 0.35);
    margin-block: 0.15rem 1.5rem;
    color: var(--wheel-ink);
}

[data-theme="light"] .wheel {
    --wheel-arena: #2a1024;
    --wheel-ink: #f8f0ff;
    --wheel-muted: #d8c0d4;
    --wheel-panel: rgba(56, 22, 66, 0.94);
}

/* ── Top balance ── */

.wheel-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.wheel-top__balance {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(72, 28, 84, 0.95), rgba(36, 12, 44, 0.95));
    border: 1px solid var(--wheel-line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.wheel-top__plus {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--wheel-accent);
    color: #041208;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    text-decoration: none;
}

.wheel-top__plus--static {
    opacity: 0.7;
}

.wheel-top__amount {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: center;
}

/* ── History ── */

.wheel-history {
    margin-bottom: 0.7rem;
}

.wheel-history__list {
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0.1rem 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wheel-history__list::-webkit-scrollbar {
    display: none;
}

.wheel-history__list:empty::after {
    content: "—";
    color: var(--wheel-muted);
}

.wheel-history__list li {
    flex: 0 0 auto;
    min-width: 3.4rem;
    min-height: 1.85rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, currentColor 18%, transparent), rgba(0, 0, 0, 0.35));
    text-align: center;
    font-weight: 800;
    font-size: 0.82rem;
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    animation: wheel-chip-in 0.35s ease both;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wheel-history__list li:first-child {
    outline: 1px solid color-mix(in srgb, currentColor 55%, transparent);
    box-shadow:
        0 0 14px color-mix(in srgb, currentColor 28%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@keyframes wheel-chip-in {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Board ── */

.wheel-board {
    position: relative;
    padding: 0.85rem 0.85rem 1.1rem;
    border-radius: 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(240, 193, 75, 0.22);
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(180, 40, 90, 0.35), transparent 55%),
        linear-gradient(180deg, #3a1240 0%, #1c0a22 48%, #120814 100%);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wheel-board__tools {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    z-index: 8;
    display: flex;
    gap: 0.45rem;
}

.wheel-icon-btn {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid rgba(240, 193, 75, 0.4);
    background: linear-gradient(180deg, rgba(88, 36, 104, 0.95), rgba(42, 16, 54, 0.95));
    color: #f3e6ff;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wheel-icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(240, 193, 75, 0.7);
    text-decoration: none;
}

.wheel-icon-btn svg {
    width: 1.15rem;
    height: 1.15rem;
}

.wheel-icon-btn[aria-pressed="false"] {
    color: rgba(243, 230, 255, 0.45);
}

.wheel-icon-btn[aria-pressed="false"] .wheel-icon-btn__on {
    display: none;
}

.wheel-icon-btn[aria-pressed="false"] .wheel-icon-btn__off {
    display: block;
}

.wheel-icon-btn[aria-pressed="true"] .wheel-icon-btn__off {
    display: none;
}

.wheel-status-pill {
    position: relative;
    z-index: 7;
    width: fit-content;
    max-width: calc(100% - 6.5rem);
    margin: 0 auto 0.85rem;
    padding: 0.48rem 1.2rem;
    border-radius: 0.85rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: #f8e9ff;
    background: linear-gradient(180deg, rgba(92, 38, 112, 0.95), rgba(52, 18, 66, 0.95));
    border: 1px solid rgba(240, 193, 75, 0.42);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wheel-board.is-spinning .wheel-status-pill {
    color: var(--wheel-gold);
    border-color: rgba(240, 193, 75, 0.7);
    animation: wheel-status-glow 1.1s ease-in-out infinite;
}

.wheel-board.is-disabled .wheel-status-pill {
    color: var(--wheel-danger);
    border-color: rgba(255, 92, 122, 0.45);
}

@keyframes wheel-status-glow {
    50% { box-shadow: 0 0 18px rgba(240, 193, 75, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
}

.wheel-board__error {
    margin: 0.65rem 0 0;
    text-align: center;
}

/* ── Stage ── */

.wheel-stage {
    position: relative;
    min-height: clamp(22rem, 72vw, 28rem);
    border-radius: 1.15rem;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
    border: 1px solid rgba(240, 193, 75, 0.16);
    background: var(--wheel-arena);
}

.wheel-board.is-spinning .wheel-stage {
    border-color: rgba(240, 193, 75, 0.4);
}

.wheel-board.is-win .wheel-stage {
    border-color: rgba(45, 255, 106, 0.45);
    animation: wheel-stage-win 0.8s ease;
}

@keyframes wheel-stage-win {
    0%, 100% { box-shadow: inset 0 0 0 transparent; }
    40% { box-shadow: inset 0 0 70px rgba(45, 255, 106, 0.16); }
}

.wheel-stage__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.wheel-stage__curtains {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            #5a1028 0,
            #7a1836 8%,
            #4a0e22 16%,
            #8a1e40 24%,
            #5a1028 32%
        );
    opacity: 0.92;
    filter: saturate(1.05) brightness(0.92);
}

.wheel-stage__curtains::before,
.wheel-stage__curtains::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 28%;
    width: 18%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

.wheel-stage__curtains::before {
    inset-inline-start: 0;
}

.wheel-stage__curtains::after {
    inset-inline-end: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

.wheel-stage__floor {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 34%;
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(240, 193, 75, 0.1), transparent 55%),
        repeating-linear-gradient(
            0deg,
            transparent 0 14px,
            rgba(240, 193, 75, 0.04) 14px 15px
        ),
        linear-gradient(180deg, transparent, rgba(18, 6, 16, 0.92) 35%, #100610 100%);
}

.wheel-stage__floor::after {
    content: "";
    position: absolute;
    inset: 18% 12% 8%;
    opacity: 0.22;
    background-image: radial-gradient(circle, rgba(240, 193, 75, 0.55) 0 1px, transparent 1.6px);
    background-size: 18px 18px;
    mask-image: linear-gradient(180deg, transparent, #000 40%, #000);
}

.wheel-stage__glow {
    position: absolute;
    inset: 18% 16% 28%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 70, 220, 0.35), transparent 68%);
    filter: blur(18px);
    opacity: 0.9;
    transition: background 0.45s ease, opacity 0.45s ease;
}

.wheel-board.is-spinning .wheel-stage__glow {
    opacity: 1;
    animation: wheel-glow-pulse 1.4s ease-in-out infinite;
}

@keyframes wheel-glow-pulse {
    50% { transform: scale(1.08); opacity: 0.7; }
}

.wheel-stage__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 60% at 50% 42%, transparent 42%, rgba(10, 4, 12, 0.72) 100%);
}

/* ── Pointer (left) ── */

.wheel-pointer {
    position: absolute;
    left: max(0.35rem, calc(50% - min(42vw, 12.2rem) - 1.1rem));
    top: 46%;
    z-index: 6;
    width: 2.6rem;
    height: 2.1rem;
    transform: translateY(-50%);
    filter:
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 10px rgba(240, 193, 75, 0.4));
}

html[dir="rtl"] .wheel-pointer {
    left: auto;
    right: max(0.35rem, calc(50% - min(42vw, 12.2rem) - 1.1rem));
    transform: translateY(-50%) scaleX(-1);
}

.wheel-board.is-spinning .wheel-pointer {
    animation: wheel-pointer-tick 0.18s ease-in-out infinite;
}

@keyframes wheel-pointer-tick {
    0%, 100% { transform: translateY(-50%) rotate(-5deg); }
    50% { transform: translateY(-50%) rotate(5deg); }
}

html[dir="rtl"] .wheel-board.is-spinning .wheel-pointer {
    animation-name: wheel-pointer-tick-rtl;
}

@keyframes wheel-pointer-tick-rtl {
    0%, 100% { transform: translateY(-50%) scaleX(-1) rotate(-5deg); }
    50% { transform: translateY(-50%) scaleX(-1) rotate(5deg); }
}

.wheel-pointer__blade {
    position: absolute;
    inset: 0;
    clip-path: polygon(8% 50%, 100% 8%, 78% 50%, 100% 92%);
    background: linear-gradient(180deg, #ffe9a0 0%, var(--wheel-gold) 45%, var(--wheel-gold-deep) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.wheel-pointer__jewel {
    position: absolute;
    left: 0.1rem;
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8d0, var(--wheel-gold) 55%, #8a5a00);
    border: 1px solid rgba(255, 255, 255, 0.45);
    z-index: 1;
}

/* ── Wheel rig ── */

.wheel-rig {
    position: relative;
    z-index: 2;
    width: min(78vw, 22.5rem);
    display: grid;
    place-items: center;
    margin-top: -0.4rem;
}

.wheel-frame {
    position: absolute;
    z-index: 1;
    width: calc(100% + 1.35rem);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
}

.wheel-frame__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            #f6e2a0,
            #9a6d16,
            #f0c14b,
            #6a4a10,
            #ffe7a8,
            #b8860b,
            #f6e2a0
        );
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.45),
        0 14px 40px rgba(0, 0, 0, 0.55),
        inset 0 0 18px rgba(0, 0, 0, 0.35);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.9rem), #000 calc(100% - 0.89rem));
    mask: radial-gradient(farthest-side, transparent calc(100% - 0.9rem), #000 calc(100% - 0.89rem));
}

.wheel-frame__lights {
    position: absolute;
    inset: -0.55rem;
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            from 3deg,
            #fff6c8 0deg 4deg,
            transparent 4deg 20deg
        );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.38rem), #000 calc(100% - 0.37rem));
    mask: radial-gradient(farthest-side, transparent calc(100% - 0.38rem), #000 calc(100% - 0.37rem));
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(255, 236, 170, 0.65));
    animation: wheel-lights 2.8s linear infinite;
}

.wheel-board.is-spinning .wheel-frame__lights {
    animation-duration: 0.5s;
    opacity: 1;
}

.wheel-board.is-win .wheel-frame__lights {
    animation-duration: 0.32s;
    background:
        repeating-conic-gradient(
            from 3deg,
            var(--wheel-accent) 0deg 4deg,
            var(--wheel-gold) 4deg 8deg,
            transparent 8deg 20deg
        );
}

@keyframes wheel-lights {
    to { transform: rotate(360deg); }
}

.wheel-disc {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    transition: transform 0s linear;
    will-change: transform;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

.wheel-disc canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.wheel-disc__hub {
    position: absolute;
    inset: 39%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #fff4c8, #f0c14b 38%, #7a5210 72%, #2a1808 100%);
    border: 3px solid rgba(255, 244, 200, 0.55);
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 -4px 12px rgba(0, 0, 0, 0.35),
        inset 0 4px 8px rgba(255, 255, 255, 0.25);
    display: grid;
    place-items: center;
}

.wheel-disc__hub-core {
    width: 38%;
    height: 38%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe9a8, #c44d8a 65%, #3a1030);
    box-shadow:
        0 0 12px rgba(196, 77, 138, 0.55),
        inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.wheel-pedestal {
    position: relative;
    z-index: 1;
    width: 42%;
    margin-top: -0.35rem;
    display: grid;
    justify-items: center;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.wheel-pedestal__neck {
    width: 28%;
    height: 1.15rem;
    background: linear-gradient(90deg, #6a4a10, #f0c14b, #6a4a10);
    border-radius: 0 0 0.2rem 0.2rem;
}

.wheel-pedestal__base {
    width: 100%;
    height: 0.85rem;
    margin-top: -0.1rem;
    border-radius: 0.35rem 0.35rem 0.7rem 0.7rem;
    background:
        linear-gradient(180deg, #ffe7a8, #c49220 45%, #6a4a10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ── Burst ── */

.wheel-burst {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.wheel-burst__particle {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    opacity: 0;
    animation: wheel-particle 0.9s ease-out forwards;
}

@keyframes wheel-particle {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3) rotate(180deg);
    }
}

/* ── HUD ── */

.wheel-stage__hud {
    position: absolute;
    z-index: 4;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    pointer-events: none;
    text-align: center;
    padding: 0.6rem 1.15rem;
    border-radius: 1rem;
    background: rgba(20, 8, 24, 0.82);
    border: 1px solid rgba(240, 193, 75, 0.28);
    min-width: 10rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.wheel-stage__hud.is-reveal {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1.04);
    border-color: rgba(45, 255, 106, 0.5);
    box-shadow: 0 0 28px rgba(45, 255, 106, 0.18), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.wheel-stage__label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wheel-muted);
}

.wheel-result {
    margin: 0.15rem 0 0;
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 800;
    color: #fff8ff;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.wheel-result__mult {
    margin-inline-start: 0.35rem;
    color: var(--wheel-accent);
    text-shadow: 0 0 18px rgba(45, 255, 106, 0.45);
}

/* ── Dock controls ── */

.wheel-play {
    margin-top: 0.85rem;
}

.wheel-dock {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(78, 30, 96, 0.96), rgba(42, 14, 56, 0.98));
    border: 1px solid rgba(240, 193, 75, 0.42);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wheel-dock::before {
    content: "";
    position: absolute;
    top: -0.7rem;
    left: 22%;
    right: 22%;
    height: 0.7rem;
    background:
        linear-gradient(90deg, transparent, rgba(240, 193, 75, 0.55), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.wheel-dock--login {
    justify-items: center;
    padding-block: 1.1rem;
}

.wheel-betchip {
    justify-self: start;
    min-width: 6.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(240, 193, 75, 0.4);
    background: linear-gradient(180deg, rgba(96, 40, 118, 0.95), rgba(54, 18, 70, 0.95));
    color: #fff4ff;
    font: inherit;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-display);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.wheel-betchip:hover {
    transform: translateY(-1px);
    border-color: rgba(240, 193, 75, 0.7);
}

.wheel-dock__controls {
    display: grid;
    grid-template-columns: 3.4rem minmax(4.8rem, 5.6rem) 3.4rem;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    min-height: 5.4rem;
}

.wheel-side-btn {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 180, 220, 0.35);
    background:
        radial-gradient(circle at 35% 28%, #f0a0cc, #b03f7a 55%, #6a2048 100%);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.wheel-side-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.wheel-side-btn:hover {
    transform: translateY(-2px);
}

.wheel-side-btn[aria-pressed="true"] {
    outline: 2px solid rgba(45, 255, 106, 0.65);
    filter: saturate(1.15);
}

.wheel-spin {
    position: relative;
    width: 5.4rem;
    height: 5.4rem;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wheel-spin--link {
    display: grid;
    place-items: center;
    text-decoration: none;
}

.wheel-spin__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            #fff0b0,
            #8a6414,
            #f0c14b,
            #5a4010,
            #ffe7a8,
            #f0c14b
        );
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(90, 50, 10, 0.55);
}

.wheel-spin__ring::after {
    content: "";
    position: absolute;
    inset: 0.42rem;
    border-radius: 50%;
    background: #1a0a16;
}

.wheel-spin__core {
    position: absolute;
    inset: 0.7rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 35% 28%, #8dff9f, #2dff6a 42%, #0c9a3a 78%, #043018 100%);
    color: #fff;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        inset 0 -8px 16px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(45, 255, 106, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.wheel-spin__core svg {
    width: 1.7rem;
    height: 1.7rem;
    margin-inline-start: 0.15rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.wheel-spin:hover:not(:disabled) .wheel-spin__core {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.wheel-spin:active:not(:disabled) .wheel-spin__core {
    transform: scale(0.97);
}

.wheel-spin:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.wheel-board.is-spinning .wheel-spin__core {
    background:
        radial-gradient(circle at 35% 28%, #ffe9a0, #f0c14b 45%, #9a6d16 80%, #3a2808 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 22px rgba(240, 193, 75, 0.4);
    animation: wheel-spin-pulse 0.9s ease-in-out infinite;
}

@keyframes wheel-spin-pulse {
    50% { transform: scale(0.97); }
}

/* ── Settings sheet ── */

.wheel-sheet {
    margin-top: 0.75rem;
    padding: 0.9rem 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(20, 8, 28, 0.72);
    border: 1px solid rgba(240, 193, 75, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: wheel-sheet-in 0.22s ease;
}

.wheel-sheet[hidden] {
    display: none;
}

@keyframes wheel-sheet-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wheel-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.wheel-sheet__head strong {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.wheel-sheet__close {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--wheel-ink);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font: inherit;
    cursor: pointer;
}

.wheel-sheet__fields {
    display: grid;
    gap: 0.75rem;
}

.wheel-sheet .field input,
.wheel-sheet .field select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wheel-sheet .field input:focus,
.wheel-sheet .field select:focus {
    border-color: rgba(240, 193, 75, 0.55);
    box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.12);
}

.wheel-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.wheel-quick button {
    min-height: 2.2rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(240, 193, 75, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: #f7e9ff;
    font: inherit;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.wheel-quick button:hover,
.wheel-quick button.is-active {
    border-color: rgba(45, 255, 106, 0.55);
    background: rgba(45, 255, 106, 0.12);
    color: #d8ffe4;
}

/* ── Fairness ── */

.wheel-fair {
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(240, 193, 75, 0.18);
    background: linear-gradient(180deg, rgba(48, 18, 58, 0.85), rgba(24, 10, 32, 0.9));
}

.wheel-fair summary {
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

.wheel-facts {
    display: grid;
    gap: 0.75rem;
    margin: 0.95rem 0 0;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.wheel-facts div {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wheel-facts dt {
    color: var(--wheel-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wheel-facts dd {
    margin: 0;
    word-break: break-all;
    font-size: 0.92rem;
}

.wheel-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
}

.wheel-fair__check {
    margin: 0.85rem 0 0;
}

.wheel-verify {
    max-width: 46rem;
}

.wheel-verify__copy {
    margin-bottom: 1rem;
    color: var(--muted);
}

.wheel-verify .field {
    margin-bottom: 0.85rem;
}

.wheel-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(240, 193, 75, 0.22);
    background:
        radial-gradient(ellipse 70% 120% at 0% 50%, rgba(196, 77, 138, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(72, 28, 84, 0.95), rgba(36, 12, 44, 0.95));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.wheel-hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wheel-gold);
    font-family: var(--font-display);
}

.wheel-hero__title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-family: var(--font-display);
    color: #fff8ff;
}

.wheel-hero__note {
    margin: 0.5rem 0 0;
    max-width: 38rem;
    color: var(--wheel-muted);
    font-size: 0.96rem;
}

.wheel-hero__verify {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.2rem;
    border: 1px solid rgba(240, 193, 75, 0.4);
    border-radius: 999px;
    color: var(--wheel-gold);
    text-decoration: none;
    font-weight: 700;
    background: rgba(240, 193, 75, 0.08);
}

.wheel-hero__verify:hover {
    background: rgba(240, 193, 75, 0.16);
    text-decoration: none;
}

.wheel-panel {
    padding: 1.1rem 1.15rem 1.3rem;
    margin-bottom: 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(240, 193, 75, 0.22);
    background: linear-gradient(180deg, rgba(72, 28, 84, 0.92), rgba(36, 12, 44, 0.96));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.wheel-button {
    width: 100%;
    justify-content: center;
}

.wheel-button--spin {
    background: linear-gradient(120deg, #2dff6a 0%, #7dff9a 45%, #12b84a 100%);
    color: #041208;
    border: none;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.95rem 1.25rem;
    border-radius: 0.9rem;
    box-shadow:
        0 0 0 1px rgba(45, 255, 106, 0.35),
        0 8px 28px rgba(45, 255, 106, 0.28);
}

@media (max-width: 600px) {
    .wheel-stage {
        min-height: 24rem;
    }

    .wheel-rig {
        width: min(84vw, 20.5rem);
    }

    .wheel-dock__controls {
        gap: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-frame__lights,
    .wheel-stage__glow,
    .wheel-board.is-spinning .wheel-pointer,
    .wheel-board.is-spinning .wheel-status-pill,
    .wheel-board.is-spinning .wheel-spin__core,
    .wheel-history__list li,
    .wheel-sheet {
        animation: none;
    }
}
