@import url("https://fonts.googleapis.com/css2?family=ADLaM+Display&display=swap");

:root {
  --font-system: "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Roboto",
    "Noto Sans", "Microsoft YaHei", sans-serif;
  --font-display: "ADLaM Display", var(--font-system);
  --paper: #fff7e3;
  --paper-soft: rgba(255, 247, 227, 0.74);
  --muted: rgba(255, 247, 227, 0.52);
  --line: rgba(255, 247, 227, 0.16);
  --glass: rgba(12, 10, 18, 0.42);
  --glass-strong: rgba(8, 7, 11, 0.68);
  --yellow: #ffd965;
  --purple: #8b63ff;
  --green: #55dc83;
  --danger: #ff5247;
  --shadow: rgba(0, 0, 0, 0.38);
  --result-accent: #ffd965;
  --result-accent-rgb: 255, 217, 101;
  --result-secondary: #8b63ff;
  --result-secondary-rgb: 139, 99, 255;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #050505;
}

body {
  --pointer-x: 18%;
  --pointer-y: 86%;
  --purple-x: 78%;
  --purple-y: 20%;
  color: var(--paper);
  font-family: var(--font-system);
  letter-spacing: 0;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-display);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
[data-action],
[data-answer],
[data-lang],
[data-jump-question] {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.ambient-bg {
  position: fixed;
  inset: -14%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 218, 108, 0.98) 0 9%, rgba(239, 157, 198, 0.58) 22%, transparent 52%),
    radial-gradient(circle at var(--purple-x) var(--purple-y), rgba(135, 94, 255, 0.74), transparent 46%),
    radial-gradient(circle at 54% 68%, rgba(233, 132, 216, 0.3), transparent 42%),
    #050505;
  filter: saturate(1.12) brightness(1.02);
  transform: translateZ(0) scale(1.04);
  animation: ambientFloat 8s ease-in-out infinite alternate;
}

.ambient-bg::before,
.ambient-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.pointer-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: clamp(260px, 28vw, 480px);
  aspect-ratio: 1;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.56;
  background: radial-gradient(circle, rgba(255, 226, 121, 0.34), rgba(239, 157, 198, 0.18) 34%, rgba(255, 222, 114, 0.08) 52%, rgba(255, 222, 114, 0) 72%);
  filter: none;
  mix-blend-mode: screen;
  transform: translate3d(18vw, 86vh, 0) translate3d(-50%, -50%, 0);
  contain: layout paint style;
  backface-visibility: hidden;
  will-change: transform;
}

.ambient-bg::before {
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 239, 151, 0.38), transparent 34%),
    radial-gradient(circle at 72% 22%, rgba(155, 122, 255, 0.34), transparent 36%);
  filter: blur(22px);
  opacity: 0.78;
  animation: ambientMist 6.5s ease-in-out infinite alternate;
}

.ambient-bg::after {
  background:
    linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 48% 78%, rgba(255, 198, 98, 0.2), transparent 38%);
  filter: blur(14px);
  opacity: 0.42;
  animation: ambientSheen 9s ease-in-out infinite alternate;
}

body.is-age-zone .ambient-bg {
  --pointer-x: 30%;
  --pointer-y: 76%;
  --purple-x: 72%;
  --purple-y: 40%;
}

body.is-quiz-screen .ambient-bg,
body.is-quiz-warmup .ambient-bg {
  filter: saturate(1.16) brightness(1.03);
}

body.is-result-screen .ambient-bg {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(var(--result-accent-rgb), 0.76) 0 10%, rgba(var(--result-accent-rgb), 0.3) 24%, transparent 54%),
    radial-gradient(circle at var(--purple-x) var(--purple-y), rgba(var(--result-secondary-rgb), 0.58), transparent 48%),
    radial-gradient(circle at 50% 72%, rgba(255, 247, 227, 0.1), transparent 46%),
    #050505;
  filter: saturate(1.16) brightness(0.98);
}

@keyframes ambientFloat {
  from {
    transform: translate3d(-1.2%, 0, 0) scale(1.04);
  }
  to {
    transform: translate3d(1.4%, -1.2%, 0) scale(1.075);
  }
}

