/* Professional Casino Game Styles */
:root {
    --casino-gold: #FFD700;
    --casino-red: #8B0000;
    --casino-dark: #000000;
    --casino-light: #ffffff;
    --casino-gray: #2c2c2c;
    --casino-green: #006400;
    --casino-blue: #1e3c72;
    --casino-purple: #4B0082;
    --casino-text-light: #ffffff;
    --casino-text-dark: #333333;
    --casino-text-secondary: #cccccc;
    --casino-border-radius: 12px;
    --casino-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    --casino-transition: all 0.3s ease;
    
    /* Game-specific colors */
    --coin-heads: #1e3c72;
    --coin-tails: #8B0000;
    --dice-win: #00ff00;
    --dice-loss: #ff0000;
    --dice-border: #FFD700;
    --dice-highlight: #FFD700;
    --wheel-bg: linear-gradient(135deg, #8B0000, #000000);
    --wheel-border: #FFD700;
    --wheel-card: #ffffff;
    --wheel-win: #00ff00;
    --wheel-loss: #ff0000;
    --wheel-highlight: #FFD700;
    --plinko-bg: linear-gradient(135deg, #8B0000, #000000);
    --plinko-table: #1a0000;
    --plinko-border: #FFD700;
    --plinko-card: #ffffff;
    --plinko-win: #00ff00;
    --plinko-loss: #ff0000;
    --plinko-highlight: #FFD700;
    
    /* Enhanced animation variables */
    --animation-duration-fast: 0.3s;
    --animation-duration-medium: 0.6s;
    --animation-duration-slow: 1s;
    --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--casino-text-light);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Game Container */
.game-container {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 1rem;
}

.game-table {
    background: linear-gradient(135deg, var(--casino-red), var(--casino-dark));
    border: 3px solid var(--casino-gold);
    border-radius: var(--casino-border-radius);
    padding: 2rem;
    box-shadow: var(--casino-shadow);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    backdrop-filter: blur(10px);
}

.game-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--casino-gold), transparent);
}

/* Table Header */
.table-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--casino-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.table-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.table-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Balance Display */
.balance-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid var(--casino-gold);
    flex-wrap: wrap;
    gap: 1rem;
}

.balance-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.balance-label {
    font-size: 0.9rem;
    color: var(--casino-text-secondary);
    margin-bottom: 0.3rem;
}

.balance-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00ff00;
}

/* Game Area */
.game-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Main Content */
.main-content {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--casino-gold);
    border-radius: var(--casino-border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

/* Side Panel */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Controls Panel */
.controls-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--casino-gold);
    border-radius: var(--casino-border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
    backdrop-filter: blur(5px);
}

/* Buttons */
.btn-casino {
    padding: 0.75rem 1.25rem;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--casino-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-casino::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.btn-casino:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--casino-gold), #f8d96d);
    color: var(--casino-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, var(--casino-green), #008000);
    color: var(--casino-light);
}

.btn-danger {
    background: linear-gradient(45deg, var(--casino-red), #B22222);
    color: var(--casino-light);
}

.btn-warning {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: var(--casino-light);
}

.btn-info {
    background: linear-gradient(45deg, var(--casino-blue), #2a5298);
    color: var(--casino-light);
}

.btn-casino:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.btn-casino:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-casino:active:not(:disabled) {
    transform: translateY(0);
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--casino-gold);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--casino-text-light);
    font-size: 1rem;
    transition: var(--casino-transition);
}

.form-control:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.25);
}

/* Game Message */
.game-message {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--casino-gold);
    position: relative;
    overflow: hidden;
    transition: var(--casino-transition);
}

.game-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-message:hover::before {
    opacity: 1;
}

.game-message.win {
    color: #00ff00;
    border-color: #00ff00;
    animation: winGlow 1.5s infinite alternate;
}

.game-message.loss {
    color: #ff0000;
    border-color: #ff0000;
    animation: lossGlow 1.5s infinite alternate;
}

.game-message.info {
    color: var(--casino-gold);
    border-color: var(--casino-gold);
    animation: infoGlow 1.5s infinite alternate;
}

@keyframes winGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); }
    100% { box-shadow: 0 0 15px rgba(0, 255, 0, 0.8); }
}

@keyframes lossGlow {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.8); }
}

@keyframes infoGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

/* History Panel */
.history-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--casino-gold);
    border-radius: var(--casino-border-radius);
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.history-title {
    color: var(--casino-gold);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--casino-transition);
}

.history-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.history-win {
    color: #00ff00;
}

.history-loss {
    color: #ff0000;
}

