:root{
  --bg1:#071423;
  --bg2:#0b2a43;
  --cyan:#55d7ff;
  --cyan2:#2aa6d6;
  --gold:#f2b233;
  --gold2:#ffcf63;
  --soft: 0 10px 25px rgba(0,0,0,.35);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
}

@font-face {
  font-family: 'LuckiestGuy';
  src: url('fonte/LuckiestGuy-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face{
  font-family: "DK Lemon Yellow Sun";
  src: url("fonte/DK Lemon Yellow Sun.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face{
  font-family: "DK Midnight Chalker";
  src: url("fonte/DK Midnight Chalker.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face{
  font-family: "DK Petit Four";
  src: url("fonte/DK Petit Four.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face{
  font-family: "DK Snemand";
  src: url("fonte/DK Snemand.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}



*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% 15%, #163d5d 0%, var(--bg1) 60%, #040a12 100%);
  overflow:hidden;
  color:#eaf7ff;
}

/* esconder qualquer tela */
.hidden{ display:none !important; }







/* =====================
   SPLASH SCREEN
   ===================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 0; /* Fundo abaixo de tudo */
  background: url("img/tela_inicial.svg") no-repeat center top; /* Ajuste para top */
  background-size: 155% 133%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Ajustando o fundo da splash */
.splash {
  background-position: center -1%; /* Move o fundo para baixo */
}







/* container central */
.splash-content{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}







/* JOGAR ABAIXO DA URNA */
.splash-jogar{
  position: absolute;
  left: 52%;
  top: calc(55% + 196px);
  transform: translateX(-50%);

  width: min(175px, 18vw);
  height: auto;

  cursor: pointer;
  z-index: 6;

  animation: pulseStrong 1.1s infinite;

}
@keyframes pulseStrong{
  0%{
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 200, 0, 0));
  }
  50%{
    transform: translateX(-50%) scale(1.12);
    filter: drop-shadow(0 0 18px rgba(255, 200, 0, 0.85));
  }
  100%{
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 200, 0, 0));
  }
}







/* REGULAMENTO */
.link-regulamento {
  position: absolute;
  right: 10px;
  bottom: 8px; /* 🔽 MAIS PARA BAIXO */

  font-family: "DK Lemon Yellow Sun", sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: #f7f4f4;

  text-shadow:
    0 2px 4px rgba(0,0,0,1),
    0 4px 8px rgba(0,0,0,0.9),
    0 6px 12px rgba(0,0,0,0.8);

  text-decoration: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 6px;

  z-index: 10;
}

/* hover leve */
.link-regulamento:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
























/* ===== INTRO (estilo Sony) ===== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 90000;
  background: url("img/3.svg") no-repeat center center; /* Novo fundo para a introdução */
  background-size: cover;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Logo do quiz: menor e mais acima */
.intro-logo {
  width: min(200px, 35vw);  /* Menor e mais ajustado */
  height: auto;
  opacity: 0;
  transform: scale(.8);  /* Um pouco menor */
  filter: blur(3px) drop-shadow(0 0 0 rgba(255,255,255,0));
  transition: opacity 2200ms ease, transform 2200ms ease, filter 2200ms ease;
  margin-bottom: 110px; /* Movido mais para cima */
  /* Flexibilidade de ajuste */
  position: relative;
  left: -40; /* Posição inicial */
  top: 30;  /* Posição inicial */
  transform: scale(1); /* Ajuste inicial de escala */
}

/* Logo "OFERECIMENTO" logo abaixo da logo do quiz */
.intro-offer {
  position: absolute;
  top: 20%; /* Ajuste o valor para mover para cima/baixo */
  font-family: 'LuckiestGuy', cursive;
  font-weight: 900;
  letter-spacing: .28em;
  font-size: clamp(16px, 2.5vw, 22px); /* Diminui o tamanho da fonte */
  color: #ffffff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1800ms ease, transform 1800ms ease;
  
  /* Flexibilidade de ajuste */
  left: -25;  /* Posição inicial (ajuste para esquerda/direita) */
  text-align: center; /* Centraliza o texto */
  margin-bottom: 20px; /* Aumenta o espaço abaixo do texto */
}

/* A logo do "OFERECIMENTO" quando ativa */
.intro.play .intro-offer {
  opacity: 1;
  transform: translateY(0);
}


/* Ajustando as logos das entidades */
.intro-logos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Organizando as logos lado a lado */
.logos-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  /* Flexibilidade de ajuste */
  position: relative;
  left: 0;  /* Posição inicial */
  top: -45;   /* Posição inicial */
  transform: scale(1);  /* Ajuste inicial de escala */
}

/* Ajuste específico para a logo da Corrida do Trabalho */
.intro-logo-corrida {
  position: relative;
  left: var(--left, 0);   /* Posição ajustável à esquerda/direita */
  top: var(--top, 0);     /* Posição ajustável para cima/baixo */
  width: 410px;
  height: var(--height, auto); /* Ajuste de altura */
  transform: scale(var(--scale, 1)); /* Ajuste de escala */
}

/* Ajuste específico para a logo do Voto Livre */
.intro-logo-voto-livre {
  position: relative;
  left: var(--left, 0);   /* Posição ajustável à esquerda/direita */
  top: var(--top, 0);     /* Posição ajustável para cima/baixo */
  width: 250px;  /* antes 216px */
  height: var(--height, auto); /* Ajuste de altura */
  transform: scale(var(--scale, 1)); /* Ajuste de escala */
}

/* Quando a introdução está ativa, as transições das logos */
.intro.play .intro-logo {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px) drop-shadow(0 0 22px rgba(255,255,255,.25));
}

/* Quando sai */
.intro.out .intro-logo {
  opacity: 0;
  transform: scale(1.03);
  filter: blur(3px) drop-shadow(0 0 0 rgba(255,255,255,0));
}

/* Desce só Corrida + Voto Livre */
.intro-logos .logos-row:first-child{
  transform: translateY(120px);
}

/* Desce TRT, MPT e Amatra */
.intro-logos .logos-row:last-child{
  transform: translateY(80px);
}


/* Quando o intro está ativo */
.intro.play .intro-quiz {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Quando sai */
.intro.out .intro-offer,
.intro.out .intro-quiz {
  opacity: 0;
  filter: blur(3px);
}









































/* =========================
   TELA: preGame (Nome/CPF)
   ========================= */
/* ===== preGame igual splash (img1) ===== */

/* topo com logos */
.preGame-top{
  position:absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 6;
  pointer-events:none;
}


.preGame-top-faixa{
  position:absolute;
  left: clamp(90px, 10vw, 140px);
  top: clamp(70px, 8vh, 90px);
  width: clamp(180px, 20vw, 320px);
  height:auto;
  opacity:.95;
}


/* Ajustando a posição do formulário de login */
.preGame-card {
  position: absolute;
  left: 50%;
  top: 70%;  /* Ajuste para mover o formulário para baixo, altere este valor conforme necessário */
  transform: translate(-50%, 0);  /* Centralizando sem a transformação anterior */
  width: min(560px, 92vw);
  z-index: 7;
  text-align: center; /* Centraliza o conteúdo */
  margin-top: 20px; /* Movendo o formulário para baixo */
}

/* ícones de baixo na tela preGame */
.preHud{
  z-index: 20;
  bottom: clamp(14px, 2.6vh, 28px);
}


/* ===== FIX DEFINITIVO: preGame tela cheia + fundo correto ===== */
.preGame{
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

/* fundo full */
.preGame-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events:none;
  user-select:none;
}

/* labels */
/* Ajustando a posição dos rótulos (Nome e CPF) à esquerda */
.preGame-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  align-items: flex-start; /* Move o rótulo para a esquerda */
  text-align: left;  /* Alinha o texto à esquerda */
}


/* inputs */
/* Ajustando os inputs de nome e CPF */
.preGame-label input {
  height: 40px;
  width: min(330px, 63vw);
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
  text-align: left; /* Garante que o texto dentro dos inputs também esteja à esquerda */
}


.preGame-label input::placeholder{
  color: rgba(255,255,255,.6);
}

