/* ============================================
   EESTI ÕNN - Estonian Fortune Slot
   Book of Ra Style Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=MedievalSharp&display=swap');

:root {
    /* Gold palette */
    --gold-bright: #FFD700;
    --gold-main: #D4AF37;
    --gold-dark: #996515;
    --gold-shadow: #5C4033;
    --gold-glow: rgba(255, 215, 0, 0.6);

    /* Wood/leather tones */
    --wood-dark: #2C1810;
    --wood-medium: #4A2C2A;
    --wood-light: #6B4423;
    --leather: #8B4513;

    /* Background */
    --bg-dark: #0D0D0D;
    --bg-pattern: #1a1209;

    /* Estonian accent */
    --estonian-blue: #0072CE;

    /* Reel settings */
    --reel-height: 360px;
    --symbol-size: 120px;
    --reel-count: 5;
}

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

body {
    font-family: 'Cinzel', serif;
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
}

/* ============================================
   Main Container
   ============================================ */

.game-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(212,175,55,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(212,175,55,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(212,175,55,0.03)"/></pattern></defs><rect fill="url(%23grain)" width="100" height="100"/></svg>'),
        linear-gradient(180deg, #1a1209 0%, #0D0D0D 50%, #1a1209 100%);
}

/* Animated particles */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-symbol {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: floatUp 20s linear infinite;
    filter: blur(1px);
}

.float-symbol:nth-child(1) { left: 5%; animation-delay: 0s; }
.float-symbol:nth-child(2) { left: 15%; animation-delay: 4s; }
.float-symbol:nth-child(3) { left: 30%; animation-delay: 8s; }
.float-symbol:nth-child(4) { left: 60%; animation-delay: 2s; }
.float-symbol:nth-child(5) { left: 80%; animation-delay: 6s; }
.float-symbol:nth-child(6) { left: 90%; animation-delay: 10s; }

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

.northern-lights, .stars { display: none; }

/* ============================================
   Slot Wrapper - Main Frame
   ============================================ */

.slot-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
    background:
        linear-gradient(180deg,
            rgba(75, 50, 30, 0.98) 0%,
            rgba(44, 24, 16, 0.99) 20%,
            rgba(30, 18, 12, 1) 50%,
            rgba(44, 24, 16, 0.99) 80%,
            rgba(75, 50, 30, 0.98) 100%
        );
    border-radius: 20px;
    padding: 0;
    overflow: hidden;

    /* Ornate border */
    border: 4px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 0 0 4px var(--gold-dark),
        0 0 0 8px var(--wood-dark),
        0 0 60px rgba(212, 175, 55, 0.3),
        inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.slot-wrapper::before {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}
h1 {
        margin: 0 0 0;
}
.slot-wrapper::after {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   Header - Title Banner
   ============================================ */

.game-header {
    background:
        linear-gradient(180deg,
            var(--gold-dark) 0%,
            var(--gold-main) 20%,
            var(--gold-bright) 50%,
            var(--gold-main) 80%,
            var(--gold-dark) 100%
        );
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    border-bottom: 3px solid var(--gold-shadow);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Decorative line pattern */
.game-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold-shadow) 10%,
        transparent 20%,
        transparent 80%,
        var(--gold-shadow) 90%,
        transparent 100%
    );
    transform: translateY(-50%);
}

.estonian-flag {
    width: 50px;
    height: 35px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    border: 2px solid var(--gold-shadow);
    flex-shrink: 0;
}

.flag-stripe {
    flex: 1;
}

.flag-stripe.blue { background: linear-gradient(180deg, #0072CE, #005ba8); }
.flag-stripe.black { background: linear-gradient(180deg, #1a1a1a, #000); }
.flag-stripe.white { background: linear-gradient(180deg, #fff, #e0e0e0); }

.game-title {
    text-align: center;
    position: relative;
    z-index: 1;
}

.title-text {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--wood-dark);
    text-shadow:
        1px 1px 0 var(--gold-bright),
        2px 2px 0 var(--gold-main),
        3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 6px;
    line-height: 1;
}

.title-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--wood-dark);
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 600;
    text-shadow: 1px 1px 0 var(--gold-bright);
}

/* ============================================
   Info Panel - Balance, Bet, Win
   ============================================ */

.info-panel {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.info-box {
    background:
        linear-gradient(180deg,
            rgba(212, 175, 55, 0.15) 0%,
            rgba(139, 69, 19, 0.2) 50%,
            rgba(212, 175, 55, 0.15) 100%
        );
    border: 2px solid var(--gold-dark);
    border-radius: 8px;
    padding: 8px 20px;
    text-align: center;
    min-width: 120px;
    position: relative;
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 3px 10px rgba(0, 0, 0, 0.3);
}

.info-label {
    display: block;
    font-size: 0.65rem;
    color: var(--gold-main);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-bright);
    text-shadow:
        0 0 10px var(--gold-glow),
        0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Cinzel', serif;
}


/* Win animation */
.win-box.winning {
    animation: winGlow 0.5s ease-in-out infinite alternate;
}

@keyframes winGlow {
    from {
        box-shadow:
            inset 0 2px 10px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.5);
        border-color: var(--gold-bright);
    }
    to {
        box-shadow:
            inset 0 2px 10px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(255, 215, 0, 0.8);
        border-color: #fff;
    }
}

/* ============================================
   Slot Machine - The Main Attraction
   ============================================ */

.slot-machine {
    padding: 0 0 20px;
        position: relative;
            margin: 0 -10px;
}

.slot-frame {
    position: relative;
    background:
        linear-gradient(180deg,
            var(--wood-dark) 0%,
            #1a0f08 10%,
            #0a0604 50%,
            #1a0f08 90%,
            var(--wood-dark) 100%
        );
    border-radius: 15px;
    padding: 20px;
    border: 5px solid var(--gold-dark);
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(212, 175, 55, 0.1);
    overflow: hidden;
}

/* Inner gold trim */
.slot-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    pointer-events: none;
}

.slot-glow {
    display: none;
}

/* Paylines */
/* Old static paylines - hidden, we use dynamic SVG now */
.paylines {
    display: none;
}

.payline {
    display: none;
}

.payline-1 { top: 25%; }
.payline-2 { top: 50%; }
.payline-3 { top: 75%; }

.payline.active {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold-bright) 20%,
        var(--gold-bright) 80%,
        transparent 100%
    );
    box-shadow:
        0 0 10px var(--gold-bright),
        0 0 20px var(--gold-glow);
    animation: paylineFlash 0.3s ease-in-out 5;
}

