:root {
  --bg: #fff8f4;
  --bg-soft: #fff1ec;
  --panel: rgba(255, 252, 249, 0.84);
  --panel-strong: rgba(255, 250, 247, 0.94);
  --line: rgba(121, 72, 80, 0.12);
  --line-strong: rgba(121, 72, 80, 0.24);
  --text: #2e2025;
  --muted: #765962;
  --accent: #c76a76;
  --accent-strong: #9f4f5f;
  --accent-soft: #f6d8dd;
  --success: #5f8b71;
  --shadow-xl: 0 30px 80px rgba(130, 78, 88, 0.12);
  --shadow-lg: 0 20px 44px rgba(130, 78, 88, 0.08);
  --shadow-md: 0 10px 28px rgba(130, 78, 88, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf7 0%, #fff5f0 48%, #fff9f4 100%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.site-bg,
.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-bg-a {
  background:
    radial-gradient(circle at 8% 14%, rgba(253, 209, 218, 0.7), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(244, 224, 196, 0.56), transparent 26%);
}

.site-bg-b {
  background:
    radial-gradient(circle at 20% 88%, rgba(241, 205, 214, 0.5), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(216, 191, 208, 0.38), transparent 34%);
  filter: blur(12px);
}

.site-noise {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23b9818d' fill-opacity='.07'%3E%3Ccircle cx='18' cy='22' r='1.5'/%3E%3Ccircle cx='85' cy='64' r='1'/%3E%3Ccircle cx='130' cy='16' r='1.2'/%3E%3Ccircle cx='162' cy='92' r='1.4'/%3E%3Ccircle cx='54' cy='142' r='1.1'/%3E%3Ccircle cx='118' cy='148' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-footer {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid rgba(121, 72, 80, 0.08);
  background: rgba(255, 252, 249, 0.54);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.site-footer p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 247, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand-mark__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3aeb8, #b35d72);
  color: white;
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(179, 93, 114, 0.26);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand-mark__text strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-mark__text small {
  font-size: 11px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(199, 106, 118, 0.1);
  transform: translateY(-1px);
}

.screen {
  display: none;
}

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

.card-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-xl);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  padding: 38px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -110px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 198, 208, 0.5), rgba(244, 198, 208, 0));
}

.eyebrow,
.section-kicker,
.muse-card__kicker,
.feature-card__index {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent-strong);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(199, 106, 118, 0.08);
  border: 1px solid rgba(199, 106, 118, 0.12);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e698a8, #b55e6f);
}

.hero-copy h1,
.section-head h2,
.feature-card h2,
.muse-card h2,
.quiz-card h2,
.result-copy h2,
.match-card h2,
.dimension-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 5.6vw, 5.7rem);
}

.hero-copy h1 span {
  display: block;
  color: var(--accent-strong);
}

.hero-sub {
  max-width: 720px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions,
.hero-stats,
.result-actions-top__group,
.quiz-nav,
.share-box__row,
.poster-traits,
.result-highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-stats {
  margin-top: 26px;
}

.stat-pill,
.result-highlight {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.stat-pill strong {
  font-size: 13px;
}

.stat-pill span,
.result-highlight span {
  color: var(--muted);
  font-size: 12px;
}

.hero-aside {
  display: flex;
}

.muse-card {
  position: relative;
  width: 100%;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 230, 236, 0.7)),
    linear-gradient(135deg, rgba(246, 214, 220, 0.55), rgba(255, 240, 236, 0));
  border: 1px solid rgba(181, 94, 111, 0.16);
}

.muse-card h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.muse-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.9;
}

.muse-list li::before {
  content: "✦";
  margin-right: 10px;
  color: var(--accent);
}

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

.feature-card {
  padding: 24px;
}

.feature-card h2 {
  margin-top: 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
}

.feature-card p:last-child,
.quiz-card__meta p,
.result-paragraph,
.share-box__label {
  color: var(--muted);
  line-height: 1.8;
}

.gallery-section,
.tease-section {
  margin-top: 18px;
  padding: 30px;
}

.tease-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.tease-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.46), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(246, 231, 235, 0.78));
  border: 1px solid rgba(121, 72, 80, 0.08);
}

.tease-card h3 {
  margin: 16px 0 0;
  font-family: "Fraunces", serif;
  font-size: 28px;
  line-height: 1.04;
}

.tease-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.tease-orb {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: teaseFloat 5.8s ease-in-out infinite;
}

.tease-orb::before,
.tease-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tease-orb::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform: translateY(-10px) scale(0.72);
}

.tease-orb::after {
  inset: auto 8px -18px;
  height: 18px;
  border-radius: 50%;
  filter: blur(14px);
  background: rgba(159, 79, 95, 0.16);
}