/* === NOME + CPF + BOTÃO CONTINUAR === */
/* === CENTRALIZA TUDO NO preGame === */
.preGame-card{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;

  text-align: center !important;
}

/* === FRASE / TÍTULO === */
.preGame-titleImg{
 margin-bottom: 30px;   /* antes estava maior */
 width: 50%;
}

/* === BLOCO DOS CAMPOS === */
.preGame-row{
  width: 80%;
  margin-top: 0px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}

/* === INPUTS (nome / cpf) === */
.preGame-label input{
  width: min(360px, 70vw) !important;
}






/* ============================
   BOTÃO Continuar — PREMIUM (MENOR)
   ============================ */
.preGame-btn{
  margin-top: 14px !important;

  padding: 10px 24px !important;   /* 👈 menor */
  border-radius: 999px !important;
  border: 2px solid rgba(255,255,255,.85) !important;

  font-size: 14px !important;      /* 👈 menor */
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;

  color: #fff !important;

  background: linear-gradient(180deg, #ff3c3c, #c91717) !important;

  cursor: pointer !important;

  box-shadow:
    0 8px 18px rgba(0,0,0,.45),
    0 0 12px rgba(255,60,60,.35);

  transition: all .18s ease !important;
}

/* hover */
.preGame-btn:hover{
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow:
    0 14px 26px rgba(0,0,0,.55),
    0 0 18px rgba(255,60,60,.55);
}

/* active */
.preGame-btn:active{
  transform: translateY(0) scale(.96) !important;
  box-shadow:
    0 6px 14px rgba(0,0,0,.45);
}



/* ============================
   Jogar sem cadastrar
   ============================ */
.skip-link {
  margin-top: 12px;
  font-family: "DK Lemon Yellow Sun", sans-serif;
  font-size: 16px;
  color: #FFD400; /* amarelo vibrante */
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}



































/* =====================
   LOADING SCREEN
   ===================== */
.loading{
  position: fixed;
  inset: 0;
  z-index: 10000;

  /* usa o mesmo fundo da splash */
  background: url("img/3.svg") no-repeat center center;
  background-size: cover;

  display: flex;          /* <-- era none */
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.loading.show{ display: flex; }

.loading-top{
  position: absolute;
  top: 3vh;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 14px;

  /* SEM vidro */
  background: none;
  border: none;
  backdrop-filter: none;
}

.loading-logo-trt{ width: 200px; height: auto; }
.loading-voto{
  display: none;
}
.loading-quiz{ width: 160px; height: auto; }
.loading-faixa{ width: 210px; height: auto; }

/* CARD DO LOADING — SEM VIDRO */
.loading-card{
  width: min(500px, 92vw);
  border-radius: 0;
  padding: 22px 20px 18px;

  margin-top: 90px;   /* 👈 empurra o loading para baixo */

  /* remove efeito de vidro */
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;

  animation: loadIn .45s ease both;
}


@keyframes loadIn{
  from{ opacity:0; transform: translateY(10px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.loading-title{
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 20px;
}


.bar{
  position: relative;
  height: 26px;           /* MAIS ALTA */
  border-radius: 999px;
  overflow: hidden;

  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
}

.bar-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(85,215,255,1),
    rgba(255,207,99,1)
  );

  box-shadow:
    0 0 18px rgba(85,215,255,.55),
    0 0 30px rgba(255,207,99,.35);

  transition: width .08s linear;
}


.bar-glow{
  position:absolute;
  inset:-40% -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(20deg) translateX(-120%);
  animation: barShine 1.4s ease-in-out infinite;
  pointer-events:none;
}



@keyframes barShine{
  0%{ transform: rotate(20deg) translateX(-120%); opacity:0; }
  20%{ opacity:.35; }
  55%{ transform: rotate(20deg) translateX(120%); opacity:0; }
  100%{ opacity:0; }
}

.loading-meta{
  margin-top: 14px;
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 900;
}

.loading-dots i{
  display:inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-left: 6px;
  background: rgba(255,255,255,.7);
  animation: dot 1s infinite;
}
.loading-dots i:nth-child(2){ animation-delay: .15s; }
.loading-dots i:nth-child(3){ animation-delay: .30s; }

@keyframes dot{
  0%,100%{ transform: translateY(0); opacity:.55; }
  50%{ transform: translateY(-4px); opacity:1; }
}

.loading-tip{
  margin-top: 10px;
  opacity: .85;
  font-size: 14px;
}


/* TEXTO DENTRO DA BARRA DE CARREGAMENTO */
.bar-text{
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 800;
  letter-spacing: .18em;

  color: #ffffff;          /* texto branco */
  z-index: 3;

  pointer-events: none;

  /* leitura limpa */
  text-shadow: 0 2px 4px rgba(0,0,0,.6);
}











































/* =====================
   GAME SCREEN (FUNDO)
   ===================== */
.game{
  position: fixed;
  inset: 0;
  z-index: 1;

  background: url("img/tela_jogo.svg") no-repeat center 80%;
  background-size: cover;

  display: flex;                
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

.game.show{ display: flex; }

.game-content{
  position: relative;
  width: 100%;
  height: 100%;
}







/* =====================
   GAME TOP BAR
   ===================== */
.game-quiz{
  position: absolute;
  top: clamp(14px, 2.2vh, 26px);
  left: clamp(14px, 2.2vw, 28px);
  width: clamp(110px, 12vw, 260px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.game-logo-trt{
  position: absolute;
  top: clamp(16px, 2.4vh, 28px);

  left: 86%;   /* <<< CONTROLE REAL */
  transform: translateX(-50%);

  width: clamp(150px, 16vw, 260px);
  max-width: 170px;

  height: auto;
  pointer-events: none;
  user-select: none;
}

/* =====================
   TEMPORIZADOR CENTRAL
   ===================== */
.game-timer{
  position: absolute;
  top: clamp(68px, 2.2vh, 25px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(60px, 12vw, 140px);
  height: auto;

  display: grid;
  place-items: center;

  pointer-events: none;
  user-select: none;
}

.game-timer-bg{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.45));
}

.game-timer-text{
  position: absolute;
  font-family: "DK Lemon Yellow Sun", sans-serif;
  font-weight: normal;
  font-size: clamp(22px, 2.8vw, 44px);
  letter-spacing: .08em;
  color: #111;
}





/* =====================
   HUD: botões inferiores
   ===================== */
.hud-btn{
  position: absolute;
  bottom: clamp(14px, 2.6vh, 28px);
  width: clamp(34px, -5vw, 54px);
  height: clamp(44px, 5vw, 64px);

  display: grid;
  place-items: center;

  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;

  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
  transition: transform .12s ease, filter .12s ease;
  z-index: 50;
}

.hud-btn img{
  width: 100%;
  height: 100%;
  display: block;
}







/* Texto "EXIT" acima do botão sair */
.hud-right::before{
  content: "EXIT";
  position: absolute;
  bottom: calc(100% - 19px);
  right: 50%;
  transform: translateX(50%);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #ffffff;

  margin-bottom: 6px;

  text-shadow: 0 2px 4px rgba(0,0,0,.6);
  pointer-events: none;
}


.hud-btn:hover{
  transform: scale(1.06);
}

.hud-btn:active{
  transform: scale(.96);
}

/* esquerda/direita */
.hud-left{
  left: clamp(14px, 2.6vw, 28px);
}

.hud-right{
  right: clamp(5px, 2.0vw, 11px);
}




/* =====================
   INTERROGAÇÃO – GAME
   ===================== */
.game-question{
  position: absolute;

  /* empurra para fora da tela à esquerda */
  left: -01vw;
  top: 56%;
  transform: translateY(-50%);

  width: min(220px, 60vw);
  height: auto;

  pointer-events: none;
  user-select: none;

  opacity: .12;
}








/* =====================
   CONTADOR: selo 1/10 colado na pergunta
   ===================== */
.quiz-progress{
  position: absolute;
  left: 50%;
  top: -60px;                 /* fica “em cima” da caixa */
  transform: translateX(-50%);
  z-index: 7;

  padding: 6px 14px;
  border-radius: 999px;

  background: rgba(253, 201, 30, 0.877);
  border: 2px solid rgba(255,255,255,.85);

  font-weight: 900;
  letter-spacing: .12em;
  font-size: clamp(18px, 2.0vw, 24px);  /* 👈 maior */
  color: #fff;

  text-shadow: 0 2px 6px rgba(0,0,0,.55);
  pointer-events: none;
}











/* =====================
   CAIXA DA PERGUNTA
   ===================== */
.quiz-question{
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);

  width: min(580px, 60vw);
  height: auto;

  display: grid;
  place-items: center;

  z-index: 5;
}

.quiz-question img{
  width: 100%;
  height: auto;
}

.quiz-question-text{
  position: absolute;

  width: 85%;
  text-align: center;

  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;

  color: #eaf7ff;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);

  pointer-events: none;
}




/* =====================
   CAIXA DAS ALTERNATIVAS
   ===================== */
.quiz-answers{
  position: absolute;          /* ISSO ESTAVA FALTANDO */
  top: 60%;                    /* controla distância da pergunta */
  left: 50%;
  transform: translateX(-50%);

  width: min(600px, 40vw);     /* mais compacto */
  z-index: 4;

  display: grid;
  grid-template-columns: 1fr 1fr; /* A/B em cima – C/D embaixo */
  gap: 18px 26px;               /* espaço entre botões */
}

 .answer-btn{
  /* antes era height: 42px; */
  height: auto;
  min-height: 42px;

  padding: 10px 16px;        /* dá espaço pra 2 linhas */
  line-height: 1.2;          /* evita “cortar” as linhas */
  text-align: center;

  display: flex;             /* centraliza verticalmente */
  align-items: center;
  justify-content: center;

  white-space: normal;       /* permite quebrar linha */
  overflow-wrap: anywhere;   /* quebra palavras grandes se precisar */
  word-break: normal;

  background: transparent;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;

  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 800;
  letter-spacing: .06em;
  color: #ffffff;

  cursor: pointer;
  transition: all .15s ease;
}

/* Efeito ao passar o cursor */
.answer-btn:hover{
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 10px 20px rgba(0,0,0,.30);
  border-color: rgba(255,255,255,.95);
}





/* ==========================
 Animando o Personagem nos Questionários 
 ======================== */

.game-char{
  position: absolute;
  right: clamp(26px, 2vw, 86px);
  bottom: 0;

  height: 345px;   /* tamanho FIXO */
  width: auto;

  z-index: 1;
  pointer-events: none;
  user-select: none;

  transition: opacity .25s ease, filter .25s ease;
}

@media (min-width: 1600px){
  
  #presenter-frame{
    transform: scale(0.85);
  }

}


.start-btn{
  position: absolute;
  left: 50%;
  top: 71%;
  transform: translate(-50%, -50%);

  padding: 12px 40px;            /* maior */
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);

  background: #e03131;
  color: #fff;

  font-weight: 900;
  letter-spacing: .12em;
  font-size: clamp(25px, 3.2vw, 33px); /* maior */

  cursor: pointer;
  z-index: 20;

  box-shadow: 0 14px 28px rgba(0,0,0,.35);
  transition: transform .12s ease, filter .12s ease;
}

.start-btn:hover{ transform: translate(-50%, -50%) scale(1.06); }
.start-btn:active{ transform: translate(-50%, -50%) scale(.96); }

@media (max-width: 520px){
  .game-char{ display:none; }
}

.answer-btn.correct{
  background: rgba(46, 204, 113, .22);
  border-color: rgba(46, 204, 113, .95);
  box-shadow: 0 10px 22px rgba(46, 204, 113, .18);
}

.answer-btn.wrong{
  background: rgba(231, 76, 60, .22);
  border-color: rgba(231, 76, 60, .95);
  box-shadow: 0 10px 22px rgba(231, 76, 60, .18);
}

/* personagem normal */
.game-char{
  transition: opacity .25s ease, filter .25s ease;
}

.game-char.fade{
  opacity: 1;
  filter: none;
}



/* =========================
   MODAL CONFIRMAR SAÍDA
   ========================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 50000; /* acima de tudo */
  display: grid;
  place-items: center;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* card central com o 40.svg */
.modal-card{
  position: relative;
  width: min(510px, 53vw);
  height: min(420px, 70vh);
  z-index: 2;
  display: grid;
  place-items: center;
}

.modal-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* mantém o formato do svg */
  pointer-events: none;
  user-select: none;
}

.modal-content{
  position: relative;
  width: 78%;
  text-align: center;
  padding: 10px;
}

.modal-title{
  margin: 0 0 18px;

  font-family: "DK Midnight Chalker", sans-serif;
  font-weight: normal;

  font-size: clamp(18px, 2.3vw, 28px);
  color: #111;
}


/* botões */
.modal-actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.modal-btn{
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.15);
  font-weight: 900;
  letter-spacing: .10em;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}

