/* ===== BINGO DE MIDIAS ===== */

.bingo-main {
    max-width: 520px;
    margin: 80px auto 40px;
    padding: 0 16px;
}

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

.bingo-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bingo-header h1 i { -webkit-text-fill-color: #f59e0b; }

.bingo-header p {
    color: rgba(255,255,255,0.45);
    margin: 0;
    font-size: 0.9rem;
}

/* Stats */
.bingo-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.bingo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bingo-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f59e0b;
}

.bingo-stat-bingo {
    color: #ef4444;
}

.bingo-stat-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bingo-progress-bar {
    width: 100px;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.bingo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* Grid */
.bingo-grid-container {
    margin-bottom: 20px;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 4px;
    overflow: hidden;
}

/* BINGO letters */
.bingo-letter {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 8px 0;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cells */
.bingo-cell {
    aspect-ratio: 1;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    cursor: default;
}

.bingo-cell:hover {
    background: rgba(255,255,255,0.06);
}

.bingo-cell--done {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1));
    border-color: rgba(245,158,11,0.3);
}

.bingo-cell-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px;
    text-align: center;
}

.bingo-cell-inner i {
    font-size: 1rem;
}

.bingo-cell--done .bingo-cell-inner i {
    color: #fff !important;
}

.bingo-cell-text {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.2;
    font-weight: 500;
}

.bingo-cell--done .bingo-cell-text {
    color: rgba(255,255,255,0.8);
}

.bingo-cell-check {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    color: #fff;
}

/* Legend */
.bingo-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.bingo-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.bingo-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.bingo-legend-done {
    background: linear-gradient(135deg, rgba(245,158,11,0.4), rgba(239,68,68,0.3));
    border: 1px solid rgba(245,158,11,0.5);
}

.bingo-legend-pending {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Loading & Empty */
.bingo-loading, .bingo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.4);
    gap: 12px;
    text-align: center;
}

.bingo-loading i, .bingo-empty i {
    font-size: 2.5rem;
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 480px) {
    .bingo-main { margin-top: 70px; padding: 0 8px; }
    .bingo-grid { gap: 3px; padding: 3px; }
    .bingo-cell-inner i { font-size: 0.85rem; }
    .bingo-cell-text { font-size: 0.48rem; }
    .bingo-cell-check { width: 12px; height: 12px; font-size: 0.4rem; }
    .bingo-letter { font-size: 0.9rem; padding: 6px 0; }
}

/* Light theme: surfaces, content and interaction states. */
:is(html.light-theme-early, body.light-theme) .bingo-header p,
:is(html.light-theme-early, body.light-theme) .bingo-stat-label,
:is(html.light-theme-early, body.light-theme) .bingo-legend-item,
:is(html.light-theme-early, body.light-theme) .bingo-loading,
:is(html.light-theme-early, body.light-theme) .bingo-empty {
    color: var(--text-muted, #526070);
}

:is(html.light-theme-early, body.light-theme) .bingo-grid {
    background: var(--surface, #fff); border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .bingo-cell {
    background: var(--surface2, #f8f7f3); border-color: var(--border, rgba(30, 41, 59, .12));
}

:is(html.light-theme-early, body.light-theme) .bingo-cell:hover {
    background: #eeebe3;
}

:is(html.light-theme-early, body.light-theme) .bingo-cell-text {
    color: var(--text-muted, #526070);
}

:is(html.light-theme-early, body.light-theme) .bingo-cell--done {
    background: linear-gradient(135deg, #fff2d5, #fde7e2); border-color: #d49731;
}

:is(html.light-theme-early, body.light-theme) .bingo-cell--done .bingo-cell-text {
    color: var(--text, #1e293b);
}

:is(html.light-theme-early, body.light-theme) .bingo-cell--done .bingo-cell-inner i {
    color: #9a3412 !important;
}

:is(html.light-theme-early, body.light-theme) .bingo-progress-bar,
:is(html.light-theme-early, body.light-theme) .bingo-legend-pending {
    background: #dededb; border-color: #b7bebf;
}

:is(html.light-theme-early, body.light-theme) .bingo-stat-num {
    color: var(--accent-ink, #806117);
}

:is(html.light-theme-early, body.light-theme) .bingo-stat-bingo {
    color: #b91c1c;
}

:is(html.light-theme-early, body.light-theme) .bingo-cell-check {
    background: #15803d; color: #fff;
}

:is(html.light-theme-early, body.light-theme) .bingo-header h1,
:is(html.light-theme-early, body.light-theme) .bingo-letter { background-image: linear-gradient(135deg, #a16207, #b91c1c, #be185d); }
:is(html.light-theme-early, body.light-theme) .bingo-header h1 i { -webkit-text-fill-color: #a16207; }

:is(html.light-theme-early, body.light-theme) .bingo-loading i,
:is(html.light-theme-early, body.light-theme) .bingo-empty i { color: var(--accent-ink, #806117); }
