﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg: #07090d;
    --bg-soft: #0d1118;
    --panel: #111722;
    --panel-light: #151d2a;
    --panel-line: rgba(255, 255, 255, 0.08);
    --text: #f4f7fb;
    --muted: #8b96a8;
    --muted-light: #b2bdcd;
    --cyan: #3fe0c5;
    --cyan-soft: rgba(63, 224, 197, 0.15);
    --cyan-glow: rgba(63, 224, 197, 0.45);
    --red: #ff5468;
    --gold: #ffc24d;
    --purple: #8a6cff;
    --blue: #4a8bff;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-main: 0 28px 90px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(63, 224, 197, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(63, 224, 197, 0.14), transparent 32%), radial-gradient(circle at bottom right, rgba(255, 194, 77, 0.10), transparent 30%), linear-gradient(135deg, #07090d 0%, #0a0d13 50%, #080b10 100%);
    position: relative;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(rgba(63, 224, 197, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 224, 197, 0.025) 1px, transparent 1px);
        background-size: 54px 54px;
        mask-image: radial-gradient(circle at center, black, transparent 72%);
        opacity: 0.55;
        z-index: -2;
    }

    body::after {
        content: "";
        position: fixed;
        width: 520px;
        height: 520px;
        right: -180px;
        bottom: -180px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 194, 77, 0.14), transparent 65%);
        filter: blur(12px);
        pointer-events: none;
        z-index: -1;
        animation: ambientFloat 8s ease-in-out infinite;
    }

button {
    font: inherit;
}

.hidden {
    display: none !important;
}

/* PAGE */

.game-page {
    width: 100%;
    min-height: 100vh;
    padding: 28px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* INTRO SCREEN */

.intro-card {
    width: 100%;
    max-width: 760px;
    padding: 42px;
    border: 1px solid rgba(63, 224, 197, 0.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), rgba(17, 23, 34, 0.92);
    box-shadow: var(--shadow-main), var(--shadow-glow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .intro-card::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        border: 1px solid rgba(63, 224, 197, 0.16);
        top: -140px;
        right: -120px;
        box-shadow: 0 0 80px rgba(63, 224, 197, 0.12);
        pointer-events: none;
    }

    .intro-card::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        border: 1px solid rgba(255, 194, 77, 0.14);
        left: -80px;
        bottom: -90px;
        pointer-events: none;
    }

.intro-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(44px, 8vw, 76px);
    line-height: 0.95;
    letter-spacing: -2px;
    text-shadow: 0 0 24px rgba(63, 224, 197, 0.18);
}

.intro-lead {
    max-width: 590px;
    margin: 20px auto 28px;
    color: var(--muted-light);
    font-size: 16px;
    line-height: 1.7;
}

.intro-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 30px 0;
}

    .intro-points div {
        padding: 18px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--panel-line);
        text-align: left;
    }

    .intro-points span {
        display: block;
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .intro-points strong {
        display: block;
        color: var(--text);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 17px;
    }

.intro-note {
    margin: 18px auto 0;
    max-width: 580px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

/* GAME CARD */

.game-card {
    width: 100%;
    max-width: 1500px;
    padding: 18px 22px;
    border: 1px solid rgba(63, 224, 197, 0.16);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)), rgba(17, 23, 34, 0.94);
    box-shadow: var(--shadow-main), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

    .game-card::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 18% 22%, rgba(63, 224, 197, 0.10), transparent 28%), radial-gradient(circle at 86% 72%, rgba(255, 194, 77, 0.08), transparent 26%);
    }

    .game-card > * {
        position: relative;
        z-index: 1;
    }

/* PARTICLE + OVERLAY LAYER */

.particle-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 8;
}

.spark {
    position: absolute;
    width: var(--spark-size, 7px);
    height: var(--spark-size, 7px);
    border-radius: 999px;
    background: var(--spark-color, var(--cyan));
    box-shadow: 0 0 16px var(--spark-color, var(--cyan));
    animation: sparkFly var(--spark-duration, 800ms) ease-out forwards;
}

    .spark.shard {
        border-radius: 3px;
        width: var(--spark-size, 8px);
        height: calc(var(--spark-size, 8px) * 0.45);
    }

.coin-rain {
    position: absolute;
    width: 10px;
    height: 10px;
    left: var(--coin-x);
    top: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff2a8, var(--gold) 52%, #c9861d 100%);
    box-shadow: 0 0 16px rgba(255, 194, 77, 0.42);
    pointer-events: none;
    animation: coinRainFall var(--coin-duration, 1200ms) ease-in forwards;
    z-index: 10;
}

.win-shockwave {
    position: absolute;
    width: 70px;
    height: 70px;
    left: var(--wave-x);
    top: var(--wave-y);
    border-radius: 50%;
    border: 2px solid var(--wave-color, var(--cyan));
    box-shadow: 0 0 24px var(--wave-color, var(--cyan));
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.95;
    animation: shockwaveExpand 900ms ease-out forwards;
    z-index: 9;
}

    .win-shockwave.big-win,
    .win-shockwave.jackpot {
        border-width: 3px;
    }

