:root {
  color-scheme: dark;
  --ink: #100e10;
  --paper: #fbf4ef;
  --muted: #b4a2aa;
  --hot: #f12850;
  --soft: #ff718a;
  --line: #39292f;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #0c0a0c; }
body {
  margin: 0;
  color: var(--paper);
  font-family: var(--font);
  background:
    repeating-linear-gradient(138deg, transparent 0 123px, #bd194314 124px, transparent 125px 159px),
    radial-gradient(ellipse at 50% 20%, #461020 0, #190d14 45%, #0c0a0c 78%);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #ff9bb0; outline-offset: 3px; }
h1:focus { outline: none; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
.app {
  width: min(100%, 500px);
  min-height: 100svh;
  margin-inline: auto;
  background: var(--ink);
  padding-top: env(safe-area-inset-top);
  border-inline: 1px solid #44222e;
  box-shadow: 0 0 88px #0504069c;
}
.app[data-page="home"], .app[data-page="quiz"] {
  display: flex;
  flex-direction: column;
}
.masthead {
  min-height: 57px;
  flex: 0 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 13px; letter-spacing: .09em; }
button.brand { background: none; border: 0; padding: 0; min-height: 40px; touch-action: manipulation; }
.header-tools { display: flex; gap: 14px; align-items: center; }
.header-tools .fullscreen, .desktop-mode-title { display: none; }
.brand-icon {
  display: grid; place-items: center;
  width: 29px; height: 29px;
  background: var(--hot);
  color: white;
  transform: skewX(-9deg);
}
.brand-icon svg { width: 20px; height: 20px; transform: skewX(9deg); stroke-width: 1.7; }
.header-tag {
  color: #f5c2cd;
  font-size: 11px;
  letter-spacing: .13em;
  padding: 5px 8px;
  border: 1px solid #683044;
  transform: skewX(-9deg);
}
.hero, .result-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background-color: #24101a;
  background-image:
    repeating-linear-gradient(0deg, #ccb9bd13 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, #ccb9bd13 0 1px, transparent 1px 28px),
    radial-gradient(ellipse at 55% 26%, #5c1631, #1a0f15 78%);
}
.hero {
  flex: 1 0 auto;
  min-height: clamp(293px, calc(100svh - 348px), 545px);
  max-height: 620px;
}
.hero-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(146deg, #811334 3%, #f8244d 55%, #a91036);
  clip-path: polygon(26% 0, 100% 0, 100% 86%, 31% 96%, 55% 42%, 13% 54%);
  animation: field-in .53s cubic-bezier(.2,.75,.2,1) both;
}
.hero-stripe {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-31deg, #fff2eb 0 1px, transparent 1px 7px);
  opacity: .28;
  clip-path: polygon(0 0, 15% 0, 0 29%, 0 89%, 74% 43%, 100% 42%, 0 97%);
}
.candle-chart {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: #ffacbd;
  opacity: .42;
  z-index: -1;
  pointer-events: none;
}
.hero-orbit {
  position: absolute;
  z-index: -1;
  width: 77%; aspect-ratio: 1;
  right: -3%; top: 7%;
  border: 1px solid #ffd4df7d;
  border-radius: 50%;
  box-shadow: 0 0 0 12px #ffd4df1a, 0 0 0 24px #ffd4df12;
  background-image: radial-gradient(circle, #f9b1bf7a 0 .7px, transparent 1px);
  background-size: 6px 6px;
  mask-image: linear-gradient(#000 0 76%, transparent);
}
.hero-character {
  position: absolute;
  top: 2%;
  right: 1.5%;
  width: min(94%, 465px);
  height: 102%;
  object-fit: contain;
  object-position: right top;
  filter: drop-shadow(3px 0 #ffeded) drop-shadow(-2px 0 #ffeded) drop-shadow(0 3px #ffeded) drop-shadow(8px 10px 0 #390a27a6);
  animation: art-in .6s cubic-bezier(.2,.75,.2,1) both;
}
.hero::after, .result-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #100e10 0%, #100e10ec 11%, #170e17a8 24%, transparent 55%);
}
.spark { position: absolute; z-index: 1; color: #fff3ee; font-size: 34px; text-shadow: 2px 2px #841130; animation: spark 2.6s ease-in-out infinite alternate; }
.spark-one { top: 20%; left: 17%; }
.spark-two { top: 11%; right: 8%; font-size: 23px; animation-delay: -.8s; }
.hero-copy { position: absolute; z-index: 2; bottom: 9px; left: 24px; right: 16px; }
.hero h1 { width: max-content; max-width: 100%; font-weight: 950; transform: skew(-7deg) rotate(-5deg); transform-origin: left bottom; }
.hero h1 span, .hero h1 strong { display: table; line-height: 1.13; }
.hero h1 span {
  color: var(--paper);
  background: #141016;
  font-size: clamp(22px, 6.5vw, 32px);
  box-shadow: 5px 4px #7a0a28;
  padding: 4px 10px 5px 6px;
}
.hero h1 strong {
  color: var(--paper);
  font-size: clamp(42px, 13vw, 64px);
  letter-spacing: -.075em;
  padding: 2px 20px 5px 6px;
  background: var(--hot);
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  text-shadow: 3px 3px #860b2f;
}
.hero-copy p { margin: 14px 0 0; color: #e2cdd3; font-size: 12px; line-height: 1.45; }
.home-controls { padding: 0 24px max(12px, env(safe-area-inset-bottom)); }
.cast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  font-size: 11px;
  color: #d7bac4;
  border-bottom: 1px solid var(--line);
  margin-bottom: 13px;
}
.cast-portraits { display: flex; align-items: center; padding-left: 4px; }
.cast-portraits img {
  width: 30px; height: 30px;
  object-fit: cover; object-position: center top;
  border: 1.5px solid #e98aa0;
  border-radius: 50%;
  margin-left: -4px;
  background: #772745;
}
.cast-portraits .cast-mochiko { background: #513562; }
.cast-portraits .cast-mebuki { background: #83592b; }
.cast-portraits .cast-yasuko { background: #4a314f; }
.mode-select { display: grid; gap: 9px; }
.mode {
  --mode-fill: #25151f;
  display: flex; align-items: center; text-align: left;
  min-height: 66px;
  width: 100%;
  position: relative;
  isolation: isolate;
  border: 0;
  padding: 0 12px 0 13px;
  gap: 11px;
  background: transparent;
  transition: transform .16s ease, filter .16s ease;
}
.mode::before, .mode::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  background: #88435b;
}
.mode::after { inset: 1px; background: var(--mode-fill); }
.mode-quick { --mode-fill: linear-gradient(105deg, #a30e31, #e91943 57%, #ba1039); }
.mode-quick::before { background: #ff8da3; }
.mode:active:not(:disabled), .button:active:not(:disabled) { transform: translateY(2px); }
@media (hover: hover) { .mode:hover:not(:disabled), .button:hover:not(:disabled) { filter: brightness(1.17); } }
.mode:disabled { opacity: .72; }
.mode-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 auto;
  color: #fff4f4;
  background: #160e16b0;
  transform: skewX(-9deg);
}
.mode-icon svg { width: 20px; height: 20px; transform: skewX(9deg); }
.mode-full .mode-icon { background: #64223c; color: #ffadbd; }
.mode-copy { display: grid; gap: 3px; flex: 1; white-space: nowrap; }
.mode-copy strong { font-size: 20px; line-height: 1.15; letter-spacing: .02em; }
.mode-copy small { font-size: 11px; color: #f6c9d2; }
.mode-lock, .mode-arrow { display: flex; align-items: center; flex: 0 0 auto; }
.mode-lock { gap: 3px; color: #ffc1d1; font-size: 10px; white-space: nowrap; }
.mode-lock svg { width: 13px; height: 13px; }
.mode-arrow { margin-left: auto; }
.mode-arrow svg { width: 23px; height: 23px; }
footer { margin-top: 14px; color: var(--muted); text-align: center; font-size: 10px; letter-spacing: .12em; }

.quiz-inner { padding: clamp(17px, 4svh, 34px) 24px max(16px, env(safe-area-inset-bottom)); }
.progress-meta { display: flex; align-items: baseline; justify-content: space-between; color: #d9aebc; font-size: 13px; }
.progress-meta strong { color: #ffd5df; letter-spacing: .12em; }
.progress-meta span { font: 600 15px var(--mono); }
.progress-meta b { color: var(--soft); font-size: 28px; line-height: 1; }
.progress { height: 4px; margin-top: 9px; background: #432430; overflow: hidden; }
.progress i { display: block; width: var(--progress); height: 100%; background: var(--hot); }
.question-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(136px, 24svh, 205px);
  padding: 18px 19px 20px;
  margin: clamp(13px, 3.4svh, 30px) 0 13px;
  border-inline-start: 3px solid var(--hot);
  background:
    repeating-linear-gradient(135deg, #ff709315 0 1px, transparent 1px 9px) right top / 31% 100% no-repeat,
    linear-gradient(130deg, #41202f, #21121b);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}
.question-number {
  right: 11px; top: -12px; z-index: -1;
  position: absolute;
  color: #c5486c29;
  font: italic 900 clamp(82px, 25vw, 134px) / 1 var(--mono);
  letter-spacing: -.12em;
}
.question-card h1 { font-size: clamp(20px, 6vw, 28px); line-height: 1.46; text-wrap: pretty; }
.answers { display: grid; gap: 8px; }
.answer {
  background: #1e151b;
  border: 1px solid #452d39;
  text-align: left;
  min-height: clamp(45px, 7.1svh, 63px);
  padding: 6px 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  font-weight: 680;
  font-size: 15px;
  transition: background-color .15s ease, border-color .15s ease;
}
@media (hover: hover) { .answer:hover { border-color: #c6637e; } }
.answer[aria-pressed="true"] { background: #731a37; border-color: var(--soft); }
.letter {
  font: italic 800 16px var(--mono);
  color: #ffc8d5;
  background: #512238;
  width: 32px; height: 30px;
  display: grid; place-items: center;
  transform: skewX(-7deg);
}
.radio { height: 13px; width: 13px; border: 1px solid #b1788d; border-radius: 50%; margin-left: auto; }
.answer[aria-pressed="true"] .radio { background: var(--soft); box-shadow: inset 0 0 0 2px #731a37; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 11px; color: var(--muted); gap: 8px; }
.text-button {
  background: none;
  border: 0;
  color: #e3bcc8;
  font-weight: 650; font-size: 12px;
  min-height: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 3px;
}
.text-button:disabled { opacity: .45; }
.text-button svg { width: 15px; height: 15px; }

.result-hero { height: clamp(392px, 57svh, 510px); }
.result-character {
  position: absolute;
  top: 4%; right: -1%;
  width: min(89%, 450px); height: 94%;
  object-fit: contain; object-position: right top;
  filter: drop-shadow(2px 0 #fff2ed) drop-shadow(-2px 0 #fff2ed) drop-shadow(6px 8px #420924a6);
  animation: art-in .59s cubic-bezier(.2,.75,.2,1) both;
}
.result-id { position: absolute; inset: 0; z-index: 1; pointer-events: none; padding: 0 24px 19px; display: flex; flex-direction: column; justify-content: end; align-items: start; }
.fit { margin-bottom: 21px; display: grid; color: #fff6f6; transform: skewX(-8deg); }
.fit b {
  font: 900 clamp(50px, 16vw, 78px) / 1 var(--mono);
  letter-spacing: -.11em;
  text-shadow: 3px 3px #930a37, -1px -1px #100e10, 1px -1px #100e10, -1px 1px #100e10;
}
.fit b small { font-size: .48em; letter-spacing: 0; margin-left: 5px; }
.fit > span, .match-label {
  width: fit-content; font-size: 11px; background: #171019; color: #fdd1dd;
  padding: 4px 7px;
}
.match-label { background: #a20e37; color: #fff7f4; letter-spacing: .09em; transform: skewX(-8deg); }
.result-id h1 { font-size: clamp(35px, 10vw, 49px); line-height: 1.24; letter-spacing: -.075em; text-shadow: 2px 3px #901333; }
.result-caption { color: #f5acbf; font-size: 12px; letter-spacing: .14em; }
.result-body { padding: 0 24px max(22px, env(safe-area-inset-bottom)); }
.reading, .stats { margin-bottom: 18px; border: 1px solid #503142; background: linear-gradient(135deg, #271822, #1a131a); padding: 18px 16px; }
.reading h2, .stats h2 { color: #fff2f5; font-size: 21px; position: relative; padding-left: 12px; line-height: 1.25; }
.reading h2::before, .stats h2::before { content: ""; width: 4px; height: 82%; left: 0; top: 10%; background: var(--hot); position: absolute; transform: skewX(-10deg); }
.reading p { margin-top: 11px; color: #e2cfd7; font-size: 14px; line-height: 1.75; }
.reading-footer { display: grid; gap: 10px; border-top: 1px solid #583047; margin-top: 13px; padding-top: 10px; }
.reading .best-fit { color: #ffd3df; font-size: 12px; margin: 0; }
.best-fit span { color: #ff91a9; margin-right: 5px; }
.best-fit b { margin-left: 4px; font-family: var(--mono); }
#radar { display: block; width: min(100%, 330px); height: auto; margin: 2px auto -4px; }
.scores { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.scores li { display: grid; grid-template-columns: minmax(84px, auto) 1fr auto; gap: 9px; align-items: center; color: #fbd9e3; font-size: 13px; }
.scores li > span:first-child { font-weight: 750; }
.scores li > span small { display: block; font-size: 10px; color: #c3a5b4; font-weight: 400; }
.scores b { min-width: 60px; text-align: right; color: var(--soft); font: 750 16px var(--mono); }
.scores b small { color: #d4b4c2; font-size: 10px; }
.score-track { height: 5px; background: #532b40; }
.score-track i { width: var(--score); height: 100%; display: block; background: linear-gradient(90deg, #c51c4b, #ff7294); }
.result-actions { display: grid; gap: 8px; }
.button {
  min-height: 46px;
  display: flex; gap: 7px; justify-content: center; align-items: center;
  color: var(--paper);
  padding: 9px 10px;
  font: 750 14px var(--font);
  border: 1px solid transparent;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.button svg { width: 17px; height: 17px; }
.button svg:nth-of-type(2) { width: 13px; height: 13px; opacity: .85; }
[data-test-unlocked="true"] .mode-lock,
[data-test-unlocked="true"] .result-actions .button svg:nth-of-type(2) { display: none; }
.button.primary { background: #ce1741; border-color: #ff6282; }
.button.secondary { background: #361b2a; border-color: #9d516b; }
.button.ghost { background: #231620; border-color: #523448; color: #eed3de; }
.button:disabled { opacity: .66; }
dialog {
  max-height: calc(100svh - 26px);
  width: min(calc(100% - 36px), 370px);
  border: 1px solid #a44a68;
  border-top: 4px solid var(--hot);
  background: #21141f;
  color: var(--paper);
  padding: 20px;
  box-shadow: 0 14px 70px #060307ba;
}
dialog::backdrop { background: #0d070bba; backdrop-filter: blur(4px); }
.dialog-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #6c2341; transform: skewX(-8deg); margin-bottom: 9px; }
.dialog-icon svg { width: 20px; height: 20px; transform: skewX(8deg); }
dialog h2 { font-size: 24px; }
dialog p { font-size: 14px; color: #ecd1dc; margin: 8px 0 17px; line-height: 1.6; }
dialog .button { width: 100%; margin-top: 7px; }
.action-checks:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.action-checks { list-style: none; margin: -4px 0 14px; padding: 0; }
.action-checks li { padding: 7px 3px; text-align: center; font-size: 13px; color: #e9c7d5; border: 1px solid #553142; }
.action-checks li[data-done="true"] { color: #ffb7c9; background: #462131; border-color: #9b5069; }
.action-checks small { display: block; margin-top: 2px; font-size: 10px; }
dialog[data-kind="reading"] { width: min(calc(100% - 36px), 560px); padding: clamp(20px, 4vw, 32px); }
dialog[data-kind="reading"] h2 { font-size: clamp(20px, 4vw, 27px); outline: none; }
dialog .dialog-reading { margin: 14px 0 22px; color: #f1dce5; font-size: 15px; line-height: 1.85; }
.toast {
  position: fixed; z-index: 3;
  inset: auto auto max(18px, env(safe-area-inset-bottom)) 50%;
  transform: translate(-50%, 9px);
  max-width: min(calc(100% - 30px), 390px);
  width: max-content;
  pointer-events: none; opacity: 0;
  background: #391f2f; color: #fff5f7; border: 1px solid #9c4e69;
  padding: 9px 15px; font-size: 13px;
  box-shadow: 0 4px 24px #190b14b5;
  transition: opacity .15s ease, transform .15s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes art-in { from { opacity: 0; transform: translate(22px, 9px) scale(1.025); } }
@keyframes field-in { from { opacity: .34; transform: translateX(24px); } }
@keyframes spark { from { opacity: .57; transform: scale(.82); } to { opacity: 1; transform: scale(1.05); } }

@media (max-width: 500px) { .app { border-inline: 0; } }
@media (max-width: 355px) {
  .masthead, .home-controls, .quiz-inner, .result-body { padding-inline: 17px; }
  .hero-copy { left: 17px; }
  .mode { gap: 7px; }
  .mode-icon { width: 32px; height: 32px; }
}
@media (max-height: 680px) {
  .masthead { min-height: 46px; }
  .hero { min-height: max(262px, calc(100svh - 284px)); }
  .cast { min-height: 40px; margin-bottom: 8px; }
  .cast-portraits img { width: 27px; height: 27px; }
  .mode { min-height: 57px; }
  footer { margin-top: 9px; }
  .quiz-inner { padding-top: 16px; }
  .question-card { margin-top: 13px; }
}

@media (min-width: 880px) and (orientation: landscape) {
  .app { --desktop-pad: clamp(26px, 3.7vw, 65px); width: min(100%, 1600px); }
  .app[data-page="home"], .app[data-page="result"] {
    display: grid;
    grid-template-rows: auto 1fr;
  }
  .app[data-page="home"] { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .app[data-page="result"] { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); }
  .masthead { grid-column: 1 / -1; min-height: 58px; padding-inline: var(--desktop-pad); }
  .header-tools .fullscreen { display: inline-flex; padding-inline: 9px; }
  .brand { font-size: 15px; }

  .hero { min-height: 0; max-height: none; }
  .hero, .result-hero { border-right: 1px solid #784259; }
  .hero-orbit { width: 68%; }
  .hero-character {
    top: 3%; right: 4%;
    width: 80%; height: 107%;
    filter: drop-shadow(3px 0 #ffeded) drop-shadow(-2px 0 #ffeded) drop-shadow(0 3px #ffeded) drop-shadow(11px 13px #390a27a6);
  }
  .hero-copy { left: var(--desktop-pad); bottom: clamp(22px, 8svh, 90px); }
  .hero h1 span { font-size: clamp(27px, 3vw, 50px); padding-inline: 10px 15px; }
  .hero h1 strong { font-size: clamp(60px, 7vw, 112px); padding-inline: 10px 30px; }
  .hero-copy p { font-size: clamp(14px, 1.2vw, 19px); margin-top: 24px; }
  .home-controls {
    display: grid;
    align-content: center;
    padding: 26px var(--desktop-pad);
    background: radial-gradient(ellipse at 100% 0, #53142b6e, transparent 68%), var(--ink);
  }
  .desktop-mode-title { display: block; font-size: clamp(25px, 2.4vw, 38px); letter-spacing: -.05em; }
  .cast { min-height: 59px; font-size: 12px; margin-bottom: 18px; }
  .cast-portraits img { width: 35px; height: 35px; }
  .mode-select { gap: 12px; }
  .mode { min-height: clamp(65px, 10svh, 93px); padding-inline: 16px; }
  .mode-copy strong { font-size: clamp(20px, 2vw, 29px); }
  .mode-copy small { font-size: 12px; }
  .home-controls footer { margin-top: 22px; }

  .quiz-inner {
    width: 100%; margin-block: auto;
    display: grid; align-items: stretch;
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 52px);
    row-gap: 12px;
    padding: clamp(18px, 5svh, 57px) var(--desktop-pad);
  }
  .progress-meta, .progress, .quiz-nav { grid-column: 1 / -1; }
  .progress-meta { font-size: 15px; }
  .progress-meta b { font-size: clamp(29px, 4.7svh, 48px); }
  .progress { margin: 0 0 10px; }
  .question-card { min-height: 0; margin: 0; padding: 24px clamp(22px, 3vw, 47px); }
  .question-card h1 { font-size: clamp(26px, 3.1vw, 49px); }
  .question-number { font-size: clamp(92px, 15vw, 200px); }
  .answers { gap: 10px; }
  .answer { min-height: clamp(47px, 8.2svh, 79px); font-size: clamp(15px, 1.55vw, 24px); }
  .quiz-nav { margin: 0; font-size: 13px; }

  .result-hero { height: auto; min-height: 400px; }
  .result-character { top: 3%; right: 3%; width: 88%; height: 99%; }
  .result-id { padding: 0 var(--desktop-pad) clamp(24px, 7svh, 76px); }
  .fit b { font-size: clamp(64px, 7.5vw, 105px); }
  .result-id h1 { font-size: clamp(37px, 5.1vw, 78px); }
  .result-caption { font-size: 14px; }
  .result-body {
    min-width: 0;
    display: grid; align-content: center; gap: clamp(9px, 1.8svh, 20px);
    padding: clamp(14px, 3svh, 35px) clamp(18px, 3.1vw, 48px);
  }
  .reading, .stats { margin: 0; padding: clamp(13px, 2svh, 20px) clamp(12px, 1.6vw, 24px); }
  .reading p { margin-top: 8px; line-height: 1.65; }
  .reading-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 7px; }
  .reading-more { min-height: 34px; padding: 5px 9px; font-size: 12px; }
  .stats {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(8px, 1.35vw, 20px);
  }
  .stats h2 { grid-column: 1 / -1; }
  #radar { width: min(100%, 300px, 43svh); margin: 0 auto; }
  .scores { gap: clamp(6px, 1svh, 12px); }
  .scores li { grid-template-columns: max-content minmax(0, 1fr) auto; gap: 7px; }
  .scores li > span small { display: none; }
  .scores b { min-width: 0; white-space: nowrap; }
  .result-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); }
  .result-actions .button { gap: 5px; padding-inline: 4px; }
  .result-body footer { margin-top: 0; }
}

@media (min-width: 880px) and (orientation: landscape) and (max-height: 650px) {
  .masthead { min-height: 49px; }
  .result-body { padding-block: 12px; gap: 8px; }
  .reading, .stats { padding-block: 10px; }
  .reading h2, .stats h2 { font-size: 18px; }
  .reading p { font-size: 13px; line-height: 1.55; }
  .reading-footer { margin-top: 6px; padding-top: 6px; }
  .reading-more { min-height: 31px; }
  #radar { width: min(100%, 34svh); }
  .result-actions .button { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