@keyframes paylineFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Reels Area - contains indicators and reels */
.reels-area {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

/* Line indicators (like Book of Ra) */
.line-indicators {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    width: 28px;
    flex-shrink: 0;
}

.line-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--gold-dark);
    background: linear-gradient(180deg, var(--wood-medium) 0%, var(--wood-dark) 100%);
    color: var(--gold-main);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.line-indicator:hover,
.line-indicator.active {
    background: linear-gradient(180deg, var(--gold-dark) 0%, var(--gold-main) 100%);
    color: var(--wood-dark);
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-glow);
}

.line-indicator.disabled {
    opacity: 0.4;
    cursor: pointer;
}

.line-indicator.disabled:hover {
    opacity: 0.7;
    background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood-medium) 100%);
    border-color: var(--gold-dark);
}

.line-indicators-left {
    margin-right: 5px;
}

.line-indicators-right {
    margin-left: 5px;
}

/* Reels Container */
.reels-container {
    display: flex;
    gap: 4px;
    justify-content: center;
    position: relative;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.5) 0%,
            transparent 5%,
            transparent 95%,
            rgba(0, 0, 0, 0.5) 100%
        );
    padding: 8px 4px;
    border-radius: 8px;
}

.reel {
    width: var(--symbol-size);
    height: var(--reel-height);
    background:
        linear-gradient(180deg,
            #0a0604 0%,
            #1a1209 20%,
            #252015 50%,
            #1a1209 80%,
            #0a0604 100%
        );
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        inset 0 5px 15px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--gold-shadow);
}

