/* ==========================================================================
   哈利波特分院测试 · 视觉系统
   参考 Nittoh Tea 100th Anniversary 的暖奶油底、低饱和砖红标题与扁平卡片语言，
   用中文宋体/黑体系统字体实现，不依赖外部字体与第三方脚本。
   ========================================================================== */

:root {
  --red: #a8635b;
  --red-deep: #8e5049;
  --red-button: #9d5b54;
  --red-soft: #f0dcd8;
  --red-pale: #e7c7c2;
  --cream: #f4e8d8;
  --cream-2: #fbf4e9;
  --cream-3: #ecdcc8;
  --white: #fffaf4;
  --ink: #3d3230;
  --black: #241c19;
  --brown: #57443e;
  --brown-2: #6d4b43;
  --yellow: #e5c76b;
  --yellow-soft: #f3e6bd;
  --green: #8a8556;
  --green-deep: #4f5d47;
  --orange: #d68f63;
  --purple: #6f5a63;
  --blue: #8db0b8;
  --blue-deep: #52707f;

  --gryffindor: #5f3530;
  --gryffindor-2: #9d5b54;
  --gryffindor-soft: #f0dcd8;
  --hufflepuff: #e3c477;
  --hufflepuff-2: #d8a05f;
  --hufflepuff-ink: #4a3728;
  --hufflepuff-soft: #f3e6c9;
  --ravenclaw: #3a4f5c;
  --ravenclaw-2: #52707f;
  --ravenclaw-soft: #e2e7e5;
  --slytherin: #242c27;
  --slytherin-2: #5f7a5a;
  --slytherin-soft: #dfe4db;

  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 100px;
  --shadow-1: 0 1px 2px rgba(36, 28, 25, 0.06);
  --shadow-2: 0 10px 30px rgba(70, 45, 38, 0.08);
  --shadow-3: 0 24px 60px rgba(70, 45, 38, 0.14);
  --ease: cubic-bezier(0.4, 0.4, 0, 1);
  --dur: 0.3s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(157, 91, 84, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(138, 133, 86, 0.03) 1px, transparent 1px);
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px, 28px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--red);
  color: var(--white);
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

img {
  height: auto;
}

a {
  color: var(--red-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

a:hover {
  color: var(--red-deep);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--black);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

hr {
  border: 0;
  border-top: 1px solid rgba(87, 68, 62, 0.18);
  margin: 32px 0;
}

strong,
b {
  font-weight: 700;
}

small {
  font-size: 13px;
}

:focus-visible {
  outline: 2px solid rgba(157, 91, 84, 0.75);
  outline-offset: 3px;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - var(--gutter) * 2, 820px);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--black);
  color: var(--cream);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 顶部公告与导航 ---------- */

.topbar {
  background: var(--black);
  color: rgba(244, 232, 216, 0.82);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(229, 199, 107, 0.18);
}

.topbar a {
  color: var(--cream);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--yellow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 232, 216, 0.94);
  border-bottom: 1px solid rgba(87, 68, 62, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--black);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--red-button);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  transform: rotate(-3deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand__sub {
  margin-top: 2px;
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--red-deep);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(87, 68, 62, 0.25);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--red-button);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(157, 91, 84, 0.18);
}

.btn--primary:hover {
  background: var(--red-deep);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(61, 50, 48, 0.42);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn--dark {
  background: var(--black);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--brown);
  color: var(--cream);
}

.btn--ghost {
  min-height: 42px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.btn--ghost:hover {
  background: rgba(61, 50, 48, 0.06);
  color: var(--red-deep);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-deep);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- 通用排版 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--red-deep);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

.eyebrow--light {
  color: var(--cream);
}

