:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-2: #0b1220;
  --panel: rgba(15, 23, 40, 0.92);
  --panel-solid: #0f1728;
  --panel-2: #131e33;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --muted: #9aa9c0;
  --muted-2: #71819a;
  --red: #ff4655;
  --red-soft: rgba(255, 70, 85, 0.16);
  --gold: #f0b35a;
  --gold-soft: rgba(240, 179, 90, 0.16);
  --teal: #48e0c1;
  --teal-soft: rgba(72, 224, 193, 0.14);
  --blue: #5b8cff;
  --green: #35d07f;
  --green-soft: rgba(53, 208, 127, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  --font-display: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(255, 70, 85, 0.18), transparent 33rem),
    radial-gradient(circle at 88% 0%, rgba(240, 179, 90, 0.14), transparent 30rem),
    radial-gradient(circle at 50% 115%, rgba(72, 224, 193, 0.12), transparent 34rem),
    linear-gradient(160deg, #070b14 0%, #0a1120 48%, #0d0b16 100%);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.bg-glow {
  position: fixed;
  z-index: -2;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  pointer-events: none;
}

.bg-glow-red {
  top: 12%;
  left: -10rem;
  background: var(--red);
}

.bg-glow-gold {
  top: 45%;
  right: -12rem;
  background: var(--gold);
}

.bg-glow-teal {
  bottom: -14rem;
  left: 40%;
  background: var(--teal);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--red);
  transform: rotate(45deg);
  box-shadow: 0 0 24px rgba(255, 70, 85, 0.32);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  inset: 7px;
  border: 2px solid var(--gold);
}

.brand-mark::after {
  inset: 15px;
  border: 0;
  background: linear-gradient(135deg, var(--red), var(--gold));
}

.brand-mark > span {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.server-strip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(8, 13, 24, 0.72);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(72, 224, 193, 0.14), 0 0 14px var(--teal);
}

.strip-divider {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.app-main {
  min-height: 64vh;
}

.loading-panel {
  display: grid;
  min-height: 46vh;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--muted);
}

.loading-spike {
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
  transform: rotate(45deg);
  animation: loadingPulse 1.2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { transform: rotate(45deg) scale(0.86); opacity: 0.5; }
  50% { transform: rotate(45deg) scale(1); opacity: 1; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy,
.hero-panel,
.section-panel,
.deck-card,
.question-card,
.result-card,
.rule-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(18, 28, 48, 0.96), rgba(11, 17, 31, 0.94));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 44px);
}

.hero-copy::after {
  position: absolute;
  right: -76px;
  bottom: -96px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(240, 179, 90, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 70, 85, 0.05), 0 0 0 56px rgba(72, 224, 193, 0.035);
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 3px;
  background: var(--teal);
  content: "";
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
  text-shadow: 0 0 28px rgba(255, 70, 85, 0.35);
}

.hero-lead {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #130d0d;
  background: linear-gradient(135deg, var(--gold), #ffd28a);
  box-shadow: 0 12px 30px rgba(240, 179, 90, 0.18);
}

.button-danger {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #c82d43);
  box-shadow: 0 12px 30px rgba(255, 70, 85, 0.2);
}

.button-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button-ghost:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.hero-panel {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 22px;
  overflow: hidden;
  padding: 24px;
}

.hero-panel::before {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 70, 85, 0.26);
  border-radius: 50%;
  content: "";
}

.hero-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.hero-panel-top strong {
  color: var(--gold);
}

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

.stat {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.76rem;
}

.tip-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  background: var(--teal-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.deck-card {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  min-height: 280px;
}

.deck-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  content: "";
}

.deck-card::after {
  position: absolute;
  right: -54px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.22;
  content: "";
}

.deck-limits {
  --accent: var(--gold);
}

.deck-derivatives {
  --accent: var(--red);
}

.deck-mixed {
  --accent: var(--teal);
  grid-column: 1 / -1;
  min-height: 0;
}

.deck-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.deck-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
}

.deck-card p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.74rem;
}

.deck-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.best-score {
  color: var(--muted);
  font-size: 0.8rem;
}

.best-score strong {
  color: var(--text);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rule-card {
  padding: 18px;
}

.rule-number {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.82rem;
}

.rule-card strong {
  display: block;
  margin-bottom: 7px;
}

.rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.quiz-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quiz-topline .button {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.84rem;
}

.quiz-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.hud-pill strong {
  color: var(--text);
  font-family: var(--font-display);
}

.hud-pill.hot strong {
  color: var(--gold);
}

.question-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
}