.modal-btn:hover{ transform: translateY(-2px) scale(1.03); }
.modal-btn:active{ transform: translateY(0) scale(.97); }

.modal-btn.yes{ background:#2ecc71; color:#fff; }
.modal-btn.no { background:#e74c3c; color:#fff; }











































/* =====================
   FINAL SCREEN
   ===================== */
.final{
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: url("img/tela_resultado.svg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.final-content{
  position: relative;
  width: 100%;
  height: 100%;
}

/* topo */
.final-quiz{
  position: absolute;
  top: clamp(14px, 2.2vh, 26px);
  left: clamp(14px, 2.2vw, 28px);
  width: clamp(90px, 9vw, 240px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.final-logo-trt{
  position: absolute;
  top: clamp(16px, 2.4vh, 28px);
  right: clamp(14px, 2.6vw, 28px);
  width: clamp(72px, 9vw, 185px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* interrogação grande transparente */
.final-question{
  position: absolute;
  left: -1vw;
  top: 56%;
  transform: translateY(-50%);
  width: min(240px, 31vw);
  height: auto;
  opacity: .25;
  pointer-events: none;
  user-select: none;
}

/* personagem direita */
.final-char{
  position: absolute;
  right: clamp(33px, 2vw, 66px);
  bottom: 0;
  height: min(45vh, 630px);
  width: auto;
  pointer-events: none;
  user-select: none;
}

/* card central */
.final-card{
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(350px, 37vw);
  z-index: 10;
  display: grid;
  place-items: center;
}

.final-card-bg{
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.final-numbers{
  position: absolute;
  left: 38%;
  top: 80%;
  transform: translate(-50%, -50%) translateY(95px); /* desce de verdade */
  display: flex;
  gap: clamp(52px, 6vw, 97px);
}


.final-num{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px; /* espaço entre label e número */
}



.final-num-label{
  display: block;
  font-weight: 900;
  letter-spacing: .14em;
  color: #111;
  opacity: .85;
  font-size: clamp(16px, 1.8vw, 22px); /* 👈 maior */
  line-height: 1.1;
}


.final-num-value{
  display: block;
  font-weight: 1000;
  color: #111;
  font-size: clamp(22px, 4vw, 47px); /* 👈 bem maior */
  line-height: 1;
}

/* ACERTOS (verde) */
.final-numbers .final-num:first-child .final-num-label,
.final-numbers .final-num:first-child .final-num-value{
  color: #2ecc71;
}

/* ERROS (vermelho) */
.final-numbers .final-num:last-child .final-num-label,
.final-numbers .final-num:last-child .final-num-value{
  color: #e74c3c;
}


/* =====================
   BOTÕES – FINAL (ALINHADOS AO BALÃO)
   ===================== */

/* container lógico dos botões */
.final-btn-img{
  position: absolute;
  left: 48%;
  top: calc(62% + 105px); /* 👈 SOBE/DESCE JUNTO COM O BALÃO */
  transform: translateX(-50%);

  width: clamp(212px, 18vw, 259px);
  height: clamp(70px, 8vh, 90px);

  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 12;
}

/* imagem ocupa toda a caixa */
.final-btn-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Denuncie à esquerda do centro */
#btnDenounce{
  margin-left: -110px; /* 👈 ajuste fino */
}

/* Respostas à direita do centro */
#btnAnswers{
  margin-left: 134px; /* 👈 ajuste fino */
  width: clamp(175px, 15vw, 203px); /* 👈 menor que o primeiro */
}

.final-btn-img:hover{ transform: translateX(-50%) scale(1.04); }
.final-btn-img:active{ transform: translateX(-50%) scale(.97); }


/* =======================
   CONFETE – FINAL SCREEN
   ======================= */
.confetti-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50; /* acima do conteúdo */
}






























/* =========================
   GABARITO FINAL — LAYOUT APROVADO
   ========================= */

/* ===== FUNDO NOVO DO GABARITO ===== */
#finalGabarito{
  background: url("img/18.svg") no-repeat center center !important;
  background-size: cover !important;
}

#finalGabarito{
  position: fixed;
  inset: 0;
  z-index: 30000;
}

#finalGabarito .final-card{
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  width: 100%;
  height: 100%;
  display: grid;
  place-items: start center;
}

/* conteúdo */
#finalGabarito .final-card-inner{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 14px 24px;
  padding-right: clamp(260px, 26vw, 360px); /* espaço do personagem */
}

/* título */
#finalGabarito .final-title{
  text-align: center;
  font-weight: 900;
  letter-spacing: .12em;
  font-size: clamp(18px, 2.2vw, 26px);
}

