/* ═══════════════════════════════════════════════════
   GRAND NOIR — ROYAL SLOTS   style.css
   Monte Carlo private room aesthetic
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Cormorant+SC:wght@300;400;600;700&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
    --felt: #0b2416;
    --felt-hi: #0f2e1c;
    --felt-edge: #071509;
    --gold: #C9A44A;
    --gold-hi: #E8C96A;
    --gold-line: rgba(201, 164, 74, 0.32);
    --gold-glow: rgba(201, 164, 74, 0.16);
    --gold-pale: rgba(201, 164, 74, 0.09);
    --ivory: #F3E9D2;
    --ivory-mid: rgba(243, 233, 210, 0.55);
    --ivory-lo: rgba(243, 233, 210, 0.22);
    --reel-bg: #05100a;
    --bg: #07100b;
    --panel: rgba(0, 0, 0, 0.42);
    --border: rgba(201, 164, 74, 0.28);
    --amber: #E9A825;
    --cyan: #5ecfcf;
    --green-win: #34d399;
    --red-lose: #f87171;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--ivory);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 16px 60px;
    position: relative;
}

/* Ambient gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 50% at 50% -5%, rgba(201, 164, 74, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(94, 207, 207, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(52, 211, 153, 0.03) 0%, transparent 50%);
}

/* Micro-grid texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(201, 164, 74, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 164, 74, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* Particles */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-up var(--dur) var(--delay) linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.25;
    }

    100% {
        transform: translateY(-20px) translateX(var(--drift));
        opacity: 0;
    }
}

#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    width: 100%;
    height: 100%;
}

/* ══ GAME WRAPPER ══ */
.game-wrapper {
    width: 100%;
    max-width: 760px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* ══ HUD ══ */
.hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
}

.hud-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 110px;
}

.hud-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.52em;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ivory-lo);
}

.hud-value {
    font-family: 'DM Mono', monospace;
    font-size: 1.5em;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--ivory);
    transition: color 0.3s, transform 0.2s;
}

.hud-value.gold {
    color: var(--gold-hi);
    text-shadow: 0 0 18px rgba(232, 201, 106, 0.38);
}

.hud-value.cyan {
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(94, 207, 207, 0.38);
}

.hud-center {
    text-align: center;
    flex: 1;
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-icon {
    font-size: 1.6em;
    line-height: 1;
}

h1 {
    font-family: 'Cormorant SC', serif;
    font-size: 1.55em;
    font-weight: 700;
    letter-spacing: 6px;
    background: linear-gradient(150deg, #7a5610 0%, #E8C96A 38%, #C9A44A 65%, #7a5610 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(201, 164, 74, 0.32));
    line-height: 1.1;
}

.logo-sub {
    font-family: 'DM Mono', monospace;
    font-size: 0.52em;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--cyan);
    opacity: 0.82;
}

/* ══ MACHINE BODY ══ */
.machine-body {
    background: linear-gradient(180deg, rgba(11, 36, 22, 0.95) 0%, rgba(5, 16, 10, 0.98) 100%);
    border: 1px solid var(--border);
    border-top: none;
    border-bottom: none;
    padding: 0 24px 20px;
}

/* ══ MACHINE LIGHTS ══ */
.machine-lights {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 14px 0 12px;
}

.light {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-hi);
    box-shadow: 0 0 7px var(--gold-hi), 0 0 14px rgba(232, 201, 106, 0.4);
    animation: blink 1.4s var(--delay) ease-in-out infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}

/* ══ WIN LINES BAR ══ */
.winlines-bar {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 0 0 14px;
    flex-wrap: wrap;
}

.winline-indicator {
    font-family: 'Cormorant SC', serif;
    font-size: 0.6em;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(201, 164, 74, 0.12);
    color: rgba(243, 233, 210, 0.3);
    transition: all 0.3s;
}

.winline-indicator.lit,
.winline-indicator.active {
    background: var(--gold-pale);
    border-color: var(--gold);
    color: var(--gold-hi);
    box-shadow: 0 0 9px rgba(201, 164, 74, 0.28);
}