.eyebrow--light::before {
  background: var(--yellow);
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.display em {
  font-style: normal;
  color: var(--red);
}

.lead {
  max-width: 38em;
  color: var(--brown);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
}

.muted {
  color: var(--brown);
}

.small {
  font-size: 14px;
}

.tiny {
  font-size: 12px;
}

.section {
  padding: 76px 0;
  position: relative;
}

.section--tight {
  padding: 52px 0;
}

.section--white {
  background: var(--white);
}

.section--cream2 {
  background: var(--cream-2);
}

.section--ink {
  background: var(--black);
  color: var(--cream);
}

.section--ink h2,
.section--ink h3 {
  color: var(--cream);
}

.section--ink .lead,
.section--ink p {
  color: rgba(244, 232, 216, 0.82);
}

.section--red {
  background: var(--red-button);
  color: var(--white);
}

.section--red h2,
.section--red h3 {
  color: var(--white);
}

.section--red .lead,
.section--red p {
  color: rgba(255, 255, 255, 0.88);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  max-width: 16em;
}

.section-head p {
  margin: 0;
  color: var(--brown);
  font-size: 16px;
}

.section-head--center {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center h2 {
  margin-inline: auto;
}

.section-head--center p {
  max-width: 40em;
  margin: 16px auto 0;
}

.section-head--light p {
  color: rgba(244, 232, 216, 0.78);
}

.divider-star {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.divider-star::before,
.divider-star::after {
  content: "";
  width: 64px;
  height: 1px;
  background: rgba(87, 68, 62, 0.22);
}

/* ---------- 首页 hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 64px;
  background:
    radial-gradient(circle at 84% 18%, rgba(229, 199, 107, 0.28), transparent 26%),
    radial-gradient(circle at 10% 84%, rgba(214, 143, 99, 0.18), transparent 30%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(157, 91, 84, 0.12) 1.2px, transparent 1.2px),
    radial-gradient(circle, rgba(138, 133, 86, 0.1) 1px, transparent 1px);
  background-position: 0 0, 22px 22px;
  background-size: 44px 44px, 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 32%, #000 70%, transparent);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  max-width: 9em;
  font-size: clamp(46px, 7.4vw, 92px);
  color: var(--black);
}

.hero h1 em {
  color: var(--red);
}

.hero__sub {
  margin: 18px 0 0;
  color: var(--brown-2);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.hero__lead {
  max-width: 35em;
  margin: 18px 0 0;
  color: var(--brown);
  font-size: 17px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(87, 68, 62, 0.2);
}

.hero__meta div {
  padding-right: 14px;
}

.hero__meta dt {
  color: var(--brown);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero__meta dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
}

.hero__stage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.hero__halo {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 34%, rgba(229, 199, 107, 0.18) 35% 58%, transparent 60%);
  filter: blur(0.2px);
}

.hero__crest-main {
  position: relative;
  z-index: 2;
  width: min(78%, 340px);
  filter: saturate(0.88) sepia(0.06) drop-shadow(0 22px 24px rgba(87, 68, 62, 0.2));
  transform: rotate(-2deg);
}

.hero__crest {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(87, 68, 62, 0.12);
  box-shadow: 0 10px 24px rgba(87, 68, 62, 0.14);
}

.hero__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.86) sepia(0.05);
}

.hero__crest--gryffindor {
  top: 8%;
  right: 4%;
  transform: rotate(7deg);
}

.hero__crest--hufflepuff {
  bottom: 8%;
  right: 10%;
  transform: rotate(-6deg);
}

.hero__crest--ravenclaw {
  bottom: 10%;
  left: 2%;
  transform: rotate(5deg);
}

.hero__crest--slytherin {
  top: 6%;
  left: 8%;
  transform: rotate(-8deg);
}

.hero__sticker {
  position: absolute;
  z-index: 4;
  right: 2%;
  top: 42%;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--red-deep);
  color: var(--cream);
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  transform: rotate(9deg);
  box-shadow: 0 14px 26px rgba(157, 91, 84, 0.24);
}

.hero__sticker strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.hero__spark {
  position: absolute;
  color: var(--red);
  opacity: 0.6;
}

.hero__spark--1 {
  top: 3%;
  left: 42%;
  transform: rotate(12deg) scale(0.8);
}

.hero__spark--2 {
  bottom: 4%;
  left: 42%;
  color: var(--green);
  transform: rotate(-16deg) scale(0.55);
}

.hero__note {
  position: absolute;
  z-index: 4;
  bottom: 2%;
  right: 4%;
  max-width: 210px;
  padding: 8px 12px;
  border: 1px solid rgba(87, 68, 62, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(251, 244, 233, 0.85);
  color: var(--brown);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-2deg);
}

.hero__ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 46px;
  padding: 14px 20px;
  border-top: 1px solid rgba(87, 68, 62, 0.16);
  border-bottom: 1px solid rgba(87, 68, 62, 0.16);
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__ribbon span::before {
  content: "✦";
  color: var(--red);
  font-size: 9px;
}

/* ---------- 数据条 ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(87, 68, 62, 0.14);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.stat-strip__item {
  padding: 22px 24px;
  border-right: 1px solid rgba(87, 68, 62, 0.12);
}

.stat-strip__item:last-child {
  border-right: 0;
}

.stat-strip__value {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: var(--red);
}

.stat-strip__label {
  display: block;
  margin-top: 6px;
  color: var(--brown);
  font-size: 13px;
}

/* ---------- 测试区 ---------- */

.quiz-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(229, 199, 107, 0.16), transparent 24%),
    var(--cream-2);
}

.quiz-shell {
  border: 1px solid rgba(87, 68, 62, 0.16);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.quiz-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(87, 68, 62, 0.12);
  background: linear-gradient(180deg, #fffaf4, var(--white));
}

.quiz-top h3 {
  font-size: 22px;
}

.quiz-top p {
  margin: 4px 0 0;
  color: var(--brown);
  font-size: 13px;
}

.quiz-top__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--brown-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.quiz-top__badge strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.quiz-progress {
  padding: 18px 28px 16px;
  border-bottom: 1px solid rgba(87, 68, 62, 0.1);
  background: var(--cream-2);
}

.progress-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(87, 68, 62, 0.12);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transition: width 0.35s var(--ease);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--brown);
  font-size: 12px;
}

