@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background-image: url(imgs-poligrafo/estudio-inicio.png);
    background-size: cover;
    background-position: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    transition: opacity 0.65s ease, background-image 0s;
}

/* ─── JOGADOR ─── */
.jogador {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    transition: bottom 0.3s;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
    z-index: 5;
}

/* ─── PONTUAÇÃO ─── */
.pontuacao {
    position: absolute;
    font-family: 'Bebas Neue', cursive;
    top: 10%;
    left: 95%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #ffd600;
    text-shadow: 0 0 20px rgba(255, 214, 0, 0.5);
    z-index: 15;
    display: block;
}

/* ─── BALÃO ─── */
.balao {
    position: absolute;
    pointer-events: none;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
    z-index: 8;
}

.balao img {
    width: 270px;
}

.fala {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    transition: opacity 0.25s;
}

/* ─── OVERLAY INTRO ─── */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(10, 10, 20) 100%, rgb(13, 27, 62) 100%);
    backdrop-filter: blur(5px);
}

.mensagemBoasVindas {
    font-family: "Press Start 2P", system-ui;
    font-size: 32px;
    color: #fff;
    text-align: center;
    margin: 0 0 6px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.mensagemBoasVindas span {
    color: rgba(26, 54, 124, 0.975);
}

.intro-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 48px;
}

/* ─── BOTÃO COMEÇAR ─── */
.jogoStart {
    font-family: "Press Start 2P", system-ui;
    font-size: 25px;
    padding: 5px;
    background: 0;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    display: block;
    font-weight: 800;
    animation: pulseBtn 2s ease-in-out infinite;
    transition: background 0.2s;
}

.opacidade {
    animation: opacidade 3s ease-in forwards;
}

@keyframes opacidade {
    0% {
        opacity: 1.0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pulseBtn {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(17, 108, 255, 0.75);
    }

    25%,
    75% {
        text-shadow: 0 0 35px rgb(3, 3, 190);
    }

    50% {
        text-shadow: 0 0 50px rgba(15, 0, 229, 0.9);
    }
}

.seta-iniciarJG {
    border: 0;
    background-color: transparent;
    color: #ffffff;
    font-size: 35px;
    position: absolute;
    right: 5%;
    bottom: 10%;
    animation: balancar 0.8s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
    display: none;
}

@keyframes balancar {

    0%,
    100% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }
}

/* ─── APRESENTADOR À ESQUERDA ─── */
.jogador-esquerda {
    left: 5% !important;
    transform: translateX(0) !important;
}

/* ─── SUJEITO NO POLÍGRAFO ─── */
.sujeito-poligrafo {
    position: absolute;
    bottom: 10px;
    right: 15%;
    width: 180px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
    z-index: 5;
}