.history-push {
    color: #FFD700;
}

/* Verification Panel */
.verification-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--casino-gold);
    border-radius: var(--casino-border-radius);
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.verification-title {
    color: var(--casino-gold);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.seed-info {
    font-size: 0.8rem;
    word-break: break-all;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.seed-label {
    font-weight: bold;
    color: var(--casino-gold);
}

/* Stats Panel */
.stats-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--casino-gold);
    border-radius: var(--casino-border-radius);
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.stats-title {
    color: var(--casino-gold);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--casino-gold);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--casino-text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .game-area {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        padding: 0.5rem;
    }
    
    .game-table {
        padding: 1rem;
    }
    
    .table-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .balance-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .balance-item {
        min-width: auto;
        width: 100%;
    }
    
    .btn-casino {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .table-header h1 {
        font-size: 1.8rem;
    }
    
    .table-header p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .game-container {
        margin: 0.5rem;
        padding: 0.5rem;
    }
    
    .game-table {
        padding: 0.8rem;
        border-width: 2px;
    }
    
    .table-header h1 {
        font-size: 1.5rem;
    }
    
    .main-content,
    .controls-panel,
    .history-panel,
    .verification-panel,
    .stats-panel {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Coin Flip Specific Styles */
.coin-animation-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    perspective: 1000px;
}

.coin {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 3s cubic-bezier(0.4, 2.5, 0.6, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: coinFloat 3s infinite ease-in-out;
}

.coin-heads, .coin-tails {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    backface-visibility: hidden;
    background: radial-gradient(circle at 30% 30%, #f8f8f8, #d0d0d0);
    border: 8px solid #c0c0c0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.coin-heads {
    color: var(--coin-heads);
    text-shadow: 0 0 10px rgba(30, 60, 114, 0.5);
}

.coin-tails {
    color: var(--coin-tails);
    transform: rotateY(180deg);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.coin.flipping {
    animation: flip 3s cubic-bezier(0.4, 2.5, 0.6, 0.5) forwards, coinShine 0.5s infinite;
}

@keyframes flip {
    0% {
        transform: rotateY(0) scale(1);
    }
    50% {
        transform: rotateY(900deg) scale(1.2);
    }
    100% {
        transform: rotateY(1800deg) scale(1);
    }
}

.coin.result-heads {
    transform: rotateY(0);
    animation: coinLand 0.5s ease-out, coinGlow 2s infinite alternate;
}

.coin.result-tails {
    transform: rotateY(180deg);
    animation: coinLand 0.5s ease-out, coinGlow 2s infinite alternate;
}

@keyframes coinFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes coinShine {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 215, 0, 1);
    }
}

@keyframes coinLand {
    0% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes coinGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }
}

.prediction-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prediction-button {
    flex: 1;
    padding: 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.prediction-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.prediction-button:hover::before {
    left: 100%;
}

.heads-button {
    background: linear-gradient(135deg, var(--coin-heads), #2a5298);
    color: white;
}

.tails-button {
    background: linear-gradient(135deg, var(--coin-tails), #B22222);
    color: white;
}

.prediction-button.active {
    box-shadow: 0 0 20px var(--casino-gold);
    transform: scale(1.05);
}

.prediction-button i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auto-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

/* Dice Roll Specific Styles */
.dice-display {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--dice-border);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.dice-result {
    font-size: 4rem;
    font-weight: bold;
    color: var(--dice-highlight);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: dicePulse 2s infinite;
}

.dice-animation {
    position: absolute;
    font-size: 4rem;
    font-weight: bold;
    color: var(--dice-highlight);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: diceRoll 0.5s infinite;
}

@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes dicePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.dice-display.win {
    animation: diceWinGlow 1s ease-in-out infinite alternate;
}

.dice-display.loss {
    animation: diceLossGlow 1s ease-in-out infinite alternate;
}

@keyframes diceWinGlow {
    0% { box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px var(--dice-win); }
    100% { box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px var(--dice-win); }
}

@keyframes diceLossGlow {
    0% { box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px var(--dice-loss); }
    100% { box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px var(--dice-loss); }
}

.slider-container {
    margin: 2rem 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: white;
}

.slider {
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00);
    border-radius: 10px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.payout-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--dice-border);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.payout-title {
    color: var(--dice-border);
    margin-bottom: 0.5rem;
}

.payout-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dice-win);
}

.probability-display {
    font-size: 1.2rem;
    color: var(--dice-highlight);
}

/* Money Wheel Specific Styles */
.wheel-container-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    perspective: 1000px;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    animation: wheelFloat 4s infinite ease-in-out;
}

@media (max-width: 576px) {
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.16, 0.99);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    background: #1a1a1a;
    animation: wheelSpinGlow 3s infinite alternate;
}

