:root {
  color-scheme: light;
  --ink: #152b42;
  --ink-soft: #516174;
  --muted: #7a8793;
  --red: #ec0000;
  --red-dark: #c90000;
  --red-tint: #fff0ee;
  --paper: #f7f5f0;
  --white: #fffefa;
  --line: #e7e3da;
  --green: #19734a;
  --green-tint: #eaf5ee;
  --amber: #a85e00;
  --amber-tint: #fff4df;
  --shadow: 0 18px 50px rgba(26, 41, 57, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 7% 8%, rgba(236, 0, 0, 0.045), transparent 28rem),
    radial-gradient(ellipse at 96% 78%, rgba(21, 43, 66, 0.04), transparent 26rem),
    var(--paper);
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(236, 0, 0, 0.4);
  outline-offset: 3px;
}

.site-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.site-header {
  height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(21, 43, 66, 0.1);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: block; }
.brand-copy { display: grid; gap: 3px; }
.brand-name { font-size: 14px; letter-spacing: 0.12em; font-weight: 600; }
.brand-name strong { color: var(--red); font-weight: 800; }
.brand-subtitle { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.17em; }
.header-note { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 10px; font-weight: 750; letter-spacing: 0.14em; }
.header-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(236, 0, 0, 0.09); }
.app-main { min-height: calc(100vh - 144px); display: flex; align-items: center; padding: 52px 0; }
.site-footer { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-soft); font-size: 10px; letter-spacing: 0.12em; font-weight: 750; }
.footer-divider { color: var(--red); font-size: 17px; }
.loading-state { color: var(--muted); margin: auto; }

