:root {
  color-scheme: dark;
  --ink: #f7f8f5;
  --muted: #aab4c2;
  --line: rgba(255, 255, 255, 0.13);
  --panel: #101d2d;
  --bg: #07111f;
  --acid: #f6f34f;
  --kr: #5ce1c3;
  --us: #ff8e6e;
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(40, 89, 133, 0.27), transparent 31rem),
    linear-gradient(145deg, #081626 0%, var(--bg) 58%, #050b13 100%);
}

button {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
}

.topbar {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 1.04rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
}

.brand b {
  color: var(--acid);
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--acid);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  inset: 50% auto auto 50%;
  background: var(--acid);
  transform: translate(-50%, -50%);
}

.brand-mark::before {
  width: 14px;
  height: 2px;
}

.brand-mark::after {
  width: 2px;
  height: 14px;
}

.brand-mark i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.privacy-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kr);
  box-shadow: 0 0 15px rgba(92, 225, 195, 0.8);
}

.home-view {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 60px 0 48px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--acid);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.19em;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.9;
  word-break: keep-all;
}

.lede {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.8;
}

.test-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.test-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.test-card::after {
  position: absolute;
  content: "";
  top: -45px;
  right: -45px;
  width: 155px;
  height: 155px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.17;
  box-shadow: 0 0 0 28px currentColor, 0 0 0 58px currentColor;
}

.korea-card {
  color: var(--kr);
  --accent: var(--kr);
}

.usa-card {
  color: var(--us);
  --accent: var(--us);
  transform: translateY(42px);
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}

.flag-dot {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  font-weight: 800;
}

.card-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 72px 0 28px;
}

