/* ============================================================
   Which Historical Figure Are You? — styles
   Dark, historical, mobile-first.
   ============================================================ */

:root {
  --bg: #0e0e12;
  --bg-2: #16161d;
  --card: #1c1c25;
  --gold: #c9a227;
  --gold-2: #e3c15c;
  --text: #f2efe6;
  --muted: rgba(242, 239, 230, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { background: var(--bg); color: var(--text); font-family: var(--sans); }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 39, 0.12), transparent),
    radial-gradient(ellipse 52% 36% at 95% 105%, rgba(91, 48, 134, 0.16), transparent),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 34%),
    var(--bg);
}

.screen { display: none; min-height: 100vh; padding: 28px 22px 80px; max-width: 720px; margin: 0 auto; }
.screen.active { display: block; animation: fadeUp 0.45s ease both; }

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

.kicker {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-2); font-family: var(--sans); font-weight: 600;
}

/* ---------------- landing ---------------- */
.landing-inner { text-align: center; padding-top: 6vh; }

.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(42px, 10vw, 70px); line-height: 1.02; margin: 22px auto 18px;
  letter-spacing: 0; max-width: 680px;
}
.hero-title { background: linear-gradient(120deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-sub { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 auto 34px; max-width: 620px; }
.hero-sub em { color: var(--gold-2); font-style: italic; }

.hero-cta { margin-bottom: 26px; }

.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  padding: 16px 34px; border-radius: 999px; transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #141414; box-shadow: 0 10px 30px rgba(201, 162, 39, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 36px rgba(201, 162, 39, 0.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-dark { background: #0b0b10; color: var(--gold-2); border: 1.5px solid rgba(201, 162, 39, 0.5); box-shadow: none; }
.btn-text { background: transparent; color: var(--muted); border: none; box-shadow: none; font-size: 14px; padding: 10px 18px; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--gold-2); }
.btn-dark-text { color: rgba(255,255,255,0.5); margin-top: 14px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { font-size: 18px; padding: 18px 40px; }

.hero-trust {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-bottom: 40px;
}
.hero-trust span::before { content: "· "; color: var(--gold); font-weight: 700; }

.offer-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 620px; margin: 0 auto 38px; text-align: left;
}
.offer-item {
  min-height: 156px; padding: 18px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045); border-radius: 16px;
}
.offer-item-premium {
  background: linear-gradient(150deg, rgba(201, 162, 39, 0.12), rgba(255,255,255,0.04));
  border-color: rgba(201, 162, 39, 0.32);
}
.offer-label {
  display: inline-block; margin-bottom: 12px; color: var(--gold-2);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.offer-item strong {
  display: block; font-family: var(--serif); font-size: 21px; line-height: 1.18; margin-bottom: 8px;
}
.offer-item p { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 560px) { .offer-strip { grid-template-columns: 1fr; } }

.figures-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; opacity: 0.92; max-width: 460px; margin: 0 auto; }
@media (max-width: 380px) { .figures-wall { grid-template-columns: repeat(3, 1fr); } }
.figures-wall .wall-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.figures-wall .wall-badge {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.figures-wall .wall-badge svg { width: 44px; height: 44px; }
.figures-wall .wall-name { font-size: 11px; color: var(--muted); font-family: var(--sans); letter-spacing: 0.02em; }

/* ---------------- quiz ---------------- */
.quiz-inner { padding-top: 26px; }
.quiz-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.quiz-brand { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--gold-2); }
.quiz-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.quiz-progress { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 40px; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px; transition: width 0.4s ease; }

.quiz-question {
  font-family: var(--serif); font-size: clamp(22px, 5.6vw, 30px);
  line-height: 1.35; font-weight: 700; margin-bottom: 28px; min-height: 3.2em;
}

.quiz-options { display: flex; flex-direction: column; gap: 14px; }
.quiz-option {
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--card); color: var(--text);
  border: 1.5px solid var(--line); border-radius: 16px;
  padding: 18px 18px; font-size: 16px; line-height: 1.45; cursor: pointer;
  font-family: var(--sans); transition: border-color 0.18s ease, transform 0.15s ease, background 0.2s ease;
}
.quiz-option:hover { border-color: rgba(201, 162, 39, 0.55); }
.quiz-option:active { transform: scale(0.985); }
.quiz-option.selected { border-color: var(--gold); background: rgba(201, 162, 39, 0.12); }
.quiz-option.disabled { pointer-events: none; opacity: 0.7; }
.opt-letter {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); font-weight: 700; font-size: 14px; color: var(--gold-2);
}
.quiz-option.selected .opt-letter { background: var(--gold); color: #141414; }
.opt-text { flex: 1; }

/* ---------------- result ---------------- */
.result-inner { text-align: center; padding-top: 24px; }
.result-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }

.gender-toggle { display: flex; background: var(--card); border-radius: 999px; border: 1px solid var(--line); overflow: hidden; }
.gender-btn { border: none; background: transparent; color: var(--muted); padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.gender-btn.on { background: var(--gold); color: #141414; }

.fig-badge {
  width: 148px; height: 148px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.5);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(0,0,0,0.25)) !important;
}
.fig-badge svg { width: 96px; height: 96px; }
.fig-badge-sm { width: 112px; height: 112px; margin-bottom: 18px; }
.fig-badge-sm svg { width: 72px; height: 72px; }

.result-name { font-family: var(--serif); font-weight: 900; font-size: clamp(38px, 9vw, 54px); line-height: 1.05; margin-bottom: 6px; }
.result-title { font-size: 17px; color: var(--gold-2); font-family: var(--serif); font-style: italic; margin-bottom: 4px; }
.result-era { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

.result-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 4.4vw, 21px);
  line-height: 1.55; color: var(--text); max-width: 520px; margin: 0 auto 20px;
}