@keyframes ambientMist {
  from {
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -1%, 0) scale(1.08);
  }
}

@keyframes ambientSheen {
  from {
    transform: translate3d(-5%, 2%, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(5%, -2%, 0) rotate(1deg);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen.is-active {
  display: flex;
}

.home-screen.is-active {
  display: block;
}

.home-flow {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.home-flow::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.diffuse-field {
  position: fixed;
  inset: -8%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.48;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 219, 107, 0.32), transparent 46%),
    radial-gradient(circle at var(--purple-x) var(--purple-y), rgba(130, 95, 245, 0.22), transparent 42%);
  filter: saturate(1.08);
}

.diffuse-layer {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.72;
}

.diffuse-layer-a {
  left: 4%;
  bottom: 4%;
  width: 44vw;
  height: 44vw;
  background: rgba(255, 218, 108, 0.32);
}

.diffuse-layer-b {
  right: 4%;
  top: 8%;
  width: 36vw;
  height: 36vw;
  background: rgba(139, 99, 255, 0.24);
}

.diffuse-layer-c {
  left: 34%;
  top: 48%;
  width: 28vw;
  height: 28vw;
  background: rgba(232, 132, 216, 0.18);
}

.cover-page,
.age-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
}

.cover-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 42vw);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 64px);
  padding: clamp(24px, 4.2vw, 56px);
}

.cover-top {
  grid-column: 1 / -1;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
}

.notice-button,
.language-trigger,
.icon-button,
.secondary-button,
.primary-button {
  border: 0;
  cursor: pointer;
}

.notice-button,
.language-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  height: 36px;
  min-height: 36px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.notice-button {
  padding: 0 15px;
}

.language-picker {
  position: relative;
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  font-size: 0;
  line-height: 0;
}

.language-trigger {
  padding: 0 25px 0 13px;
}

.language-trigger span {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.language-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.84);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.84);
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
}

#languageSelect {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  width: max-content;
  min-width: 156px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(12, 10, 18, 0.74);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
}

.language-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 250, 232, 0.88);
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button.is-selected {
  background: rgba(255, 216, 99, 0.16);
  color: #fff4cf;
}

.cover-title {
  align-self: center;
  max-width: 720px;
}

.cover-title h1 {
  margin: 0;
  font-size: clamp(72px, 12vw, 176px);
  line-height: 0.82;
  letter-spacing: 0.08em;
}

.cover-title h1 span:first-child {
  display: block;
  font-family: var(--font-display);
  color: #fff4cf;
}

.cover-title h1 span:last-child {
  display: block;
  margin-top: clamp(14px, 2vw, 26px);
  font-family: var(--font-system);
  font-size: clamp(28px, 4.2vw, 64px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  color: rgba(255, 250, 232, 0.9);
}

html[lang="en"] .cover-title h1 span:last-child {
  font-family: var(--font-display);
}

.cover-title p {
  max-width: 620px;
  margin: clamp(20px, 3.2vw, 42px) 0 0;
  color: rgba(255, 250, 232, 0.72);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 760;
  line-height: 1.38;
  white-space: pre-line;
}

.landscape-icon-wrap {
  align-self: center;
  justify-self: center;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 26%;
  background:
    radial-gradient(circle at 70% 72%, rgba(255, 216, 99, 0.18), transparent 46%),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 34px 120px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.landscape-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.cover-cue {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: center;
  display: grid;
  gap: 8px;
  place-items: center;
  color: rgba(255, 250, 232, 0.58);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.cover-cue i {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 250, 232, 0.08), rgba(255, 250, 232, 0.74));
  animation: cuePulse 1.4s ease-in-out infinite;
}

@keyframes cuePulse {
  50% {
    opacity: 0.38;
    transform: translateY(6px);
  }
}

.age-page {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  padding: clamp(24px, 5vw, 72px);
}

.age-panel {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(22px, 3.2vw, 40px);
  border: 1px solid rgba(255, 247, 227, 0.13);
  border-radius: 8px;
  background: rgba(8, 7, 11, 0.24);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
}

.age-kicker,
.kicker,
.progress-meta,
.question-index,
.type-score small {
  margin: 0;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.age-panel h2 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
}

.age-copy,
.age-consent,
.form-message {
  color: var(--paper-soft);
  font-size: 15px;
  line-height: 1.55;
}

.dob-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  margin: 24px 0 12px;
}

