@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* =====================================
   CORES DO JOGO
===================================== */

:root {
  --green: #155b45;
  --deep: #10352f;
  --gold: #f7c85d;
  --cream: #fff9e9;
  --ink: #18332e;
  --mint: #dff4e8;
  --coral: #ff876f;
}

/* =====================================
   CONFIGURAÇÕES GERAIS
===================================== */

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  font-family: 'Nunito', system-ui, -apple-system,
    Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #e5f7e9, #fff4d8);
  overflow-x: hidden;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* =====================================
   CONTAINER PRINCIPAL
===================================== */

.wrap {
  width: min(940px, 94%);
  margin: 22px auto 44px;
}

/* =====================================
   CAPA DO JOGO
===================================== */

.hero {
  overflow: hidden;
  border-radius: 26px;
  background: var(--deep);
  box-shadow: 0 16px 40px #153b2b2b;
}

.hero > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.hero-foot {
  padding: 15px 22px;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, #10352f, #1b654c);
}

.hero-foot p {
  margin: 4px 0;
  color: #e6f4e8;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h2 {
  margin: 0 0 12px;
  color: var(--green);
}

/* =====================================
   PAINÉIS
===================================== */

.panel {
  margin-top: 18px;
  padding: clamp(18px, 4vw, 32px);
  background: #ffffffed;
  border: 1px solid #d6e8d8;
  border-radius: 24px;
  box-shadow: 0 10px 28px #173c2b12;
}

/* =====================================
   TELA INICIAL
===================================== */

.intro {
  text-align: center;
}

.intro p {
  line-height: 1.6;
}

.rounds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
}

.pill {
  padding: 8px 13px;
  border-radius: 30px;
  background: #edf7ed;
  font-size: .9rem;
  font-weight: 700;
}

.small {
  color: #5b7167;
  font-size: .92rem;
}

/* =====================================
   BOTÕES PRINCIPAIS
===================================== */

.btn {
  padding: 13px 20px;
  color: white;
  background: var(--green);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 5px 0 #0d3d30;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: .15s;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* =====================================
   INFORMAÇÕES DA PARTIDA
===================================== */

.topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #477064;
  font-weight: 700;
}

/* =====================================
   BARRA DE PROGRESSO
===================================== */

.progress {
  height: 10px;
  margin: 12px 0 22px;
  overflow: hidden;
  background: #e6eee6;
  border-radius: 99px;
}

.bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #58b879, #f3c44f);
  transition: width .3s;
}

/* =====================================
   IDENTIFICAÇÃO DA RODADA
===================================== */

.badge-round {
  display: inline-block;
  padding: 6px 11px;
  color: #805a08;
  background: #fff0c7;
  border-radius: 99px;
  font-weight: 800;
}

/* =====================================
   PERGUNTAS
===================================== */

.question {
  margin: 12px 0 18px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.35;
}

/* =====================================
   IMAGENS DAS PERGUNTAS
===================================== */