/* ══ REELS FRAME ══ */
.reels-frame {
    position: relative;
    background:
        radial-gradient(ellipse 100% 80% at 50% 50%, var(--felt-hi) 0%, var(--felt) 55%, var(--felt-edge) 100%);
    border-radius: 16px;
    padding: 16px;
    border: 3px solid var(--gold);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 0 5px #040a06,
        0 0 0 7px var(--gold),
        inset 0 4px 24px rgba(0, 0, 0, 0.75),
        0 16px 60px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

/* Felt texture */
.reels-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='0.55' fill='rgba(255,255,255,0.016)'/%3E%3C/svg%3E");
}

/* Row dividers */
.reels-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 114px,
            rgba(201, 164, 74, 0.09) 114px,
            rgba(201, 164, 74, 0.09) 116px);
}

.reels-inner {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
}

/* ══ WIN OVERLAYS ══ */
.win-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 8px;
}

.win-overlay.active {
    opacity: 1;
    animation: shine 0.8s ease-in-out 3;
}

.row-overlay {
    left: 0;
    right: 0;
    height: 110px;
    background: linear-gradient(90deg, transparent 0%, rgba(232, 201, 106, 0.1) 50%, transparent 100%);
    border-top: 1px solid rgba(232, 201, 106, 0.45);
    border-bottom: 1px solid rgba(232, 201, 106, 0.45);
}

#win-row-0 {
    top: 16px;
}

#win-row-1 {
    top: 130px;
}

#win-row-2 {
    top: 244px;
}

@keyframes shine {

    0%,
    100% {
        background: linear-gradient(90deg, transparent 0%, rgba(232, 201, 106, 0.1) 50%, transparent 100%);
    }

    50% {
        background: linear-gradient(90deg, transparent 0%, rgba(232, 201, 106, 0.26) 50%, transparent 100%);
    }
}

/* ══ REEL COLUMNS ══ */
.reel-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.reel-column.spinning .cell-inner {
    animation: reel-blur 0.08s linear infinite;
}

@keyframes reel-blur {
    0% {
        transform: translateY(-8px);
        filter: blur(2px);
    }

    50% {
        transform: translateY(0);
        filter: blur(3px);
    }

    100% {
        transform: translateY(8px);
        filter: blur(2px);
    }
}

/* ══ CELLS ══ */
.cell {
    width: 110px;
    height: 110px;
    background: linear-gradient(145deg, rgba(11, 36, 22, 0.9), rgba(5, 16, 10, 0.95));
    border-radius: 10px;
    border: 1.5px solid rgba(201, 164, 74, 0.18);
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s;
}

.cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, transparent 60%);
    pointer-events: none;
}

.cell-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.8em;
    transition: transform 0.15s ease;
    user-select: none;
}

.cell.win-cell {
    border-color: var(--gold-hi);
    box-shadow: 0 0 18px rgba(232, 201, 106, 0.4), inset 0 0 18px rgba(232, 201, 106, 0.05);
    animation: cell-win 0.6s ease-in-out 3;
}

.cell.win-cell-green {
    border-color: var(--green-win);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.4), inset 0 0 18px rgba(52, 211, 153, 0.05);
}

@keyframes cell-win {

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

    50% {
        transform: scale(1.04);
    }
}

/* ── Payline markers ── */
.payline-markers {
    position: absolute;
    left: -28px;
    top: 0;
    bottom: 0;
    width: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
    padding: 16px 0;
}

.payline-markers.right {
    left: auto;
    right: -28px;
}

.pm {
    color: var(--gold);
    font-size: 0.7em;
    opacity: 0.45;
    transition: all 0.3s;
    text-shadow: 0 0 7px rgba(201, 164, 74, 0.5);
}

/* ══ RESULT BANNER ══ */
.result-banner {
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 20px;
    margin-top: 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(201, 164, 74, 0.1);
    transition: all 0.4s;
    text-align: center;
}

