/* Game-specific styles */

/* Mobile Menu Styles for Game Pages */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: #ffffff;
    background: rgba(255, 215, 0, 0.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.game-container {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-header h1 {
    color: #ffd700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

/* Slot Machine Styles */
.slot-machine {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.slot-display {
    background: #000;
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reel {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #ffd700;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reel.spinning {
    animation: spin 0.1s linear infinite;
}

.symbol {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.symbol:last-child {
    border-bottom: none;
}

@keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-40px); }
}

.slot-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bet-controls label {
    color: #ffd700;
    font-weight: 600;
}

.bet-controls select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 1rem;
}

.bet-controls select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.spin-button {
    position: relative;
    min-width: 150px;
    height: 60px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spin-button.spinning {
    animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 150px;
}

.stat-label {
    color: #e0e0e0;
    font-weight: 500;
}

.stat-value {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Credits Display */
.credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ffd700;
}

.credits-label {
    color: #e0e0e0;
    font-weight: 500;
}

.credits-amount {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Paytable */
.paytable {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.paytable h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.paytable-item {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.paytable-item:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.paytable-item .symbols {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.paytable-item .payout {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Win Animation */
.win-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 2rem 3rem;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: 700;
    z-index: 2000;
    animation: winPop 2s ease-in-out;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.5);
}

@keyframes winPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Blackjack Styles */
.blackjack-table {
    background: linear-gradient(135deg, #0d4f3c, #1a5f4a);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 400px;
    position: relative;
}

.dealer-hand,
.player-hand {
    margin-bottom: 2rem;
}

.dealer-hand .hand-label {
    color: #ff6b6b;
}

.player-hand .hand-label {
    color: #4ecdc4;
}

.game-rules {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.game-rules h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.game-rules ul {
    list-style: none;
    padding: 0;
}

.game-rules li {
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.game-rules li::before {
    content: "•";
    color: #ffd700;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.hand {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    min-height: 120px;
    align-items: center;
}

.hand-label {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card {
    width: 60px;
    height: 90px;
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card.red {
    color: #dc2626;
}

.card.black {
    color: #000;
}

.hand-value {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 1rem;
}

.blackjack-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Roulette Styles */
.roulette-table {
    background: linear-gradient(135deg, #0d4f3c, #1a5f4a);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.roulette-table::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.roulette-table > * {
    position: relative;
    z-index: 1;
}

.roulette-wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.wheel-result {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-top: 1rem;
}

.betting-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.number-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.number-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.number {
    width: 40px;
    height: 40px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 40px;
    min-height: 40px;
}

.number.red {
    background: #dc2626;
    color: #ffffff;
}

.number.black {
    background: #000000;
    color: #ffffff;
}

.number:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

.number:active {
    transform: scale(0.95);
}

.number.selected {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: selectedPulse 1s ease-in-out infinite alternate;
}

@keyframes selectedPulse {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

.outside-bets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.bet-section {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bet-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-option:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.bet-option:active {
    transform: translateY(0) scale(0.98);
}

.bet-option.selected {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: selectedPulse 1s ease-in-out infinite alternate;
}

.current-bets {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.current-bets h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.bets-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.bet-item .bet-type {
    color: #e0e0e0;
    font-weight: 500;
}

.bet-item .bet-amount {
    color: #ffd700;
    font-weight: 700;
}

.remove-bet {
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.remove-bet:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.remove-bet:active {
    transform: scale(0.9);
}

.total-bet {
    text-align: center;
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
}

.total-bet span {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.2rem;
}

.game-result {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.game-result.win {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.game-result.lose {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.result-message {
    text-align: center;
}

.result-message h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.winning-bets {
    margin-top: 1rem;
}

.winning-bets h4 {
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.winning-bets ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.winning-bets li {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 0.3rem 0;
    color: #22c55e;
    font-weight: 600;
}

.total-winnings {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #22c55e;
}

.roulette-rules {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.roulette-rules h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.roulette-rules ul {
    list-style: none;
    padding: 0;
}

.roulette-rules li {
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.roulette-rules li::before {
    content: "•";
    color: #ffd700;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.roulette-wheel {
    width: 200px;
    height: 200px;
    border: 4px solid #ffd700;
    border-radius: 50%;
    background: conic-gradient(
        #dc2626 0deg 18deg,
        #000 18deg 36deg,
        #dc2626 36deg 54deg,
        #000 54deg 72deg,
        #dc2626 72deg 90deg,
        #000 90deg 108deg,
        #dc2626 108deg 126deg,
        #000 126deg 144deg,
        #dc2626 144deg 162deg,
        #000 162deg 180deg,
        #dc2626 180deg 198deg,
        #000 198deg 216deg,
        #dc2626 216deg 234deg,
        #000 234deg 252deg,
        #dc2626 252deg 270deg,
        #000 270deg 288deg,
        #dc2626 288deg 306deg,
        #000 306deg 324deg,
        #dc2626 324deg 342deg,
        #000 342deg 360deg
    );
    margin: 0 auto 2rem;
    position: relative;
    transition: transform 3s ease-out;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.roulette-wheel:hover {
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.roulette-wheel.spinning {
    animation: wheelGlow 0.5s ease-in-out infinite alternate;
}

@keyframes wheelGlow {
    0% { 
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.3),
            inset 0 0 20px rgba(0, 0, 0, 0.3);
    }
    100% { 
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.8),
            inset 0 0 20px rgba(0, 0, 0, 0.3);
    }
}

.roulette-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.roulette-ball {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: all 3s ease-out;
}

.betting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto 2rem;
}

.bet-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffd700;
    border-radius: 8px;
    color: #ffffff;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bet-button:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.bet-button.selected {
    background: #ffd700;
    color: #000;
}

.roulette-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Games */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .game-container {
        padding: 1.5rem 0;
    }
    
    .game-header h1 {
        font-size: 2.5rem;
    }
    
    .slot-machine {
        padding: 1.5rem;
    }
    
    .reel {
        width: 70px;
        height: 105px;
    }
    
    .symbol {
        height: 35px;
        font-size: 1.8rem;
    }
    
    .paytable-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .roulette-wheel {
        width: 180px;
        height: 180px;
    }
    
    .betting-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 250px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .game-container {
        padding: 1rem 0;
        min-height: calc(100vh - 150px);
    }
    
    .game-header {
        margin-bottom: 2rem;
    }
    
    .game-header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .game-header p {
        font-size: 1.1rem;
    }
    
    /* Slot Machine Mobile */
    .slot-machine {
        padding: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .slot-display {
        padding: 0.8rem;
        margin-bottom: 1.5rem;
        min-height: 160px;
    }
    
    .slot-controls {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .reel-container {
        gap: 0.8rem;
    }
    
    .reel {
        width: 65px;
        height: 95px;
    }
    
    .symbol {
        height: 32px;
        font-size: 1.6rem;
    }
    
    .bet-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .bet-controls select {
        padding: 10px 15px;
        font-size: 1.1rem;
    }
    
    .spin-button {
        min-width: 140px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .game-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat {
        min-width: 120px;
    }
    
    .paytable {
        padding: 1.5rem;
    }
    
    .paytable-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .paytable-item {
        padding: 0.8rem;
    }
    
    /* Blackjack Mobile */
    .blackjack-table {
        padding: 1.5rem;
        min-height: 350px;
    }
    
    .hand {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
        min-height: 100px;
    }
    
    .card {
        width: 55px;
        height: 80px;
        font-size: 1.1rem;
    }
    
    .hand-label {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .hand-value {
        font-size: 1rem;
        margin-left: 0.8rem;
    }
    
    .blackjack-controls {
        gap: 0.8rem;
    }
    
    .bet-controls {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Roulette Mobile */
    .roulette-table {
        padding: 1.5rem;
    }
    
    .roulette-wheel-container {
        margin-bottom: 1.5rem;
    }
    
    .roulette-wheel {
        width: 160px;
        height: 160px;
    }
    
    .wheel-result {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-top: 0.8rem;
    }
    
    .betting-area {
        gap: 1.5rem;
    }
    
    .number-grid {
        gap: 0.4rem;
    }
    
    .number-row {
        gap: 0.4rem;
    }
    
    .number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        min-width: 35px;
        min-height: 35px;
    }
    
    .outside-bets {
        max-width: 350px;
        gap: 0.8rem;
    }
    
    .bet-section {
        gap: 0.4rem;
    }
    
    .bet-option {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 70px;
        min-height: 40px;
    }
    
    .current-bets {
        padding: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .current-bets h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .bet-item {
        padding: 0.4rem 0.8rem;
    }
    
    .bet-item .bet-type {
        font-size: 0.9rem;
    }
    
    .bet-item .bet-amount {
        font-size: 0.9rem;
    }
    
    .total-bet {
        font-size: 1rem;
    }
    
    .total-bet span {
        font-size: 1.1rem;
    }
    
    .game-result {
        margin-top: 1.2rem;
        padding: 0.8rem;
    }
    
    .roulette-controls {
        gap: 0.8rem;
    }
    
    .bet-controls {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Game Rules */
    .game-rules,
    .roulette-rules {
        padding: 1.5rem;
    }
    
    .game-rules h3,
    .roulette-rules h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .game-rules ul,
    .roulette-rules ul {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .game-container {
        padding: 0.8rem 0;
    }
    
    .game-header {
        margin-bottom: 1.5rem;
    }
    
    .game-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .game-header p {
        font-size: 1rem;
    }
    
    /* Slot Machine Small Mobile */
    .slot-machine {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slot-display {
        padding: 0.6rem;
        margin-bottom: 1.2rem;
        min-height: 140px;
    }
    
    .slot-controls {
        gap: 1.2rem;
    }
    
    .reel-container {
        gap: 0.6rem;
    }
    
    .reel {
        width: 55px;
        height: 80px;
    }
    
    .symbol {
        height: 27px;
        font-size: 1.4rem;
    }
    
    .bet-controls {
        gap: 0.6rem;
    }
    
    .bet-controls label {
        font-size: 0.95rem;
    }
    
    .bet-controls select {
        padding: 8px 12px;
        font-size: 1rem;
    }
    
    .spin-button {
        min-width: 120px;
        height: 50px;
        font-size: 1rem;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .stat {
        min-width: 100px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .paytable {
        padding: 1.2rem;
    }
    
    .paytable h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .paytable-item {
        padding: 0.8rem;
    }
    
    .paytable-item .symbols {
        font-size: 1.3rem;
    }
    
    .paytable-item .payout {
        font-size: 1.1rem;
    }
    
    /* Blackjack Small Mobile */
    .blackjack-table {
        padding: 1.2rem;
        min-height: 300px;
    }
    
    .hand {
        gap: 0.6rem;
        margin-bottom: 1.2rem;
        min-height: 90px;
    }
    
    .card {
        width: 50px;
        height: 75px;
        font-size: 1rem;
    }
    
    .hand-label {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .hand-value {
        font-size: 0.95rem;
        margin-left: 0.6rem;
    }
    
    .blackjack-controls {
        gap: 0.6rem;
    }
    
    .blackjack-controls .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .bet-controls {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    /* Roulette Small Mobile */
    .roulette-table {
        padding: 1.2rem;
    }
    
    .roulette-wheel-container {
        margin-bottom: 1.2rem;
    }
    
    .roulette-wheel {
        width: 140px;
        height: 140px;
    }
    
    .wheel-result {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-top: 0.6rem;
    }
    
    .betting-area {
        gap: 1.2rem;
    }
    
    .number-grid {
        gap: 0.3rem;
    }
    
    .number-row {
        gap: 0.3rem;
    }
    
    .number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        min-width: 30px;
        min-height: 30px;
    }
    
    .outside-bets {
        max-width: 300px;
        gap: 0.6rem;
    }
    
    .bet-section {
        gap: 0.3rem;
    }
    
    .bet-option {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 60px;
        min-height: 36px;
    }
    
    .current-bets {
        padding: 1rem;
        margin-top: 1.2rem;
    }
    
    .current-bets h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .bet-item {
        padding: 0.3rem 0.6rem;
    }
    
    .bet-item .bet-type {
        font-size: 0.8rem;
    }
    
    .bet-item .bet-amount {
        font-size: 0.8rem;
    }
    
    .total-bet {
        font-size: 0.9rem;
    }
    
    .total-bet span {
        font-size: 1rem;
    }
    
    .game-result {
        margin-top: 1rem;
        padding: 0.6rem;
    }
    
    .roulette-controls {
        gap: 0.6rem;
    }
    
    .roulette-controls .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .bet-controls {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    /* Game Rules Small Mobile */
    .game-rules,
    .roulette-rules {
        padding: 1.2rem;
    }
    
    .game-rules h3,
    .roulette-rules h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .game-rules ul,
    .roulette-rules ul {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .game-rules li,
    .roulette-rules li {
        margin-bottom: 0.4rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .game-header h1 {
        font-size: 1.6rem;
    }
    
    .slot-machine {
        padding: 0.8rem;
    }
    
    .reel {
        width: 50px;
        height: 75px;
    }
    
    .symbol {
        height: 25px;
        font-size: 1.2rem;
    }
    
    .spin-button {
        min-width: 100px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .card {
        width: 45px;
        height: 68px;
        font-size: 0.9rem;
    }
    
    .roulette-wheel {
        width: 120px;
        height: 120px;
    }
    
    .wheel-result {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        min-width: 28px;
        min-height: 28px;
    }
    
    .outside-bets {
        max-width: 280px;
    }
    
    .bet-option {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 55px;
        min-height: 32px;
    }
    
    .current-bets {
        padding: 0.8rem;
    }
    
    .current-bets h3 {
        font-size: 1rem;
    }
    
    .bet-item {
        padding: 0.25rem 0.5rem;
    }
    
    .bet-item .bet-type,
    .bet-item .bet-amount {
        font-size: 0.75rem;
    }
    
    .total-bet {
        font-size: 0.85rem;
    }
    
    .total-bet span {
        font-size: 0.9rem;
    }
    
    .paytable {
        padding: 1rem;
    }
    
    .game-rules,
    .roulette-rules {
        padding: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .game-container {
        padding: 0.5rem 0;
    }
    
    .game-header {
        margin-bottom: 1rem;
    }
    
    .game-header h1 {
        font-size: 1.8rem;
    }
    
    .slot-machine {
        padding: 1rem;
    }
    
    .slot-display {
        min-height: 120px;
    }
    
    .reel {
        width: 60px;
        height: 90px;
    }
    
    .symbol {
        height: 30px;
        font-size: 1.4rem;
    }
    
    .blackjack-table {
        min-height: 250px;
    }
    
    .hand {
        min-height: 80px;
    }
    
    .card {
        width: 50px;
        height: 75px;
    }
    
    .roulette-wheel {
        width: 140px;
        height: 140px;
    }
    
    .wheel-result {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        min-width: 32px;
        min-height: 32px;
    }
    
    .bet-option {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 65px;
        min-height: 38px;
    }
}

/* Mobile Menu Responsive Styles for Game Pages */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 215, 0, 0.2);
        flex-direction: column;
        padding: 1rem 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        text-align: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover {
        background: rgba(255, 215, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.8rem 0;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
