:root {
  --cream: #F5F3FA;
  --cream-deep: #ECE7F5;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-solid: #FFFFFF;
  --wine: #211A2E;
  --wine-soft: #574B6B;
  --muted: #746A87;
  --coral: #B01E6B;
  --coral-hot: #C82B7D;
  --coral-pale: #EFE6FB;
  --violet: #7A2BE0;
  --line: rgba(122, 43, 224, 0.14);
  --glass-line: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(122, 43, 224, 0.16);
  --soft-shadow: 0 16px 44px rgba(122, 43, 224, 0.11);
  --ease-spring: cubic-bezier(.2, 1.45, .36, 1);
  color-scheme: light;
  font-family: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--wine);
  background:
    radial-gradient(circle at 18% 16%, rgba(122, 43, 224, .18), transparent 27rem),
    radial-gradient(circle at 82% 22%, rgba(176, 30, 107, .12), transparent 25rem),
    linear-gradient(180deg, #F5F3FA 0%, var(--cream) 54%, #ECE7F5 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(240, 64, 90, .34);
  outline-offset: 4px;
}

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

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  opacity: .48;
  filter: blur(1px);
  animation: ambientFloat 12s ease-in-out infinite;
}
.orb-a { width: 9px; height: 9px; top: 16%; left: 8%; background: #ff8f9b; box-shadow: 0 0 22px #ff8f9b; }
.orb-b { width: 6px; height: 6px; top: 38%; right: 10%; background: #9e79c7; box-shadow: 0 0 18px #9e79c7; animation-delay: -4s; }
.orb-c { width: 12px; height: 12px; bottom: 18%; left: 14%; background: #ffc4a3; box-shadow: 0 0 26px #ffc4a3; animation-delay: -8s; }

.game-header {
  width: min(1120px, calc(100% - 40px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand img { border-radius: 9px; }
.brand-dot { color: var(--coral); }
.header-tools { display: flex; align-items: center; gap: 9px; }
.games-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.52); color: var(--wine-soft); font-size: 11px; box-shadow: inset 0 1px 0 white; }
.sound-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 8px 22px rgba(92, 42, 30, .07);
  cursor: pointer;
  overflow: hidden;
}
.sound-toggle span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .25s ease, opacity .25s ease; }
.sound-toggle .sound-off { opacity: 0; transform: scale(.5); }
.sound-toggle[aria-pressed="true"] .sound-on { opacity: 0; transform: scale(.5); }
.sound-toggle[aria-pressed="true"] .sound-off { opacity: 1; transform: scale(1); }

main { min-height: calc(100vh - 148px); }
.view { display: none; width: 100%; }
.view.is-active { display: block; animation: viewIn .56s var(--ease-spring) both; }

.intro-view {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 54px;
  text-align: center;
}
.intro-copy { position: relative; z-index: 2; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid rgba(240, 64, 90, .17);
  border-radius: 99px;
  color: #a3424f;
  background: rgba(255, 255, 255, .53);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.intro-copy h1 {
  margin: 18px 0 12px;
  font-family: Georgia, "Times New Roman", "Noto Serif Thai", serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 700;
  background: linear-gradient(135deg, #542013 0%, #8b281d 55%, #71345f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-lead { margin: 0 auto; max-width: 600px; color: var(--wine-soft); font-size: clamp(14px, 2vw, 17px); }

.heart-stage {
  width: min(450px, 92vw);
  aspect-ratio: 1;
  margin: -20px auto -34px;
  position: relative;
  isolation: isolate;
}
.heart-stage::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: 11%;
  height: 9%;
  border-radius: 50%;
  background: rgba(154, 58, 26, .18);
  filter: blur(18px);
  z-index: -2;
  animation: shadowBreathe 4.8s ease-in-out infinite;
}
.heart-stage picture, .heart-stage img { width: 100%; height: 100%; }
.heart-stage picture { display: block; animation: heartFloat 5.2s ease-in-out infinite; filter: drop-shadow(0 28px 30px rgba(150, 57, 62, .12)); }
.heart-stage img { object-fit: contain; mix-blend-mode: multiply; }
.orbit {
  position: absolute;
  left: 9%; right: 9%; top: 43%;
  height: 24%;
  border: 1px solid rgba(240, 64, 90, .24);
  border-radius: 50%;
  transform: rotate(-12deg);
  animation: orbitSpin 9s linear infinite;
}
.orbit::after { content: ""; position: absolute; width: 8px; height: 8px; left: 8%; top: 23%; border-radius: 50%; background: #ff8291; box-shadow: 0 0 16px #ff8291; }
.orbit-two { transform: rotate(24deg); border-color: rgba(143, 105, 189, .2); animation-direction: reverse; animation-duration: 12s; }
.orbit-two::after { left: auto; right: 4%; top: 62%; background: #9c79c4; box-shadow: 0 0 14px #9c79c4; }
.spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: white; box-shadow: 0 0 13px #ff97a4; animation: twinkle 2.8s ease-in-out infinite; }
.spark-one { left: 20%; top: 27%; }
.spark-two { right: 18%; top: 37%; animation-delay: -.8s; }
.spark-three { right: 30%; bottom: 17%; animation-delay: -1.7s; }

.intro-actions { position: relative; z-index: 3; width: min(390px, 100%); margin: 0 auto; }
.primary-action, .secondary-action {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  min-height: 58px;
  padding: 15px 26px;
  font-weight: 600;
  transition: transform .2s var(--ease-spring), box-shadow .2s ease, opacity .2s ease;
}
.primary-action {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, #ff5c68 0%, #f03c5b 62%, #d9385e 100%);
  box-shadow: 0 16px 35px rgba(240, 64, 90, .29), inset 0 1px 0 rgba(255, 255, 255, .42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 17px;
  position: relative;
  overflow: hidden;
}
.primary-action::after {
  content: "";
  position: absolute;
  top: -30%; bottom: -30%; width: 70px;
  left: -100px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  animation: buttonShine 4.8s ease-in-out infinite 1.5s;
}
.primary-action:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 21px 40px rgba(240, 64, 90, .34); }
.primary-action:active, .secondary-action:active { transform: scale(.97); }
.time-note { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px auto 0;
  color: var(--wine-soft);
  font-size: 12px;
}
.trust-row i { width: 3px; height: 3px; border-radius: 50%; background: var(--coral); opacity: .6; }
.seo-intro {
  max-width: 760px;
  margin: 70px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .42);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.seo-intro h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.35; }
.seo-intro p { margin: 8px 0; color: var(--wine-soft); font-size: 14px; }

.quiz-view { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 14px 0 70px; }
.quiz-shell { position: relative; }
.quiz-topline { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 14px; }
.question-count { text-align: center; font-size: 14px; font-weight: 500; color: var(--wine-soft); }
.icon-button {
  width: 42px; height: 42px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .54);
  cursor: pointer;
  font-size: 20px;
}
.icon-button:disabled { opacity: .35; cursor: default; }
.progress-track {
  position: relative;
  width: calc(100% - 116px);
  height: 4px;
  margin: 22px auto 0;
  border-radius: 99px;
  background: rgba(92, 42, 30, .1);
}
.progress-track > span { display: block; width: 5.55%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8b91, var(--coral), var(--violet)); transition: width .5s var(--ease-spring); }
.progress-track > i {
  position: absolute; top: 50%; left: 5.55%; width: 14px; height: 14px;
  border: 3px solid white; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 4px rgba(240, 64, 90, .16), 0 0 20px var(--coral);
  transform: translate(-50%, -50%);
  transition: left .5s var(--ease-spring);
}
.question-orbit { position: absolute; inset: 82px -10% auto; height: 240px; pointer-events: none; opacity: .55; }
.question-orbit::before, .question-orbit::after { content: ""; position: absolute; inset: 28% 0; border: 1px solid rgba(240, 64, 90, .14); border-radius: 50%; transform: rotate(-5deg); }
.question-orbit::after { inset: 20% 8%; transform: rotate(12deg); border-color: rgba(143, 105, 189, .12); }
.question-orbit span { position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: #ff7d8b; box-shadow: 0 0 15px #ff7d8b; animation: twinkle 3s ease-in-out infinite; }
.question-orbit span:nth-child(1) { left: 11%; top: 40%; }
.question-orbit span:nth-child(2) { right: 15%; top: 28%; animation-delay: -1s; background: #9f7bc8; }
.question-orbit span:nth-child(3) { right: 28%; bottom: 20%; animation-delay: -2s; }

.question-card {
  position: relative;
  z-index: 2;
  margin: 68px auto 0;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--glass-line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,245,242,.62));
  box-shadow: var(--shadow), inset 0 1px 0 white;
  backdrop-filter: blur(16px);
}
.question-card.is-leaving { animation: questionOut .24s ease both; }
.question-card.is-entering { animation: questionIn .48s var(--ease-spring) both; }
.dimension-mark {
  width: 46px; height: 46px; margin: -70px auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #ff8c91, var(--coral));
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 28px rgba(240,64,90,.28), 0 0 0 5px rgba(240,64,90,.08);
}
.question-theme { margin: 0 0 12px; text-align: center; color: var(--coral); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.question-card h2 { max-width: 600px; margin: 0 auto 30px; text-align: center; font-size: clamp(22px, 4vw, 31px); line-height: 1.45; letter-spacing: -.02em; }
.answer-scale { padding: 0; margin: 0; border: 0; display: grid; gap: 10px; }
.answer-scale button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 55px;
  padding: 11px 18px;
  border: 1px solid rgba(154,58,26,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  color: var(--wine-soft);
  cursor: pointer;
  text-align: left;
  transition: transform .24s var(--ease-spring), border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.answer-scale button:hover { transform: translateX(4px); border-color: rgba(240,64,90,.35); background: rgba(255,255,255,.88); }
.answer-scale button.is-selected { transform: scale(1.025); color: var(--wine); border-color: var(--coral); background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,222,217,.82)); box-shadow: 0 10px 28px rgba(240,64,90,.16), inset 0 0 0 1px rgba(255,255,255,.8); }
.answer-dot { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #dcb4aa; background: white; position: relative; }
.answer-scale button.is-selected .answer-dot { border-color: var(--coral); background: var(--coral); box-shadow: 0 0 0 4px rgba(240,64,90,.12); }
.answer-scale button.is-selected .answer-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: white; }
.quiz-note { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

.result-view { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 80px; text-align: center; }
.result-shell { position: relative; }
.result-overline { margin: 18px 0 0; color: var(--wine-soft); font-size: 15px; }
.result-shell > h2 { margin: 5px auto 10px; max-width: 720px; font-family: Georgia, "Times New Roman", "Noto Serif Thai", serif; font-size: clamp(34px, 6vw, 60px); line-height: 1.2; letter-spacing: -.035em; color: #6c251c; }
.result-summary { max-width: 610px; margin: 0 auto; color: var(--wine-soft); font-size: 15px; }
.result-visual { position: relative; width: min(590px, 100%); aspect-ratio: 1; margin: 4px auto -22px; overflow: visible; }
.result-visual img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; opacity: .18; mix-blend-mode: multiply; animation: resultHeartIn 1.1s ease both, heartFloat 6s ease-in-out infinite 1.1s; }
.result-visual canvas { position: absolute; inset: 8%; width: 84%; height: 84%; }
.axis-labels { position: absolute; z-index: 3; inset: 0; pointer-events: none; overflow: visible; }
.axis-label {
  position: absolute;
  width: 172px;
  padding: 0 4px;
  color: var(--wine-soft);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}
.axis-label:nth-child(1) { top: 14%; left: 50%; transform: translateX(-50%); }
.axis-label:nth-child(2) { top: 32%; right: 1%; text-align: left; }
.axis-label:nth-child(3) { bottom: 32%; right: 1%; text-align: left; }
.axis-label:nth-child(4) { bottom: 14%; left: 50%; transform: translateX(-50%); }
.axis-label:nth-child(5) { bottom: 32%; left: 1%; text-align: right; }
.axis-label:nth-child(6) { top: 32%; left: 1%; text-align: right; }
.result-celebration { position: absolute; inset: -10px 0 auto; height: 300px; pointer-events: none; overflow: hidden; }
.result-celebration i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 14px currentColor; animation: particleRise 2.6s ease-out both; }

.top-traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 22px; }
.trait-card {
  min-height: 116px;
  padding: 18px 14px;
  border: 1px solid rgba(154,58,26,.12);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,246,243,.64));
  box-shadow: var(--soft-shadow), inset 0 1px 0 white;
  animation: traitIn .55s var(--ease-spring) both;
}
.trait-card:nth-child(2) { animation-delay: .1s; }
.trait-card:nth-child(3) { animation-delay: .2s; }
.trait-icon { width: 34px; height: 34px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: var(--coral-pale); color: #a8444e; }
.trait-card:nth-child(2) .trait-icon { background: #e8daf5; color: #765399; }
.trait-card:nth-child(3) .trait-icon { background: #ffe3ca; color: #9a5b2e; }
.trait-card small { display: block; color: var(--wine-soft); line-height: 1.3; }
.trait-card strong { display: block; margin-top: 2px; font-family: Georgia, serif; font-size: 30px; line-height: 1.2; color: var(--wine); }

.result-actions { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; }
.secondary-action { color: var(--wine); border: 1px solid rgba(240,64,90,.3); background: rgba(255,255,255,.65); box-shadow: 0 10px 28px rgba(92,42,30,.08); }
.secondary-action:hover { transform: translateY(-2px); background: white; }
.method-toggle {
  width: 100%; margin-top: 14px; padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255,255,255,.42); cursor: pointer; font-weight: 500;
}
.method-chevron { transition: transform .25s ease; }
.method-toggle[aria-expanded="true"] .method-chevron { transform: rotate(180deg); }
.method-panel { margin-top: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.57); text-align: left; box-shadow: inset 0 1px 0 white; }
.method-intro h3 { margin: 0 0 8px; font-size: 19px; }
.method-intro p { margin: 8px 0; color: var(--wine-soft); font-size: 13.5px; }
.method-caution { padding: 10px 13px; border-radius: 12px; background: rgba(255,218,211,.55); }
.dimension-breakdown { display: grid; gap: 12px; margin-top: 20px; }
.dimension-detail { border-top: 1px solid var(--line); padding-top: 15px; }
.dimension-detail summary { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.dimension-detail summary::-webkit-details-marker { display: none; }
.dimension-detail summary span { font-weight: 600; }
.dimension-detail summary b { color: var(--coral); }
.score-rail { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: #ecdcd7; overflow: hidden; }
.score-rail i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--violet)); }
.dimension-detail ul { list-style: none; padding: 0; margin: 13px 0 0; display: grid; gap: 8px; }
.dimension-detail li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.56); color: var(--wine-soft); font-size: 12.5px; }
.dimension-detail li strong { color: var(--wine); }

