*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --parchment: #f2ead8;
  --ink:       #2c1f0e;
  --gold:      #a07830;
  --gold-lt:   #c9a45a;
  --rust:      #8b3a2a;
  --paper:     #faf5e6;
  --shadow:    rgba(0, 0, 0, 0.12);
  --cream:     #f5f0e8;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--parchment);
  font-family: 'EB Garamond', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(180,140,80,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(120,80,40,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
nav {
  width: 100%;
  background: var(--parchment);
  padding: 0 clamp(20px, 5vw, 60px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(160,120,48,.25);
  box-shadow: 0 2px 20px rgba(44,31,14,.06);
}

.nav-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 9px 0 7px;
  border-bottom: 1px solid rgba(160,120,48,.13);
  font-style: italic;
  font-size: clamp(.65rem, 1.5vw, .77rem);
  letter-spacing: .16em;
  color: var(--gold);
  flex-wrap: wrap;
}
.nav-top span { opacity: .55; font-style: normal; }

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
  gap: 16px;
}

.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--ink);
}
.logo-sub {
  font-size: clamp(.55rem, 1.2vw, .67rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(160,120,48,.3);
  color: var(--gold);
  font-size: 1.1rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 2px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links li a {
  display: block;
  padding: 6px clamp(10px, 2vw, 20px);
  font-size: clamp(.68rem, 1.3vw, .8rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color .25s;
  white-space: nowrap;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  left: clamp(10px, 2vw, 20px);
  right: clamp(10px, 2vw, 20px);
  bottom: -2px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.nav-links li a:hover { color: var(--rust); }
.nav-links li a:hover::after { transform: scaleX(1); }
.nav-links li + li { border-left: 1px solid rgba(160,120,48,.2); }

.nav-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--gold-lt);
  font-style: italic;
  font-size: .75rem;
}
.nav-rule::before, .nav-rule::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,120,48,.35), transparent);
}

/* ── Mobile nav ── */
@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 16px;
    gap: 0;
  }
  .nav-links.open { display: flex; }

  .nav-links li + li { border-left: none; border-top: 1px solid rgba(160,120,48,.12); }
  .nav-links li a { padding: 12px 4px; font-size: .8rem; }
  .nav-links li a::after { left: 4px; right: 4px; }

  .nav-top { font-size: .62rem; gap: 8px; }
  .nav-rule { display: none; }
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.quiz-hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(48px,9vh,88px) clamp(24px,6vw,80px) clamp(32px,5vh,56px);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  border-bottom: 1px solid rgba(160,120,48,.12);
}
.hero-eyebrow {
  font-size: clamp(.6rem,1.4vw,.7rem);
  letter-spacing: .38em; text-transform: uppercase; color: var(--gold);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem,7vw,5.2rem);
  line-height: 1; color: var(--ink);
}
.hero-title em { color: var(--rust); font-style: italic; display: block; }
.hero-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(.92rem,1.9vw,1.12rem); line-height: 1.65;
  color: rgba(44,31,14,.6); max-width: 520px;
}
.hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  font-size: clamp(.6rem,1.2vw,.7rem);
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.hero-meta .dot { opacity: .4; }

/* ══════════════════════════════════════
   PROGRESS
══════════════════════════════════════ */
.quiz-progress-wrap {
  position: sticky; top: 72px; z-index: 50;
  background: var(--parchment);
  padding: 10px clamp(16px,5vw,48px);
  border-bottom: 1px solid rgba(160,120,48,.12);
  box-shadow: 0 2px 12px rgba(44,31,14,.05);
}
.progress-info {
  display: flex; justify-content: space-between;
  font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 6px;
}
.progress-track {
  height: 3px;
  background: rgba(160,120,48,.15);
  border-radius: 2px; overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rust), var(--gold-lt));
  border-radius: 2px;
  transition: width .5s cubic-bezier(.22,1,.36,1);
}

/* ══════════════════════════════════════
   QUIZ MAIN
══════════════════════════════════════ */
.quiz-main {
  position: relative; z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px,5vh,56px) clamp(16px,5vw,40px) clamp(40px,6vh,64px);
}

/* ── Question card ── */
.question {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 clamp(16px,3vw,28px);
  margin-bottom: clamp(28px,4vh,44px);
  background: var(--paper);
  border: 1px solid rgba(160,120,48,.14);
  box-shadow: 2px 4px 18px rgba(0,0,0,.06);
  padding: clamp(20px,3vw,28px) clamp(20px,3vw,28px) clamp(20px,3vw,28px) 0;
  transition: box-shadow .25s;
  animation: qIn .5s cubic-bezier(.22,1,.36,1) both;
}