/* GRID NORMAL — ESSE É O SEGREDO */
#finalGabarito #gabaritoLista{
  flex: 1;
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px 19px;

  grid-auto-flow: row;
  align-content: start;

  overflow-y: auto;
  overflow-x: hidden;
}

/* responsivo */
@media (max-width: 980px){
  #finalGabarito #gabaritoLista{
    grid-template-columns: repeat(2, 1fr);
  }
  #finalGabarito .final-card-inner{
    padding-right: 24px;
  }
}

@media (max-width: 640px){
  #finalGabarito #gabaritoLista{
    grid-template-columns: 1fr;
  }
}

/* ITEM */
#finalGabarito .gab-item{
  display: flex;
  flex-direction: column;
  gap: 6px;

  border-left: 4px solid rgba(255,255,255,.25);
  padding-left: 10px;
}

/* topo */
#finalGabarito .gab-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* pergunta */
#finalGabarito .gab-question{
  font-weight: 900;
  line-height: 1.25;
}

/* respostas */
#finalGabarito .gab-answer{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#finalGabarito .gab-line{
  font-size: 14px;
  line-height: 1.25;
}

/* cores */
#finalGabarito .is-correct{
  border-left-color: #2ecc71;
}
#finalGabarito .is-wrong{
  border-left-color: #e74c3c;
}

/* permite sair do grid sem cortar */
#finalGabarito .final-card-inner{
  position: relative;
  overflow: visible;
}


/* ===== GABARITO NOVO (HTML) ===== */
#finalGabarito .final-card{
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(980px, 92vw);
  height: min(520px, 82vh);
  display: grid;
  place-items: center;
}

#finalGabarito .final-card-inner.gaba-panel{
  width: 100%;
  height: 100%;
  background: transparent;   /* remove vidro */
  border: none;              /* remove borda */
  box-shadow: none;          /* remove sombra */
  padding: 6px 10px;        /* reduz espaço */
}

.gaba-header{
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.gaba-h1{
  margin: 10px;
  font-family: "LuckiestGuy", cursive;
  font-weight: normal;
  letter-spacing: .20em;
  font-size: clamp(28px, 4.4vw, 54px);
  text-transform: uppercase;
  text-shadow: 0 6px 18px rgba(0,0,0,.55);
}

.gaba-summary{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.gaba-chip{
  font-family: "DK Midnight Chalker", system-ui, sans-serif;
  letter-spacing: .10em;
  font-size: clamp(14px, 2.0vw, 20px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.14);
}

.gaba-chip.hit b{ color:#2ecc71; }
.gaba-chip.miss b{ color:#e74c3c; }

.gaba-list{
  margin-top: 8px;   /* empurra os cards para baixo */
  overflow: auto;
  padding-right: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas */
  gap: 12px 16px;
  align-content: start;
}

@media (max-width: 820px){
  .gaba-list{ grid-template-columns: 1fr; }
}

.gaba-item{
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.gaba-item.is-correct{ border-color: rgba(46,204,113,.65); }
.gaba-item.is-wrong{ border-color: rgba(231,76,60,.65); }
.gaba-item.is-empty{ border-color: rgba(255,207,99,.55); }

.gaba-q{
  margin: 0 0 10px;
  font-family: "DK Petit Four", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.gaba-lines{
  display: grid;
  gap: 10px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.25;
}

.gaba-line strong{
  font-family: "DK Midnight Chalker", system-ui, sans-serif;
  font-weight: normal;
  letter-spacing: .08em;
}

.gaba-you{ color: rgba(255,255,255,.92); }
.gaba-correct{ color: #2ecc71; }
.gaba-wrong{ color: #e74c3c; }
.gaba-empty{ color: #ffcf63; }


































/* =========================================================
   BOTÃO Próximo — RECRIADO (DEIXE ESTE BLOCO NO FIM)
   ========================================================= */

#finalGabarito{
  position: fixed; /* garante referência para absolute */
  inset: 0;
}

#finalGabarito .gabarito-img,
#finalGabarito .final-char,
#finalGabarito .final-card-bg,
#finalGabarito .final-question{
pointer-events: none !important; /* nada rouba clique */
}

/* Botão PRÓXIMO no gabarito: tamanho normal e canto direito */
#finalGabarito #btnFinalRestart.final-restart-btn{
  position: absolute !important;
  right: 22px !important;
  bottom: 18px !important;

  width: auto !important;       /* impede virar barra */
  min-width: 180px;             /* opcional */
  padding: 14px 22px !important;

  border-radius: 16px !important;
  z-index: 999999 !important;
  pointer-events: auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 14px 22px !important;
  border-radius: 16px !important;
  border: none !important;

  background: linear-gradient(180deg, #00b4ff, #0088cc) !important;
  color: #fff !important;

  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;

  cursor: pointer !important;

  box-shadow:
    0 10px 22px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.25) !important;
}

/* modo apresentação (1024x600 no #presenter-frame) */
#presenter-frame #finalGabarito #btnFinalRestart.final-restart-btn{
  right: 14px !important;
  bottom: 14px !important;

  left: auto !important;   /* cancela o left que travava na esquerda */

  padding: 12px 16px !important;
  font-size: 13px !important;
}



/* === IMAGEM DO GABARITO (49.svg) === */
.gabarito-img{
  display: block;
  width: min(860px, 125vw);
  height: auto;

  margin: 50px auto 0; /* centraliza e dá respiro */
  transform: translateX(0px); /* Se quiser um pouco mais à Esquerda/direita */
}


/* Ajuste fino do botão PRÓXIMO no gabarito */
#finalGabarito #btnFinalRestart{
  position: absolute !important;

  right: 5px !important;   /* joga para direita */
  bottom: 20px !important;

  left: auto !important;

  width: auto !important;   /* remove largura 100% */
  max-width: 220px;         /* opcional */
  padding: 14px 26px !important;

  border-radius: 18px !important;
}




























/* =====================
   GOODBYE SCREEN (DESPEDIDA)
   ===================== */
.goodbye{
  position: fixed;
  inset: 0;
  z-index: 95000;
  background: url("img/tela_padrao.svg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.goodbye-content{
  position: relative;
  width: 100%;
  height: 100%;
}

/* canvas dos fogos */
.fireworks-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* topo */
.goodbye-quiz{
  position: absolute;
  top: clamp(14px, 2.2vh, 26px);
  left: clamp(14px, 2.2vw, 28px);
  width: clamp(100px, 14vw, 190px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 10;
}

.goodbye-logo-trt{
  position: absolute;
  top: clamp(16px, 2.4vh, 28px);
  right: clamp(14px, 2.6vw, 28px);
  width: clamp(110px, 12vw, 180px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 10;
}


/* personagem: começa na direita (padrão) */
.goodbye-char{
  position: absolute;
  right: clamp(60px, 6vw, 120px);
  bottom: 0;
  height: min(50vh, 645px);
  width: auto;
  pointer-events: none;
  user-select: none;
  z-index: 9;

  /* IMPORTANTE: visível e sem empurrar pra fora */
  transform: translateX(0);
  transition: transform 900ms ease-out;
}

/* quando abrir a tela, ele desliza pro meio */
.goodbye-char.move-center{
  transform: translateX(-18vw);
}
















/* ================================
   MODO APRESENTAÇÃO 740x464
   ================================ */

/* fundo de apresentação */
#presenter-bg{
  position: fixed;
  inset: 0;
  background: #0b1f2a;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* caixa travada do jogo */
#presenter-frame {
  width: 1024px;
  height: 600px;
  position: relative;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.2),
    0 20px 60px rgba(0,0,0,.6);
}


/* 🔴 ISSO É O PONTO-CHAVE 🔴
   todas as telas do jogo
   deixam de ser fixed
   e passam a respeitar a caixa */
#presenter-frame .splash,
#presenter-frame .intro,
#presenter-frame .preGame,
#presenter-frame .loading,
#presenter-frame .game,
#presenter-frame .final,
#presenter-frame .goodbye{
  position: absolute !important;
  inset: 0;
}


















/* =========================
   EFEITO TV OFF/ON (CRT melhorado)
   ========================= */
.tvfx{
  position: absolute;   /* era fixed */
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  display: grid;
  place-items: center;
}

#presenter-frame{
  position: relative;
  overflow: hidden;
}


/* camada que escurece e “fecha” */
.tvfx-dim{
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
}

/* scanlines (linhas horizontais leves) */
.tvfx-scan{
  position: absolute;
  inset: 0;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.06) 0px,
    rgba(255,255,255,.06) 1px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,0) 6px
  );
  mix-blend-mode: overlay;
}

