/* Professional Baccarat Game Styles - Compact & Elegant */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #64b5f6;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
}

.title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #b0bec5;
    font-weight: 400;
}

/* Casino Table */
.casino-table {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shoe-info, .game-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.shoe-label, .round-label {
    color: #b0bec5;
    font-weight: 600;
}

.cards-remaining, .decks-remaining, .round-number {
    color: #4caf50;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Baccarat Table Layout */
.baccarat-table {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.banker-area, .player-area {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banker-label, .player-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banker-cards, .player-cards {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 80px;
    align-items: center;
}

.banker-total, .player-total {
    font-size: 1.5rem;
    font-weight: 900;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Middle Section */
.middle-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Betting Area */
.betting-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bet-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bet-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
}

.bet-option.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.bet-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.bet-payout {
    font-size: 0.9rem;
    color: #4caf50;
    font-weight: 600;
}

/* Bet Controls */
.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bet-amount {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bet-amount label {
    font-size: 0.9rem;
    color: #b0bec5;
    font-weight: 600;
}

#bet-input {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
}

#bet-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bet-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.bet-btn {
    padding: 0.75rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.bet-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.control-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#deal-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

#deal-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

#new-game-btn {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

#new-game-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

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

/* Game Status */
.game-status {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64b5f6;
    margin-bottom: 0.5rem;
}

.win-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4caf50;
    min-height: 2rem;
}

.win-display.win {
    animation: winPulse 0.5s ease-in-out;
}

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

/* Balance Section */
.balance-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.balance-display, .current-bet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.balance-label, .bet-label {
    font-size: 0.9rem;
    color: #b0bec5;
    font-weight: 600;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4caf50;
}

.currency {
    font-size: 1.2rem;
}

.bet-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
}

.bet-type {
    font-size: 0.9rem;
    color: #64b5f6;
    font-weight: 600;
    text-transform: uppercase;
}

.reset-balance-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-balance-btn:hover:not(:disabled) {
    background: rgba(255, 193, 7, 0.3);
    transform: scale(1.1);
}

.reset-balance-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cards */
.card {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card.red .card-value,
.card.red .card-suit {
    color: #d32f2f;
}

.card.black .card-value,
.card.black .card-suit {
    color: #212121;
}

.card-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-suit {
    font-size: 1.4rem;
}

.card.hidden {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    border-color: #9c27b0;
}

.card-back {
    font-size: 2rem;
    color: #ffffff;
}

.card-placeholder {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0.5;
}

.card.dealt {
    animation: dealCard 0.5s ease-out;
}

@keyframes dealCard {
    0% {
        transform: translateY(-100px) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateY(0deg);
        opacity: 1;
    }
}

/* Game Rules */
.game-rules {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.game-rules h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1rem;
    text-align: center;
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.rule-section {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rule-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 0.5rem;
}

.rule-section p {
    font-size: 0.9rem;
    color: #b0bec5;
    line-height: 1.4;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin-bottom: 0.5rem;
    color: #b0bec5;
}

.disclaimer {
    color: #ff9800 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .baccarat-table {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bet-options {
        grid-template-columns: 1fr;
    }
    
    .bet-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-controls {
        flex-direction: column;
    }
    
    .balance-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
    }
    
    .card {
        width: 50px;
        height: 70px;
    }
    
    .card-value {
        font-size: 1rem;
    }
    
    .card-suit {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .bet-option {
        padding: 0.75rem;
    }
    
    .control-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

