/* ========== BINGO GAME STYLES ========== */

.bingo-layout {
    display: flex;
    gap: 20px;
    height: calc(100% - 80px);
}

.bingo-left {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bingo-right {
    flex: 1;
    overflow: hidden;
}

.bingo-current-section {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
}

.bingo-label {
    color: var(--text-muted);
    font-size: .75rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bingo-main-ball {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #444, #222);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.5), inset 0 -3px 10px rgba(0,0,0,.3), inset 0 3px 10px rgba(255,255,255,.1);
}

.ball-letter {
    font-family: Orbitron;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.ball-number {
    font-family: Orbitron;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-muted);
}

.bingo-counter {
    font-family: Orbitron;
    color: var(--text-muted);
    margin-top: 10px;
    font-size: .9rem;
}

.bingo-history-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    flex: 1;
    overflow: hidden;
}

.bingo-history {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.bingo-history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-card);
    border-radius: 8px;
    font-family: Orbitron;
    font-size: .85rem;
}

.bingo-history-item .h-ball {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: .75rem;
}

.bingo-board-compact {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bingo-header-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.bingo-header-cell {
    padding: 8px;
    text-align: center;
    font-family: Orbitron;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border-radius: 6px;
}

.bingo-numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    flex: 1;
}

.bingo-num-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 4px;
    font-family: Orbitron;
    font-size: .7rem;
    color: var(--text-muted);
    transition: all .3s;
}

.bingo-num-cell.called {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 0 8px rgba(249,115,22,.5);
}

.bingo-controls {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.bingo-speed-select {
    padding: 12px 15px;
    border-radius: 10px;
    background: var(--bg-secondary);
    color: white;
    border: 2px solid var(--accent-violet);
    font-family: Orbitron;
    font-size: .8rem;
    cursor: pointer;
}

.bingo-main-ball.active {
    animation: ballPulse 1s ease infinite;
}

@keyframes ballPulse {
    0%, 100% { transform: scale(1);
}

50% {
    transform: scale(1.05);
}

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

.p-bingo-label {
    color: var(--text-muted);
    font-size: .75rem;
    margin-bottom: 5px;
}

.p-bingo-ball {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #333, #1a1a1a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.4);
}

.p-bingo-ball span:first-child {
    font-family: Orbitron;
    font-size: .7rem;
    color: var(--text-muted);
}

.p-bingo-ball span:last-child {
    font-family: Orbitron;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-muted);
}

.player-bingo-card {
    background: linear-gradient(180deg, #1a1f35, #0d1117);
    border-radius: 16px;
    padding: 10px;
    border: 3px solid var(--accent-violet);
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

.p-card-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-bottom: 5px;
}

.p-header-cell {
    padding: 10px 0;
    text-align: center;
    font-family: Orbitron;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    border-radius: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.p-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.p-card-cell {
    aspect-ratio: 1;
    background: linear-gradient(180deg, #2a3150, #1e2438);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    border: 2px solid transparent;
    position: relative;
}

.p-card-cell:active {
    transform: scale(0.95);
}

.p-card-cell .cell-num {
    font-family: Orbitron;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.p-card-cell.marked {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #4ade80;
    box-shadow: 0 0 12px rgba(34,197,94,.4);
}

.p-card-cell.marked .cell-num {
    color: white;
}

.p-card-cell.free {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #fb923c;
}

.p-card-cell .free-icon {
    font-size: 1.5rem;
}

.player-bingo-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.p-btn-linea, .p-btn-bingo {
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-family: Orbitron;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}

.p-btn-linea {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 0 #1d4ed8;
}

.p-btn-linea:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #1d4ed8;
}

.p-btn-bingo {
    background: linear-gradient(180deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 0 #c2410c;
}

.p-btn-bingo:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #c2410c;
}

.p-bingo-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: .75rem;
    margin-top: 12px;
}