:root {
  --cream: #f6f1e5;
  --paper: #fffaf0;
  --ink: #171516;
  --muted: #6c665e;
  --line: rgba(23, 21, 22, 0.18);
  --lime: #c5f33d;
  --lime-dark: #739900;
  --orange: #ff7346;
  --orange-dark: #e24724;
  --purple: #7154e8;
  --purple-deep: #4e39bf;
  --yellow: #ffd659;
  --blue: #99d9ed;
  --shadow: 7px 8px 0 var(--ink);
  --soft-shadow: 4px 5px 0 rgba(23, 21, 22, 0.12);
  --radius: 20px;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 15%, rgba(113, 84, 232, 0.07) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--cream);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: linear-gradient(105deg, transparent 0 49%, rgba(23, 21, 22, 0.035) 50%, transparent 51%);
  background-size: 13px 13px;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--purple);
  outline-offset: 4px;
}

[data-autofocus]:focus { outline: none; }

a {
  color: inherit;
  text-decoration: none;
}

.app-frame {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 0 38px 32px;
  overflow: clip;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 2px solid var(--ink);
}

.brand-lockup,
.header-link {
  border: 0;
  background: transparent;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 8px 0;
  color: #1f3b2e;
  font-family: "Hiragino Maru Gothic ProN", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-synthesis: weight;
  text-align: left;
}

.brand-pixel-mark {
  display: grid;
  flex: none;
  grid-template-columns: repeat(3, 0.45rem);
  grid-template-rows: repeat(3, 0.45rem);
  gap: 0.075rem;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0.15rem;
  background: #286942;
  box-shadow: 0.18rem 0.18rem 0 #cce5b8;
  transform: rotate(-4deg);
}

.brand-pixel-mark i {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  background: #add87d;
}

.brand-pixel-mark i:nth-child(1),
.brand-pixel-mark i:nth-child(5),
.brand-pixel-mark i:nth-child(9) {
  background: #ffe17c;
}

.brand-wording {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
}

.brand-mark {
  color: #1f3b2e;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-sub {
  padding: 0;
  border: 0;
  color: #1f3b2e;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.header-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 24px;
}

.media-home-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--purple-deep);
  font-size: 0.74rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.legacy-result-note {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--purple);
  background: rgba(113, 84, 232, 0.07);
  font-size: 0.78rem;
  line-height: 1.7;
}

.legacy-result-note a {
  margin-left: 8px;
  color: var(--purple-deep);
  font-weight: 800;
  text-decoration: underline;
}

.header-count,
.header-link {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.header-count {
  color: var(--muted);
}

.header-link {
  padding: 12px 0;
  border-bottom: 2px solid var(--ink);
  transition: color 160ms ease, border-color 160ms ease;
}

.header-link:hover {
  color: var(--purple);
  border-color: var(--purple);
}

.app-main {
  min-height: 600px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 90px;
  padding: 24px 0 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--purple);
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

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

.eyebrow-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 2px 2px 0 var(--ink);
}

.section-kicker {
  color: var(--purple-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 5px 0 var(--ink);
}

.button:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.button-primary {
  background: var(--lime);
  box-shadow: var(--soft-shadow);
}

.button-ghost {
  background: transparent;
}

.button-xl {
  min-height: 62px;
  padding-inline: 28px;
  font-size: 1rem;
}

.text-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 950;
}

.text-button:hover {
  color: var(--purple);
}

em {
  font-style: normal;
  color: var(--purple);
}

/* Landing */

.landing-page {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: 4vw;
  align-items: center;
  max-width: 1350px;
  min-height: 690px;
  margin: 0 auto;
  padding: 70px 0 90px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.collection-heading h1,
.quiz-heading h1,
.reveal-page h1 {
  margin: 25px 0 26px;
  font-size: clamp(3.7rem, 8.2vw, 8.9rem);
  font-weight: 1000;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.hero-copy h1 em {
  display: inline-block;
  padding: 2px 12px 8px;
  color: var(--ink);
  background: var(--lime);
  white-space: nowrap;
  transform: rotate(-2deg);
}

.outline-word {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-lead {
  max-width: 560px;
  margin: 0;
  color: #3f3a37;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--purple-deep);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 33px;
}

.resume-button {
  padding-inline: 18px;
  border-style: dashed;
  font-size: 0.8rem;
}

.resume-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--orange);
  font-size: 0.65rem;
}

.tiny-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.tiny-note span {
  color: var(--orange);
}

.hero-visual {
  min-width: 0;
}

.hero-collage {
  position: relative;
  height: 540px;
  min-height: 540px;
  isolation: isolate;
}

.hero-collage::before {
  position: absolute;
  inset: 12% 8% 10% 14%;
  z-index: -1;
  content: "";
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0 50%, transparent 50%),
    var(--orange);
  transform: rotate(5deg);
}

.hero-collage::after {
  position: absolute;
  top: 25%;
  right: -2%;
  z-index: -2;
  width: 85%;
  height: 64%;
  content: "";
  background: var(--purple);
  transform: rotate(-8deg);
}

.hero-character {
  position: absolute;
  width: 47%;
  height: 53%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 600% 400%;
  filter: drop-shadow(8px 9px 0 rgba(23, 21, 22, 0.9));
}

.hero-character-0 {
  top: 2%;
  left: 3%;
  z-index: 3;
  transform: rotate(-8deg);
}

.hero-character-1 {
  top: 20%;
  right: 3%;
  z-index: 2;
  width: 49%;
  height: 56%;
  transform: rotate(8deg);
}

.hero-character-2 {
  bottom: 2%;
  left: 19%;
  z-index: 4;
  width: 52%;
  height: 48%;
  transform: rotate(-2deg);
}

.collage-sticker {
  position: absolute;
  z-index: 8;
  display: grid;
  place-content: center;
  width: 93px;
  height: 93px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  line-height: 1.15;
  box-shadow: 4px 4px 0 var(--ink);
}

.sticker-lime {
  top: 6%;
  right: 10%;
  background: var(--lime);
  transform: rotate(13deg);
}

.sticker-orange {
  bottom: 7%;
  right: 1%;
  background: var(--yellow);
  transform: rotate(-12deg);
}

.collage-scribble {
  position: absolute;
  top: 20%;
  left: -3%;
  z-index: 8;
  color: var(--ink);
  font-size: 5rem;
  font-weight: 900;
  transform: rotate(-20deg);
}

.collage-caption {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.6;
}

.collage-caption strong {
  display: block;
  color: var(--purple-deep);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.045em;
}

.collage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-inline: 10px;
}