.intro-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.8fr); align-items: center; gap: clamp(44px, 7vw, 98px); }
.intro-copy { padding: 8px 0 14px; animation: appear 420ms ease both; }
.eyebrow { margin: 0 0 21px; display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: block; width: 28px; height: 2px; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
.intro-copy h1 { max-width: 650px; margin-bottom: 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5.5vw, 72px); line-height: 0.99; letter-spacing: -0.045em; font-weight: 500; }
.intro-copy h1 em { color: var(--red); font-style: normal; }
.intro-description { max-width: 490px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.72; }
.intro-description strong { color: var(--ink); font-weight: 700; }
.mission-note { margin-top: 35px; display: flex; align-items: flex-start; gap: 13px; max-width: 410px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.mission-icon { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--red-tint); color: var(--red); font-size: 14px; font-weight: 800; }
.metrics { margin-top: 37px; display: flex; flex-wrap: wrap; gap: 0; }
.metric { min-width: 112px; padding: 0 20px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric strong { display: block; margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.metric span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }

.form-card, .quiz-card, .result-card { background: var(--white); border: 1px solid rgba(21, 43, 66, 0.07); border-radius: 20px; box-shadow: var(--shadow); }
.form-card { position: relative; overflow: hidden; padding: clamp(27px, 4vw, 42px); animation: appear 520ms 80ms ease both; }
.form-card::before { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), #ff7a5f); content: ""; }
.card-overline { margin: 0 0 8px; color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.form-card h2 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; line-height: 1.12; font-weight: 500; letter-spacing: -0.025em; }
.form-intro { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-field { display: block; margin-bottom: 17px; }
.form-field label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--ink); font-size: 11px; font-weight: 750; }
.field-optional { color: var(--muted); font-size: 10px; font-weight: 500; }
.form-field input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #dedbd3; border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; transition: border-color 140ms ease, box-shadow 140ms ease; }
.form-field input::placeholder { color: #a3a8ad; }
.form-field input:focus { border-color: rgba(236, 0, 0, 0.6); outline: 0; box-shadow: 0 0 0 3px rgba(236, 0, 0, 0.08); }
.form-hint { margin: -3px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 51px; border: 0; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: 0.015em; transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.primary-button { width: 100%; padding: 0 18px; background: var(--red); color: white; box-shadow: 0 7px 17px rgba(236, 0, 0, 0.15); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: var(--red-dark); box-shadow: 0 10px 22px rgba(236, 0, 0, 0.21); }
.primary-button:disabled { opacity: 0.46; cursor: not-allowed; box-shadow: none; }
.button-arrow { font-size: 18px; line-height: 1; }
.privacy-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.5; }

.quiz-layout { width: 100%; max-width: 1000px; margin: 0 auto; animation: appear 300ms ease both; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.quiz-context { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.context-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.timer-box { display: flex; align-items: center; gap: 11px; padding: 8px 13px 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 254, 250, 0.76); transition: background 180ms ease, border-color 180ms ease; }
.timer-glyph { width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid rgba(21, 43, 66, 0.4); border-radius: 50%; color: var(--ink); font-size: 11px; }
.timer-label { display: block; margin-bottom: 1px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.timer-value { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 17px; line-height: 1.05; font-weight: 800; letter-spacing: 0.03em; }
.timer-box.is-urgent { border-color: #ffd0ca; background: var(--red-tint); }
.timer-box.is-urgent .timer-glyph { border-color: var(--red); color: var(--red); }
.timer-box.is-urgent .timer-value { color: var(--red); }

.progress-wrap { margin-bottom: 21px; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.progress-step { color: var(--ink); font-size: 11px; font-weight: 800; }
.progress-points { color: var(--muted); font-size: 10px; font-weight: 700; }
.progress-track { height: 5px; overflow: hidden; border-radius: 20px; background: #e9e6e0; }
.progress-fill { width: var(--progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #ff7c61); transition: width 300ms ease; }
.quiz-card { padding: clamp(25px, 4.5vw, 48px) clamp(23px, 5.2vw, 58px) 31px; }
.question-kicker { margin: 0 0 12px; color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.question-title { max-width: 750px; margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3.3vw, 38px); line-height: 1.18; font-weight: 500; letter-spacing: -0.025em; }
.question-prompt { max-width: 740px; margin: 0 0 25px; color: var(--ink-soft); font-size: 14px; line-height: 1.62; }
.answer-list { display: grid; gap: 10px; }
.answer-option { width: 100%; min-height: 60px; display: grid; grid-template-columns: 33px 1fr 18px; align-items: center; gap: 12px; padding: 11px 15px; border: 1px solid #e6e2da; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
.answer-option:hover:not(:disabled) { transform: translateX(2px); border-color: #c9c3b9; background: #fffefa; }
.answer-option.is-selected { border-color: var(--red); background: #fff8f6; box-shadow: 0 0 0 2px rgba(236, 0, 0, 0.07); }
.answer-option.is-correct { border-color: #a8d4b8; background: #f3faf5; }
.answer-option.is-incorrect { border-color: #f2c0ba; background: #fff6f4; }
.answer-option:disabled { cursor: default; }
.answer-letter { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e8e4dc; border-radius: 8px; background: #faf9f6; color: var(--ink-soft); font-size: 11px; font-weight: 850; }
.is-selected .answer-letter { border-color: var(--red); background: var(--red); color: #fff; }
.is-correct .answer-letter { border-color: var(--green); background: var(--green); color: #fff; }
.answer-copy { color: var(--ink); font-size: 12px; line-height: 1.5; }
.answer-indicator { color: transparent; font-size: 15px; font-weight: 900; }
.is-selected .answer-indicator { color: var(--red); }
.is-correct .answer-indicator { color: var(--green); }
.is-incorrect .answer-indicator { color: var(--red); }
.feedback-box { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 15px; border-radius: 10px; animation: appear 220ms ease both; }
.feedback-box.is-good { background: var(--green-tint); color: #195b3d; }
.feedback-box.is-revisit { background: var(--amber-tint); color: #794900; }
.feedback-icon { flex: 0 0 23px; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 900; }
.feedback-title { display: block; margin: 0 0 3px; font-size: 11px; font-weight: 850; }
.feedback-copy { margin: 0; font-size: 11px; line-height: 1.55; }
.quiz-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.quiz-actions .primary-button { width: auto; min-width: 192px; }
.quiz-footnote { margin: 15px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

.result-layout { width: 100%; max-width: 930px; margin: 0 auto; animation: appear 360ms ease both; }
.result-card { overflow: hidden; }
.result-hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(28px, 5vw, 52px); background: linear-gradient(115deg, #fffefa 50%, #fff1ed); }
.result-hero::after { position: absolute; top: 0; right: 0; width: 7px; height: 100%; background: var(--red); content: ""; }
.result-kicker { margin: 0 0 12px; color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.result-hero h1 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 4.5vw, 50px); line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; }
.result-summary { max-width: 580px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.score-stamp { position: relative; width: 137px; height: 137px; display: grid; place-items: center; border: 1px solid rgba(236, 0, 0, 0.25); border-radius: 50%; background: rgba(255, 255, 255, 0.76); text-align: center; }
.score-stamp::before { position: absolute; inset: 7px; border: 1px dashed rgba(236, 0, 0, 0.3); border-radius: 50%; content: ""; }
.score-stamp strong { display: block; color: var(--red); font-family: Georgia, "Times New Roman", serif; font-size: 37px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.score-stamp span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.result-stats { display: flex; flex-wrap: wrap; gap: 28px; padding: 16px clamp(28px, 5vw, 52px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-stat { display: flex; align-items: center; gap: 10px; }
.result-stat-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.result-stat:nth-child(2) .result-stat-mark { background: var(--green); }
.result-stat strong { display: block; font-size: 13px; }
.result-stat span { color: var(--muted); font-size: 10px; }
.review-section { padding: 25px clamp(28px, 5vw, 52px) 30px; }
.review-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 14px; }
.review-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.review-heading span { color: var(--muted); font-size: 10px; }
.review-list { display: grid; gap: 8px; }
.review-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: start; gap: 11px; padding: 12px 13px; border: 1px solid #eeebe5; border-radius: 9px; }
.review-number { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #f1efe9; color: var(--ink-soft); font-size: 10px; font-weight: 850; }
.review-item.is-right .review-number { background: var(--green-tint); color: var(--green); }
.review-question { display: block; margin-bottom: 4px; color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1.45; }
.review-answer { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.review-answer strong { color: var(--ink-soft); }
.review-status { padding-top: 4px; color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.review-item.is-right .review-status { color: var(--green); }
.result-actions { padding: 0 clamp(28px, 5vw, 52px) 30px; }
.result-actions .primary-button { width: auto; min-width: 190px; }
.participant-line { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.participant-line strong { color: var(--ink-soft); }

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

@media (max-width: 850px) {
  .site-shell { width: min(100% - 42px, 700px); }
  .app-main { min-height: calc(100vh - 140px); padding: 36px 0; }
  .intro-layout { grid-template-columns: 1fr; gap: 32px; max-width: 590px; margin: 0 auto; }
  .intro-copy { padding-bottom: 0; }
  .intro-copy h1 { max-width: 580px; font-size: clamp(44px, 8vw, 64px); }
  .mission-note { margin-top: 24px; }
  .metrics { margin-top: 26px; }
  .form-card { padding: 30px; }
  .quiz-layout { max-width: 680px; }
}

@media (max-width: 520px) {
  .site-shell { width: calc(100% - 30px); }
  .site-header { height: 72px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-name { font-size: 12px; }
  .brand-subtitle { font-size: 8px; }
  .header-note { max-width: 118px; gap: 7px; font-size: 8px; line-height: 1.4; letter-spacing: 0.1em; }
  .header-dot { flex: 0 0 6px; width: 6px; height: 6px; }
  .app-main { min-height: calc(100vh - 126px); padding: 29px 0; }
  .site-footer { min-height: 54px; gap: 6px; font-size: 8px; letter-spacing: 0.07em; }
  .eyebrow { margin-bottom: 15px; font-size: 9px; }
  .intro-copy h1 { margin-bottom: 15px; font-size: clamp(41px, 12vw, 55px); }
  .intro-description { font-size: 14px; }
  .mission-note { margin-top: 20px; font-size: 11px; }
  .metrics { margin-top: 23px; }
  .metric { min-width: auto; flex: 1; padding: 0 11px; }
  .metric strong { font-size: 21px; }
  .metric span { font-size: 8px; letter-spacing: 0.08em; }
  .form-card { padding: 25px 21px 22px; border-radius: 15px; }
  .form-card h2 { font-size: 26px; }
  .form-intro { margin-bottom: 20px; }
  .form-field input { height: 45px; }
  .quiz-topline { align-items: flex-start; gap: 9px; }
  .quiz-context { max-width: 150px; font-size: 8px; line-height: 1.4; letter-spacing: 0.1em; }
  .timer-box { gap: 8px; padding: 6px 9px; }
  .timer-glyph { width: 23px; height: 23px; font-size: 10px; }
  .timer-label { font-size: 7px; }
  .timer-value { font-size: 15px; }
  .progress-wrap { margin-bottom: 14px; }
  .quiz-card { padding: 23px 18px 21px; border-radius: 15px; }
  .question-kicker { margin-bottom: 9px; font-size: 8px; }
  .question-title { font-size: 28px; }
  .question-prompt { margin-bottom: 19px; font-size: 12px; }
  .answer-list { gap: 8px; }
  .answer-option { grid-template-columns: 29px 1fr 12px; gap: 9px; min-height: 58px; padding: 10px; }
  .answer-letter { width: 27px; height: 27px; }
  .answer-copy { font-size: 11px; }
  .feedback-box { gap: 9px; padding: 12px; }
  .quiz-actions .primary-button { width: 100%; min-width: 0; }
  .result-hero { grid-template-columns: 1fr auto; gap: 12px; padding: 26px 21px; }
  .result-hero h1 { font-size: 34px; }
  .result-summary { font-size: 11px; }
  .score-stamp { width: 91px; height: 91px; }
  .score-stamp::before { inset: 5px; }
  .score-stamp strong { font-size: 27px; }
  .score-stamp span { font-size: 7px; }
  .result-stats { gap: 15px; padding: 14px 21px; }
  .result-stat { gap: 7px; }
  .result-stat strong { font-size: 12px; }
  .result-stat span { font-size: 9px; }
  .review-section { padding: 21px 17px 24px; }
  .review-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .review-item { grid-template-columns: 26px 1fr; gap: 9px; padding: 10px; }
  .review-status { grid-column: 2; padding-top: 0; }
  .result-actions { padding: 0 17px 22px; }
  .result-actions .primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* Identidade personalizada: Casa em Jogo */
:root { --gold: #f1b740; --night: #10283e; --night-soft: #203b53; }

.header-note {
  padding: 9px 13px;
  border: 1px solid rgba(21, 43, 66, 0.1);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.7);
  font-size: 9px;
}
.header-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(241, 183, 64, 0.19); }

.intro-emblem {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 19px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(21, 43, 66, 0.09);
  border-radius: 12px 12px 12px 4px;
  background: rgba(255, 254, 250, 0.83);
  box-shadow: 0 7px 20px rgba(21, 43, 66, 0.045);
}
.intro-emblem-mark { display: grid; width: 38px; height: 38px; place-items: center; }
.intro-emblem-mark img { width: 38px; height: 38px; display: block; }
.intro-emblem-copy { display: grid; gap: 4px; }
.intro-emblem-copy strong { color: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: 0.16em; }
.intro-emblem-copy small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.12em; }
.intro-emblem-reward {
  margin-left: 9px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #fff3d9;
  color: #805400;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}
.intro-emblem-reward small { display: block; margin-top: 4px; font-size: 6px; letter-spacing: 0.1em; }

.metrics { gap: 9px; }
.metric, .metric:first-child {
  min-width: 100px;
  flex: 1;
  padding: 12px 12px 11px;
  border: 1px solid rgba(21, 43, 66, 0.08);
  border-radius: 11px 11px 11px 3px;
  background: rgba(255, 254, 250, 0.74);
}
.metric strong { color: var(--night); font-size: 22px; }
.metric span { font-size: 8px; letter-spacing: 0.1em; }
.form-card { border-radius: 18px 18px 18px 5px; }
.form-card::before { background: linear-gradient(90deg, var(--red) 0 72%, var(--gold)); }
.primary-button { border-radius: 8px 8px 8px 3px; }

.quiz-topline { align-items: center; gap: 12px; }
.quiz-context { color: var(--night); }
.context-mark { width: 9px; height: 9px; border-radius: 2px 7px 2px 2px; background: var(--red); transform: rotate(45deg); }
.quiz-hud { display: flex; align-items: center; gap: 9px; }
.score-box {
  min-width: 106px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(16, 40, 62, 0.18);
  border-radius: 10px 10px 10px 3px;
  background: var(--night);
  color: #fff;
}
.score-symbol {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(241, 183, 64, 0.16);
  color: var(--gold);
  font-size: 15px;
}
.score-label { display: block; color: #bbc7d0; font-size: 7px; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.score-box strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.score-box small { margin-left: 3px; color: #bbc7d0; font-size: 7px; font-weight: 800; }
.timer-box { border-radius: 10px 10px 10px 3px; }
.timer-glyph { border-color: var(--gold); color: #916500; }
.timer-box.is-urgent .timer-glyph { border-color: var(--red); color: var(--red); }
.progress-meta { margin-bottom: 13px; }
.progress-step { color: var(--night); letter-spacing: 0.035em; text-transform: uppercase; }
.progress-points { padding: 5px 9px; border-radius: 999px; background: #fff2d7; color: #795200; font-size: 9px; }
.house-route {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.house-route::before {
  position: absolute;
  top: 12px;
  left: 13px;
  right: 13px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red) var(--route-progress), #e4e1d9 var(--route-progress));
  content: "";
}
.route-stop {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #9aa3aa;
}
.route-house { position: relative; width: 26px; height: 26px; color: #a8b0b5; }
.route-house::before {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}
.route-house::after {
  position: absolute;
  top: 10px;
  left: 4px;
  width: 18px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-top: 0;
  border-radius: 1px 1px 4px 4px;
  background: var(--white);
  content: "";
}
.route-number { color: #9aa3aa; font-size: 7px; font-weight: 800; font-variant-numeric: tabular-nums; }
.route-stop.is-complete .route-house { color: var(--night); }
.route-stop.is-complete .route-house::after { background: var(--night); }
.route-stop.is-complete .route-number { color: var(--night); }
.route-stop.is-current .route-house { color: var(--red); filter: drop-shadow(0 2px 3px rgba(236, 0, 0, 0.18)); }
.route-stop.is-current .route-house::after { border-color: var(--red); background: var(--red); }
.route-stop.is-current .route-number { color: var(--red); font-weight: 900; }

.quiz-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--red);
  border-radius: 17px 17px 19px 5px;
  background: linear-gradient(145deg, #fffefa 0%, #fffefa 76%, #fff8ed 100%);
  box-shadow: 0 20px 50px rgba(16, 40, 62, 0.1);
}
.question-docket { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.question-docket .question-kicker { display: flex; align-items: center; gap: 8px; margin: 0; }
.question-house {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-block;
  border-radius: 6px 6px 6px 2px;
  background: var(--red-tint);
  color: var(--red);
  font-size: 0;
}
.question-house::before {
  position: absolute;
  top: 5px;
  left: 7px;
  width: 7px;
  height: 7px;
  border-top: 1.7px solid currentColor;
  border-left: 1.7px solid currentColor;
  transform: rotate(45deg);
  content: "";
}
.question-house::after {
  position: absolute;
  top: 10px;
  left: 5px;
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-top: 0;
  content: "";
}
.question-reward { padding: 6px 9px; border: 1px solid rgba(241, 183, 64, 0.45); border-radius: 999px; background: #fff6e4; color: #805400; font-size: 8px; font-weight: 900; letter-spacing: 0.1em; white-space: nowrap; }
.answer-option { border-radius: 9px 9px 9px 3px; }
.answer-letter { border-radius: 7px 7px 7px 2px; }
.feedback-box { border-radius: 9px 9px 9px 3px; }
.quiz-actions .primary-button { border-radius: 8px 8px 8px 3px; }

.result-card { border-radius: 18px 18px 20px 5px; }
.result-hero { background: radial-gradient(circle at 83% 15%, rgba(241, 183, 64, 0.14), transparent 12rem), linear-gradient(120deg, var(--night), var(--night-soft)); color: #fff; }
.result-hero h1 { color: #fff; }
.result-kicker { color: var(--gold); }
.result-summary { color: #d5e0e7; }
.score-stamp { border-color: rgba(241, 183, 64, 0.62); background: #fffefa; }
.score-stamp::before { border-color: rgba(241, 183, 64, 0.72); }
.score-stamp strong { color: var(--red); }
.review-item { border-radius: 9px 9px 9px 3px; }
.result-actions .primary-button { border-radius: 8px 8px 8px 3px; }

@media (max-width: 850px) {
  .intro-emblem { margin-bottom: 16px; }
}
@media (max-width: 520px) {
  .header-note { max-width: 146px; padding: 7px 9px; font-size: 7px; letter-spacing: 0.08em; }
  .intro-emblem { gap: 8px; padding: 7px 9px 7px 7px; }
  .intro-emblem-mark, .intro-emblem-mark img { width: 33px; height: 33px; }
  .intro-emblem-copy strong { font-size: 8px; }
  .intro-emblem-copy small { font-size: 6px; letter-spacing: 0.08em; }
  .intro-emblem-reward { margin-left: 2px; padding: 6px 7px; font-size: 10px; }
  .intro-emblem-reward small { font-size: 5px; }
  .metric, .metric:first-child { min-width: 0; padding: 10px 8px; }
  .metric strong { font-size: 19px; }
  .metric span { font-size: 7px; }
  .quiz-topline { flex-wrap: wrap; align-items: center; }
  .quiz-context { flex: 1 1 100%; max-width: none; }
  .quiz-hud { width: 100%; justify-content: flex-end; }
  .score-box { min-width: 97px; padding: 6px 9px; }
  .house-route { gap: 0; }
  .house-route::before { top: 11px; left: 11px; right: 11px; }
  .route-house { width: 23px; height: 24px; }
  .route-house::before { left: 6px; width: 10px; height: 10px; }
  .route-house::after { left: 3px; width: 17px; height: 11px; }
  .route-number { font-size: 6px; }
  .question-docket { align-items: flex-start; }
  .question-docket .question-kicker { font-size: 8px; line-height: 1.4; }
  .question-reward { padding: 6px 7px; font-size: 7px; }
  .result-hero { background: radial-gradient(circle at 85% 10%, rgba(241, 183, 64, 0.16), transparent 7rem), linear-gradient(120deg, var(--night), var(--night-soft)); }
}


/* Ilustração contextual individual de cada pergunta */
.quiz-card {
  background-color: #fffefa;
  background-image:
    linear-gradient(90deg, rgba(255, 254, 250, 0.985) 0%, rgba(255, 254, 250, 0.95) 43%, rgba(255, 254, 250, 0.74) 100%),
    var(--question-image);
  background-size: cover, cover;
  background-position: center, right center;
  background-repeat: no-repeat;
}
@media (max-width: 520px) {
  .quiz-card {
    background-image:
      linear-gradient(90deg, rgba(255, 254, 250, 0.975) 0%, rgba(255, 254, 250, 0.94) 54%, rgba(255, 254, 250, 0.82) 100%),
      var(--question-image);
    background-position: center, right center;
  }
}


/* As cenas ficam em painel próprio; o diálogo ocupa cartões sem imagem de fundo. */
.quiz-card { background-image: none; }
.dialogue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(265px, 0.8fr);
  align-items: stretch;
  gap: 16px;
}
.dialogue-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(21, 43, 66, 0.08);
  border-top: 4px solid var(--red);
  border-radius: 17px 17px 19px 5px;
  background: linear-gradient(145deg, #fffefa 0%, #fffefa 78%, #fff8ed 100%);
  box-shadow: 0 20px 50px rgba(16, 40, 62, 0.1);
}
.dialogue-card .question-docket { margin-bottom: 14px; }
.dialogue-card .question-title { margin-bottom: 19px; font-size: clamp(23px, 2.6vw, 32px); }
.conversation-log { display: grid; gap: 15px; }
.chat-message { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: start; gap: 9px; }
.chat-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.customer-avatar { border-color: rgba(236, 0, 0, 0.15); background: var(--red-tint); color: var(--red); }
.participant-avatar { border-color: rgba(16, 40, 62, 0.16); background: var(--night); color: #fff; }
.coach-avatar { border-color: rgba(25, 115, 74, 0.18); background: var(--green-tint); color: var(--green); }
.chat-message-body { min-width: 0; }
.chat-sender { display: block; margin: 0 0 5px 3px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.chat-bubble {
  padding: 12px 14px;
  border: 1px solid #ebe6dc;
  border-left: 3px solid var(--red);
  border-radius: 4px 13px 13px 13px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.58;
}
.chat-bubble p { margin: 0; }
.response-stage { display: grid; gap: 8px; }
.response-label { width: fit-content; display: flex; align-items: center; gap: 8px; margin: 1px 0 0 auto; }
.response-label strong, .response-label small { display: block; text-align: right; }
.response-label strong { color: var(--night); font-size: 9px; }
.response-label small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.response-label .chat-avatar { width: 27px; height: 27px; }
.response-stage .answer-list { justify-items: end; gap: 8px; }
.response-stage .answer-option {
  width: min(100%, 520px);
  min-height: 52px;
  grid-template-columns: 27px minmax(0, 1fr) 14px;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 14px 14px 3px 14px;
  border-color: rgba(236, 0, 0, 0.13);
  background: #fff5f2;
}
.response-stage .answer-option:hover:not(:disabled) { transform: translateX(-2px); border-color: rgba(236, 0, 0, 0.42); background: #fff0ec; }
.response-stage .answer-option.is-selected { border-color: var(--red); background: #fff0ec; }
.response-stage .answer-option.is-correct { border-color: #a8d4b8; background: #f3faf5; }
.response-stage .answer-option.is-incorrect { border-color: #f2c0ba; background: #fff6f4; }
.response-stage .answer-letter { width: 26px; height: 26px; border-radius: 50%; }
.response-stage .answer-copy { font-size: 11px; }
.coach-message { margin-top: 1px; }
.coach-message .chat-sender { margin-left: 3px; }
.coach-message .feedback-box { margin-top: 0; }
.dialogue-card .quiz-actions { margin-top: 19px; }
.dialogue-card .quiz-footnote { margin-bottom: 0; }
.scene-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 15px;
  border: 1px solid rgba(21, 43, 66, 0.09);
  border-radius: 17px 17px 19px 5px;
  background: #fffefa;
  box-shadow: 0 16px 40px rgba(16, 40, 62, 0.08);
  animation: appear 360ms 50ms ease both;
}
.scene-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.scene-badge { padding: 6px 8px; border-radius: 999px; background: #fff2d7; color: #795200; font-size: 8px; font-weight: 900; letter-spacing: 0.1em; }
.scene-overline { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.scene-figure { display: grid; gap: 12px; margin: 0; }
.scene-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: right center;
  border: 1px solid rgba(21, 43, 66, 0.08);
  border-radius: 12px;
  background: #f5f1e9;
}
.scene-caption { display: grid; gap: 6px; padding: 0 2px; }
.scene-caption-kicker { color: var(--red); font-size: 8px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.scene-caption strong { color: var(--night); font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.25; font-weight: 500; }
.scene-caption p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.scene-note { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 12px 2px 0; border-top: 1px solid #eeeae2; color: var(--ink-soft); }
.scene-note > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 8px 8px 8px 2px; background: var(--red-tint); color: var(--red); }
.scene-note p { margin: 0; font-size: 9px; line-height: 1.45; }

@media (max-width: 850px) {
  .dialogue-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .scene-panel { order: -1; }
  .scene-image { aspect-ratio: 16 / 8.5; }
}
@media (max-width: 520px) {
  .dialogue-card { padding: 21px 16px 19px; }
  .dialogue-card .question-title { font-size: 26px; }
  .scene-panel { padding: 12px; }
  .scene-panel-head { margin-bottom: 9px; }
  .scene-image { aspect-ratio: 16 / 9; }
  .chat-message { grid-template-columns: 27px minmax(0, 1fr); gap: 7px; }
  .chat-avatar { width: 26px; height: 26px; font-size: 8px; }
  .chat-bubble { padding: 10px 11px; font-size: 11px; }
  .response-stage .answer-option { width: 100%; grid-template-columns: 26px minmax(0, 1fr) 12px; padding: 9px; }
  .response-stage .answer-copy { font-size: 10px; }
  .scene-caption strong { font-size: 16px; }
}