@keyframes qIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.question:nth-child(1)  { animation-delay: .04s; }
.question:nth-child(2)  { animation-delay: .08s; }
.question:nth-child(3)  { animation-delay: .12s; }
.question:nth-child(4)  { animation-delay: .16s; }
.question:nth-child(5)  { animation-delay: .20s; }
.question:nth-child(6)  { animation-delay: .24s; }
.question:nth-child(7)  { animation-delay: .28s; }
.question:nth-child(8)  { animation-delay: .32s; }
.question:nth-child(9)  { animation-delay: .36s; }
.question:nth-child(10) { animation-delay: .40s; }

.question.answered { box-shadow: 2px 4px 18px rgba(0,0,0,.08); }

/* number col */
.q-number {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding-top: 2px;
  border-right: 1px solid rgba(160,120,48,.12);
  padding-right: 0;
}
.q-num-text {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.1rem,2vw,1.35rem);
  color: var(--rust); line-height: 1;
  writing-mode: horizontal-tb;
  padding: 0 clamp(10px,2vw,16px);
}
.q-line {
  flex: 1; width: 1px;
  background: linear-gradient(180deg, rgba(160,120,48,.2), transparent);
}

/* body col */
.q-body { padding-left: clamp(16px,3vw,24px); }

.q-text {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(.95rem,1.8vw,1.12rem);
  color: var(--ink); line-height: 1.45;
  margin-bottom: 20px;
}

/* options */
.q-options {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}

.option {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 0 12px;
  padding: 11px 14px 11px 0;
  border: 1px solid rgba(160,120,48,.16);
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  position: relative;
  user-select: none;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }

.option:hover:not(.is-correct):not(.is-wrong):not(.show-correct) {
  background: rgba(160,120,48,.06);
  border-color: rgba(160,120,48,.3);
  transform: translateX(3px);
}

.option-letter {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border-right: 1px solid rgba(160,120,48,.12);
  flex-shrink: 0;
}
.option-text {
  font-size: clamp(.82rem,1.5vw,.96rem);
  line-height: 1.4; color: var(--ink);
}
.option-icon { display: none; font-size: .8rem; justify-self: end; flex-shrink: 0; }

/* Correct chosen */
.option.is-correct {
  background: var(--green-lt);
  border-color: rgba(45,106,79,.35);
  cursor: default;
}
.option.is-correct .option-letter { color: var(--green); border-right-color: rgba(45,106,79,.2); }
.option.is-correct .option-text { color: var(--green); font-weight: 500; }
.option.is-correct .correct-icon { display: block; color: var(--green); }

/* Wrong chosen */
.option.is-wrong {
  background: var(--red-lt);
  border-color: rgba(139,58,42,.3);
  cursor: default;
}
.option.is-wrong .option-letter { color: var(--rust); border-right-color: rgba(139,58,42,.2); }
.option.is-wrong .option-text   { color: var(--rust); }
.option.is-wrong .wrong-icon    { display: block; color: var(--rust); }

/* Reveal correct when wrong selected */
.option.show-correct {
  background: var(--green-lt);
  border-color: rgba(45,106,79,.25);
  cursor: default;
  opacity: .75;
}
.option.show-correct .option-letter { color: var(--green); }
.option.show-correct .option-text   { color: var(--green); }
.option.show-correct .correct-icon  { display: block; color: var(--green); opacity: .6; }

/* explanation */
.q-explanation {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(.8rem,1.5vw,.92rem); line-height: 1.65;
  color: rgba(44,31,14,.55);
  padding: 10px 14px;
  border-left: 2px solid rgba(160,120,48,.25);
  background: rgba(160,120,48,.04);
  animation: explainIn .4s ease both;
}
.q-explanation.hidden { display: none; }

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

/* ── Submit ── */
.quiz-submit-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: clamp(24px,4vh,40px) 0 0;
  border-top: 1px solid rgba(160,120,48,.15);
  margin-top: 8px;
}
.submit-hint {
  font-size: clamp(.72rem,1.4vw,.82rem);
  letter-spacing: .14em; color: rgba(160,120,48,.6);
  font-style: italic; text-align: center;
  transition: color .3s;
}
.submit-hint.hint-ready { color: var(--green); }