/* Reel inner glow */
.reel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.8) 0%,
            transparent 15%,
            transparent 85%,
            rgba(0, 0, 0, 0.8) 100%
        );
    z-index: 5;
    pointer-events: none;
}

/* Center line highlight */
.reel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: var(--symbol-size);
    transform: translateY(-50%);
    background:
        linear-gradient(180deg,
            transparent 0%,
            rgba(212, 175, 55, 0.05) 30%,
            rgba(212, 175, 55, 0.1) 50%,
            rgba(212, 175, 55, 0.05) 70%,
            transparent 100%
        );
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 4;
    pointer-events: none;
}

.reel-strip {
    display: flex;
    flex-direction: column;
    transition: transform 0.1s ease-out;
}

.symbol {
    width: var(--symbol-size);
    height: var(--symbol-size);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Estonian Flag Symbol */
.symbol.flag-symbol {
    font-size: inherit;
}

.estonian-flag-symbol {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.estonian-flag-symbol .stripe {
    height: 33.33%;
    width: 100%;
}

.estonian-flag-symbol .stripe.blue {
    background: linear-gradient(180deg, #0072CE 0%, #005AA7 100%);
}

.estonian-flag-symbol .stripe.black {
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
}

.estonian-flag-symbol .stripe.white {
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
}

.symbol.flag-symbol.winning .estonian-flag-symbol {
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--gold-bright);
}

.symbol.winning {
    animation: symbolWin 0.4s ease-in-out infinite;
    filter:
        drop-shadow(0 0 15px var(--gold-bright))
        drop-shadow(0 0 30px var(--gold-glow));
    z-index: 20;
}

/* Payline preview highlight */
.symbol.payline-highlight {
    background: radial-gradient(circle, var(--highlight-color, rgba(255, 215, 0, 0.3)) 0%, transparent 70%);
    filter: drop-shadow(0 0 8px var(--highlight-color, #FFD700));
    transition: all 0.15s ease-out;
}

@keyframes symbolWin {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(-3deg);
    }
    75% {
        transform: scale(1.15) rotate(3deg);
    }
}

/* Spinning blur effect */
.reel.spinning .reel-strip {
    animation: spinBlur 0.08s linear infinite;
}

.reel.spinning {
    filter: blur(0.5px);
}

@keyframes spinBlur {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(-1 * var(--symbol-size))); }
}

/* ============================================
   Controls - Spin Button
   ============================================ */

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding: 0 20px;
}

/* Hide mobile AUTO button on desktop */
.controls .auto-btn {
    display: none;
}

.spin-btn {
    position: relative;
    width: 220px;
    height: 70px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;

    /* Metallic gold gradient */
    background:
        linear-gradient(180deg,
            #f4e4a6 0%,
            #d4af37 15%,
            #aa8c2c 30%,
            #d4af37 50%,
            #f4e4a6 65%,
            #d4af37 80%,
            #996515 100%
        );

    box-shadow:
        0 6px 0 var(--gold-shadow),
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 2px 3px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.2);
}

.spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    border-radius: 12px;
}

.spin-text {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--wood-dark);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 8px;
}

.spin-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 9px 0 var(--gold-shadow),
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.4);
}

.spin-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 3px 0 var(--gold-shadow),
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 2px 3px rgba(255, 255, 255, 0.4);
}

