
/* Four Card Keno Styles */
#four-card-keno-game {
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.keno-container {
    display: flex;
    gap: 20px;
}

/* Left Panel Styles */
.card-info-panel {
    width: 300px;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    height: fit-content;
}

.card-info-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-title {
    font-size: 18px;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 10px;
}

.card-info {
    background: #333;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.card-info.big-win {
    background: #ffff00 !important;
    color: #000 !important;
    animation: pulse 1s infinite;
}

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

.card-label {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 5px;
    text-align: center;
    border-radius: 3px;
}

.card-info.big-win .card-label {
    background: #000 !important;
    color: #ffff00 !important;
}

.card-stats {
    font-size: 12px;
    line-height: 1.4;
}

.card-spots {
    margin-top: 5px;
    font-size: 10px;
    min-height: 20px;
}

.card-spots .hit-number {
    background: #cccc44;
    color: #000;
    padding: 1px 3px;
    border-radius: 2px;
    margin: 0 1px;
}

/* Card Colors */
.card-info[data-card="A"] .card-label { background: #00aa00; }
.card-info[data-card="B"] .card-label { background: #00ccff; color: #000; }
.card-info[data-card="C"] .card-label { background: #cc6600; }
.card-info[data-card="D"] .card-label { background: #cc0066; }

/* Main Game Area */
.game-area {
    flex: 1;
}

.card-tabs {
    display: flex;
    margin-bottom: 15px;
    gap: 5px;
}

.card-tab {
    background: #666;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s;
}

.card-tab[data-card="A"].active { background: #00aa00; }
.card-tab[data-card="B"].active { background: #00ccff; color: #000; }
.card-tab[data-card="C"].active { background: #cc6600; }
.card-tab[data-card="D"].active { background: #cc0066; }
.card-tab[data-card="ALL"].active { background: #666; }

.card-tab:hover {
    background: #888;
}

.card-tab.active:hover {
    filter: brightness(1.2);
}

/* Number Grid */
.number-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin-bottom: 20px;
    background: #333;
    padding: 10px;
    border-radius: 8px;
    height: 520px;
    align-content: start;
}

.number-button {
    width: 100%;
    height: 58px;
    background: #0066cc;
    color: #fff;
    border: 1px solid #004499;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.number-button:hover {
    background: #0088ff;
    transform: scale(1.1);
}

.number-button.selected-A {
    background: #00aa00;
    border-color: #008800;
    color: #fff;
}

.number-button.selected-B {
    background: #00ccff;
    border-color: #00aadd;
    color: #000;
}

.number-button.selected-C {
    background: #cc6600;
    border-color: #aa5500;
    color: #fff;
}

.number-button.selected-D {
    background: #cc0066;
    border-color: #aa0055;
    color: #fff;
}

.number-button.multiple-cards {
    background: #ffaa00;
    border-color: #ff8800;
    color: #000;
    position: relative;
}

.number-button.multiple-cards::after {
    content: "*";
    position: absolute;
    top: -2px;
    right: 2px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.number-button.drawn {
    background: #ff0000;
    border-color: #cc0000;
    color: #fff;
    animation: drawReveal 0.5s ease;
}

.number-button.hit {
    background: #cccc44;
    border-color: #aaaa22;
    color: #000;
    animation: hitFlash 0.8s ease;
}

@keyframes drawReveal {
    0% { transform: scale(1); background: #0066cc; }
    50% { transform: scale(1.3); background: #ffff00; }
    100% { transform: scale(1); background: #ff0000; }
}

@keyframes hitFlash {
    0% { background: #ff0000; }
    50% { background: #ffff00; }
    100% { background: #cccc44; }
}

/* Control Panel */
.control-panel {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 15px;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-controls button {
    background: #666;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.bet-controls button:hover {
    background: #888;
}

#current-bet {
    font-size: 18px;
    font-weight: bold;
    color: #ffff00;
    min-width: 30px;
    text-align: center;
}

.game-controls {
    display: flex;
    gap: 10px;
    justify-self: center;
}

.game-controls button, .game-controls select {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.game-controls button:hover, .game-controls select:hover {
    background: #0088ff;
    transform: translateY(-2px);
}

#speed-selector {
    font-size: 12px;
    padding: 10px 8px;
}

#speed-selector:hover {
    transform: none;
}

#draw-button {
    background: #ff6600 !important;
    font-size: 16px;
    padding: 12px 20px !important;
    min-width: 140px;
    white-space: nowrap;
}

#draw-button:hover {
    background: #ff8800 !important;
}

#draw-button:disabled {
    background: #666 !important;
    cursor: not-allowed;
    transform: none !important;
}

.credits-and-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credits-display {
    font-size: 18px;
    color: #ffff00;
    font-weight: bold;
}

.game-status {
    font-size: 14px;
    line-height: 1.4;
}

.game-status div {
    color: #ffff00;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .keno-container {
        flex-direction: column;
    }
    
    .card-info-panel {
        width: 100%;
    }
    
    .number-grid {
        grid-template-columns: repeat(8, 1fr);
        height: 400px;
    }
    
    .number-button {
        height: 45px;
        font-size: 12px;
    }
    
    .control-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