.result-overlay {
    position: absolute;
    inset: 18px;
    z-index: 20;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(7, 9, 13, 0.72), rgba(7, 9, 13, 0.92)), rgba(7, 9, 13, 0.88);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    animation: resultOverlayIn 0.26s ease-out forwards;
    overflow: hidden;
}

    .result-overlay.hidden {
        display: none !important;
    }

    .result-overlay p {
        margin: 0 0 8px;
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
    }

    .result-overlay h2 {
        margin: 0;
        font-family: 'Space Grotesk', sans-serif;
        font-size: clamp(42px, 7vw, 92px);
        line-height: 0.95;
        letter-spacing: -1px;
        text-transform: uppercase;
    }

    .result-overlay strong {
        margin-top: 14px;
        display: block;
        font-family: 'Space Grotesk', sans-serif;
        font-size: clamp(34px, 5vw, 64px);
    }

    .result-overlay span {
        margin-top: 12px;
        color: var(--muted-light);
        font-size: 13px;
    }

    .result-overlay.win h2,
    .result-overlay.win strong,
    .result-overlay.cashout h2,
    .result-overlay.cashout strong {
        color: var(--cyan);
        text-shadow: 0 0 34px rgba(63, 224, 197, 0.45);
    }

    .result-overlay.big-win h2,
    .result-overlay.big-win strong,
    .result-overlay.jackpot h2,
    .result-overlay.jackpot strong {
        color: var(--gold);
        text-shadow: 0 0 26px rgba(255, 194, 77, 0.55), 0 0 60px rgba(255, 194, 77, 0.28);
    }

    .result-overlay.lose h2,
    .result-overlay.lose strong {
        color: var(--red);
        text-shadow: 0 0 28px rgba(255, 84, 104, 0.34);
    }

    .result-overlay.mixed h2,
    .result-overlay.mixed strong {
        color: var(--gold);
    }

    .result-overlay.win::before,
    .result-overlay.cashout::before,
    .result-overlay.big-win::before,
    .result-overlay.jackpot::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(63, 224, 197, 0.22), transparent 62%);
        animation: overlayBurst 1.4s ease-out forwards;
        pointer-events: none;
    }

    .result-overlay.big-win::before,
    .result-overlay.jackpot::before {
        background: radial-gradient(circle, rgba(255, 194, 77, 0.28), transparent 64%);
    }

    .result-overlay.jackpot::after {
        content: "";
        position: absolute;
        width: 720px;
        height: 720px;
        border-radius: 50%;
        background: conic-gradient( from 0deg, transparent, rgba(255, 194, 77, 0.18), transparent, rgba(63, 224, 197, 0.12), transparent );
        animation: jackpotSpin 1.8s linear infinite;
        pointer-events: none;
    }

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

    .result-overlay.win h2,
    .result-overlay.cashout h2 {
        animation: winTextPop 0.55s ease-out both;
    }

    .result-overlay.big-win h2 {
        animation: bigWinTextPop 0.7s ease-out both;
    }

    .result-overlay.jackpot h2 {
        animation: jackpotTextPop 0.8s ease-out both;
    }

/* HEADER */

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

    .game-header h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sound-btn,
.help-btn {
    border: 1px solid var(--panel-line);
    background: rgba(255,255,255,0.04);
    color: var(--muted-light);
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sound-btn {
    border-color: rgba(63, 224, 197, 0.28);
    background: rgba(63, 224, 197, 0.08);
    color: var(--cyan);
}

    .sound-btn:hover,
    .help-btn:hover {
        transform: translateY(-1px);
        color: var(--text);
        border-color: rgba(63, 224, 197, 0.45);
    }

/* STEPS */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--panel-line);
    color: var(--muted);
    font-size: 11px;
    position: relative;
    overflow: hidden;
}

    .step span {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.07);
        color: var(--muted-light);
        font-size: 10px;
        font-weight: 700;
    }

    .step.active {
        background: var(--cyan-soft);
        color: var(--cyan);
        border-color: rgba(63, 224, 197, 0.45);
        box-shadow: inset 0 0 18px rgba(63, 224, 197, 0.08), 0 0 20px rgba(63, 224, 197, 0.08);
    }

        .step.active span {
            background: var(--cyan);
            color: #041312;
        }

        .step.active::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
            transform: translateX(-100%);
            animation: sheenMove 2.6s ease-in-out infinite;
        }

/* MAIN LAYOUT */

.game-layout {
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.wheel-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 4px;
    overflow: hidden;
}

.side-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    min-width: 0;
    align-content: start;
}

    .side-panel > .bonus-teaser,
    .side-panel > .round-guide,
    .side-panel > .status-panel,
    .side-panel > .cashout-meter,
    .side-panel > .result-card,
    .side-panel > .hud,
    .side-panel > .side-note {
        grid-column: 1 / -1;
    }

    .side-panel > .stake-card {
        grid-column: 1 / 2;
    }

    .side-panel > .actions {
        grid-column: 2 / 3;
    }

/* WHEEL */

.wheel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 224, 197, 0.16), transparent 58%), radial-gradient(circle, rgba(255, 255, 255, 0.035), transparent 62%);
    position: relative;
}

    .wheel-wrap::before {
        content: "";
        position: absolute;
        width: min(92%, 430px);
        aspect-ratio: 1;
        border-radius: 50%;
        border: 1px solid rgba(63, 224, 197, 0.18);
        box-shadow: 0 0 22px rgba(63, 224, 197, 0.16), inset 0 0 30px rgba(63, 224, 197, 0.06);
        animation: wheelGlowPulse 2.8s ease-in-out infinite;
    }

