/* ===== ROYAL CASINO - GAME-LIKE UI ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #FFD700;
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-blue: #0f4c75;
    --neon-green: #00ff88;
    --neon-red: #ff0040;
    --text-light: #ffffff;
    --text-gold: #FFD700;
    --gradient-casino: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(45deg, #FFD700, #FFA500);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--gradient-casino);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== BACKGROUND ANIMATIONS ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-chips {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chip {
    position: absolute;
    font-size: 2rem;
    animation: float 20s infinite linear;
    opacity: 0.3;
}

.chip-1 { left: 10%; animation-delay: 0s; }
.chip-2 { left: 20%; animation-delay: 4s; }
.chip-3 { left: 30%; animation-delay: 8s; }
.chip-4 { left: 70%; animation-delay: 12s; }
.chip-5 { left: 80%; animation-delay: 16s; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* ===== MAIN CONTAINER ===== */
.casino-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== SCREEN SYSTEM ===== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    padding: 20px;
}

.screen.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.screen.slide-left {
    transform: translateX(-100%);
}

.screen-content {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

/* ===== LOGIN SCREEN ===== */
.casino-logo {
    margin-bottom: 40px;
}

.neon-text {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: neonGlow 2s ease-in-out infinite alternate;
    margin-bottom: 10px;
}

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

.subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--text-gold);
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.login-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-gold);
}

.login-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* ===== PLAYER SELECTOR ===== */
.player-selector {
    position: relative;
    margin-bottom: 30px;
}

.fancy-select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1.1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fancy-select option {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 10px;
    border: none;
}

.fancy-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-gold);
    font-size: 1.2rem;
}

/* ===== BUTTONS ===== */
.big-btn {
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    height: 70px; /* Consistent height for all buttons */
    width: 100%; /* Let grid handle the width */
}

.big-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.big-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.enter-btn {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: 2px solid var(--primary-gold);
}

.play-btn {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: var(--primary-dark);
}

.cashout-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.deal-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.confirm-btn {
    background: linear-gradient(45deg, #ffd93d, #ff6b6b);
    color: var(--primary-dark);
}

.new-game-btn {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
}



/* ===== MENU ACTIONS - CSS GRID MAGIC ===== */
.menu-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Desktop: 2 columns for perfect layout */
@media (min-width: 769px) {
    .menu-actions {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px; /* Two columns of ~280px each + gap */
    }
}

/* Large screens: Allow 3 columns if needed */
@media (min-width: 1200px) {
    .menu-actions {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 900px;
    }
}

.small-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.small-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== CONVERSION INFO ===== */
.conversion-info {
    margin-top: 30px;
}

.info-card {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--neon-green);
}

/* ===== MAIN MENU SCREEN ===== */
.player-welcome {
    margin-bottom: 40px;
}

.player-avatar {
    font-size: 4rem;
    margin-bottom: 20px;
}

.chip-balance {
    margin-top: 20px;
}