.result-banner.win {
    background: rgba(52, 211, 153, 0.05);
    border-color: rgba(52, 211, 153, 0.28);
    box-shadow: 0 0 28px rgba(52, 211, 153, 0.09);
}

.result-banner.jackpot {
    background: rgba(232, 201, 106, 0.07);
    border-color: rgba(232, 201, 106, 0.48);
    box-shadow: 0 0 55px rgba(232, 201, 106, 0.18);
    animation: jackpot-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes jackpot-pulse {
    from {
        box-shadow: 0 0 28px rgba(232, 201, 106, 0.14);
    }

    to {
        box-shadow: 0 0 70px rgba(232, 201, 106, 0.34);
    }
}

.result-banner.lose {
    border-color: rgba(248, 113, 113, 0.14);
}

.result-text {
    font-family: 'Cormorant SC', serif;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--ivory);
}

.result-banner.win .result-text {
    color: var(--green-win);
}

.result-banner.jackpot .result-text {
    color: var(--gold-hi);
}

.result-banner.lose .result-text {
    color: rgba(243, 233, 210, 0.35);
}

.result-amount {
    font-family: 'DM Mono', monospace;
    font-size: 1.7em;
    font-weight: 500;
    color: var(--gold-hi);
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(232, 201, 106, 0.45);
}

/* ══ CONTROLS ══ */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ── Bet section ── */
.bet-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    min-width: 155px;
}

.bet-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
}

.bet-adj {
    width: 38px;
    height: 46px;
    background: rgba(201, 164, 74, 0.08);
    border: none;
    color: var(--gold-hi);
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'DM Mono', monospace;
}

.bet-adj:hover {
    background: rgba(201, 164, 74, 0.2);
}

.bet-adj:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bet-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 16px;
    min-width: 88px;
}

.bet-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.52em;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ivory-lo);
    font-weight: 400;
}

.bet-value {
    font-family: 'DM Mono', monospace;
    font-size: 1.25em;
    font-weight: 500;
    color: var(--gold-hi);
    letter-spacing: 1px;
}

.btn-secondary {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(201, 164, 74, 0.32);
    border-radius: 7px;
    color: var(--gold);
    font-family: 'Cormorant SC', serif;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.22s;
}

.btn-secondary:hover {
    background: var(--gold-pale);
    border-color: var(--gold);
    color: var(--gold-hi);
}

.btn-secondary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Spin column (button + streak centred together) ── */
.spin-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ── SPIN BUTTON ── */
.spin-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #7a5610, #E8C96A, #C9A44A, #7a5610);
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.3s;
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.45),
        0 0 0 6px var(--gold),
        0 8px 40px rgba(201, 164, 74, 0.45),
        0 16px 55px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.45),
        0 0 0 6px var(--gold-hi),
        0 12px 50px rgba(201, 164, 74, 0.65),
        0 20px 65px rgba(0, 0, 0, 0.45);
}

.spin-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spin-btn-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0d1f12, #05100a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), inset 0 -2px 4px rgba(255, 255, 255, 0.03);
}

.spin-icon {
    font-size: 1.7em;
    color: var(--gold-hi);
    line-height: 1;
    transition: transform 0.6s ease;
}

.spin-btn:not(:disabled):hover .spin-icon {
    transform: rotate(180deg);
}

.spin-text {
    font-family: 'Cormorant SC', serif;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-hi);
}

.spin-btn.spinning .spin-icon {
    animation: spin-icon 0.5s linear infinite;
}

@keyframes spin-icon {
    from {
        transform: rotate(0deg);
    }

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

/* ══ HOT STREAK (sits inside .spin-col, centred under button) ══ */
.streak-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.streak-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(233, 168, 37, 0.15);
    border: 1px solid rgba(233, 168, 37, 0.28);
    transition: all 0.4s;
}

.streak-dot.hot {
    background: var(--amber);
    box-shadow: 0 0 10px rgba(233, 168, 37, 0.6);
    animation: dot-pulse 0.6s ease-in-out infinite alternate;
}

@keyframes dot-pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.35);
    }
}

/* ── Info section ── */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 108px;
}