canvas {
    width: min(100%, 350px);
    height: auto;
    cursor: pointer;
    touch-action: none;
    filter: drop-shadow(0 0 28px rgba(63, 224, 197, 0.10));
    position: relative;
    z-index: 1;
}

    canvas.zone-pulse {
        animation: zonePulse 0.38s ease-out;
    }

/* LIVE MULTIPLIER + CHARGE */

.live-multiplier {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    min-width: 178px;
    padding: 16px 18px;
    border-radius: 22px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(63, 224, 197, 0.18), rgba(7, 9, 13, 0.84)), rgba(7, 9, 13, 0.72);
    border: 1px solid rgba(63, 224, 197, 0.28);
    box-shadow: 0 0 32px rgba(63, 224, 197, 0.20), inset 0 0 24px rgba(255,255,255,0.035);
    pointer-events: none;
    animation: multiplierIn 0.22s ease-out;
}

    .live-multiplier span {
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 1.4px;
    }

    .live-multiplier strong {
        display: block;
        color: var(--gold);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 46px;
        line-height: 1;
        text-shadow: 0 0 28px rgba(255, 194, 77, 0.35);
    }

    .live-multiplier small {
        display: block;
        margin-top: 5px;
        color: var(--muted-light);
        font-size: 10px;
    }

.spin-charge {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    display: grid;
    place-items: center;
    min-width: 180px;
    min-height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 224, 197, 0.22), rgba(7, 9, 13, 0.72) 58%, transparent 72%);
    border: 1px solid rgba(63, 224, 197, 0.35);
    box-shadow: 0 0 46px rgba(63, 224, 197, 0.28), inset 0 0 30px rgba(255,255,255,0.04);
    pointer-events: none;
    animation: chargePulse 0.42s ease-in-out infinite;
}

    .spin-charge span {
        color: var(--muted-light);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1.4px;
    }

    .spin-charge strong {
        color: var(--cyan);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 74px;
        line-height: 0.9;
        text-shadow: 0 0 30px rgba(63, 224, 197, 0.52);
    }

/* LEGEND */

.legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 5px 0 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.16);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    font-size: 10px;
    width: fit-content;
    max-width: 100%;
}

    .legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px currentColor;
}

.dot-1 {
    background: #0e8f80;
    color: #0e8f80;
}

.dot-2 {
    background: var(--cyan);
    color: var(--cyan);
}

.dot-3 {
    background: #8cffe6;
    color: #8cffe6;
}

.dot-jackpot {
    background: var(--gold);
    color: var(--gold);
}

.dot-negative {
    background: var(--red);
    color: var(--red);
}

/* RECENT RESULTS */

.recent-results {
    width: min(100%, 360px);
    margin: 8px auto 0;
    padding: 7px 9px;
    border-radius: 18px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 0 16px rgba(255,255,255,0.025), 0 10px 24px rgba(0,0,0,0.16);
}

.recent-results-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

    .recent-results-top span {
        color: var(--muted);
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
    }

    .recent-results-top strong {
        color: var(--muted-light);
        font-family: 'JetBrains Mono', monospace;
        font-size: 8px;
    }

.recent-results-list {
    display: flex;
    gap: 6px;
    overflow: hidden;
    justify-content: center;
}

.recent-chip,
.recent-empty {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--muted-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
}

    .recent-chip:nth-child(n+7) {
        display: none;
    }

    .recent-chip.win,
    .recent-chip.cashout {
        color: var(--cyan);
        border-color: rgba(63, 224, 197, 0.28);
        background: rgba(63, 224, 197, 0.075);
    }

    .recent-chip.big-win,
    .recent-chip.jackpot {
        color: var(--gold);
        border-color: rgba(255, 194, 77, 0.34);
        background: rgba(255, 194, 77, 0.09);
        box-shadow: 0 0 16px rgba(255, 194, 77, 0.10);
    }

    .recent-chip.lose {
        color: var(--red);
        border-color: rgba(255, 84, 104, 0.30);
        background: rgba(255, 84, 104, 0.075);
    }

    .recent-chip.mixed {
        color: var(--muted-light);
    }

/* ROUND BANNER */

.round-banner {
    width: fit-content;
    margin: 6px auto 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 194, 77, 0.10);
    border: 1px solid rgba(255, 194, 77, 0.55);
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: softPulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 194, 77, 0.16), inset 0 0 18px rgba(255, 194, 77, 0.06);
}

/* BONUS + ROUND TYPE */

.bonus-teaser {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 194, 77, 0.075), rgba(255, 194, 77, 0.018)), rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 194, 77, 0.22);
    box-shadow: inset 0 0 18px rgba(255, 194, 77, 0.035), 0 10px 24px rgba(0,0,0,0.14);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    column-gap: 12px;
    row-gap: 5px;
    align-items: center;
}

    .bonus-teaser::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.055), transparent);
        transform: translateX(-120%);
        animation: bonusTeaserSheen 3.2s ease-in-out infinite;
        pointer-events: none;
    }

    .bonus-teaser > * {
        position: relative;
        z-index: 1;
    }

.bonus-teaser-top,
.round-type-strip {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    display: block;
}

    .bonus-teaser-top span,
    .round-type-strip span,
    .surge-meter-top span,
    .result-kicker,
    .round-guide-top span {
        color: var(--muted);
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: 1.6px;
        font-weight: 700;
    }

    .bonus-teaser-top strong,
    .round-type-strip strong {
        display: block;
        margin-top: 3px;
        color: var(--gold);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 13px;
        line-height: 1.15;
        text-align: left;
        text-shadow: 0 0 16px rgba(255, 194, 77, 0.22);
    }

    .round-type-strip strong {
        color: var(--cyan);
    }