.dob-grid label {
  display: grid;
  gap: 8px;
  color: rgba(255, 247, 227, 0.68);
  font-size: 12px;
  font-weight: 850;
}

.dob-grid input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid rgba(255, 247, 227, 0.18);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.09);
  color: #fff8e6;
  padding: 0 14px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: 0;
  caret-color: var(--yellow);
}

.dob-grid input:focus {
  border-color: rgba(255, 217, 101, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 217, 101, 0.12);
}

.form-message[data-state="error"] {
  color: #ffd1cc;
}

.age-visual {
  position: relative;
  min-height: min(58vh, 520px);
  display: grid;
  place-items: center;
  opacity: 1;
  transform: translateZ(0) scale(1);
  transition:
    opacity 520ms ease,
    transform 640ms cubic-bezier(0.2, 0.74, 0.2, 1);
  will-change: opacity, transform;
}

.age-sigil {
  position: relative;
  width: min(38vw, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 227, 0.14);
  border-radius: 30%;
  background:
    radial-gradient(circle at 72% 72%, rgba(255, 217, 101, 0.26), transparent 42%),
    radial-gradient(circle at 18% 18%, rgba(139, 99, 255, 0.3), transparent 44%),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 34px 110px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.age-sigil::before,
.age-sigil::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 247, 227, 0.16);
  border-radius: 31%;
  pointer-events: none;
}

.age-sigil::after {
  inset: 20%;
  border-radius: 999px;
  opacity: 0.78;
}

.sigil-ribbon,
.sigil-glow {
  position: absolute;
  display: block;
  pointer-events: none;
}

.sigil-ribbon {
  width: 78%;
  height: 22%;
  border: 1px solid rgba(255, 247, 227, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(139, 99, 255, 0.18), rgba(255, 217, 101, 0.36)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.12),
    0 0 34px rgba(255, 217, 101, 0.1);
  filter: saturate(1.18);
}

.sigil-ribbon-a {
  transform: rotate(32deg) translateY(-8%);
}

.sigil-ribbon-b {
  transform: rotate(-35deg) translateY(10%);
}

.sigil-ribbon-c {
  width: 58%;
  height: 13%;
  opacity: 0.62;
  transform: rotate(90deg);
}

.sigil-glow {
  width: 36%;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.72;
}

.sigil-glow-a {
  right: 10%;
  bottom: 12%;
  background: rgba(255, 217, 101, 0.3);
}

.sigil-glow-b {
  left: 8%;
  top: 12%;
  background: rgba(139, 99, 255, 0.3);
}

.age-sigil strong {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 104px);
  letter-spacing: 0.02em;
  color: rgba(255, 248, 230, 0.98);
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.age-sigil em {
  position: absolute;
  z-index: 2;
  right: 18%;
  bottom: 22%;
  color: var(--yellow);
  font-size: clamp(12px, 1.2vw, 16px);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.age-steps {
  position: absolute;
  inset: auto 8% 8% auto;
  display: flex;
  gap: 8px;
}

.age-steps i {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 247, 227, 0.2);
}

.age-steps i:first-child {
  background: var(--yellow);
}

.home-screen.is-age-failed .age-panel {
  animation: ageShake 520ms ease;
}

body.is-age-failed .ambient-bg {
  filter: hue-rotate(120deg) saturate(1.5) brightness(0.9);
}

.age-panel.is-shattering input {
  animation: inputBreak 680ms ease both;
}

.age-panel.is-success-cleared {
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.74, 0.2, 1);
  will-change: opacity, transform;
}

body.is-age-success .age-visual {
  opacity: 0;
  transform: translate3d(4%, 0, 0) scale(0.96);
}

.home-screen.is-quiz-bridge .home-flow {
  opacity: 0;
  transition: opacity 320ms ease;
}

@keyframes ageShake {
  20% {
    transform: translateX(-12px);
  }
  45% {
    transform: translateX(10px);
  }
  68% {
    transform: translateX(-6px);
  }
}