.progress-meta strong {
  color: var(--red-deep);
}

.quiz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(87, 68, 62, 0.08);
}

.quiz-toolbar__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brown);
  font-size: 12px;
}

.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid rgba(87, 68, 62, 0.24);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--cream-2);
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
}

.quiz-list {
  padding: 0 28px;
}

.quiz-q {
  padding: 30px 0 28px;
  border-bottom: 1px solid rgba(87, 68, 62, 0.1);
}

.quiz-q:last-child {
  border-bottom: 0;
}

.q-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.q-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red-deep);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.q-text {
  margin: 0;
  padding-top: 2px;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}

.options {
  display: grid;
  gap: 10px;
  margin-left: 68px;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(87, 68, 62, 0.18);
  border-radius: var(--radius-sm);
  background: #fffaf4;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.option:hover {
  border-color: rgba(157, 91, 84, 0.5);
  background: #fdf4ef;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid rgba(87, 68, 62, 0.5);
  border-radius: 50%;
  background: var(--white);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.option__mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  transform: scale(0);
  transition: transform 0.18s var(--ease);
}

.option__letter {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
}

.option__text {
  flex: 1 1 auto;
}

.option:has(input:checked) {
  border-color: var(--red);
  background: #fbece7;
  box-shadow: inset 0 0 0 1px var(--red);
}

.option:has(input:checked) .option__mark {
  border-color: var(--red);
  background: var(--red);
}

.option:has(input:checked) .option__mark::after {
  transform: scale(1);
}

.option:has(input:checked) .option__letter {
  background: var(--red);
  color: var(--white);
}

.option:has(input:focus-visible) {
  outline: 2px solid rgba(157, 91, 84, 0.65);
  outline-offset: 2px;
}

.option.is-pulse {
  animation: optionPulse 0.28s var(--ease);
}

@keyframes optionPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.995); }
  100% { transform: scale(1); }
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid rgba(87, 68, 62, 0.1);
  background: #fffaf4;
}

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

.quiz-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 28px 20px;
}

.quiz-jump__btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(87, 68, 62, 0.16);
  border-radius: 6px;
  background: var(--white);
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: all var(--dur) var(--ease);
}

.quiz-jump__btn:hover {
  border-color: var(--red);
  color: var(--red-deep);
}

.quiz-jump__btn[data-answered="true"] {
  border-color: rgba(138, 133, 86, 0.4);
  background: rgba(229, 199, 107, 0.18);
  color: var(--green-deep);
}

.quiz-jump__btn[data-current="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.quiz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-top: 1px solid rgba(87, 68, 62, 0.1);
  background: var(--cream-2);
}

.quiz-foot__count {
  color: var(--brown);
  font-size: 13px;
}

.quiz-foot__count strong {
  color: var(--red-deep);
  font-family: var(--font-display);
  font-size: 20px;
}

.quiz-foot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--yellow);
  background: rgba(229, 199, 107, 0.12);
  color: var(--brown);
  font-size: 13px;
  line-height: 1.6;
}

.quiz-note strong {
  color: var(--black);
}

/* 逐题模式 */
.quiz-shell.is-step .quiz-q {
  display: none;
}

.quiz-shell.is-step .quiz-q.is-active {
  display: block;
  animation: qIn 0.25s var(--ease);
}

.quiz-shell.is-step .quiz-list {
  min-height: 240px;
}

.quiz-shell.has-result .quiz-top,
.quiz-shell.has-result .quiz-progress,
.quiz-shell.has-result .quiz-list,
.quiz-shell.has-result .quiz-toolbar,
.quiz-shell.has-result .quiz-jump,
.quiz-shell.has-result .quiz-actions,
.quiz-shell.has-result .quiz-foot {
  display: none;
}

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


.quiz-shell.is-step .quiz-jump {
  padding-top: 4px;
}

.quiz-shell:not(.is-step) .quiz-actions {
  display: none;
}