.submit-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(139,58,42,.15);
  border: 1px solid rgba(139,58,42,.3);
  color: rgba(139,58,42,.5);
  font-family: 'EB Garamond', serif;
  font-size: clamp(.72rem,1.4vw,.82rem);
  letter-spacing: .22em; text-transform: uppercase;
  padding: 14px clamp(24px,4vw,40px);
  cursor: not-allowed;
  transition: background .3s, color .3s, border-color .3s, transform .2s;
}
.submit-btn.ready {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--parchment);
  cursor: pointer;
}
.submit-btn.ready:hover {
  background: #7a3222;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   RESULT PANEL
══════════════════════════════════════ */
.result-panel {
  position: relative; z-index: 1;
  max-width: 680px;
  margin: 0 auto clamp(60px,10vh,100px);
  padding: 0 clamp(16px,5vw,40px);
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.result-panel.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

.result-inner {
  background: var(--paper);
  border: 1px solid rgba(160,120,48,.18);
  box-shadow: 4px 8px 40px rgba(0,0,0,.1);
  padding: clamp(32px,5vw,52px) clamp(24px,5vw,48px);
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
  text-align: center;
}

/* Score */
.result-score-wrap { width: 100%; }
.result-eyebrow {
  font-size: .62rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.result-score {
  display: flex; align-items: baseline;
  justify-content: center; gap: 4px;
  margin-bottom: 20px;
}
.score-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem,10vw,7rem);
  color: var(--rust); line-height: 1;
}
.score-num.pop { animation: pop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.score-total {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.8rem,4vw,2.8rem); color: rgba(139,58,42,.35);
}
.score-bar-wrap {
  height: 4px; background: rgba(160,120,48,.15);
  border-radius: 2px; overflow: hidden; margin-bottom: 14px;
}
.score-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rust), var(--gold-lt));
  border-radius: 2px; width: 0;
}
.score-label {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(.88rem,1.8vw,1.06rem);
  color: rgba(44,31,14,.6); line-height: 1.55;
}

/* Divider */
.result-divider {
  color: var(--gold-lt); letter-spacing: .5em;
  font-size: .8rem; width: 100%;
  display: flex; align-items: center; gap: 12px;
}
.result-divider::before, .result-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,120,48,.25), transparent);
}

/* Character */
.result-char { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.result-char-eyebrow {
  font-size: .6rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold);
}
.result-char-photo {
  position: relative;
  width: 120px; height: 150px;
  border: 2px solid rgba(160,120,48,.2);
  overflow: hidden;
}
.result-char-photo img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; filter: sepia(.1);
}
.result-char-photo.photo-missing img { display: none; }
.result-char-photo.photo-missing .photo-missing-inner { display: flex; }
.photo-missing-inner {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a1e10, #1a1208);
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 2.5rem; color: rgba(201,164,90,.4);
}
.result-char-name {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.4rem,3vw,2rem); color: var(--ink);
}
.result-char-actor {
  font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); opacity: .75;
}
.result-char-desc {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(.9rem,1.8vw,1.06rem); line-height: 1.7;
  color: rgba(44,31,14,.65); max-width: 420px;
}

/* Retry */
.retry-btn {
  background: none;
  border: 1px solid rgba(160,120,48,.3);
  color: var(--gold);
  font-family: 'EB Garamond', serif;
  font-size: clamp(.68rem,1.3vw,.78rem);
  letter-spacing: .24em; text-transform: uppercase;
  padding: 12px 32px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.retry-btn:hover {
  background: var(--rust); color: var(--parchment); border-color: var(--rust);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.quiz-footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(40px,6vh,60px) 24px;
  border-top: 1px solid rgba(160,120,48,.15);
}
.footer-ornament { color: var(--gold-lt); letter-spacing: .5em; font-size: .8rem; margin-bottom: 20px; }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1rem,2.2vw,1.3rem); color: rgba(44,31,14,.55); margin-bottom: 12px;
}
.footer-credit { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(160,120,48,.45); }

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 560px) {
  .question {
    grid-template-columns: 40px 1fr;
    padding: 16px 16px 16px 0;
  }
  .q-num-text { font-size: 1rem; padding: 0 10px; }
  .option { grid-template-columns: 28px 1fr 18px; padding: 10px 10px 10px 0; }
  .option-letter { width: 28px; height: 28px; font-size: .6rem; }
}

.btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espaçamento entre o ícone e o texto */
    background-color: #f8efd5;
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Efeito ao passar o mouse */
.btn-link:hover {
    background-color:  #f2ead8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icone {
    width: 24px;
    height: 24px;
    width: 30px;
    height: 30px;
    object-fit: cover; /* Garante que a imagem não fique distorcida */
    border-radius: 50%;
}

