/*==================================================
SORTEO EN VIVO (pantalla pública) - capa sobre el bingo
==================================================*/

#sorteo-overlay
{
    --srt-amarillo: #fedc00;
    --srt-rojo: #c32b1e;
    --srt-verde: #1b7336;
    --srt-azul: #1f3b8f;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden auto;
    padding: 2vh 16px 4vh;
    box-sizing: border-box;
    color: #fff;
    font-family: sfd_r, sans-serif;
    /* mismo fondo que el sitio (body en main.css) */
    background-color: var(--background, #8a4a63);
    background-image: url(../img/bingosol-banner.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#sorteo-overlay *
{
    box-sizing: border-box;
}

.srt-head
{
    text-align: center;
    margin-bottom: 2vh;
}

/* main.css aplica img { width: 100% } a todas las imágenes: se anula para no deformar el logo */
.srt-logo
{
    width: auto;
    height: auto;
    max-width: min(480px, 80vw);
    max-height: 14vh;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.srt-titulo
{
    font-family: sfd_bl, sans-serif;
    font-size: clamp(26px, 5.5vw, 72px);
    color: var(--srt-amarillo);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 18px rgba(0, 0, 0, 0.6);
}

.srt-sub
{
    margin-top: 1vh;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: clamp(13px, 1.6vw, 22px);
}

.srt-chip
{
    padding: 4px 14px;
    border-radius: 20px;
    font-family: sfd_b, sans-serif;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.35);
}

/* ---------- FASE SORTEANDO ---------- */

.srt-escena
{
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4vh;
}

.srt-tombola
{
    position: relative;
    width: clamp(180px, 34vh, 360px);
    height: clamp(180px, 34vh, 360px);
    border-radius: 50%;
    border: 6px solid var(--srt-amarillo);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.04) 60%);
    box-shadow: 0 0 60px rgba(254, 220, 0, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.srt-bola
{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16%;
    height: 16%;
    margin: -8% 0 0 -8%;
    border-radius: 50%;
    box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.35), inset 3px 3px 6px rgba(255, 255, 255, 0.45);
}

.srt-slots
{
    display: flex;
    gap: clamp(8px, 2vw, 30px);
    flex-wrap: wrap;
    justify-content: center;
}

.srt-slot
{
    min-width: clamp(130px, 18vw, 300px);
    padding: clamp(10px, 2vh, 24px) 16px;
    border-radius: 14px;
    text-align: center;
    font-family: sfd_bl, sans-serif;
    font-size: clamp(30px, 5vw, 80px);
    letter-spacing: 2px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: background-color 0.08s;
}

.srt-cuenta
{
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    font-size: clamp(16px, 2.2vw, 30px);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.srt-cuenta b
{
    font-family: sfd_bl, sans-serif;
    color: var(--srt-amarillo);
    font-size: 1.6em;
    display: inline-block;
    min-width: 1.6em;
}

/* ---------- FASE GANADORES ---------- */

.srt-ganadores-titulo
{
    font-family: sfd_bl, sans-serif;
    font-size: clamp(26px, 4.5vw, 64px);
    color: var(--srt-amarillo);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 18px rgba(0, 0, 0, 0.6);
    margin-bottom: 2vh;
    text-align: center;
}

.srt-grid
{
    width: 100%;
    max-width: 1600px;
    display: grid;
    gap: clamp(8px, 1.4vw, 20px);
    grid-template-columns: repeat(auto-fit, minmax(var(--srt-card-min, 220px), 1fr));
    justify-content: center;
    perspective: 1200px;
}

.srt-grid.pocos { --srt-card-min: 260px; max-width: 1200px; }
.srt-grid.medio { --srt-card-min: 200px; }
.srt-grid.muchos { --srt-card-min: 150px; }

.srt-card
{
    position: relative;
    border-radius: 14px;
    padding: clamp(10px, 2vh, 22px) 10px;
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.srt-card::before
{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
}

.srt-card > *
{
    position: relative;
}

.srt-card-label
{
    font-size: clamp(11px, 1vw, 16px);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.srt-card-num
{
    font-family: sfd_bl, sans-serif;
    font-size: clamp(26px, 3.2vw, 56px);
    line-height: 1.15;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.srt-grid.muchos .srt-card-num
{
    font-size: clamp(20px, 2.2vw, 38px);
}

.srt-card-ced
{
    display: inline-block;
    margin-top: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.45);
    font-family: sfd_b, sans-serif;
    font-size: clamp(13px, 1.3vw, 22px);
    letter-spacing: 1px;
}

.srt-confeti
{
    position: fixed;
    top: -20px;
    width: 10px;
    height: 16px;
    z-index: 10000;
    pointer-events: none;
}

@media (max-width: 600px)
{
    .srt-grid, .srt-grid.pocos, .srt-grid.medio, .srt-grid.muchos { --srt-card-min: 140px; }
}
