/* ============================================================
   verdadeiro_falso.css — Verdadeiro ou Falso da Copa
   ============================================================ */

#vf-app {
    width: 100%;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: vfFadeIn 0.4s ease;
}

@keyframes vfFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vf-tela {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ═══════════════════════════════════════════════════
   TELA INÍCIO
   ═══════════════════════════════════════════════════ */
#vf-tela-inicio {
    max-width: 780px;
}

.vf-inicio-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    border: 3px solid var(--azul-copa);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    width: 100%;
}

.vf-inicio-esq {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vf-nuvito-inicio, .vf-nuvito-fim {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.2));
    animation: vfBounce 2.5s ease-in-out infinite;
}
.vf-nuvito-fim { height: auto; max-width: 100%; }

@keyframes vfBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.vf-inicio-dir {
    flex: 1;
    text-align: left;
}

.vf-logo-emoji {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 6px;
}

.vf-inicio-dir h2 {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--azul-copa);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.vf-inicio-dir p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.vf-regras {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f0f4ff;
    border: 2px solid rgba(0,39,118,0.12);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.vf-regra-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--azul-copa);
}
.vf-regra-item span:first-child { font-size: 1.2rem; flex-shrink: 0; }

.vf-btn-comecar {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, var(--verde-copa), #00c44e);
    border: none;
    border-bottom: 5px solid #006b28;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.15s ease;
    box-shadow: 0 6px 20px rgba(0,156,59,0.4);
}
.vf-btn-comecar:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,156,59,0.5); }
.vf-btn-comecar:active { transform: translateY(3px); border-bottom-width: 2px; }

/* ═══════════════════════════════════════════════════
   HUD
   ═══════════════════════════════════════════════════ */
.vf-hud {
    align-self: flex-end;
    margin-top: -72px;
    margin-bottom: 20px;
    width: calc(100% - 260px);
    max-width: none;
    padding: 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 2px solid var(--azul-copa);
    z-index: 10;
}

.vf-hud-item {
    background: white;
    border: 2px solid var(--azul-copa);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--azul-copa);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.vf-hud-pontos {
    background: var(--azul-copa);
    color: var(--amarelo-copa);
    border-color: var(--azul-copa);
}

.vf-hud-combo {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    border: 2px solid #ff7e5f;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(255,126,95,0.4);
}