/* vinheta */
.tvfx-vignette{
  position: absolute;
  inset: -10%;
  opacity: 0;
  background: radial-gradient(closest-side, rgba(0,0,0,0) 60%, rgba(0,0,0,.75) 100%);
}

/* flash */
.tvfx-flash{
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

/* linha vertical (desliga/liga) */
.tvfx-line{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 120%;
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;

  background: rgba(255,255,255,.95);
  box-shadow:
    0 0 10px rgba(255,255,255,.55),
    0 0 30px rgba(255,255,255,.25);
  filter: saturate(1.1);
}

/* micro “tremida” CRT */
@keyframes tvJitter{
  0%   { transform: translate(0,0); }
  20%  { transform: translate(0.3px,-0.2px); }
  40%  { transform: translate(-0.4px,0.2px); }
  60%  { transform: translate(0.2px,0.4px); }
  80%  { transform: translate(-0.2px,-0.3px); }
  100% { transform: translate(0,0); }
}

/* OFF: fecha para linha e apaga */
@keyframes tvOffDim{
  0%   { opacity: 0; }
  35%  { opacity: .55; }
  100% { opacity: 1; }
}
@keyframes tvOffFlash{
  0%   { opacity: 0; }
  8%   { opacity: .55; }
  22%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes tvOffScan{
  0%   { opacity: 0; }
  20%  { opacity: .25; }
  80%  { opacity: .18; }
  100% { opacity: 0; }
}
@keyframes tvOffVignette{
  0%   { opacity: 0; }
  35%  { opacity: .25; }
  100% { opacity: .55; }
}
@keyframes tvOffLine{
  0%   { opacity: 0; transform: translate(-50%, -50%) scaleY(1); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scaleY(.30); }
  55%  { opacity: 1; transform: translate(-50%, -50%) scaleY(.08); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
}

/* ON: acende e abre */
@keyframes tvOnDim{
  0%   { opacity: 1; }
  40%  { opacity: .65; }
  100% { opacity: 0; }
}
@keyframes tvOnFlash{
  0%   { opacity: 0; }
  15%  { opacity: .35; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes tvOnScan{
  0%   { opacity: 0; }
  25%  { opacity: .22; }
  100% { opacity: 0; }
}
@keyframes tvOnVignette{
  0%   { opacity: .55; }
  60%  { opacity: .25; }
  100% { opacity: 0; }
}
@keyframes tvOnLine{
  0%   { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scaleY(.10); }
  55%  { opacity: 1; transform: translate(-50%, -50%) scaleY(.75); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleY(1); }
}

/* classes de execução */
.tvfx.run-off{
  animation: tvJitter 120ms linear 2;
}
.tvfx.run-off .tvfx-dim{      animation: tvOffDim  520ms ease-out both; }
.tvfx.run-off .tvfx-flash{    animation: tvOffFlash 220ms ease-out both; }
.tvfx.run-off .tvfx-scan{     animation: tvOffScan  520ms ease-out both; }
.tvfx.run-off .tvfx-vignette{ animation: tvOffVignette 520ms ease-out both; }
.tvfx.run-off .tvfx-line{     animation: tvOffLine 520ms cubic-bezier(.2,.9,.2,1) both; }

.tvfx.run-on{
  animation: tvJitter 120ms linear 2;
}
.tvfx.run-on .tvfx-dim{       animation: tvOnDim  620ms ease-out both; }
.tvfx.run-on .tvfx-flash{     animation: tvOnFlash 260ms ease-out both; }
.tvfx.run-on .tvfx-scan{      animation: tvOnScan  620ms ease-out both; }
.tvfx.run-on .tvfx-vignette{  animation: tvOnVignette 620ms ease-out both; }
.tvfx.run-on .tvfx-line{      animation: tvOnLine 620ms cubic-bezier(.2,.9,.2,1) both; }

/* acessibilidade */
@media (prefers-reduced-motion: reduce){
  .tvfx, .tvfx *{ animation: none !important; }
}

























/* ===== Overlay "Vire o celular" (BASE) ===== */
.rotate-lock{
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.78);
  padding: 18px;
}

.rotate-lock.hidden{ display:none !important; }

.rotate-lock-card{
  width: min(520px, 92vw);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;

  /* 🔵 azul igual ao layout */
  background: linear-gradient(180deg, #042B45 0%, #001827 100%);
  border: 2px solid rgba(255,255,255,.15);

  box-shadow: 0 25px 70px rgba(0,0,0,.65);
}


.rotate-lock-title{
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 22px;
  color: #ffffff;
}

.rotate-lock-text{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255,255,255,.85);
}

.rotate-lock-icon{
  font-size: 42px;
  color: #ffffff;
  opacity: .9;
}



html, body{
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: manipulation;
}

















































































/* =========================
   SPLASH — MOBILE AJUSTE FINO
   ========================= */
@media (max-width: 900px){

  .splash{
    background-size: 93% auto !important;     /* diminui */
    background-position: center 376% !important; /* desce */
  }

}

@media (max-width: 900px){

  .splash-jogar{
    top: calc(48% + 158px) !important; /* 🔼 sobe (antes era 196px) */
    width: clamp(63px, 14vw, 126px) !important; /* 👈 aumenta de verdade */
  }

}



























/* =========================
   INTRO — MOBILE
   ========================= */
@media (max-width: 900px){

  .intro{
    background-position: center center;
    background-size: cover;
  }

  /* “Oferecimento” sobe um pouco e fica menor */
  .intro-offer{
  top: 30% !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-size: clamp(12px, 3.2vw, 14px) !important;
  letter-spacing: .10em !important;
  left: 0 !important;
  width: 100%;
  padding: 0 10px;
}

  /* Logo do quiz: menor e sem empurrar a tela */
  .intro-logo{
    width: min(160px, 60vw) !important;
    margin-bottom: 24px !important;
    left: 0 !important;
    top: 0 !important;
  }

  /* bloco das logos: mais compacto */
  .intro-logos{
  gap: 16px !important;
  transform: translateY(-35px) scale(1.18) !important; /* 👈 aumenta tudo */
  transform-origin: center !important;
}

  .logos-row{
    gap: 18px !important;
    top: 0 !important;
  }

  /* as duas linhas que você empurra no desktop: no mobile vira bem menos */
  .intro-logos .logos-row:first-child{
    transform: translateY(4px) !important;
  }

  .intro-logos .logos-row:last-child{
    transform: translateY(-5px) !important;
  }

  /* Logos individuais: encolhe geral */
 .intro-logo-corrida{
  width: min(300px, 78vw) !important; transform:none !important; 
  transform: none !important;
}

.intro-logo-voto-livre{ 
  width: min(206px, 55vw) !important; transform:none !important;
  transform: none !important;
}


  /* se tiver outras logos usando .intro-logo-custom */
  .intro-logo-custom{
    width: min(110px, 32vw) !important;
    transform: scale(.95) !important;
  }
}

/* 🔽 DIMINUIR LOGOS DE BAIXO */
.intro-logos .logos-row:last-child .intro-logo{
  width: min(110px, 24vw) !important;
  height: auto !important;
}














































/* =========================
   PREGAME (TELA- LOGIN) — MOBILE CONTROLES
   ========================= */
@media (max-width: 900px){

  /* ===== CONTROLES (mexa aqui) ===== */
  :root{
    --pg-bg-pos-y: -50%;        /* fundo: sobe/desce (0% topo / 100% baixo) */
    --pg-card-y: 65%;          /* card: sobe/desce (quanto MENOR, mais sobe) */
    --pg-card-w: 25vw;     /* controla o “bloco” todo */
    --pg-fields-w: 20vw;   /* controla Nome/CPF */
    --pg-btn-w: -2vw;      /* controla o botão */
    --pg-fields-w: 86vw;       /* largura do bloco dos campos */
    --pg-input-h: 38px;        /* altura inputs */
    --pg-input-fs: 14px;       /* fonte inputs */
    --pg-btn-w: 10vw;          /* largura do botão */
    --pg-btn-fs: 7px;         /* fonte do botão */
    --pg-skip-fs: 14px;        /* fonte do "jogar sem cadastrar" */
    --pg-gap: 12px;            /* espaçamento entre campos */
  }

  /* FUNDO (imagem) */
  .preGame-bg{
    object-fit: contain !important;
    transform: scale(0.88);   /* 👈 controla tamanho */
  }

  /* CARD (form) — central e controlável */
  .preGame-card{
    width: var(--pg-card-w) !important;
    left: 50% !important;
    top: -5% !important;
    transform: translate(-50%, -50%) !important;
    margin-top: 0 !important;
  }

  /* BLOCO DOS CAMPOS (remove o “empurrão” do desktop) */
  .preGame-row{
    width: min(var(--pg-fields-w), 100%) !important;
    margin-top: -140px !important;   /* ↓ menor valor = sobe */
    gap: var(--pg-gap) !important;
  }

  /* INPUTS */
  .preGame-label{
    width: 100% !important;
  }

  .preGame-label input{
    width: 100% !important; /* dentro do bloco dos campos */
    height: var(--pg-input-h) !important;
    font-size: var(--pg-input-fs) !important;
  }

  /* BOTÃO CONTINUAR */
  .preGame-btn{
    width: min(var(--pg-btn-w), 100%) !important;
    font-size: var(--pg-btn-fs) !important;
    padding: 10px 18px !important;  /* controle extra */
    margin-top: 8px !important;
  }

  /* JOGAR SEM CADASTRAR */
  .skip-link{
    font-size: var(--pg-skip-fs) !important;
    margin-top: 0px !important;
  }
}





















/* ==================================================
   GAME — MOBILE CONTROLES (SÓ #game)
   mexa só nos números abaixo
   ================================================== */
@media (max-width: 900px){

  /* ===== CONTROLES ===== */
  :root{
    /* FUNDO do GAME (só posição e zoom do background) */
    --gm-bg-x: 50%;
    --gm-bg-y: 80%;
    --gm-bg-size: 104%;   /* aumenta/diminui o fundo */

    /* PERGUNTA */
    --gm-q-top: 39%;
    --gm-q-w: 35vw;
    --gm-q-font: 14px;

    /* CONTAGEM (1/6) */
    --gm-p-top: -44px;
    --gm-p-font: 14px;

    /* ALTERNATIVAS */
    --gm-a-top: 53%;
    --gm-a-w: 50vw;
    --gm-a-cols: 2;       /* 1 ou 2 */
    --gm-a-gap: 12px;
    --gm-a-font: 10px;
    --gm-a-pad-y: 12px;
    --gm-a-pad-x: 14px;

    /* PERSONAGEM */
    --gm-char-show: 1;    /* 1 mostra / 0 esconde */
    --gm-char-right: 65px;
    --gm-char-bottom: 104px;
    --gm-char-h: 260px;

    /* HUD (volume / sair) */
    --gm-hud-bottom: 100px;
    --gm-hud-left: 14px;
    --gm-hud-right: 14px;
    --gm-hud-size: 32px;
  }

  /* ===== FUNDO (SÓ #game) ===== */
  #game.game{
    background-position: var(--gm-bg-x) var(--gm-bg-y) !important;
    background-size: var(--gm-bg-size) !important;
  }

  /* ===== PERGUNTA ===== */
  #game .quiz-question{
    top: var(--gm-q-top) !important;
    width: var(--gm-q-w) !important;
  }
  #game .quiz-question-text{
    font-size: var(--gm-q-font) !important;
    width: 90% !important;
  }

  /* ===== CONTAGEM ===== */
  #game .quiz-progress{
    top: var(--gm-p-top) !important;
    font-size: var(--gm-p-font) !important;
  }

  /* ===== ALTERNATIVAS ===== */
  #game .quiz-answers{
    top: var(--gm-a-top) !important;
    width: var(--gm-a-w) !important;
    grid-template-columns: repeat(var(--gm-a-cols), 1fr) !important;
    gap: var(--gm-a-gap) !important;
  }
  #game .answer-btn{
    font-size: var(--gm-a-font) !important;
    padding: var(--gm-a-pad-y) var(--gm-a-pad-x) !important;
  }

  /* ===== PERSONAGEM ===== */
  #game .game-char{
    opacity: var(--gm-char-show) !important;
    right: var(--gm-char-right) !important;
    bottom: var(--gm-char-bottom) !important;
    height: var(--gm-char-h) !important;
    width: auto !important;
    display: block !important;
  }

  /* ===== TIMER ===== */
  #game .game-timer{
    top: var(--gm-timer-top) !important;
    width: var(--gm-timer-w) !important;
  }

  /* ===== HUD (VOLUME/SAIR) ===== */
  #game #btnVolume.hud-btn{
    left: var(--gm-hud-left) !important;
    bottom: var(--gm-hud-bottom) !important;
    width: var(--gm-hud-size) !important;
    height: var(--gm-hud-size) !important;
  }
  #game #btnSair.hud-btn{
    right: var(--gm-hud-right) !important;
    bottom: var(--gm-hud-bottom) !important;
    width: var(--gm-hud-size) !important;
    height: var(--gm-hud-size) !important;
  }
}