.spin-btn:disabled {
    background: linear-gradient(180deg, #666 0%, #444 50%, #333 100%);
    box-shadow:
        0 4px 0 #222,
        0 6px 15px rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

.spin-btn:disabled .spin-text {
    color: #888;
    text-shadow: none;
}

/* Spinning state - desktop */
.spin-btn.spinning {
    background:
        linear-gradient(180deg,
            #ff9999 0%,
            #ee6666 15%,
            #cc4444 30%,
            #ee6666 50%,
            #ff9999 65%,
            #cc4444 80%,
            #aa3333 100%
        );
    box-shadow:
        0 6px 0 #882222,
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 100, 100, 0.4),
        inset 0 2px 3px rgba(255, 255, 255, 0.4);
}

.spin-btn.spinning .spin-text {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.spin-btn.spinning:hover {
    box-shadow:
        0 6px 0 #882222,
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(255, 100, 100, 0.6),
        inset 0 2px 3px rgba(255, 255, 255, 0.4);
}

.spin-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.auto-btn {
    width: 80px;
    height: 70px;
    border-radius: 12px;
    border: 3px solid var(--gold-dark);
    background: linear-gradient(180deg, var(--wood-medium) 0%, var(--wood-dark) 100%);
    color: var(--gold-main);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 0 #1a0f08,
        0 6px 15px rgba(0, 0, 0, 0.4);
}

.auto-btn:hover {
    background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood-medium) 100%);
    border-color: var(--gold-main);
}

.auto-btn.active {
    background: linear-gradient(180deg, var(--gold-dark) 0%, var(--gold-shadow) 100%);
    color: var(--wood-dark);
    border-color: var(--gold-bright);
}

/* Bottom controls bar */
.bottom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--gold-dark);
    background: linear-gradient(180deg, var(--wood-medium) 0%, var(--wood-dark) 100%);
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.control-btn:hover {
    background: linear-gradient(180deg, var(--gold-dark) 0%, var(--gold-shadow) 100%);
    border-color: var(--gold-main);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.auto-btn {
    width: auto;
    padding: 0 15px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.control-btn.auto-btn.active {
    background: linear-gradient(180deg, var(--gold-main) 0%, var(--gold-dark) 100%);
    color: var(--wood-dark);
}

.control-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.control-label {
    font-size: 0.5rem;
    color: var(--gold-main);
    letter-spacing: 1px;
    opacity: 0.8;
}

.control-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold-bright);
    text-shadow: 0 0 8px var(--gold-glow);
}

/* Spin icon (for mobile round button) */
.spin-icon {
    display: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--wood-dark);
}

/* ============================================
   Paytable
   ============================================ */

.paytable {
    margin: 25px 20px;
    background:
        linear-gradient(180deg,
            rgba(212, 175, 55, 0.1) 0%,
            rgba(139, 69, 19, 0.15) 50%,
            rgba(212, 175, 55, 0.1) 100%
        );
    border: 2px solid var(--gold-dark);
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.paytable h3 {
    text-align: center;
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--gold-glow);
}

.paytable-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pay-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    min-width: 90px;
}