@keyframes inputBreak {
  45% {
    color: transparent;
    text-shadow:
      -12px -8px 0 rgba(255, 247, 227, 0.62),
      9px 7px 0 rgba(255, 247, 227, 0.38);
  }
  to {
    color: transparent;
    text-shadow: none;
  }
}

.quiz-screen,
.result-screen {
  flex-direction: column;
  width: min(100%, 1100px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 28px);
  overflow: hidden;
}

.quiz-header,
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 920px);
  margin: 0 auto clamp(10px, 1.6vw, 18px);
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid rgba(255, 247, 227, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 247, 227, 0.92);
  font-size: 0;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.icon-button[data-action="back-home"]::before,
.icon-button[data-action="back-home"]::after,
.notice-close::before,
.notice-close::after,
.share-close::before,
.share-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.icon-button[data-action="back-home"]::before,
.notice-close::before,
.share-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.icon-button[data-action="back-home"]::after,
.notice-close::after,
.share-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.icon-button[data-action="restart"] {
  font-size: 22px;
  font-weight: 900;
}

.progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(255, 247, 227, 0.62);
}

.progress-track,
.rank-bar,
.factor-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 247, 227, 0.12);
}

.progress-track span,
.rank-bar span,
.factor-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #e88ad8, var(--purple));
  transition: width 420ms ease;
}

.quiz-layout {
  flex: 1 1 auto;
  width: min(100%, 920px);
  min-height: 0;
  margin: 0 auto;
}

.question-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(8px, 1.2vw, 12px);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.question-stack.has-history {
  grid-template-rows: minmax(40px, auto) minmax(0, 1fr);
}

.question-history-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 247, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.22);
  color: rgba(255, 247, 227, 0.48);
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.question-history-title strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 247, 227, 0.48);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-history-title span,
.question-history-title em {
  color: rgba(255, 247, 227, 0.44);
  font-style: normal;
  white-space: nowrap;
}

.question-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 2vw, 24px);
  height: 100%;
  min-height: 0;
  padding: clamp(20px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 247, 227, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(6, 6, 6, 0.36);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(26px) saturate(1.12);
  -webkit-backdrop-filter: blur(26px) saturate(1.12);
  animation: questionEnter 420ms cubic-bezier(0.18, 0.86, 0.22, 1) both;
  will-change: transform, opacity;
}

.question-card-head {
  margin: 0;
}

.question-index {
  margin: 0;
  color: rgba(248, 215, 121, 0.96);
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.question-card h2 {
  align-self: center;
  max-width: 960px;
  margin: 0;
  color: rgba(255, 250, 232, 0.96);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.18;
  transition:
    color 320ms ease,
    opacity 320ms ease,
    transform 360ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.answer-grid {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(8px, 1.05vw, 12px);
  transition:
    opacity 280ms ease,
    transform 340ms cubic-bezier(0.18, 0.86, 0.22, 1);
}

.answer-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: clamp(52px, 7vh, 66px);
  min-height: clamp(52px, 7dvh, 66px);
  padding: 9px 14px;
  border: 1px solid rgba(255, 247, 227, 0.16);
  border-radius: 8px;
  background: rgba(9, 9, 9, 0.38);
  color: rgba(255, 250, 232, 0.92);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  transition:
    opacity 180ms ease,
    transform 70ms cubic-bezier(0.2, 0.82, 0.2, 1),
    border-color 80ms linear,
    background 80ms linear;
}

.answer-button:hover,
.answer-button.is-selected {
  border-color: rgba(255, 217, 101, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

.answer-button:active,
.answer-button.is-pressed {
  transform: translateZ(0) scale(0.985);
  border-color: rgba(255, 217, 101, 0.78);
  background: rgba(255, 255, 255, 0.16);
}

.answer-button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 247, 227, 0.12);
  color: var(--yellow);
  font-weight: 950;
}

.answer-button:disabled {
  cursor: default;
}

.answer-button.is-muted-choice {
  opacity: 0.28;
  transition-duration: 120ms;
}

.completion-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  animation: completionEnter 360ms cubic-bezier(0.18, 0.86, 0.22, 1) both;
}

