/* ========================================
   DESERT FORTUNE - SLOT MACHINE
   ======================================== */

/* === TYPOGRAPHY (Syne) === */
/* All text uses Syne font from theme.css */

/* Game Title - Hauptüberschrift */
.game-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* Info Labels */
.info-label {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Info Values (Balance, Win, etc.) */
.info-value {
    font-weight: 600;
}

/* Control Labels */
.control-label {
    letter-spacing: 0.05em;
}

/* Spin Button Text */
.spin-text {
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Bet/Lines Values */
.bet-value,
.lines-btn {
    font-weight: 600;
}

/* Paytable Headings */
.paytable-title,
.paytable h2,
.paytable h3 {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Freespin Overlay */
.freespin-title,
.bigwin-title {
    font-weight: 800;
    letter-spacing: 0.1em;
}

/* Demo Badge */
.demo-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 9999px;
    color: #ff4757;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === SLOT CONTAINER === */
.slot-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 45px 40px 25px;
    max-width: calc(100vh * 0.85);
    width: 100%;
    position: relative;
    aspect-ratio: 4 / 3.2;

    /* Background Image */
    background: url('../assets/symbols/backround.png') center center / 100% 100% no-repeat;

    border: none;

    box-shadow:
        /* Outer gold glow */
        0 0 30px rgba(212, 175, 55, 0.3);
}

/* Large Desktop - more space for side panel */
@media (min-width: 1400px) {
    .slot-container {
        max-width: min(750px, calc(100vh * 0.9));
        padding: 55px 50px 30px;
    }
}

/* Medium Desktop */
@media (max-width: 1200px) {
    .slot-container {
        max-width: min(600px, calc(100vh * 0.8));
        padding: 40px 35px 20px;
    }
}

/* When side panel is hidden on smaller screens */
@media (max-width: 1024px) {
    .slot-container {
        max-width: min(650px, 90vw, calc(100vh * 0.75));
        padding: 35px 30px 20px;
    }
}

/* Egyptian Corner Ornaments - disabled since background image has its own frame */
/*
.slot-container::before,
.slot-container::after {
    content: '𓂀';
    position: absolute;
    font-size: 24px;
    color: rgba(212, 175, 55, 0.6);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    z-index: 10;
}

.slot-container::before {
    top: 8px;
    left: 12px;
}

.slot-container::after {
    top: 8px;
    right: 12px;
    transform: scaleX(-1);
}
*/

/* === INFO BAR === */
.slot-info-bar {
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) var(--space-md);
    background:
        linear-gradient(90deg,
            rgba(212, 175, 55, 0.1) 0%,
            rgba(0, 0, 0, 0.4) 20%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.4) 80%,
            rgba(212, 175, 55, 0.1) 100%
        );
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.info-label {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--color-accent-gold);
}

.win-display {
    color: var(--color-success);
}

.freespin-display {
    color: var(--color-primary);
}

.freespin-win-item {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.2) 100%);
    border: 1px solid var(--color-success);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
}