@media (max-width: 900px){

  #game .hud-right::before{
    bottom: calc(100% - 10px) !important; /* sobe */
  }

}

/* ===== TIMER visível no MOBILE (não mexe no desktop) ===== */
@media (max-width: 900px){

  /* CONTROLES (ajuste do jeito que você quiser) */
  :root{
    --gm-timer-top: 108px;     /* sobe/desce */
    --gm-timer-w: 120px;      /* largura do “card” */
    --gm-timer-h: 54px;       /* altura do “card” */
    --gm-timer-font: 26px;    /* tamanho do 01:30 */
  }

  /* garante área + camada acima */
  #game .game-timer{
    top: var(--gm-timer-top) !important;
    width: var(--gm-timer-w) !important;
    height: var(--gm-timer-h) !important;

    z-index: 5000 !important;           /* sobe a camada do card */
    pointer-events: none !important;
  }

  /* garante o texto dentro do card e por cima de tudo */
  #game #timerText{
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;

    font-size: var(--gm-timer-font) !important;
    line-height: 1 !important;

    z-index: 5001 !important;           /* texto acima do card */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}




































/* =========================================
   FINAL (ACERTOS/ERROS) — MOBILE ONLY
   Controles de FUNDO + BOTÕES
   Cole no FIM do styles.css
   ========================================= */