.balance-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rouble-equivalent {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Refresh button for mail deposits */
.refresh-btn {
    background: linear-gradient(45deg, #00ff88, #00cc66);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    margin-left: 10px;
}

.refresh-btn:hover {
    background: linear-gradient(45deg, #00cc66, #00ff88);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

/* Chips with Button Layout */
.chips-with-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chips-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rouble-equivalent {
    text-align: center;
}

/* Add Chips Button */
.add-chips-btn {
    background: linear-gradient(45deg, #2ed573, #1dd1a1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
    flex-shrink: 0;
}

.add-chips-btn:hover {
    background: linear-gradient(45deg, #1dd1a1, #2ed573);
    box-shadow: 0 6px 20px rgba(46, 213, 115, 0.5);
    transform: translateY(-2px) scale(1.05);
}



/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--gradient-dark);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px 30px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    color: var(--text-gold);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--neon-red);
}

.modal-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deposit-instructions {
    flex: 1;
}

.modal-actions-top {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 20px;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 25px;
}

.instruction-card h3 {
    color: var(--text-gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.instruction-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.instruction-steps {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 20px;
}

.instruction-steps li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.instruction-steps li strong {
    color: var(--text-gold);
}

.conversion-info {
    background: rgba(46, 213, 115, 0.1);
    border: 2px solid rgba(46, 213, 115, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.conversion-rate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--neon-green);
}

.important-warning {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    color: #ff6b6b;
    font-weight: 500;
}

.important-warning i {
    margin-right: 8px;
    color: #ff4757;
}

.example-amounts {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.example-amounts h4 {
    color: var(--text-gold);
    margin-bottom: 10px;
    font-size: 1rem;
}

.example-amounts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-amounts li {
    padding: 5px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.example-amounts li:last-child {
    border-bottom: none;
}



.refresh-btn-modal {
    background: linear-gradient(45deg, #00ff88, #00cc66);
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.refresh-btn-modal:hover {
    background: linear-gradient(45deg, #00cc66, #00ff88);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.refresh-btn-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.refresh-btn-modal.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.refresh-btn-modal.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: buttonSpin 1s linear infinite;
    margin-right: 8px;
}

.refresh-btn-modal.loading i {
    display: none;
}

@keyframes buttonSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BETTING SCREEN ===== */
.betting-header {
    margin-bottom: 40px;
}

.balance-indicator {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-top: 10px;
}

.betting-area {
    margin-bottom: 40px;
}

.bet-input-section {
    margin-bottom: 30px;
}

.bet-input-section label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-gold);
}

.bet-input {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.bet-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.rouble-conversion {
    font-size: 1.1rem;
    color: var(--neon-green);
}

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

.quick-bet {
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: var(--primary-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.quick-bet:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.betting-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== GAME SCREEN ===== */
.game-header {
    margin-bottom: 30px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 215, 0, 0.1);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

.game-table {
    background: rgba(0, 100, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    position: relative;
}

.dealer-section,
.player-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.vs-divider {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.card-area {
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #333;
    padding: 25px 18px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) rotateY(0) rotateZ(0) scale(1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.card.dealing {
    animation: cardDeal 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-fill-mode: both;
}

.card.flipping {
    animation: cardFlip 1.0s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-fill-mode: both;
}

.card.hidden {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    color: #ecf0f1;
    border: 2px solid #7f8c8d;
}

.card.red {
    color: #dc3545;
}

@keyframes cardDeal {
    0% {
        transform: translateY(-400px) translateX(-200px) rotateY(180deg) rotateZ(60deg) scale(0.2);
        opacity: 0;
        filter: blur(8px);
    }
    15% {
        opacity: 0.6;
        filter: blur(4px);
    }
    35% {
        transform: translateY(-120px) translateX(-80px) rotateY(135deg) rotateZ(35deg) scale(0.6);
        opacity: 0.9;
        filter: blur(2px);
    }
    60% {
        transform: translateY(15px) translateX(20px) rotateY(20deg) rotateZ(-10deg) scale(1.1);
        opacity: 1;
        filter: blur(0px);
    }
    75% {
        transform: translateY(-8px) translateX(-8px) rotateY(-5deg) rotateZ(3deg) scale(0.92);
    }
    85% {
        transform: translateY(4px) translateX(3px) rotateY(2deg) rotateZ(-1deg) scale(1.03);
    }
    95% {
        transform: translateY(-1px) translateX(-1px) rotateY(-0.5deg) rotateZ(0.2deg) scale(0.99);
    }
    100% {
        transform: translateY(0) translateX(0) rotateY(0) rotateZ(0) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes cardFlip {
    0% { 
        transform: rotateY(0) scale(1);
        filter: brightness(1);
    }
    20% {
        transform: rotateY(36deg) scale(1.02);
        filter: brightness(1.1);
    }
    50% { 
        transform: rotateY(90deg) scale(1.08);
        filter: brightness(1.2);
    }
    80% {
        transform: rotateY(144deg) scale(1.02);
        filter: brightness(1.1);
    }
    100% { 
        transform: rotateY(180deg) scale(1);
        filter: brightness(1);
    }
}

.hand-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.game-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.game-btn {
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.hit-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.stand-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

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

.game-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.game-btn.processing {
    background: linear-gradient(45deg, #ff9500, #ffb347);
    animation: processingPulse 1.5s infinite;
    pointer-events: none;
}

@keyframes processingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 149, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 149, 0, 0.5);
    }
}

.game-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    animation: resultFadeIn 0.5s ease-out;
}

@keyframes resultFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.result-content {
    text-align: center;
    padding: 40px;
}

.result-text {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 30px currentColor;
}

.win-amount {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--neon-green);
}

/* ===== GAME RESULTS SCREEN ===== */
.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-outcome {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 30px currentColor;
    animation: resultPulse 2s ease-in-out;
}

.game-outcome.win {
    color: var(--neon-green);
}

.game-outcome.lose {
    color: #ff6b6b;
}

.game-outcome.push {
    color: var(--primary-gold);
}

.game-outcome.blackjack {
    color: #ff9500;
}

.game-outcome-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

@keyframes resultPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.final-hands {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.final-hand {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.final-hand h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.final-card-area {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.final-card-area .card {
    animation: none; /* No dealing animation for final display */
    transform: scale(0.9); /* Slightly smaller for summary view */
}

.final-hand-value {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin-top: 15px;
}

.value-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 5px;
}

.value-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.vs-divider-final {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    text-shadow: 0 0 20px var(--primary-gold);
    margin: 0 20px;
    align-self: center;
}

.bet-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: center;
}

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

.bet-amount {
    font-size: 1.2rem;
    color: var(--text-light);
}

.payout-info {
    font-size: 1.3rem;
    font-weight: bold;
}

.payout-value.positive {
    color: var(--neon-green);
}

.payout-value.negative {
    color: #ff6b6b;
}

.payout-value.neutral {
    color: var(--primary-gold);
}

.chip-balance-change {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.balance-before, .balance-after {
    font-size: 1.1rem;
}

.balance-before {
    color: rgba(255, 255, 255, 0.7);
}

.balance-after {
    color: var(--neon-green);
    font-weight: bold;
}

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.play-again-btn {
    background: linear-gradient(45deg, var(--neon-green), #45b7aa);
}

/* ===== CASH OUT SCREEN ===== */
.cashout-header {
    margin-bottom: 40px;
}

.cashout-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.balance-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    min-width: 200px;
}

.balance-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.rouble-card .balance-amount {
    color: var(--neon-green);
}

.conversion-arrow {
    font-size: 2rem;
    color: var(--primary-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cashout-controls {
    margin-bottom: 40px;
}

.amount-input-section {
    margin-bottom: 30px;
}

.cashout-input {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.conversion-display {
    font-size: 1.2rem;
    color: var(--neon-green);
    font-weight: bold;
}

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

.quick-cashout {
    padding: 12px 20px;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.quick-cashout:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
    }

.cashout-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    }

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: var(--text-light);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--primary-gold);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: rgba(26, 26, 46, 0.95);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: all 0.3s ease;
    opacity: 0;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: var(--neon-green);
}

.toast.error {
    border-left-color: var(--neon-red);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    * {
        box-sizing: border-box !important;
    }
    
    html, body {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .casino-container {
        padding: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
        width: 100vw !important;
        max-width: none !important;
        min-height: 100vh !important;
        position: relative !important;
    }
    
    .screen {
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }
    
    .screen-content {
        padding: 20px 15px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-width: none !important;
        width: 100vw !important;
        min-height: 100vh !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none !important;
        height: 100vh !important;
        overflow-y: auto !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* Ensure all specific screens use full width */
    #loginScreen,
    #mainMenuScreen,
    #bettingScreen,
    #gameScreen,
    #resultsScreen {
        width: 100%;
    }
    
    /* Compact mobile intro - ONLY for login screen */
    #loginScreen .casino-logo {
        margin-bottom: 15px;
    }
    
    #loginScreen .neon-text {
        font-size: 2.8rem;
        margin-bottom: 10px;
        line-height: 1.1;
    }
    
    #loginScreen .player-selector {
        margin-bottom: 20px;
    }
    
    /* Dynamic login screen - scales with screen height */
    #loginScreen .subtitle {
        display: none;
    }
    
    #loginScreen .tagline {
        display: none;
    }
    
    /* Scale welcome message based on screen height */
    #loginScreen .login-panel h2 {
        font-size: clamp(1.2rem, 3vh, 2rem);
        margin-bottom: clamp(10px, 2vh, 20px);
    }
    
    /* Make login description more concise */
    #loginScreen .login-desc {
        display: none;
    }
    
    /* Dynamic mobile-only description */
    #loginScreen .player-selector::before {
        content: "Select your player profile:";
        display: block;
        font-size: clamp(1rem, 2vh, 1.3rem);
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: clamp(10px, 2vh, 20px);
        text-align: center;
    }
    
    #loginScreen .login-panel::after {
        display: none;
    }
    
    .neon-text {
        font-size: clamp(1.5rem, 4vh, 2.5rem);
    }
    
    /* Dynamic conversion info scaling */
    #loginScreen .conversion-info {
        padding: clamp(6px, 1.5vh, 12px) clamp(10px, 2vh, 16px);
        margin: clamp(10px, 2vh, 20px) auto;
        border-radius: 8px;
        font-size: clamp(0.8rem, 1.5vh, 1rem);
        max-width: clamp(250px, 50vh, 350px);
        transform: scale(clamp(0.8, 0.8 + 0.4 * (100vh - 500px) / 400, 1.2));
    }
    
    #loginScreen .info-card {
        padding: clamp(4px, 1vh, 10px) clamp(8px, 1.5vh, 12px);
    }
    
    #loginScreen .big-btn {
        padding: clamp(15px, 3vh, 25px) clamp(25px, 5vh, 40px);
        font-size: clamp(1rem, 2vh, 1.4rem);
        min-width: clamp(200px, 40vh, 300px);
        margin: clamp(10px, 2vh, 20px) auto;
        display: block;
        width: 90%;
        max-width: clamp(300px, 60vh, 400px);
        min-height: clamp(45px, 6vh, 65px);
    }
    
    #loginScreen .fancy-select {
        padding: clamp(14px, 3vh, 22px) clamp(16px, 3vh, 24px);
        font-size: clamp(1rem, 2vh, 1.3rem);
        width: 100%;
        max-width: clamp(300px, 60vh, 400px);
        min-height: clamp(45px, 6vh, 65px);
    }
    
    /* Ensure game screens have proper spacing */
    #gameScreen .screen-content,
    #bettingScreen .screen-content,
    #resultsScreen .screen-content,
    #mainMenuScreen .screen-content {
        padding: 25px 20px;
    }
    
    /* Fix game elements */
    .game-info {
        font-size: 1.2rem;
    }
    
    .balance-display {
        font-size: 1.3rem;
    }
    
    .bet-input {
        padding: 15px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }
    
    /* Mobile: Single column grid */
    .menu-actions {
        grid-template-columns: 1fr;
        gap: clamp(12px, 2vh, 20px);
        padding: 0 clamp(15px, 5vw, 30px);
    }
    
    /* Dynamic menu buttons scaling for mobile */
    .menu-actions .big-btn {
        padding: clamp(15px, 3vh, 25px) clamp(25px, 5vh, 40px);
        font-size: clamp(1.1rem, 2.2vh, 1.5rem);
        height: clamp(50px, 8vh, 70px);
    }
    
    /* Dynamic card sizing for non-blackjack games */
    .card:not(.game-table .card) {
        padding: clamp(14px, 2.5vh, 22px) clamp(10px, 2vh, 16px);
        font-size: clamp(1rem, 2vh, 1.3rem);
        min-width: clamp(50px, 8vh, 70px);
        min-height: clamp(60px, 10vh, 85px);
    }
    
    /* Dynamic game controls scaling */
    .game-controls button {
        padding: clamp(12px, 2.5vh, 22px) clamp(20px, 4vh, 30px);
        font-size: clamp(1rem, 2vh, 1.3rem);
        margin: clamp(5px, 1vh, 10px);
        min-width: clamp(100px, 20vh, 150px);
        min-height: clamp(40px, 5vh, 60px);
    }
    
    /* Dynamic mobile blackjack - scales based on screen height */
    .game-header {
        margin-bottom: clamp(5px, 1vh, 15px) !important;
        padding: clamp(5px, 1vh, 12px) 10px !important;
    }
    
    .game-info {
        gap: 15px !important;
        font-size: clamp(0.85rem, 2vh, 1.1rem) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .current-bet,
    .remaining-chips {
        font-size: clamp(0.8rem, 1.8vh, 1rem) !important;
        margin: 0 !important;
    }
    
    .game-table {
        padding: clamp(6px, 1.5vh, 15px) 10px !important;
        margin: clamp(3px, 1vh, 10px) 0 !important;
        gap: clamp(3px, 1vh, 8px) !important;
        height: clamp(300px, 60vh, 500px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    .dealer-section,
    .player-section {
        padding: clamp(6px, 1.5vh, 12px) !important;
        margin: clamp(2px, 0.5vh, 6px) 0 !important;
        border-radius: 8px;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .dealer-section h3,
    .player-section h3 {
        font-size: clamp(0.85rem, 2vh, 1.1rem) !important;
        margin-bottom: clamp(3px, 1vh, 8px) !important;
    }
    
    .card-area {
        min-height: clamp(45px, 8vh, 80px) !important;
        margin: clamp(3px, 1vh, 8px) 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex: 1 !important;
    }
    
    .card {
        padding: clamp(10px, 2vh, 18px) clamp(6px, 1.5vh, 12px) !important;
        font-size: clamp(0.85rem, 2vh, 1.2rem) !important;
        min-width: clamp(40px, 8vh, 55px) !important;
        margin: clamp(1px, 0.3vh, 4px) !important;
        height: clamp(50px, 10vh, 75px) !important;
        width: clamp(40px, 8vh, 55px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hand-value {
        font-size: clamp(0.8rem, 1.8vh, 1rem) !important;
        margin-top: clamp(3px, 0.5vh, 6px) !important;
        margin-bottom: 0 !important;
    }
    
    .vs-divider {
        font-size: clamp(0.9rem, 2vh, 1.3rem) !important;
        margin: clamp(2px, 0.5vh, 6px) 0 !important;
        padding: clamp(2px, 0.5vh, 5px) 0 !important;
        flex-shrink: 0 !important;
    }
    
    .game-controls {
        margin: clamp(5px, 1vh, 12px) 0 !important;
        padding: clamp(6px, 1vh, 12px) 10px !important;
        flex-shrink: 0 !important;
    }
    
    .game-controls button {
        padding: clamp(10px, 2vh, 18px) clamp(15px, 3vh, 25px) !important;
        font-size: clamp(0.9rem, 2vh, 1.2rem) !important;
        margin: clamp(2px, 0.5vh, 5px) !important;
        min-width: clamp(90px, 18vh, 130px) !important;
        height: clamp(40px, 6vh, 55px) !important;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .cashout-info {
        flex-direction: column;
    }
    
    .menu-actions,
    .betting-actions,
    .cashout-actions,
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-bet-buttons,
    .quick-cashout-buttons {
        justify-content: center;
    }

    /* Results screen mobile adjustments */
    .game-outcome {
        font-size: 2.5rem;
    }

    .final-hands {
        flex-direction: column;
        gap: 20px;
    }
    
    .vs-divider-final {
        font-size: 1.8rem;
        margin: 10px 0;
    }

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

    .chip-balance-change {
        flex-direction: column;
        gap: 10px;
    }

    /* Fix betting buttons on mobile */
    .betting-actions {
        position: relative;
        z-index: 10;
        padding: 15px 0;
        background: rgba(26, 26, 46, 0.95);
        border-radius: 15px;
        margin-top: 20px;
    }
    
    .betting-actions .big-btn {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        display: block;
    }
    
    /* Fix game controls visibility */
    .game-controls {
        position: relative;
        z-index: 10;
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 20px 10px;
        background: rgba(26, 26, 46, 0.95);
        border-radius: 15px;
        margin-top: 20px;
        width: 100%;
    }
    
    .game-controls .game-btn {
        flex: 1;
        max-width: 150px;
        padding: 15px 20px;
        font-size: 1rem;
        min-height: 60px;
    }
    
    /* Ensure game result doesn't overlap controls */
    .game-result {
        position: relative;
        margin-top: 20px;
    }
    
    /* Fix quick bet buttons */
    .quick-bet-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
        max-width: 100%;
    }
    
    .quick-bet {
        padding: 12px 10px;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    /* Fix bet input section */
    .bet-input-section {
        padding: 0 10px;
    }
    
    .bet-input {
        font-size: 1.2rem;
        padding: 12px;
        max-width: 100%;
    }
    
    /* Ensure screens don't overlap */
    .screen {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .screen-content {
        min-height: auto;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    /* Fix game table layout */
    .game-table {
        padding: 20px 10px;
        margin-bottom: 20px;
    }
    
    /* Make cards smaller on mobile */
    .card {
        padding: 20px 14px;
        font-size: 1.2rem;
        min-width: 60px;
    }
    
    /* Fix VS divider */
    .vs-divider {
        font-size: 1.5rem;
        margin: 15px 0;
    }
    
    /* Ensure proper spacing */
    .dealer-section,
    .player-section {
        padding: 15px;
        margin: 10px 0;
    }
    
    /* Fix hand value display */
    .hand-value {
        font-size: 1.1rem;
        margin-top: 10px;
    }
    
    /* Improve button touch targets */
    button {
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.2);
        touch-action: manipulation;
    }
    
    /* Fix z-index issues */
    .betting-screen .screen-content,
    .gameScreen .screen-content {
        position: relative;
        z-index: 1;
    }
}

/* ===== ROULETTE SPECIFIC STYLES ===== */

.roulette-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
}

.roulette-btn:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b) !important;
    transform: translateY(-3px);
}

.roulette-betting-area {
    margin-bottom: 30px;
}

.roulette-bet-types {
    margin: 30px 0;
}

.roulette-bet-types h3 {
    color: var(--text-gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.bet-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    }
    
.bet-type-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
        padding: 15px 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.bet-type-btn:hover {
    border-color: var(--text-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.bet-type-btn.selected {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.bet-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-gold);
}

.bet-payout {
    font-size: 0.9rem;
    color: var(--neon-green);
    font-weight: 500;
}

.bet-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.bet-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.red-bet {
    background: linear-gradient(45deg, #ff4757, #ff3838);
}

.black-bet {
    background: linear-gradient(45deg, #2f3542, #57606f);
}

/* 3D Roulette Wheel Container */
.wheel-3d-container {
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 0 auto 20px;
    background: radial-gradient(circle, #2f3542 0%, #1e272e 100%);
    border: 5px solid var(--text-gold);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.wheel-status {
    text-align: center;
    margin-top: 20px;
}

.status-text {
    font-size: 1.2rem;
    color: var(--text-gold);
    margin-bottom: 10px;
}

.winning-number {
    background: var(--gradient-gold);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-dark);
    display: inline-block;
    animation: winNumberPulse 1s ease-in-out infinite alternate;
}

@keyframes winNumberPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.roulette-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spin-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
}

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

.spin-btn.spinning {
    background: linear-gradient(45deg, #ffa502, #ff6348);
    animation: spinButtonPulse 0.5s ease-in-out infinite alternate;
}

@keyframes spinButtonPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Roulette Game Header */
.roulette-game-header {
    margin-bottom: 30px;
}

.roulette-game-header .game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Roulette Results Screen */
.roulette-final-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.winning-number-display,
.player-bet-display {
    flex: 1;
    text-align: center;
}

.winning-number-display h3,
.player-bet-display h3 {
    color: var(--text-gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.final-number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.final-winning-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-light);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.final-number-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.final-number-color.red {
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
}

.final-number-color.black {
    background: linear-gradient(45deg, #2f3542, #57606f);
    color: white;
}

.final-number-color.green {
    background: linear-gradient(45deg, #2ed573, #1e90ff);
    color: white;
}

.number-properties {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.final-bet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.final-bet-type {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-gold);
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.final-bet-amount {
    font-size: 1.2rem;
    color: var(--text-light);
}

.bet-outcome {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.bet-result.win {
    color: var(--neon-green);
    font-weight: bold;
}

.bet-result.lose {
    color: var(--neon-red);
    font-weight: bold;
}

/* Responsive adjustments for roulette */
@media (max-width: 768px) {
    .wheel-3d-container {
        max-width: 350px;
        height: 350px;
    }
    
    .bet-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .bet-type-btn {
        min-height: 80px;
        padding: 10px 5px;
    }
    
    .bet-name {
        font-size: 1rem;
    }
    
    .roulette-game-header .game-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .roulette-final-results {
        flex-direction: column;
        gap: 20px;
    }
    
    .final-winning-number {
        font-size: 2.5rem;
    }
    
    .final-bet-type {
        font-size: 1.5rem;
    }
    
    /* Modal responsive adjustments */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .instruction-card {
        padding: 20px;
    }
    
    .example-amounts li {
        font-size: 0.9rem;
    }
    
    .instruction-steps {
        padding-left: 15px;
        font-size: 0.9rem;
    }
    
    .instruction-steps li {
        margin-bottom: 6px;
    }
    
    .chips-with-button {
        gap: 8px;
    }
    
    .chips-text {
        gap: 6px;
    }
    
    .add-chips-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ===== AD CLICKER GAME STYLES ===== */
.ad-clicker-btn {
    background: linear-gradient(45deg, #ff6ec7, #7873f5);
    color: white;
}

.ad-clicker-btn:hover {
    background: linear-gradient(45deg, #ff5eb3, #6a5ff0);
}

.ad-clicker-content {
    max-width: 1200px;
}

.ad-clicker-header {
    margin-bottom: 30px;
}

.ad-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin: 10px 0 20px;
}

.ad-earnings-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.earnings-today {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
}

.ad-streak {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
}

.ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-height: 500px;
    min-height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    width: 100%;
}

.fake-ad {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border: 3px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333;
    text-align: left;
}

.fake-ad:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fake-ad.clicked {
    background: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.fake-ad.clicked::after {
    content: 'CLICKED!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.5);
    z-index: 10;
}

.ad-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff0066;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ad-content {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

.ad-cta {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 0.85rem;
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ad-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.ad-clicker-footer {
    text-align: center;
}

.ad-warning {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-style: italic;
}

/* Ad Reward Popup */
.ad-reward-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.98);
    border: 3px solid var(--primary-gold);
    border-radius: 20px;
    padding: 40px;
    z-index: 1000;
    text-align: center;
    animation: rewardBounce 0.5s ease-out;
}

@keyframes rewardBounce {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.reward-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.reward-text {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--text-gold);
}

.reward-message {
    font-size: 1rem;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Scrollbar styling for ads container */
.ads-container::-webkit-scrollbar {
    width: 10px;
}

.ads-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.ads-container::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 5px;
}

.ads-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.ads-container::-webkit-scrollbar {
    width: 10px;
}

.ads-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.ads-container::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 5px;
}

.ads-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .ads-container {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .ad-earnings-display {
        flex-direction: column;
        gap: 10px;
    }
}

/* Desktop specific fixes */
@media (min-width: 769px) {
    .ads-container {
        grid-template-columns: repeat(3, 1fr);
        min-height: 400px;
        max-height: 600px;
    }
    
    .fake-ad {
        min-height: 180px;
    }
}

/* ===== POKER STYLES ===== */
.poker-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 25px;
    margin: 0 5px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.poker-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.poker-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.fold-btn {
    background: linear-gradient(45deg, #ff4757, #ff3838);
}

.call-btn {
    background: linear-gradient(45deg, #2ed573, #1dd1a1);
}

.raise-btn {
    background: linear-gradient(45deg, #ffa502, #ff6348);
}

.all-in-btn {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    animation: allInPulse 2s infinite;
}

@keyframes allInPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(142, 68, 173, 0.6); }
}

.poker-info-panel {
    margin: 20px 0;
}

.game-info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.game-info-card h3 {
    color: var(--text-gold);
    margin-bottom: 10px;
}

.bot-hints {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.hint {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.buy-in-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.poker-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.game-phase {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-gold);
}

.pot-display {
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-top: 5px;
}

.player-chips-display {
    font-size: 1.1rem;
    color: white;
}

.poker-table {
    display: grid;
    grid-template-areas: 
        "community community community"
        "opponent1 opponent2 opponent3"
        "player player player";
    grid-template-rows: auto auto 1fr;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 400px;
}

.community-cards {
    grid-area: community;
    text-align: center;
}

.community-cards h3 {
    color: var(--text-gold);
    margin-bottom: 15px;
}

.community-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-placeholder {
    width: 60px;
    height: 84px;
    border: 2px dashed rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.card-placeholder.revealed {
    border: 2px solid var(--text-gold);
    background: white;
    color: black;
    transform: scale(1.05);
}

.opponents-area {
    grid-area: opponent1 / opponent1 / opponent3 / opponent3;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

.opponent-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opponent {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 150px;
}

.opponent.folded {
    opacity: 0.5;
    border-color: rgba(255, 64, 64, 0.5);
}

.opponent.all-in {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.opponent-name {
    font-weight: bold;
    color: var(--text-gold);
    margin-bottom: 8px;
}

.opponent-chips {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 8px;
}

.opponent-status {
    font-size: 0.8rem;
    color: var(--neon-green);
    margin-bottom: 10px;
}

.opponent-cards {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.card-back {
    font-size: 1.5rem;
    opacity: 0.7;
}

.player-poker-section {
    grid-area: player;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid var(--text-gold);
}

.player-info {
    text-align: center;
    margin-bottom: 15px;
}

.player-info h3 {
    color: var(--text-gold);
    margin-bottom: 10px;
}

.player-chips, .player-bet {
    margin: 5px 0;
    color: white;
}

.player-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.player-card {
    width: 70px;
    height: 98px;
    border: 2px solid var(--text-gold);
    border-radius: 10px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    animation: cardDealPoker 0.5s ease-out;
}

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

.card-rank {
    font-size: 1.1rem;
    font-weight: bold;
}

.card-suit {
    font-size: 1.3rem;
    margin-top: 2px;
}

.card-suit.red {
    color: #dc3545;
}

.card-suit.black {
    color: #212529;
}

.poker-controls {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.current-bet-info {
    font-size: 1.1rem;
    color: var(--text-gold);
    font-weight: bold;
}

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

.raise-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.raise-controls label {
    color: var(--text-gold);
    font-weight: bold;
}

.raise-controls input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    width: 100px;
}

.confirm-raise-btn {
    background: linear-gradient(45deg, #ffa502, #ff6348);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.poker-game-status {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.status-text {
    font-size: 1.1rem;
    color: var(--neon-green);
    font-weight: bold;
}

/* Poker Results Styles */
.poker-final-results {
    margin: 30px 0;
}

.winner-display {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px solid var(--text-gold);
}

.winner-info {
    margin-top: 15px;
}

.winner-name {
    font-size: 1.5rem;
    color: var(--text-gold);
    font-weight: bold;
    margin-bottom: 10px;
}

.winning-hand {
    font-size: 1.2rem;
    color: var(--neon-green);
}

.final-hands-poker {
    display: grid;
    gap: 20px;
}

.final-community {
    text-align: center;
    margin-bottom: 20px;
}

.final-community h4 {
    color: var(--text-gold);
    margin-bottom: 15px;
}

.all-player-hands {
    display: grid;
    gap: 20px;
}

.final-hand {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.final-hand h4 {
    color: var(--text-gold);
    margin-bottom: 15px;
    text-align: center;
}

.final-card-area {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.final-card {
    width: 50px;
    height: 70px;
    border: 1px solid var(--text-gold);
    border-radius: 8px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: black;
}

.hand-ranking {
    text-align: center;
    font-weight: bold;
    color: var(--neon-green);
}

.revealed-bot-hands {
    display: grid;
    gap: 15px;
}

.bot-final {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.poker-bet-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.pot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.final-pot {
    font-size: 1.3rem;
    color: var(--text-gold);
    font-weight: bold;
}

.your-winnings {
    font-size: 1.2rem;
}

.winnings-value {
    font-weight: bold;
    color: var(--neon-green);
}

.net-change {
    font-weight: bold;
    font-size: 1.1rem;
}

.net-change.positive {
    color: var(--neon-green);
}

.net-change.negative {
    color: var(--neon-red);
}

.personality-reveals {
    margin: 30px 0;
}

.personality-reveals h3 {
    color: var(--text-gold);
    text-align: center;
    margin-bottom: 20px;
}

.personality-cards {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.personality-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease;
}

.personality-card:hover {
    transform: translateY(-5px);
}

.personality-header {
    text-align: center;
    margin-bottom: 15px;
}

.personality-header h4 {
    color: var(--text-gold);
    margin-bottom: 8px;
}

.personality-archetype {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.personality-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}

.trait {
    background: rgba(0, 255, 136, 0.2);
    color: var(--neon-green);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.personality-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    text-align: center;
    font-style: italic;
}

/* Mobile Responsive Poker Styles */
@media (max-width: 768px) {
    .poker-table {
        grid-template-areas: 
            "community"
            "opponent1"
            "opponent2" 
            "opponent3"
            "player";
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .opponents-area {
        grid-area: unset;
        flex-direction: column;
        gap: 15px;
    }
    
    .opponent {
        min-width: 120px;
        padding: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .poker-btn {
        margin: 5px 0;
        justify-content: center;
    }
    
    .community-area {
        gap: 5px;
    }
    
    .card-placeholder,
    .final-card {
        width: 40px;
        height: 56px;
        font-size: 0.8rem;
    }
    
    .player-card {
        width: 50px;
        height: 70px;
        font-size: 1rem;
    }
    
    .personality-cards {
        grid-template-columns: 1fr;
    }
    
    .pot-info {
        flex-direction: column;
        text-align: center;
    }
    
    .poker-game-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .raise-controls {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ===== ANALYSIS SECTION ===== */
.analysis-section {
    margin: 20px 0;
}

.analysis-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.analysis-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #357abd, #2968a3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

.analysis-options {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.analysis-options.show {
    opacity: 1;
    transform: translateY(0);
}

.analysis-option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.analysis-option-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    transform: translateX(5px);
}

.analysis-option-btn span {
    font-weight: 500;
    color: var(--text-gold);
}

.analysis-option-btn small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ===== ANALYSIS RESULTS SCREEN ===== */
.analysis-header {
    text-align: center;
    margin-bottom: 30px;
}

.analysis-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    color: var(--text-gold);
    margin-bottom: 10px;
}

.analysis-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.analysis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-gold);
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analysis-content {
    margin-bottom: 30px;
}

.ai-analysis-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.analysis-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.analysis-card-header h3 {
    color: var(--text-gold);
    font-size: 1.3rem;
}

.analysis-type-badge {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analysis-text {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.loading-dots {
    text-align: center;
    color: var(--text-gold);
}

.dots {
    display: inline-block;
    margin-left: 5px;
}

.dots span {
    animation: loadingDots 1.5s infinite;
}

.dots span:nth-child(2) {
    animation-delay: 0.5s;
}

.dots span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes loadingDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.recent-games-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.recent-games-summary h3 {
    color: var(--text-gold);
    margin-bottom: 15px;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
}

.game-result {
    font-weight: bold;
}

.game-result.win {
    color: var(--neon-green);
}

.game-result.lose, .game-result.bust {
    color: var(--neon-red);
}

.game-result.push {
    color: var(--text-gold);
}

.analysis-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.share-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.share-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #20c997, #17a2b8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* ===== MOBILE ANALYSIS STYLES ===== */
@media (max-width: 768px) {
    .analysis-options {
        gap: 8px;
    }
    
    .analysis-option-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .analysis-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .analysis-card-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .analysis-text {
        font-size: 0.9rem;
        max-height: 300px;
    }
    
    .analysis-actions {
        flex-direction: column;
    }
    
    .analysis-actions .big-btn {
        width: 100%;
    }
}

/* ===== DEBUG PANEL ===== */
.debug-panel {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.debug-toggle {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 165, 0, 0.1);
    border: none;
    color: #FFA500;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.debug-toggle:hover {
    background: rgba(255, 165, 0, 0.2);
}

.debug-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.debug-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.debug-content {
    padding: 20px;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.debug-content h4 {
    color: #FFA500;
    margin-bottom: 20px;
    text-align: center;
}

.debug-content h5 {
    color: var(--text-gold);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.debug-stats, .debug-games, .debug-api {
    margin-bottom: 20px;
}

.debug-content pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #00ff88;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* Custom scrollbar for debug content */
.debug-content pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.debug-content pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.debug-content pre::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 4px;
}

.debug-content pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.7);
} 