@keyframes vfComboAnim {
    0%   { transform: scale(0.8); opacity: 0; }
    50%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.vf-progressbar-wrap {
    flex: 1;
    min-width: 0;
}

.vf-progressbar-trilha {
    height: 12px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

.vf-progressbar-barra {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--verde-copa), #00d44e);
    border-radius: 20px;
    transition: width 0.5s ease-out;
}

/* ═══════════════════════════════════════════════════
   CORPO DO JOGO — 2 colunas
   ═══════════════════════════════════════════════════ */
.vf-corpo {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.vf-col-esq {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vf-col-dir {
    flex-shrink: 0;
    width: 170px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

@keyframes vfCertoAnim {
    0% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

.vf-img-certo {
    animation: vfCertoAnim 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards !important;
}

@keyframes vfErradoAnim {
    0% { transform: scale(1) translateX(0); }
    20% { transform: scale(0.9) translateX(-10px); }
    40% { transform: scale(0.9) translateX(10px); }
    60% { transform: scale(0.9) translateX(-10px); }
    80% { transform: scale(0.9) translateX(10px); }
    100% { transform: scale(0.9) translateX(0); }
}

.vf-img-errado {
    animation: vfErradoAnim 0.5s ease-in-out forwards !important;
}

/* ── CARD PERGUNTA ─────────────────────────────────── */
.vf-card-pergunta {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 3px solid var(--azul-copa);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    position: relative;
}

.vf-pergunta-texto {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
}

.vf-categoria-badge {
    display: inline-block;
    background: var(--azul-copa);
    color: var(--amarelo-copa);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.vf-btns-voz {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.vf-btn-voz {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid var(--azul-copa);
    background: #f0f4ff;
    color: var(--azul-copa);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vf-btn-voz:hover {
    background: var(--azul-copa);
    color: white;
}

/* ── BOTÕES ───────────────────────────────────────── */
.vf-botoes-container {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-top: 10px;
}

.vf-btn-opcao {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    border: none;
    border-bottom: 6px solid;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vf-btn-opcao:hover {
    transform: translateY(-2px);
}

.vf-btn-opcao:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}

.vf-btn-opcao:disabled {
    cursor: not-allowed;
    transform: none;
}

.vf-btn-opcao.verdadeiro {
    background: linear-gradient(135deg, #10b981, #059669);
    border-bottom-color: #047857;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.vf-btn-opcao.falso {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-bottom-color: #b91c1c;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.vf-btn-opcao.fade-out {
    opacity: 0.4;
    filter: grayscale(1);
    transform: scale(0.95);
    border-bottom-width: 2px;
}

/* ── EXPLICAÇÃO ────────────────────────────────────── */
.vf-explicacao {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    margin-top: 10px;
    border-left: 6px solid #cbd5e1;
    display: none;
    animation: vfSlideDown 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}
.vf-explicacao.certo { border-left-color: #10b981; }
.vf-explicacao.errado { border-left-color: #ef4444; }

.vf-expl-titulo {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vf-explicacao.certo .vf-expl-titulo { color: #059669; }
.vf-explicacao.errado .vf-expl-titulo { color: #dc2626; }

.vf-expl-texto {
    font-size: 1rem;
    color: #334155;
    line-height: 1.5;
}

.vf-btn-proxima {
    margin-top: 16px;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, var(--azul-copa), #0044b3);
    border: none;
    border-bottom: 4px solid #002266;
    border-radius: 50px;
    cursor: pointer;
    align-self: center;
    transition: all 0.1s ease;
}
.vf-btn-proxima:hover { transform: translateY(-2px); }
.vf-btn-proxima:active { transform: translateY(2px); border-bottom-width: 2px; }

@keyframes vfSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── RESULTADO TELA ─────────────────────────────────── */
#vf-tela-resultado {
    background: white;
    border-radius: 24px;
    padding: 30px 40px;
    border: 3px solid var(--azul-copa);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 600px;
}

.vf-res-titulo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--azul-copa);
    margin-top: 10px;
    margin-bottom: 10px;
}

.vf-res-sub {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 24px;
}

.vf-res-caixas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.vf-res-destaque-pontos {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 3px solid #fde68a;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    display: inline-block;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(245,158,11,0.15);
}

.vf-res-pontos-valor {
    font-size: 3.5rem;
    font-weight: 900;
    color: #92400e;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0 #fde68a;
}

.vf-res-pontos-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vf-res-caixa {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vf-res-caixa span {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.vf-res-caixa small {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.vf-btn-jogarnovamente {
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, var(--verde-copa), #00c44e);
    border: none;
    border-bottom: 5px solid #006b28;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,156,59,0.3);
}

@media (max-height: 800px) and (min-width: 769px) {
    .vf-inicio-inner { padding: 20px; }
    .vf-nuvito-inicio, .vf-nuvito-fim { height: 140px; }
    .vf-card-pergunta { padding: 18px; gap: 12px; }
    .vf-pergunta-texto { font-size: 1.3rem; }
    .vf-btn-opcao { padding: 14px; font-size: 1.25rem; }
    .vf-col-dir { width: 140px; }
    .vf-res-titulo { font-size: 1.9rem; margin-bottom: 5px; }
    #vf-tela-resultado { padding: 20px 30px; }
    .vf-res-destaque-pontos { padding: 15px; margin-bottom: 15px; min-width: 200px; }
    .vf-res-pontos-valor { font-size: 2.8rem; }
    .vf-res-caixas { margin-bottom: 15px; }
    .vf-res-caixa { padding: 12px; min-width: 120px; }
    .vf-res-caixa span { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .vf-inicio-inner { flex-direction: column; text-align: center; padding: 20px 15px; }
    .vf-inicio-dir { text-align: center; }
    .vf-hud { width: 100%; margin-top: 0; align-self: center; }
    .vf-corpo { flex-direction: column-reverse; align-items: center; }
    .vf-col-dir { width: 120px; padding-top: 0; margin-bottom: 10px; }
    .vf-botoes-container { flex-direction: column; gap: 10px; }
    .vf-card-pergunta { padding: 16px; gap: 12px; }
    .vf-pergunta-texto { font-size: 1.25rem; }
    .vf-btn-opcao { padding: 12px; font-size: 1.2rem; }
    #vf-tela-resultado { padding: 20px 25px; }
    .vf-res-titulo { font-size: 1.8rem; margin-top: 5px; margin-bottom: 5px; }
    .vf-res-pontos-valor { font-size: 2.5rem; }
    .vf-res-caixas { flex-wrap: wrap; }
    .vf-res-caixa { padding: 10px; min-width: 90px; }
    .vf-res-caixa span { font-size: 1.5rem; }
}

/* ── CONFETES ─────────────────────────────────────── */
.vf-confete {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    background-color: #f1c40f;
    z-index: 99999;
    animation: vfCairConfete linear forwards;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes vfCairConfete {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
