* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(-45deg, #000000, #0a0a1a, #001133, #000d1a, #000000);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 51, 102, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 20, 40, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    66% {
        opacity: 0.4;
        transform: scale(0.95);
    }
}

.casino-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.casino-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(0, 102, 255, 0.4), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(0, 153, 255, 0.3), transparent),
        radial-gradient(2px 2px at 70% 10%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px, 180px 180px;
    animation: floatingStars 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingStars {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(-10px) translateX(-5px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 3px solid #0066ff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066ff;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.balance-container {
    display: flex;
    align-items: center;
}

.balance {
    background: linear-gradient(45deg, #0066ff, #0052cc);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.balance:hover {
    transform: translateY(-2px);
}

.balance i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.currency {
    margin-left: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation Styles */
.main-nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 102, 255, 0.3);
    overflow-x: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.3);
}

.nav-item.active {
    background: linear-gradient(45deg, #0066ff, #0052cc);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.nav-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Game Container */
.game-container {
    flex: 1;
    padding: 2rem;
}

.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); }
}

/* Lobby Styles */
.lobby-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lobby-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.lobby-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #0066ff;
    background: rgba(0, 0, 0, 0.8);
}

.game-icon {
    font-size: 3rem;
    color: #0066ff;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-card p {
    opacity: 0.7;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h2 {
    font-size: 2.5rem;
    color: #0066ff;
    margin-bottom: 0.5rem;
}

/* Slots Machine Styles */
.slots-machine {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #0066ff;
}

.slots-reels {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reel {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #0066ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: all 0.5s ease;
}

.reel.spinning {
    animation: spin 2s ease-in-out;
}

@keyframes spin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

.slots-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bet-controls label {
    font-weight: 600;
}

.bet-controls input {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0066ff;
    border-radius: 5px;
    color: white;
    width: 100px;
    text-align: center;
}

.spin-btn {
    background: linear-gradient(45deg, #0066ff, #0052cc);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spin-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #0080ff, #0066ff);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slots-result {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 30px;
}

.win {
    color: #00ff00;
    animation: pulse 1s ease-in-out;
}

.lose {
    color: #ff4444;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Crash Game Styles */
.crash-game {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #0066ff;
}

.crash-display {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.crash-animation {
    position: relative;
    height: 200px;
    width: 100%;
    margin-bottom: 2rem;
}

.plane {
    position: absolute;
    left: 10%;
    bottom: 20%;
    font-size: 2.5rem;
    color: #00ff00;
    transform: rotate(-15deg);
    transition: all 0.1s linear;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.plane.flying {
    animation: flyUp 0.2s ease-in-out infinite alternate;
}

.plane.crashed {
    animation: planeCrash 1s ease-in-out forwards;
    color: #ff4444;
}

.flight-path {
    position: absolute;
    bottom: 22%;
    left: 12%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff8800);
    transition: width 0.1s linear;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

@keyframes flyUp {
    0% { 
        transform: rotate(-15deg) translateY(0px);
    }
    100% { 
        transform: rotate(-15deg) translateY(-5px);
    }
}

@keyframes planeCrash {
    0% { 
        transform: rotate(-15deg) scale(1);
        color: #00ff00;
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    20% {
        transform: rotate(15deg) scale(1.1);
        color: #ffff00;
        text-shadow: 0 0 15px rgba(255, 255, 0, 0.7);
    }
    40% {
        transform: rotate(45deg) scale(1.3);
        color: #ff8800;
        text-shadow: 0 0 20px rgba(255, 136, 0, 0.8);
    }
    60% {
        transform: rotate(90deg) scale(1.5);
        color: #ff4444;
        text-shadow: 0 0 25px rgba(255, 68, 68, 0.9);
    }
    80% {
        transform: rotate(180deg) scale(1.2);
        color: #ff0000;
        text-shadow: 0 0 30px rgba(255, 0, 0, 1);
    }
    100% {
        transform: rotate(270deg) scale(0.3) translateY(50px);
        color: #8b0000;
        opacity: 0.2;
        text-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
    }
}

.multiplier {
    font-size: 4rem;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 1rem;
}

.multiplier.crashed {
    color: #ff4444;
}

.crash-status {
    font-size: 1.2rem;
    opacity: 0.8;
}

.crash-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.crash-btn {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.crash-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #00ff44, #00dd00);
}

.crash-btn.cash-out {
    background: linear-gradient(45deg, #ff9900, #ff6600);
}

.crash-btn.cash-out:hover {
    background: linear-gradient(45deg, #ffaa00, #ff7700);
}

.crash-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.crash-result {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 30px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 10% auto;
    padding: 0;
    border: 3px solid #0066ff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
}

.modal-header {
    background: rgba(0, 102, 255, 0.2);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #0066ff;
    font-size: 1.5rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #0066ff;
}

.modal-body {
    padding: 2rem;
}

.add-money-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.add-money-options button {
    background: linear-gradient(45deg, #0066ff, #0052cc);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-money-options button:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #0080ff, #0066ff);
}

.custom-amount {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.custom-amount input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0066ff;
    border-radius: 10px;
    color: white;
}

.custom-amount button {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-amount button:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #00ff44, #00dd00);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .main-nav {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .nav-item {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .nav-item span {
        font-size: 0.7rem;
    }
    
    .game-container {
        padding: 1rem;
    }
    
    .lobby-header h1 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .slots-reels {
        gap: 0.5rem;
    }
    
    .reel {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* Additional Game Styles (for upcoming games) */
.game-board {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #0066ff;
}

.btn {
    background: linear-gradient(45deg, #0066ff, #0052cc);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #0080ff, #0066ff);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

input[type="number"] {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0066ff;
    border-radius: 5px;
    color: white;
    padding: 0.5rem;
}

input[type="number"]:focus {
    outline: none;
    border-color: #00ccff;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

/* Roulette Styles */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ff0000 0deg 18deg,
        #000000 18deg 36deg,
        #ff0000 36deg 54deg,
        #000000 54deg 72deg,
        #ff0000 72deg 90deg,
        #000000 90deg 108deg,
        #ff0000 108deg 126deg,
        #000000 126deg 144deg,
        #ff0000 144deg 162deg,
        #000000 162deg 180deg,
        #ff0000 180deg 198deg,
        #000000 198deg 216deg,
        #ff0000 216deg 234deg,
        #000000 234deg 252deg,
        #ff0000 252deg 270deg,
        #000000 270deg 288deg,
        #ff0000 288deg 306deg,
        #000000 306deg 324deg,
        #ff0000 324deg 342deg,
        #000000 342deg 360deg
    );
    border: 5px solid #0066ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: transform 3s cubic-bezier(0.23, 1, 0.32, 1);
}

.ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: all 3s cubic-bezier(0.23, 1, 0.32, 1);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
    margin-bottom: 1rem;
}

.number-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.number-cell.red {
    background: #cc0000;
}

.number-cell.black {
    background: #000000;
}

.number-cell.green {
    background: #00aa00;
}

.number-cell:hover {
    border-color: #0066ff;
    transform: scale(1.1);
}

.number-cell.selected {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.outside-bets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.bet-option {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0066ff;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.bet-option:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

.bet-option.selected {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
}

/* Bingo Styles */
.bingo-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.bingo-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0066ff;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bingo-cell.header {
    background: linear-gradient(45deg, #0066ff, #0052cc);
    cursor: default;
    font-size: 1.5rem;
}

.bingo-cell.marked {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: black;
    transform: scale(0.9);
}

.bingo-cell.called {
    background: rgba(255, 153, 0, 0.8);
    animation: pulse 0.5s ease-in-out;
}

.called-numbers {
    margin-top: 2rem;
    text-align: center;
}

.called-numbers h3 {
    margin-bottom: 1rem;
    color: #0066ff;
}

#called-numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-height: 100px;
    overflow-y: auto;
}

.called-number {
    background: rgba(0, 102, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Mines Styles */
.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.mine-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0066ff;
    border-radius: 15px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mine-cell:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

.mine-cell.revealed.gem {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: black;
    animation: gemFound 0.5s ease-in-out;
}

.mine-cell.revealed.mine {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    animation: mineExplode 0.5s ease-in-out;
}

@keyframes gemFound {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes mineExplode {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.mines-stats {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.mines-stats div {
    text-align: center;
    font-weight: bold;
}

/* Scratch Card Styles */
.scratch-card {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: crosshair;
}

.scratch-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    z-index: 1;
}

.scratch-symbol {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    min-width: 60px;
}

/* Plinko Styles */
.plinko-board {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#plinko-canvas {
    border: 2px solid #0066ff;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.8);
}

.multipliers {
    display: flex;
    justify-content: space-between;
    margin-top: -5px;
    padding: 0 10px;
}

.multiplier-slot {
    background: linear-gradient(45deg, #0066ff, #0052cc);
    color: white;
    padding: 0.5rem;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    min-width: 45px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.multiplier-slot.high {
    background: linear-gradient(45deg, #ff9900, #ff6600);
}

.multiplier-slot.winning {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    animation: pulse 1s ease-in-out;
}

.plinko-stats {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.plinko-stats div {
    text-align: center;
    font-weight: bold;
}

/* Game Controls */
.bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bet-controls label {
    font-weight: 600;
    white-space: nowrap;
}

.bomb-settings, .risk-level {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

select {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0066ff;
    border-radius: 5px;
    color: white;
    padding: 0.5rem;
}

select:focus {
    outline: none;
    border-color: #00ccff;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

/* Result Messages */
.roulette-result, .bingo-result, .mines-result, .scratch-result, .plinko-result {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 30px;
}

/* Auto Play Animation */
.auto-playing {
    animation: autoPlayPulse 1s infinite;
}

@keyframes autoPlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Rules Section Styles */
.rules-btn {
    background: linear-gradient(45deg, #ff9900, #ff6600);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    margin-left: 1rem;
}

.rules-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.rules-section {
    display: none;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff9900;
    border-radius: 15px;
    margin: 1rem 0 2rem;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.rules-section.active {
    display: block;
}

.rules-content h3 {
    color: #ff9900;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rule-item {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: #0066ff;
    transform: translateY(-3px);
}

.rule-item i {
    font-size: 2.5rem;
    color: #0066ff;
    margin-bottom: 1rem;
    display: block;
}

.rule-item h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.rule-item p {
    color: #cccccc;
    line-height: 1.4;
}

/* Payout Tables */
.payout-table, .betting-options, .bingo-info, .difficulty-table, .prize-tiers, .multiplier-chart {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.payout-table h4, .betting-options h4, .bingo-info h4, .difficulty-table h4, .prize-tiers h4, .multiplier-chart h4 {
    color: #00ff00;
    margin-bottom: 1rem;
    text-align: center;
}

.payout-row, .difficulty-row, .tier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.payout-row:hover, .difficulty-row:hover, .tier-row:hover {
    background: rgba(0, 102, 255, 0.1);
}

.payout-row:last-child, .difficulty-row:last-child, .tier-row:last-child {
    border-bottom: none;
}

.symbol {
    font-size: 1.2rem;
    font-weight: bold;
}

.multiplier, .payout, .reward, .prize {
    color: #00ff00;
    font-weight: bold;
}

.safety {
    color: #ff9900;
    font-weight: bold;
}

.chance {
    color: #0066ff;
    font-weight: bold;
}

/* Betting Options */
.bet-types {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bet-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.bet-type:hover {
    border-color: #0066ff;
    background: rgba(0, 102, 255, 0.1);
}

/* Strategy Tips */
.strategy-tips {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.strategy-tips h4 {
    color: #ffff00;
    margin-bottom: 1rem;
}

.strategy-tips ul {
    list-style: none;
    padding: 0;
}

.strategy-tips li {
    padding: 0.5rem 0;
    color: #cccccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.strategy-tips li:last-child {
    border-bottom: none;
}

.strategy-tips li i {
    color: #ffff00;
    margin-right: 0.5rem;
    width: 20px;
}

/* Bingo Info */
.bingo-info ul {
    list-style: none;
    padding: 0;
}

.bingo-info li {
    padding: 0.5rem 0;
    color: #cccccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bingo-info li:last-child {
    border-bottom: none;
}

.bingo-info li i {
    color: #0066ff;
    margin-right: 0.5rem;
    width: 20px;
}

.card-layout {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
}

.card-layout h4 {
    color: #0066ff;
    margin-bottom: 0.5rem;
}

.card-layout p {
    margin: 0.25rem 0;
    color: #cccccc;
}

/* Multiplier Info */
.multiplier-info {
    text-align: center;
    margin-top: 1rem;
}

.multiplier-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.multiplier-info p:first-child {
    color: #00ff00;
}

.multiplier-info p:last-child {
    color: #ff4444;
}

/* Slot Diagram */
.slot-diagram {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.slot {
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    min-width: 50px;
    font-size: 0.9rem;
}

.slot.low {
    background: linear-gradient(45deg, #666666, #999999);
    color: white;
}

.slot.medium {
    background: linear-gradient(45deg, #0066ff, #0099ff);
    color: white;
}

.slot.high {
    background: linear-gradient(45deg, #ff9900, #ffcc00);
    color: black;
}

.slot.jackpot {
    background: linear-gradient(45deg, #ff0066, #ff3399);
    color: white;
    animation: jackpotGlow 2s infinite;
}

@keyframes jackpotGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 102, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 102, 0.8); }
}

/* Auto Play Info */
.auto-play-info {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.auto-play-info h4 {
    color: #00ccff;
    margin-bottom: 1rem;
}

.auto-play-info p {
    margin: 0.5rem 0;
    color: #cccccc;
}

.auto-play-info i {
    color: #00ccff;
    margin-right: 0.5rem;
}

/* Win Condition */
.win-condition {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
}

.win-condition p {
    color: #00ff00;
    font-size: 1.1rem;
    margin: 0;
}

/* Balance Icon Enhancement */
.add-money-icon {
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.balance:hover .add-money-icon {
    opacity: 1;
}

/* Game Header Enhancement */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-header h2 {
    flex: 1;
    min-width: 200px;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    .rules-btn {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .slot-diagram {
        gap: 0.1rem;
    }
    
    .slot {
        min-width: 30px;
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .payout-row, .difficulty-row, .tier-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .bet-type {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}