/* 结果入口 */
.result-gate {
  display: none;
  padding: 30px 28px;
  border-top: 1px solid rgba(87, 68, 62, 0.12);
  background:
    radial-gradient(circle at 92% 12%, rgba(229, 199, 107, 0.2), transparent 28%),
    var(--cream-2);
}

.result-gate.is-visible {
  display: block;
}

.result-gate__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.result-gate h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.result-gate p {
  max-width: 40em;
  margin: 8px 0 0;
  color: var(--brown);
  font-size: 14px;
}

.name-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}

.name-field label {
  color: var(--brown);
  font-size: 12px;
  font-weight: 600;
}

.name-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(87, 68, 62, 0.35);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

.name-field input:focus {
  border-color: var(--red);
}

.result-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.result-gate__status {
  margin-top: 12px;
  color: var(--brown);
  font-size: 12px;
}

.result-gate__status strong {
  color: var(--red-deep);
}

.result-gate__privacy {
  color: var(--brown);
  font-size: 11px;
}

.result-gate__privacy::before {
  content: "● ";
  color: var(--green);
}

/* 结果面板 */
.result {
  display: none;
  scroll-margin-top: 100px;
}

.result.is-visible {
  display: block;
  animation: resultIn 0.35s var(--ease);
}

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

.result-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.result-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(87, 68, 62, 0.24);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}

.result-tab:hover {
  border-color: var(--red);
  color: var(--red-deep);
}

.result-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.result-panel {
  display: none;
}

.result-panel.is-active {
  display: block;
}

.ratio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ratio-head h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.ratio-head p {
  margin: 4px 0 0;
  color: var(--brown);
  font-size: 13px;
}

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

.ratio-card {
  padding: 18px;
  border: 1px solid rgba(87, 68, 62, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.ratio-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
}

.ratio-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--house-color, var(--red));
}

.ratio-card__value {
  display: block;
  margin: 8px 0 10px;
  color: var(--house-color, var(--red));
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.ratio-card__track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(87, 68, 62, 0.1);
  overflow: hidden;
}

.ratio-card__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--house-color, var(--red));
  transition: width 0.7s var(--ease);
}

.ratio-card--gryffindor { --house-color: var(--gryffindor-2); }
.ratio-card--hufflepuff { --house-color: #8f6a2f; }
.ratio-card--ravenclaw { --house-color: var(--ravenclaw-2); }
.ratio-card--slytherin { --house-color: var(--slytherin-2); }

.ratio-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  color: var(--brown);
  font-size: 13px;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--gryffindor), var(--gryffindor-2));
  box-shadow: var(--shadow-3);
}