.finish-button {
  position: relative;
  z-index: 3;
  min-width: min(100%, 220px);
  border: 0;
  background: linear-gradient(135deg, rgba(255, 217, 101, 0.96), rgba(143, 99, 255, 0.78));
  color: #09080d;
  box-shadow: 0 18px 48px rgba(255, 217, 101, 0.18);
  pointer-events: auto;
}

.question-card.is-exiting {
  pointer-events: none;
}

.question-card.is-exiting h2 {
  color: rgba(255, 247, 227, 0.48);
  opacity: 0.72;
  transform: translateY(-18px) scale(0.9);
  transform-origin: left top;
}

.question-card.is-exiting .answer-grid {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
}

.question-card.is-exiting .question-index {
  opacity: 0.56;
}

@keyframes questionEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.994);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes completionEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.splash-layer,
.route-veil {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}

.juice-splash {
  position: fixed;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  opacity: 0.82;
  transform: translate3d(-50%, -50%, 0) scale(0.24);
  will-change: transform, opacity;
  animation: juiceSplash 640ms cubic-bezier(0.12, 0.78, 0.18, 1) forwards;
}

.juice-splash.is-purple {
  background: radial-gradient(circle, rgba(175, 120, 255, 0.96), rgba(124, 75, 255, 0));
}

.juice-splash.is-green {
  background: radial-gradient(circle, rgba(85, 220, 131, 0.96), rgba(85, 220, 131, 0));
}

.juice-splash.is-large {
  width: 58px;
  height: 58px;
}

@keyframes juiceSplash {
  to {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(4.2);
  }
}

.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateZ(0) scale(0.72);
  will-change: opacity, transform;
}

.success-overlay svg {
  width: clamp(136px, 16vw, 200px);
  height: clamp(136px, 16vw, 200px);
  overflow: visible;
}

.success-overlay circle {
  fill: rgba(72, 211, 109, 0.92);
  stroke: rgba(255, 247, 227, 0.95);
  stroke-width: 3;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
}

.success-overlay path {
  fill: none;
  stroke: #f7f2df;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
}

.success-overlay.is-active {
  opacity: 1;
  transform: translateZ(0) scale(1);
  transition:
    opacity 180ms ease,
    transform 460ms cubic-bezier(0.16, 0.76, 0.18, 1);
}

.success-overlay.is-active circle {
  animation: successCircle 560ms ease-out forwards;
}

.success-overlay.is-active path {
  animation: successCheck 560ms 180ms cubic-bezier(0.16, 0.76, 0.18, 1) forwards;
}

.success-overlay.is-fading {
  opacity: 0;
  transform: translateZ(0) scale(1.12);
  transition:
    opacity 300ms ease,
    transform 360ms ease;
}

.runtime-warning {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 24% 80%, rgba(255, 217, 101, 0.22), transparent 38%),
    radial-gradient(circle at 82% 20%, rgba(139, 99, 255, 0.24), transparent 38%),
    rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.runtime-warning section {
  width: min(92vw, 620px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 247, 227, 0.16);
  border-radius: 8px;
  background: rgba(10, 9, 14, 0.82);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
}

.runtime-warning strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.runtime-warning p {
  margin: 14px 0 0;
  color: var(--paper-soft);
  font-size: 15px;
  line-height: 1.7;
}

@keyframes successCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes successCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.result-screen {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
}

.result-header {
  align-items: flex-start;
  width: min(100%, 1080px);
}

.result-header h1 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(82px, 15vw, 178px);
  line-height: 0.78;
  letter-spacing: 0.08em;
  color: var(--result-accent);
  text-shadow: 0 0 34px rgba(var(--result-accent-rgb), 0.18);
}

.result-header #primaryTypeName {
  margin: 16px 0 0;
  color: rgba(255, 247, 227, 0.82);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 850;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: 14px;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.result-hero,
.result-section,
.match-preview,
.confidence-box,
.share-card {
  border: 1px solid rgba(255, 247, 227, 0.14);
  border-radius: 8px;
  background: rgba(6, 6, 6, 0.34);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
}

.result-hero,
.result-section,
.match-preview {
  padding: clamp(18px, 2.4vw, 30px);
}