.freespin-win-value {
    color: var(--color-success) !important;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

/* === SLOT FRAME WRAPPER === */
.slot-frame-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* === PAYLINE MARKERS === */
.payline-markers {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
    width: 24px;
    flex-shrink: 0;
}

.payline-markers-left {
    padding-right: 2px;
}

.payline-markers-right {
    padding-left: 2px;
}

.payline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Payline Colors */
.payline-marker[data-line="1"] { background: #e53935; color: white; }
.payline-marker[data-line="2"] { background: #1e88e5; color: white; }
.payline-marker[data-line="3"] { background: #00acc1; color: white; }
.payline-marker[data-line="4"] { background: #fdd835; color: #333; }
.payline-marker[data-line="5"] { background: #43a047; color: white; }
.payline-marker[data-line="6"] { background: #fb8c00; color: white; }
.payline-marker[data-line="7"] { background: #8e24aa; color: white; }
.payline-marker[data-line="8"] { background: #6d4c41; color: white; }
.payline-marker[data-line="9"] { background: #546e7a; color: white; }
.payline-marker[data-line="10"] { background: #ec407a; color: white; }

/* Inactive state */
.payline-marker.inactive {
    background: #444 !important;
    color: #888 !important;
    opacity: 0.6;
}

/* Hover state for preview */
.payline-marker:not(.inactive) {
    cursor: pointer;
}

.payline-marker:not(.inactive):hover {
    transform: scale(1.15);
    box-shadow: 0 0 8px currentColor;
}

/* Payline Preview */
.payline-preview {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.payline-preview-line {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.payline-preview-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.payline-preview-connector {
    position: absolute;
    height: 4px;
    transform-origin: left center;
    box-shadow: 0 0 8px currentColor;
}

/* === SLOT FRAME === */
.slot-frame {
    position: relative;
    flex: 1;
    background:
        /* Subtle papyrus texture effect */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(139, 90, 43, 0.03) 2px,
            rgba(139, 90, 43, 0.03) 4px
        ),
        /* Main gradient */
        linear-gradient(180deg,
            rgba(40, 25, 15, 0.9) 0%,
            rgba(15, 10, 20, 0.95) 20%,
            rgba(10, 5, 15, 0.98) 80%,
            rgba(40, 25, 15, 0.9) 100%
        );
    border: 4px solid;
    border-image: linear-gradient(135deg,
        #FFD700 0%,
        #D4AF37 20%,
        #8B6914 40%,
        #D4AF37 60%,
        #FFD700 80%,
        #D4AF37 100%
    ) 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        /* Outer gold glow */
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2),
        /* Inner depth */
        inset 0 0 40px rgba(0, 0, 0, 0.7),
        inset 0 0 80px rgba(139, 90, 43, 0.1);
}

/* Hieroglyphic side decorations */
.slot-frame::before,
.slot-frame::after {
    content: '𓃭 𓆣 𓃀';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(212, 175, 55, 0.2);
    writing-mode: vertical-rl;
    letter-spacing: 8px;
    pointer-events: none;
    z-index: 5;
}

.slot-frame::before {
    left: 4px;
}

.slot-frame::after {
    right: 4px;
    content: '𓅃 𓁹 𓃠';
}

#slot-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
}

.paylines-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.payline {
    position: absolute;
    height: 3px;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payline.active {
    opacity: 1;
    animation: payline-flash 0.5s ease infinite;
}

@keyframes payline-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === CONTROLS === */
.slot-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding: var(--space-sm) var(--space-md);
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(139, 90, 43, 0.15) 10%,
            rgba(212, 175, 55, 0.1) 50%,
            rgba(139, 90, 43, 0.15) 90%,
            transparent 100%
        );
    border-radius: var(--radius-lg);
    position: relative;
}

/* Egyptian decorative line above controls */
.slot-controls::before {
    content: '𓃭 ─────── 𓆣 ─────── 𓃭';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(212, 175, 55, 0.5);
    letter-spacing: 2px;
    white-space: nowrap;
}

.control-label {
    display: block;
    font-size: var(--font-xs);
    color: rgba(212, 175, 55, 0.8);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* === BET CONTROLS === */
.bet-section, .lines-section, .auto-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.bet-btn {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    background:
        linear-gradient(145deg,
            rgba(40, 25, 15, 0.9) 0%,
            rgba(20, 12, 8, 0.95) 100%
        );
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-md);
    color: var(--color-accent-gold);
    font-size: var(--font-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.bet-btn:hover, .bet-btn:focus {
    background:
        linear-gradient(145deg,
            rgba(60, 40, 20, 0.9) 0%,
            rgba(30, 18, 10, 0.95) 100%
        );
    border-color: var(--color-accent-gold);
    box-shadow:
        0 0 15px rgba(212, 175, 55, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.3);
}

.bet-btn:active {
    transform: scale(0.95);
}

.bet-value {
    min-width: 60px;
    text-align: center;
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--color-accent-gold);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* === LINES TOGGLE === */
.lines-toggle {
    display: flex;
    gap: var(--space-xs);
}

.lines-btn {
    min-width: var(--touch-target-min);
    height: var(--touch-target-min);
    padding: 0 var(--space-md);
    background:
        linear-gradient(145deg,
            rgba(40, 25, 15, 0.9) 0%,
            rgba(20, 12, 8, 0.95) 100%
        );
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    color: rgba(212, 175, 55, 0.7);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.lines-btn.active {
    background:
        linear-gradient(145deg,
            rgba(139, 90, 43, 0.6) 0%,
            rgba(80, 50, 25, 0.8) 100%
        );
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
    box-shadow:
        0 0 15px rgba(212, 175, 55, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.lines-btn:hover:not(.active):not(:disabled) {
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
}

.lines-btn:disabled,
.bet-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* === SPIN BUTTON - Egyptian Gold Style === */
.spin-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(70px, 8vh, 95px);
    height: clamp(70px, 8vh, 95px);
    background:
        /* Hauptglanz - oben links wie im Bild */
        radial-gradient(ellipse 80% 50% at 35% 25%,
            rgba(255, 245, 180, 0.95) 0%,
            rgba(255, 215, 100, 0.6) 30%,
            transparent 70%
        ),
        /* Sekundärer Glanz - unten */
        radial-gradient(ellipse 60% 30% at 50% 85%,
            rgba(255, 200, 100, 0.4) 0%,
            transparent 60%
        ),
        /* Warme goldene Basis wie im Bild */
        radial-gradient(circle at 50% 50%,
            #F5C542 0%,
            #D4A535 30%,
            #C4922A 50%,
            #B8862B 70%,
            #9A6B20 100%
        );
    border: 5px solid #8B5A1B;
    border-radius: 50%;
    color: #4A2C0A;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow:
        /* Äußerer Glow */
        0 0 30px rgba(255, 180, 50, 0.6),
        0 0 60px rgba(212, 165, 53, 0.3),
        /* 3D Tiefe */
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3),
        /* Innerer Glanz */
        inset 0 3px 20px rgba(255, 245, 200, 0.7),
        inset 0 -5px 15px rgba(120, 70, 20, 0.5),
        inset 3px 0 10px rgba(255, 220, 150, 0.3),
        inset -3px 0 10px rgba(100, 60, 10, 0.3);
    text-shadow:
        0 1px 0 rgba(255, 230, 150, 0.8),
        0 -1px 2px rgba(80, 50, 10, 0.3);
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Äußerer dekorativer Ring - wie der verzierte Rahmen im Bild */
.spin-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background:
        /* Goldener Ring mit Textur */
        conic-gradient(
            from 0deg,
            #C9942A 0deg,
            #E8C455 30deg,
            #A67820 60deg,
            #DDB84A 90deg,
            #9A6B20 120deg,
            #E8C455 150deg,
            #C9942A 180deg,
            #E8C455 210deg,
            #A67820 240deg,
            #DDB84A 270deg,
            #9A6B20 300deg,
            #E8C455 330deg,
            #C9942A 360deg
        );
    z-index: -2;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(212, 165, 53, 0.5);
}

/* Innerer Schatten-Ring für 3D Effekt */
.spin-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        #6B4513 0%,
        #8B5A2B 30%,
        #5C3D10 70%,
        #4A2C0A 100%
    );
    z-index: -1;
    box-shadow: inset 0 2px 5px rgba(255, 200, 100, 0.3);
}

/* Sanftes Pulsieren des Glows */
.spin-btn {
    animation: egyptian-glow 3s ease-in-out infinite;
}

@keyframes egyptian-glow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(255, 180, 50, 0.6),
            0 0 60px rgba(212, 165, 53, 0.3),
            0 8px 20px rgba(0, 0, 0, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.3),
            inset 0 3px 20px rgba(255, 245, 200, 0.7),
            inset 0 -5px 15px rgba(120, 70, 20, 0.5),
            inset 3px 0 10px rgba(255, 220, 150, 0.3),
            inset -3px 0 10px rgba(100, 60, 10, 0.3);
    }
    50% {
        box-shadow:
            0 0 50px rgba(255, 200, 80, 0.8),
            0 0 90px rgba(232, 196, 85, 0.5),
            0 8px 20px rgba(0, 0, 0, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.3),
            inset 0 3px 25px rgba(255, 250, 210, 0.85),
            inset 0 -5px 15px rgba(120, 70, 20, 0.5),
            inset 3px 0 10px rgba(255, 220, 150, 0.3),
            inset -3px 0 10px rgba(100, 60, 10, 0.3);
    }
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow:
        0 0 60px rgba(255, 200, 80, 0.9),
        0 0 100px rgba(232, 196, 85, 0.6),
        0 10px 25px rgba(0, 0, 0, 0.5),
        0 5px 10px rgba(0, 0, 0, 0.3),
        inset 0 3px 25px rgba(255, 250, 220, 0.9),
        inset 0 -5px 15px rgba(120, 70, 20, 0.4),
        inset 3px 0 10px rgba(255, 220, 150, 0.4),
        inset -3px 0 10px rgba(100, 60, 10, 0.2);
}

.spin-btn:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow:
        0 0 30px rgba(255, 180, 50, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.4),
        inset 0 3px 15px rgba(255, 245, 200, 0.6),
        inset 0 -3px 10px rgba(120, 70, 20, 0.6);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: saturate(0.5);
}

.spin-btn:disabled,
.spin-btn:disabled::before,
.spin-btn:disabled::after {
    animation: none !important;
}

.spin-btn.spinning {
    animation: spin-pulse-egyptian 0.6s ease-in-out infinite;
}

@keyframes spin-pulse-egyptian {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(255, 190, 60, 0.7),
            0 0 70px rgba(212, 165, 53, 0.4),
            0 8px 20px rgba(0, 0, 0, 0.5),
            inset 0 3px 20px rgba(255, 245, 200, 0.7),
            inset 0 -5px 15px rgba(120, 70, 20, 0.5);
    }
    50% {
        box-shadow:
            0 0 60px rgba(255, 210, 100, 0.9),
            0 0 100px rgba(232, 196, 85, 0.6),
            0 8px 20px rgba(0, 0, 0, 0.5),
            inset 0 3px 25px rgba(255, 250, 220, 0.9),
            inset 0 -5px 15px rgba(120, 70, 20, 0.4);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .spin-btn {
        animation: none !important;
    }
}

.spin-text {
    font-size: var(--font-lg);
}

.spin-cost {
    font-size: var(--font-xs);
    opacity: 0.8;
}

/* === AUTO SPIN === */
.auto-btn {
    min-width: 60px;
    height: var(--touch-target-min);
    padding: 0 var(--space-md);
    background:
        linear-gradient(145deg,
            rgba(40, 25, 15, 0.9) 0%,
            rgba(20, 12, 8, 0.95) 100%
        );
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    color: rgba(212, 175, 55, 0.7);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.auto-btn:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
}

.auto-btn.active {
    background:
        linear-gradient(145deg,
            rgba(20, 100, 60, 0.6) 0%,
            rgba(10, 60, 35, 0.8) 100%
        );
    border-color: var(--color-success);
    color: var(--color-success);
    box-shadow:
        0 0 15px rgba(20, 241, 149, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(20, 241, 149, 0.2);
    text-shadow: 0 0 8px rgba(20, 241, 149, 0.5);
}

.auto-count {
    font-size: var(--font-xs);
    color: rgba(212, 175, 55, 0.6);
    margin-top: var(--space-xs);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* === TEST BUTTON === */
.test-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test-btn {
    min-width: 50px;
    height: 36px;
    padding: 0 var(--space-sm);
    background:
        linear-gradient(145deg,
            rgba(20, 80, 40, 0.8) 0%,
            rgba(10, 50, 25, 0.9) 100%
        );
    border: 2px solid rgba(20, 241, 149, 0.5);
    border-radius: var(--radius-sm);
    color: var(--color-success);
    font-size: var(--font-xs);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(20, 241, 149, 0.2);
}

.test-btn:hover {
    background:
        linear-gradient(145deg,
            rgba(30, 120, 60, 0.8) 0%,
            rgba(15, 70, 35, 0.9) 100%
        );
    border-color: var(--color-success);
    box-shadow:
        0 0 15px rgba(20, 241, 149, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

.test-btn:active {
    transform: scale(0.95);
}

/* === FREESPIN WIN SECTION (Control Bar) === */
.freespin-win-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.25) 0%, rgba(39, 174, 96, 0.25) 100%);
    border: 2px solid var(--color-success);
    border-radius: var(--radius-md);
    box-shadow:
        0 0 15px rgba(46, 204, 113, 0.3),
        inset 0 1px 0 rgba(46, 204, 113, 0.2);
    animation: fs-win-pulse 1.5s ease-in-out infinite;
}

@keyframes fs-win-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(46, 204, 113, 0.3), inset 0 1px 0 rgba(46, 204, 113, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(46, 204, 113, 0.5), inset 0 1px 0 rgba(46, 204, 113, 0.3);
    }
}

.freespin-win-section .control-label {
    font-size: var(--font-xs);
    color: rgba(46, 204, 113, 0.8);
}

.freespin-total-value {
    font-size: var(--font-lg);
    font-weight: 800;
    color: var(--color-success);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    transition: transform 0.15s ease, text-shadow 0.15s ease;
}

.freespin-total-value.win-flash {
    transform: scale(1.3);
    text-shadow: 0 0 25px rgba(46, 204, 113, 1), 0 0 50px rgba(46, 204, 113, 0.7);
}

/* === WIN ANIMATION === */
.slot-container.winning {
    animation: win-glow 0.5s ease;
}

@keyframes win-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(153, 69, 255, 0.3); }
    50% { box-shadow: 0 0 60px rgba(20, 241, 149, 0.6); }
}

/* === LARGE DESKTOP STYLES === */
@media (min-width: 1200px) {
    .slot-info-bar {
        padding: var(--space-md);
    }

    .info-value {
        font-size: var(--font-xl);
    }

    .slot-controls {
        gap: var(--space-lg);
        padding: var(--space-md) var(--space-lg);
    }
}

@media (min-width: 1600px) {
    .spin-btn {
        width: 100px;
        height: 100px;
    }
}

/* === MOBILE STYLES === */
@media (max-width: 600px) {
    .slot-container {
        padding: var(--space-md);
    }

    .slot-info-bar {
        padding: var(--space-sm);
    }

    .info-value {
        font-size: var(--font-lg);
    }

    .slot-controls {
        gap: var(--space-md);
    }

    .spin-btn {
        width: 80px;
        height: 80px;
    }

    .spin-text {
        font-size: var(--font-base);
    }
}

@media (max-width: 400px) {
    .slot-controls {
        gap: var(--space-sm);
    }

    .bet-section, .lines-section {
        flex: 1;
    }

    .auto-section {
        order: 1;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-md);
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
    .game-header {
        padding: var(--space-xs) var(--space-md);
    }

    .game-main {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .slot-container {
        padding: var(--space-sm);
        gap: var(--space-sm);
        max-width: 90%;
    }

    .slot-info-bar {
        padding: var(--space-xs);
    }

    .spin-btn {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   PREMIUM GAME FEEL ADDITIONS
   ======================================== */

/* === BUTTON ANIMATIONS === */
.bet-btn,
.lines-btn,
.auto-btn,
.spin-btn,
.toggle-btn {
    transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.touch-active {
    transform: scale(0.92) !important;
}

/* === SHAKE ANIMATION === */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* === WIN GLOW PULSE === */
.slot-container.winning .slot-frame {
    animation: frame-glow 0.5s ease-out 3;
}

@keyframes frame-glow {
    0% { 
        box-shadow: 
            inset 0 0 30px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(212, 175, 55, 0.4);
    }
    50% { 
        box-shadow: 
            inset 0 0 30px rgba(0, 0, 0, 0.5),
            0 0 60px rgba(20, 241, 149, 0.8),
            0 0 100px rgba(153, 69, 255, 0.4);
    }
    100% { 
        box-shadow: 
            inset 0 0 30px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(212, 175, 55, 0.4);
    }
}

/* === BIG WIN OVERLAY === */
.bigwin-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 70%, transparent 100%);
    padding: var(--space-lg) var(--space-md);
    padding-bottom: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.bigwin-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bigwin-content {
    text-align: center;
    animation: bigwin-entry 0.5s ease-out;
}

@keyframes bigwin-entry {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bigwin-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shimmer 1s ease infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    margin-bottom: var(--space-sm);
}

@keyframes gold-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bigwin-amount {
    font-size: clamp(2rem, 10vw, 4rem);
    font-weight: 900;
    color: #14F195;
    text-shadow: 
        0 0 20px rgba(20, 241, 149, 0.6),
        0 0 40px rgba(20, 241, 149, 0.4);
    animation: counter-pulse 0.3s ease infinite;
}

@keyframes counter-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.bigwin-multiplier {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-top: var(--space-xs);
    animation: multiplier-bounce 0.6s ease infinite;
}

@keyframes multiplier-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* === CANVAS TRANSITION === */
#slot-canvas {
    transition: transform 0.1s ease;
}

/* === SPIN BUTTON ENHANCED === */
.spin-btn:not(:disabled):active {
    transform: scale(0.92);
    box-shadow: 
        0 2px 8px rgba(212, 175, 55, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* === WIN COUNTER FLASH === */
.info-value.counting {
    animation: value-flash 0.1s ease infinite;
}

@keyframes value-flash {
    0%, 100% { color: var(--color-accent-gold); }
    50% { color: var(--color-success); }
}

/* === LOW GRAPHICS MODE === */
.low-graphics-mode .bigwin-overlay {
    transition: none;
}

.low-graphics-mode .bigwin-content {
    animation: none;
}

.low-graphics-mode .bigwin-title {
    animation: none;
    background: #FFD700;
    -webkit-background-clip: text;
    background-clip: text;
}

.low-graphics-mode .bigwin-amount {
    animation: none;
}

.low-graphics-mode .bigwin-multiplier {
    animation: none;
}

.low-graphics-mode .slot-container.winning .slot-frame {
    animation: none;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bigwin-overlay {
        transition: opacity 0.1s ease;
    }
    
    #slot-canvas {
        transition: none !important;
    }
}

/* === PAYLINES INFO IN PAYTABLE === */
.paylines-info {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paylines-info h3 {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--color-accent-gold);
}

.paylines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .paylines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.payline-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.payline-diagram-label {
    font-weight: 700;
    font-size: var(--font-sm);
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
}

.payline-diagram-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 3px;
}

.payline-diagram-cell {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.payline-diagram-cell.active {
    box-shadow: 0 0 4px currentColor;
}
