body {
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    margin: 0;
    color: #fff;
    background:
        radial-gradient(1000px 650px at 15% 10%, rgba(80, 50, 160, .5) 0%, transparent 55%),
        radial-gradient(850px 600px at 85% 85%, rgba(10, 80, 140, .5) 0%, transparent 55%),
        linear-gradient(135deg, #0d0e24, #1b1035 45%, #0a2540 100%);
    background-size: 100% 100%, 100% 100%, 220% 220%;
    animation: bgshift 20s ease-in-out infinite;
}
@keyframes bgshift {
    0%   { background-position: 0% 0%, 100% 100%, 0% 50%; }
    50%  { background-position: 70% 30%, 30% 70%, 100% 50%; }
    100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
}

.header-espera {
    background: linear-gradient(90deg, #3a6bff, #7a4dff 50%, #1a8cff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    color: white;
    height: 60px;
    box-sizing: border-box;
    border-bottom: 3px solid rgba(241, 196, 15, .6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(122, 77, 255, .45);
}
.header-box {
    background: white;
    color: black;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 900;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.acumulado-title { font-size: 0.7rem; color: white; text-transform: uppercase; margin-bottom: -5px; }

.main-container { display: flex; height: calc(100vh - 60px); }

.center-panel {
    flex: 3;
    position: relative;
    background: url('https://girodasorte.net/fundo_espera.jpg') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.moldura-neon {
    width: 85%;
    max-width: 850px;
    background: #a30000;
    border: 12px solid #f1c40f;
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 0 60px rgba(241, 196, 15, 0.4), inset 0 0 20px rgba(0,0,0,0.5);
    transform: rotateY(-8deg) rotateX(2deg);
    position: relative;
}

.titulo-quadro { 
    font-size: 2.8rem; 
    font-weight: 900; 
    text-align: center; 
    color: white; 
    margin-bottom: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.sub-info-quadro { font-size: 1.1rem; color: #f1c40f; text-align: center; margin-bottom: 20px; font-weight: bold; }

#lista-ganhadores-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}
#lista-ganhadores-content::-webkit-scrollbar { width: 0px; }

/* Quadro "mexe" suavemente (flutuação sutil, sem lista subindo) */
.moldura-neon {
    animation: floatSuave 6s ease-in-out infinite;
}
@keyframes floatSuave {
    0%, 100% { transform: rotateY(-8deg) rotateX(2deg) translateY(0); }
    50%      { transform: rotateY(-8deg) rotateX(2deg) translateY(-10px); }
}

/* Entrada leve e escalonada das linhas (uma única vez) */
.row-ganhador {
    animation: surgir .7s ease both;
}
.row-ganhador:nth-child(2) { animation-delay: .08s; }
.row-ganhador:nth-child(3) { animation-delay: .16s; }
.row-ganhador:nth-child(4) { animation-delay: .24s; }
.row-ganhador:nth-child(5) { animation-delay: .32s; }
.row-ganhador:nth-child(6) { animation-delay: .40s; }
.row-ganhador:nth-child(7) { animation-delay: .48s; }
.row-ganhador:nth-child(8) { animation-delay: .56s; }
.row-ganhador:nth-child(9) { animation-delay: .64s; }
.row-ganhador:nth-child(n+10) { animation-delay: .72s; }
@keyframes surgir {
    0%   { opacity: 0; transform: translateX(-14px); }
    100% { opacity: 1; transform: translateX(0); }
}

.row-ganhador {
    background: white;
    color: #333;
    margin: 8px 0;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.right-sidebar {
    flex: 1;
    background-color: #4d79ff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    border-left: 4px solid rgba(255,255,255,0.2);
}
.box-proximo {
    background: #c0392b;
    color: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}
.box-premio {
    background: white;
    color: #2c3e50;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}
.box-acumulado-especial {
    border-color: #f1c40f !important;
    background: #fffdf0;
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0px rgba(241, 196, 15, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(241, 196, 15, 0); }
    100% { box-shadow: 0 0 0 0px rgba(241, 196, 15, 0); }
}

.premio-label { font-weight: 900; color: #4d79ff; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 2px; }
.premio-valor { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.corte-info { font-size: 0.65rem; color: #e67e22; font-weight: bold; }

/* Placa Destaque */
.placa-destaque {
    position: absolute;
    top: 6%;
    right: 4%;
    background: #a30000;
    border: 6px solid #f1c40f;
    border-radius: 20px;
    padding: 18px 26px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 40px rgba(241, 196, 15, .5);
    transform: rotate(2deg);
    z-index: 20;
}

/* Contador grande animado */
.countdown-grande {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 30;
}
.cd-rotulo {
    font-size: 1rem;
    letter-spacing: .3em;
    color: #f1c40f;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,.6);
}
.cd-valor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 170px;
    padding: 0 20px;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    border: 6px solid #f1c40f;
    font-size: 2.6rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 0 50px rgba(241, 196, 15, .5);
    animation: pulse-cd 1s infinite;
}
@keyframes pulse-cd {
    0% { transform: scale(1); box-shadow: 0 0 30px rgba(241,196,15,.4); }
    50% { transform: scale(1.06); box-shadow: 0 0 55px rgba(241,196,15,.7); }
    100% { transform: scale(1); box-shadow: 0 0 30px rgba(241,196,15,.4); }
}
.placa-destaque .pd-titulo { font-size: .9rem; font-weight: 900; letter-spacing: .2em; opacity: .85; }
.placa-destaque .pd-valor { font-size: 2.4rem; font-weight: 900; color: #f1c40f; text-shadow: 2px 2px 8px rgba(0,0,0,.6); }
.placa-destaque .pd-info { font-size: .85rem; font-weight: 700; }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
    body { overflow: auto; }

    .header-espera {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 12px;
        gap: 8px;
        justify-content: center;
    }
    .header-box { min-width: 0; flex: 1; font-size: .9rem; }
    .acumulado-title { font-size: .6rem; }

    .main-container { flex-direction: column; height: auto; }

    .countdown-grande {
        position: static;
        transform: none;
        margin: 16px auto 8px;
    }
    .cd-valor {
        min-width: 130px;
        height: 130px;
        font-size: 2rem;
    }
    .cd-rotulo { font-size: .8rem; }

    .center-panel {
        min-height: 60vh;
        order: 1;
        background-position: center;
    }

    .moldura-neon {
        width: 94%;
        padding: 16px;
        border-width: 8px;
        border-radius: 24px;
    }
    .titulo-quadro { font-size: 1.6rem; }
    .sub-info-quadro { font-size: .9rem; }
    #lista-ganhadores-content { max-height: 300px; }
    .row-ganhador { font-size: .85rem; padding: 8px 12px; gap: 10px; }

    .placa-destaque {
        top: 8px;
        right: 8px;
        padding: 8px 14px;
        border-width: 4px;
        border-radius: 14px;
    }
    .placa-destaque .pd-valor { font-size: 1.3rem; }
    .placa-destaque .pd-info { font-size: .7rem; }

    .right-sidebar {
        order: 2;
        width: 100%;
        border-left: none;
        border-top: 4px solid rgba(255,255,255,.2);
    }
    .premio-valor { font-size: 1.35rem; }
}