.question-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  content: "";
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.question-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.meta-chip.accent {
  color: var(--gold);
  border-color: rgba(240, 179, 90, 0.36);
  background: var(--gold-soft);
}

.question-title {
  max-width: 100%;
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  line-height: 1.55;
  outline: none;
}

.question-prompt .frac,
.question-title .frac,
.option .frac {
  color: inherit;
}

.instruction-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 20px;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  transition: width 240ms ease;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.028);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.option:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal-soft);
  transform: translateX(4px);
}

.option:disabled {
  cursor: default;
}

.option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.84rem;
}

.option-text {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.option.is-correct {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 1px rgba(53, 208, 127, 0.22);
}

.option.is-correct .option-letter {
  color: #06140c;
  border-color: var(--green);
  background: var(--green);
}

.option.is-wrong {
  border-color: var(--red);
  background: var(--red-soft);
}

.option.is-wrong .option-letter {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.option.is-revealed {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.option.is-dimmed {
  opacity: 0.46;
}

.feedback {
  margin-top: 18px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.feedback.correct {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.feedback.wrong {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.feedback-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  outline: none;
}

.feedback-title .tag {
  padding: 4px 7px;
  border-radius: 7px;
  color: #06140c;
  background: var(--green);
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.feedback.wrong .feedback-title .tag {
  color: #fff;
  background: var(--red);
}

.feedback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.answer-reveal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--gold);
  font-weight: 800;
}

.quiz-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.key-hint {
  color: var(--muted-2);
  font-size: 0.76rem;
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 46px);
  text-align: center;
}

.result-card::before {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background:
    radial-gradient(circle at 50% -20%, rgba(240, 179, 90, 0.22), transparent 34rem),
    radial-gradient(circle at 10% 110%, rgba(255, 70, 85, 0.16), transparent 26rem);
  content: "";
  pointer-events: none;
}

.result-card > * {
  position: relative;
}

.result-eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.result-rank {
  display: grid;
  width: 130px;
  height: 130px;
  margin: 18px auto;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 179, 90, 0.2), rgba(240, 179, 90, 0.02) 66%);
  box-shadow: 0 0 0 12px rgba(240, 179, 90, 0.06), 0 0 50px rgba(240, 179, 90, 0.2);
  font-size: 3rem;
}

.result-rank.rank-low {
  border-color: var(--muted);
  box-shadow: 0 0 0 12px rgba(154, 169, 192, 0.06);
}

.result-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.05em;
}

.result-card > p {
  max-width: 52ch;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 26px auto 0;
}

.result-stat {
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.result-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.result-stat span {
  color: var(--muted);
  font-size: 0.76rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 26px;
}

.review-section {
  margin-top: 18px;
  text-align: left;
}

.review-section > h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.review-item {
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.review-item summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.review-item summary::-webkit-details-marker {
  display: none;
}

.review-item summary strong {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  line-height: 1.6;
}

.review-item summary span {
  color: var(--red);
  font-size: 0.78rem;
}

.review-body {
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.7;
}

.review-body strong {
  color: var(--green);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.noscript-note {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 10;
  padding: 14px 16px;
  border: 1px solid var(--red);
  border-radius: 12px;
  color: #fff;
  background: #2a0d16;
}

.frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  margin: 0 0.18em;
  text-align: center;
  line-height: 1.08;
}

.frac > span:first-child {
  padding: 0 0.22em 0.05em;
  border-bottom: 1.6px solid currentColor;
}

.frac > span:last-child {
  padding: 0.05em 0.22em 0;
}

.lim {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin-right: 0.24em;
  line-height: 1;
  font-style: italic;
  white-space: nowrap;
}

.lim sub {
  margin-top: 0.12em;
  font-size: 0.58em;
  font-style: normal;
}

.op {
  font-style: italic;
  white-space: nowrap;
}

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

.question-card,
.result-card {
  animation: cardRise 260ms ease both;
}

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

  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-strip {
    display: none;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    padding-bottom: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .deck-grid,
  .rule-grid,
  .result-stats {
    grid-template-columns: 1fr;
  }

  .deck-card {
    min-height: 0;
    padding: 20px;
  }

  .hero-copy,
  .hero-panel,
  .question-card,
  .result-card {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .question-title {
    font-size: 1.25rem;
  }

  .option {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .option-text {
    font-size: 0.94rem;
  }

  .quiz-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-footer .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@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;
  }
}