.collage-count {
  display: grid;
  flex: none;
  gap: 3px;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.collage-count strong {
  font-size: 0.95rem;
}

.how-section,
.sample-section {
  max-width: 1350px;
  margin: 0 auto;
  padding: 54px 0 78px;
  border-top: 2px solid var(--ink);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.how-step {
  min-height: 188px;
  padding: 25px 30px 15px 0;
  border-right: 1px solid var(--line);
}

.how-step + .how-step {
  padding-left: 30px;
}

.how-step:last-child {
  border-right: 0;
}

.step-number {
  display: block;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
}

.how-step h2 {
  margin: 23px 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.08em;
}

.how-step p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.sample-section {
  padding-bottom: 12px;
}

.sample-section-head,
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.sample-section h2,
.section-title-row h2,
.share-heading h2,
.result-bottom-cta h2,
.mission-section h2 {
  margin: 13px 0 0;
  font-size: clamp(2.15rem, 4.5vw, 4.6rem);
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 1.13;
}

.sample-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.sample-peek {
  display: flex;
  align-items: center;
  min-height: 130px;
  padding: 12px 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  text-align: left;
  box-shadow: var(--soft-shadow);
  transition: transform 150ms ease;
}

.sample-peek:hover {
  transform: rotate(-1.5deg) translateY(-4px);
}

.sample-peek-art {
  flex: 0 0 115px;
  width: 115px;
  height: 115px;
  background-repeat: no-repeat;
  background-size: 600% 400%;
}

.sample-peek-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.sample-peek-copy strong {
  font-size: 1.15rem;
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.sample-peek-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.sample-peek-arrow {
  align-self: flex-start;
  margin-left: auto;
  font-size: 1.2rem;
}

/* Shared character image frame */

.atlas-character {
  position: relative;
  display: block;
  overflow: hidden;
  flex: none;
  background-color: transparent;
  background-image: var(--atlas-url, url("../assets/characters-atlas.png"));
  background-repeat: no-repeat;
  background-size: 600% 400%;
}

.atlas-character .art-fallback {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  padding: 3px 5px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
}

.atlas-missing .atlas-character .art-fallback {
  opacity: 1;
}

.atlas-character.is-empty {
  display: grid;
  place-items: center;
  border: 2px dashed var(--ink);
  background: var(--yellow);
}

.hero-character {
  position: absolute;
}

/* Quiz */

.quiz-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 0 30px;
}

.quiz-progress {
  position: relative;
  margin-bottom: 80px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.progress-label strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--lime);
  transition: width 230ms ease;
}

.page-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.page-dots span {
  display: block;
  width: 28px;
  height: 5px;
  background: var(--line);
}

.page-dots .is-current {
  width: 72px;
  background: var(--purple);
}

.page-dots .is-done {
  background: var(--orange);
}

.page-answer-count {
  position: absolute;
  right: 0;
  bottom: -18px;
  color: var(--purple-deep);
  font-size: 0.72rem;
  font-weight: 1000;
}

.quiz-heading {
  max-width: 850px;
}

.theme-emoji {
  display: inline-block;
  margin-left: 9px;
  color: var(--orange);
  font-size: 1.35rem;
  transform: rotate(9deg);
}

.quiz-heading h1 {
  max-width: 750px;
  margin-bottom: 13px;
  font-size: clamp(3rem, 6.2vw, 6.9rem);
}

.quiz-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.inline-notice {
  margin: 34px 0 -12px;
  padding: 13px 16px;
  border-left: 6px solid var(--purple);
  background: rgba(113, 84, 232, 0.1);
  font-size: 0.83rem;
  font-weight: 800;
}

.inline-notice.is-warning {
  border-color: var(--orange);
  background: rgba(255, 115, 70, 0.12);
}

.inline-notice.is-error {
  border-color: #d9342b;
  background: rgba(217, 52, 43, 0.12);
}

.question-form {
  margin-top: 56px;
}

.question-block {
  margin: 0;
  padding: 28px 0 33px;
  border: 0;
  border-top: 1px solid var(--line);
}

.question-block legend {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  width: 100%;
  padding: 0;
  font-size: clamp(1.13rem, 2vw, 1.55rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.4;
}

.question-number {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 0.7rem;
  letter-spacing: 0;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 0 53px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  text-align: left;
  transition: transform 130ms ease, background 130ms ease, color 130ms ease;
}

.answer-option:hover {
  transform: translateY(-3px);
  background: var(--yellow);
}

.answer-option.is-selected {
  color: var(--paper);
  background: var(--purple);
  box-shadow: 3px 4px 0 var(--ink);
}

.option-letter {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 950;
}

.option-text {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

.option-tick {
  margin-left: auto;
  font-size: 1rem;
  opacity: 0;
}

.answer-option.is-selected .option-tick {
  opacity: 1;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.quiz-save-status {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.save-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--lime-dark);
}

/* Reveal */

.reveal-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 730px;
  overflow: hidden;
  text-align: center;
}

.reveal-page h1 {
  position: relative;
  z-index: 2;
  margin: 22px 0;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
}

.reveal-page h1 em {
  color: var(--ink);
  background: var(--lime);
}

.reveal-character-wrap {
  position: relative;
  width: min(55vw, 360px);
  height: min(55vw, 360px);
  margin: 5px 0 24px;
}

.reveal-character-wrap::before {
  position: absolute;
  inset: 3%;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  transform: rotate(8deg);
}

.reveal-character {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 600% 400%;
  filter: drop-shadow(7px 8px 0 var(--ink));
  animation: reveal-float 820ms ease-in-out infinite alternate;
}

.reveal-burst {
  position: absolute;
  z-index: 4;
  font-size: 2.6rem;
  font-weight: 1000;
}

.burst-one {
  top: 2%;
  left: -7%;
  color: var(--purple);
}

.burst-two {
  right: -4%;
  bottom: 10%;
  color: var(--lime);
}

.burst-three {
  top: 30%;
  right: -10%;
  color: var(--orange);
}

.reveal-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.reveal-orbit {
  position: absolute;
  border: 2px dashed var(--ink);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-spin 10s linear infinite;
}

.orbit-one {
  width: min(70vw, 640px);
  height: min(70vw, 640px);
}

.orbit-two {
  width: min(93vw, 900px);
  height: min(93vw, 900px);
  border-color: var(--purple);
  animation-duration: 15s;
  animation-direction: reverse;
}

/* Result */

.result-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 49px 0 20px;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.result-topline .eyebrow {
  color: var(--purple-deep);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 1.04fr);
  gap: 30px;
  align-items: center;
  min-height: 470px;
  padding: 60px 0 44px;
}

.result-overline,
.result-en {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.result-hero h1 {
  max-width: 650px;
  margin: 18px 0 2px;
  font-size: clamp(2rem, 7vw, 7.5rem);
  font-size: min(7.5rem, calc(96cqi / var(--character-name-length, 8)));
  font-weight: 1000;
  letter-spacing: -0.055em;
  line-height: 1.2;
  white-space: nowrap;
}

.result-hero-copy,
.secret-result-copy {
  min-width: 0;
  container-type: inline-size;
}

.result-en {
  color: var(--purple-deep);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.result-tagline {
  max-width: 420px;
  margin: 22px 0 0;
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.6;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 23px;
}

.result-tags span {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.68rem;
  font-weight: 900;
}

.result-hero-art {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 430px;
}

.hero-art-circle {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--character-color, var(--lime)) 55%, transparent), transparent 70%);
  filter: blur(16px);
}

.hero-art-circle::before {
  content: none;
}

.result-character {
  position: relative;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: 600% 400%;
  filter: drop-shadow(8px 9px 0 var(--ink));
}

.result-art-sticker {
  position: absolute;
  right: 2%;
  bottom: 4%;
  z-index: 3;
  display: grid;
  place-content: center;
  width: 92px;
  height: 92px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  font-size: 0.61rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-align: center;
  transform: rotate(12deg);
}

.result-art-sticker strong {
  font-size: 2rem;
  letter-spacing: -0.1em;
}

.result-intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 32px;
  border: 2px solid var(--ink);
  background: var(--purple);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.result-intro-band p {
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.7;
}

.result-point {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 5px;
  min-width: 146px;
  color: var(--lime);
  text-align: right;
}

.result-point span {
  grid-row: 1 / span 2;
  color: var(--paper);
  font-size: 0.63rem;
  font-weight: 950;
  line-height: 1.05;
}

.result-point strong {
  font-size: 3.5rem;
  font-weight: 1000;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.result-point small {
  font-size: 0.68rem;
}

.result-share-block,
.analysis-section,
.map-section,
.compatibility-section {
  margin-top: 118px;
}

.share-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 15px 0 30px;
}

.share-heading p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.65;
  text-wrap: balance;
}

.result-tools {
  display: grid;
  gap: 9px;
}

.result-tools__group {
  display: grid;
  gap: 9px;
}

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

.result-tools__group--secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 15px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  font-size: 0.73rem;
  font-weight: 950;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.result-tools__group--primary .result-tool {
  min-height: 56px;
  font-size: 0.9rem;
}

.result-tool:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.result-tool--x {
  color: var(--paper);
  background: var(--ink);
}

.result-tool--line {
  background: #b8f34a;
  gap: 10px;
}

.line-brand-icon {
  display: block;
  flex: none;
  width: 40.04px;
  height: 40px;
  object-fit: contain;
}

.result-tool--native {
  background: var(--yellow);
}

.result-tool--save {
  background: var(--orange);
}

.result-tool--copy {
  background: var(--paper);
}

.share-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.share-status.success {
  color: var(--lime-dark);
}

.share-status.cancel {
  color: var(--purple-deep);
}

.share-status.error {
  color: var(--orange-dark);
}

.analysis-section .section-title-row,
.map-section .section-title-row,
.compatibility-section .section-title-row {
  margin: 15px 0 37px;
}

