/* Layout Container */
.bingo-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.bingo-title {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

/* Controls Toolbar */
.bingo-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(18, 18, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.bingo-seed-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.seed-label {
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888899;
}

.seed-code {
    font-family: monospace;
    background: rgba(227, 239, 25, 0.08);
    border: 1px solid rgba(227, 239, 25, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    color: var(--primary_color, #e3ef19);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.bingo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bingo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    user-select: none;
}

.bingo-btn-reroll {
    background: rgba(227, 239, 25, 0.12);
    border-color: rgba(227, 239, 25, 0.45);
    color: var(--primary_color, #e3ef19);
}

.bingo-btn-reroll:hover {
    background: var(--primary_color, #e3ef19);
    color: #000;
    border-color: var(--primary_color, #e3ef19);
    box-shadow: 0 0 12px rgba(227, 239, 25, 0.4);
}

.bingo-btn-copy {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #e0e0e0;
}

.bingo-btn-copy:hover {
    background: rgba(227, 239, 25, 0.15);
    border-color: var(--primary_color, #e3ef19);
    color: var(--primary_color, #e3ef19);
    box-shadow: 0 0 10px rgba(227, 239, 25, 0.25);
}

.bingo-btn-clear {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #aaa;
}

.bingo-btn-clear:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: #ff4444;
    color: #ff9999;
}

/* Grid Logic */
.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    aspect-ratio: 1 / 1;
}

/* Cell Styling */
.bingo-cell {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ccc;
    user-select: none;
    text-align: center;
    overflow: hidden;
}

.bingo-cell:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

/* Checked State */
.bingo-cell.is-checked {
    background: #ABCE2C;
    color: #fff;
    border-color: #F3EF19;
    font-weight: bold;
    text-decoration: line-through;
}

.bingo-cell.free-space {
    border-color: #6c55d6;
    color: #6c55d6;
    cursor: default;
}

.bingo-cell.free-space:hover {
    transform: none;
}

.bingo-cell.free-space.is-checked {
    background: rgba(108, 85, 214, 0.35);
    border-color: #9b84fa;
    color: #e4ddff;
    text-decoration: none;
}

/* Bingo Announcement Overlay */
.bingo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary_color, #F3EF19);
    text-shadow: 0 0 30px #ABCE2C;
    text-align: center;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
}

.bingo-overlay.show {
    opacity: 1;
    pointer-events: all;
    animation: bingoPulse 0.4s ease infinite alternate;
}

@keyframes bingoPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Responsive Scaling */
@media (max-width: 700px) {
    .bingo-grid { gap: 5px; }
    .bingo-cell { font-size: 0.65rem; padding: 5px; }
    .bingo-overlay { font-size: 3rem; }
}