.result-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.04), 0 0 0 70px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.result-card[data-house="gryffindor"] {
  background: linear-gradient(135deg, #5f3530, var(--gryffindor-2) 78%);
}

.result-card[data-house="hufflepuff"] {
  background: linear-gradient(135deg, var(--hufflepuff), var(--hufflepuff-2));
  color: var(--hufflepuff-ink);
}

.result-card[data-house="ravenclaw"] {
  background: linear-gradient(135deg, var(--ravenclaw), var(--ravenclaw-2));
}

.result-card[data-house="slytherin"] {
  background: linear-gradient(135deg, #242c27, var(--slytherin-2));
}

.result-card[data-house="hogwarts"] {
  background: linear-gradient(120deg, #6b3a35, #4f5d47 55%, #3a4f5c);
}

.result-card__crest-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}

.result-card__crest-wrap::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(2px);
}

.result-card__crest {
  position: relative;
  z-index: 1;
  width: 190px;
  height: 210px;
  object-fit: contain;
  filter: saturate(0.88) sepia(0.05) drop-shadow(0 16px 20px rgba(0, 0, 0, 0.28));
}

.result-card[data-house="hufflepuff"] .result-card__crest {
  filter: drop-shadow(0 16px 20px rgba(74, 55, 40, 0.22));
}

.result-card__body {
  position: relative;
  z-index: 1;
}

.result-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.result-card__wizard {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 1;
}

.result-card__house {
  margin: 0;
  color: inherit;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
}

.result-card[data-house="hufflepuff"] .result-card__house {
  color: var(--hufflepuff-ink);
}

.result-card__verdict {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.result-card__desc {
  max-width: 46em;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  opacity: 1;
}

.result-card__bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.result-mini {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.result-card[data-house="hufflepuff"] .result-mini {
  border-color: rgba(74, 55, 40, 0.18);
  background: rgba(255, 255, 255, 0.2);
}

.result-mini span {
  display: block;
  font-size: 10px;
  opacity: 0.78;
}

.result-mini strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.result-card__actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.result-card .btn--primary {
  background: var(--cream);
  color: var(--black);
  box-shadow: none;
}

.result-card .btn--primary:hover {
  background: var(--white);
  color: var(--black);
}

.result-card .btn--secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: inherit;
}

.result-card .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
  color: inherit;
}

.result-card[data-house="hufflepuff"] .btn--secondary {
  border-color: rgba(74, 55, 40, 0.36);
}

.result-rare {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(3deg);
}

.result-copy {
  margin-top: 14px;
  color: var(--brown);
  font-size: 12px;
}

.result-disclaimer {
  margin-top: 16px;
  color: var(--brown);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- 通用卡片与学院 ---------- */

.card {
  border: 1px solid rgba(87, 68, 62, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.card__body {
  padding: 24px;
}

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

.house-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(87, 68, 62, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.house-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--house-accent, var(--red));
}

.house-card:hover {
  transform: translateY(-4px);
  border-color: rgba(87, 68, 62, 0.24);
  box-shadow: var(--shadow-2);
  color: var(--ink);
}

.house-card__crest {
  display: grid;
  place-items: center;
  height: 150px;
  margin: 6px 0 14px;
}

.house-card__crest img {
  max-height: 150px;
  width: auto;
  filter: saturate(0.88) sepia(0.05) drop-shadow(0 10px 14px rgba(87, 68, 62, 0.16));
  transition: transform var(--dur) var(--ease);
}

.house-card:hover .house-card__crest img {
  transform: scale(1.04) rotate(-1deg);
}

.house-card__name {
  margin: 0;
  font-size: 24px;
  color: var(--black);
}

.house-card__en {
  display: block;
  margin-top: 2px;
  color: var(--house-accent, var(--red));
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.house-card__traits {
  margin: 12px 0 16px;
  color: var(--brown);
  font-size: 13px;
  line-height: 1.65;
}

.house-card__link {
  margin-top: auto;
  color: var(--house-accent, var(--red));
  font-size: 13px;
  font-weight: 700;
}

.house-card--gryffindor { --house-accent: var(--gryffindor-2); }
.house-card--hufflepuff { --house-accent: #8f6a2f; }
.house-card--ravenclaw { --house-accent: var(--ravenclaw-2); }
.house-card--slytherin { --house-accent: var(--slytherin-2); }

.house-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.house-strip li {
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--brown);
  font-size: 12px;
  line-height: 1.5;
}

.tag--red { background: var(--red-soft); color: #7d4741; }
.tag--yellow { background: var(--yellow-soft); color: #574600; }
.tag--green { background: #e7e6d9; color: #4f5d47; }
.tag--blue { background: #e1e8e8; color: #40545f; }
.tag--purple { background: #e9e1e4; color: #5a4a52; }
.tag--dark { background: #e6e0dc; color: #3d3230; }

/* ---------- 分院帽方法 ---------- */

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

.method-card {
  padding: 26px;
  border: 1px solid rgba(87, 68, 62, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.method-card__num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--red-button);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.method-card h3 {
  font-size: 22px;
}

.method-card p {
  margin-top: 8px;
  color: var(--brown);
  font-size: 14px;
  line-height: 1.75;
}

.formula {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px dashed rgba(87, 68, 62, 0.3);
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  color: var(--brown-2);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}

.formula strong {
  color: var(--red-deep);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(87, 68, 62, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(87, 68, 62, 0.1);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--cream-2);
  color: var(--brown-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: var(--black);
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid rgba(87, 68, 62, 0.16);
}

.faq-item {
  border-bottom: 1px solid rgba(87, 68, 62, 0.16);
}

.faq-item details {
  padding: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(87, 68, 62, 0.25);
  border-radius: 50%;
  color: var(--red-deep);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.faq-item details[open] summary::after {
  content: "−";
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-item__answer {
  max-width: 52em;
  padding: 0 0 22px;
  color: var(--brown);
  font-size: 15px;
  line-height: 1.85;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer ul {
  margin-top: 8px;
}

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

.faq-card {
  padding: 24px;
  border: 1px solid rgba(87, 68, 62, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.faq-card h3 {
  font-size: 20px;
  line-height: 1.45;
}

.faq-card p {
  margin: 10px 0 0;
  color: var(--brown);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 文章页 ---------- */

.page-hero {
  padding: 54px 0 46px;
  background:
    radial-gradient(circle at 92% 10%, rgba(229, 199, 107, 0.22), transparent 30%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid rgba(87, 68, 62, 0.12);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: center;
}

.page-hero h1 {
  max-width: 14em;
  font-size: clamp(34px, 5vw, 60px);
}

.page-hero .lead {
  margin-top: 16px;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--brown);
  font-size: 12px;
}

.page-hero__meta span::before {
  content: "✦";
  margin-right: 6px;
  color: var(--red);
  font-size: 9px;
}

.page-hero__art {
  display: grid;
  place-items: center;
}

.page-hero__art img {
  max-height: 230px;
  width: auto;
  filter: saturate(0.88) sepia(0.05) drop-shadow(0 18px 24px rgba(87, 68, 62, 0.18));
}

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--brown);
  font-size: 12px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(87, 68, 62, 0.45);
}

.breadcrumbs a {
  color: var(--brown);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--red-deep);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(26px, 3.4vw, 38px);
  scroll-margin-top: 104px;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  scroll-margin-top: 104px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.1em;
  color: var(--brown);
  font-size: 16px;
  line-height: 1.9;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--brown);
  font-size: 16px;
  line-height: 1.9;
}

.prose li::marker {
  color: var(--red);
}

.prose strong {
  color: var(--black);
}

.prose a {
  color: var(--red-deep);
  text-decoration: underline;
  text-decoration-color: rgba(142, 80, 73, 0.3);
}

.prose a:hover {
  text-decoration-color: var(--red);
}

.prose blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--red);
  background: var(--cream-2);
  color: var(--brown-2);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose figure {
  margin: 28px 0;
}

.prose figure img {
  border-radius: var(--radius-sm);
}

.prose figcaption {
  margin-top: 8px;
  color: var(--brown);
  font-size: 12px;
  text-align: center;
}

.prose .callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(229, 199, 107, 0.55);
  border-radius: var(--radius-sm);
  background: rgba(229, 199, 107, 0.14);
  color: var(--brown);
  font-size: 14px;
  line-height: 1.8;
}

.prose .callout strong {
  color: var(--black);
}

.prose .callout--red {
  border-color: rgba(157, 91, 84, 0.25);
  background: rgba(157, 91, 84, 0.06);
}

.toc {
  margin: 0 0 32px;
  padding: 20px 22px;
  border: 1px solid rgba(87, 68, 62, 0.14);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.toc h2 {
  margin: 0 0 10px !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown) !important;
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
}

.toc a {
  color: var(--brown);
  text-decoration: none;
}

.toc a:hover {
  color: var(--red-deep);
  text-decoration: underline;
}

/* 学院页 */
.house-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--house-dark, #5f3530), var(--house-color, var(--red)));
}

.house-hero--hufflepuff {
  color: var(--hufflepuff-ink);
}

.house-hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.05), 0 0 0 88px rgba(255, 255, 255, 0.03);
}

.house-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: center;
}

.house-hero h1 {
  color: inherit;
  font-size: clamp(38px, 5.6vw, 68px);
}

.house-hero__en {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.house-hero .lead {
  color: inherit;
  opacity: 0.9;
}

.house-hero__crest {
  width: 230px;
  max-height: 250px;
  object-fit: contain;
  filter: saturate(0.88) sepia(0.05) drop-shadow(0 20px 26px rgba(0, 0, 0, 0.28));
}

.house-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.house-hero__facts span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font-size: 12px;
}

.house-hero--hufflepuff .house-hero__facts span {
  border-color: rgba(74, 55, 40, 0.28);
}

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

.house-fact {
  padding: 18px;
  border: 1px solid rgba(87, 68, 62, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.house-fact dt {
  color: var(--brown);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-fact dd {
  margin: 5px 0 0;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

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

.character-card {
  padding: 18px;
  border: 1px solid rgba(87, 68, 62, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.character-card h3 {
  margin: 0;
  font-size: 18px;
}

.character-card p {
  margin: 4px 0 0;
  color: var(--brown);
  font-size: 13px;
  line-height: 1.65;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 42px;
  border: 1px solid rgba(87, 68, 62, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--brown);
  font-size: 14px;
  line-height: 1.7;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--house-soft, var(--cream));
  color: var(--house-ink, var(--red-deep));
  font-size: 11px;
  font-weight: 700;
}

.house-quote {
  margin: 0;
  padding: 30px 32px;
  border-radius: var(--radius-sm);
  background: var(--house-soft, var(--cream-2));
  color: var(--house-ink, var(--brown-2));
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1.6;
}

.house-quote footer {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* 相关链接 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 22px;
  border: 1px solid rgba(87, 68, 62, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  color: var(--ink);
}

.related-card__kicker {
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related-card h3 {
  margin-top: 6px;
  font-size: 20px;
}

.related-card p {
  margin: 6px 0 0;
  color: var(--brown);
  font-size: 13px;
  line-height: 1.7;
}

/* CTA 带 */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background:
    linear-gradient(90deg, rgba(36, 28, 25, 0.94), rgba(70, 45, 38, 0.86)),
    radial-gradient(circle at 82% 18%, rgba(168, 99, 91, 0.32), transparent 42%),
    url("../img/hero-night.jpg") center / cover no-repeat;
  color: var(--cream);
}

.cta-band h2 {
  max-width: 18em;
  color: var(--cream);
  font-size: clamp(30px, 4.4vw, 52px);
}

.cta-band p {
  max-width: 40em;
  margin: 12px 0 0;
  color: rgba(244, 232, 216, 0.82);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cta-band .btn--primary {
  background: var(--red-button);
  color: var(--white);
}

.cta-band .btn--secondary {
  border-color: rgba(244, 232, 216, 0.45);
  color: var(--cream);
}

.cta-band .btn--secondary:hover {
  background: var(--cream);
  color: var(--black);
}

/* 页脚 */
.site-footer {
  background: var(--black);
  color: rgba(244, 232, 216, 0.72);
  font-size: 13px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: 32px;
  padding: 56px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand .brand__mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}

.footer-brand__name {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.footer-brand p {
  max-width: 30em;
  margin: 10px 0 0;
  color: rgba(244, 232, 216, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

.footer-col h2 {
  margin: 0 0 12px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0 0 7px;
}

.footer-col a {
  color: rgba(244, 232, 216, 0.72);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(244, 232, 216, 0.14);
  color: rgba(244, 232, 216, 0.5);
  font-size: 11px;
}

.footer-bottom a {
  color: rgba(244, 232, 216, 0.62);
}

.footer-disclaimer {
  padding: 0 0 24px;
  color: rgba(244, 232, 216, 0.42);
  font-size: 10px;
  line-height: 1.7;
}

/* 404 */
.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 80px 0;
  text-align: center;
}

.error-page__code {
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(90px, 20vw, 200px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.error-page h1 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.error-page p {
  max-width: 34em;
  margin: 12px auto 0;
  color: var(--brown);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* 辅助布局 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split__media {
  display: grid;
  place-items: center;
}

.split__media img {
  max-height: 360px;
  width: auto;
  filter: drop-shadow(0 20px 30px rgba(87, 68, 62, 0.16));
}

.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- 响应式 ---------- */


/* ---------- 结果页、FAQ 与学院页补充 ---------- */

[hidden] {
  display: none !important;
}

.result {
  padding: 30px 28px 34px;
  border-top: 1px solid rgba(87, 68, 62, 0.12);
  background:
    radial-gradient(circle at 94% 6%, rgba(229, 199, 107, 0.14), transparent 24%),
    #fffaf4;
}

.result-head {
  margin-bottom: 18px;
}

.result-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
}

#result-title:focus,
#result-title:focus-visible {
  outline: none;
}

.result-card__en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.result-head__note {
  max-width: 44em;
  margin: 8px 0 0;
  color: var(--brown);
  font-size: 12px;
}

.ratio-title {
  margin: 0 0 16px;
  color: var(--brown-2);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 900;
  line-height: 1.5;
}

.quiz-warning {
  margin: 0 28px 20px;
  padding: 13px 16px;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--red-soft);
  color: #7d4741;
  font-size: 13px;
  line-height: 1.7;
}

.quiz-q.is-highlight {
  animation: qHighlight 1.15s var(--ease);
}

@keyframes qHighlight {
  0% { background: rgba(229, 199, 107, 0.26); }
  100% { background: transparent; }
}

.btn.is-disabled {
  opacity: 0.45;
}

#quiz-status.is-ready strong {
  color: var(--green-deep);
}

.house-breadcrumb {
  padding: 14px 0 0;
  background: var(--cream);
}

.house-breadcrumb .breadcrumbs {
  margin-bottom: 0;
}

.prose blockquote footer {
  margin-top: 10px;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.faq-item__question {
  margin: 0;
  padding: 20px 0 8px;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
}

.faq-item__answer {
  padding: 0 0 22px;
}

.faq-item:last-child {
  border-bottom: 0;
}

.result-copy {
  color: inherit;
  opacity: 0.95;
}

.result-card[data-house="hufflepuff"] .result-card__desc,
.result-card[data-house="hufflepuff"] .result-card__verdict {
  color: var(--hufflepuff-ink);
}

.result-card[data-house="hufflepuff"] .result-copy {
  color: var(--hufflepuff-ink);
}

@media (max-width: 760px) {
  .result {
    padding: 24px 20px 28px;
  }

  .quiz-warning {
    margin-left: 20px;
    margin-right: 20px;
  }

  .result-head h2 {
    font-size: 28px;
  }
}

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 28px;
  }

  .hero__stage {
    min-height: 440px;
  }

  .hero__crest {
    width: 82px;
    height: 82px;
  }

  .hero__sticker {
    width: 102px;
    height: 102px;
    font-size: 12px;
  }

  .hero__sticker strong {
    font-size: 30px;
  }

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

  .footer-main {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
  }

  .result-card {
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 32px;
  }

  .result-card__crest {
    width: 160px;
    height: 180px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
  }

  .site-nav {
    gap: 18px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    max-width: 12em;
  }

  .hero__stage {
    min-height: 400px;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .hero__ribbon {
    margin-top: 30px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head p {
    max-width: 42em;
  }

  .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-hero__art {
    order: -1;
    justify-items: start;
  }

  .page-hero__art img {
    max-height: 160px;
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split--reverse .split__media {
    order: -1;
  }

  .split__media img {
    max-height: 260px;
  }

  .house-hero__grid {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 24px;
  }

  .house-hero__crest {
    width: 180px;
  }

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

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

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

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .result-gate__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .name-field {
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 88px;
  }

  .topbar {
    font-size: 11px;
  }

  .topbar__inner {
    min-height: 32px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__sub {
    font-size: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    border-bottom: 1px solid rgba(87, 68, 62, 0.14);
    background: var(--cream-2);
    box-shadow: 0 18px 30px rgba(70, 45, 38, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(87, 68, 62, 0.08);
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin: 12px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }

  .section--tight {
    padding: 38px 0;
  }

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

  .hero__meta div:nth-child(2n) {
    padding-left: 14px;
    border-left: 1px solid rgba(87, 68, 62, 0.16);
  }

  .hero__stage {
    min-height: 340px;
  }

  .hero__crest-main {
    width: min(70%, 260px);
  }

  .hero__crest {
    width: 68px;
    height: 68px;
    padding: 7px;
  }

  .hero__sticker {
    width: 88px;
    height: 88px;
    font-size: 10px;
  }

  .hero__sticker strong {
    font-size: 25px;
  }

  .hero__note {
    display: none;
  }

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

  .stat-strip__item {
    border-bottom: 1px solid rgba(87, 68, 62, 0.12);
  }

  .stat-strip__item:nth-child(2n) {
    border-right: 0;
  }

  .stat-strip__item:nth-child(n + 3) {
    border-bottom: 0;
  }

  .quiz-top {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .quiz-progress,
  .quiz-toolbar,
  .quiz-actions,
  .quiz-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .quiz-list {
    padding: 0 20px;
  }

  .quiz-jump {
    padding-left: 20px;
    padding-right: 20px;
  }

  .q-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .q-num {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .options {
    margin-left: 0;
  }

  .option {
    padding: 12px 14px;
    font-size: 14px;
  }

  .quiz-toolbar__hint {
    display: none;
  }

  .result-gate {
    padding: 24px 20px;
  }

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

  .result-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 22px;
    text-align: center;
  }

  .result-card__crest-wrap {
    min-height: 170px;
  }

  .result-card__crest {
    width: 140px;
    height: 160px;
  }

  .result-card__kicker {
    justify-content: center;
  }

  .result-card__desc {
    margin-inline: auto;
  }

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

  .result-card__actions {
    justify-content: center;
  }

  .house-grid,
  .method-grid,
  .related-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .house-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 16px;
    align-items: center;
    padding: 18px;
  }

  .house-card__crest {
    grid-row: 1 / span 4;
    height: 110px;
    margin: 0;
  }

  .house-card__crest img {
    max-height: 108px;
  }

  .house-card__traits {
    margin: 8px 0 10px;
  }

  .faq-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .house-hero__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .house-hero__crest {
    width: 150px;
    order: -1;
  }

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

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .topbar__group:last-child {
    display: none;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .brand__name {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero__sub {
    font-size: 17px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stage {
    min-height: 300px;
  }

  .hero__crest {
    width: 58px;
    height: 58px;
  }

  .hero__sticker {
    width: 76px;
    height: 76px;
  }

  .hero__sticker strong {
    font-size: 21px;
  }

  .stat-strip__item {
    padding: 16px;
  }

  .stat-strip__value {
    font-size: 28px;
  }

  .quiz-top__badge {
    justify-self: start;
  }

  .q-text {
    font-size: 18px;
  }

  .option__letter {
    display: none;
  }

  .result-card__house {
    font-size: 38px;
  }

  .ratio-card__value {
    font-size: 30px;
  }

  .house-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .house-card__crest {
    height: 88px;
  }

  .house-card__crest img {
    max-height: 86px;
  }

  .house-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .topbar,
  .site-footer,
  .quiz-toolbar,
  .quiz-actions,
  .quiz-jump,
  .hero__stage,
  .cta-band {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .quiz-shell {
    box-shadow: none;
    border: 0;
  }

  .quiz-q {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