.info-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 164, 74, 0.11);
    border-radius: 8px;
    padding: 7px 12px;
}

.info-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.52em;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ivory-lo);
    font-weight: 400;
}

.info-val {
    font-family: 'DM Mono', monospace;
    font-size: 1.15em;
    font-weight: 500;
    letter-spacing: 1px;
}

.info-val.green {
    color: var(--green-win);
}

.info-val.amber {
    color: var(--amber);
}

/* ══ STATUS BAR ══ */
.status-bar {
    text-align: center;
    margin-top: 14px;
    padding: 9px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 0.78em;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--ivory-mid);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#status-msg.error {
    color: var(--red-lose);
}

#status-msg.success {
    color: var(--green-win);
}

#status-msg.free {
    color: var(--cyan);
    font-weight: 400;
}

.status-ticker {
    font-family: 'Cormorant SC', serif;
    font-size: 1em;
    letter-spacing: 2px;
    color: var(--cyan);
    animation: ticker-fade 2s ease-in-out infinite alternate;
}

@keyframes ticker-fade {
    from {
        opacity: 0.55;
    }

    to {
        opacity: 1;
    }
}

/* ══ FREE SPINS BANNER ══ */
.free-spins-banner {
    display: none;
    text-align: center;
    padding: 11px;
    background: linear-gradient(135deg, rgba(94, 207, 207, 0.09), rgba(94, 207, 207, 0.04));
    border: 1px solid rgba(94, 207, 207, 0.28);
    border-radius: 9px;
    margin-bottom: 8px;
    font-family: 'Cormorant SC', serif;
    font-size: 0.95em;
    letter-spacing: 2px;
    color: var(--cyan);
    animation: free-spin-glow 1s ease-in-out infinite alternate;
}

.free-spins-banner.active {
    display: block;
}

@keyframes free-spin-glow {
    from {
        box-shadow: 0 0 12px rgba(94, 207, 207, 0.12);
    }

    to {
        box-shadow: 0 0 30px rgba(94, 207, 207, 0.28);
    }
}

/* ══ PAYTABLE SECTION ══ */
.paytable-section {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.paytable-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 26px;
    cursor: pointer;
    font-family: 'Cormorant SC', serif;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.72;
    border-top: 1px solid var(--border);
    transition: color 0.2s, background 0.2s, opacity 0.2s;
    user-select: none;
}

.paytable-toggle:hover {
    color: var(--gold-hi);
    background: var(--gold-pale);
    opacity: 1;
}

.pt-arrow {
    transition: transform 0.3s;
    display: inline-block;
}

.paytable-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.paytable-body.open {
    max-height: 600px;
}

.paytable-columns {
    display: flex;
    gap: 22px;
    padding: 18px 26px 26px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
}

.pt-col {
    flex: 1;
    min-width: 230px;
}

.pt-col h4 {
    font-family: 'Cormorant SC', serif;
    font-size: 0.68em;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(201, 164, 74, 0.12);
    font-weight: 600;
}

.pt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 11px;
    border-radius: 5px;
    margin-bottom: 3px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.95em;
    transition: background 0.2s;
}

.pt-row:hover {
    background: rgba(201, 164, 74, 0.06);
}

.pt-pay {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 1em;
    letter-spacing: 1px;
}

.pt-pay.jackpot {
    color: var(--gold-hi);
    text-shadow: 0 0 9px rgba(232, 201, 106, 0.45);
}

.pt-pay.high {
    color: var(--amber);
}

.pt-pay.mid {
    color: var(--green-win);
}

.pt-pay.low {
    color: var(--ivory-mid);
}

.pt-feature {
    display: flex;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 7px;
    margin-bottom: 7px;
    background: rgba(0, 0, 0, 0.2);
    align-items: flex-start;
    border: 1px solid rgba(201, 164, 74, 0.07);
    transition: background 0.2s;
}

.pt-feature:hover {
    background: rgba(201, 164, 74, 0.05);
}

.pt-feat-icon {
    font-size: 1.3em;
    flex-shrink: 0;
    margin-top: 2px;
}