.bonus-progress {
    grid-column: 1 / -1;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.bonus-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), #fff0a3);
    box-shadow: 0 0 18px rgba(255, 194, 77, 0.38);
    transition: width 0.35s ease;
}

.bonus-dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 0;
}

.bonus-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .bonus-dot.active {
        background: var(--gold);
        box-shadow: 0 0 14px rgba(255, 194, 77, 0.42);
        transform: scale(1.25);
    }

.bonus-teaser p {
    display: none;
    grid-column: 1 / -1;
    margin: 6px 0 0;
    color: var(--muted-light);
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
}

/* ROUND TYPE VISUAL STATES */

.bonus-teaser.round-standard .round-type-strip strong {
    color: var(--cyan);
}

.bonus-teaser.round-double .round-type-strip strong,
.bonus-teaser.round-boost .round-type-strip strong {
    color: var(--gold);
    text-shadow: 0 0 16px rgba(255, 194, 77, 0.32);
}

.bonus-teaser.round-safe .round-type-strip strong {
    color: #8cffe6;
    text-shadow: 0 0 16px rgba(140, 255, 230, 0.24);
}

.bonus-teaser.round-mystery .round-type-strip strong {
    color: #d8b7ff;
    text-shadow: 0 0 16px rgba(216, 183, 255, 0.28);
}

.bonus-teaser.round-surge {
    border-color: rgba(63, 224, 197, 0.62);
    box-shadow: 0 0 32px rgba(63, 224, 197, 0.16), inset 0 0 22px rgba(63, 224, 197, 0.08);
}

    .bonus-teaser.round-surge .round-type-strip strong {
        color: #8cffe6;
        text-shadow: 0 0 20px rgba(63, 224, 197, 0.48), 0 0 42px rgba(255, 194, 77, 0.20);
    }

.game-card.round-boost .wheel-wrap {
    box-shadow: 0 0 42px rgba(255, 194, 77, 0.08);
}

.game-card.round-safe .wheel-wrap {
    box-shadow: 0 0 42px rgba(140, 255, 230, 0.08);
}

.game-card.round-mystery .wheel-wrap {
    box-shadow: 0 0 42px rgba(216, 183, 255, 0.08);
}

.game-card.round-double .wheel-wrap {
    box-shadow: 0 0 48px rgba(255, 194, 77, 0.12);
}

.game-card.round-surge .wheel-wrap {
    box-shadow: 0 0 56px rgba(63, 224, 197, 0.16);
}

/* SURGE METER */

.surge-meter {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 6px 8px;
    border-radius: 13px;
    background: rgba(63, 224, 197, 0.045);
    border: 1px solid rgba(63, 224, 197, 0.14);
}

.surge-meter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .surge-meter-top strong {
        color: var(--cyan);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 13px;
        text-shadow: 0 0 14px rgba(63, 224, 197, 0.24);
    }

.surge-track {
    width: 100%;
    height: 5px;
    margin-top: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.surge-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), #8cffe6, var(--gold));
    box-shadow: 0 0 18px rgba(63, 224, 197, 0.38);
    transition: width 0.35s ease;
}

.surge-meter small {
    display: none;
    margin-top: 5px;
    color: var(--muted-light);
    font-size: 9px;
    line-height: 1.25;
}

.surge-meter.ready {
    border-color: rgba(255, 194, 77, 0.55);
    background: radial-gradient(circle at top right, rgba(255, 194, 77, 0.14), transparent 42%), rgba(255, 194, 77, 0.045);
    animation: surgeReadyPulse 1s ease-in-out infinite;
}

    .surge-meter.ready .surge-meter-top strong,
    .surge-meter.ready small {
        color: var(--gold);
    }

/* ROUND GUIDE + STRATEGY */

.round-guide {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(63, 224, 197, 0.08), rgba(63, 224, 197, 0.018)), rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(63, 224, 197, 0.20);
    box-shadow: inset 0 0 18px rgba(63, 224, 197, 0.04);
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 7px;
    align-items: center;
}

.round-guide-top {
    align-self: center;
}

    .round-guide-top strong {
        display: block;
        margin-top: 3px;
        color: var(--cyan);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 14px;
        text-shadow: 0 0 14px rgba(63, 224, 197, 0.28);
    }

.round-guide p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted-light);
    font-size: 9px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

    .guide-stats div {
        padding: 6px 5px;
        border-radius: 12px;
        background: rgba(255,255,255,0.035);
        border: 1px solid var(--panel-line);
        text-align: center;
    }

    .guide-stats span {
        color: var(--muted);
        font-size: 7px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .guide-stats strong {
        display: block;
        margin-top: 2px;
        color: var(--text);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 12px;
    }

#guideBestNet.positive {
    color: var(--cyan);
    text-shadow: 0 0 14px rgba(63, 224, 197, 0.25);
}

#guideBestNet.negative {
    color: var(--red);
    text-shadow: 0 0 14px rgba(255, 84, 104, 0.22);
}

#guideBestNet.neutral {
    color: var(--muted-light);
}

.round-guide.strategy-warning {
    border-color: rgba(255, 84, 104, 0.32);
}