.conversion-card { margin-top: 24px; padding: 30px; border-radius: 28px; color: white; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 14rem), linear-gradient(135deg, #7f2e24, #d63857 62%, #7d4b91); box-shadow: 0 22px 55px rgba(109,43,48,.21); }
.conversion-kicker { display: inline-block; margin-bottom: 7px; font-size: 11px; font-weight: 600; letter-spacing: .08em; opacity: .78; }
.conversion-card h3 { margin: 0; font-size: clamp(21px, 4vw, 28px); }
.conversion-card p { max-width: 520px; margin: 8px auto 19px; color: rgba(255,255,255,.78); font-size: 13px; }
.conversion-card a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; color: #8b2b31; background: white; font-weight: 600; }
.text-action { margin-top: 18px; padding: 9px 13px; border: 0; background: transparent; color: var(--wine-soft); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  max-width: calc(100% - 32px); padding: 11px 18px;
  color: white; background: rgba(65,28,31,.92); border-radius: 99px;
  box-shadow: 0 14px 32px rgba(65,28,31,.22);
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px);
  transition: opacity .25s ease, transform .25s var(--ease-spring);
  font-size: 13px;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.game-footer {
  width: min(1040px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 11px;
}
.game-footer a { color: var(--wine); font-weight: 600; }

@keyframes viewIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes heartFloat { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-13px) rotate(.7deg); } }
@keyframes shadowBreathe { 0%, 100% { transform: scale(.86); opacity: .48; } 50% { transform: scale(1); opacity: .72; } }
@keyframes orbitSpin { to { transform: rotate(348deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.55); opacity: .3; } 50% { transform: scale(1.5); opacity: 1; } }
@keyframes ambientFloat { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(20px,-32px,0); } }
@keyframes buttonShine { 0%, 65% { left: -100px; } 88%, 100% { left: calc(100% + 80px); } }
@keyframes questionOut { to { opacity: 0; transform: translateX(-24px) scale(.98); } }
@keyframes questionIn { from { opacity: 0; transform: translateX(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes resultHeartIn { from { opacity: 0; transform: scale(.74) rotate(-6deg); } to { opacity: .2; transform: scale(1) rotate(0); } }
@keyframes traitIn { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes particleRise { from { opacity: 0; transform: translateY(100px) scale(.5); } 25% { opacity: 1; } to { opacity: 0; transform: translateY(-180px) scale(1.2); } }

@media (min-width: 760px) {
  .answer-scale { grid-template-columns: repeat(5, 1fr); }
  .answer-scale button { min-height: 92px; padding: 13px 8px; grid-template-columns: 1fr; justify-items: center; text-align: center; font-size: 12px; }
  .answer-dot { width: 20px; height: 20px; }
}

@media (max-width: 640px) {
  .game-header { width: calc(100% - 28px); height: 64px; }
  .intro-view { width: calc(100% - 28px); padding-top: 16px; }
  .intro-copy h1 { font-size: clamp(39px, 12vw, 56px); }
  .heart-stage { margin-top: -6px; margin-bottom: -27px; }
  .seo-intro { margin-top: 55px; padding: 24px 20px; border-radius: 22px; }
  .quiz-view { padding-top: 7px; }
  .question-card { margin-top: 58px; padding: 28px 18px 22px; border-radius: 25px; }
  .dimension-mark { margin-top: -54px; }
  .question-card h2 { margin-bottom: 22px; font-size: 21px; }
  .answer-scale button { min-height: 49px; border-radius: 15px; font-size: 13px; }
  .question-orbit { inset-inline: -22%; }
  .result-view { padding-top: 12px; }
  .result-shell > h2 { font-size: 38px; }
  .result-summary { font-size: 13px; }
  .result-visual { width: 100%; margin-top: 5px; margin-bottom: -12px; }
  .result-visual canvas { inset: 9%; width: 82%; height: 82%; }
  .axis-label { width: min(112px, 31vw); padding-inline: 2px; font-size: 10.5px; line-height: 1.3; }
  .axis-label:nth-child(2), .axis-label:nth-child(3) { right: 2%; }
  .axis-label:nth-child(5), .axis-label:nth-child(6) { left: 2%; }
  .top-traits { gap: 8px; }
  .trait-card { min-height: 106px; padding: 14px 7px; border-radius: 18px; }
  .trait-card small { font-size: 10.5px; }
  .trait-card strong { font-size: 25px; }
  .result-actions { grid-template-columns: 1fr; }
  .method-panel { padding: 20px 16px; }
  .conversion-card { padding: 26px 18px; }
  .game-footer { width: calc(100% - 28px); }
}

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