.pay-item:hover {
    border-color: var(--gold-main);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.pay-item.wild {
    border-color: var(--gold-main);
    background:
        linear-gradient(180deg,
            rgba(212, 175, 55, 0.2) 0%,
            rgba(212, 175, 55, 0.1) 100%
        );
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.pay-symbol {
    font-size: 2.2rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Mini flag for paytable */
.pay-symbol.flag-pay {
    font-size: inherit;
}

.mini-flag {
    width: 36px;
    height: 26px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.mini-flag .stripe {
    flex: 1;
    width: 100%;
}

.mini-flag .stripe.blue {
    background: linear-gradient(180deg, #0072CE 0%, #005AA7 100%);
}

.mini-flag .stripe.black {
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
}

.mini-flag .stripe.white {
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
}

.pay-name {
    font-size: 0.6rem;
    color: rgba(212, 175, 55, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.pay-value {
    font-size: 1rem;
    color: var(--gold-bright);
    font-weight: 800;
    text-shadow: 0 0 8px var(--gold-glow);
}

/* ============================================
   Prize Section
   ============================================ */

.prize-section {
    padding: 0 20px 25px;
    text-align: center;
}

.prize-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(34, 197, 94, 0.15) 20%,
            rgba(34, 197, 94, 0.2) 50%,
            rgba(34, 197, 94, 0.15) 80%,
            transparent 100%
        );
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.prize-icon {
    font-size: 1.8rem;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

.prize-text {
    display: flex;
    flex-direction: column;
}

.prize-title {
    font-size: 0.9rem;
    color: #4ade80;
    font-weight: 600;
    letter-spacing: 1px;
}

.prize-amount {
    font-size: 1.4rem;
    color: var(--gold-bright);
    font-weight: 800;
    text-shadow: 0 0 15px var(--gold-glow);
}

.game-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.counter-value {
    color: var(--estonian-blue);
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================
   Modal
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background:
        linear-gradient(180deg,
            rgba(75, 50, 30, 0.98) 0%,
            rgba(44, 24, 16, 0.99) 50%,
            rgba(75, 50, 30, 0.98) 100%
        );
    border: 4px solid var(--gold-main);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.4),
        0 0 100px rgba(212, 175, 55, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.5s ease-out;
}

@keyframes modalPop {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.winner-content {
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle, var(--gold-bright) 2px, transparent 2px),
        radial-gradient(circle, #22c55e 2px, transparent 2px),
        radial-gradient(circle, var(--estonian-blue) 2px, transparent 2px);
    background-size: 60px 60px, 80px 80px, 70px 70px;
    background-position: 0 0, 30px 30px, 15px 45px;
    animation: confettiFall 2s linear infinite;
    opacity: 0.6;
}

@keyframes confettiFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.winner-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: celebrate 0.5s ease-in-out infinite alternate;
}

@keyframes celebrate {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

.modal-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold-bright);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--gold-glow);
}

.winner-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.prize-display {
    margin-bottom: 25px;
}

.prize-amount-big {
    font-size: 2.8rem;
    font-weight: 900;
    color: #4ade80;
    text-shadow:
        0 0 20px rgba(34, 197, 94, 0.6),
        0 0 40px rgba(34, 197, 94, 0.4);
}

.wallet-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-form label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.wallet-form input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid var(--gold-dark);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 0.95rem;
    font-family: monospace;
    transition: all 0.3s ease;
}

.wallet-form input:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.wallet-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.claim-btn {
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow:
        0 4px 0 #15803d,
        0 6px 20px rgba(34, 197, 94, 0.4);
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #15803d,
        0 10px 30px rgba(34, 197, 94, 0.5);
}

.claim-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #15803d,
        0 4px 15px rgba(34, 197, 94, 0.4);
}

.terms {
    margin-top: 15px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   Notification
   ============================================ */

.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: linear-gradient(90deg, #22c55e, #16a34a);
    padding: 15px 30px;
    border-radius: 12px;
    display: flex;
    visibility: hidden;
    opacity: 0;
    align-items: center;
    gap: 12px;
    box-shadow:
        0 10px 40px rgba(34, 197, 94, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    opacity: 1;
}

.notif-icon {
    width: 28px;
    height: 28px;
    background: white;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.notif-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 768px) {
    :root {
        --symbol-size: 70px;
        --reel-height: 210px;
    }

    .slot-wrapper {
        border-radius: 15px;
        box-shadow:
            0 0 0 3px var(--gold-dark),
            0 0 0 6px var(--wood-dark),
            0 0 40px rgba(212, 175, 55, 0.2);
        overflow: visible;
    }

    .game-header {
        padding: 10px 15px;
    }

    .title-text {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .title-sub {
        font-size: 0.65rem;
        letter-spacing: 4px;
    }

    .estonian-flag {
        width: 32px;
        height: 22px;
    }

    .info-panel {
        gap: 10px;
        padding: 10px 12px;
    }

    .info-box {
        padding: 6px 15px;
        min-width: auto;
        border-radius: 8px;
    }

    .info-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .info-value {
        font-size: 1.1rem;
    }

    .symbol {
        font-size: 42px;
        line-height: var(--symbol-size);
    }

    .line-indicators {
        width: 24px;
    }

    .line-indicator {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }

    .reels-container {
        gap: 3px;
        padding: 6px 3px;
    }

    .reel {
        border-width: 2px;
    }

    .slot-frame {
        padding: 12px;
        border-width: 4px;
    }

    .spin-btn {
        width: 140px;
        height: 55px;
    }

    .spin-text {
        font-size: 1.3rem;
        letter-spacing: 4px;
    }

    .bottom-controls {
        gap: 6px;
        padding: 12px 15px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .control-display {
        min-width: 55px;
        padding: 4px 8px;
    }

    .control-label {
        font-size: 0.45rem;
    }

    .control-value {
        font-size: 0.95rem;
    }

    .paytable {
        margin: 15px 15px;
        padding: 15px;
    }

    .paytable h3 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .paytable-items {
        gap: 6px;
    }

    .pay-item {
        padding: 8px 10px;
        min-width: 70px;
    }

    .pay-symbol {
        font-size: 1.6rem;
    }

    .pay-name {
        font-size: 0.5rem;
    }

    .pay-value {
        font-size: 0.85rem;
    }

    .prize-section {
        padding: 0 15px 15px;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 520px) {
    :root {
        --symbol-size: 54px;
        --reel-height: 162px;
    }

    html, body {
        overflow-x: hidden;
    }

    .game-container {
        padding: 5px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .slot-wrapper {
        border-radius: 12px;
        box-shadow:
            0 0 0 2px var(--gold-dark),
            0 0 0 4px var(--wood-dark),
            0 0 30px rgba(212, 175, 55, 0.15);
    }

    .slot-wrapper::before,
    .slot-wrapper::after {
        font-size: 16px;
    }

    .game-header {
        padding: 8px 10px;
        gap: 8px;
    }

    .estonian-flag {
        width: 28px;
        height: 18px;
        border-width: 1px;
    }

    .title-text {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .title-sub {
        font-size: 0.55rem;
        letter-spacing: 2px;
        margin-top: 0;
    }

    /* Info panel */
    .info-panel {
        gap: 10px;
        padding: 8px 10px;
    }

    .info-box {
        flex: 1;
        padding: 6px 10px;
        min-width: auto;
        border-radius: 6px;
    }

    .info-label {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .info-value {
        font-size: 1.1rem;
    }

    /* Slot frame */
    .slot-frame {
        padding: 8px;
        border-width: 3px;
        border-radius: 10px;
    }

    .slot-frame::before {
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: 4px;
        border-width: 1px;
    }

    /* Line indicators */
    .line-indicators {
        width: 22px;
        padding: 6px 0;
    }

    .line-indicator {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
        border-width: 1.5px;
    }

    .line-indicators-left {
        margin-right: 3px;
    }

    .line-indicators-right {
        margin-left: 3px;
    }

    /* Reels */
    .reels-container {
        gap: 2px;
        padding: 4px 2px;
        border-radius: 6px;
    }

    .reel {
        border-width: 2px;
        border-radius: 4px;
    }

    .symbol {
        font-size: 32px;
        line-height: var(--symbol-size);
    }

    /* Smaller Estonian flag on mobile */
    .estonian-flag-symbol {
        width: 40px;
        height: 28px;
        border-radius: 4px;
        border-width: 1.5px;
    }

    .reel::after {
        border-width: 1px;
    }

    /* Controls */
    .controls {
        margin-top: 12px;
        padding: 0;
        gap: 12px;
    }

    /* Mobile AUTO button - next to SPIN */
    .controls .auto-btn {
        display: flex;
        width: 65px;
        height: 65px;
        border-radius: 50%;
        font-size: 0.55rem;
        letter-spacing: 0;
        padding: 0;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-shadow: 0 3px 0 var(--gold-shadow), 0 5px 12px rgba(0, 0, 0, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.4);
    }
 
    .controls .auto-btn.active {
        background: linear-gradient(180deg, var(--gold-main) 0%, var(--gold-dark) 100%);
        color: var(--wood-dark);
        box-shadow:
            0 3px 0 var(--gold-shadow),
            0 5px 12px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(255, 215, 0, 0.4);
    }

    /* Round spin button */
    .spin-btn {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-shadow:
            0 3px 0 var(--gold-shadow),
            0 5px 12px rgba(0, 0, 0, 0.5),
            inset 0 2px 3px rgba(255, 255, 255, 0.4);
    }

    .spin-text {
        display: none;
    }

    .spin-icon {
        display: block;
        font-size: 1.8rem;
        line-height: 1;
        transition: all 0.3s ease;
    }

    /* Spinning state - pulsing red STOP button */
    .spin-btn.spinning {
        background:
            linear-gradient(180deg,
                #ff6b6b 0%,
                #ee5a5a 15%,
                #cc4444 30%,
                #ee5a5a 50%,
                #ff6b6b 65%,
                #cc4444 80%,
                #aa3333 100%
            );
        animation: spinBtnPulse 0.6s ease-in-out infinite;
        box-shadow:
            0 3px 0 #882222,
            0 5px 12px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 100, 100, 0.5),
            inset 0 2px 3px rgba(255, 255, 255, 0.3);
    }

    .spin-btn.spinning .spin-icon {
        opacity: 0;
    }

    .spin-btn.spinning::after {
        content: '⏹';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    }

    @keyframes spinBtnPulse {
        0%, 100% {
            transform: scale(1);
            box-shadow:
                0 3px 0 #882222,
                0 5px 12px rgba(0, 0, 0, 0.5),
                0 0 15px rgba(255, 100, 100, 0.4),
                inset 0 2px 3px rgba(255, 255, 255, 0.3);
        }
        50% {
            transform: scale(1.05);
            box-shadow:
                0 3px 0 #882222,
                0 5px 12px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(255, 100, 100, 0.7),
                inset 0 2px 3px rgba(255, 255, 255, 0.3);
        }
    }

    .spin-btn:active {
        transform: scale(0.95);
    }

    .spin-btn.spinning:active {
        animation: none;
        transform: scale(0.9);
    }

    .spin-glow {
        display: none;
    }

    /* Bottom controls */
    .bottom-controls {
        gap: 3px;
        padding: 10px 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .control-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        font-size: 0.9rem;
        border-width: 1.5px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Hide AUTO in bottom controls on mobile - it's now in .controls */
    .bottom-controls .auto-btn {
        display: none;
    }

    .control-display {
        min-width: 45px;
        padding: 4px 6px;
    }

    .control-label {
        font-size: 0.4rem;
    }

    .control-value {
        font-size: 0.85rem;
    }

    /* Compact paytable */
    .paytable {
        margin: 12px 10px;
        padding: 12px;
        border-radius: 8px;
    }

    .paytable h3 {
        font-size: 0.75rem;
        letter-spacing: 3px;
        margin-bottom: 8px;
    }

    .paytable-items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .pay-item {
        padding: 6px 4px;
        min-width: auto;
        border-radius: 5px;
    }

    .pay-symbol {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .pay-name {
        font-size: 0.45rem;
        letter-spacing: 0;
    }

    .pay-value {
        font-size: 0.7rem;
    }

    /* Prize section */
    .prize-section {
        padding: 0 10px 15px;
    }

    .prize-banner {
        padding: 12px 15px;
        border-radius: 8px;
        gap: 8px;
    }

    .prize-icon {
        font-size: 1.4rem;
    }

    .prize-title {
        font-size: 0.75rem;
    }

    .prize-amount {
        font-size: 1.1rem;
    }

    /* Modal adjustments */
    .modal-content {
        padding: 25px 20px;
        border-radius: 15px;
        border-width: 3px;
        max-width: 95%;
    }

    .winner-icon {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .prize-amount-big {
        font-size: 2rem;
    }

    .wallet-form input {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .claim-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .close-modal {
        width: 30px;
        height: 30px;
        top: 10px;
        right: 10px;
    }

    /* Notification */
    .notification {
        bottom: 20px;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Responsive - Very small screens
   ============================================ */

@media (max-width: 380px) {
    :root {
        --symbol-size: 46px;
        --reel-height: 138px;
    }

    .game-container {
        padding: 3px;
    }

    .game-header {
        padding: 6px 8px;
        gap: 6px;
    }

    .title-text {
        font-size: 1.1rem;
    }

    .title-sub {
        font-size: 0.45rem;
    }

    .estonian-flag {
        width: 22px;
        height: 17px;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .symbol {
        font-size: 26px;
        line-height: var(--symbol-size);
    }

    /* Even smaller flag on very small screens */
    .estonian-flag-symbol {
        width: 32px;
        height: 22px;
        border-radius: 3px;
        border-width: 1px;
    }

    .line-indicators {
        width: 18px;
    }

    .line-indicator {
        width: 16px;
        height: 16px;
        font-size: 0.45rem;
    }

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

    .spin-icon {
        font-size: 1.5rem;
    }

    /* Mobile AUTO button - smaller on very small screens */
    .controls .auto-btn {
        width: 42px;
        height: 42px;
        font-size: 0.5rem;
    }

    .control-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .control-display {
        min-width: 36px;
        padding: 2px 4px;
    }

    .control-value {
        font-size: 0.7rem;
    }

    .control-label {
        font-size: 0.35rem;
    }

    .paytable-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .prize-section {
        padding: 0 8px 10px;
    }

    .prize-banner {
        padding: 8px 10px;
    }

    .prize-title {
        font-size: 0.65rem;
    }

    .prize-amount {
        font-size: 0.95rem;
    }
}

/* ============================================
   Landscape mobile optimization
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .game-container {
        padding: 5px;
        align-items: flex-start;
    }

    .slot-wrapper {
        max-width: 700px;
    }

    :root {
        --symbol-size: 50px;
        --reel-height: 150px;
    }

    .game-header {
        padding: 6px 12px;
    }

    .title-text {
        font-size: 1.2rem;
    }

    .info-panel {
        padding: 6px;
    }

    .info-box {
        padding: 4px 10px;
    }

    .info-value {
        font-size: 0.95rem;
    }

    .slot-frame {
        padding: 8px;
    }

    .line-indicators {
        width: 20px;
    }

    .line-indicator {
        width: 18px;
        height: 18px;
        font-size: 0.5rem;
    }

    .controls {
        margin-top: 8px;
    }

    .spin-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .spin-text {
        display: none;
    }

    .spin-icon {
        display: block;
        font-size: 1.5rem;
    }

    .symbol {
        font-size: 28px;
        line-height: var(--symbol-size);
    }

    .bottom-controls {
        padding: 6px;
        gap: 4px;
    }

    .control-btn {
        width: 30px;
        height: 30px;
    }

    .control-display {
        min-width: 40px;
        padding: 3px 6px;
    }

    .paytable {
        display: none;
    }

    .prize-section {
        display: none;
    }
}

/* ============================================
   Touch device optimizations
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .control-btn {
        min-width: 32px;
        min-height: 32px;
    }

    .spin-btn {
        min-width: 55px;
        min-height: 55px;
    }

    .line-indicator {
        min-width: 20px;
        min-height: 20px;
    }

    /* Remove hover effects that don't work on touch */
    .spin-btn:hover,
    .control-btn:hover,
    .line-indicator:hover,
    .pay-item:hover {
        transform: none;
    }
}

/* ============================================
   Embed mode (for iframe/shortcode)
   ============================================ */

.embed-mode .game-container {
    min-height: auto;
    padding: 10px;
}

.embed-mode .slot-wrapper {
    max-width: 100%;
}

.embed-mode .bg-animation {
    display: none;
}