.cenario-1,
.cenario-2 {
    position: fixed;
    inset: 0;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.cenario-1 {
    opacity: 1;
    visibility: visible;
}

.cenario-2 {
    opacity: 0;
    visibility: hidden;
}

.cenario-2.ativo {
    opacity: 1;
    visibility: visible;
    z-index: 4;
}

.cenario-1.saindo {
    opacity: 0;
    visibility: hidden;
}

/* ─── CARROSSEL ─── */
.carrossel-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.carrossel-titulo {
    font-family: 'Bebas Neue', cursive;
    font-size: 38px;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(17, 108, 255, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.carrossel-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.carrossel-track {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.carrossel-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.carrossel-item img {
    display: block;
    border-radius: 12px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
    transition: all 0.4s ease;
}

.item-ativo {
    transform: scale(1);
    z-index: 3;
}

.item-ativo img {
    height: 300px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(17, 108, 255, 0.7)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
}

.item-prev,
.item-next {
    opacity: 0.55;
    z-index: 1;
    transform: scale(0.75);
}

.item-prev img,
.item-next img {
    height: 200px;
    width: auto;
}

.item-prev {
    transform-origin: right center;
}

.item-next {
    transform-origin: left center;
}

.carrossel-label {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.carrossel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
    margin: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrossel-btn:hover {
    background: rgba(17, 108, 255, 0.5);
    border-color: rgba(17, 108, 255, 0.8);
    transform: scale(1.1);
}

.btn-escolher {
    margin-top: 52px;
    font-family: 'Bebas Neue', cursive;
    font-size: 26px;
    letter-spacing: 3px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #1a367c, #116cff);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(17, 108, 255, 0.5);
}

.btn-escolher:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 30px rgba(17, 108, 255, 0.7);
}

/* ─── JOGADOR ESCOLHIDO ─── */
.jogador-escolhido {
    position: absolute !important;
    bottom: 10px;
    left: 0;
    transform: scaleX(1);
    width: 350px;
    transition: opacity 0.6s;
}

/* ─── OVERLAY LOADING ─── */
.overlay-c3 {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.overlay-c3.visivel {
    display: flex;
}

.overlay-c3.ativo {
    opacity: 1;
}

.c3-titulo {
    font-family: 'Bebas Neue', cursive;
    font-size: 42px;
    letter-spacing: 6px;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(17, 108, 255, 0.7);
    animation: piscar 1.2s ease-in-out infinite;
}

@keyframes piscar {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.c3-barra-fundo {
    width: 420px;
    max-width: 80vw;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    overflow: hidden;
}

.c3-barra-preenchimento {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    background: linear-gradient(90deg, #1a367c, #116cff, #00d4ff);
    background-size: 200% 100%;
    animation: brilhoBarra 1.5s linear infinite;
    transition: width 0.15s linear;
}

@keyframes brilhoBarra {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 50% 50%;
    }
}

.c3-pct {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ═══════════════════════════════════════
   JOGO — CENÁRIO PRINCIPAL
═══════════════════════════════════════ */

.cenario-jogo {
    position: fixed;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 2;
}

.cenario-jogo.ativo {
    display: block;
}

.cenario-jogo.visivel {
    opacity: 1;
}

.verdadeiro {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    display: flex;
    justify-content: center;
    padding-top: 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
    z-index: 2;
}

.falso {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    display: flex;
    justify-content: center;
    padding-top: 24px;
    background: linear-gradient(225deg, rgba(239, 68, 68, 0.08) 0%, transparent 60%);
    z-index: 2;
}

.h1-FV {
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    letter-spacing: 4px;
    margin: 0;
    padding: 8px 24px;
    border-radius: 50px;
    user-select: none;
}

.verdadeiro .h1-FV {
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.falso .h1-FV {
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.traco-dividir-tela {
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 15%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.5) 85%,
            transparent 100%);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100vh;
    z-index: 3;
    pointer-events: none;
}

.noticia {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    max-width: 70vw;
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
    z-index: 10;
    backdrop-filter: blur(8px);
    animation: entradaCaixa 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes entradaCaixa {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.img-noticia {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.info-noticia {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #f0f0f0;
    line-height: 1.4;
    padding: 10px 14px 12px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timer-noticia {
    position: fixed;
    top: 7.5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bebas Neue', cursive;
    font-size: 18px;
    letter-spacing: 3px;
    color: #ffd600;
    text-shadow: 0 0 10px rgba(255, 214, 0, 0.6);
    z-index: 11;
    white-space: nowrap;
    pointer-events: none;
}

/* ─── JOGADOR NO JOGO ─── */
.jogador-jogo {
    position: absolute;
    bottom: 10px;
    width: 330px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
    z-index: 5;
    transition: opacity 0.4s;
}

/* ─── FLASH DE ECRÃ ─── */
#flashOverlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* ─── TEXTO DE RESULTADO ─── */
#resultadoTexto {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 55;
    font-family: 'Bebas Neue', cursive;
    font-size: 120px;
    letter-spacing: 8px;
    color: #fff;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

#resultadoTexto.visivel {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ── Texto de pontos ganhos/perdidos ── */
#textoPontos {
    position: fixed;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 55;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#textoPontos.visivel {
    opacity: 1;
}

/* ─── OVERLAY FINAL ─── */
#overlayFinal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.97) 0%, rgba(13, 27, 62, 0.97) 100%);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.8s ease;
}

#overlayFinal.visivel {
    display: flex;
}

#overlayFinal.ativo {
    opacity: 1;
}

#overlayFinalTitulo {
    font-family: 'Bebas Neue', cursive;
    font-size: 64px;
    letter-spacing: 6px;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 30px rgba(17, 108, 255, 0.7);
}

#overlayFinalSub {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

#overlayFinalPontuacao {
    font-family: 'Bebas Neue', cursive;
    font-size: 120px;
    color: #ffd600;
    line-height: 1;
    text-shadow: 0 0 40px rgba(255, 214, 0, 0.6);
    animation: pulseScore 1.5s ease-in-out infinite;
}

@keyframes pulseScore {

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

    50% {
        transform: scale(1.05);
    }
}

#overlayFinalBtn {
    margin-top: 20px;
    font-family: 'Bebas Neue', cursive;
    font-size: 28px;
    letter-spacing: 4px;
    padding: 14px 50px;
    background: linear-gradient(135deg, #1a367c, #116cff);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(17, 108, 255, 0.5);
}

#overlayFinalBtn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 30px rgba(17, 108, 255, 0.8);
}
/* ═══════════════════════════════
    MOBILE
═══════════════════════════════ */
@media (max-width: 768px) {

    body {
        background-position: center;
    }

    /* Jogador */
    .jogador,
    .jogador-escolhido,
    .jogador-jogo {
        width: 200px;
        bottom: 5px;
    }

    .jogador-esquerda {
        left: 2% !important;
    }

    /* Pontuação */
    .pontuacao {
        font-size: 32px;
        top: 6%;
        left: 88%;
    }

    /* Balões */
    .balao img {
        width: 180px;
    }

    .fala {
        font-size: 13px;
    }

    /* Carrossel */
    .carrossel-titulo {
        font-size: 22px;
    }

    .item-ativo img {
        height: 180px;
    }

    .item-prev img,
    .item-next img {
        height: 120px;
    }

    .carrossel-label {
        font-size: 14px;
        bottom: -28px;
    }

    .btn-escolher {
        font-size: 18px;
        padding: 10px 24px;
    }

    /* Notícia */
    .noticia {
        width: 90%;
        top: 90px;
    }

    .img-noticia {
        height: 110px;
    }

    .info-noticia {
        font-size: 13px;
    }

    /* Texto Verdadeiro / Falso */
    .h1-FV {
        font-size: 16px;
        padding: 6px 14px;
    }

    /* Resultado */
    #resultadoTexto {
        font-size: 60px;
    }

    #textoPontos {
        font-size: 22px;
    }

    /* Overlay final */
    #overlayFinalTitulo {
        font-size: 36px;
        text-align: center;
    }

    #overlayFinalPontuacao {
        font-size: 70px;
    }

    #overlayFinalBtn {
        font-size: 18px;
        padding: 12px 30px;
    }

    /* Barra loading */
    .c3-barra-fundo {
        width: 80%;
    }

}
/* ═══════════════════════════════
    LAPTOP / TABLET
═══════════════════════════════ */
@media (min-width: 769px) and (max-width: 1200px) {

    .jogador,
    .jogador-escolhido,
    .jogador-jogo {
        width: 280px;
    }

    .pontuacao {
        font-size: 40px;
        left: 92%;
    }

    .item-ativo img {
        height: 240px;
    }

    .item-prev img,
    .item-next img {
        height: 170px;
    }

    .carrossel-titulo {
        font-size: 30px;
    }

    .noticia {
        width: 320px;
    }

    #resultadoTexto {
        font-size: 90px;
    }

    #overlayFinalTitulo {
        font-size: 52px;
    }

    #overlayFinalPontuacao {
        font-size: 100px;
    }

}