.result-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
  min-height: 360px;
  border-color: rgba(var(--result-accent-rgb), 0.26);
  background:
    radial-gradient(circle at 22% 18%, rgba(var(--result-accent-rgb), 0.22), transparent 34%),
    rgba(6, 6, 6, 0.32);
}

.persona-frame {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--result-accent-rgb), 0.28), transparent 56%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--result-accent-rgb), 0.22);
}

.persona-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(var(--result-accent-rgb), 0.16);
  pointer-events: none;
}

.persona-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(10px, 2vw, 18px);
  display: block;
}

.result-copy {
  display: grid;
  gap: 12px;
  font-family: var(--font-system);
}

.result-persona-name {
  margin: 0;
  color: var(--result-accent);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 950;
}

.result-type-line {
  margin: 0;
  color: rgba(255, 247, 227, 0.88);
  font-family: var(--font-system);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.58;
}

.result-copy h3 {
  margin: 8px 0 0;
  color: rgba(var(--result-accent-rgb), 0.92);
}

.confidence-box span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.82;
  color: var(--result-accent);
}

.result-hero p,
.result-copy p,
.rank-summary,
.factor-summary,
.match-preview p,
.share-card p {
  color: var(--paper-soft);
  line-height: 1.55;
}

.result-section h3,
.match-preview h3 {
  margin: 0 0 14px;
  color: rgba(255, 247, 227, 0.92);
}

.axis-list {
  display: grid;
  gap: 12px;
}

.axis-item {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 247, 227, 0.09);
}

.axis-item:first-child {
  border-top: 0;
}

.axis-head,
.axis-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.axis-head strong {
  color: var(--result-accent);
}

.axis-meta {
  color: rgba(255, 247, 227, 0.56);
  font-size: 0.78rem;
  font-weight: 850;
}

.axis-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 247, 227, 0.09);
}

.axis-bar span,
.axis-bar i {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: inherit;
}

.axis-bar span {
  left: 0;
  background: linear-gradient(90deg, rgba(var(--result-accent-rgb), 0.42), var(--result-accent));
}

.axis-bar i {
  right: 0;
  background: linear-gradient(270deg, rgba(var(--result-secondary-rgb), 0.72), rgba(var(--result-secondary-rgb), 0.2));
}

.axis-item.is-swing .axis-head::after {
  content: "摇摆";
  align-self: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--result-accent-rgb), 0.16);
  color: var(--result-accent);
  font-size: 0.72rem;
}

.game-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 247, 227, 0.09);
  color: var(--paper-soft);
  line-height: 1.5;
}

.game-list li:first-child {
  border-top: 0;
}

.rank-item,
.factor-item {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 247, 227, 0.09);
}

.rank-item:first-child,
.factor-item:first-child {
  border-top: 0;
}

.rank-head,
.factor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.52fr);
  gap: 12px;
}

.radar-wrap svg {
  display: block;
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
}

.confidence-box {
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
}

.match-preview,
.result-actions {
  width: min(100%, 1080px);
  margin: 14px auto 0;
}

.match-detail {
  display: grid;
  gap: 14px;
}

.compat-intro {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 247, 227, 0.74);
  font-weight: 750;
}

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

.compat-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(var(--result-accent-rgb), 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.compat-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
}

.compat-head span {
  color: var(--result-accent);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.compat-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.compat-head em {
  color: rgba(255, 247, 227, 0.58);
  font-style: normal;
  font-weight: 900;
}

.compat-card p,
.compat-care li,
.compat-card li {
  color: var(--paper-soft);
  line-height: 1.5;
}

.compat-card p {
  margin: 0;
}

.compat-card ul,
.compat-care ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.1em;
}

.compat-care {
  padding: 14px;
  border-radius: 8px;
  background: rgba(var(--result-accent-rgb), 0.08);
}

.compat-care strong {
  display: block;
  margin-bottom: 8px;
  color: var(--result-accent);
}

.result-actions,
.return-actions,
.share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.secondary-button,
.primary-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
}

.secondary-button {
  border: 1px solid rgba(255, 247, 227, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 247, 227, 0.9);
}

.primary-button {
  background: var(--yellow);
  color: #17110a;
}

.compact {
  min-height: 40px;
  padding-inline: 16px;
}