.pt-feat-name {
    font-family: 'Cormorant SC', serif;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 3px;
}

.pt-feat-desc {
    font-family: 'DM Mono', monospace;
    font-size: 0.78em;
    font-weight: 300;
    color: var(--ivory-mid);
    line-height: 1.55;
}

/* ══ FREE SPIN OVERLAY ══ */
.freeSpinOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.87);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlay-in 0.4s ease;
}

@keyframes overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.freeSpinCard {
    background: linear-gradient(145deg, #0d2016, #05100a);
    border: 2px solid var(--cyan);
    border-radius: 18px;
    padding: 46px 54px;
    text-align: center;
    box-shadow: 0 0 70px rgba(94, 207, 207, 0.28);
    animation: card-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes card-pop {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

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

.fsCard-icon {
    font-size: 3.6em;
    margin-bottom: 14px;
}

.fsCard-title {
    font-family: 'Cormorant SC', serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 4px;
    text-shadow: 0 0 28px rgba(94, 207, 207, 0.55);
    margin-bottom: 7px;
}

.fsCard-sub {
    font-family: 'DM Mono', monospace;
    font-size: 0.72em;
    letter-spacing: 3px;
    color: var(--ivory-mid);
    margin-bottom: 20px;
}

.fsCard-count {
    font-family: 'DM Mono', monospace;
    font-size: 3.6em;
    font-weight: 500;
    color: var(--gold-hi);
    text-shadow: 0 0 28px rgba(232, 201, 106, 0.55);
}

.fsCard-spins-label {
    font-family: 'Cormorant SC', serif;
    font-size: 0.82em;
    letter-spacing: 2px;
    color: var(--ivory-mid);
    margin-bottom: 26px;
}

.fsCard-btn {
    padding: 13px 38px;
    background: linear-gradient(135deg, var(--cyan), #2a8a8a);
    border: none;
    border-radius: 9px;
    color: #050e07;
    font-family: 'Cormorant SC', serif;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 22px rgba(94, 207, 207, 0.28);
}

.fsCard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 30px rgba(94, 207, 207, 0.42);
}

/* ══ BALANCE ANIMATIONS ══ */
@keyframes balance-bounce {

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

    40% {
        transform: scale(1.14);
    }
}

.balance-bounce {
    animation: balance-bounce 0.4s ease;
}

@keyframes value-flash {

    0%,
    100% {
        color: var(--gold-hi);
    }

    50% {
        color: #fff;
        text-shadow: 0 0 18px #fff;
    }
}

.value-flash {
    animation: value-flash 0.3s ease;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 600px) {
    body {
        padding: 12px 8px 30px;
    }

    h1 {
        font-size: 1.15em;
        letter-spacing: 3px;
    }

    .logo-sub {
        font-size: 0.46em;
        letter-spacing: 3px;
    }

    .hud {
        padding: 12px 14px;
    }

    .hud-value {
        font-size: 1.2em;
    }

    .machine-body {
        padding: 0 12px 16px;
    }

    .cell {
        width: 86px;
        height: 86px;
    }

    .cell-inner {
        font-size: 3em;
    }

    .reels-inner {
        gap: 8px;
    }

    #win-row-0 {
        top: 16px;
    }

    #win-row-1 {
        top: 100px;
    }

    #win-row-2 {
        top: 184px;
    }

    .row-overlay {
        height: 86px;
    }

    .controls {
        justify-content: center;
        gap: 10px;
    }

    .bet-section {
        min-width: 140px;
    }

    .spin-btn {
        width: 110px;
        height: 110px;
    }

    .info-section {
        min-width: 90px;
    }

    .info-val {
        font-size: 1em;
    }

    .paytable-columns {
        padding: 12px 14px 18px;
    }
}

@media (max-width: 420px) {
    .cell {
        width: 72px;
        height: 72px;
    }

    .cell-inner {
        font-size: 2.4em;
    }

    #win-row-1 {
        top: 86px;
    }

    #win-row-2 {
        top: 156px;
    }

    .row-overlay {
        height: 72px;
    }
}