.question-image-container {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.question-image {
  display: block;
  width: min(100%, 560px);
  max-height: 300px;
  object-fit: contain;
  border: 3px solid #d6e8d8;
  border-radius: 18px;
}

/* =====================================
   ALTERNATIVAS
===================================== */

.answers {
  display: grid;
  gap: 10px;
}

.answer {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  text-align: left;
  background: #fbfdf9;
  border: 2px solid #d8e8dc;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: .15s;
}

.answer:hover:not(:disabled) {
  background: #f0faef;
  border-color: #55a876;
}

.answer:disabled {
  cursor: default;
}

.answer.correct {
  background: #e4f8e9;
  border-color: #24945a;
}

.answer.wrong {
  background: #fff0ec;
  border-color: #dc6b59;
}

/* =====================================
   FEEDBACK DAS RESPOSTAS
===================================== */

.feedback {
  display: none;
  margin-top: 16px;
  padding: 15px;
  border-radius: 15px;
  line-height: 1.5;
}

.feedback.show {
  display: block;
}

.feedback.good {
  background: #e5f8eb;
  border: 1px solid #9bd4aa;
}

.feedback.bad {
  background: #fff1e9;
  border: 1px solid #efb19f;
}

/* =====================================
   REFERÊNCIAS BÍBLICAS
===================================== */

.verse {
  margin-top: 7px;
  color: #38624e;
  font-weight: 800;
}

/* =====================================
   AÇÕES E NAVEGAÇÃO
===================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* =====================================
   RESULTADO FINAL
===================================== */

.score {
  margin: 8px;
  color: var(--green);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 900;
}

.end {
  text-align: center;
}

.end > img {
  display: block;
  width: min(100%, 540px);
  height: auto;
  margin: 14px auto;
  border-radius: 18px;
}

/* =====================================
   ELEMENTOS OCULTOS
===================================== */

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

/* =====================================
   RODAPÉ
===================================== */

.note {
  margin: 16px 0 0;
  color: #64786d;
  text-align: center;
  font-size: .86rem;
}

/* =====================================
   TABLETS
===================================== */

@media (max-width: 768px) {

  .wrap {
    width: 94%;
    margin: 14px auto 28px;
  }

  .hero {
    border-radius: 20px;
  }

  .hero-foot {
    padding: 14px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .panel {
    padding: 22px 18px;
    margin-top: 14px;
    border-radius: 20px;
  }

  .topline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: .92rem;
  }

  .topline span:last-child {
    grid-column: 1 / -1;
  }

  .question {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .question-image {
    width: 100%;
    max-height: 280px;
  }

  .answer {
    min-height: 54px;
    padding: 15px;
  }

  .btn {
    min-height: 48px;
  }
}

/* =====================================
   CELULARES
===================================== */

@media (max-width: 480px) {

  body {
    font-size: 15px;
  }

  .wrap {
    width: 94%;
    margin: 10px auto 22px;
  }

  /* CAPA */

  .hero {
    border-radius: 16px;
  }

  .hero > img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-foot {
    padding: 12px 10px;
  }

  h1 {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.2rem;
  }

  .hero-foot p {
    font-size: .9rem;
  }

  /* PAINÉIS */

  .panel {
    padding: 17px 13px;
    border-radius: 16px;
  }

  /* INTRODUÇÃO */

  .intro p {
    font-size: .95rem;
  }

  .rounds {
    gap: 7px;
  }

  .pill {
    font-size: .82rem;
    padding: 7px 10px;
  }

  /* PLACAR */

  .topline {
    font-size: .82rem;
    gap: 8px;
  }

  .progress {
    height: 9px;
    margin: 10px 0 18px;
  }

  .badge-round {
    font-size: .8rem;
  }

  /* PERGUNTAS */

  .question {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 12px 0;
  }

  /* IMAGENS */

  .question-image-container {
    width: 100%;
    margin: 12px 0;
  }

  .question-image {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    border-radius: 13px;
  }

  /* RESPOSTAS */

  .answers {
    gap: 9px;
  }

  .answer {
    width: 100%;
    min-height: 54px;
    padding: 14px 12px;
    font-size: .95rem;
    border-radius: 12px;
  }

  /* FEEDBACK */

  .feedback {
    padding: 12px;
    font-size: .9rem;
  }

  /* BOTÕES */

  .actions {
    justify-content: stretch;
  }

  .actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .btn {
    min-height: 48px;
    padding: 12px 16px;
  }

  /* RESULTADO */

  .score {
    font-size: 3rem;
  }

  .end > img {
    width: 100%;
    height: auto;
  }

  .end .question {
    font-size: 1.1rem;
  }

  .end > p {
    line-height: 1.5;
  }

  /* RODAPÉ */

  .note {
    font-size: .78rem;
    padding: 0 8px;
  }
}

/* =====================================
   CELULARES MUITO PEQUENOS
===================================== */

@media (max-width: 360px) {

  .wrap {
    width: 96%;
  }

  .panel {
    padding: 14px 10px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .question {
    font-size: 1.05rem;
  }

  .answer {
    font-size: .9rem;
    padding: 12px 10px;
  }

  .topline {
    font-size: .76rem;
  }

  .question-image {
    max-height: 200px;
  }

  .pill {
    font-size: .76rem;
  }
}