:root {
  --bg: #050505;
  --panel: #101010;
  --panel-strong: #151515;
  --text: #eeeeee;
  --muted: #a6a6a6;
  --faint: #707070;
  --line: #2c2c2c;
  --line-strong: #4a4a4a;
  --old: #d8b36a;
  --new: #86a9d8;
  --danger: #d56b5f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(216, 179, 106, 0.13), transparent 30rem),
    radial-gradient(circle at 90% 30%, rgba(134, 169, 216, 0.1), transparent 34rem),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

.shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.6rem) 0 3rem;
}

.hero {
  padding: clamp(1.3rem, 3vw, 2rem) 0 clamp(1.4rem, 4vw, 2.7rem);
  border-bottom: 1px solid var(--line);
}

.topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  margin-bottom: clamp(2rem, 7vw, 4.4rem);
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topline a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.topline a:hover,
.topline a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  outline: none;
}

.kicker,
.question-title {
  margin: 0;
  color: var(--old);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.8rem, 13vw, 7.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.tagline {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--text);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  line-height: 1.45;
}

.intro,
.disclaimer {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.disclaimer {
  color: #8f8f8f;
  font-size: 0.9rem;
}

.toy {
  padding-top: clamp(1.4rem, 4vw, 2.4rem);
}

.progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.progress-track,
.ratio-track {
  overflow: hidden;
  height: 0.5rem;
  border: 1px solid var(--line);
  background: #080808;
}

.progress-bar {
  display: block;
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--old), var(--new));
  transition: width 240ms ease;
}

.question-card,
.result-card {
  min-height: 32rem;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
}

.question-card h2,
.result-card h2 {
  max-width: 45rem;
  margin: 0.72rem 0 1.45rem;
  font-size: clamp(1.32rem, 4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.option-button {
  min-height: 16rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: var(--line-strong);
  background: #1b1b1b;
  transform: translateY(-2px);
  outline: none;
}

.option-button:active {
  transform: translateY(0);
}

.option-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line-strong);
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.option-label {
  display: block;
  margin-bottom: 0.72rem;
  font-size: clamp(1.18rem, 3vw, 1.55rem);
  line-height: 1.32;
  font-weight: 700;
}

.option-explanation {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.74;
}

.result-card[hidden],
.question-card[hidden] {
  display: none;
}

.result-copy {
  max-width: 42rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.ratio-box {
  max-width: 34rem;
  margin: 1.2rem 0 1.6rem;
}

.ratio-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.ratio-track {
  display: flex;
  height: 0.72rem;
}

.ratio-old,
.ratio-new {
  display: block;
  min-width: 0.5rem;
  height: 100%;
}

.ratio-old {
  background: var(--old);
}

.ratio-new {
  background: var(--new);
}

.ratio-box p {
  margin: 0.55rem 0 0;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.choice-summary {
  max-width: 42rem;
  margin: 1.45rem 0 1.6rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.choice-summary h3 {
  margin: 0 0 0.65rem;
  color: var(--old);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.choice-summary ol {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.choice-summary li::marker {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.choice-summary strong {
  color: var(--text);
  font-weight: 600;
}

.restart-button {
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #e9e9e9;
  color: #080808;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.restart-button:hover,
.restart-button:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1.1rem, 960px);
  }

  .progress-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .question-card,
  .result-card {
    min-height: auto;
    padding: 1rem;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .option-button {
    min-height: 0;
  }
}

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