.round-guide.strategy-strong {
    border-color: rgba(63, 224, 197, 0.38);
    box-shadow: inset 0 0 18px rgba(63, 224, 197, 0.055), 0 0 22px rgba(63, 224, 197, 0.08);
}

.round-guide.strategy-jackpot {
    border-color: rgba(255, 194, 77, 0.48);
    box-shadow: inset 0 0 18px rgba(255, 194, 77, 0.055), 0 0 24px rgba(255, 194, 77, 0.10);
}

/* QUICK PICKS */

.quick-picks {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 6px;
}

    .quick-picks button {
        min-height: 29px;
        border: 1px solid rgba(63, 224, 197, 0.18);
        border-radius: 10px;
        background: rgba(255,255,255,0.04);
        color: var(--muted-light);
        font-family: 'JetBrains Mono', monospace;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

        .quick-picks button:hover:not(:disabled) {
            transform: translateY(-1px);
            color: var(--text);
            border-color: rgba(63, 224, 197, 0.42);
            background: rgba(63, 224, 197, 0.08);
            box-shadow: 0 0 18px rgba(63, 224, 197, 0.10);
        }

        .quick-picks button:active:not(:disabled) {
            transform: translateY(1px) scale(0.98);
        }

        .quick-picks button:disabled {
            opacity: 0.38;
            cursor: not-allowed;
        }

#randomPickBtn {
    border-color: rgba(63, 224, 197, 0.28);
}

#maxPickBtn {
    border-color: rgba(255, 194, 77, 0.26);
}

    #maxPickBtn:hover:not(:disabled) {
        border-color: rgba(255, 194, 77, 0.50);
        background: rgba(255, 194, 77, 0.08);
        box-shadow: 0 0 18px rgba(255, 194, 77, 0.10);
    }

#clearPickBtn:hover:not(:disabled) {
    border-color: rgba(255, 84, 104, 0.42);
    background: rgba(255, 84, 104, 0.08);
    box-shadow: 0 0 18px rgba(255, 84, 104, 0.08);
}

/* STATUS */

.status-panel {
    min-height: 0;
    padding: 7px 10px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--panel-line);
    color: var(--muted-light);
    text-align: center;
    font-size: 10px;
    line-height: 1.35;
    box-shadow: inset 0 0 22px rgba(255,255,255,0.025);
}

    .status-panel.win,
    .status-panel.selected-feedback {
        border-color: rgba(63, 224, 197, 0.55);
        color: var(--cyan);
        background: rgba(63, 224, 197, 0.10);
        box-shadow: 0 0 22px rgba(63, 224, 197, 0.10);
    }

    .status-panel.lose {
        border-color: rgba(255, 84, 104, 0.5);
        color: var(--red);
        background: rgba(255, 84, 104, 0.08);
    }

    .status-panel.mixed {
        border-color: rgba(255, 194, 77, 0.5);
        color: var(--gold);
        background: rgba(255, 194, 77, 0.08);
        animation: goldAttention 1.2s ease-in-out infinite;
    }

/* CASH OUT */

.cashout-meter {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 194, 77, 0.10), rgba(255, 194, 77, 0.025)), rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 194, 77, 0.38);
    box-shadow: 0 0 28px rgba(255, 194, 77, 0.08);
    animation: resultIn 0.22s ease-out;
    position: relative;
    overflow: hidden;
}

    .cashout-meter::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
        transform: translateX(-120%);
        animation: cashoutSheen 1.4s linear infinite;
        pointer-events: none;
    }

    .cashout-meter > * {
        position: relative;
        z-index: 1;
    }

.cashout-meter-top,
.cashout-meter-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .cashout-meter-top span,
    .cashout-meter-bottom span {
        color: var(--muted);
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .cashout-meter-top strong {
        color: var(--gold);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 19px;
        text-shadow: 0 0 18px rgba(255, 194, 77, 0.42);
    }

.cashout-meter-bottom {
    margin-top: 6px;
}

    .cashout-meter-bottom strong {
        color: var(--text);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 14px;
    }

.cashout-track {
    width: 100%;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.42);
}

.cashout-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffc24d, #fff0a3, #3fe0c5);
    box-shadow: 0 0 18px rgba(255, 194, 77, 0.35);
    transition: width 0.08s linear;
}

/* RESULT CARD */

.result-card {
    padding: 9px 10px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)), rgba(0, 0, 0, 0.22);
    border: 1px solid var(--panel-line);
    animation: resultIn 0.28s ease-out;
    position: relative;
    overflow: hidden;
}

    .result-card.win,
    .result-card.cashout {
        border-color: rgba(63, 224, 197, 0.5);
        box-shadow: 0 0 30px rgba(63, 224, 197, 0.10);
        background: radial-gradient(circle at top right, rgba(63, 224, 197, 0.12), transparent 38%), linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)), rgba(0, 0, 0, 0.22);
    }

    .result-card.lose {
        border-color: rgba(255, 84, 104, 0.45);
        box-shadow: 0 0 30px rgba(255, 84, 104, 0.08);
        background: radial-gradient(circle at top right, rgba(255, 84, 104, 0.10), transparent 38%), linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)), rgba(0, 0, 0, 0.22);
    }

    .result-card.mixed {
        border-color: rgba(255, 194, 77, 0.45);
        box-shadow: 0 0 30px rgba(255, 194, 77, 0.08);
    }

    .result-card.big-win,
    .result-card.jackpot {
        border-color: rgba(255, 194, 77, 0.68);
        box-shadow: 0 0 36px rgba(255, 194, 77, 0.18), inset 0 0 24px rgba(255, 194, 77, 0.05);
    }

    .result-card.counting .result-pill,
    .result-card.counting .result-stat strong {
        animation: numberGlow 0.9s ease-in-out;
    }

    .result-card.jackpot {
        animation: jackpotCardPop 0.7s ease-out;
    }

    .result-card.big-win {
        animation: bigWinCardPop 0.6s ease-out;
    }

