/* Mobile Menu Styles */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #0F172A 100%);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 2px solid rgba(255,215,0,0.3);
}

.mobile-menu-header h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    color: #FFD700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-menu-close {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255,215,0,0.1);
    transform: rotate(90deg);
}

.mobile-menu-content {
    padding: 30px 20px;
}

.mobile-balance {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    margin-bottom: 30px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.mobile-nav-btn {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(65,105,225,0.1) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #FFD700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    text-align: left;
}

.mobile-nav-btn i {
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.mobile-nav-btn:hover {
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(65,105,225,0.2) 100%);
    border-color: #FFD700;
    transform: translateX(5px);
}

.mobile-nav-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a0033;
    border-color: #FFD700;
    font-weight: 700;
}

.mobile-nav-btn.active i {
    color: #1a0033;
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Mobile Balance */
.mobile-balance {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 1200px) {
    /* Container adjustments */
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    /* Header layout for mobile */
    .header {
        padding: 10px 0;
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    /* Logo on the left */
    .logo {
        flex: 0 0 auto;
        order: 1;
    }
    
    .logo-image {
        height: 35px;
        width: auto;
    }
    
    /* Mobile balance in center */
    .mobile-balance {
        display: block;
        order: 2;
        flex: 1 1 auto;
        text-align: center;
        color: #FFD700;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-coins {
        display: inline-block;
    }
    
    /* Menu button on the right */
    .mobile-menu-btn {
        display: block;
        order: 3;
    }
    
    /* Hide desktop balance */
    .balance-display {
        display: none;
    }
    
    /* Navigation Menu Overlay */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
        flex-direction: column;
        padding: 60px 20px 20px;
        gap: 10px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    .nav.active {
        right: 0;
    }
    
    /* Close button inside menu */
    .nav::before {
        content: '✕';
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 24px;
        color: #FFD700;
        cursor: pointer;
    }
    
    /* Nav buttons mobile style */
    .nav-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
        text-align: center;
        background: rgba(255, 215, 0, 0.1);
        border: 1px solid rgba(255, 215, 0, 0.2);
        color: #FFD700;
    }
    
    .nav-btn:hover,
    .nav-btn.active {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        color: #1a0033;
    }
    
    .auth-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 215, 0, 0.2);
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }
    
    /* Dark overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Responsive content */
    .slot-machine {
        padding: 0 10px;
    }
    
    .slot-container {
        padding: 20px 10px;
        margin: 0;
        border-radius: 10px;
    }
    
    .slot-frame {
        padding: 10px;
    }
    
    .reels-container {
        gap: 3px;
        height: 280px;
    }
    
    .reel {
        width: 18%;
        height: 100%;
    }
    
    .symbol {
        height: 93px;
    }
    
    .symbol-icon {
        width: 90%;
        height: 90%;
    }
    
    /* Adjust controls */
    .game-controls {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .bet-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
    
    .control-group {
        flex: 0 1 auto;
    }
    
    .main-spin-area {
        padding: 20px;
    }
    
    .spin-button {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }
    
    /* Responsive sections */
    .paytable-container,
    .info-container {
        padding: 20px 10px;
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .paytable-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .paytable-item {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 10px 8px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .mobile-balance {
        font-size: 12px;
    }
    
    .mobile-menu-btn {
        width: 30px;
        height: 30px;
    }
    
    .mobile-menu-btn span {
        width: 22px;
        left: 4px;
    }
    
    .mobile-menu-btn span:nth-child(1) {
        top: 6px;
    }
    
    .mobile-menu-btn span:nth-child(2) {
        top: 14px;
    }
    
    .mobile-menu-btn span:nth-child(3) {
        top: 22px;
    }
    
    .mobile-menu-btn.active span:nth-child(1),
    .mobile-menu-btn.active span:nth-child(3) {
        top: 14px;
    }
    
    .nav {
        width: 250px;
        padding: 50px 15px 15px;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Even smaller slot machine */
    .reels-containers {
        height: 240px;
    }
    
    .symbol {
        height: 80px;
    }
    
    .spin-button {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    
    /* Compact controls */
    .control-group label {
        font-size: 10px;
    }
    
    .bet-value {
        font-size: 14px;
    }
    
    .total-bet {
        font-size: 18px;
    }
    
    /* Responsive typography */
    .jackpot-amount {
        font-size: 32px;
    }
    
    .jackpot-label {
        font-size: 14px;
    }
    
    .disclaimer-text {
        font-size: 11px;
        padding: 8px;
    }
}

/* Fix for specific elements causing overflow */
.slot-header,
.slot-container,
.game-controls,
.main-spin-area {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure images don't overflow */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Fix button overflow */
button {
    max-width: 100%;
    word-wrap: break-word;
}