.wheel.spinning {
    animation: none;
    transition: transform 5s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes wheelFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wheelSpinGlow {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 255, 255, 0.6); }
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.segment-content {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    transform: rotate(45deg);
    right: 20px;
    top: 20px;
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: #ff0000;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #ff0000;
    border-radius: 50%;
    border: 5px solid gold;
    z-index: 5;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.betting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.bet-button {
    padding: 1rem;
    border: 2px solid var(--wheel-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bet-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.bet-button:hover::before {
    left: 100%;
}

.bet-button:hover {
    background: rgba(255, 215, 0, 0.2);
}

.bet-button.active {
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.bet-button .multiplier {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bet-button .payout {
    font-size: 0.9rem;
    opacity: 0.8;
}

.bet-amount-controls {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
}

.bet-input {
    flex: 1;
}

/* Plinko Specific Styles */
.plinko-board {
    height: 500px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--plinko-border);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.drop-area {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px dashed var(--plinko-border);
    animation: dropAreaPulse 2s infinite;
}

.pegs-container {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 100px;
}

.peg {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--plinko-border);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    animation: pegGlow 3s infinite alternate;
}

.slots-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    border-top: 2px solid var(--plinko-border);
}

.slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.slot:last-child {
    border-right: none;
}

.slot:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.slot-multiplier {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--plinko-highlight);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    animation: multiplierPulse 2s infinite;
}

.slot-label {
    font-size: 0.8rem;
    color: white;
    margin-top: 5px;
}

.puck {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FF0000;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    z-index: 10;
    display: none;
    animation: puckFall 2s linear;
}

.puck.falling {
    display: block;
    animation: puckFall 2s linear, puckGlow 1s infinite alternate;
}

.risk-levels {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.risk-button {
    flex: 1;
    padding: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.risk-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.risk-button:hover::before {
    left: 100%;
}

.risk-low { background: #006400; color: white; }
.risk-medium { background: #00008B; color: white; }
.risk-high { background: #8B0000; color: white; }

.risk-button.active {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

.speed-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.speed-button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--plinko-border);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.speed-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.speed-button:hover::before {
    left: 100%;
}

.speed-button:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.speed-button.active {
    background: #8B0000;
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

@keyframes dropAreaPulse {
    0%, 100% { background: rgba(255, 255, 255, 0.1); }
    50% { background: rgba(255, 215, 0, 0.2); }
}

@keyframes pegGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 1); }
}

@keyframes multiplierPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes puckFall {
    0% { top: 10px; opacity: 1; }
    100% { top: 400px; opacity: 1; }
}

@keyframes puckGlow {
    0% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.8); }
    100% { box-shadow: 0 0 20px rgba(255, 0, 0, 1), 0 0 30px rgba(255, 255, 255, 0.8); }
}

/* High-impact win animations for 10% win ratio */
.winning-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.winning-animation-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.win-message-container {
    text-align: center;
    color: white;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 5px solid var(--casino-gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    animation: winMessagePulse 2s infinite;
}

@keyframes winMessagePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 50px rgba(255, 215, 0, 0.8); }
    50% { transform: scale(1.05); box-shadow: 0 0 70px rgba(255, 215, 0, 1); }
}

.win-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--casino-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 1);
    margin: 1rem 0;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--casino-gold);
    border-radius: 50%;
    animation: confettiFall 5s linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Loss psychology - minimal negative feedback */
.loss-minimal {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.loss-minimal:hover {
    opacity: 1;
}

/* Reel animations for slots */
.reel {
    font-size: 3rem;
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--casino-gold);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    margin: 0.5rem;
    min-width: 100px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel.win {
    animation: reelWinGlow 1s ease-in-out infinite alternate;
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

@keyframes reelWinGlow {
    0% { box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
    100% { box-shadow: 0 0 25px rgba(0, 255, 0, 1), 0 0 35px rgba(255, 255, 255, 0.6); }
}

/* Card animations */
.card-element {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-element.flipping {
    animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

/* Professional casino animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.game-element {
    animation: fadeInUp 0.6s ease-out;
}

.game-element.delay-1 {
    animation-delay: 0.1s;
}

.game-element.delay-2 {
    animation-delay: 0.2s;
}

.game-element.delay-3 {
    animation-delay: 0.3s;
}

.game-element.delay-4 {
    animation-delay: 0.4s;
}

.game-element.delay-5 {
    animation-delay: 0.5s;
}