.notice-modal,
.return-modal,
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.notice-backdrop,
.return-backdrop,
.share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.notice-sheet,
.return-sheet,
.share-sheet {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  overflow: auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255, 247, 227, 0.16);
  border-radius: 8px;
  background: rgba(10, 9, 14, 0.78);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(28px) saturate(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
}

.notice-sheet h2,
.return-sheet h2 {
  margin: 10px 56px 16px 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
}

.notice-sheet p,
.return-sheet p {
  color: var(--paper-soft);
  font-size: 16px;
  line-height: 1.72;
}

.notice-close,
.share-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.return-sheet {
  width: min(92vw, 480px);
}

.return-actions .primary-button,
.return-actions .secondary-button {
  justify-content: center;
  text-align: center;
}

.share-sheet {
  width: min(94vw, 1120px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: visible;
  padding: clamp(14px, 2.2vw, 26px);
}

.share-card {
  --card-accent: var(--result-accent);
  --card-accent-rgb: var(--result-accent-rgb);
  --card-secondary: var(--result-secondary);
  --card-secondary-rgb: var(--result-secondary-rgb);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  align-items: stretch;
  gap: clamp(14px, 2vw, 24px);
  min-height: min(58vh, 520px);
  padding: clamp(18px, 2.5vw, 28px);
  border-color: rgba(var(--card-accent-rgb), 0.24);
  background:
    radial-gradient(circle at 20% 12%, rgba(var(--card-accent-rgb), 0.24), transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(var(--card-secondary-rgb), 0.16), transparent 42%),
    rgba(6, 6, 6, 0.34);
}

.result-card-copy {
  display: grid;
  align-content: center;
  gap: clamp(8px, 1.3vw, 14px);
  min-width: 0;
}

.share-card .kicker {
  margin: 0;
}

.result-card-title {
  margin: 0;
  color: var(--card-accent);
  font-family: var(--font-display);
  font-size: clamp(76px, 9vw, 132px);
  line-height: 0.78;
  letter-spacing: 0.08em;
}

.result-card-type {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.result-card-type span {
  color: var(--card-accent);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 0.9;
}

.result-card-type strong {
  color: rgba(255, 247, 227, 0.94);
  font-size: clamp(22px, 2.4vw, 32px);
}

.result-card-figure {
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: min(54vh, 500px);
  aspect-ratio: 0.9;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--card-accent-rgb), 0.16), transparent 64%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 54px rgba(var(--card-accent-rgb), 0.12);
}

.result-card-figure img {
  width: auto;
  height: calc(100% - 12px);
  max-width: calc(100% - 20px);
  max-height: min(54vh, 500px);
  object-fit: contain;
}

.share-score span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.8vw, 76px);
  color: var(--card-accent);
  line-height: 0.9;
}

.share-score small {
  margin-left: 10px;
  color: rgba(255, 247, 227, 0.58);
  font-weight: 850;
}

.share-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(var(--card-accent-rgb), 0.14);
  color: rgba(255, 247, 227, 0.86);
  font-size: 12px;
  font-weight: 850;
}

#shareSummary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 247, 227, 0.88);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.result-card-games {
  display: grid;
  gap: 6px;
}

.result-card-games h4 {
  margin: 0;
  color: var(--card-accent);
}

.result-card-games ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 1.1em;
  color: var(--paper-soft);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.38;
}