.section-title-row p {
  max-width: 450px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.65;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 65px;
  align-items: center;
  padding: 36px 0 2px;
  border-top: 1px solid var(--line);
}

.radar-wrap {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 14px;
  background: var(--yellow);
}

.radar-chart {
  width: min(100%, 360px);
  overflow: visible;
}

.radar-ring {
  fill: rgba(255, 250, 240, 0.16);
  stroke: rgba(23, 21, 22, 0.35);
  stroke-width: 1;
}

.radar-ring-outer {
  fill: rgba(255, 250, 240, 0.4);
  stroke: var(--ink);
  stroke-width: 2;
}

.radar-spoke {
  stroke: rgba(23, 21, 22, 0.32);
  stroke-width: 1;
}

.radar-fill {
  fill: rgba(113, 84, 232, 0.58);
  stroke: var(--purple-deep);
  stroke-width: 2;
}

.radar-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.radar-dot {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: 2;
}

.radar-label {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.score-list {
  display: grid;
  gap: 22px;
}

.score-row-head,
.score-row-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.score-row-head {
  font-size: 0.82rem;
}

.score-row-head span {
  color: var(--purple-deep);
  font-size: 1.08rem;
  font-weight: 1000;
}

.score-row-head small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
}

.score-bar {
  height: 12px;
  margin-top: 7px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.score-bar span {
  display: block;
  height: 100%;
  min-width: 3px;
}

.score-row-foot {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

/* Character map */

.character-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.map-plot {
  position: absolute;
  inset: 28px;
  z-index: 1;
  background:
    linear-gradient(rgba(23, 21, 22, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 22, 0.12) 1px, transparent 1px),
    var(--paper);
  background-size: 10% 10%;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 21, 22, 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.map-grid-lines::before,
.map-grid-lines::after {
  position: absolute;
  content: "";
  background: rgba(23, 21, 22, 0.28);
}

.map-grid-lines::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.map-grid-lines::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.map-axis-label {
  position: static;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: none;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
}

.map-axis-header {
  margin-bottom: 9px;
  text-align: center;
}

.map-axis-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 9px;
  font-size: 0.63rem;
}

.map-axis-footer .map-axis-left {
  text-align: left;
}

.map-axis-footer .map-axis-bottom {
  text-align: center;
}

.map-axis-footer .map-axis-right {
  text-align: right;
}

.map-point {
  position: absolute;
  top: var(--point-y);
  left: var(--point-x);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: z-index 100ms ease;
}

.map-point:hover,
.map-point.is-selected {
  z-index: 10;
}

.map-point-dot {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 2px 2px 0 var(--ink);
}

.map-point:nth-of-type(3n) .map-point-dot {
  background: var(--lime);
}

.map-point:nth-of-type(4n) .map-point-dot {
  background: var(--purple);
}

.map-point.is-selected .map-point-dot {
  width: 17px;
  height: 17px;
  background: var(--yellow);
}

.map-point-label {
  display: none;
  position: absolute;
  z-index: 1;
  max-width: 140px;
  padding: 3px 5px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  pointer-events: none;
}

.map-point[data-label-anchor="start"] .map-point-label {
  left: calc(100% + 8px);
}

.map-point[data-label-anchor="center"] .map-point-label {
  left: 50%;
  transform: translateX(-50%);
}

.map-point[data-label-anchor="end"] .map-point-label {
  right: calc(100% + 8px);
  text-align: right;
}

.map-point[data-label-position="above"] .map-point-label {
  bottom: calc(100% + 24px);
}

.map-point[data-label-position="below"] .map-point-label {
  top: calc(100% + 24px);
}

.map-point:hover .map-point-label,
.map-point:focus-visible .map-point-label,
.map-point.is-selected .map-point-label {
  display: block;
}

.map-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.map-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 130ms ease, background-color 130ms ease, box-shadow 130ms ease;
}

.map-choice:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.map-choice.is-selected {
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translateY(-2px);
}

.map-choice-dot {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

.map-choice:nth-child(3n) .map-choice-dot {
  background: var(--lime);
}

.map-choice:nth-child(4n) .map-choice-dot {
  background: var(--purple);
}

.map-personal {
  position: absolute;
  top: var(--point-y);
  left: var(--point-x);
  z-index: 12;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--purple);
  color: var(--paper);
  font-size: 0.6rem;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-8deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.map-personal-pulse {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--purple);
  border-radius: 50%;
}

.map-personal strong {
  position: relative;
}

.map-detail {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 126px;
  margin-top: 15px;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  background: var(--lime);
}

.map-detail-art {
  width: 104px;
  height: 104px;
  background-repeat: no-repeat;
  background-size: 600% 400%;
}

.map-detail-copy {
  min-width: 0;
}

.map-detail-copy h3 {
  margin: 3px 0;
  font-size: 1.75rem;
  font-weight: 1000;
  letter-spacing: -0.09em;
}

.map-detail-copy > p:not(.mini-label) {
  margin: 0 0 11px;
  color: #38312c;
  font-size: 0.77rem;
  font-weight: 750;
}

/* Compatibility and mission */

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.compatible-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 132px;
  padding: 10px 20px 10px 6px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  text-align: left;
  transition: transform 140ms ease;
}

.compatible-card:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.compatible-0 {
  background: var(--yellow);
}

.compatible-1 {
  background: var(--blue);
}

.compatible-index {
  align-self: flex-start;
  padding: 5px 7px;
  font-size: 0.68rem;
  font-weight: 1000;
}

.compatible-art {
  width: 105px;
  height: 105px;
  background-repeat: no-repeat;
  background-size: 600% 400%;
}

.compatible-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-left: 4px;
}

.compatible-copy strong {
  font-size: 1.25rem;
  font-weight: 1000;
  letter-spacing: -0.08em;
}

.compatible-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.card-arrow {
  position: absolute;
  right: 13px;
  top: 12px;
  font-size: 1.2rem;
}

.mission-section {
  position: relative;
  margin-top: 118px;
  padding: 40px 44px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--orange);
}

.mission-copy {
  max-width: 780px;
}

.mission-section .section-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--lime);
  transform: rotate(-2deg);
}

.mission-section h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 4.3vw, 3rem);
  line-height: 1.25;
}

.mission-section h2 em {
  display: inline-block;
  color: var(--ink);
  box-shadow: inset 0 -0.18em 0 rgba(255, 214, 89, 0.8);
  white-space: nowrap;
}

.mission-text {
  max-width: 46em;
  margin: 24px 0 0;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.8;
}

.result-bottom-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 120px;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.result-bottom-cta h2 {
  margin-top: 11px;
}

/* Collection */

.collection-page {
  max-width: 1250px;
  margin: 0 auto;
  padding: 62px 0 20px;
}

.collection-heading {
  max-width: 850px;
}

.collection-heading h1 {
  margin-bottom: 20px;
}

.collection-heading > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.75;
}

.collection-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 58px 0 82px;
  padding: 15px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.collection-stats span {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.collection-stats strong {
  margin-right: 6px;
  color: var(--purple);
  font-size: 1.8rem;
  letter-spacing: -0.08em;
}

.collection-group {
  margin-top: 76px;
}

.group-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 23px;
}

.group-index {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 1000;
}

.group-heading p {
  margin: 0 0 7px;
  color: var(--purple-deep);
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.group-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3.25rem);
  font-weight: 1000;
  letter-spacing: -0.1em;
  line-height: 1;
}

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

.character-tile {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  min-height: 148px;
  padding: 10px 13px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  text-align: left;
  transition: transform 150ms ease, background 150ms ease;
}

.character-tile:hover {
  z-index: 2;
  background: var(--yellow);
  transform: translateY(-4px) rotate(-1deg);
}

.group-1 .character-tile:nth-child(odd) {
  background: rgba(113, 84, 232, 0.12);
}

.group-2 .character-tile:nth-child(odd) {
  background: rgba(197, 243, 61, 0.38);
}

.group-3 .character-tile:nth-child(odd) {
  background: rgba(255, 115, 70, 0.18);
}

.tile-index {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 1;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 950;
}

.tile-art {
  width: 108px;
  height: 126px;
  background-repeat: no-repeat;
  background-size: 600% 400%;
}

.tile-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 9px;
}