.result-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tag {
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--muted);
}

.result-teaser {
  max-width: 520px; margin: -8px auto 28px; color: rgba(242, 239, 230, 0.78);
  font-size: 15px; line-height: 1.65;
}

.card-preview-wrap {
  max-width: 340px; margin: 0 auto 12px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); border: 1px solid var(--line);
}
.card-preview { display: block; width: 100%; }
.card-hint { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 30px; }

.result-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto 34px; }

.dev-preview-note { display: none; text-align: center; margin-top: 18px; }
.dev-preview-note .btn { font-size: 13px; color: rgba(242,239,230,0.45); }
.dev-preview-note .btn:hover { color: var(--gold-2); }

.result-unlock-note {
  background:
    linear-gradient(160deg, rgba(201, 162, 39, 0.12), rgba(255,255,255,0.035));
  border: 1px solid rgba(201, 162, 39, 0.34);
  border-radius: 18px; padding: 26px 20px; max-width: 460px; margin: 0 auto;
}
.result-unlock-note p { font-family: var(--serif); font-size: 22px; line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.result-unlock-note .btn { width: 100%; }
.result-unlock-note small { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); }
.premium-list { list-style: none; display: grid; gap: 10px; text-align: left; margin-bottom: 20px; }
.premium-list li {
  color: rgba(242, 239, 230, 0.88); font-size: 14px; line-height: 1.45;
  display: flex; gap: 10px; align-items: flex-start;
}
.premium-list li::before {
  content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%;
  background: var(--gold-2); margin-top: 7px; box-shadow: 0 0 14px rgba(227, 193, 92, 0.45);
}

/* ---------------- report ---------------- */
.report-inner { position: relative; padding-top: 20px; }
.report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.report-close { background: transparent; border: none; color: var(--muted); font-size: 15px; cursor: pointer; font-family: var(--sans); padding: 6px 0; }
.report-close:hover { color: var(--text); }

.report-inner { text-align: center; }
.report-inner .report-section { text-align: left; }

.report-content { transition: filter 0.3s ease; }
.report-content.locked { filter: blur(7px); pointer-events: none; user-select: none; }

.report-lock { position: absolute; inset: 120px auto auto 50%; transform: translateX(-50%); z-index: 20; width: min(92%, 420px); }
.report-lock.hidden { display: none; }
.lock-box {
  background: linear-gradient(160deg, var(--bg-2), #101016);
  border: 1px solid rgba(201, 162, 39, 0.35); border-radius: 24px;
  padding: 36px 26px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}
.lock-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 86px; height: 42px; padding: 0 16px; border-radius: 999px;
  background: rgba(201, 162, 39, 0.16); color: var(--gold-2);
  border: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 16px; font-weight: 800; margin-bottom: 16px;
}
.lock-box h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.lock-box p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.lock-box .btn { width: 100%; }
.lock-box small { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); }

.report-section { margin-bottom: 44px; }
.report-section h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  border-left: 3px solid var(--gold); padding-left: 12px; margin-bottom: 18px;
}
.report-bio { font-size: 15.5px; line-height: 1.75; color: rgba(242, 239, 230, 0.88); }

.report-radar { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 18px; padding: 22px 10px; }

.report-analysis { display: flex; flex-direction: column; gap: 16px; }
.analysis-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.analysis-num {
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: #141414; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.analysis-item p { font-size: 14.5px; line-height: 1.65; color: rgba(242, 239, 230, 0.9); }

.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .report-grid { grid-template-columns: 1fr; } }

.report-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.report-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: rgba(242, 239, 230, 0.9); }
.li-icon { flex: 0 0 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.li-icon.plus { background: rgba(80, 180, 110, 0.2); color: #6fd58f; }
.li-icon.minus { background: rgba(210, 90, 80, 0.2); color: #e88a7c; }
.li-icon.ally { background: rgba(201, 162, 39, 0.18); color: var(--gold-2); }
.li-icon.rival { background: rgba(120, 90, 200, 0.22); color: #b39cf0; }

.report-footer { text-align: center; padding: 10px 0 30px; }
.report-footer p { font-family: var(--serif); margin-bottom: 12px; color: var(--muted); }

/* ---------------- footer ---------------- */
.site-footer { text-align: center; padding: 20px 16px 36px; font-size: 12px; color: rgba(242, 239, 230, 0.35); }
.footer-contact {
  display: block; margin-top: 8px; color: rgba(242, 239, 230, 0.58);
}
.footer-contact a {
  color: var(--gold-2); text-decoration: none;
}
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 10px;
}
.footer-links a {
  color: rgba(242, 239, 230, 0.58); text-decoration: none;
}
.footer-links a:hover { color: var(--gold-2); }

/* ---------------- legal ---------------- */
.legal-page {
  width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px;
}
.legal-back {
  display: inline-block; color: var(--muted); text-decoration: none;
  margin-bottom: 32px; font-size: 14px;
}
.legal-back:hover { color: var(--gold-2); }
.legal-page h1 {
  font-family: var(--serif); font-size: clamp(38px, 8vw, 58px);
  line-height: 1.08; margin: 18px 0 8px;
}
.legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 38px; }
.legal-page section {
  padding: 26px 0; border-top: 1px solid var(--line);
}
.legal-page h2 {
  font-family: var(--serif); font-size: 22px; margin-bottom: 12px; color: var(--gold-2);
}
.legal-page p {
  color: rgba(242, 239, 230, 0.84); font-size: 15.5px; line-height: 1.75;
}
.legal-page a { color: var(--gold-2); }