.result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
}

.result-kicker {
    margin: 0 0 5px;
}

.result-top h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.1;
}

.result-pill {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--panel-line);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.result-card.win .result-pill,
.result-card.cashout .result-pill {
    background: rgba(63, 224, 197, 0.12);
    border-color: rgba(63, 224, 197, 0.45);
    color: var(--cyan);
}

.result-card.lose .result-pill {
    background: rgba(255, 84, 104, 0.10);
    border-color: rgba(255, 84, 104, 0.45);
    color: var(--red);
}

.result-card.mixed .result-pill,
.result-card.big-win .result-pill,
.result-card.jackpot .result-pill {
    background: rgba(255, 194, 77, 0.14);
    border-color: rgba(255, 194, 77, 0.55);
    color: var(--gold);
    animation: resultPulseGold 1s ease-in-out infinite;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.result-stat {
    padding: 7px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--panel-line);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 26px rgba(0,0,0,0.16);
}

    .result-stat span {
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .result-stat strong {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 14px;
    }

.result-details {
    margin-top: 7px;
    padding: 7px;
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    color: var(--muted-light);
    font-size: 9px;
    line-height: 1.35;
    max-height: 45px;
    overflow-y: auto;
}

    .result-details strong {
        color: var(--text);
    }

/* HUD */

.hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.hud-item {
    padding: 7px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--panel-line);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 26px rgba(0,0,0,0.16);
}

    .hud-item span {
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 8px;
    }

    .hud-item strong {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 17px;
        text-shadow: 0 0 16px rgba(255,255,255,0.10);
    }

/* STAKE */

.stake-card {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--panel-line);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 26px rgba(0,0,0,0.16);
}

    .stake-card p {
        margin: 0 0 5px;
        color: var(--muted);
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.stake-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .stake-controls button {
        width: 30px;
        height: 30px;
        border: 1px solid var(--panel-line);
        border-radius: 10px;
        background: rgba(255,255,255,0.06);
        color: var(--text);
        cursor: pointer;
        font-size: 18px;
        transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

        .stake-controls button:hover {
            transform: translateY(-1px);
            border-color: rgba(63, 224, 197, 0.65);
            color: var(--cyan);
            box-shadow: 0 0 18px rgba(63, 224, 197, 0.12);
        }

        .stake-controls button:active {
            transform: translateY(1px) scale(0.98);
        }

    .stake-controls strong {
        min-width: 50px;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 19px;
    }

.total-stake {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.3;
}

    .total-stake strong {
        color: var(--text);
    }

/* ACTIONS */

.actions {
    display: grid;
    gap: 6px;
    align-self: stretch;
}

.primary-btn,
.gold-btn,
.secondary-btn {
    width: 100%;
    min-height: 35px;
    border-radius: 11px;
    border: none;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.primary-btn {
    background: var(--cyan);
    color: #031413;
    box-shadow: 0 12px 30px rgba(63, 224, 197, 0.18);
    position: relative;
    overflow: hidden;
}

    .primary-btn:not(:disabled)::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
        transform: translateX(-120%);
        animation: buttonSheen 2.4s ease-in-out infinite;
    }

    .primary-btn:hover:not(:disabled),
    .gold-btn:hover {
        transform: translateY(-2px);
    }

    .primary-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.gold-btn {
    background: var(--gold);
    color: #251a00;
    box-shadow: 0 12px 30px rgba(255, 194, 77, 0.18);
    position: relative;
    overflow: hidden;
}

    .gold-btn:not(.hidden) {
        animation: cashoutButtonPulse 0.9s ease-in-out infinite;
    }

        .gold-btn:not(.hidden)::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
            transform: translateX(-130%);
            animation: buttonSheenFast 1.1s linear infinite;
        }

.secondary-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--panel-line);
    color: var(--muted-light);
}

    .secondary-btn:hover {
        color: var(--text);
        border-color: rgba(255,255,255,0.16);
        background: rgba(255,255,255,0.065);
        box-shadow: 0 0 18px rgba(255,255,255,0.04);
    }

    .primary-btn:active,
    .gold-btn:active,
    .secondary-btn:active {
        transform: translateY(1px) scale(0.99);
    }

/* AUTO PLAY */

.auto-play-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 6px;
    border-radius: 13px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
}

    .auto-play-panel small {
        grid-column: 1 / -1;
        color: var(--muted);
        font-size: 7px;
        line-height: 1.25;
        text-align: center;
    }

