body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    max-width: 600px;
}

.game-area {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 { color: var(--primary-color); margin: 0; }

.status {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

.bingo-current-number {
    margin-bottom: 15px;
}

.current-number-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-number {
    font-size: 3rem;
    font-weight: 900;
    color: #e74c3c;
    background: #fef9e7;
    border: 3px solid #f39c12;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px auto;
}

.bingo-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
}

#call-number-btn {
    padding: 10px 25px;
    font-size: 1rem;
}

.bingo-claim-btn {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bingo-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.player-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.player-tab {
    padding: 6px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    background: white;
    transition: all 0.2s;
}

.player-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.bingo-card-area {
    margin-bottom: 15px;
}

.bingo-header-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    max-width: 300px;
    margin: 0 auto 3px;
}

.bingo-header-row span {
    background: #2c3e50;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 4px;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    max-width: 300px;
    margin: 0 auto;
}

.bingo-cell {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bingo-cell:hover:not(.marked):not(.free) {
    background: #eaf2f8;
    border-color: #3498db;
}

.bingo-cell.marked {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-color: #27ae60;
}

.bingo-cell.free {
    background: #f39c12;
    color: white;
    border-color: #e67e22;
    font-size: 0.7rem;
    font-weight: 900;
}

.bingo-cell.callable {
    border-color: #3498db;
    background: #eaf6ff;
    animation: callPulse 1s ease-in-out infinite;
}

@keyframes callPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
    50% { box-shadow: 0 0 0 5px rgba(52, 152, 219, 0); }
}

.called-numbers-area {
    margin-bottom: 20px;
}

.called-numbers-area h4 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.called-numbers {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    max-height: 80px;
    overflow-y: auto;
}

.called-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ecf0f1;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.called-num.latest {
    background: #e74c3c;
    color: white;
}

.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.online-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.opponent-name {
    font-weight: 600;
    color: var(--text-muted, #666);
}

@media (max-width: 400px) {
    .bingo-cell { font-size: 0.85rem; }
    .current-number { width: 60px; height: 60px; font-size: 2rem; }
    .game-area { padding: 15px; }
}