.card-copy p {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card-copy h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.card-copy span {
  display: block;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.start-button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #07111f;
  background: var(--accent);
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.start-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.start-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.how-it-works {
  grid-column: 1 / -1;
  display: flex;
  gap: 28px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 840px) {
  .home-view {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .intro-copy {
    max-width: 560px;
  }

  h1 {
    font-size: clamp(4.2rem, 18vw, 7rem);
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 72px;
  }

  .privacy-note {
    font-size: 0;
  }

  .privacy-note::after {
    content: "공개 베타";
    font-size: 0.76rem;
  }

  .home-view {
    gap: 38px;
    padding: 40px 0;
  }

  .lede br {
    display: none;
  }

  .test-picker {
    grid-template-columns: 1fr;
  }

  .test-card {
    min-height: 365px;
  }

  .usa-card {
    transform: none;
  }

  .how-it-works {
    display: grid;
    gap: 12px;
    margin-top: 6px;
  }
}

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

.text-button,
.home-button,
.secondary-button,
.share-button {
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.text-button {
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
}

.text-button:hover { color: var(--ink); }
.text-button:disabled { opacity: 0.25; cursor: not-allowed; }

.quiz-view {
  width: min(880px, 100%);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 38px 0 54px;
}

.quiz-toolbar,
.quiz-footer,
.result-meta,
.section-heading,
.axis-labels,
.axis-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-toolbar {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.quiz-toolbar span:nth-child(2) {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.progress-track {
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 260ms ease;
}

.kr { --accent: var(--kr); }
.us { --accent: var(--us); }

.question-stage {
  position: relative;
  padding: clamp(64px, 9vh, 104px) 0 52px;
}

.question-number {
  position: absolute;
  top: 36px;
  right: 0;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.question-topic,
.result-kicker {
  position: relative;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.question-stage h2 {
  position: relative;
  max-width: 820px;
  min-height: 166px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.3;
  letter-spacing: -0.048em;
  word-break: keep-all;
}

.answer-scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 54px;
}

.answer-button {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.answer-button i {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.answer-button:hover,
.answer-button.selected {
  border-color: var(--accent);
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-3px);
}

.answer-button.selected i { border: 5px solid var(--accent); }

.quiz-footer {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.result-view {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: clamp(52px, 8vw, 110px);
  padding: 72px 0 64px;
}

.result-hero {
  position: sticky;
  top: 32px;
  align-self: start;
}

.result-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.result-meta span:first-child {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0.1em;
}

.code-orbit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 46px 0 38px;
}

.code-orbit b {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
}

.result-hero h1 {
  max-width: 560px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.brand-full-name {
  margin: 18px 0 8px;
  color: var(--accent, #f6f34f);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.brand-definition {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.political-guides {
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.political-guides h2 { font-size: 1.3rem; line-height: 1.5; }
.political-guides p, .guide-entries dd { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.guide-entries { margin: 24px 0; }
.guide-entries > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-entries dt { font-size: 1.05rem; font-weight: 700; line-height: 1.6; }
.guide-entries dt span { display: block; font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.guide-entries dd { margin: 8px 0 0; }
.guide-source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.political-guides .guide-source { font-size: 0.875rem; }

.result-type {
  margin: 20px 0 0;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.nickname-note {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.result-summary {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.share-button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  color: var(--bg);
  background: var(--accent);
}

.share-name-label { display: block; margin-top: 30px; font-weight: 700; }
.share-name-label span, .share-privacy-note { color: var(--muted); font-size: .875rem; font-weight: 400; }
.share-name-input { display: block; width: min(100%, 360px); min-height: 46px; margin-top: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); font: inherit; }
.share-name-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-privacy-note { max-width: 580px; line-height: 1.6; }
.shared-result { --accent: var(--acid); width: min(720px, 100%); margin: 0 auto; padding: clamp(40px, 8vw, 88px) 0 96px; }
.shared-result.kr { --accent: var(--kr); }
.shared-result.us { --accent: var(--us); }
.shared-result h1 { margin: 20px 0 12px; font-size: clamp(2.3rem, 7vw, 4.8rem); line-height: 1.18; overflow-wrap: anywhere; word-break: keep-all; }
.shared-nickname { margin: 20px 0 8px; color: var(--accent); font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; }
.shared-type-name { margin: 0; color: var(--muted); font-size: 1.1rem; }
.shared-axes { margin: 36px 0 20px; border-top: 1px solid var(--line); }
.shared-axis { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.shared-axis span { color: var(--muted); }
.shared-axis strong { text-align: right; }
.shared-position { margin: 25px 0; font-size: 1.1rem; font-weight: 700; }
.share-start-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; margin-top: 24px; padding: 12px 24px; border-radius: 14px; color: var(--bg); background: var(--accent); font-weight: 800; text-decoration: none; }
.share-start-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 600px) { .shared-axis { display: block; } .shared-axis strong { display: block; text-align: left; } .share-start-button { width: 100%; } }

.result-detail {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.section-heading {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.section-heading b {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}

.axis-result {
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.axis-labels { gap: 18px; font-size: 0.87rem; }
.axis-labels strong { color: var(--muted); font-weight: 650; }
.axis-labels strong.active { color: var(--ink); }

.axis-bar {
  position: relative;
  height: 9px;
  margin-top: 16px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
}

.axis-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.axis-bar span {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 17px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.axis-values {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.compare-card {
  margin-top: 28px;
  padding: 26px;
  border-radius: 18px;
  color: var(--bg);
  background: var(--acid);
}

.compare-card p {
  margin: 0 0 8px;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.compare-card h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.compare-card h3 em { padding: 0 4px; font-style: normal; opacity: 0.45; }

.compare-card > span {
  display: block;
  margin-top: 11px;
  font-size: 0.84rem;
  line-height: 1.6;
  opacity: 0.72;
}

.secondary-button {
  min-height: 44px;
  margin-top: 20px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--bg);
}

.method-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.home-button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: transparent;
}

@media (max-width: 900px) {
  .result-view { grid-template-columns: 1fr; }
  .result-hero { position: static; }
}

@media (max-width: 620px) {
  .quiz-view { min-height: calc(100vh - 72px); padding-top: 26px; }
  .question-stage { padding-top: 72px; }
  .question-stage h2 { min-height: 210px; font-size: clamp(1.8rem, 8vw, 2.65rem); }
  .answer-scale { grid-template-columns: 1fr; gap: 8px; margin-top: 28px; }
  .answer-button { min-height: 52px; flex-direction: row; justify-content: flex-start; padding: 0 18px; }
  .answer-button i { width: 15px; height: 15px; }
  .quiz-footer span { max-width: 190px; text-align: right; }
  .result-view { gap: 44px; padding-top: 42px; }
  .code-orbit { margin: 34px 0; }
  .result-detail { padding: 22px 18px; }
  .axis-labels { font-size: 0.78rem; }
  .result-actions { align-items: stretch; flex-direction: column; }
}

/* Scenario questions: equal presentation for both policies. */
.question-category { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.question-background { margin: 14px 0; font-size: 0.875rem; line-height: 1.7; color: var(--muted); }
.question-background summary { cursor: pointer; }
.question-background a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.issue-responses article { padding-top: 12px; border-top: 1px solid var(--line); }
.issue-responses h3 { font-size: 1rem; line-height: 1.6; }
.question-stage { padding: 32px 0 20px; }
.question-stage h2 { min-height: 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.55; letter-spacing: -0.025em; }
.question-topic { margin-bottom: 12px; font-size: 0.875rem; }
.scenario-note, .response-note, .axis-meta, .code-note { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }
.policy-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.policy-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.035); }
.policy-heading { display: flex; align-items: flex-start; gap: 12px; }
.policy-heading > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; font-weight: 800; }
.policy-heading h3 { margin: 0; font-size: 1.125rem; line-height: 1.6; word-break: keep-all; }
.policy-card p { margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; word-break: keep-all; }
.policy-card p b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 0.875rem; font-weight: 600; }
.response-field { padding: 0; margin: 28px 0 0; border: 0; min-width: 0; }
.response-field legend { font-size: 1rem; font-weight: 700; }
.response-field .answer-scale { margin-top: 15px; }
.response-field .answer-button { font-size: 0.9rem; min-height: 80px; line-height: 1.5; }
.answer-compact, .mobile-question-context { display: none; }
.scoring-help { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }
.scoring-help summary { cursor: pointer; }
.scoring-help p { margin: 8px 0 0; }
.uncertain-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.uncertain-options .answer-button { padding: 12px; min-height: 72px; text-align: center; }
.uncertain-options small { display: block; margin-top: 4px; font-size: 0.875rem; font-weight: 400; }
.response-note { margin-bottom: 0; }
.quiz-footer { padding-top: 16px; }
.next-button { border: 0; border-radius: 12px; padding: 15px 26px; color: var(--bg); background: var(--accent); font: inherit; font-weight: 800; cursor: pointer; min-height: 48px; }
.next-button:disabled { background: #29374a; color: #aab4c2; cursor: not-allowed; }
.quiz-toolbar, .quiz-footer, .result-meta, .section-heading, .axis-values, .method-note, .card-topline, .card-copy span, .how-it-works { font-size: 0.875rem; }
.result-statements { padding-left: 20px; margin-top: 24px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.result-statements li { margin-bottom: 12px; }
.axis-status { color: var(--accent); font-size: 0.875rem; margin: 0 0 14px; }
.axis-explanation { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.axis-meta { margin: 12px 0 0; }
.method-details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.method-details summary { font-size: 1rem; cursor: pointer; }
.method-details p { font-size: 0.9375rem; line-height: 1.85; color: var(--muted); }
.share-status { min-height: 1.5em; font-size: 0.875rem; color: var(--accent); }
.share-fallback { width: 100%; min-height: 150px; font: inherit; line-height: 1.6; padding: 12px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
button:focus-visible, summary:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
h1:focus, h2:focus { outline: none; }
@media (max-width: 620px) {
  .quiz-view { padding-top: 14px; padding-bottom: calc(var(--quiz-action-height, 205px) + 32px); }
  .question-stage { padding: 18px 0 12px; }
  .question-topic { margin-bottom: 8px; }
  .question-category, .scenario-note { display: none; }
  .question-stage h2 { min-height: 0; font-size: 1.35rem; line-height: 1.45; }
  .question-background { margin: 10px 0 0; }
  .mobile-question-context { display: block; }
  .policy-options { grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
  .policy-card { padding: 13px 15px; border-radius: 14px; }
  .policy-heading { align-items: center; gap: 9px; }
  .policy-heading > span { flex-basis: 28px; height: 28px; }
  .policy-heading h3 { font-size: 1rem; line-height: 1.45; }
  .policy-card p { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.48; }
  .policy-card p b { display: inline; margin-right: 8px; font-size: 0.875rem; white-space: nowrap; }
  .quiz-actions { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; max-height: 60dvh; overflow-y: auto; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: #0b1829; box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.38); }
  .response-field { max-width: 560px; margin: 0 auto; }
  .response-field legend { font-size: 0.875rem; margin-bottom: 6px; }
  .response-field .answer-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 0; }
  .response-field .answer-button { min-width: 0; min-height: 44px; padding: 4px 2px; border-radius: 9px; justify-content: center; font-size: 0.875rem; font-weight: 700; line-height: 1.2; }
  .answer-scale .answer-button i, .answer-long { display: none; }
  .answer-compact { display: inline; }
  .uncertain-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
  .uncertain-options .answer-button { min-height: 44px; text-align: center; padding: 4px; }
  .uncertain-options small { display: none; }
  .feedback-reason { max-height: 27vh; overflow-y: auto; margin-top: 6px; font-size: 0.875rem; }
  .feedback-reason label { margin: 2px 0; }
  .feedback-reason select { padding: 6px; }
  .feedback-reason p { margin: 4px 0; line-height: 1.4; }
  .quiz-footer { max-width: 560px; margin: 8px auto 0; padding: 0; border: 0; }
  .quiz-footer .text-button { min-height: 44px; }
  .quiz-footer .next-button { min-height: 44px; padding: 8px 20px; }
  .result-hero h1 { font-size: 2.8rem; line-height: 1.2; }
  .axis-labels { flex-wrap: wrap; font-size: 0.875rem; }
  .compare-card h3 { overflow-wrap: anywhere; }
}
/* Dual scoring and versioned question review extend the existing dark theme. */
.feedback-card, .political-card { border: 1px solid #334155; padding: 1.5rem; margin: 1.5rem 0; border-radius: 1rem; background: #111d2e; }
.gender-intro { max-width: 680px; margin: 3rem auto 6rem; padding: 2rem; border: 1px solid #334155; border-radius: 1.5rem; background: #111d2e; }
.gender-intro h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 1rem 0; }
.gender-intro p { line-height: 1.7; color: #cbd5e1; }
.gender-intro fieldset { display: grid; gap: .7rem; border: 0; padding: 0; margin: 1.5rem 0; }
.gender-intro legend { font-weight: 700; margin-bottom: .7rem; }
.gender-intro label { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding: .65rem 1rem; border: 1px solid #475569; border-radius: .75rem; cursor: pointer; }
.gender-intro input { accent-color: #f6f34f; width: 1.15rem; height: 1.15rem; }
.type-stats-card { border: 1px solid #52636e; padding: 1.5rem; margin: 1.5rem 0; border-radius: 1rem; background: #10232c; }
.type-stats-card p { line-height: 1.7; color: #d9e3e7; }
.type-stats-card h3 { margin: 0 0 .5rem; }
.type-stats-card h4 { margin: 0 0 .5rem; }
.stat-participation { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid #52636e; }
.stat-sample { font-size: .9rem; }
.type-stat-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem 1.4rem; }
.type-stat-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .25rem .6rem; padding: .5rem 0; border-bottom: 1px solid #334155; font-size: .92rem; }
.type-stat-row span { min-width: 0; }
.type-stat-row span:last-of-type { white-space: nowrap; }
.type-stat-row small { color: #aebdc5; }
.type-stat-bar { grid-column: 1 / -1; display: block; width: 100%; height: 5px; border-radius: 5px; background: linear-gradient(to right,#f6f34f var(--share),#334155 var(--share)); }
.supplement-offer { border: 1px solid #6d80a0; padding: 1.5rem; margin: 1.5rem 0; border-radius: 1rem; background: #192940; }
.supplement-offer p { line-height: 1.65; }
.supplement-offer .secondary-button { margin: .5rem 0; }
.feedback-card p, .political-card p, .review-shell p { line-height: 1.75; }
.feedback-card p, .feedback-reason p { color: #cbd5e1; }
.consent-label { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.6; margin: 1rem 0; }
.consent-label input { margin-top: .4rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.feedback-reason { margin-top: 1rem; }
.feedback-reason:empty { display: none; }
.feedback-reason label { display: block; margin: .6rem 0; }
.feedback-reason select, .question-editor select, .question-editor textarea { width: 100%; color: #f8fafc; background: #0b1525; border: 1px solid #64748b; border-radius: .5rem; padding: .8rem; font: inherit; }
.political-domains { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }
.political-domains div { display: grid; gap: .5rem; padding: 1rem; border: 1px solid #334155; border-radius: .75rem; }
.political-domains small { color: #cbd5e1; font-size: .875rem; }
.political-score { font-size: 2rem; }
.political-track { position: relative; height: 8px; background: linear-gradient(to right,#58b8fb,#d3d9e2,#f5a96c); margin: 1rem 0; border-radius: 5px; }
.political-track i { position: absolute; width: 14px; height: 14px; top: -3px; transform: translateX(-50%); background: white; border: 2px solid #07111f; border-radius: 50%; }
.criteria-scroll { overflow-x: auto; }
.criteria-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.criteria-table th, .criteria-table td { border-bottom: 1px solid #334155; padding: .8rem; text-align: left; }
.criteria-table small { display: block; max-width: 15rem; overflow-wrap: anywhere; color: #94a3b8; }
.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 2rem 0; text-align: center; color: #cbd5e1; }
.site-footer a, .review-shell a { color: #cbd5e1; text-decoration: underline; }
.review-shell { max-width: 1080px; margin: auto; padding: 2rem 1rem 5rem; color: #f1f5f9; }
.privacy-page { max-width: 760px; }
.privacy-page p { line-height: 1.8; }
.review-shell h1 { font-size: 2.5rem; margin: 1.5rem 0 1rem; }
.review-shell h2, .review-shell h3 { margin: 1.5rem 0 1rem; }
.review-shell .text-button { min-width: 5rem; }
.review-shell #review-status { margin: 1rem 0; color: #f6f34f; }
.question-editor { max-width: 760px; display: grid; gap: 1rem; }
.question-editor label { display: grid; gap: .5rem; }
.question-editor textarea { resize: vertical; min-height: 5rem; }
button:disabled { cursor: not-allowed; opacity: .55; }
@media(max-width:600px) { .political-domains,.type-stat-list { grid-template-columns: 1fr; } .feedback-card,.political-card,.supplement-offer,.type-stats-card,.gender-intro { padding: 1rem; } .gender-intro { margin: 1rem auto 4rem; } }