.auto-play-btn,
.auto-stop-btn {
    min-height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(63, 224, 197, 0.22);
    background: rgba(63, 224, 197, 0.06);
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auto-stop-btn {
    border-color: rgba(255, 84, 104, 0.24);
    background: rgba(255, 84, 104, 0.06);
    color: var(--red);
}

    .auto-play-btn:hover:not(:disabled),
    .auto-stop-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 0 18px rgba(63, 224, 197, 0.10);
    }

    .auto-stop-btn:hover:not(:disabled) {
        box-shadow: 0 0 18px rgba(255, 84, 104, 0.10);
    }

    .auto-play-btn:disabled,
    .auto-stop-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.auto-play-panel.running {
    border-color: rgba(255, 194, 77, 0.32);
    background: rgba(255, 194, 77, 0.045);
    box-shadow: 0 0 18px rgba(255, 194, 77, 0.08);
}

    .auto-play-panel.running small {
        color: var(--gold);
    }

/* SIDE NOTE */

.side-note {
    display: none;
    margin: 0;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--panel-line);
    color: var(--muted);
    font-size: 8px;
    line-height: 1.3;
    text-align: center;
}

/* GAME MOMENTS */

.game-card.moment-win {
    animation: gameWinFlash 0.85s ease-out;
}

.game-card.moment-big-win,
.game-card.moment-jackpot {
    animation: gameJackpotFlash 1.05s ease-out;
}

.game-card.moment-lose {
    animation: gameLoseFlash 0.65s ease-out;
}

.game-card.bigwin-shake {
    animation: bigWinShake 0.65s ease-out;
}

.game-card.jackpot-shake {
    animation: jackpotShake 0.85s ease-out;
}

/* RESULT MODE CLEANUP */

.game-card.has-result #statusPanel,
.game-card.has-result #cashoutMeter,
.game-card.has-result .round-guide,
.game-card.has-result #spinBtn {
    display: none !important;
}

.game-card.has-result .bonus-teaser {
    padding: 7px 10px;
}

.game-card.has-result .bonus-dots {
    display: none;
}

.game-card.has-result .bonus-progress {
    grid-column: 1 / -1;
}

.game-card.has-result .result-card {
    padding: 9px 10px;
}

.game-card.has-result .quick-picks {
    display: none !important;
}

.game-card.has-result .auto-play-panel {
    display: grid;
}

/* DESKTOP FIT */

@media (min-width: 901px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .game-page {
        height: 100dvh;
        min-height: 0;
        padding: 8px 12px;
        align-items: center;
    }

    .game-card {
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .game-layout {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .side-panel {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }
}

/* TABLET */

@media (max-width: 900px) {
    html,
    body {
        overflow: auto;
    }

    .game-page {
        align-items: flex-start;
    }

    .game-card {
        max-width: 760px;
        overflow: hidden;
    }

    .game-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .side-panel {
        grid-template-columns: 1fr;
    }

        .side-panel > .stake-card,
        .side-panel > .actions {
            grid-column: 1 / -1;
        }

    canvas {
        width: min(100%, 440px);
    }

    .side-note {
        display: block;
    }

    .bonus-teaser p,
    .surge-meter small {
        display: block;
    }
}

/* MOBILE */

@media (max-width: 720px) {
    body::before {
        opacity: 0.35;
    }

    body::after {
        width: 360px;
        height: 360px;
    }

    .game-page {
        padding: 18px 12px;
    }

    .intro-card,
    .game-card {
        padding: 22px;
        border-radius: 22px;
    }

    .intro-points {
        grid-template-columns: 1fr;
    }

    .game-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .wheel-wrap {
        padding: 4px;
    }

    .legend {
        border-radius: 18px;
        width: 100%;
        justify-content: center;
    }

    .recent-results {
        width: 100%;
    }

    .recent-results-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .recent-chip:nth-child(n+7) {
        display: inline-flex;
    }

    .bonus-teaser {
        grid-template-columns: 1fr;
    }

    .bonus-teaser-top strong,
    .round-type-strip strong {
        text-align: left;
    }

    .round-guide {
        grid-template-columns: 1fr;
    }

        .round-guide p {
            white-space: normal;
            overflow: visible;
            text-overflow: initial;
        }

    .guide-stats,
    .quick-picks {
        grid-template-columns: repeat(2, 1fr);
    }

    .hud {
        grid-template-columns: 1fr;
    }

    .result-top {
        flex-direction: column;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .result-pill {
        width: 100%;
        text-align: center;
    }

    .cashout-meter-top,
    .cashout-meter-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .result-overlay {
        inset: 10px;
        border-radius: 20px;
    }

    .live-multiplier {
        min-width: 150px;
        padding: 13px 14px;
    }

        .live-multiplier strong {
            font-size: 38px;
        }

    .spin-charge {
        min-width: 150px;
        min-height: 150px;
    }

        .spin-charge strong {
            font-size: 58px;
        }
}

/* ANIMATIONS */

@keyframes ambientFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-30px, -24px) scale(1.08);
        opacity: 1;
    }
}

@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 194, 77, 0);
    }

    50% {
        transform: scale(1.025);
        box-shadow: 0 0 22px rgba(255, 194, 77, 0.18);
    }
}

@keyframes sheenMove {
    0% {
        transform: translateX(-100%);
    }

    45%, 100% {
        transform: translateX(100%);
    }
}

@keyframes wheelGlowPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.025);
    }
}

@keyframes zonePulse {
    0% {
        transform: scale(0.99);
    }

    50% {
        transform: scale(1.015);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes resultIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes resultOverlayIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sparkFly {
    from {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(var(--spark-x), var(--spark-y)) scale(0.15);
    }
}

@keyframes coinRainFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    100% {
        transform: translateY(620px) rotate(540deg) scale(1);
        opacity: 0;
    }
}

@keyframes shockwaveExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0.95;
    }

    100% {
        transform: translate(-50%, -50%) scale(6.4);
        opacity: 0;
    }
}

