/* Bee Casino Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.casino-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Casino Header */
.casino-header {
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.casino-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.casino-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

/* Music Toggle Button */
.music-toggle-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #FFD700;
    color: #FFD700;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 15px;
}

.music-toggle-btn:hover,
.music-toggle-btn:active {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

/* Volume Control */
.volume-control {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    min-width: 120px;
}

.volume-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 8px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-label {
    display: block;
    text-align: center;
    font-size: 0.8em;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
    to { text-shadow: 2px 2px 20px rgba(255, 215, 0, 0.8); }
}

.casino-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.credits-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Game Selection */
.game-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.game-select-btn {
    background: linear-gradient(45deg, #4a4a4a, #666);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.game-select-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.game-select-btn.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    transform: scale(1.05);
}

.btn-icon {
    font-size: 2em;
}

.btn-text {
    font-size: 0.9em;
}

/* Game Sections */
.game-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.game-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slots Game */
.slots-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.slots-header h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.slots-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bet-controls label {
    font-weight: bold;
    color: #FFD700;
}

.bet-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bet-btn {
    background: linear-gradient(45deg, #4a4a4a, #666);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 60px;
}

.bet-btn:hover {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    transform: scale(1.1);
}

.bet-btn.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.spin-controls {
    display: flex;
    gap: 15px;
}

.spin-btn, .auto-spin-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.spin-btn:hover, .auto-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.spin-btn:disabled, .auto-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Slots Machine */
.slots-machine {
    position: relative;
    background: linear-gradient(45deg, #2c2c2c, #4a4a4a);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #FFD700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.reel-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.reel {
    width: 120px;
    height: 360px;
    background: linear-gradient(45deg, #1a1a1a, #333);
    border-radius: 15px;
    border: 3px solid #FFD700;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.reel-strip {
    position: relative;
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, filter;
    /* Ensure symbols are always visible */
    min-height: 100%;
}

.reel-strip.spinning {
    filter: blur(2px) saturate(1.1) brightness(1.05);
}

.symbol {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-bottom: 2px solid #333;
    color: #333;
    font-weight: bold;
    /* Ensure symbols are always visible */
    flex-shrink: 0;
    /* Add some spacing between symbols */
    margin-bottom: 2px;
}

.payline {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 46%;
    transform: translateY(-50%);
    height: 6px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: paylineGlow 2s ease-in-out infinite alternate;
}

.payline::before,
.payline::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.payline::before {
    left: -14px;
    border-right: 14px solid #FFD700;
}

.payline::after {
    right: -14px;
    border-left: 14px solid #FFD700;
}

@keyframes paylineGlow {
    from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    to { box-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

/* Slots Info */
.slots-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.win-display {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: #333;
    font-weight: bold;
}

.win-text {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.win-amount {
    font-size: 2em;
    color: #FF6B6B;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Blackjack Game */
.blackjack-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.blackjack-header h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.blackjack-table {
    background: linear-gradient(45deg, #2d5016, #4a7c59);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #FFD700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.dealer-area, .player-area {
    text-align: center;
    margin-bottom: 30px;
}

.dealer-area h3, .player-area h3 {
    color: #FFD700;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.dealer-cards, .player-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    min-height: 120px;
}

.card {
    width: 80px;
    height: 120px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    border: 2px solid #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: dealCard 0.5s ease-out;
}

@keyframes dealCard {
    from {
        transform: translateY(-100px) rotateY(180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateY(0deg);
        opacity: 1;
    }
}

.card.hidden {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
}

.dealer-score, .player-score {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    background: linear-gradient(45deg, #4a4a4a, #666);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    transform: scale(1.05);
}

.action-btn.hidden {
    display: none;
}

.blackjack-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.game-status {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: #333;
    font-weight: bold;
    font-size: 1.2em;
}

.blackjack-rules {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.blackjack-rules h3 {
    color: #FFD700;
    margin-bottom: 15px;
}

.blackjack-rules p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Navigation */
.casino-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    background: linear-gradient(45deg, #4a4a4a, #666);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    transform: translateY(-2px);
}

/* Win Modal */
.win-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.win-modal.hidden {
    display: none;
}

.win-content {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    color: #333;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.win-animation {
    position: relative;
    margin-bottom: 20px;
}

.win-symbol {
    font-size: 4em;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.sparkles {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkles:nth-child(1) {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.sparkles:nth-child(3) {
    top: 0;
    right: 20%;
    animation-delay: 0.5s;
}

@keyframes sparkle {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
}

.win-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FF6B6B;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

.win-amount-display {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 30px;
    color: #FF6B6B;
}

.currency {
    font-size: 0.8em;
    opacity: 0.8;
}

.continue-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .casino-container {
        padding: 10px;
    }
    
    .casino-header h1 {
        font-size: 2em;
    }
    
    .casino-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .slots-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .reel-container {
        gap: 10px;
    }
    
    .reel {
        width: 80px;
        height: 240px;
    }
    
    .symbol {
        width: 80px;
        height: 80px;
        font-size: 2em;
    }
    
    .slots-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blackjack-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .casino-header h1 {
        font-size: 1.5em;
    }
    
    .reel {
        width: 60px;
        height: 180px;
    }
    
    .symbol {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
    
    .card {
        width: 60px;
        height: 90px;
        font-size: 1.2em;
    }
    
    .bet-buttons {
        justify-content: center;
    }
    
    .bet-btn {
        padding: 8px 15px;
        min-width: 50px;
    }
}

/* Mobile Support - Add at the end of the file */

/* Mobile Navigation Bar */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 34, 34, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 2px solid #FFD700;
    z-index: 1000;
    padding: 10px 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-btn {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.mobile-nav-btn:hover,
.mobile-nav-btn:active {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.mobile-nav-btn .icon {
    font-size: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #FFD700;
    color: #222;
    border: 2px solid #222;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #FFC125;
    transform: scale(1.1);
}

/* Mobile Home Button */
.mobile-home-button {
    display: none;
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    background: #FFD700;
    color: #222;
    border: 2px solid #222;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-home-button:hover {
    background: #FFC125;
    transform: translateX(-50%) scale(1.05);
}

/* Mobile Game Controls */
.mobile-game-controls {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 999;
}

.mobile-control-btn {
    width: 60px;
    height: 60px;
    background: rgba(34, 34, 34, 0.9);
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-control-btn:hover,
.mobile-control-btn:active {
    background: rgba(255, 215, 0, 0.9);
    color: #222;
    transform: scale(1.1);
}

/* Mobile Game Selection */
.mobile-game-selection {
    display: none;
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    background: rgba(51, 51, 51, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.mobile-game-selection.active {
    display: block;
}

.mobile-game-selection h3 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.mobile-game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-game-btn {
    background: linear-gradient(45deg, #B8860B, #DAA520);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-game-btn.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #222;
    transform: scale(1.05);
}

/* Mobile Bet Controls */
.mobile-bet-controls {
    display: none;
    position: fixed;
    bottom: 280px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 997;
    background: rgba(51, 51, 51, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.mobile-bet-controls.active {
    display: block;
}

.mobile-bet-controls h3 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.mobile-bet-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.mobile-bet-btn {
    background: linear-gradient(45deg, #B8860B, #DAA520);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.mobile-bet-btn:hover,
.mobile-bet-btn:active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #222;
    transform: scale(1.05);
}

/* Mobile Instructions */
.mobile-instructions {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    background: rgba(51, 51, 51, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 25px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-instructions.active {
    display: block;
}

.mobile-instructions h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.mobile-instructions p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
}

.mobile-instructions strong {
    color: #FFD700;
}

.close-instructions {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-instructions:hover {
    background: #FF8E8E;
    transform: scale(1.1);
}

/* Mobile Responsive Breakpoints */
@media (max-width: 1200px) {
    .casino-container {
        max-width: 90%;
        padding: 15px;
    }
    
    .casino-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .casino-stats {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .casino-container {
        max-width: 95%;
        padding: 12px;
    }
    
    .casino-header h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .casino-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .game-selection {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .game-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 10px;
    }
    
    .casino-container {
        width: 95%;
        padding: 10px;
        border-radius: 8px;
    }
    
    .casino-header h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .casino-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .stat {
        text-align: center;
        min-width: 120px;
    }
    
    .game-selection {
        flex-direction: column;
        gap: 8px;
    }
    
    .game-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    .slots-controls {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .bet-controls {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .reel {
        width: 80px;
        height: 80px;
        margin: 0 5px;
    }
    
    .symbol {
        font-size: 24px;
    }
    
    .card {
        width: 60px;
        height: 80px;
        margin: 5px;
        font-size: 14px;
    }
    
    .blackjack-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .game-actions {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .win-modal {
        width: 90%;
        padding: 20px;
        border-radius: 8px;
    }
    
    .win-modal h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    
    .win-amount {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .mobile-home-button {
        display: block;
    }
    
    .mobile-game-controls {
        display: block;
    }
    
    .mobile-game-selection {
        display: block;
    }
    
    .mobile-bet-controls {
        display: block;
    }
    
    /* Hide desktop music controls on mobile */
    .music-toggle-btn,
    .volume-control {
        display: none;
    }
    
    /* Mobile win modal */
    .win-content {
        padding: 25px;
        border-radius: 20px;
        max-width: 90%;
    }
    
    .win-title {
        font-size: 2em;
    }
    
    .win-amount-display {
        font-size: 1.6em;
    }
    
    .continue-btn {
        padding: 12px 25px;
        font-size: 16px;
        border-radius: 20px;
    }
}

@media (max-width: 600px) {
    .casino-container {
        width: 98%;
        padding: 8px;
        border-radius: 6px;
    }
    
    .casino-header h1 {
        font-size: 1.4em;
        margin-bottom: 6px;
    }
    
    .casino-stats {
        gap: 8px;
    }
    
    .stat {
        min-width: 100px;
        font-size: 0.9em;
    }
    
    .game-selection {
        gap: 6px;
    }
    
    .game-btn {
        padding: 8px;
        font-size: 13px;
    }
    
    .slots-controls {
        gap: 8px;
    }
    
    .bet-controls {
        gap: 6px;
    }
    
    .reel {
        width: 70px;
        height: 70px;
        margin: 0 3px;
    }
    
    .symbol {
        font-size: 20px;
    }
    
    .card {
        width: 50px;
        height: 70px;
        margin: 3px;
        font-size: 12px;
    }
    
    .win-modal {
        width: 95%;
        padding: 15px;
        border-radius: 6px;
    }
    
    .win-modal h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    .win-amount {
        font-size: 1.6em;
        margin-bottom: 12px;
    }
    
    .mobile-nav-buttons {
        max-width: 300px;
    }
    
    .mobile-nav-btn {
        font-size: 11px;
        padding: 6px;
        min-width: 50px;
    }
    
    .mobile-nav-btn .icon {
        font-size: 18px;
    }
    
    .mobile-control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .mobile-home-button {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .mobile-game-selection {
        bottom: 220px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .mobile-game-selection h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .mobile-game-buttons {
        gap: 8px;
    }
    
    .mobile-game-btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 15px;
    }
    
    .mobile-bet-controls {
        bottom: 300px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .mobile-bet-controls h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .mobile-bet-row {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .mobile-bet-btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 15px;
        min-width: 45px;
    }
    
    .mobile-instructions {
        padding: 20px;
        border-radius: 15px;
    }
    
    .mobile-instructions h3 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    
    .mobile-instructions p {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .casino-container {
        width: 100%;
        padding: 6px;
        border-radius: 4px;
    }
    
    .casino-header h1 {
        font-size: 1.2em;
        margin-bottom: 4px;
    }
    
    .casino-stats {
        gap: 6px;
    }
    
    .stat {
        min-width: 90px;
        font-size: 0.8em;
    }
    
    .game-selection {
        gap: 4px;
    }
    
    .game-btn {
        padding: 6px;
        font-size: 12px;
    }
    
    .slots-controls {
        gap: 6px;
    }
    
    .bet-controls {
        gap: 4px;
    }
    
    .reel {
        width: 60px;
        height: 60px;
        margin: 0 2px;
    }
    
    .symbol {
        font-size: 18px;
    }
    
    .card {
        width: 45px;
        height: 60px;
        margin: 2px;
        font-size: 11px;
    }
    
    .win-modal {
        width: 98%;
        padding: 12px;
        border-radius: 4px;
    }
    
    .win-modal h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .win-amount {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    
    .mobile-nav-buttons {
        max-width: 280px;
    }
    
    .mobile-nav-btn {
        font-size: 10px;
        padding: 5px;
        min-width: 45px;
    }
    
    .mobile-nav-btn .icon {
        font-size: 16px;
    }
    
    .mobile-control-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        right: 15px;
    }
    
    .mobile-home-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .mobile-game-selection {
        bottom: 200px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .mobile-game-selection h3 {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    
    .mobile-game-buttons {
        gap: 6px;
    }
    
    .mobile-game-btn {
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 12px;
    }
    
    .mobile-bet-controls {
        bottom: 280px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .mobile-bet-controls h3 {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    
    .mobile-bet-row {
        gap: 5px;
        margin-bottom: 5px;
    }
    
    .mobile-bet-btn {
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 12px;
        min-width: 40px;
    }
    
    .mobile-instructions {
        padding: 18px;
        border-radius: 12px;
    }
    
    .mobile-instructions h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .mobile-instructions p {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .game-btn:hover,
    .bet-btn:hover,
    .action-btn:hover {
        background: #B8860B;
        transform: none;
    }
    
    .game-btn:active,
    .bet-btn:active,
    .action-btn:active {
        background: #DAA520;
        transform: scale(0.95);
    }
    
    .mobile-nav-btn:hover,
    .mobile-control-btn:hover,
    .mobile-game-btn:hover,
    .mobile-bet-btn:hover {
        transform: none;
    }
    
    .mobile-nav-btn:active,
    .mobile-control-btn:active,
    .mobile-game-btn:active,
    .mobile-bet-btn:active {
        transform: scale(1.05);
    }
    
    .mobile-home-button:hover {
        transform: translateX(-50%);
    }
    
    .mobile-home-button:active {
        transform: translateX(-50%) scale(0.95);
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-nav {
        bottom: 5px;
        padding: 5px 0;
    }
    
    .mobile-nav-btn {
        padding: 4px;
        font-size: 10px;
    }
    
    .mobile-nav-btn .icon {
        font-size: 16px;
    }
    
    .mobile-home-button {
        bottom: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .mobile-game-controls {
        bottom: 80px;
        right: 15px;
    }
    
    .mobile-control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 5px 0;
    }
    
    .casino-header {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .casino-header h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .casino-stats {
        flex-direction: row;
        gap: 10px;
    }
    
    .stat {
        font-size: 0.8em;
    }
    
    .game-selection {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .game-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .mobile-game-selection {
        bottom: 160px;
        padding: 8px;
    }
    
    .mobile-bet-controls {
        bottom: 240px;
        padding: 8px;
    }
    
    .casino-container {
        padding: 8px;
        margin: 3px;
    }
    
    .casino-header h1 {
        font-size: 1.3em;
        margin-bottom: 6px;
    }
    
    .casino-stats {
        gap: 6px;
    }
    
    .stat {
        font-size: 0.8em;
    }
}

/* Mobile accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .game-btn:hover,
    .bet-btn:hover,
    .action-btn:hover {
        transform: none;
    }
    
    .mobile-nav-btn:hover,
    .mobile-control-btn:hover,
    .mobile-game-btn:hover,
    .mobile-bet-btn:hover {
        transform: none;
    }
    
    .mobile-home-button:hover {
        transform: translateX(-50%);
    }
}

/* Mobile dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-nav {
        background: rgba(0, 0, 0, 0.95);
        border-top-color: #FFD700;
    }
    
    .mobile-nav-btn {
        color: #FFD700;
    }
    
    .mobile-nav-btn:hover,
    .mobile-nav-btn:active {
        background: rgba(255, 215, 0, 0.3);
    }
    
    .mobile-menu-toggle {
        background: #FFD700;
        color: #000;
        border-color: #000;
    }
    
    .mobile-menu-toggle:hover {
        background: #FFC125;
    }
}

/* Mobile high contrast mode */
@media (prefers-contrast: high) {
    .mobile-nav {
        background: #000;
        border-top-color: #fff;
    }
    
    .mobile-nav-btn {
        color: #fff;
        border: 1px solid #fff;
    }
    
    .mobile-nav-btn:hover,
    .mobile-nav-btn:active {
        background: #fff;
        color: #000;
    }
    
    .mobile-control-btn {
        background: #000;
        color: #fff;
        border-color: #fff;
    }
    
    .mobile-control-btn:hover,
    .mobile-control-btn:active {
        background: #fff;
        color: #000;
    }
}

/* Hide all paytables per rules (triple match only) */
.paytable, .detailed-paytable { display: none !important; }

/* Detailed Paytable Styles */
.detailed-paytable {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    border-radius: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.detailed-paytable h4 {
    color: #FFD700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.paytable-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.paytable-section h5 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: center;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.paytable-section.special {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
}

.paytable-section.special h5 {
    color: #FFA500;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.4);
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.paytable-row:last-child {
    border-bottom: none;
}

.paytable-row span:first-child {
    color: #F0E68C;
    font-size: 0.95em;
}

.payout-amount {
    color: #FFD700;
    font-weight: bold;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Mobile Styles for Detailed Paytable */
@media (max-width: 768px) {
    .detailed-paytable {
        margin-top: 15px;
        padding: 15px;
        max-height: 300px;
    }

    .detailed-paytable h4 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .paytable-section {
        margin-bottom: 15px;
        padding: 12px;
    }

    .paytable-section h5 {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .paytable-row {
        padding: 6px 0;
        font-size: 0.9em;
    }

    .payout-amount {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .detailed-paytable {
        padding: 12px;
        max-height: 250px;
    }

    .paytable-section {
        padding: 10px;
        margin-bottom: 12px;
    }

    .paytable-row {
        font-size: 0.85em;
        padding: 5px 0;
    }

    .payout-amount {
        font-size: 0.9em;
    }
}

/* Infinite Spinning Animation */
.reel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #2d2d2d, #1a1a1a);
    border: 2px solid #FFD700;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
}

.reel-strip {
    position: relative;
    height: 100%;
    width: 100%;
}

.reel-symbol {
    position: absolute;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: top 0.1s ease-out;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    margin: 2px 0;
}

.reel-symbol:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

/* Spinning State */
.reel.spinning .reel-symbol {
    transition: top 0.05s linear;
}

/* Pity System Display */
.pity-counter {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #FFA500;
    border-radius: 10px;
    padding: 15px;
    color: #FFA500;
    font-size: 14px;
    z-index: 1000;
    min-width: 120px;
    text-align: center;
}

.pity-counter h4 {
    margin: 0 0 10px 0;
    color: #FFA500;
    font-size: 16px;
}

.pity-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 165, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pity-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFA500, #FFD700);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.pity-text {
    font-size: 12px;
    color: #F0E68C;
}

.pity-active {
    animation: pityPulse 2s infinite;
}

@keyframes pityPulse {
    0% { border-color: #FFA500; }
    50% { border-color: #FFD700; }
    100% { border-color: #FFA500; }
}

/* Mobile Styles for Pity System */
@media (max-width: 768px) {
    .pity-counter {
        top: 80px;
        right: 15px;
        padding: 12px;
        font-size: 12px;
        min-width: 100px;
    }

    .pity-counter h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .pity-progress {
        height: 6px;
        margin-bottom: 8px;
    }

    .pity-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .pity-counter {
        top: 70px;
        right: 10px;
        padding: 10px;
        font-size: 11px;
        min-width: 90px;
    }

    .pity-counter h4 {
        font-size: 13px;
    }

    .pity-text {
        font-size: 10px;
    }
}