.tile-copy strong {
  font-size: 1.08rem;
  font-weight: 1000;
  letter-spacing: -0.08em;
}

.tile-copy small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
}

.tile-arrow {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 1.1rem;
}

.collection-back {
  display: flex;
  justify-content: center;
  margin-top: 78px;
}

@keyframes reveal-float {
  from {
    transform: translateY(6px) rotate(-3deg);
  }
  to {
    transform: translateY(-9px) rotate(3deg);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 1000px) {
  .app-frame {
    padding-inline: 24px;
  }

  .landing-page {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.8fr);
    gap: 20px;
  }

  .hero-collage {
    min-height: 440px;
  }

  .answer-options {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .app-frame {
    padding-inline: 16px;
  }

  .site-header {
    min-height: 73px;
  }

  .header-count {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  .media-home-link {
    font-size: 0.58rem;
  }

  .brand-lockup {
    flex: 0 1 auto;
    gap: 0.5rem;
  }

  .brand-mark {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .header-link {
    padding-block: 8px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .site-footer {
    display: block;
    margin-top: 62px;
    font-size: 0.63rem;
  }

  .site-footer p + p {
    margin-top: 6px;
  }

  .footer-links {
    margin-top: 13px;
  }

  .landing-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 56px 0 58px;
  }

  .hero-copy h1,
  .collection-heading h1,
  .quiz-heading h1,
  .reveal-page h1 {
    font-size: clamp(3.35rem, 17vw, 6rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 5.8rem);
    letter-spacing: -0.13em;
  }

  .hero-lead {
    font-size: 0.9rem;
  }

  .hero-cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-cta-row .button {
    width: 100%;
  }

  .hero-collage {
    height: 390px;
    min-height: 390px;
    margin-top: 28px;
  }

  .hero-collage::before {
    inset: 8% 6% 8% 10%;
  }

  .hero-character {
    width: 51%;
    height: 54%;
  }

  .hero-character-1 {
    width: 54%;
    height: 56%;
  }

  .hero-character-2 {
    left: 18%;
    width: 58%;
    height: 47%;
  }

  .collage-sticker {
    width: 75px;
    height: 75px;
    font-size: 0.56rem;
  }

  .collage-scribble {
    left: 0;
    font-size: 3.5rem;
  }

  .how-section,
  .sample-section {
    padding-block: 42px 54px;
  }

  .how-grid,
  .sample-strip {
    grid-template-columns: 1fr;
  }

  .how-step,
  .how-step + .how-step {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .how-step:last-child {
    border-bottom: 0;
  }

  .sample-section-head,
  .section-title-row,
  .share-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-section h2,
  .section-title-row h2,
  .share-heading h2,
  .result-bottom-cta h2 {
    font-size: clamp(2.3rem, 11vw, 4rem);
  }

  .map-section .section-title-row h2 {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
    white-space: nowrap;
  }

  .quiz-page,
  .collection-page,
  .result-page {
    padding-top: 35px;
  }

  .quiz-progress {
    margin-bottom: 52px;
  }

  .progress-label {
    font-size: 0.57rem;
  }

  .question-form {
    margin-top: 40px;
  }

  .question-block {
    padding-block: 24px;
  }

  .question-block legend {
    gap: 12px;
    font-size: 1.05rem;
  }

  .question-number {
    width: 30px;
    height: 30px;
    font-size: 0.62rem;
  }

  .answer-options {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .answer-option {
    min-height: 53px;
  }

  .quiz-nav {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-inline: -16px;
    padding: 14px 16px;
    background: rgba(246, 241, 229, 0.94);
    backdrop-filter: blur(8px);
  }

  .quiz-nav .button {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 0.7rem;
  }

  .quiz-save-status {
    display: none;
  }

  .reveal-page {
    min-height: 650px;
  }

  .reveal-character-wrap {
    width: min(75vw, 330px);
    height: min(75vw, 330px);
  }

  .result-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    padding-block: 40px 34px;
  }

  .result-hero-art {
    min-height: 330px;
  }

  .result-character,
  .hero-art-circle {
    width: min(86vw, 355px);
  }

  .result-hero h1 {
    margin-top: 14px;
  }

  .result-intro-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px 20px;
  }

  .result-intro-band p {
    font-size: 0.9rem;
  }

  .result-point {
    align-self: flex-end;
  }

  .result-share-block,
  .analysis-section,
  .map-section,
  .compatibility-section,
  .mission-section {
    margin-top: 80px;
  }

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

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

  .result-tool {
    padding-inline: 9px;
    font-size: 0.66rem;
  }

  .result-tool--copy {
    grid-column: 1 / -1;
  }

  .analysis-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 25px;
  }

  .radar-wrap {
    min-height: 290px;
  }

  .character-map {
    min-height: 0;
    aspect-ratio: 1;
  }

  .map-detail {
    gap: 14px;
    padding-inline: 12px;
  }

  .map-detail-art {
    width: 83px;
    height: 83px;
  }

  .map-detail-copy h3 {
    font-size: 1.35rem;
  }

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

  .mission-section {
    padding: 28px 22px;
  }

  .mission-text {
    font-size: 1rem;
  }

  .result-bottom-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 82px;
  }

  .collection-heading h1 {
    font-size: clamp(3.45rem, 16vw, 5.8rem);
  }

  .collection-stats {
    gap: 14px;
    margin-block: 42px 60px;
  }

  .collection-stats span {
    font-size: 0.58rem;
  }

  .collection-stats strong {
    font-size: 1.45rem;
  }

  .collection-group {
    margin-top: 57px;
  }

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

@media (max-width: 340px) {
  .header-tools {
    gap: 6px;
  }

  .media-home-link,
  .header-link {
    font-size: 0.56rem;
  }

  .brand-mark {
    font-size: 0.98rem;
  }

  .brand-sub {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }
}

/* Reward polish and secret result states */

.collage-sticker small {
  display: block;
  margin-top: 2px;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
}

.atlas-character {
  --character-color: var(--lime);
  filter: drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 16px var(--character-color));
  transform: translateZ(0);
}

.hero-character {
  filter: drop-shadow(8px 9px 0 rgba(23, 21, 22, 0.9)) drop-shadow(0 0 15px var(--character-color));
}

.sample-peek-art,
.tile-art,
.compatible-art,
.map-detail-art {
  filter: drop-shadow(4px 5px 0 rgba(23, 21, 22, 0.55)) drop-shadow(0 0 11px var(--character-color));
}

.question-block.is-answered .question-number {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 2px 3px 0 var(--ink);
  transform: rotate(-6deg) scale(1.08);
}

.answer-option {
  box-shadow: 2px 3px 0 rgba(23, 21, 22, 0.12);
}

.answer-option:hover {
  box-shadow: 3px 5px 0 var(--ink);
}

.answer-option.is-selected {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 4px 5px 0 var(--ink);
  animation: answer-pop 260ms cubic-bezier(.2, 1.5, .45, 1) both;
}

.progress-track {
  position: relative;
  box-shadow: 3px 3px 0 rgba(23, 21, 22, 0.18);
}

.progress-track span {
  position: relative;
  box-shadow: inset -8px 0 0 rgba(255, 255, 255, 0.26);
}

.reveal-page {
  isolation: isolate;
}

.reveal-page > .eyebrow,
.reveal-page > h1,
.reveal-page > .reveal-open-panel,
.reveal-page > .reveal-caption {
  position: relative;
  z-index: 6;
}

.reveal-page.is-secret {
  --secret-blue: #7167ff;
  --secret-cyan: #3de7df;
  --secret-pink: #ff65c7;
  background: radial-gradient(circle at 50% 47%, rgba(113, 103, 255, 0.14), transparent 41%);
}

.reveal-character-wrap {
  isolation: isolate;
}

.reveal-character-wrap::after {
  position: absolute;
  right: 14%;
  bottom: 3%;
  left: 14%;
  z-index: 1;
  height: 11%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(23, 21, 22, 0.28), transparent 68%);
  filter: blur(3px);
  pointer-events: none;
}

.reveal-character-wrap.is-sealed::before {
  border-radius: 27% 73% 63% 37% / 35% 40% 60% 65%;
  background: linear-gradient(135deg, var(--purple) 0 48%, var(--orange) 48% 100%);
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(-7deg);
}