@keyframes multiplierIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.86);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes chargePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.92;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06);
        opacity: 1;
    }
}

@keyframes bonusTeaserSheen {
    0% {
        transform: translateX(-120%);
    }

    38%, 100% {
        transform: translateX(120%);
    }
}

@keyframes surgeReadyPulse {
    0%, 100% {
        box-shadow: 0 0 16px rgba(255, 194, 77, 0.10), inset 0 0 14px rgba(255, 194, 77, 0.04);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 194, 77, 0.22), inset 0 0 20px rgba(255, 194, 77, 0.08);
    }
}

@keyframes goldAttention {
    0%, 100% {
        box-shadow: inset 0 0 20px rgba(255, 194, 77, 0.035), 0 0 0 rgba(255, 194, 77, 0);
    }

    50% {
        box-shadow: inset 0 0 24px rgba(255, 194, 77, 0.07), 0 0 24px rgba(255, 194, 77, 0.08);
    }
}

@keyframes cashoutSheen {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(120%);
    }
}

@keyframes buttonSheen {
    0% {
        transform: translateX(-120%);
    }

    45%, 100% {
        transform: translateX(120%);
    }
}

@keyframes buttonSheenFast {
    from {
        transform: translateX(-130%);
    }

    to {
        transform: translateX(130%);
    }
}

@keyframes cashoutButtonPulse {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(255, 194, 77, 0.18), 0 0 0 rgba(255, 194, 77, 0);
    }

    50% {
        box-shadow: 0 14px 36px rgba(255, 194, 77, 0.25), 0 0 22px rgba(255, 194, 77, 0.22);
    }
}

@keyframes resultPulseGold {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 194, 77, 0);
    }

    50% {
        box-shadow: 0 0 18px rgba(255, 194, 77, 0.22);
    }
}

@keyframes numberGlow {
    0% {
        transform: scale(0.92);
        opacity: 0.5;
    }

    45% {
        transform: scale(1.08);
        opacity: 1;
        text-shadow: 0 0 20px rgba(255,255,255,0.20);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes overlayBurst {
    0% {
        transform: scale(0.2);
        opacity: 0.95;
    }

    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

@keyframes jackpotSpin {
    from {
        transform: rotate(0deg);
        opacity: 0.8;
    }

    to {
        transform: rotate(360deg);
        opacity: 0.8;
    }
}

@keyframes winTextPop {
    0% {
        transform: scale(0.82);
        opacity: 0;
    }

    70% {
        transform: scale(1.06);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bigWinTextPop {
    0% {
        transform: scale(0.7) rotate(-1deg);
        opacity: 0;
    }

    65% {
        transform: scale(1.1) rotate(1deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes jackpotTextPop {
    0% {
        transform: scale(0.55) rotate(-2deg);
        opacity: 0;
        letter-spacing: -3px;
    }

    55% {
        transform: scale(1.16) rotate(1deg);
        opacity: 1;
        letter-spacing: 1px;
    }

    100% {
        transform: scale(1) rotate(0deg);
        letter-spacing: -2px;
    }
}

@keyframes gameWinFlash {
    0% {
        box-shadow: 0 0 0 rgba(63, 224, 197, 0);
    }

    35% {
        box-shadow: 0 0 80px rgba(63, 224, 197, 0.22);
    }

    100% {
        box-shadow: var(--shadow-main), var(--shadow-glow);
    }
}

@keyframes gameJackpotFlash {
    0% {
        box-shadow: 0 0 0 rgba(255, 194, 77, 0);
    }

    28% {
        box-shadow: 0 0 110px rgba(255, 194, 77, 0.34), 0 0 30px rgba(63, 224, 197, 0.15);
    }

    100% {
        box-shadow: var(--shadow-main), var(--shadow-glow);
    }
}

@keyframes gameLoseFlash {
    0% {
        box-shadow: 0 0 0 rgba(255, 84, 104, 0);
    }

    30% {
        box-shadow: 0 0 58px rgba(255, 84, 104, 0.18);
    }

    100% {
        box-shadow: var(--shadow-main), var(--shadow-glow);
    }
}

@keyframes bigWinShake {
    0%, 100% {
        transform: translate(0, 0);
    }

    18% {
        transform: translate(1px, -1px);
    }

    36% {
        transform: translate(-2px, 1px);
    }

    54% {
        transform: translate(2px, 0);
    }

    72% {
        transform: translate(-1px, -1px);
    }
}

@keyframes jackpotShake {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    15% {
        transform: translate(2px, -1px) scale(1.003);
    }

    30% {
        transform: translate(-3px, 2px) scale(1.006);
    }

    45% {
        transform: translate(3px, 0) scale(1.004);
    }

    60% {
        transform: translate(-2px, -2px) scale(1.002);
    }

    75% {
        transform: translate(1px, 1px) scale(1);
    }
}

@keyframes jackpotCardPop {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 rgba(255, 194, 77, 0);
    }

    55% {
        transform: scale(1.015);
        box-shadow: 0 0 42px rgba(255, 194, 77, 0.26);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bigWinCardPop {
    0% {
        transform: scale(0.97);
    }

    55% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1);
    }
}
/* BUTTON CLICK FIX */

.primary-btn::after,
.gold-btn::after {
    pointer-events: none;
}