.tease-orb--a {
  background: linear-gradient(135deg, #ffd9de, #cf7a87);
}

.tease-orb--b {
  background: linear-gradient(135deg, #ffe6cb, #d9896f);
  animation-delay: -1.1s;
}

.tease-orb--c {
  background: linear-gradient(135deg, #ebdaf6, #9e82d0);
  animation-delay: -2.3s;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  max-width: 700px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-height: 170px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.54), transparent 46%),
    linear-gradient(165deg, color-mix(in srgb, var(--card-a) 55%, white), color-mix(in srgb, var(--card-b) 82%, white));
  box-shadow: var(--shadow-md);
  text-align: left;
  color: #fffdfa;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 44px rgba(118, 78, 87, 0.22);
  filter: saturate(1.08);
}

.gallery-card--revealed {
  min-height: 320px;
}

.gallery-card--active {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: -2px;
  transform: translateY(-2px) scale(1.01);
}

.gallery-grid--revealed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card__code {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.76;
}

.gallery-card__title {
  margin-top: 10px;
  font-family: "Fraunces", serif;
  font-size: 27px;
  line-height: 1.02;
}

.gallery-card__en {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.82;
}

.gallery-card__intro {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.88;
}

.gallery-card__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.avatar-scene {
  position: relative;
  width: 100%;
  perspective: 800px;
}

.avatar-scene--lg {
  height: 220px;
  margin-bottom: 14px;
}

.avatar-scene--sm {
  height: 138px;
}

.avatar-scene__halo,
.avatar-scene__orbit,
.avatar-scene__spark,
.avatar-scene__shadow,
.avatar-scene__pedestal,
.avatar-scene__creature {
  position: absolute;
  left: 50%;
  transform-style: preserve-3d;
}

.avatar-scene__halo {
  top: 12%;
  width: 70%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
  filter: blur(10px);
}

.avatar-scene__orbit {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0.8;
}

.avatar-scene__orbit--a {
  top: 18%;
  width: 68%;
  height: 40%;
  transform: translateX(-50%) rotateX(72deg) rotate(var(--scene-tilt));
  animation: sceneOrbitA 12s linear infinite;
}

.avatar-scene__orbit--b {
  top: 12%;
  width: 54%;
  height: 54%;
  transform: translateX(-50%) rotateY(72deg) rotate(var(--scene-tilt-negative));
  animation: sceneOrbitB 10s linear infinite;
}

.avatar-scene__spark {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 8px 18px rgba(255, 255, 255, 0.22);
  animation: sceneSpark 4.8s ease-in-out infinite;
}

.avatar-scene__spark--a {
  top: 18%;
  margin-left: -38%;
  animation-delay: var(--scene-delay);
}

.avatar-scene__spark--b {
  top: 24%;
  margin-left: 28%;
  animation-delay: calc(var(--scene-delay) + 0.9s);
}

.avatar-scene__shadow {
  bottom: 16px;
  width: 40%;
  height: 18px;
  border-radius: 50%;
  background: rgba(96, 44, 58, 0.18);
  filter: blur(12px);
  transform: translateX(-50%);
}

.avatar-scene__pedestal {
  bottom: 8px;
  width: 48%;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.24);
  transform: translateX(-50%) rotateX(72deg);
}

.avatar-scene__image {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 60%;
  height: auto;
  max-height: 75%;
  object-fit: contain;
  transform: translateX(-50%) rotateY(var(--scene-tilt));
  filter: drop-shadow(0 20px 30px rgba(98, 31, 56, 0.18));
  animation: creatureBounce 5.4s ease-in-out infinite;
  animation-delay: var(--scene-delay);
  z-index: 5;
}

.avatar-scene__creature {
  bottom: 28px;
  width: 40%;
  height: 52%;
  min-width: 88px;
  border-radius: 50% 50% 44% 44% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 28%),
    linear-gradient(165deg, color-mix(in srgb, var(--scene-a) 62%, white), color-mix(in srgb, var(--scene-b) 88%, white 8%));
  box-shadow:
    inset -16px -22px 28px rgba(98, 31, 56, 0.16),
    0 20px 30px rgba(98, 31, 56, 0.18);
  transform: translateX(-50%) rotateX(10deg) rotateY(var(--scene-tilt));
  animation: creatureBounce 5.4s ease-in-out infinite;
  animation-delay: var(--scene-delay);
}

.avatar-scene__ear,
.avatar-scene__eye,
.avatar-scene__cheek,
.avatar-scene__mouth,
.avatar-scene__glyph {
  position: absolute;
}

.avatar-scene__ear {
  top: -12%;
  width: 22%;
  height: 28%;
  border-radius: 60% 60% 44% 44%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--scene-a) 74%, white), var(--scene-b));
}

.avatar-scene__ear--a {
  left: 14%;
  transform: rotate(-16deg);
}

.avatar-scene__ear--b {
  right: 14%;
  transform: rotate(16deg);
}

.avatar-scene__eye {
  top: 42%;
  width: 8%;
  height: 8%;
  border-radius: 50%;
  background: rgba(60, 27, 36, 0.84);
}

.avatar-scene__eye--a {
  left: 32%;
}

.avatar-scene__eye--b {
  right: 32%;
}

.avatar-scene__cheek {
  top: 54%;
  width: 11%;
  height: 7%;
  border-radius: 50%;
  background: rgba(255, 201, 211, 0.64);
}

.avatar-scene__cheek--a {
  left: 18%;
}