.reveal-sealed-card {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 68%;
  height: 68%;
  margin: auto;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: linear-gradient(135deg, var(--paper) 0 51%, var(--yellow) 51% 100%);
  box-shadow: 8px 9px 0 var(--ink), 0 0 24px rgba(197, 243, 61, 0.42);
  transform: rotate(4deg);
}

.reveal-sealed-card::before,
.reveal-sealed-card::after {
  position: absolute;
  width: 38px;
  height: 38px;
  content: "";
  border: 2px solid var(--ink);
}

.reveal-sealed-card::before {
  top: 16px;
  left: 16px;
  border-right: 0;
  border-bottom: 0;
}

.reveal-sealed-card::after {
  right: 16px;
  bottom: 16px;
  border-top: 0;
  border-left: 0;
}

.sealed-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  background: var(--lime);
}

.sealed-corner-one {
  top: 28px;
  right: 25px;
  transform: rotate(45deg);
}

.sealed-corner-two {
  bottom: 28px;
  left: 25px;
  background: var(--orange);
  transform: rotate(45deg);
}

.sealed-glyph {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 4px 5px 0 var(--ink);
  font-size: 3.3rem;
  font-weight: 1000;
  line-height: 1;
  transform: rotate(-8deg);
}

.sealed-label {
  position: absolute;
  right: 15%;
  bottom: 12%;
  color: var(--purple-deep);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-align: right;
}

.sealed-scan {
  position: absolute;
  right: 8%;
  left: 8%;
  z-index: 4;
  height: 3px;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple), 0 0 24px var(--orange);
  animation: sealed-scan 1050ms ease-in-out infinite alternate;
  pointer-events: none;
}

.sealed-spark {
  position: absolute;
  z-index: 3;
  color: var(--purple);
  font-size: 1.8rem;
  pointer-events: none;
}

.sealed-spark-one {
  top: 16%;
  left: 16%;
  animation: sparkle-float 1600ms ease-in-out infinite alternate;
}

.sealed-spark-two {
  right: 17%;
  bottom: 21%;
  color: var(--orange);
  animation: sparkle-float 1200ms 280ms ease-in-out infinite alternate-reverse;
}

.reveal-open-panel {
  display: grid;
  justify-items: center;
  gap: 15px;
  max-width: 100%;
  /* Keep the button shadow and focus ring inside the clipped reveal stage. */
  padding: 0 12px 16px;
}

.reveal-open-panel .reveal-caption {
  max-width: 460px;
  margin: 0;
}

.reveal-open-button {
  min-width: 220px;
  min-height: 58px;
  font-size: 1rem;
  box-shadow: 5px 6px 0 var(--ink);
}

.reveal-open-button:hover {
  transform: translate(-3px, -3px) scale(1.02);
  box-shadow: 7px 8px 0 var(--ink);
}

.reveal-open-button:active {
  transform: translate(2px, 2px) scale(0.98);
}

.reveal-page.is-opening .reveal-open-panel {
  display: none;
}

.reveal-page.is-opening .reveal-character {
  animation: result-reveal-enter 760ms cubic-bezier(.12, .8, .3, 1) both;
}

.reveal-page.is-opening .reveal-character-wrap::before {
  animation: reveal-ring-pop 760ms cubic-bezier(.2, .9, .2, 1) both;
}

.reveal-page.is-opening .reveal-burst {
  animation: burst-pop 680ms cubic-bezier(.2, 1.5, .4, 1) both;
}

.reveal-page.is-secret .reveal-character-wrap::before {
  z-index: 0;
  inset: -3%;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(from 12deg, var(--secret-cyan), var(--secret-blue), var(--secret-pink), var(--yellow), var(--secret-cyan));
  box-shadow: 0 0 24px rgba(113, 103, 255, 0.7), 0 0 56px rgba(61, 231, 223, 0.46);
  transform: none;
}

.reveal-page.is-secret.is-opening .reveal-character {
  animation: secret-reveal-enter 2850ms cubic-bezier(.12, .86, .22, 1) both;
  filter: drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 18px var(--secret-cyan)) drop-shadow(0 0 35px var(--secret-pink));
}

.reveal-page.is-secret.is-opening .reveal-character-wrap::before {
  animation: secret-halo-pulse 2850ms ease-out both;
}

.secret-stars,
.result-art-sparkles {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  pointer-events: none;
}

.secret-stars i,
.result-art-sparkles i {
  position: absolute;
  color: var(--lime);
  font-style: normal;
  text-shadow: 2px 2px 0 var(--ink), 0 0 12px var(--secret-cyan, var(--orange));
}

.secret-stars i:nth-child(1),
.result-art-sparkles i:nth-child(1) {
  top: 8%;
  left: 11%;
  font-size: 2rem;
}

.secret-stars i:nth-child(2),
.result-art-sparkles i:nth-child(2) {
  top: 17%;
  right: 9%;
  color: var(--secret-pink, var(--purple));
  font-size: 1.25rem;
}

.secret-stars i:nth-child(3),
.result-art-sparkles i:nth-child(3) {
  right: 4%;
  bottom: 17%;
  color: var(--orange);
  font-size: 2.3rem;
}

.secret-stars i:nth-child(4) {
  bottom: 5%;
  left: 10%;
  color: var(--secret-cyan);
  font-size: 1.25rem;
}

.reveal-page.is-opening .secret-stars i {
  animation: secret-star-pop 2300ms cubic-bezier(.2, 1, .35, 1) both;
}

.reveal-page.is-opening .secret-stars i:nth-child(2) {
  animation-delay: 170ms;
}

.reveal-page.is-opening .secret-stars i:nth-child(3) {
  animation-delay: 320ms;
}

.reveal-page.is-opening .secret-stars i:nth-child(4) {
  animation-delay: 470ms;
}

.result-hero {
  position: relative;
  margin-top: 22px;
  padding: 38px 36px 34px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 7px 8px 0 var(--ink);
}

.result-hero-copy,
.result-hero-art {
  position: relative;
  z-index: 1;
}

.result-replay-button,
.secret-replay-button {
  margin-top: 25px;
  min-height: 45px;
  padding-inline: 16px;
  background: var(--lime);
  font-size: 0.72rem;
}

.motion-reduced-note {
  max-width: 300px;
  margin: 25px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--purple);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.45;
}

.result-hero-art {
  isolation: isolate;
}

.result-hero-art::after,
.secret-result-art::after {
  position: absolute;
  right: 17%;
  bottom: 4%;
  left: 17%;
  z-index: 1;
  height: 12%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(23, 21, 22, 0.3), transparent 67%);
  filter: blur(4px);
  pointer-events: none;
}

.result-character {
  filter: drop-shadow(8px 9px 0 var(--ink)) drop-shadow(0 0 18px var(--character-color));
}

.result-art-sparkles i:nth-child(1) {
  top: 9%;
  left: 8%;
  color: var(--purple);
}

.result-art-sparkles i:nth-child(2) {
  top: 28%;
  right: 2%;
  color: var(--orange);
}

.result-art-sparkles i:nth-child(3) {
  right: 9%;
  bottom: 13%;
  color: var(--lime);
}

.result-hero-art .result-art-sparkles i:nth-child(3) {
  right: auto;
  bottom: 21%;
  left: 11%;
}

.secret-result-page {
  --secret-blue: #7167ff;
  --secret-cyan: #3de7df;
  --secret-pink: #ff65c7;
}

.secret-result-label {
  color: var(--purple-deep);
}

.secret-result-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  gap: 30px;
  align-items: center;
  min-height: 500px;
  margin-top: 22px;
  padding: 42px 36px 36px;
  overflow: hidden;
  border: 3px solid transparent;
  border-image: linear-gradient(130deg, #a594ff, #f28cf7, #ffcb6a, #72e5ff, #a594ff) 1;
  color: #fff;
  background: radial-gradient(ellipse at 78% 45%, #4a376c 0, #26213f 43%, #151225 80%);
  box-shadow: 8px 9px 0 var(--ink);
}

.secret-result-hero::before,
.secret-result-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.secret-result-hero::before {
  top: -45%;
  right: -12%;
  width: 65%;
  aspect-ratio: 1;
  border: 2px solid rgba(113, 103, 255, 0.56);
  border-radius: 50%;
  box-shadow: 0 0 0 19px rgba(61, 231, 223, 0.14), 0 0 0 39px rgba(255, 101, 199, 0.1);
}

.secret-result-hero::after {
  right: 0;
  bottom: 0;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secret-pink), var(--secret-cyan));
}

