:root {
  color-scheme: light;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #48302a;
  background: #fff8ee;
  --ink: #48302a;
  --muted: #6f554d;
  --rose: #a6314a;
  --rose-dark: #8d253b;
  --line: #efd9c9;
  --paper: #fffdf7;
  font-synthesis: weight;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; line-height: 1.6; background: radial-gradient(ellipse at 80% 15%, #fce7d9, transparent 52%), #fff8ee; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, textarea:focus-visible { outline: 3px solid #b24a65; outline-offset: 3px; }
h1:focus, h2:focus { outline: none; }
.shell { width: min(870px, calc(100% - 42px)); margin-inline: auto; }
.site-header { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .87rem; }
.brand span { display: grid; place-items: center; width: 28px; height: 28px; background: #f8ded2; color: var(--rose); border-radius: 9px; font-size: 1rem; }
.text-button { border: 0; border-radius: 6px; padding: 8px 5px; color: var(--muted); background: none; font-size: .84rem; min-height: 44px; }
.text-button:hover { color: var(--rose); }
main { padding-block: 22px 10px; }
.paper { background: var(--paper); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 12px 35px #7b443510; }
.home { display: grid; grid-template-columns: 1.03fr .97fr; grid-template-rows: 1fr auto; column-gap: 20px; position: relative; isolation: isolate; overflow: hidden; padding: 67px 45px 62px; }
.home::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 24px, #e9bfaa33 25px 26px, transparent 27px); mask-image: linear-gradient(to left, #000, transparent 67%); pointer-events: none; }
.tape { position: absolute; z-index: -1; width: 126px; height: 36px; right: -26px; top: 15px; rotate: 34deg; opacity: .63; background: repeating-linear-gradient(90deg, #d16e731f 0 10px, #fff0 10px 20px), repeating-linear-gradient(0deg, #cb63772e 0 10px, #fbe6d9 10px 20px); }
.home-copy { align-self: end; }
h1 { font-size: clamp(2.5rem, 6.1vw, 4.6rem); line-height: 1.12; font-weight: 900; letter-spacing: -.055em; }
h1 span { width: max-content; max-width: 100%; color: var(--rose); display: block; position: relative; isolation: isolate; }
h1 span::after { content: ""; position: absolute; z-index: -1; height: .24em; bottom: .03em; left: -.02em; right: -.03em; border-radius: 46% 40% 45% 28%; background: #ffd9c4; rotate: -2deg; }
.home-tagline { margin-top: 17px; color: var(--muted); font-weight: 650; font-size: clamp(.91rem, 2.1vw, 1.05rem); }
.home-art { grid-column: 2; grid-row: 1 / 3; justify-self: center; align-self: center; width: 100%; aspect-ratio: 1.18; display: grid; place-items: center; position: relative; isolation: isolate; }
.home-art::before { content: ""; position: absolute; z-index: -1; inset: 14% 7% 12%; border-radius: 49% 50% 56% 44%; rotate: -8deg; background: radial-gradient(ellipse at 45% 45%, #fde1d5, #fff0e5 70%); }
.home-art img { width: min(100%, 389px); height: 100%; object-fit: contain; }
.home-actions { margin-top: 22px; }
.home-actions p { margin-bottom: 12px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.home-actions p span { padding-inline: 4px; color: var(--rose); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 21px; border: 1px solid transparent; border-radius: 14px; font-weight: 750; }
.primary { color: #fff; background: var(--rose); box-shadow: 0 5px 10px #a6314a25; }
.primary:hover { background: var(--rose-dark); }
.secondary { color: var(--ink); background: #fffaf4; border-color: #e7cdbf; }
.secondary:hover { background: #fff0e7; }
.site-footer { color: var(--muted); text-align: center; font-size: .75rem; padding: 17px 0 23px; }
.site-footer span { margin-inline: 4px; }
.quiz { max-width: 590px; margin-inline: auto; padding: 32px; }
.progress-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .8rem; font-weight: 750; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
progress { appearance: none; display: block; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; color: var(--rose); background: #f7e5dc; }
progress::-webkit-progress-bar { background: #f7e5dc; }
progress::-webkit-progress-value { background: #b74159; border-radius: 8px; }
progress::-moz-progress-bar { background: #b74159; border-radius: 8px; }
.scene { display: inline-block; margin-top: 23px; padding: 2px 9px; border-radius: 6px; background: #fae6dc; color: #8e3c4d; font-size: .78rem; font-weight: 800; }
.quiz h2 { margin-top: 8px; font-size: clamp(1.19rem, 4vw, 1.75rem); line-height: 1.39; }
.options { display: grid; gap: 8px; margin-top: 16px; }
.option { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; text-align: left; font-size: .92rem; touch-action: manipulation; }
.option-letter { display: grid; place-items: center; height: 27px; flex: 0 0 27px; border-radius: 8px; font-size: .79rem; font-weight: 900; color: var(--rose); background: #fcebe5; }
.option[aria-pressed="true"], .option:active { background: #fcece9; border-color: var(--rose); }
.option[aria-pressed="true"] .option-letter { color: #fff; background: var(--rose); }
@media (hover: hover) { .option:hover { border-color: #c57383; } }
.previous { margin-top: 13px; min-height: 44px; }
.result-card { display: flex; align-items: center; gap: 22px; padding: 28px 32px; }
.result-symbol { display: grid; place-items: center; width: 74px; aspect-ratio: 1; flex: 0 0 74px; font-size: 2.25rem; border-radius: 23px; color: var(--symbol-color, var(--rose)); background: var(--symbol-bg, #fbe5e7); }
.result-kicker { color: var(--rose); font-weight: 800; font-size: .78rem; }
.result-copy h2 { font-size: clamp(1.7rem, 5.5vw, 2.8rem); line-height: 1.2; margin-block: 4px 7px; }
.result-copy > p:last-child, .chart p, .detail p { color: var(--muted); font-size: .91rem; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.chart, .detail { padding: 22px; }
.chart h3, .detail h3 { margin-bottom: 6px; font-size: 1.12rem; }
.bar-list { display: grid; gap: 11px; list-style: none; padding: 0; margin: 16px 0 0; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-label span:last-child { color: var(--muted); }
.bar-track { height: 8px; border-radius: 12px; margin-top: 5px; background: #f3ebe5; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--bar-color); width: var(--bar-width); }
.detail { background: #fff6e9; }
blockquote { margin: 15px 0 0; padding-left: 11px; border-left: 3px solid #d99291; font-weight: 750; font-size: .88rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; align-items: center; }
.copy-status { min-height: 1.1em; margin-top: 5px; color: var(--muted); font-size: .8rem; }
textarea { width: 100%; min-height: 110px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; font: inherit; color: var(--ink); background: white; }
.no-script { padding: 12px; margin-top: 12px; }
@media (max-width: 660px) {
  .shell { width: min(435px, calc(100% - 28px)); }
  .site-header { min-height: 55px; }
  main { padding-block: 7px 6px; }
  .home { grid-template-columns: 1fr; grid-template-rows: auto; padding: 27px 17px 21px; text-align: center; }
  .home::before { mask-image: linear-gradient(to top, #000, transparent 61%); }
  .home-copy h1 { font-size: clamp(2.3rem, 9.2vw, 3.05rem); }
  .home-copy h1 span { margin-inline: auto; }
  .home-tagline { margin-top: 11px; }
  .home-art { grid-column: auto; grid-row: auto; width: min(100%, 285px); height: clamp(148px, 49vw, 224px); margin-top: 4px; aspect-ratio: auto; }
  .home-actions { margin-top: 3px; }
  .home-actions p { margin-bottom: 9px; }
  .home-actions .button, .previous { width: 100%; }
  .quiz, .result-card, .chart, .detail { padding: 17px 15px; border-radius: 19px; }
  .scene { margin-top: 17px; }
  .result-card { gap: 12px; }
  .result-symbol { flex-basis: 53px; width: 53px; border-radius: 15px; font-size: 1.65rem; }
  .results-grid { grid-template-columns: 1fr; }
  .result-actions .button { flex: 1; }
  .result-actions .text-button { flex: 0 0 100%; text-align: center; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 20px); }
  .option { font-size: .87rem; }
  .result-card { align-items: flex-start; }
}