@media (max-width: 900px){

  /* ===== CONTROLES (mexa só aqui) ===== */
  :root{
    /* FUNDO da tela final */
    --fn-bg-x: 50%;
    --fn-bg-y: 50%;
    --fn-bg-size: 93%;     /* aumenta/diminui o zoom do fundo */

    /* CARD (onde ficam ACERTOS/ERROS) */
    --fn-card-top: 59%;
    --fn-card-w: 78vw;

    /* NÚMEROS (ACERTOS/ERROS) — posição e tamanho */
    --fn-numbers-top: 80%;
    --fn-numbers-left: 46%;
    --fn-numbers-gap: 7vw; /* espaço entre ACERTOS e ERROS */
    --fn-label-fs: 13px;
    --fn-value-fs: 30px;

    /* BOTÕES (Denunciar / Ver gabarito) */
    --fn-btn-top: calc(55% + 74px); /* sobe/desce os botões */
    --fn-btn-h: 56px;
    --fn-denounce-w: 19vw;
    --fn-answers-w: 15vw;
    --fn-btn-gap: 19vw;            /* distância horizontal entre eles */
  }

  /* ===== FUNDO (SÓ #final) ===== */
  #final.final{
    background-position: var(--fn-bg-x) var(--fn-bg-y) !important;
    background-size: var(--fn-bg-size) !important;
  }

  /* ===== CARD CENTRAL ===== */
  #final .final-card{
    top: var(--fn-card-top) !important;
    width: var(--fn-card-w) !important;
  }

  /* ===== NÚMEROS ===== */
  #final .final-numbers{
    left: var(--fn-numbers-left) !important;
    top: var(--fn-numbers-top) !important;
    transform: translate(-50%, -50%) !important; /* remove offsets do desktop */
    gap: var(--fn-numbers-gap) !important;
  }

  #final .final-num-label{
    font-size: var(--fn-label-fs) !important;
  }

  #final .final-num-value{
    font-size: var(--fn-value-fs) !important;
  }

  /* ===== BOTÕES — MOBILE (override total) ===== */
  #final .final-btn-img{
    top: var(--fn-btn-top) !important;
    height: var(--fn-btn-h) !important;
    margin-left: 0 !important; /* mata os offsets do desktop */
  }

  /* Denunciar (esquerda) */
  #final #btnDenounce.final-btn-img{
    left: calc(50% - (var(--fn-btn-gap) / 2)) !important;
    width: var(--fn-denounce-w) !important;
    transform: translateX(-50%) !important;
  }

  /* Ver gabarito (direita) */
  #final #btnAnswers.final-btn-img{
    left: calc(50% + (var(--fn-btn-gap) / 2)) !important;
    width: var(--fn-answers-w) !important;
    transform: translateX(-50%) !important;
  }

  /* garante clique e camada acima do confete */
  #final #btnDenounce,
  #final #btnAnswers{
    z-index: 60 !important;
    pointer-events: auto !important;
  }

  /* (opcional) se o confete estiver “roubando” toque em algum celular */
  #final .confetti-canvas{
    pointer-events: none !important;
  }
}

@media (max-width: 900px){

  :root{
    --fn-btn-shift-x: -23px; /* <-- AQUI: positivo = vai pra direita */
  }

  /* ZERA os offsets do desktop (ID vence classe) */
  #final #btnDenounce,
  #final #btnAnswers{
    margin-left: 0 !important;
  }

  /* Denunciar (esquerda) — agora COM shift */
  #final #btnDenounce.final-btn-img{
    left: calc(50% - (var(--fn-btn-gap) / 2) + var(--fn-btn-shift-x)) !important;
    width: var(--fn-denounce-w) !important;
    transform: translateX(-50%) !important;
  }

  /* Ver gabarito (direita) — agora COM shift */
  #final #btnAnswers.final-btn-img{
    left: calc(50% + (var(--fn-btn-gap) / 2) + var(--fn-btn-shift-x)) !important;
    width: var(--fn-answers-w) !important;
    transform: translateX(-50%) !important;
  }
}























































/* =========================================
   GABARITO — MOBILE ONLY (sem mexer no desktop)
   Controles: título, cards, textos e botão Próximo
   ========================================= */
@media (max-width: 900px){

  /* ===== CONTROLES (mexa só aqui) ===== */
  :root{
    /* “janela” do gabarito (painel) */
    --gb-panel-w: 94vw;      /* painel ocupa quase toda a tela */
    --gb-panel-h: 82vh;
    --gb-panel-top: 46%;   /* sobe/desce o painel */
    --gb-panel-left: 50%;  /* esquerda/direita do painel */

    /* título GABARITO */
    --gb-title-mt: 6px;    /* margem-top */
    --gb-title-mb: 6px;    /* margem-bottom */
    --gb-title-fs: 30px;   /* tamanho da fonte */
    --gb-title-x: 0px;     /* esquerda/direita do título */
    --gb-title-y: 0px;     /* sobe/desce do título */

    /* lista/grid */
    --gb-cols: 3;          /* 1 no mobile */
    --gb-gap-x: 14px;
    --gb-gap-y: 10px;        /* menos espaço entre cards */
    --gb-list-mt: 8px;     /* empurra cards pra baixo */

    /* cards */
    --gb-card-pad: 8px;      /* menos espaço interno */
    --gb-card-radius: 14px;  /* levemente menor */

    /* fontes dentro do card */
    --gb-q-fs: 14px;         /* pergunta menor */
    --gb-line-fs: 11px;      /* linhas menores */
    --gb-strong-fs: 11px;

    /* botão Próximo */
    --gb-next-right: 12px; /* aumenta = vai mais pra esquerda? (não) -> é distância da borda direita */
    --gb-next-pad-y: 12px;
    --gb-next-pad-x: 16px;
    --gb-next-fs: 13px;
  }

  /* ===== PAINEL CENTRAL (ajusta tamanho e posição) ===== */
  #finalGabarito .final-card{
    width: var(--gb-panel-w) !important;
    height: var(--gb-panel-h) !important;
    left: var(--gb-panel-left) !important;
    top: var(--gb-panel-top) !important;
    transform: translate(-50%, -50%) !important;
  }

  /* garante que o conteúdo use 100% do painel */
  #finalGabarito .final-card-inner.gaba-panel{
    width: 100% !important;
    height: 100% !important;
    padding: 8px 10px !important;
  }

  /* ===== TÍTULO ===== */
  #finalGabarito .gaba-h1{
    margin-top: var(--gb-title-mt) !important;
    margin-bottom: var(--gb-title-mb) !important;
    font-size: var(--gb-title-fs) !important;
    transform: translate(var(--gb-title-x), var(--gb-title-y)) !important;
    letter-spacing: .16em !important;
  }

  /* ===== GRID DA LISTA ===== */
  #finalGabarito .gaba-list{
    margin-top: var(--gb-list-mt) !important;
    grid-template-columns: repeat(var(--gb-cols), 1fr) !important;
    gap: var(--gb-gap-y) var(--gb-gap-x) !important;

    /* mobile: mais suave */
    padding-right: 2px !important;
  }

  /* ===== CARD ===== */
  #finalGabarito .gaba-item{
    padding: var(--gb-card-pad) !important;
    border-radius: var(--gb-card-radius) !important;
  }

  /* fontes dentro */
  #finalGabarito .gaba-q{
    font-size: var(--gb-q-fs) !important;
    margin: 0 0 8px !important;
  }

  #finalGabarito .gaba-lines{
    font-size: var(--gb-line-fs) !important;
    gap: 8px !important;
  }

  #finalGabarito .gaba-line strong{
    font-size: var(--gb-strong-fs) !important;
    letter-spacing: .06em !important;
  }




 /* FIX DEFINITIVO — botão PRÓXIMO do Gabarito (SÓ MOBILE) */