.secret-result-copy,
.secret-result-art {
  position: relative;
  z-index: 1;
}

.secret-overline,
.secret-intro-eyebrow {
  margin: 0;
  color: var(--purple-deep);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.17em;
}

.secret-result-hero .secret-overline { color: #8febff; }
.secret-result-hero .result-en { color: #c1b6ff; }
.secret-rarity-stamp, .secret-art-sticker { color: var(--ink); }
.secret-result-hero .result-tags { color: var(--ink); }
.secret-result-hero .button { color: var(--ink); }
.secret-result-hero .motion-reduced-note { color: #d4cee9; border-color: #8febff; }
.secret-result-art::after { background: radial-gradient(ellipse, #a594ff80, transparent 68%); }

.reveal-page.is-secret.is-opening {
  margin-top: 20px;
  border: 2px solid #ab94ff;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(ellipse at 50% 50%, #443263, #17132d 70%);
}
.reveal-page.is-secret.is-opening::before {
  position: absolute;
  inset: -50%;
  z-index: 0;
  content: '';
  pointer-events: none;
  background: repeating-conic-gradient(from 12deg, transparent 0deg 13deg, #af9cff28 14deg 16deg, transparent 17deg 28deg, #79eaff28 29deg 32deg);
  animation: secret-rays 2900ms ease-out both;
}
.reveal-page.is-secret.is-opening h1 em {
  background: linear-gradient(110deg,#a594ff,#f28cf7,#ffcb6a,#72e5ff);
}
.reveal-page.is-secret.is-opening .reveal-caption { color: #ded7f6; }
@keyframes secret-rays {
  from { transform: rotate(-20deg) scale(.6); opacity: 0; }
  30% { opacity: 1; }
  to { transform: rotate(16deg) scale(1); opacity: .8; }
}

.secret-title-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 16px;
}

.secret-title-row h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4.3vw, 4.6rem);
  font-size: min(4.6rem, calc(96cqi / var(--character-name-length, 10)));
  font-weight: 1000;
  letter-spacing: -0.045em;
  line-height: 1.16;
  white-space: nowrap;
}

.secret-rarity-stamp {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: 3px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secret-cyan), var(--secret-pink));
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 1000;
  transform: rotate(9deg);
}

.secret-result-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 420px;
  isolation: isolate;
}

.secret-halo {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.secret-halo-one {
  z-index: 0;
  background: conic-gradient(from 12deg, var(--secret-cyan), var(--secret-blue), var(--secret-pink), var(--yellow), var(--secret-cyan));
  box-shadow: 0 0 25px rgba(113, 103, 255, 0.72), 0 0 48px rgba(61, 231, 223, 0.42);
}

.secret-halo-two {
  z-index: -1;
  width: 86%;
  border: 2px solid var(--secret-pink);
  transform: rotate(14deg);
}

.secret-result-character {
  position: relative;
  z-index: 2;
  width: 75%;
  aspect-ratio: 1;
  filter: drop-shadow(0 9px 0 var(--ink)) drop-shadow(0 0 18px var(--secret-cyan)) drop-shadow(0 0 34px var(--secret-pink));
}

.secret-art-sticker {
  position: absolute;
  right: 4%;
  bottom: 7%;
  z-index: 4;
  display: grid;
  place-content: center;
  width: 94px;
  height: 94px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secret-cyan), var(--secret-pink));
  box-shadow: 4px 5px 0 var(--ink);
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-align: center;
  transform: rotate(11deg);
}

.secret-art-sticker strong {
  font-size: 2rem;
  letter-spacing: -0.08em;
}

.secret-intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
  padding: 28px 32px;
  border: 2px solid var(--ink);
  background: linear-gradient(110deg, var(--purple) 0 52%, var(--secret-blue) 52% 100%);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.secret-intro-band > div:first-child {
  min-width: 0;
}

.secret-intro-band .secret-intro-eyebrow {
  margin-bottom: 10px;
  color: var(--lime);
}

.secret-intro-band p:last-child {
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.75;
}

.secret-card-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 86px;
  height: 86px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 2.1rem;
  font-weight: 1000;
  transform: rotate(-8deg);
}

.secret-card-mark small {
  display: block;
  margin-top: -17px;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.secret-traits-section {
  margin-top: 112px;
}

.secret-traits-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 15px 0 30px;
}

.secret-traits-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 1.13;
}

.secret-traits-heading p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.65;
}

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

.secret-traits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 17px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.45;
}

.secret-traits-list li:nth-child(2) {
  background: rgba(113, 84, 232, 0.16);
  transform: translateY(10px) rotate(1deg);
}

.secret-traits-list li:nth-child(3) {
  background: rgba(197, 243, 61, 0.48);
  transform: rotate(-1deg);
}

.secret-trait-mark {
  color: var(--purple);
  font-size: 1.35rem;
}

.secret-result-page .result-share-block {
  margin-top: 105px;
}

.secret-result-page .mission-section {
  background: linear-gradient(112deg, var(--orange), #ff9e52);
}

.hero-art-circle,
.result-art-sticker,
.reveal-floor,
.reveal-orbit,
.reveal-burst,
.sealed-corner,
.sealed-glyph,
.sealed-label,
.sealed-scan,
.sealed-spark,
.secret-halo,
.secret-art-sticker,
.secret-card-mark,
.party-symbol,
.analysis-symbol,
.mission-number,
.map-personal {
  pointer-events: none;
}

@keyframes answer-pop {
  from { transform: translateY(0) scale(0.98); }
  to { transform: translateY(-4px) rotate(-0.5deg) scale(1); }
}

@keyframes sealed-scan {
  from { top: 13%; opacity: 0.25; }
  to { top: 83%; opacity: 0.95; }
}

@keyframes sparkle-float {
  from { transform: translateY(5px) rotate(-9deg) scale(0.88); opacity: 0.55; }
  to { transform: translateY(-7px) rotate(9deg) scale(1.08); opacity: 1; }
}

@keyframes result-reveal-enter {
  from { transform: translateY(32px) scale(0.74) rotate(-7deg); opacity: 0; filter: blur(5px) drop-shadow(0 8px 0 var(--ink)); }
  58% { transform: translateY(-8px) scale(1.05) rotate(3deg); opacity: 1; filter: blur(0) drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 16px var(--character-color)); }
  to { transform: translateY(0) scale(1) rotate(0); opacity: 1; filter: drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 16px var(--character-color)); }
}

@keyframes reveal-ring-pop {
  from { transform: scale(0.62) rotate(-17deg); opacity: 0.3; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes burst-pop {
  from { transform: scale(0.1) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.22) rotate(10deg); opacity: 1; }
  to { transform: scale(1) rotate(0); opacity: 0.88; }
}

@keyframes secret-reveal-enter {
  0% { transform: translateY(28px) scale(0.45) rotate(-12deg); opacity: 0; filter: blur(10px) drop-shadow(0 8px 0 var(--ink)); }
  25% { transform: translateY(-12px) scale(1.05) rotate(4deg); opacity: 1; filter: blur(0) drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 28px var(--secret-cyan)); }
  62% { transform: translateY(3px) scale(0.98) rotate(-2deg); opacity: 1; filter: drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 31px var(--secret-pink)); }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; filter: drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 19px var(--secret-cyan)) drop-shadow(0 0 35px var(--secret-pink)); }
}

@keyframes secret-halo-pulse {
  0% { transform: scale(0.46) rotate(-19deg); opacity: 0; }
  32% { transform: scale(1.12) rotate(7deg); opacity: 1; }
  70% { transform: scale(0.95) rotate(-4deg); opacity: 0.94; }
  100% { transform: scale(1) rotate(0); opacity: 0.98; }
}

@keyframes secret-star-pop {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  45% { transform: scale(1.24) rotate(11deg); opacity: 1; }
  to { transform: scale(1) rotate(0); opacity: 0.92; }
}