.avatar-scene__cheek--b {
  right: 18%;
}

.avatar-scene__mouth {
  left: 50%;
  top: 58%;
  width: 14%;
  height: 8%;
  border-bottom: 2px solid rgba(60, 27, 36, 0.7);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.avatar-scene__glyph {
  right: 10%;
  top: 14%;
  display: grid;
  place-items: center;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: white;
  font-size: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 18px rgba(102, 39, 56, 0.14);
}

.gallery-chip,
.poster-chip,
.match-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.gallery-chip {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #d17882, #a64d62);
  box-shadow: 0 18px 28px rgba(166, 77, 98, 0.25);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-tertiary {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(118, 89, 98, 0.1);
}

.is-hidden {
  display: none;
}

.quiz-shell {
  width: min(820px, 100%);
  margin: 0 auto;
}

.quiz-topbar,
.result-actions-top {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.quiz-progress {
  flex: 1;
}

.quiz-progress__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(199, 106, 118, 0.12);
}

.quiz-progress__track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b2bc, #b65a68);
  transition: width 0.24s ease;
}

.quiz-progress__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.quiz-card {
  padding: 32px;
}

.quiz-card h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.option-stack {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px 18px 18px 16px;
  border-radius: 24px;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 97, 112, 0.26);
  box-shadow: var(--shadow-md);
}

.option-card.is-selected {
  border-color: rgba(183, 97, 112, 0.38);
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.96), rgba(250, 238, 240, 0.96));
}

.option-card__index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(199, 106, 118, 0.14);
  color: var(--accent-strong);
  font-weight: 800;
}

.option-card__label {
  font-size: 15px;
  line-height: 1.7;
}

.quiz-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.quiz-hint {
  flex: 1;
  min-width: 220px;
  margin: 0;
}

.result-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.poster-card {
  min-height: 420px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 32%),
    linear-gradient(140deg, color-mix(in srgb, var(--poster-a, #f8d8d6) 65%, white), color-mix(in srgb, var(--poster-b, #a65f63) 100%, white 6%));
  color: #fff7f2;
}

.poster-card__glow {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.poster-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 30px;
}

.poster-visual {
  margin-bottom: 8px;
}

.poster-code {
  margin-top: 14px;
  font-size: clamp(3.8rem, 7vw, 6rem);
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.poster-title {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.poster-subtitle {
  max-width: 420px;
  margin-top: 12px;
  color: rgba(255, 247, 242, 0.88);
  line-height: 1.75;
}

.poster-chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.poster-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  color: rgba(255, 247, 242, 0.88);
  font-size: 13px;
}

.result-copy,
.match-card,
.dimension-card {
  padding: 28px;
}

.result-paragraph {
  margin: 20px 0 0;
}

.result-highlight {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.result-highlight strong {
  font-size: 13px;
}

.share-box {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(118, 89, 98, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
}

.share-box__label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-box input {
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(118, 89, 98, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
}

.match-list,
.dimension-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.match-item__body {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: center;
}

.match-item__content {
  min-width: 0;
}

.match-item,
.dimension-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(118, 89, 98, 0.1);
}

.match-item__top,
.dimension-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-item__code,
.dimension-item__score {
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-item h3,
.dimension-item h3 {
  margin: 10px 0 0;
  font-size: 17px;
}

.match-item p,
.dimension-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.reveal-gallery {
  grid-column: 1 / -1;
  padding: 28px;
}

.match-pill {
  color: var(--accent-strong);
  background: rgba(199, 106, 118, 0.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translate(-50%, 30px);
  opacity: 0;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(46, 32, 37, 0.92);
  color: white;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes teaseFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes creatureBounce {
  0%,
  100% {
    transform: translateX(-50%) rotateX(10deg) rotateY(var(--scene-tilt)) translateY(0);
  }
  50% {
    transform: translateX(-50%) rotateX(10deg) rotateY(var(--scene-tilt)) translateY(-8px);
  }
}

@keyframes sceneSpark {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes sceneOrbitA {
  from {
    transform: translateX(-50%) rotateX(72deg) rotate(var(--scene-tilt));
  }
  to {
    transform: translateX(-50%) rotateX(72deg) rotate(calc(var(--scene-tilt) + 360deg));
  }
}

@keyframes sceneOrbitB {
  from {
    transform: translateX(-50%) rotateY(72deg) rotate(var(--scene-tilt-negative));
  }
  to {
    transform: translateX(-50%) rotateY(72deg) rotate(calc(var(--scene-tilt-negative) + 360deg));
  }
}

@media (max-width: 1080px) {
  .hero,
  .result-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .site-header {
    top: 8px;
    padding: 12px 14px;
    border-radius: 24px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .gallery-section,
  .quiz-card,
  .result-copy,
  .match-card,
  .dimension-card,
  .poster-card {
    padding: 22px;
  }

  .home-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

  .quiz-topbar,
  .result-actions-top,
  .quiz-footer,
  .share-box__row,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-nav .btn,
  .result-actions-top__group .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .poster-caption {
    flex-direction: column;
  }

  .match-item__body {
    grid-template-columns: 1fr;
  }
}