.result-card-games li {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.share-options {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.share-options .primary-button,
.share-options .secondary-button {
  min-height: 42px;
  justify-content: center;
  padding: 0 18px;
}

@media (orientation: portrait), (max-width: 759px) {
  .share-modal {
    padding: 10px;
  }

  .share-sheet {
    width: min(94vw, 430px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 12px;
  }

  .share-close {
    top: 10px;
    right: 10px;
  }

  .share-card {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 14px;
  }

  .result-card-copy {
    display: contents;
  }

  .share-card .kicker {
    order: 1;
  }

  .result-card-title {
    order: 2;
  }

  .result-card-type {
    order: 3;
  }

  .share-score {
    order: 4;
  }

  .result-card-figure {
    order: 5;
  }

  .share-tags {
    order: 6;
  }

  #shareSummary {
    order: 7;
  }

  .result-card-games {
    order: 8;
  }

  .result-card-title {
    font-size: clamp(52px, 15vw, 66px);
    letter-spacing: 0.06em;
  }

  .result-card-type span {
    font-size: clamp(27px, 8vw, 36px);
  }

  .result-card-type strong {
    font-size: clamp(18px, 5vw, 23px);
  }

  .share-score span {
    font-size: clamp(36px, 10vw, 46px);
  }

  .share-tags {
    gap: 6px;
  }

  .share-tags span {
    padding: 6px 8px;
    font-size: 11px;
  }

  #shareSummary {
    font-size: 13px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  .result-card-games {
    gap: 4px;
  }

  .result-card-games h4,
  .result-card-games ul {
    font-size: 12px;
  }

  .result-card-figure {
    justify-self: center;
    width: min(58vw, 220px);
    height: min(34vh, 220px);
    max-height: 220px;
    min-height: 0;
    aspect-ratio: 1;
  }

  .result-card-figure img {
    height: auto;
    max-height: min(28vh, 200px);
  }

  .share-options {
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 8px;
  }

  .share-options .primary-button,
  .share-options .secondary-button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .cover-page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 22px;
  }

  .cover-top {
    min-height: 34px;
    gap: 8px;
  }

  .notice-button,
  .language-trigger {
    height: 34px;
    min-height: 34px;
    font-size: 12px;
  }

  .notice-button {
    padding: 0 13px;
  }

  .language-trigger {
    padding: 0 23px 0 12px;
  }

  .language-menu {
    right: 0;
    min-width: 148px;
    border-radius: 16px;
  }

  .cover-title {
    align-self: center;
  }

  .cover-title h1 {
    font-size: clamp(70px, 22vw, 118px);
  }

  .cover-title h1 span:last-child {
    font-size: clamp(24px, 8vw, 40px);
  }

  .cover-title p {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  .landscape-icon-wrap {
    display: none;
  }

  .age-page {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 22px;
  }

  .age-panel {
    padding: 22px;
  }

  .age-visual {
    display: none;
  }

  .dob-grid {
    grid-template-columns: 1.28fr 1fr 1fr;
    gap: 8px;
  }

  .dob-grid input {
    height: 52px;
    padding-inline: 10px;
    font-size: clamp(18px, 6vw, 24px);
  }

  .quiz-screen,
  .result-screen {
    width: 100%;
    padding: 10px;
  }

  .quiz-header {
    margin-bottom: 8px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .question-stack.has-history {
    grid-template-rows: minmax(40px, auto) minmax(0, 1fr);
  }

  .question-history-title {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 40px;
    gap: 8px;
    padding: 7px 9px;
  }

  .question-history-title em {
    display: none;
  }

  .question-card {
    gap: 14px;
    padding: 16px;
  }

  .question-index {
    font-size: clamp(2.25rem, 10.5vw, 3.1rem);
    line-height: 0.96;
  }

  .question-card h2 {
    font-size: clamp(1.24rem, 5.1vw, 1.68rem);
    line-height: 1.2;
  }

  .answer-grid {
    gap: 8px;
  }

  .answer-button {
    min-height: clamp(50px, 7.2vh, 58px);
    min-height: clamp(50px, 7.2dvh, 58px);
    padding: 8px 12px;
  }

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

  .result-header h1 {
    font-size: clamp(4.6rem, 24vw, 7.4rem);
  }

  .result-hero {
    grid-template-columns: 1fr;
    min-height: 220px;
  }

  .persona-frame {
    width: min(100%, 330px);
    justify-self: center;
  }

  .split-section {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .split-section > div {
    width: 100%;
  }

  .radar-wrap {
    display: grid;
    place-items: center;
  }

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

  .compat-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .compat-head em {
    grid-column: 1 / -1;
  }

  .notice-sheet,
  .return-sheet,
  .share-sheet {
    padding: 30px 18px 22px;
  }
}

@media (orientation: landscape) and (min-width: 760px) {
  .quiz-screen,
  .result-screen {
    padding-block: clamp(16px, 2vw, 28px);
  }

  .answer-button {
    min-height: clamp(54px, 7.4vh, 68px);
    min-height: clamp(54px, 7.4dvh, 68px);
  }
}

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