@media (hover: none) and (pointer: coarse){
  /* pega o botão com e sem classe, e ganha de tudo */
  #finalGabarito #btnFinalRestart,
  #finalGabarito #btnFinalRestart.final-restart-btn,
  #presenter-frame #finalGabarito #btnFinalRestart,
  #presenter-frame #finalGabarito #btnFinalRestart.final-restart-btn{
    position: absolute !important;

    /* >>> CONTROLES <<< */
    right: 24px !important;   /* direita/esquerda */
    bottom: 110px !important; /* sobe/desce (maior = sobe) */

    /* tamanho do botão */
    padding: 10px 14px !important;
    font-size: 12px !important;

    width: auto !important;
    max-width: 200px !important;

    left: auto !important;
    z-index: 9999999 !important;
  }
}

}





























/* =========================================
   GOODBYE — AJUSTES (MOBILE)
   fundo menor + logos do topo mais para baixo + personagem maior
   ========================================= */
@media (max-width: 900px){

  :root{
    /* FUNDO */
    --gbg-bg-size: 180%;   /* diminui o fundo (ex: 70% menor, 90% maior) */
    --gbg-bg-x: 50%;
    --gbg-bg-y: 55%;      /* desce o fundo (maior = mais para baixo) */

    /* LOGOS DO TOPO */
    --gbg-top-y: 115px;    /* desce as duas logos (maior = mais para baixo) */

    /* PERSONAGEM */
    --gbg-char-h: 72vh;   /* aumenta personagem (ex: 80vh bem grande) */
    --gbg-char-right: 20px;
    --gbg-char-bottom: 104px;
  }

  /* FUNDO: diminui/posiciona */
  #goodbye.goodbye{
    background-size: var(--gbg-bg-size) !important;
    background-position: var(--gbg-bg-x) var(--gbg-bg-y) !important;
  }

  /* LOGOS DO TOPO: desce */
  #goodbye .goodbye-quiz{
    top: var(--gbg-top-y) !important;
  }
  #goodbye .goodbye-logo-trt{
    top: var(--gbg-top-y) !important;
  }

  /* PERSONAGEM: maior */
  #goodbye .goodbye-char{
    height: var(--gbg-char-h) !important;
    right: var(--gbg-char-right) !important;
    bottom: var(--gbg-char-bottom) !important;
  }
}











































/* ===== INTRO: logos de baixo (DESKTOP) ===== */
@media (min-width: 901px){
  #intro .intro-logos .logos-row:last-child .intro-logo-trt{
    width: 220px !important;
    height: auto !important;
    transform: scale(1.0) !important;
    transform-origin: center !important;
  }

  #intro .intro-logos .logos-row:last-child .intro-logo-mpt{
    width: 190px !important;
    height: auto !important;
    transform: scaleX(1.20) !important; /* desktop ok */
    transform-origin: center !important;
  }

  #intro .intro-logos .logos-row:last-child .intro-logo-oab{
    width: 120px !important;
    height: auto !important;
    transform: none !important;
  }
}

/* ===== INTRO: logos de baixo (MOBILE) ===== */
@media (max-width: 900px){
  #intro .intro-logos .logos-row:last-child .intro-logo-trt{
    width: 145px !important;      /* 👈 ajusta TRT aqui */
    height: auto !important;
    transform: none !important;   /* 👈 mobile sem scale */
  }

  #intro .intro-logos .logos-row:last-child .intro-logo-mpt{
    width: 110px !important;      /* 👈 ajusta MPT aqui */
    height: auto !important;
    transform: none !important;   /* 👈 tira o “espremido” */
  }

  #intro .intro-logos .logos-row:last-child .intro-logo-oab{
    width: 85px !important;       /* 👈 ajusta OAB aqui */
    height: auto !important;
    transform: none !important;
  }
}






















/* ===== LER TERMO DE RESPONSÁBILIDADE ===== */
/* Só deixa o link visível, sem mexer no layout */
#preGame .consent-link{
  color: #55d7ff;
  text-decoration: underline;
  font-weight: 700;
  display: inline;
}

@media (max-width: 900px){

  #preGame .preGame-consentWrap{
    position: absolute;
    left: 50%;
    top: 76%;              /* controla altura */
    transform: translateX(-50%);
    width: 90vw;
    display: flex;
    justify-content: center;
    z-index: 999;
  }

  #preGame .preGame-consent{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;       /* permite quebrar linha */
    text-align: center;
  }

  #preGame .preGame-consent span{
    font-size: 12px;
    line-height: 1.2;
  }

  #preGame .consent-link{
    margin-left: 6px;
  }

}

/* =========================
   PRE-GAME (FIX DEFINITIVO)
   Mobile fica como está (só impede sumir)
   Desktop ajusta posição
   ========================= */

/* MOBILE: não deixa o form sumir (corrige top:-5%) */
@media (max-width: 900px){
  #preGame #userForm.preGame-card{
    top: 67% !important;
    left: 50% !important;
    transform: translate(-50%, -25%) !important;
  }
  /* se o seu mobile já estava bom, isso só garante que ele continue visível */
}

/* DESKTOP: sobe o formulário e deixa espaço pro consentimento */
@media (min-width: 901px){
  #preGame #userForm.preGame-card{
    top: 69% !important; /* <--- sobe/dese conforme precisar */
    left: 51% !important;
    transform: translate(-50%, -50%) !important;
  }

  #preGame .preGame-consentWrap{
    top: 125% !important; /* <--- garante que apareça no desktop */
  }
}



/* ================================
   DESKTOP: CONSENTIMENTO “2 LINHAS”
   Link fica na MESMA LINHA da 2ª linha
   (não mexe no HTML)
================================== */
@media (min-width: 901px) {

  /* CONTROLES (ajuste fino) */
  :root{
    --consent-top: 40%;       /* sobe/desce o bloco no desktop */
    --consent-left: 28%;      /* esquerda/direita */
    --consent-width: 520px;   /* largura (controla a quebra em 2 linhas) */
    --consent-font: 14px;     /* tamanho do texto */
    --consent-link-font: 15px;/* tamanho do link */
  }

  #preGame .preGame-consentWrap{
    position: absolute !important;
    top: var(--consent-top) !important;
    left: var(--consent-left) !important;
    width: var(--consent-width) !important;
    z-index: 999 !important;
  }

  /* NÃO usa grid/flex aqui: deixa o texto fluir e quebrar bonito */
  #preGame .preGame-consent{
    position: relative !important;
    display: block !important;
    padding-left: 28px;                 /* espaço do checkbox */
    font-size: var(--consent-font);
    line-height: 1.25;
    color: #fff;
  }

  /* Checkbox “solto” à esquerda do texto */
  #preGame #inputConsent{
    position: absolute !important;
    left: 0;
    top: 2px;                           /* sobe/desce só o checkbox */
    transform: scale(1.05);
    margin: 0 !important;
  }

  /* Texto e link ficam INLINE (mesma linha/mesmo parágrafo) */
  #preGame .preGame-consent span{
    display: inline !important;
  }

  #preGame .preGame-consent .consent-link{
    display: inline !important;
    margin-left: 6px;
    font-size: var(--consent-link-font);
    font-weight: 700;
    white-space: nowrap;                /* não quebra “Ler termo (PDF)” */
    vertical-align: baseline;
  }
}



@media (min-width: 901px){
  #preGame #userForm.preGame-card{
    top: 65% !important;
    left: 51% !important;
    transform: translate(-50%, -50%) !important;
  }

  #preGame .preGame-consentWrap{
    top: 31% !important;
  }
}









#preGame { position: relative; }

#formError{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); z-index: 60;

  display: none;
  max-width: min(520px, 88vw);
  padding: 14px 18px; border-radius: 14px;

  background: rgba(200, 30, 30, 0.55); /* ajuste 0.45–0.65 se quiser */
  border: 1px solid rgba(255,255,255,.20);
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35;
  text-align: center;

  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.30);
  pointer-events: none;
}

.form-error {
  opacity: 1;
  transition: opacity 0.5s ease;
}
















































.modal-title strong{
  display: inline-block;
  margin-top: 8px;
  font-size: 1.2em;
  color: #0b2a43;
}