@media (max-width: 720px) {
  .reveal-page {
    min-height: 700px;
  }

  .reveal-page h1 {
    max-width: calc(100% - 24px);
    font-size: clamp(1.9rem, 9.8vw, 2.8rem);
    letter-spacing: -0.055em;
  }

  .reveal-sealed-card {
    width: 72%;
    height: 72%;
  }

  .secret-result-hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 0;
    padding: 30px 20px 24px;
  }

  .secret-result-art {
    min-height: 300px;
  }

  .secret-result-character {
    width: min(78vw, 310px);
  }

  .secret-title-row {
    gap: 9px;
    display: block;
    position: relative;
    padding-right: 0;
  }

  .secret-title-row h1 {
    max-width: 100%;
    overflow-wrap: normal;
  }

  .secret-rarity-stamp {
    display: none;
    font-size: 0.68rem;
  }

  .secret-intro-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px 20px;
  }

  .secret-card-mark {
    align-self: flex-end;
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
  }

  .secret-card-mark small {
    margin-top: -12px;
  }

  .secret-traits-section {
    margin-top: 80px;
  }

  .secret-traits-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .secret-traits-heading h2 {
    font-size: clamp(2.25rem, 11vw, 4rem);
  }

  .secret-traits-list {
    grid-template-columns: 1fr;
  }

  .secret-traits-list li:nth-child(2),
  .secret-traits-list li:nth-child(3) {
    transform: none;
  }

  .secret-result-page .result-share-block {
    margin-top: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer-option.is-selected,
  .sealed-scan,
  .sealed-spark-one,
  .sealed-spark-two,
  .reveal-page.is-opening .reveal-character,
  .reveal-page.is-opening .reveal-character-wrap::before,
  .reveal-page.is-opening .reveal-burst,
  .reveal-page.is-opening .secret-stars i {
    animation: none !important;
  }

  .reveal-page.is-opening .reveal-character,
  .reveal-page.is-secret.is-opening .reveal-character {
    opacity: 1;
    filter: drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 18px var(--character-color));
    transform: none;
  }
}

/* Keep the bloom overrides last so the reveal treatment stays soft after the
   rest of the secret presentation rules are loaded. */
.reveal-page.is-secret .reveal-orbit {
  display: none;
  animation: none;
  border: 0;
}

.reveal-page.is-secret:not(.is-opening) .reveal-character-wrap::before {
  inset: -5%;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, rgba(113, 103, 255, 0.32) 0 12%, rgba(255, 101, 199, 0.2) 34%, transparent 72%);
  box-shadow: none;
  filter: blur(12px);
  opacity: 0.72;
  transform: none;
}

.reveal-page.is-secret.is-opening {
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 203, 106, 0.2) 0 9%, rgba(255, 101, 199, 0.16) 25%, transparent 61%),
    radial-gradient(circle at 50% 49%, rgba(61, 231, 223, 0.15), transparent 68%),
    #17132d;
}

.reveal-page.is-secret.is-opening .reveal-character-wrap {
  position: relative;
  z-index: 2;
}

.reveal-page.is-secret.is-opening::before {
  inset: -36%;
  z-index: 0;
  background:
    repeating-conic-gradient(from 5deg, rgba(61, 231, 223, 0.16) 0 3deg, transparent 3deg 17deg, rgba(255, 101, 199, 0.14) 17deg 21deg, transparent 21deg 35deg),
    radial-gradient(circle at center, rgba(165, 148, 255, 0.3) 0 18%, transparent 68%);
  filter: blur(24px);
  opacity: 0.86;
  transform-origin: center;
  animation: secret-rays-soft 2900ms ease-out both;
}

.reveal-page.is-secret.is-opening::after {
  position: absolute;
  inset: -14%;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 49%, rgba(255, 203, 106, 0.28) 0 9%, transparent 30%),
    radial-gradient(circle at 50% 49%, rgba(113, 103, 255, 0.28), transparent 64%);
  filter: blur(38px);
  opacity: 0.74;
  animation: secret-bloom-fade 2900ms ease-out both;
}

.reveal-page.is-secret.is-opening .reveal-character-wrap::before {
  inset: -23%;
  z-index: 0;
  border: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -8deg, rgba(114, 229, 255, 0.4) 0 7deg, transparent 7deg 24deg, rgba(242, 140, 247, 0.36) 24deg 32deg, transparent 32deg 50deg),
    radial-gradient(circle at center, rgba(255, 203, 106, 0.36) 0 8%, rgba(255, 101, 199, 0.2) 23%, rgba(113, 103, 255, 0.18) 42%, transparent 73%);
  box-shadow: none;
  filter: blur(8px);
  mask-image: radial-gradient(circle at center, #000 0 30%, rgba(0,0,0,.85) 45%, transparent 73%);
  opacity: 0.9;
  transform: none;
  animation: secret-bloom-pulse 2850ms ease-out both;
}

.reveal-page.is-secret.is-opening .reveal-character {
  animation: secret-reveal-enter-sharp 2850ms cubic-bezier(.12, .86, .22, 1) both;
  filter: drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 18px var(--secret-cyan)) drop-shadow(0 0 35px var(--secret-pink));
}

.secret-result-hero::before {
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 203, 106, 0.24) 0 10%, rgba(255, 101, 199, 0.16) 30%, transparent 68%);
  box-shadow: none;
  filter: blur(24px);
  opacity: 0.66;
}

.secret-result-art .secret-halo-one {
  z-index: 1;
  width: 94%;
  background:
    repeating-conic-gradient(from 4deg, rgba(114, 229, 255, 0.18) 0 4deg, transparent 4deg 19deg, rgba(242, 140, 247, 0.16) 19deg 24deg, transparent 24deg 39deg),
    radial-gradient(circle at center, rgba(255, 203, 106, 0.28) 0 10%, rgba(255, 101, 199, 0.2) 26%, rgba(113, 103, 255, 0.2) 47%, transparent 73%);
  box-shadow: none;
  filter: blur(17px);
  opacity: 0.9;
}

.secret-result-art .secret-halo-two {
  z-index: 0;
  width: 110%;
  border: 0;
  background: radial-gradient(circle at center, rgba(61, 231, 223, 0.2), rgba(113, 103, 255, 0.14) 38%, transparent 70%);
  filter: blur(30px);
  opacity: 0.72;
  transform: none;
}

.secret-effect-label {
  margin-top: 10px;
}

.secret-rarity-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 4px 9px;
  border-width: 1px;
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(114, 229, 255, 0.94), rgba(242, 140, 247, 0.94));
  box-shadow: 0 0 14px rgba(165, 148, 255, 0.36);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(3deg);
}

.secret-art-sticker {
  width: auto;
  min-width: 74px;
  max-width: calc(100% - 16px);
  min-height: 36px;
  height: auto;
  padding: 7px 10px;
  border-width: 2px;
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(114, 229, 255, 0.94), rgba(242, 140, 247, 0.94));
  box-shadow: 0 0 18px rgba(165, 148, 255, 0.46);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(5deg);
}

.secret-art-sticker strong {
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.secret-rarity-note {
  max-width: 34rem;
  margin: 12px 0 0;
  color: #c9c1df;
  font-size: clamp(0.69rem, 1.1vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .secret-rarity-note {
    max-width: 100%;
    margin-top: 10px;
    font-size: 0.7rem;
  }

  .secret-rarity-stamp {
    display: inline-flex;
    font-size: 0.58rem;
  }

  .secret-art-sticker {
    right: 2%;
    bottom: 5%;
    max-width: calc(100% - 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-page.is-secret.is-opening::before,
  .reveal-page.is-secret.is-opening::after,
  .reveal-page.is-secret.is-opening .reveal-character-wrap::before,
  .reveal-page.is-secret.is-opening .reveal-character,
  .secret-result-art .secret-halo-one,
  .secret-result-art .secret-halo-two {
    animation: none !important;
  }

  .reveal-page.is-secret.is-opening::before {
    filter: blur(20px);
    opacity: 0.38;
    transform: none;
  }

  .reveal-page.is-secret.is-opening::after {
    filter: blur(28px);
    opacity: 0.3;
    transform: none;
  }

  .reveal-page.is-secret.is-opening .reveal-character-wrap::before {
    filter: blur(11px);
    opacity: 0.46;
    transform: none;
  }

  .reveal-page.is-secret.is-opening .reveal-character {
    opacity: 1;
    filter: drop-shadow(0 8px 0 var(--ink)) drop-shadow(0 0 18px var(--secret-cyan));
    transform: none;
  }
}

@keyframes secret-rays-soft {
  from { transform: rotate(-15deg) scale(0.72); opacity: 0; }
  24% { opacity: 0.82; }
  to { transform: rotate(15deg) scale(1); opacity: 0.76; }
}

@keyframes secret-bloom-fade {
  from { transform: scale(0.74); opacity: 0; }
  28% { opacity: 0.76; }
  to { transform: scale(1); opacity: 0.54; }
}

@keyframes secret-bloom-pulse {
  from { transform: scale(0.46); opacity: 0; }
  28% { transform: scale(1.08); opacity: 0.94; }
  72% { transform: scale(0.96); opacity: 0.84; }
  to { transform: scale(1); opacity: 0.78; }
}

@keyframes secret-reveal-enter-sharp {
  0% { transform: translateY(28px) scale(0.45) rotate(-12deg); opacity: 0; }
  25% { transform: translateY(-12px) scale(1.05) rotate(4deg); opacity: 1; }
  62% { transform: translateY(3px) scale(0.98) rotate(-2deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}

/* Offset each sparkle's phase so the light keeps drifting after the reveal. */
.result-art-sparkles i,
.reveal-burst,
.reveal-page.is-opening .secret-stars i,
.reveal-page.is-opening .reveal-burst {
  transform-origin: center;
  animation: ambient-sparkle var(--sparkle-duration, 3.2s) ease-in-out var(--sparkle-delay, 0s) infinite;
}

.result-art-sparkles i:nth-child(1),
.secret-stars i:nth-child(1),
.burst-one {
  --sparkle-duration: 2.8s;
  --sparkle-delay: -0.8s;
  --sparkle-x: 4px;
  --sparkle-y: -8px;
}
.result-art-sparkles i:nth-child(2),
.reveal-page.is-opening .secret-stars i:nth-child(2),
.burst-two {
  --sparkle-duration: 3.6s;
  --sparkle-delay: -2.1s;
  --sparkle-x: -5px;
  --sparkle-y: -5px;
}
.result-art-sparkles i:nth-child(3),
.reveal-page.is-opening .secret-stars i:nth-child(3),
.burst-three {
  --sparkle-duration: 3.1s;
  --sparkle-delay: -1.5s;
  --sparkle-x: 3px;
  --sparkle-y: -7px;
}
.result-art-sparkles i:nth-child(4),
.reveal-page.is-opening .secret-stars i:nth-child(4) {
  bottom: 8%;
  left: 7%;
  color: var(--secret-cyan, var(--purple));
  font-size: 1.25rem;
  --sparkle-duration: 4.2s;
  --sparkle-delay: -2.7s;
  --sparkle-x: -4px;
  --sparkle-y: -9px;
}
.reveal-page.is-opening .secret-stars i:nth-child(5) {
  top: 5%;
  right: 35%;
  color: var(--yellow);
  font-size: 0.9rem;
  --sparkle-duration: 3.4s;
  --sparkle-delay: -0.4s;
  --sparkle-x: 3px;
  --sparkle-y: -6px;
}

@keyframes ambient-sparkle {
  0%, 100% { transform: translate3d(0, 3px, 0) rotate(-8deg) scale(0.88); opacity: 0.6; filter: brightness(0.96); }
  45% { transform: translate3d(var(--sparkle-x, 3px), var(--sparkle-y, -7px), 0) rotate(12deg) scale(1.14); opacity: 1; filter: brightness(1.2); }
  75% { transform: translate3d(0, -2px, 0) rotate(2deg) scale(0.98); opacity: 0.82; filter: brightness(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .result-art-sparkles i,
  .reveal-burst,
  .reveal-page.is-opening .secret-stars i,
  .reveal-page.is-opening .reveal-burst {
    animation: none !important;
    transform: none;
    filter: none;
    opacity: 0.9;
  }
}

/* A normal discovery unfolds in one beat: light opens, the character settles,
   then the result appears. Soft gradients have no visible circular edge. */
.reveal-page:not(.is-secret) .reveal-orbit {
  display: none;
}

.reveal-page:not(.is-secret) .reveal-character-wrap::before {
  inset: -16%;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    color-mix(in srgb, var(--character-color) 56%, transparent),
    color-mix(in srgb, var(--character-color) 20%, transparent) 38%,
    transparent 72%);
  box-shadow: none;
  filter: blur(18px);
  transform: none;
}

.reveal-page:not(.is-secret).is-opening {
  background: radial-gradient(ellipse at 50% 58%,
    color-mix(in srgb, var(--character-color) 18%, transparent),
    transparent 66%);
}

.reveal-page:not(.is-secret).is-opening::before,
.reveal-page:not(.is-secret).is-opening::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.reveal-page:not(.is-secret).is-opening::before {
  inset: -32%;
  z-index: 0;
  background: repeating-conic-gradient(from -8deg at 50% 58%,
    color-mix(in srgb, var(--character-color) 24%, transparent) 0deg 8deg,
    transparent 8deg 28deg,
    rgba(255, 255, 255, 0.64) 28deg 32deg,
    transparent 32deg 48deg);
  mask-image: radial-gradient(ellipse at 50% 58%, #000 0 18%, transparent 68%);
  filter: blur(14px);
  animation: discovery-rays 1450ms cubic-bezier(.16, .7, .3, 1) both;
}

.reveal-page:not(.is-secret).is-opening::after {
  inset: -20%;
  z-index: 3;
  background: linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, 0.6) 50%, transparent 64%);
  filter: blur(18px);
  animation: discovery-light-sweep 1000ms 120ms ease-out both;
}

.reveal-page:not(.is-secret).is-opening h1 {
  margin: 16px 0;
  font-size: clamp(2.2rem, 6.5vw, 4.8rem);
  line-height: 1.2;
}

.reveal-page:not(.is-secret).is-opening h1 em {
  background: transparent;
  box-shadow: inset 0 -0.16em 0 color-mix(in srgb, var(--character-color) 52%, transparent);
}

.reveal-page:not(.is-secret).is-opening .reveal-character {
  animation: discovery-character 1450ms cubic-bezier(.16, .8, .3, 1) both;
}

.reveal-page:not(.is-secret).is-opening .reveal-character-wrap::before {
  animation: discovery-bloom 1450ms ease-out both;
}

@keyframes discovery-character {
  0% { opacity: 0; transform: translateY(26px) scale(0.72) rotate(-6deg); filter: blur(5px); }
  22% { opacity: 1; transform: translateY(-7px) scale(1.035) rotate(1deg); filter: blur(0) drop-shadow(0 12px 10px rgba(23, 21, 22, 0.18)) drop-shadow(0 0 22px var(--character-color)); }
  52%, 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: drop-shadow(0 12px 10px rgba(23, 21, 22, 0.18)) drop-shadow(0 0 18px var(--character-color)); }
}

@keyframes discovery-rays {
  from { opacity: 0; transform: scale(0.7) rotate(-12deg); }
  32% { opacity: 0.82; }
  to { opacity: 0.48; transform: scale(1.06) rotate(8deg); }
}

@keyframes discovery-bloom {
  from { opacity: 0; transform: scale(0.48); }
  32% { opacity: 0.95; transform: scale(1.12); }
  to { opacity: 0.7; transform: scale(1); }
}

@keyframes discovery-light-sweep {
  from { opacity: 0; transform: translateX(-65%); }
  28% { opacity: 0.8; }
  to { opacity: 0; transform: translateX(65%); }
}

@media (max-width: 720px) {
  .reveal-page:not(.is-secret).is-opening {
    min-height: calc(100svh - 100px);
    align-content: center;
    gap: 14px;
    padding-block: 28px;
  }

  .reveal-page:not(.is-secret).is-opening .reveal-character-wrap {
    width: min(78vw, 360px);
    height: min(78vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-page:not(.is-secret).is-opening::before,
  .reveal-page:not(.is-secret).is-opening::after,
  .reveal-page:not(.is-secret).is-opening .reveal-character-wrap::before {
    animation: none;
  }
}
