:root {
  --ink: #1b1f2a;
  --navy: #12283a;
  --blue: #234766;
  --paper: #f8ecdc;
  --cream: #f1e3d2;
  --mist: #e6f1ee;
  --gold: #b67b2e;
  --coral: #c8684f;
  --teal: #1f7b78;
  --purple: #5b3d87;
  --leaf: #677f55;
  --line: rgba(27, 31, 42, 0.14);
  --shadow: 0 18px 45px rgba(24, 31, 42, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.chronicle-open {
  overflow: hidden;
}

.cursor-magic {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  pointer-events: none;
}

.cursor-spark {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--spark-size, 5px);
  height: var(--spark-size, 5px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--spark-core, rgba(255, 246, 200, 1)) 0 18%, var(--spark-glow, rgba(225, 167, 80, 0.72)) 34%, transparent 70%);
  box-shadow: 0 0 var(--spark-blur, 10px) var(--spark-shadow, rgba(215, 148, 60, 0.45));
  transform: translate(-50%, -50%);
  animation: cursorFade var(--spark-life, 760ms) ease-out forwards;
}

@keyframes cursorFade {
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--trail-x)), calc(-50% + var(--trail-y))) scale(0.15);
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 104px;
  padding: 18px clamp(28px, 4vw, 70px);
  color: #785024;
  transition:
    height 240ms ease,
    padding 240ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(248, 236, 220, 0.94);
  box-shadow: 0 10px 30px rgba(77, 51, 30, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: block;
  width: 242px;
  height: 64px;
  text-decoration: none;
  transition:
    width 240ms ease,
    height 240ms ease;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header.is-scrolled .brand {
  width: 190px;
  height: 50px;
}

.desktop-nav,
.menu-panel a {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.primary-link {
  border: 1px solid rgba(154, 100, 30, 0.64);
  background: rgba(248, 236, 220, 0.46);
  color: #85551d;
  box-shadow: 0 8px 22px rgba(124, 80, 31, 0.08);
  text-transform: uppercase;
  transition:
    min-height 240ms ease,
    padding 240ms ease,
    background-color 180ms ease;
}

.primary-link:hover {
  background: rgba(255, 249, 240, 0.8);
}

.site-header.is-scrolled .primary-link {
  min-height: 40px;
  padding: 10px 18px;
}

.button-primary {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 24px rgba(31, 123, 120, 0.16);
}

.button-secondary {
  border: 1px solid rgba(154, 100, 30, 0.62);
  background: transparent;
  color: #8a591e;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 92px;
  height: 46px;
  padding: 0;
  border: 0;
  color: #6e4a2a;
  background: transparent;
  text-transform: uppercase;
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 21px;
}

.menu-icon i {
  display: block;
  width: 21px;
  height: 1px;
  background: currentColor;
}

.menu-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.menu-panel {
  position: fixed;
  top: 94px;
  right: clamp(24px, 4vw, 70px);
  display: grid;
  min-width: 245px;
  padding: 12px;
  border: 1px solid rgba(154, 100, 30, 0.2);
  border-radius: 8px;
  background: rgba(248, 236, 220, 0.98);
  color: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.site-header.is-scrolled .menu-panel {
  top: 66px;
}

.menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel a {
  padding: 14px 12px;
  border-radius: 6px;
}

.menu-panel a:hover {
  background: rgba(31, 123, 120, 0.1);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92svh;
  padding: 126px clamp(24px, 4vw, 70px) 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.94), rgba(247, 230, 209, 0.46) 42%, rgba(255, 250, 241, 0.8)),
    var(--cream);
  color: var(--navy);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.68fr);
  gap: clamp(20px, 2.5vw, 48px);
  align-items: center;
  width: min(1600px, 100%);
  margin: 0 auto;
}

.hero-content {
  display: grid;
  justify-items: center;
  min-width: 0;
  max-width: 410px;
  text-align: center;
}

.hero-brand-lockup {
  display: grid;
  justify-items: center;
}

.hero-logo-original {
  width: min(184px, 48vw);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(74, 48, 32, 0.12));
}

.hero h1 {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.4vw, 72px);
  font-weight: 500;
  line-height: 0.94;
}

.hero-tagline {
  margin: 14px 0 0;
  color: #9a651f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 450px;
  margin: 22px 0 0;
  color: #263e63;
  font-size: 17px;
  line-height: 1.62;
}

.hero-proof-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-proof-points span {
  padding: 8px 11px;
  border: 1px solid rgba(182, 123, 46, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.7);
  color: #7f5a29;
  font-size: 12px;
  font-weight: 800;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(260px, 80%);
  margin: 26px 0 0;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(182, 123, 46, 0.56);
}

.hero-divider span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-closing {
  margin: 22px 0 0;
  color: #39366f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.32;
}

.hero-closing strong {
  font-weight: 700;
}

.hero-closing em {
  color: var(--coral);
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-art-column {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.hero-art {
  --hero-art-y: 0px;
  min-width: 0;
  margin: 0;
  transform: translate3d(0, var(--hero-art-y), 0);
  will-change: transform;
}

.hero-art img {
  width: 100%;
  max-height: 56svh;
  object-fit: contain;
  filter: saturate(1.04) contrast(1.01);
}

.hero-stage-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 42px);
  width: min(920px, 100%);
  margin-top: 48px;
  text-align: center;
}

.hero-stage {
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
}

.hero-stage h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 500;
  line-height: 1;
}

.hero-stage-wonder h2,
.hero-stage-wonder .hero-stage-age,
.hero-stage-wonder .hero-stage-count {
  color: #a4691e;
}

.hero-stage-adventure h2,
.hero-stage-adventure .hero-stage-age,
.hero-stage-adventure .hero-stage-count {
  color: var(--teal);
}

.hero-stage-legend h2,
.hero-stage-legend .hero-stage-age,
.hero-stage-legend .hero-stage-count {
  color: var(--purple);
}

.hero-stage-age {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-stage-copy {
  min-height: 42px;
  max-width: 210px;
  margin: 12px 0 0;
  color: #5a514b;
  font-size: 13px;
  line-height: 1.38;
}

.hero-stage-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stage-count span {
  position: relative;
  width: 21px;
  height: 21px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.hero-stage-count span::before,
.hero-stage-count span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.hero-stage-count span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.stage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.hero-stage .stage-link {
  margin-top: 14px;
}

.stage-link:hover {
  transform: translateY(-2px);
}

.stage-link-wonder {
  border: 1px solid rgba(182, 123, 46, 0.64);
  background: rgba(255, 247, 229, 0.5);
  color: #97601b;
}

.stage-link-adventure {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 10px 22px rgba(31, 123, 120, 0.14);
}

.stage-link-legend {
  border: 1px solid var(--purple);
  background: var(--purple);
  color: white;
  box-shadow: 0 10px 22px rgba(91, 61, 135, 0.14);
}

.hero-stage-note {
  grid-column: 1 / -1;
  position: relative;
  justify-self: center;
  margin: 20px 0 0;
  padding-bottom: 18px;
  color: #62574e;
  font-size: 13px;
}

.hero-stage-note::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 7px;
  height: 7px;
  background: var(--purple);
  transform: translateX(-50%) rotate(45deg);
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  display: block;
  width: var(--star-size, 10px);
  height: var(--star-size, 10px);
  color: var(--star-color, var(--gold));
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  filter: drop-shadow(0 0 var(--star-glow, 7px) currentColor);
  animation: starBlink var(--star-duration, 2.4s) ease-in-out var(--star-delay, 0s) infinite;
}

.star-one { left: 8%; top: 25%; animation-delay: -0.4s; }
.star-two { left: 34%; top: 18%; width: 7px; height: 7px; animation-delay: -1.2s; }
.star-three { right: 11%; top: 22%; width: 12px; height: 12px; animation-delay: -1.8s; }
.star-four { right: 6%; bottom: 22%; width: 7px; height: 7px; background: var(--purple); animation-delay: -0.8s; }
.star-five { left: 27%; bottom: 17%; width: 8px; height: 8px; background: var(--teal); animation-delay: -2s; }
.star-six { right: 42%; bottom: 12%; width: 6px; height: 6px; animation-delay: -1.5s; }
.star-seven { left: 4%; top: 58%; width: 12px; height: 12px; background: var(--coral); animation-delay: -0.2s; animation-duration: 2.1s; }
.star-eight { left: 41%; top: 8%; width: 7px; height: 7px; animation-delay: -1.1s; animation-duration: 1.8s; }
.star-nine { right: 34%; top: 12%; width: 10px; height: 10px; animation-delay: -0.7s; animation-duration: 2.8s; }
.star-ten { right: 18%; top: 48%; width: 12px; height: 12px; background: var(--teal); animation-delay: -2.2s; animation-duration: 3s; }
.star-eleven { left: 47%; bottom: 24%; width: 13px; height: 13px; animation-delay: -1.6s; animation-duration: 2s; }
.star-twelve { right: 27%; bottom: 8%; width: 9px; height: 9px; background: var(--purple); animation-delay: -0.9s; animation-duration: 2.6s; }
.star-thirteen { left: 18%; top: 72%; width: 8px; height: 8px; animation-delay: -1.9s; animation-duration: 2.3s; }
.star-fourteen { right: 3%; top: 69%; width: 10px; height: 10px; animation-delay: -0.5s; animation-duration: 2.9s; }
.star-fifteen { left: 58%; top: 29%; width: 7px; height: 7px; background: var(--coral); animation-delay: -1.3s; animation-duration: 1.9s; }
.star-sixteen { right: 51%; top: 37%; width: 11px; height: 11px; animation-delay: -2.1s; animation-duration: 2.5s; }

.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-section,
.process-section,
.universes-section,
.atlas-section,
.create-section,
.products-section,
.care-seal-section,
.faq-section {
  padding: 96px 0;
  scroll-margin-top: 96px;
}

.intro-section {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 56px;
  align-items: center;
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.07;
  color: var(--navy);
}

h3 {
  margin: 0;
  color: var(--navy);
}

.intro-grid p:not(.section-kicker),
.section-heading p:not(.section-kicker),
.atlas-grid p,
.faq-list p {
  font-size: 18px;
  line-height: 1.68;
}

.definition-cards {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.definition-cards article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid rgba(18, 40, 58, 0.08);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
}

.definition-cards span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(31, 123, 120, 0.1);
  color: var(--teal);
  font-weight: 850;
}

.definition-cards strong {
  color: var(--navy);
  font-size: 16px;
}

.definition-cards p {
  margin: 0;
  color: rgba(27, 31, 42, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.intro-media img,
.atlas-panel,
.product-card,
.story-lab,
.faq-list details {
  border-radius: 8px;
}

.intro-media img {
  width: 100%;
  box-shadow: var(--shadow);
}

.process-section {
  background: #f0f7f4;
}

.experience-section {
  padding: 0 0 96px;
  background: #f0f7f4;
}

.experience-video-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 260px;
  overflow: hidden;
}

.experience-video-band video {
  width: 100%;
  height: 310px;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
}

.experience-copy {
  display: grid;
  max-width: 880px;
  margin-top: 32px;
  padding: 34px;
  border: 1px solid rgba(182, 123, 46, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 18px 40px rgba(18, 40, 58, 0.12);
}

.experience-copy h2 {
  max-width: 760px;
}

.experience-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
}

.section-heading {
  max-width: 770px;
  margin-bottom: 42px;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(18, 40, 58, 0.2);
}

.process-line article {
  position: relative;
  padding: 30px 24px 0 0;
}

.process-line article::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
}

.process-line span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 850;
}

.process-line h3 {
  font-size: 22px;
  line-height: 1.2;
}

.process-line p {
  font-size: 16px;
  line-height: 1.62;
}

.universes-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  transition:
    background-color 760ms cubic-bezier(0.2, 0.72, 0.2, 1),
    box-shadow 760ms ease;
}

.universes-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 238, 166, 0.14), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(84, 216, 230, 0.12), transparent 32%),
    radial-gradient(circle at 66% 78%, rgba(168, 120, 255, 0.14), transparent 34%);
  opacity: 0.72;
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.universes-section.is-transitioning::before {
  opacity: 1;
  transform: scale(1.04);
}

.universes-section .section-shell {
  position: relative;
  z-index: 1;
}

.universes-section[data-stage="wonder"] {
  background: #173f46;
}

.universes-section[data-stage="adventure"] {
  background: #123450;
}

.universes-section[data-stage="legend"] {
  background: #2b304f;
}

.universes-section h2,
.universes-section h3,
.universes-section .section-heading p {
  color: white;
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.stage-tab {
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: left;
}

.stage-tab strong,
.stage-tab span {
  display: block;
}

.stage-tab strong {
  font-size: 20px;
}

.stage-tab span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.stage-tab.active {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.stage-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 30px;
  align-items: stretch;
}

.stage-copy {
  display: grid;
  align-content: start;
  min-height: 420px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stage-age {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 850;
}

.stage-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  color: white;
}

.stage-copy p {
  font-size: 18px;
  line-height: 1.68;
}

.stage-copy blockquote {
  margin: 32px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
}

.stage-visual {
  position: relative;
  align-self: end;
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 8px;
}

.stage-visual img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

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

.universe-card {
  cursor: pointer;
  position: relative;
  min-height: 292px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  perspective: 1200px;
  transform: translateY(0);
  transition:
    box-shadow 240ms ease,
    transform 240ms ease;
}

.universe-card:hover,
.universe-card:focus-visible {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2), 0 0 28px rgba(255, 218, 117, 0.16);
  transform: translateY(-4px);
}

.universe-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.universe-card.is-flipped .universe-card-inner {
  transform: rotateY(180deg);
}

.universe-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 128px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.95);
  backface-visibility: hidden;
}

.universe-card-back {
  align-content: start;
  grid-template-rows: auto;
  gap: 6px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 238, 166, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(20, 52, 72, 0.98), rgba(16, 36, 56, 0.98));
  color: #fffaf1;
  transform: rotateY(180deg);
}

.universes-section.is-transitioning .stage-copy,
.universes-section.is-transitioning .universe-card,
.universes-section.is-transitioning .universe-story-panel {
  animation: universeReveal 620ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.universe-card-front img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.universe-card-front div {
  padding: 18px;
}

.universe-card span {
  color: var(--teal);
  font-weight: 850;
}

.universe-card h4 {
  margin: 10px 0 8px;
  font-size: 21px;
  color: var(--navy);
}

.universe-card p {
  margin: 0;
  line-height: 1.55;
}

.universe-card small {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 40, 58, 0.1);
  color: rgba(27, 31, 42, 0.62);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.42;
}

.universe-card-back span {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.universe-card-back h4 {
  margin: 0 0 4px;
  color: #fffaf1;
  font-size: 20px;
}

.universe-card-back p {
  color: rgba(255, 250, 241, 0.82);
  font-size: 12.5px;
  line-height: 1.34;
}

.universe-card-back p strong {
  color: #fffaf1;
}

.universe-card-back small {
  margin-top: 2px;
  padding-top: 8px;
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 250, 241, 0.68);
  font-size: 11px;
  line-height: 1.32;
}

.universe-story-panel {
  display: none;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 238, 166, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.04);
}

.universe-story-panel[data-stage="wonder"] {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 210, 122, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.09);
}

.universe-story-panel[data-stage="adventure"] {
  background:
    radial-gradient(circle at 16% 18%, rgba(84, 216, 230, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.09);
}

.universe-story-panel[data-stage="legend"] {
  background:
    radial-gradient(circle at 16% 18%, rgba(168, 120, 255, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.09);
}

.universe-story-panel > div:first-child span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.universe-story-panel h3 {
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.universe-story-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.universe-story-grid {
  display: grid;
  gap: 12px;
}

.universe-story-grid section {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(9, 24, 38, 0.22);
}

.universe-story-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #fffaf1;
  font-size: 13px;
}

.atlas-section {
  background: var(--cream);
}

.atlas-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(340px, 1.16fr);
  gap: 54px;
  align-items: center;
}

.atlas-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.atlas-control {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 760;
}

.atlas-control.active {
  background: var(--navy);
  color: white;
}

.atlas-panel {
  position: relative;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.atlas-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.atlas-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.94);
  color: var(--ink);
}

.atlas-note span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--coral);
  font-weight: 850;
}

.atlas-note h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.atlas-note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.52;
}

.create-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(74, 171, 184, 0.12), transparent 28%),
    radial-gradient(circle at 14% 74%, rgba(217, 165, 70, 0.13), transparent 30%),
    #fbfcf8;
}

.chronicle-overview {
  display: grid;
  gap: 34px;
}

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

.chronicle-explain-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(18, 40, 58, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 243, 234, 0.84)),
    #fffdf8;
  box-shadow: 0 18px 42px rgba(18, 40, 58, 0.07);
}

[data-chronicle-card="known"],
[data-chronicle-card="mirror"] {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.chronicle-explain-grid span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.chronicle-explain-grid h3,
.chronicle-callout h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.12;
}

.chronicle-explain-grid p,
.chronicle-callout p {
  margin: 0;
  color: rgba(27, 31, 42, 0.68);
  line-height: 1.65;
}

.overview-meter-list {
  display: grid;
  gap: 10px;
}

.overview-known-summary,
.overview-detail-summary {
  display: grid;
  gap: 8px;
}

.chronicle-explain-grid .overview-known-line,
.chronicle-explain-grid .overview-detail-summary span {
  display: block;
  color: #a87522;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.55;
}

.overview-known-summary .overview-keepsakes {
  align-self: end;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 4px;
}

.overview-known-summary .overview-keepsakes-protagonist .overview-keepsake {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  box-shadow:
    0 0 0 3px rgba(255, 250, 241, 0.66),
    0 0 20px rgba(182, 123, 46, 0.28);
}

.overview-known-visual-note {
  margin-top: 6px;
}

.overview-keepsake-protagonista {
  border-color: rgba(217, 165, 70, 0.46);
  color: #b67b2e;
}

.overview-meter-row {
  display: grid;
  gap: 6px;
  color: rgba(27, 31, 42, 0.68);
  font-weight: 800;
}

.overview-meter {
  position: relative;
  display: block;
  height: 9px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(18, 40, 58, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(18, 40, 58, 0.05),
    0 0 16px rgba(217, 165, 70, 0.08);
}

.overview-meter::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 255, 255, 0.52) 48%,
    rgba(255, 255, 255, 0.18) 56%,
    transparent 70%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0.54;
  transform: translateX(-92%);
  animation: overviewMeterSheen 3.8s ease-in-out infinite;
  pointer-events: none;
}

.overview-meter > span,
.overview-meter .overview-meter-fill {
  position: relative;
  display: block;
  width: var(--overview-meter-value, 0%);
  height: 100%;
  overflow: visible;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #fff4c9, #e8c56a 48%, #b67b2e),
    #d9a546;
  box-shadow: 0 0 14px rgba(217, 165, 70, 0.28);
  transition: width 720ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: overviewMeterAlive 3.6s ease-in-out infinite;
}

.overview-meter-list.has-favorite-color .overview-meter > span,
.overview-meter-list.has-favorite-color .overview-meter .overview-meter-fill {
  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 226, 0.95),
      var(--favorite-color, #d9a546),
      rgba(var(--favorite-rgb, 217, 165, 70), 0.78)
    ),
    var(--favorite-color, #d9a546);
  box-shadow: 0 0 16px rgba(var(--favorite-rgb, 217, 165, 70), 0.28);
}

.overview-meter > span::before,
.overview-meter .overview-meter-fill::before {
  content: "";
  position: absolute;
  inset: -8px -10px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 48%, rgba(255, 255, 255, 0.92) 0 1px, transparent 1.8px),
    radial-gradient(circle at 34% 26%, rgba(255, 242, 185, 0.86) 0 1.2px, transparent 2px),
    radial-gradient(circle at 58% 70%, rgba(126, 226, 224, 0.56) 0 1.1px, transparent 2px),
    radial-gradient(circle at 82% 42%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.8px);
  background-size: 42px 18px, 58px 20px, 50px 22px, 46px 18px;
  filter: drop-shadow(0 0 5px rgba(255, 238, 176, 0.52));
  opacity: 0.62;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: overviewMeterParticles 5.2s linear infinite;
}

.overview-meter > span::after,
.overview-meter .overview-meter-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 218, 0.98), rgba(255, 232, 162, 0.52) 44%, transparent 72%);
  filter: blur(0.2px);
  opacity: 0.76;
  transform: translateY(-50%);
  pointer-events: none;
  animation: overviewMeterComet 2.6s ease-in-out infinite;
}

.overview-meter .overview-meter-fill.is-complete {
  animation:
    overviewMeterAlive 3.6s ease-in-out infinite,
    overviewMeterCompletePulse 3.1s ease-in-out infinite;
}

.overview-keepsakes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 2px;
}

.overview-meter-list .overview-keepsakes {
  gap: 10px;
  margin-top: 10px;
}

.overview-meter-list .overview-keepsake {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  box-shadow:
    0 0 0 3px rgba(255, 250, 241, 0.62),
    0 0 18px rgba(74, 171, 184, 0.22);
}

.overview-keepsake {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  box-sizing: border-box;
  min-width: 26px;
  width: 26px;
  height: 26px;
  overflow: visible;
  border: 1px solid rgba(182, 123, 46, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 246, 210, 0.72), transparent 35%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.84), rgba(248, 236, 220, 0.54));
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    0 0 0 2px rgba(255, 250, 241, 0.48),
    0 0 14px rgba(182, 123, 46, 0.2);
  animation: keepsakePulse 4.2s ease-in-out infinite;
}

.overview-keepsake:nth-child(2n) {
  animation-delay: -1.4s;
}

.overview-keepsake:nth-child(3n) {
  animation-delay: -2.6s;
}

.overview-keepsake img {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.overview-keepsake::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 3;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 250, 218, 0.92) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 42%, rgba(126, 226, 224, 0.76) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 84%, rgba(255, 232, 162, 0.84) 0 0.9px, transparent 1.8px);
  opacity: 0;
  pointer-events: none;
  animation: keepsakeSparkle 3.8s ease-in-out infinite;
}

.overview-keepsake::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(244, 210, 122, 0.3), transparent 64%);
  animation: keepsakeAura 4.2s ease-in-out infinite;
}

.overview-keepsake-armadura {
  border-color: rgba(86, 212, 210, 0.5);
  color: var(--teal);
  box-shadow:
    0 0 0 2px rgba(255, 250, 241, 0.48),
    0 0 14px rgba(86, 212, 210, 0.22);
}

.overview-keepsake-lugar {
  border-color: rgba(142, 106, 216, 0.45);
  color: var(--purple);
  box-shadow:
    0 0 0 2px rgba(255, 250, 241, 0.48),
    0 0 14px rgba(142, 106, 216, 0.2);
}

.chronicle-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(217, 165, 70, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 228, 150, 0.25), transparent 30%),
    linear-gradient(135deg, #fffaf0, #eef8f4);
  box-shadow: var(--shadow);
}

.chronicle-callout > div {
  display: grid;
  gap: 10px;
}

.chronicle-callout-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  min-width: 220px;
}

.chronicle-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 234, 173, 0.22), transparent 28%),
    radial-gradient(circle at 82% 64%, rgba(99, 202, 216, 0.16), transparent 24%),
    rgba(9, 21, 34, 0.7);
  backdrop-filter: blur(18px);
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: none;
}

.chronicle-overlay[hidden] {
  display: none;
}

.chronicle-overlay::before,
.chronicle-overlay::after {
  content: "";
  position: absolute;
  inset: 4%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 244, 197, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 78%, rgba(116, 224, 232, 0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(255, 214, 132, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 72%, rgba(174, 130, 232, 0.76) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.85) 0 1px, transparent 3px),
    radial-gradient(circle at 54% 90%, rgba(255, 246, 210, 0.8) 0 1px, transparent 3px);
  filter: drop-shadow(0 0 10px rgba(255, 225, 150, 0.55));
  animation: chronicleStarBloom 980ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chronicle-overlay::after {
  inset: 10%;
  transform: rotate(18deg) scale(0.86);
  animation-delay: 120ms;
}

.chronicle-wind {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.chronicle-wind::before,
.chronicle-wind::after {
  content: "";
  position: absolute;
  inset: -12% -24%;
  background:
    radial-gradient(circle at 4% 18%, rgba(255, 246, 210, 0.78) 0 1.4px, transparent 2.8px),
    radial-gradient(circle at 16% 68%, rgba(113, 225, 229, 0.54) 0 1.2px, transparent 2.5px),
    radial-gradient(circle at 28% 42%, rgba(255, 232, 162, 0.72) 0 1px, transparent 2.4px),
    radial-gradient(circle at 42% 78%, rgba(170, 130, 232, 0.48) 0 1.2px, transparent 2.5px),
    radial-gradient(circle at 58% 24%, rgba(255, 255, 255, 0.64) 0 1px, transparent 2.4px),
    radial-gradient(circle at 72% 54%, rgba(255, 224, 142, 0.68) 0 1.4px, transparent 2.8px),
    radial-gradient(circle at 88% 34%, rgba(116, 224, 232, 0.5) 0 1px, transparent 2.5px);
  background-size:
    270px 130px,
    340px 190px,
    420px 160px,
    360px 210px,
    300px 150px,
    460px 180px,
    380px 220px;
  filter: drop-shadow(0 0 8px rgba(255, 232, 162, 0.34));
  opacity: 0.42;
  transform: rotate(-8deg);
  animation: chronicleWindParticles 14s linear infinite;
}

.chronicle-wind::after {
  inset: -18% -34%;
  opacity: 0.24;
  filter: blur(0.2px) drop-shadow(0 0 12px rgba(139, 234, 220, 0.2));
  transform: rotate(-8deg) scale(1.16);
  animation-duration: 22s;
  animation-direction: reverse;
}

.chronicle-wind span {
  position: absolute;
  left: -18vw;
  width: min(46vw, 520px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 239, 177, 0.72), transparent);
  filter: drop-shadow(0 0 10px rgba(255, 232, 162, 0.42));
  opacity: 0;
  transform: rotate(-8deg);
  animation: chronicleWind 5.8s ease-in-out infinite;
}

.chronicle-wind span:nth-child(1) {
  top: 18%;
}

.chronicle-wind span:nth-child(2) {
  top: 39%;
  animation-delay: -2.2s;
}

.chronicle-wind span:nth-child(3) {
  top: 64%;
  animation-delay: -4.1s;
}

.chronicle-wind span:nth-child(4) {
  top: 78%;
  animation-delay: -1.1s;
}

.chronicle-panel {
  position: fixed;
  inset: 24px;
  margin: auto;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1420px, calc(100vw - 48px));
  height: min(880px, calc(100vh - 48px));
  min-height: 620px;
  border: 1px solid rgba(255, 242, 204, 0.38);
  border-radius: 10px;
  background: rgba(255, 250, 241, 0.98);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    0 0 80px rgba(255, 224, 146, 0.1);
  overflow: hidden;
  transform: translateY(26px) scale(0.985);
  opacity: 0;
  animation: chroniclePanelIn 420ms cubic-bezier(0.2, 0.78, 0.22, 1) forwards;
}

.chronicle-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 2.6vw, 34px);
  border-bottom: 1px solid rgba(18, 40, 58, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(239, 249, 246, 0.94)),
    #fffaf0;
}

.chronicle-panel-header h2 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
}

.chronicle-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chronicle-panel .story-lab {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.chronicle-panel .discovery-flow {
  min-height: 0;
  height: 100%;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  overscroll-behavior: contain;
}

.chronicle-panel .form-intro {
  min-height: 100%;
  max-width: 100%;
}

.chronicle-panel .discovery-form {
  position: relative;
  height: 100%;
  min-height: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  padding-bottom: 132px;
  overflow-x: hidden;
}

.chronicle-panel .form-chapter,
.chronicle-panel fieldset,
.chronicle-panel label {
  min-width: 0;
  width: 100%;
}

.chronicle-panel .form-chapter.active {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.chronicle-panel .mirror {
  position: relative;
  top: auto;
  align-self: stretch;
  height: 100%;
  max-height: none;
  padding: 0 30px 30px;
  overflow-x: hidden;
  overflow-y: auto;
}

.chronicle-panel .mirror-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -30px;
  padding: 30px 30px 18px;
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(18, 40, 58, 0.98) 100%);
  box-shadow: 0 16px 28px rgba(8, 21, 34, 0.22);
}

.chronicle-panel .avatar-scene {
  position: sticky;
  top: 132px;
  z-index: 18;
  box-shadow: 0 18px 42px rgba(8, 21, 34, 0.28);
}

.chronicle-panel .form-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  align-self: end;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  margin: 0;
  padding: 16px 30px 22px;
  border-top: 1px solid rgba(18, 40, 58, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), #fffaf2 35%),
    #fffaf2;
  backdrop-filter: blur(12px);
}

.chronicle-panel .form-validation {
  grid-column: 1 / -1;
  grid-row: 2;
}

.chronicle-panel .chronicle-progress {
  grid-column: 2;
  grid-row: 1;
}

.chronicle-panel .form-nav > div:not(.chronicle-progress) {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
}

@keyframes chronicleWind {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) rotate(-8deg) scaleX(0.35);
  }

  18% {
    opacity: 0.86;
  }

  60% {
    opacity: 0.22;
  }

  100% {
    opacity: 0;
    transform: translate3d(136vw, -26px, 0) rotate(-8deg) scaleX(1);
  }
}

@keyframes chronicleWindParticles {
  0% {
    opacity: 0.08;
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
    transform: translate3d(-8%, 18px, 0) rotate(-8deg);
  }

  16%,
  82% {
    opacity: 0.42;
  }

  100% {
    opacity: 0.08;
    background-position:
      270px -28px,
      340px 22px,
      420px -18px,
      360px 24px,
      300px -16px,
      460px 18px,
      380px -22px;
    transform: translate3d(18%, -18px, 0) rotate(-8deg);
  }
}

@keyframes chroniclePanelIn {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.965);
    filter: saturate(0.9) brightness(1.06);
  }

  58% {
    filter: saturate(1.12) brightness(1.04);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes chronicleStarBloom {
  0% {
    opacity: 0;
    transform: scale(0.74) rotate(-6deg);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.18) rotate(6deg);
  }
}

.story-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 0;
  overflow: visible;
  scroll-margin-top: 90px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.discovery-flow {
  display: grid;
  align-content: start;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(246, 239, 228, 0.5), rgba(255, 255, 255, 0.96)),
    white;
}

.form-intro {
  display: grid;
  gap: 22px;
  min-height: 620px;
  padding: 34px;
  align-content: center;
}

.form-intro[hidden],
.discovery-form[hidden],
.form-chapter {
  display: none;
}

.form-intro h3 {
  max-width: 600px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.08;
}

.form-intro > p:not(.section-kicker) {
  max-width: 640px;
  margin: 0;
  color: rgba(27, 31, 42, 0.78);
  font-size: 18px;
  line-height: 1.68;
}

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

.discovery-promises span {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(18, 40, 58, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.25;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.journey-meta {
  margin: -10px 0 0 !important;
  color: rgba(27, 31, 42, 0.54);
  font-size: 13px !important;
}

.discovery-form {
  display: grid;
  gap: 20px;
  padding: 30px;
}

.form-chapter.active {
  display: grid;
  gap: 22px;
  animation: chapterIn 220ms ease both;
}

.chapter-heading {
  display: grid;
  gap: 8px;
}

.chapter-heading p {
  margin: 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.chapter-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.08;
}

.chapter-why {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(230, 241, 238, 0.74);
  color: rgba(27, 31, 42, 0.78);
  line-height: 1.55;
}

fieldset {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 850;
}

.field-label {
  color: var(--navy);
  font-weight: 760;
}

label,
.wide-label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(18, 40, 58, 0.22);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
}

input {
  min-height: 46px;
  padding: 10px 12px;
}

.input-help {
  display: block;
  color: rgba(27, 31, 42, 0.64);
  font-size: 14px;
  font-weight: 520;
  line-height: 1.42;
}

.age-stage-badge {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: rgba(31, 123, 120, 0.08);
  color: var(--navy);
}

.age-stage-badge > span {
  color: rgba(27, 31, 42, 0.58);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.age-stage-badge strong {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.age-stage-badge small {
  color: rgba(27, 31, 42, 0.58);
}

.age-stage-badge[data-stage="wonder"] {
  border-left-color: var(--gold);
  background: rgba(182, 123, 46, 0.08);
}

.age-stage-badge[data-stage="wonder"] strong {
  color: var(--gold);
}

.age-stage-badge[data-stage="legend"] {
  border-left-color: var(--purple);
  background: rgba(91, 61, 135, 0.08);
}

.age-stage-badge[data-stage="legend"] strong {
  color: var(--purple);
}

.color-field {
  display: grid;
  gap: 9px;
}

.audience-field {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(31, 123, 120, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 238, 166, 0.22), transparent 34%),
    rgba(230, 241, 238, 0.34);
}

.audience-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.audience-choice-grid button {
  min-height: 46px;
  padding: 10px;
  border: 1px solid rgba(31, 123, 120, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(27, 31, 42, 0.7);
  font-weight: 800;
}

.audience-choice-grid button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 24px rgba(31, 123, 120, 0.18);
}

.color-field input {
  min-height: 42px;
}

.color-choice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.color-choice-grid button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 8px 6px;
  border: 1px solid rgba(18, 40, 58, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(27, 31, 42, 0.66);
  font-size: 11px;
  font-weight: 820;
}

.color-choice-grid button::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow:
    0 0 0 1px rgba(18, 40, 58, 0.12),
    0 6px 14px rgba(18, 40, 58, 0.1);
}

.color-choice-grid button[aria-pressed="true"] {
  border-color: var(--teal);
  background: rgba(230, 241, 238, 0.9);
  color: var(--navy);
  box-shadow: 0 0 0 2px rgba(31, 123, 120, 0.12);
}

.photo-field {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "dropzone"
    "count"
    "nudge"
    "preview"
    "no-photo"
    "manual";
  gap: 10px;
  scroll-margin-top: 300px;
}

.photo-field > .field-label {
  grid-area: title;
}

.photo-field .photo-dropzone {
  grid-area: dropzone;
}

.photo-field .photo-count {
  grid-area: count;
}

.photo-field .photo-nudge {
  grid-area: nudge;
}

.photo-field .photo-preview-grid {
  grid-area: preview;
}

.photo-field .no-photo-choice {
  grid-area: no-photo;
}

.photo-field .manual-visual-fields {
  grid-area: manual;
}

.photo-field.has-photos {
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
  grid-template-areas:
    "title title"
    "dropzone preview"
    "count preview"
    "nudge nudge"
    "manual manual";
  align-items: start;
  column-gap: 14px;
}

.avatar-kind-field {
  display: grid;
  gap: 9px;
}

.avatar-kind-field > small,
.photo-count,
.photo-nudge {
  margin: 0;
  color: rgba(27, 31, 42, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.photo-nudge {
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 238, 166, 0.18);
  color: rgba(27, 31, 42, 0.72);
  font-weight: 700;
}

.avatar-kind-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(31, 123, 120, 0.26);
  border-radius: 8px;
}

.avatar-kind-control button {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid rgba(31, 123, 120, 0.18);
  background: rgba(31, 123, 120, 0.04);
  color: rgba(27, 31, 42, 0.66);
  font-weight: 750;
}

.avatar-kind-control button:last-child {
  border-right: 0;
}

.avatar-kind-control button[aria-pressed="true"] {
  background: var(--teal);
  color: white;
}

.photo-dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 126px;
  padding: 18px 16px;
  border: 1.5px dashed rgba(182, 123, 46, 0.42);
  border-radius: 8px;
  background: rgba(248, 236, 220, 0.42);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.photo-field.has-photos .photo-dropzone {
  min-height: 94px;
  padding: 12px 10px;
}

.photo-field.has-photos .photo-dropzone-icon {
  width: 26px;
  height: 26px;
  font-size: 18px;
}

.photo-field.has-photos .photo-dropzone strong {
  font-size: 14px;
}

.photo-field.has-photos .photo-dropzone small {
  font-size: 11px;
  line-height: 1.3;
}

.photo-dropzone:hover,
.photo-dropzone.is-dragging {
  border-color: var(--gold);
  background: rgba(248, 236, 220, 0.78);
}

.photo-dropzone.is-full {
  border-color: rgba(18, 40, 58, 0.16);
  background: rgba(18, 40, 58, 0.045);
  color: rgba(27, 31, 42, 0.52);
  cursor: not-allowed;
}

.photo-dropzone.is-full .photo-dropzone-icon {
  border-color: rgba(18, 40, 58, 0.18);
  color: rgba(27, 31, 42, 0.42);
}

.photo-dropzone-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(182, 123, 46, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
  font-weight: 500;
}

.photo-dropzone small {
  max-width: 390px;
  color: rgba(27, 31, 42, 0.58);
  font-weight: 500;
  line-height: 1.45;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 92px));
  align-content: start;
  align-items: start;
  gap: 10px;
}

@media (max-width: 640px) {
  .photo-field.has-photos {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "dropzone"
      "count"
      "preview"
      "nudge"
      "no-photo"
      "manual";
  }
}

.photo-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(182, 123, 46, 0.24);
  border-radius: 8px;
  background: var(--cream);
}

.photo-preview.is-primary {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(182, 123, 46, 0.16);
}

.photo-preview .photo-select {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview .photo-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(18, 40, 58, 0.78);
  color: white;
}

.photo-preview-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(18, 40, 58, 0.82);
  color: white;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

textarea {
  resize: vertical;
  min-height: 118px;
  padding: 12px;
  line-height: 1.5;
}

.field-note {
  margin: 0;
  color: rgba(27, 31, 42, 0.7);
  font-size: 15px;
  line-height: 1.5;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-group button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 760;
}

.chip-group button.selected {
  border-color: var(--teal);
  background: var(--mist);
}

.chip-group button.selected::before {
  content: attr(data-rank);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 850;
}

.selection-status {
  margin: -4px 0 0;
  color: rgba(27, 31, 42, 0.56);
  font-size: 13px;
}

.selection-status.has-selection {
  color: var(--teal);
  font-weight: 700;
}

.custom-option-block {
  display: grid;
  gap: 8px;
}

.custom-option-block > label {
  font-size: 14px;
}

.custom-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.custom-option-row button {
  min-width: 88px;
  border: 1px solid rgba(31, 123, 120, 0.34);
  border-radius: 8px;
  background: rgba(31, 123, 120, 0.08);
  color: var(--teal);
  font-weight: 800;
}

.universe-choice {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(31, 123, 120, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0, rgba(216, 120, 99, 0.13), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(31, 123, 120, 0.14), transparent 32%),
    #fffdf8;
}

.universe-choice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.universe-choice-header span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.universe-choice-header h4 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
}

.universe-choice > p {
  margin: 0;
  color: rgba(27, 31, 42, 0.72);
  font-size: 15px;
  line-height: 1.5;
}

.universe-choice-grid {
  display: grid;
  gap: 12px;
}

.universe-stage-choice {
  border: 1px solid rgba(18, 40, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.universe-stage-choice.is-recommended-stage {
  border-color: rgba(182, 123, 46, 0.34);
  background: rgba(255, 250, 241, 0.72);
}

.universe-stage-choice.has-active-stage {
  border-color: rgba(31, 123, 120, 0.34);
  box-shadow: 0 10px 24px rgba(18, 40, 58, 0.06);
}

.universe-stage-choice summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 850;
  list-style: none;
}

.universe-stage-choice.is-recommended-stage summary {
  background: rgba(182, 123, 46, 0.07);
}

.universe-stage-choice.has-active-stage summary {
  background: rgba(31, 123, 120, 0.08);
}

.universe-stage-choice summary::-webkit-details-marker {
  display: none;
}

.universe-stage-choice summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(18, 40, 58, 0.14);
  border-radius: 50%;
  color: var(--teal);
}

.universe-stage-choice[open] summary::after {
  content: "−";
}

.universe-stage-choice summary span {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.universe-stage-choice summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.universe-choice-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.universe-option {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 13px;
  border: 1px solid rgba(18, 40, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.universe-option:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 123, 120, 0.3);
  box-shadow: 0 10px 24px rgba(18, 40, 58, 0.08);
}

.universe-option.is-selected {
  border-color: var(--teal);
  background: rgba(230, 241, 238, 0.88);
  box-shadow:
    0 0 0 2px rgba(31, 123, 120, 0.13),
    0 12px 24px rgba(31, 123, 120, 0.12);
}

.universe-option.is-recommended:not(.is-selected) {
  border-color: rgba(182, 123, 46, 0.34);
}

.universe-option.is-recommended {
  position: relative;
}

.universe-option.is-recommended::after {
  content: "★";
  position: absolute;
  right: 11px;
  top: 9px;
  color: var(--gold);
  font-size: 14px;
}

.universe-option small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.universe-option strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.2;
}

.universe-option span {
  color: rgba(27, 31, 42, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.universe-option em {
  color: rgba(27, 31, 42, 0.58);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.universe-guidance {
  padding: 13px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(182, 123, 46, 0.08);
}

.universe-guidance.is-caution {
  border-left-color: var(--coral);
  background: rgba(200, 104, 79, 0.1);
}

.universe-guidance.is-soft {
  border-left-color: var(--purple);
  background: rgba(91, 61, 135, 0.1);
}

.treasure-builder {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(18, 40, 58, 0.12);
  border-radius: 8px;
  background: #fffaf1;
}

.armor-builder {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 123, 120, 0.15);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0, rgba(31, 123, 120, 0.09), transparent 32%),
    rgba(255, 253, 248, 0.86);
}

.treasure-builder h4,
.armor-builder h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 21px;
}

.treasure-list,
.armor-list {
  display: grid;
  gap: 10px;
}

.treasure-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(182, 123, 46, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.treasure-photo-control,
.armor-photo-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1.5px dashed rgba(182, 123, 46, 0.36);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 250, 241, 0.78);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.treasure-photo-control:hover,
.armor-photo-control:hover,
.treasure-photo-control.is-dragging,
.armor-photo-control.is-dragging,
.treasure-builder.is-dragging,
.armor-builder.is-dragging {
  border-color: var(--gold);
  background: rgba(248, 236, 220, 0.72);
  transform: translateY(-1px);
}

.treasure-builder.is-dragging,
.armor-builder.is-dragging {
  box-shadow:
    0 0 0 2px rgba(201, 155, 66, 0.22),
    0 18px 42px rgba(18, 40, 58, 0.1);
}

.treasure-photo-control img,
.armor-photo-control img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treasure-photo-control span,
.armor-photo-control span {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px;
  color: #9a651f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

.treasure-photo-control span::before,
.armor-photo-control span::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(182, 123, 46, 0.38);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
  font-weight: 500;
}

.treasure-fields {
  display: grid;
  gap: 8px;
}

.treasure-fields input,
.treasure-fields textarea {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

.treasure-fields textarea {
  min-height: 70px;
}

.treasure-tools {
  display: grid;
  align-content: start;
  gap: 5px;
}

.treasure-tools button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--navy);
}

.treasure-rank {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.add-treasure-button {
  min-height: 46px;
  border: 1.5px dashed rgba(182, 123, 46, 0.38);
  border-radius: 8px;
  background: rgba(182, 123, 46, 0.04);
  color: #96631f;
  font-weight: 800;
}

.armor-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 123, 120, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.armor-photo-control {
  border-color: rgba(31, 123, 120, 0.32);
  color: var(--teal);
  background: rgba(231, 247, 244, 0.58);
}

.armor-photo-control:hover {
  border-color: var(--teal);
  background: rgba(231, 247, 244, 0.86);
}

.armor-photo-control span {
  color: #17736f;
}

.armor-photo-control span::before {
  border-color: rgba(31, 123, 120, 0.34);
  color: var(--teal);
}

.armor-rank {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.armor-fields {
  display: grid;
  gap: 8px;
}

.armor-fields input,
.armor-fields textarea {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

.armor-tools {
  display: grid;
  align-content: start;
  gap: 5px;
}

.armor-tools button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--navy);
}

.required-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(202, 91, 73, 0.24);
  border-radius: 999px;
  background: rgba(202, 91, 73, 0.08);
  color: var(--coral);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.no-photo-choice {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(201, 155, 66, 0.28);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.72);
}

.no-photo-choice[hidden] {
  display: none !important;
}

.no-photo-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 850;
}

.no-photo-choice input {
  width: 18px;
  min-height: 18px;
}

.no-photo-choice p {
  margin: 0;
  color: rgba(27, 31, 42, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.manual-visual-fields,
.favorite-place-field {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 40, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.manual-visual-fields[hidden] {
  display: none !important;
}

.manual-visual-intro {
  display: grid;
  gap: 4px;
}

.manual-visual-intro strong {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-visual-intro p {
  margin: 0;
  color: rgba(27, 31, 42, 0.64);
  font-size: 13px;
  line-height: 1.45;
}

.manual-visual-fields.is-photo-notes {
  border-color: rgba(201, 155, 66, 0.22);
  background:
    radial-gradient(circle at 12% 0, rgba(217, 165, 70, 0.1), transparent 34%),
    rgba(255, 253, 248, 0.84);
}

.favorite-place-field {
  gap: 14px;
  padding: 18px;
  border-color: rgba(74, 171, 184, 0.22);
  background:
    radial-gradient(circle at 12% 0, rgba(74, 171, 184, 0.1), transparent 32%),
    rgba(255, 253, 248, 0.86);
}

.favorite-place-field h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 21px;
}

.favorite-place-field label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.favorite-place-field input,
.favorite-place-field textarea {
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.favorite-place-field textarea {
  min-height: 70px;
}

.favorite-place-field input::placeholder,
.favorite-place-field textarea::placeholder {
  color: rgba(27, 31, 42, 0.52);
  font-size: 13px;
  font-weight: 500;
}

.place-photo-control {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  height: 96px;
  min-height: 96px;
  padding: 0;
  overflow: hidden;
  border: 1.5px dashed rgba(74, 171, 184, 0.34);
  border-radius: 8px;
  background: rgba(74, 171, 184, 0.04);
  color: var(--teal);
  cursor: pointer;
  text-align: center;
}

.place-photo-control:hover,
.place-photo-control.is-dragging {
  border-color: var(--teal);
  background: rgba(230, 241, 238, 0.9);
  box-shadow: 0 0 0 2px rgba(31, 123, 120, 0.1);
}

.place-photo-control img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-photo-control.has-image {
  height: 96px;
  min-height: 96px;
  border-style: solid;
  color: white;
  background: rgba(18, 40, 58, 0.18);
}

.place-photo-control input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.place-photo-control span {
  position: relative;
  z-index: 1;
  color: var(--teal);
  padding: 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.place-photo-control.has-image span {
  display: none;
}

.place-photo-control span::before {
  content: "+";
  margin-right: 8px;
  font-size: 18px;
  font-weight: 850;
}

.place-photo-control small {
  position: relative;
  z-index: 1;
  color: rgba(27, 31, 42, 0.54);
  padding: 0 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.place-photo-control.has-image small {
  display: none;
}

.place-photo-control [hidden] {
  display: none !important;
}

.place-photo-clear {
  justify-self: start;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(200, 104, 79, 0.28);
  border-radius: 7px;
  background: rgba(200, 104, 79, 0.08);
  color: #9f3f32;
  font-size: 13px;
  font-weight: 850;
}

.place-photo-clear[hidden] {
  display: none;
}

.place-adventure-nudge {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 7px;
  background: rgba(255, 248, 232, 0.86);
  color: rgba(27, 31, 42, 0.72);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.place-adventure-nudge[hidden] {
  display: none !important;
}

.add-armor-button {
  min-height: 46px;
  border: 1.5px dashed rgba(31, 123, 120, 0.28);
  border-radius: 8px;
  background: rgba(31, 123, 120, 0.04);
  color: var(--teal);
  font-weight: 800;
}

.add-treasure-button span,
.add-armor-button span {
  margin-right: 6px;
  font-size: 20px;
}

.aspiration-field[hidden] {
  display: none !important;
}

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

.summary-grid article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(18, 40, 58, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.summary-grid span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-grid strong {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.24;
}

.summary-grid small {
  color: rgba(27, 31, 42, 0.62);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.summary-grid article.is-warning {
  border-color: rgba(201, 155, 66, 0.48);
  background: rgba(255, 248, 232, 0.78);
  box-shadow: inset 0 0 0 1px rgba(201, 155, 66, 0.14);
}

.summary-grid article.is-warning span {
  color: #96631f;
}

.summary-recommendations {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 155, 66, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.88);
}

.summary-recommendations[hidden] {
  display: none !important;
}

.summary-recommendations h4 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.summary-recommendations ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: rgba(27, 31, 42, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.form-nav {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(160px, 1fr) minmax(160px, 0.8fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 40, 58, 0.12);
}

.form-validation {
  flex: 1 1 260px;
  min-height: 22px;
  margin: 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.form-validation:empty {
  display: none;
}

.form-validation.is-visible {
  display: block;
  animation: revealGlimmer 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.form-nav > div:not(.chronicle-progress) {
  display: flex;
  gap: 10px;
}

.chronicle-progress {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(18, 40, 58, 0.08), rgba(18, 40, 58, 0.04)),
    rgba(74, 171, 184, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(18, 40, 58, 0.06),
    inset 0 0 12px rgba(18, 40, 58, 0.08);
}

.chronicle-progress span {
  position: relative;
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 40%, rgba(255, 250, 218, 0.9), transparent 12%),
    linear-gradient(90deg, #f4d27a, #56d4d2, #8e6ad8);
  box-shadow:
    0 0 16px rgba(74, 171, 184, 0.38),
    0 0 26px rgba(217, 165, 70, 0.22);
  transition: width 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chronicle-progress span::after {
  content: "";
  position: absolute;
  inset: -40% 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.8), transparent 9%),
    radial-gradient(circle at 48% 45%, rgba(255, 255, 255, 0.42), transparent 12%),
    radial-gradient(circle at 76% 56%, rgba(255, 255, 255, 0.32), transparent 10%);
  opacity: 0.72;
  animation: chronicleFluid 2.8s ease-in-out infinite;
}

.form-nav .button-secondary {
  color: var(--navy);
  border-color: var(--line);
}

.text-button {
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:disabled {
  color: rgba(29, 57, 85, 0.4);
  text-decoration: none;
}

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mirror {
  --world-color: #4aabb8;
  --world-rgb: 74, 171, 184;
  --favorite-color: #d9a546;
  --favorite-rgb: 217, 165, 70;
  position: sticky;
  top: 92px;
  z-index: 5;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100vh - 112px);
  overflow: hidden;
  padding: 30px;
  background: var(--navy);
  color: white;
  scrollbar-width: thin;
}

.chronicle-panel .avatar-scene,
.chronicle-panel .mirror-metrics {
  flex: 0 0 auto;
}

.chronicle-panel .avatar-scene {
  position: relative;
  top: auto;
}

.chronicle-panel .mirror-clues {
  flex: 0 1 auto;
  max-height: clamp(138px, 29vh, 282px);
  overflow: auto;
  scrollbar-width: thin;
}

.mirror h3,
.mirror p {
  color: white;
}

.mirror-header p {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 850;
}

.mirror-header strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.18;
}

@property --ring-progress {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

.avatar-scene {
  --world-color: #4aabb8;
  --world-rgb: 74, 171, 184;
  --favorite-color: #d9a546;
  --favorite-rgb: 217, 165, 70;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  min-height: 344px;
  padding: 10px 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--favorite-rgb), 0.16), transparent 34%),
    radial-gradient(circle at 50% 42%, rgba(var(--world-rgb), 0.22), transparent 48%),
    radial-gradient(circle at 50% 52%, rgba(217, 165, 70, 0.1), transparent 42%),
    #172f43;
  transition:
    background 520ms ease,
    box-shadow 520ms ease;
}

.avatar-scene[data-stage="wonder"] {
  --world-color: #d49c3b;
  --world-rgb: 212, 156, 59;
}

.avatar-scene[data-stage="legend"] {
  --world-color: #8d68bd;
  --world-rgb: 141, 104, 189;
}

.avatar-scene::before,
.avatar-scene::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.avatar-scene::before {
  inset: 40px 56px 82px;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 238, 166, 0.26), transparent 8%),
    radial-gradient(circle at 83% 29%, rgba(116, 212, 226, 0.22), transparent 8%),
    radial-gradient(circle at 76% 78%, rgba(166, 118, 255, 0.2), transparent 7%),
    radial-gradient(circle at 32% 78%, rgba(255, 255, 255, 0.18), transparent 6%);
  opacity: 0.9;
  animation: mirrorStars 4.6s ease-in-out infinite;
}

.avatar-scene::after {
  display: none;
}

.avatar-orbit {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
  width: 244px;
  height: 244px;
  margin-top: -2px;
  transform: translateY(-10px);
  isolation: isolate;
}

.avatar-orbit::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--favorite-rgb), 0.16), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(var(--world-rgb), 0.16), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 40px rgba(var(--world-rgb), 0.18),
    0 0 52px rgba(var(--favorite-rgb), 0.14),
    inset 0 0 44px rgba(var(--favorite-rgb), 0.08);
  animation: mirrorAura 5.6s ease-in-out infinite;
}

.avatar-progress {
  position: absolute;
  --ring-progress: 0%;
  --ring-hot: #fff0b3;
  --ring-muted: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, var(--ring-hot) 0 2%, var(--ring-color) 8%, var(--ring-color) var(--ring-progress), transparent calc(var(--ring-progress) + 7%), transparent 100%),
    conic-gradient(from -90deg, var(--ring-muted), rgba(255, 255, 255, 0.025));
  box-shadow:
    0 0 18px var(--ring-shadow),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
  filter: drop-shadow(0 0 8px var(--ring-shadow));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 5px)), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 5px)), #000 0);
  transition: --ring-progress 680ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: ringBreath 3.8s ease-in-out infinite;
}

.avatar-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      rgba(255, 250, 218, 0.95) 0 2.4deg,
      rgba(var(--favorite-rgb), 0.82) 2.8deg 4.8deg,
      transparent 7.2deg 360deg
    );
  opacity: 0;
  filter:
    drop-shadow(0 0 6px rgba(255, 250, 218, 0.58))
    drop-shadow(0 0 8px var(--ring-shadow));
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 5px) - 1px), #000 calc(100% - var(--ring-width, 5px)), #000 calc(100% - 1px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 5px) - 1px), #000 calc(100% - var(--ring-width, 5px)), #000 calc(100% - 1px), transparent 100%);
  transform-origin: 50% 50%;
  will-change: transform;
  animation: ringSparkLap var(--orbit-speed, 7s) cubic-bezier(0.42, 0, 0.18, 1) infinite;
}

.avatar-progress-joy {
  --ring-color: #54d8e6;
  --ring-shadow: rgba(84, 216, 230, 0.42);
  --ring-width: 5px;
  --orbit-radius: 112px;
  --orbit-speed: 8.4s;
  width: 214px;
  height: 214px;
}

.avatar-progress-traits {
  --ring-color: #f0b74d;
  --ring-shadow: rgba(240, 183, 77, 0.46);
  --ring-width: 5px;
  --orbit-radius: 98px;
  --orbit-speed: 7.2s;
  width: 188px;
  height: 188px;
}

.avatar-progress-traits::after {
  animation-delay: -1.4s;
}

.avatar-progress-interests {
  --ring-color: #a878ff;
  --ring-shadow: rgba(168, 120, 255, 0.44);
  --ring-width: 5px;
  --orbit-radius: 84px;
  --orbit-speed: 6.4s;
  width: 162px;
  height: 162px;
}

.avatar-progress-interests::after {
  animation-delay: -2.8s;
}

.avatar-portrait {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
  width: 136px;
  height: 136px;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 167, 0.88);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(var(--favorite-rgb), 0.24), transparent 44%),
    radial-gradient(circle at 50% 44%, rgba(255, 232, 167, 0.16), transparent 50%),
    rgba(8, 21, 34, 0.84);
  box-shadow:
    0 0 0 9px rgba(255, 255, 255, 0.025),
    0 0 34px rgba(var(--favorite-rgb), 0.28),
    inset 0 0 22px rgba(var(--world-rgb), 0.16);
}

.avatar-portrait::before,
.avatar-portrait::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 248, 210, 0.95) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 24%, rgba(var(--favorite-rgb), 0.9) 0 1.3px, transparent 2px),
    radial-gradient(circle at 64% 70%, rgba(139, 234, 220, 0.82) 0 1.2px, transparent 2px),
    radial-gradient(circle at 36% 76%, rgba(255, 248, 210, 0.76) 0 1px, transparent 2px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: portraitSparkles 4.8s ease-in-out infinite;
}

.avatar-portrait::after {
  inset: 8px;
  opacity: 0.32;
  transform: rotate(18deg);
  animation-delay: -1.8s;
}

.avatar-portrait > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-mystery {
  opacity: 0;
  object-position: 50% 52%;
  transform: translateY(10px) scale(1.44);
  filter:
    saturate(1.18)
    brightness(1.08)
    drop-shadow(0 0 14px rgba(var(--favorite-rgb), 0.56))
    drop-shadow(0 0 28px rgba(var(--favorite-rgb), 0.28));
  mix-blend-mode: screen;
  transition:
    opacity 520ms ease,
    transform 680ms cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 520ms ease;
}

.avatar-portrait.is-empty .avatar-mystery {
  opacity: 0.8;
}

.avatar-portrait:not(.is-empty) .avatar-mystery {
  opacity: 0;
  transform: translateY(10px) scale(1.34);
}

.avatar-portrait.has-photo .avatar {
  opacity: 0;
}

.avatar-portrait.is-empty .avatar {
  opacity: 0;
  transform: scale(0.88);
}

.avatar {
  display: grid;
  place-items: center;
  z-index: 3;
  width: 128px;
  height: 128px;
  opacity: 0.96;
  transition:
    opacity 620ms ease,
    transform 720ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.avatar.is-changing {
  opacity: 0.2;
  transform: scale(0.92);
}

.avatar-placeholder {
  position: relative;
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(255, 224, 139, 0.58))
    drop-shadow(0 0 20px rgba(255, 200, 82, 0.26))
    drop-shadow(0 0 34px rgba(var(--world-rgb), 0.2));
  transform: translateY(var(--avatar-y, 0)) scale(var(--avatar-scale, 1));
  transform-origin: 50% 58%;
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.avatar[data-stage="wonder"] {
  --avatar-scale: 1.04;
  --avatar-y: 7px;
}

.avatar[data-stage="adventure"] {
  --avatar-scale: 1;
  --avatar-y: 6px;
}

.avatar[data-stage="legend"] {
  --avatar-scale: 0.96;
  --avatar-y: 5px;
}

.avatar-orbit-name {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: max-content;
  min-height: 30px;
  max-width: calc(100% - 24px);
  overflow: visible;
  color: #ffe9a8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--name-desktop-size, clamp(25px, 4.2vw, 36px));
  font-weight: 500;
  letter-spacing: var(--name-letter-spacing, 0.03em);
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 222, 139, 0.2);
}

.avatar-orbit-name .name-letter-reveal {
  display: inline-block;
  opacity: 0;
  background:
    linear-gradient(100deg, #fff7d2 0%, #e6b75c 32%, #fff2b8 52%, #c98739 74%, #fff8dc 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(7px);
  transform: translateY(0.28em) scale(0.94);
  animation:
    nameLetterReveal 980ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
    nameGoldFlow 7.2s ease-in-out infinite;
}

.avatar-orbit-name[hidden] {
  display: block !important;
  visibility: hidden;
}

.avatar-caption {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  display: grid;
  justify-items: center;
  z-index: 3;
  gap: 3px;
  min-height: 18px;
  text-align: center;
}

.avatar-scene:has(.avatar-keepsakes:not([hidden])) .avatar-caption {
  visibility: hidden;
}

.avatar-scene:not(:has(.avatar-keepsakes:not([hidden]))) .avatar-caption {
  transform: none;
}

.avatar-caption span {
  color: rgba(159, 228, 234, 0.88);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.avatar-caption span[hidden] {
  display: block !important;
  visibility: hidden;
}

.mirror-keepsakes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  z-index: 1;
  align-items: start;
  gap: 10px;
  width: 100%;
}

.mirror-keepsakes[hidden],
.mirror-keepsake-group[hidden] {
  display: none !important;
}

.mirror-keepsake-group {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.mirror-keepsake-title {
  color: rgba(255, 250, 241, 0.62);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mirror-keepsake-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.mirror-treasure {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 46px;
}

.mirror-treasure-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: visible;
  border: 1px solid rgba(255, 232, 167, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 238, 166, 0.28), transparent 48%),
    rgba(255, 250, 241, 0.08);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 850;
  box-shadow:
    0 0 16px rgba(255, 218, 117, 0.22),
    inset 0 0 12px rgba(var(--world-rgb), 0.12);
  animation: mirrorSatellitePulse 4.4s ease-in-out infinite;
}

.mirror-treasure:nth-child(2n) .mirror-treasure-icon {
  animation-delay: -1.5s;
}

.mirror-treasure:nth-child(3n) .mirror-treasure-icon {
  animation-delay: -2.8s;
}

.mirror-treasure-icon img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.mirror-treasure-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 3;
  border-radius: 50%;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 250, 218, 0.92) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 32%, rgba(139, 234, 220, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 82%, rgba(255, 232, 162, 0.78) 0 1px, transparent 2px);
  opacity: 0;
  pointer-events: none;
  animation: mirrorSatelliteSparkle 3.9s ease-in-out infinite;
}

.mirror-armor-item .mirror-treasure-icon {
  border-color: rgba(139, 234, 220, 0.6);
  background:
    radial-gradient(circle at 40% 35%, rgba(139, 234, 220, 0.24), transparent 48%),
    rgba(222, 255, 250, 0.08);
  color: #8beadc;
  box-shadow:
    0 0 16px rgba(94, 210, 195, 0.22),
    inset 0 0 12px rgba(var(--world-rgb), 0.12);
}

.mirror-treasure strong {
  max-width: 64px;
  overflow: hidden;
  color: rgba(255, 250, 241, 0.78);
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mirror-relicary {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.07);
}

.avatar-keepsakes {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.avatar-keepsakes .mirror-keepsake-title {
  display: none;
}

.avatar-keepsakes .mirror-treasure {
  position: relative;
  min-width: auto;
}

.avatar-keepsakes .mirror-orbit-slot {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 0;
  transform: none;
}

.avatar-keepsakes .mirror-treasure-icon {
  width: 26px;
  height: 26px;
  border-color: rgba(255, 232, 167, 0.78);
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 238, 166, 0.36), transparent 50%),
    rgba(255, 250, 241, 0.1);
  box-shadow:
    0 0 18px rgba(255, 218, 117, 0.28),
    0 0 28px rgba(var(--world-rgb), 0.12),
    inset 0 0 12px rgba(var(--favorite-rgb), 0.16);
}

.avatar-keepsakes .mirror-treasure strong {
  display: none;
}

.avatar-keepsakes .mirror-orbit-slot-treasure-1 {
  left: calc(50% - 79px);
  top: 288px;
}

.avatar-keepsakes .mirror-orbit-slot-treasure-2 {
  left: calc(50% - 46px);
  top: 288px;
}

.avatar-keepsakes .mirror-orbit-slot-place {
  left: calc(50% - 13px);
  top: 288px;
  transform: none;
}

.avatar-keepsakes .mirror-orbit-slot-armor-1 {
  right: calc(50% - 46px);
  top: 288px;
}

.avatar-keepsakes .mirror-orbit-slot-armor-2 {
  right: calc(50% - 79px);
  top: 288px;
}

.avatar-keepsakes .mirror-treasure-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--favorite-rgb), 0.24), transparent 62%);
  opacity: 0.75;
  animation: mirrorSatelliteAura 4.4s ease-in-out infinite;
}

.mirror-metrics {
  display: grid;
  gap: 9px;
}

.mirror-clues {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.mirror-clues > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.mirror-clues ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.mirror-clues li {
  position: relative;
  padding-left: 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
}

.mirror-clues li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.mirror-metrics span {
  margin: 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.mirror-metrics > div {
  display: grid;
  grid-template-columns: minmax(124px, max-content) minmax(92px, 1fr);
  align-items: center;
  gap: 10px;
}

.meter {
  height: 11px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 14px rgba(0, 0, 0, 0.22);
}

.meter span {
  display: block;
  width: 24%;
  height: 100%;
  margin: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 250, 218, 0.98), var(--favorite-color), var(--world-color)),
    var(--gold);
  box-shadow:
    0 0 16px rgba(var(--favorite-rgb), 0.5),
    0 0 28px rgba(var(--world-rgb), 0.34);
  transition: width 680ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: meterGlow 2.8s ease-in-out infinite;
}

.avatar-side-meters {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  pointer-events: none;
}

.avatar-side-meters > div {
  position: absolute;
  bottom: 34px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 4px;
  width: 132px;
}

.avatar-side-meters > div:first-child {
  left: 44px;
}

.avatar-side-meters > div:last-child {
  right: 44px;
}

.avatar-side-meters > div > span {
  order: 1;
  max-width: 92px;
  color: rgba(255, 250, 241, 0.76);
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  text-shadow: 0 0 10px rgba(255, 250, 241, 0.14);
}

.avatar-side-meters > div:first-child > span {
  transform: none;
}

.avatar-side-meters > div:last-child > span {
  transform: none;
}

.avatar-side-meters .meter {
  order: 2;
  position: relative;
  width: 100%;
  height: 10px;
  overflow: visible;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 16px rgba(0, 0, 0, 0.26),
    0 0 24px rgba(var(--world-rgb), 0.08);
}

.avatar-side-meters .meter.is-complete {
  animation: completeMeterPulse 2.9s ease-in-out infinite;
}

.avatar-side-meters .meter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 16px rgba(0, 0, 0, 0.26),
    0 0 24px rgba(var(--world-rgb), 0.08);
}

.avatar-side-meters .meter::after {
  content: "";
  position: absolute;
  inset: -13px -14px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(var(--world-rgb), 0.18), transparent 68%);
  opacity: 0.65;
}

.avatar-side-meters .meter span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  max-width: none;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.68) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 58% 42%, rgba(255, 250, 218, 0.58) 0 0.7px, transparent 1.3px),
    linear-gradient(90deg, rgba(255, 246, 203, 0.96), rgba(var(--world-rgb), 0.9) 52%, rgba(var(--favorite-rgb), 0.82)),
    var(--world-color);
  background-size: 42px 10px, 58px 10px, 100% 100%;
  box-shadow:
    0 0 14px rgba(var(--favorite-rgb), 0.34),
    0 0 22px rgba(var(--world-rgb), 0.26);
  transition: width 920ms cubic-bezier(0.16, 1, 0.3, 1);
  animation:
    meterGlow 3.8s ease-in-out infinite,
    meterSparkleDrift 8.5s ease-in-out infinite alternate;
}

.avatar-side-meters .meter.is-complete span {
  animation:
    completeMeterFillPulse 2.9s ease-in-out infinite,
    meterSparkleDrift 6.2s ease-in-out infinite alternate;
}

.avatar-side-meters .meter.is-bursting span::before {
  animation: completeMeterBurst 1.15s ease-out 1;
}

.avatar-side-meters .meter span::before,
.avatar-side-meters .meter span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 218, 0.92), rgba(var(--world-rgb), 0.45) 42%, transparent 70%);
  filter: blur(0.2px);
  transform: translateY(-50%);
  opacity: 0.86;
}

.avatar-side-meters .meter span::after {
  right: 10%;
  top: -3px;
  width: 5px;
  height: 5px;
  opacity: 0.72;
  animation: meterParticleLift 2.4s ease-in-out infinite;
}

.avatar-side-meters > div:first-child .meter span {
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.68) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 58% 42%, rgba(255, 250, 218, 0.58) 0 0.7px, transparent 1.3px),
    linear-gradient(90deg, rgba(255, 246, 203, 0.98), #91e4eb 54%, var(--world-color)),
    var(--world-color);
  background-size: 42px 10px, 58px 10px, 100% 100%;
}

.avatar-side-meters > div:last-child .meter span {
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.68) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 58% 42%, rgba(255, 250, 218, 0.58) 0 0.7px, transparent 1.3px),
    linear-gradient(90deg, rgba(255, 246, 203, 0.96), #8faeff 54%, var(--favorite-color)),
    var(--favorite-color);
  background-size: 42px 10px, 58px 10px, 100% 100%;
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(0.45em);
  animation: wordReveal 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.recommendation {
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.1);
}

.recommendation.is-muted {
  background: rgba(255, 250, 241, 0.06);
}

.recommendation > span {
  color: var(--gold);
  font-weight: 850;
}

.recommendation h3 {
  margin: 8px 0;
  font-size: 24px;
}

.recommendation p {
  margin: 0;
  line-height: 1.55;
}

.affinity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.affinity strong {
  font-size: 26px;
  color: var(--gold);
}

.products-section {
  background: var(--paper);
}

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

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 12px 30px rgba(18, 40, 58, 0.08);
}

.product-card.featured {
  border-color: rgba(201, 155, 66, 0.76);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card div {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.product-card p {
  margin: 0;
  color: var(--coral);
  font-weight: 850;
}

.product-card h3 {
  font-size: 24px;
}

.product-card strong {
  color: var(--navy);
  font-size: 24px;
}

.product-card span {
  line-height: 1.5;
}

.product-card small {
  display: block;
  margin-top: 6px;
  color: rgba(27, 31, 42, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.product-action {
  width: 100%;
  margin-top: 10px;
}

.product-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.product-actions .product-action {
  margin-top: 0;
}

.product-action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-note {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(27, 31, 42, 0.66);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.product-note.is-error {
  color: #9f3f32;
}

.product-note.is-success {
  color: var(--teal);
}

.product-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 18px auto 0;
}

.product-extra-grid > article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 280px;
  padding: 20px;
  border: 1px solid rgba(18, 40, 58, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 253, 248, 0.78)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(18, 40, 58, 0.08);
}

.product-extra-grid > article > p {
  margin: 0 0 6px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-extra-grid > article > h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
}

.product-extra-grid > article > span {
  color: rgba(27, 31, 42, 0.68);
  line-height: 1.5;
}

.product-extra-grid .product-actions {
  align-self: end;
  margin-top: 10px;
}

.care-seal-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(201, 155, 66, 0.16), transparent 28%),
    linear-gradient(135deg, #102438, #173f4b 58%, #1f5d5d);
  color: white;
}

.care-seal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 610px);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.care-seal-copy h2 {
  color: white;
}

.care-seal-copy p {
  max-width: 720px;
  color: rgba(255, 250, 241, 0.84);
  line-height: 1.7;
}

.mimo-card {
  position: relative;
  max-width: 610px;
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid rgba(200, 140, 61, 0.35);
  border-radius: 8px;
  background: #f3e5d3;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.mimo-card::before,
.mimo-card::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

.mimo-card::before {
  inset: 12px auto auto 12px;
  border-left: 1px solid;
  border-top: 1px solid;
}

.mimo-card::after {
  inset: auto 12px 12px auto;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.mimo-card header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.mimo-seal {
  position: relative;
  flex: 0 0 172px;
  display: grid;
  place-items: center;
  width: 172px;
  height: 172px;
  overflow: visible;
  animation: sealGlow 4s ease-in-out infinite;
}

.mimo-seal-picture {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mimo-seal-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(12, 24, 47, 0.12));
}

.seal-orbit {
  position: absolute;
  z-index: 4;
  inset: -15px;
  border-radius: 50%;
  animation: sealOrbit 16s linear infinite;
  pointer-events: none;
}

.seal-orbit i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 232, 162, 0.98);
  box-shadow:
    0 0 9px rgba(255, 232, 162, 0.95),
    0 0 19px rgba(255, 232, 162, 0.42),
    0 0 30px rgba(255, 232, 162, 0.16);
  transform: rotate(var(--a)) translateY(-96px);
  animation: sealParticlePulse 5.6s ease-in-out infinite;
  animation-delay: var(--d);
}

.seal-orbit i:nth-child(even) {
  background: rgba(144, 184, 255, 0.95);
  box-shadow:
    0 0 9px rgba(144, 184, 255, 0.9),
    0 0 19px rgba(93, 138, 224, 0.42),
    0 0 30px rgba(93, 138, 224, 0.16);
}

.mimo-card header p {
  margin: 0 0 3px;
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mimo-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.mimo-intro {
  margin: 25px 0 15px;
  color: rgba(23, 38, 53, 0.66);
  line-height: 1.7;
}

.mimo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mimo-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.mimo-list li > span {
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mimo-list p {
  margin: 0;
  color: rgba(27, 31, 42, 0.78);
  font-size: 0.94rem;
}

.mimo-list strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.mimo-closing {
  margin: 24px 0 0;
  color: rgba(27, 31, 42, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

@keyframes sealOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sealParticlePulse {
  0%,
  100% {
    opacity: 0.18;
    filter: blur(0);
  }

  45% {
    opacity: 1;
    filter: blur(0.2px);
  }

  70% {
    opacity: 0.34;
  }
}

@keyframes sealGlow {
  50% {
    filter: drop-shadow(0 0 18px rgba(248, 228, 164, 0.16));
    transform: rotate(-2deg);
  }
}

.faq-section {
  background: #edf5f2;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 44px;
}

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

.faq-list details {
  border: 1px solid var(--line);
  background: white;
}

.faq-list summary {
  min-height: 58px;
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 850;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.age-design-note {
  padding: 42px 0;
  background: #edf5f2;
  color: rgba(27, 31, 42, 0.72);
}

.age-design-note-inner {
  max-width: 920px;
  text-align: center;
}

.age-design-note-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.age-design-note p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer {
  padding: 34px 0;
  background: var(--navy);
  color: white;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid img {
  width: 210px;
  height: 52px;
  object-fit: contain;
  object-position: center 50%;
  border-radius: 8px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: white;
  font-weight: 850;
  text-decoration: none;
}

.save-modal,
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 21, 38, 0.58);
  backdrop-filter: blur(10px);
}

.save-modal[hidden],
.order-modal[hidden] {
  display: none;
}

.save-dialog,
.order-dialog {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.save-dialog h2,
.order-dialog h2 {
  font-size: 38px;
}

.save-dialog p,
.order-dialog p {
  margin: 0;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 850;
}

.save-form,
.order-form {
  display: grid;
  gap: 14px;
}

.save-feedback,
.order-feedback {
  color: var(--teal);
  font-weight: 800;
}

.order-feedback.is-error {
  color: #9f3f32;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes starBlink {
  0%,
  18%,
  100% {
    opacity: 0;
    transform: scale(0.35) rotate(0deg);
  }
  42% {
    opacity: 0.95;
    transform: scale(1) rotate(18deg);
  }
  64% {
    opacity: 0.28;
    transform: scale(0.66) rotate(34deg);
  }
}

@keyframes mirrorStars {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  45% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes mirrorAura {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1.018);
  }
}

@keyframes portraitSparkles {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(2px) rotate(0deg);
  }
  50% {
    opacity: 0.72;
    transform: translateY(-2px) rotate(8deg);
  }
}

@keyframes meterGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

@keyframes overviewMeterSheen {
  0%,
  28% {
    opacity: 0;
    transform: translateX(-96%);
  }

  46% {
    opacity: 0.54;
  }

  70%,
  100% {
    opacity: 0;
    transform: translateX(96%);
  }
}

@keyframes overviewMeterAlive {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }

  50% {
    filter: brightness(1.1) saturate(1.12);
  }
}

@keyframes overviewMeterParticles {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
    opacity: 0.42;
  }

  50% {
    opacity: 0.74;
  }

  100% {
    background-position: 42px -2px, -58px 3px, 50px -4px, -46px 2px;
    opacity: 0.42;
  }
}

@keyframes overviewMeterComet {
  0%,
  100% {
    opacity: 0.44;
    transform: translateY(-50%) scale(0.76);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.14);
  }
}

@keyframes overviewMeterCompletePulse {
  0%,
  100% {
    box-shadow:
      0 0 14px rgba(217, 165, 70, 0.28),
      0 0 0 rgba(255, 232, 162, 0);
  }

  50% {
    box-shadow:
      0 0 20px rgba(255, 232, 162, 0.46),
      0 0 30px rgba(139, 234, 220, 0.2);
  }
}

@keyframes keepsakePulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-1px) scale(1.035);
    filter: brightness(1.08);
  }
}

@keyframes keepsakeSparkle {
  0%,
  100% {
    opacity: 0;
    transform: rotate(0deg) scale(0.92);
  }

  45% {
    opacity: 0.82;
  }

  72% {
    opacity: 0.24;
    transform: rotate(18deg) scale(1.08);
  }
}

@keyframes keepsakeAura {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.08);
  }
}

@keyframes mirrorSatellitePulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-1px) scale(1.045);
    filter: brightness(1.1);
  }
}

@keyframes mirrorSatelliteSparkle {
  0%,
  100% {
    opacity: 0;
    transform: rotate(0deg) scale(0.86);
  }

  44% {
    opacity: 0.82;
  }

  74% {
    opacity: 0.18;
    transform: rotate(20deg) scale(1.1);
  }
}

@keyframes mirrorSatelliteAura {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@keyframes meterSparkleDrift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  50% {
    background-position: 17px -1px, -23px 1px, 0 0;
  }

  100% {
    background-position: 34px 1px, -46px -1px, 0 0;
  }
}

@keyframes meterParticleLift {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(1px) scale(0.82);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-5px) scale(1.12);
  }
}

@keyframes completeMeterPulse {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 0 16px rgba(0, 0, 0, 0.22),
      0 0 20px rgba(var(--world-rgb), 0.2);
  }

  50% {
    filter: brightness(1.12);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.18),
      inset 0 0 18px rgba(255, 255, 255, 0.1),
      0 0 34px rgba(var(--favorite-rgb), 0.32);
  }
}

@keyframes completeMeterFillPulse {
  0%,
  100% {
    filter: brightness(1);
    transform: scaleY(1);
  }

  50% {
    filter: brightness(1.2);
    transform: scaleY(1.16);
  }
}

@keyframes completeMeterBurst {
  0% {
    opacity: 0.92;
    transform: translateY(-50%) scale(0.8);
    box-shadow:
      0 0 0 0 rgba(255, 250, 218, 0.82),
      0 0 0 0 rgba(var(--world-rgb), 0.45);
  }

  70% {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.85);
    box-shadow:
      -18px -7px 0 -3px rgba(255, 250, 218, 0.74),
      -34px 5px 0 -4px rgba(var(--favorite-rgb), 0.58),
      18px -6px 0 -3px rgba(var(--world-rgb), 0.62),
      31px 7px 0 -4px rgba(255, 255, 255, 0.62);
  }

  100% {
    opacity: 0;
    transform: translateY(-50%) scale(2.2);
    box-shadow:
      -24px -12px 0 -5px rgba(255, 250, 218, 0),
      -40px 9px 0 -6px rgba(var(--favorite-rgb), 0),
      24px -10px 0 -5px rgba(var(--world-rgb), 0),
      39px 10px 0 -6px rgba(255, 255, 255, 0);
  }
}

@keyframes nameGoldFlow {
  0%,
  100% {
    background-position: 0% 50%;
    text-shadow: 0 0 6px rgba(255, 216, 126, 0.16);
  }

  50% {
    background-position: 100% 50%;
    text-shadow: 0 0 14px rgba(255, 216, 126, 0.36);
  }
}

@keyframes nameLetterReveal {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(0.28em) scale(0.94);
    text-shadow: 0 0 0 rgba(255, 230, 156, 0);
  }

  58% {
    opacity: 1;
    filter: blur(1.5px);
    text-shadow: 0 0 20px rgba(255, 230, 156, 0.48);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    text-shadow: 0 0 8px rgba(255, 230, 156, 0.22);
  }
}

@keyframes chronicleFluid {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-8%) scaleX(0.96);
  }

  50% {
    opacity: 0.9;
    transform: translateX(8%) scaleX(1.05);
  }
}

@keyframes wordReveal {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(0.45em);
    text-shadow: 0 0 0 rgba(255, 238, 166, 0);
  }

  55% {
    opacity: 1;
    filter: blur(1px);
    text-shadow: 0 0 14px rgba(255, 238, 166, 0.42);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(255, 238, 166, 0);
  }
}

@keyframes revealGlimmer {
  0% {
    opacity: 0;
    transform: translateY(8px);
    text-shadow: 0 0 0 rgba(255, 238, 166, 0);
  }
  52% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(255, 238, 166, 0.62);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(255, 238, 166, 0);
  }
}

@keyframes universeReveal {
  from {
    opacity: 0.58;
    transform: translateY(12px) scale(0.985);
    filter: saturate(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

.is-revealing,
.clue-reveal {
  animation: revealGlimmer 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ringBreath {
  0%,
  100% {
    filter: drop-shadow(0 0 7px var(--ring-shadow));
  }
  50% {
    filter: drop-shadow(0 0 15px var(--ring-shadow));
  }
}

@keyframes ringSparkLap {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }

  8% {
    opacity: 0.88;
  }

  66% {
    opacity: 0.88;
    transform: rotate(360deg);
  }

  74%,
  100% {
    opacity: 0;
    transform: rotate(360deg);
  }
}

@keyframes chapterIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .story-lab .avatar-side-meters {
    display: none !important;
  }

  .site-header {
    height: 82px;
    padding: 12px 22px;
  }

  .site-header.is-scrolled {
    height: 62px;
    padding: 8px 20px;
  }

  .brand {
    width: 205px;
    height: 54px;
  }

  .site-header.is-scrolled .brand {
    width: 170px;
    height: 44px;
  }

  .hero {
    min-height: 88svh;
    padding: 108px 24px 36px;
  }

  .hero-layout {
    grid-template-columns: minmax(270px, 0.84fr) minmax(0, 1.26fr);
    gap: 16px;
  }

  .hero-logo-original {
    width: 154px;
  }

  .hero-copy {
    margin-top: 22px;
    font-size: 15px;
  }

  .intro-grid,
  .stage-showcase,
  .atlas-grid,
  .story-lab,
  .care-seal-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .process-line,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .universe-story-panel {
    grid-template-columns: 1fr;
  }

  .universe-story-grid {
    grid-template-columns: 1fr;
  }

  .experience-video-band {
    grid-template-columns: 1fr;
  }

  .experience-video-band video {
    height: 220px;
  }

  .process-line {
    row-gap: 30px;
  }

  .stage-copy {
    min-height: auto;
  }

  .story-lab {
    overflow: visible;
  }

  .story-lab .mirror {
    position: sticky;
    top: 74px;
    order: -1;
    z-index: 8;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
    max-height: none;
    overflow: visible;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 36px rgba(8, 21, 34, 0.18);
  }

  .story-lab .mirror-header,
  .story-lab .recommendation {
    display: none;
  }

  .story-lab .avatar-scene {
    grid-column: 1;
    min-height: 116px;
    height: 116px;
    padding: 6px;
    border-radius: 0;
  }

  .story-lab .avatar-orbit {
    width: 108px;
    height: 108px;
    transform: none;
  }

  .story-lab .avatar-orbit-name {
    display: none !important;
  }

  .story-lab .avatar-progress-joy {
    width: 106px;
    height: 106px;
  }

  .story-lab .avatar-progress-traits {
    width: 92px;
    height: 92px;
  }

  .story-lab .avatar-progress-interests {
    width: 78px;
    height: 78px;
  }

  .story-lab .avatar-portrait {
    width: 64px;
    height: 64px;
  }

  .story-lab .avatar,
  .story-lab .avatar-placeholder {
    width: 60px;
    height: 60px;
  }

  .story-lab .avatar-caption,
  .story-lab .mirror-keepsakes {
    display: none;
  }

  .story-lab .mirror-metrics {
    grid-column: 2;
    display: grid;
    gap: 8px;
  }

  .story-lab .mirror-metrics span {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.1;
  }

  .story-lab .meter {
    height: 8px;
  }

  .story-lab .mirror-clues {
    grid-column: 1 / -1;
    padding: 7px 9px;
    border-radius: 8px;
  }

  .story-lab .mirror-clues.is-empty {
    display: none;
  }

  .story-lab .mirror-clues > span {
    display: none;
  }

  .story-lab .mirror-clues ul {
    margin: 0;
  }

  .story-lab .mirror-clues li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.25;
  }

  .story-lab .mirror-clues li:nth-child(n + 2) {
    display: none;
  }

  .story-lab .form-chapter {
    scroll-margin-top: 250px;
  }

  .chronicle-explain-grid,
  .chronicle-callout {
    grid-template-columns: 1fr;
  }

  .chronicle-callout .button {
    width: fit-content;
  }

  .chronicle-panel {
    width: min(920px, calc(100vw - 28px));
    height: calc(100vh - 28px);
    min-height: 0;
  }

  .chronicle-panel .story-lab {
    display: flex;
    flex-direction: column;
  }

  .chronicle-panel .mirror {
    flex: 0 0 auto;
    max-height: none;
  }

  .chronicle-panel .mirror-header,
  .chronicle-panel .avatar-scene {
    position: relative;
    top: auto;
    z-index: auto;
    margin: 0;
    box-shadow: none;
  }

  .chronicle-panel .discovery-flow {
    flex: 1 1 auto;
  }

  .mimo-card {
    justify-self: center;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-content {
    max-width: 480px;
  }

  .hero-art {
    width: min(760px, 100%);
    margin-top: 10px;
  }

  .hero-art img {
    max-height: none;
  }

  .hero-art-column {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .chronicle-overlay {
    padding: 0;
  }

  .chronicle-panel {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .chronicle-panel-header {
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
  }

  .chronicle-panel-header h2 {
    font-size: 20px;
    line-height: 1.1;
  }

  .chronicle-panel-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 6px;
  }

  .chronicle-panel-actions .text-button {
    font-size: 12px;
  }

  .chronicle-panel-actions .button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .chronicle-callout .button {
    width: 100%;
  }

  .chronicle-explain-grid article {
    min-height: auto;
  }

  .chronicle-panel .form-nav {
    margin: 0 -22px -22px;
    padding: 12px 22px 18px;
  }

  .site-header {
    height: 74px;
    padding: 10px 16px;
    background: rgba(248, 236, 220, 0.94);
    color: #6e4a2a;
    box-shadow: 0 10px 28px rgba(18, 40, 58, 0.08);
    backdrop-filter: blur(14px);
  }

  .site-header.is-scrolled {
    height: 58px;
    padding: 7px 14px;
  }

  .brand {
    width: 158px;
    height: 42px;
  }

  .site-header.is-scrolled .brand {
    width: 136px;
    height: 36px;
  }

  .primary-link {
    display: none;
  }

  .menu-panel {
    top: 74px;
    left: 16px;
    right: 16px;
  }

  .site-header.is-scrolled .menu-panel {
    top: 58px;
  }

  .hero {
    min-height: auto;
    padding: 98px 16px 28px;
  }

  .hero-layout {
    gap: 12px;
  }

  .hero-content,
  .hero-actions {
    width: 100%;
    max-width: 360px;
  }

  .hero-logo-original {
    width: 136px;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-closing {
    font-size: 21px;
  }

  .hero-art {
    width: calc(100% + 18px);
    margin-left: -9px;
    margin-right: -9px;
  }

  .hero-stage-guide {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(340px, 94%);
    margin-top: 34px;
  }

  .hero-stage {
    padding-top: 20px;
    border-top: 1px solid rgba(98, 87, 78, 0.18);
  }

  .hero-stage:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .hero-stage-copy {
    min-height: auto;
  }

  .hero-stage-note {
    margin-top: 0;
  }

  .stage-link {
    min-height: 40px;
    font-size: 12px;
  }

  .menu-label {
    display: none;
  }

  .icon-button {
    min-width: 34px;
    width: 34px;
  }

  .section-shell {
    width: min(100% - 32px, 1160px);
  }

  .intro-section,
  .process-section,
  .experience-section,
  .universes-section,
  .atlas-section,
  .create-section,
  .products-section,
  .care-seal-section,
  .faq-section {
    padding: 72px 0;
  }

  .experience-section {
    padding-top: 0;
  }

  .experience-copy {
    margin-top: -24px;
    padding: 24px;
  }

  .definition-cards article {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 34px;
  }

  .stage-tabs,
  .universe-list,
  .process-line,
  .product-grid,
  .product-extra-grid {
    grid-template-columns: 1fr;
  }

  .stage-tab {
    min-height: 70px;
  }

  .stage-copy {
    padding: 24px;
  }

  .stage-copy h3 {
    font-size: 34px;
  }

  .stage-copy blockquote {
    font-size: 24px;
  }

  .atlas-panel img {
    height: 360px;
  }

  .atlas-note {
    position: static;
    border-radius: 0;
  }

  .discovery-form,
  .form-intro,
  .mirror {
    padding: 22px;
  }

  .story-lab .mirror {
    position: sticky;
    top: 74px;
    order: -1;
    z-index: 8;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 26px rgba(8, 21, 34, 0.22);
  }

  .story-lab .mirror-header,
  .story-lab .recommendation {
    display: none;
  }

  .story-lab .avatar-scene {
    grid-column: 1;
    min-height: 104px;
    height: 104px;
    padding: 6px;
    border-radius: 0;
  }

  .story-lab .avatar-orbit {
    width: 96px;
    height: 96px;
    transform: none;
  }

  .story-lab .avatar-orbit-name {
    display: none !important;
  }

  .story-lab .avatar-progress-joy {
    width: 94px;
    height: 94px;
  }

  .story-lab .avatar-progress-traits {
    width: 82px;
    height: 82px;
  }

  .story-lab .avatar-progress-interests {
    width: 70px;
    height: 70px;
  }

  .story-lab .avatar-portrait {
    width: 58px;
    height: 58px;
  }

  .story-lab .avatar,
  .story-lab .avatar-placeholder {
    width: 56px;
    height: 56px;
  }

  .story-lab .avatar-caption {
    display: none;
  }

  .story-lab .mirror-keepsakes {
    display: none;
  }

  .story-lab .mirror-metrics {
    grid-column: 2;
    display: grid;
    gap: 8px;
  }

  .story-lab .mirror-metrics span {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.1;
  }

  .story-lab .meter {
    height: 7px;
  }

  .story-lab .mirror-clues {
    grid-column: 1 / -1;
    padding: 7px 9px;
    border-radius: 8px;
  }

  .story-lab .mirror-clues.is-empty {
    display: none;
  }

  .story-lab .mirror-clues > span {
    display: none;
  }

  .story-lab .mirror-clues ul {
    margin: 0;
  }

  .story-lab .mirror-clues li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.25;
  }

  .story-lab .mirror-clues li:nth-child(n + 2) {
    display: none;
  }

  .story-lab .form-chapter {
    scroll-margin-top: 238px;
  }

  .mimo-card {
    padding: 30px 24px;
  }

  .mimo-card header {
    gap: 14px;
  }

  .mimo-seal {
    flex-basis: 132px;
    width: 132px;
    height: 132px;
  }

  .seal-orbit i {
    transform: rotate(var(--a)) translateY(-72px);
  }

  .form-intro {
    min-height: auto;
  }

  .form-intro h3,
  .chapter-heading h3,
  .save-dialog h2,
  .order-dialog h2 {
    font-size: 31px;
  }

  .discovery-promises,
  .summary-grid,
  .universe-choice-stage-grid {
    grid-template-columns: 1fr;
  }

  .audience-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .age-stage-badge {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .custom-option-row {
    grid-template-columns: 1fr;
  }

  .custom-option-row button {
    min-height: 42px;
  }

  .universe-choice-header {
    flex-direction: column;
  }

  .treasure-item,
  .armor-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .treasure-rank {
    grid-column: 1 / -1;
  }

  .treasure-photo-control,
  .armor-photo-control {
    width: 76px;
    height: 76px;
  }

  .treasure-photo-control span,
  .armor-photo-control span {
    font-size: 10px;
  }

  .treasure-tools,
  .armor-tools {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 32px);
    justify-content: end;
  }

  .form-nav,
  .form-nav > div:not(.chronicle-progress) {
    align-items: stretch;
    flex-direction: column;
  }

  .form-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
    padding-top: 14px;
    min-height: 0;
  }

  .form-nav > div:not(.chronicle-progress) {
    order: 2;
    gap: 8px;
  }

  .form-validation {
    order: 0;
    flex: 0 0 auto;
    min-height: 0;
  }

  .form-validation:empty {
    display: none;
  }

  .chronicle-progress {
    order: 1;
  }

  .form-nav .text-button {
    order: 3;
    min-height: 30px;
    padding: 2px 0 0;
    text-align: center;
    font-size: 13px;
  }

  .form-nav .button,
  .intro-actions .button {
    width: 100%;
  }

  .chronicle-panel .discovery-form {
    padding-bottom: 210px;
  }

  .chronicle-panel .form-nav {
    grid-template-columns: 1fr;
  }

  .chronicle-panel .form-validation,
  .chronicle-panel .chronicle-progress,
  .chronicle-panel .form-nav > div:not(.chronicle-progress) {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .cursor-magic {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-magic {
    display: none;
  }
}

@media (max-width: 980px) {
  .chronicle-panel .story-lab {
    display: flex;
    flex-direction: column;
  }

  .chronicle-panel .story-lab .mirror {
    position: relative;
    top: auto;
    order: -1;
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .chronicle-panel .discovery-flow {
    flex: 1 1 auto;
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .chronicle-panel-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
  }

  .chronicle-panel-header .section-kicker {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .chronicle-panel-header h2 {
    max-width: 240px;
    font-size: 17px;
    line-height: 1.1;
  }

  .chronicle-panel-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .chronicle-panel-actions [data-save-draft] {
    display: none;
  }

  .chronicle-panel-actions .button {
    min-height: 32px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  .chronicle-panel .form-intro {
    gap: 12px;
    padding: 16px 18px;
  }

  .chronicle-panel .form-intro h3 {
    font-size: 26px;
    line-height: 1.08;
  }

  .chronicle-panel .form-intro > p:not(.section-kicker) {
    font-size: 15px;
    line-height: 1.55;
  }

  .chronicle-panel .discovery-promises {
    gap: 8px;
  }

  .chronicle-panel .discovery-promises span {
    min-height: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .chronicle-panel .field-note,
  .chronicle-panel .journey-meta {
    font-size: 13px;
    line-height: 1.45;
  }

  .chronicle-panel .intro-actions {
    gap: 8px;
  }

  .chronicle-panel .intro-actions [data-save-draft][disabled],
  .chronicle-panel .form-nav [data-save-draft][disabled] {
    display: none;
  }

  .chronicle-panel .form-nav {
    justify-content: flex-start;
    gap: 8px;
  }
}

/* Narria v8: mobile-first Chronicle experience */
:root {
  --chronicle-vh: 100dvh;
  --chronicle-vtop: 0px;
  --chronicle-bottom-guard: 0px;
  --chronicle-mobile-bottom-cushion: 10px;
}

@supports (-webkit-touch-callout: none) {
  :root {
    --chronicle-mobile-bottom-cushion: 38px;
  }
}

body.chronicle-open {
  overflow: hidden;
}

@keyframes mobileStepIn {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes chronicleMobileBloom {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  54% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mobileMirrorGlint {
  0%,
  22% {
    opacity: 0;
    transform: translateX(-135%) skewX(-14deg);
  }

  48% {
    opacity: 0.32;
  }

  76%,
  100% {
    opacity: 0;
    transform: translateX(165%) skewX(-14deg);
  }
}

@media (min-width: 681px) and (max-width: 1100px), (min-width: 681px) and (max-height: 800px) {
  .chronicle-overlay {
    align-items: stretch;
    justify-items: center;
    padding: 14px;
    overflow: hidden;
    overflow: clip;
  }

  .chronicle-panel {
    position: fixed;
    inset: 14px 0;
    margin: 0 auto;
    width: min(1180px, calc(100vw - 28px));
    height: min(860px, calc(100dvh - 28px));
    min-height: 0;
    max-height: calc(100dvh - 28px);
  }

  .chronicle-panel-header {
    min-height: 78px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .chronicle-panel-header h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  }

  .chronicle-panel .mirror {
    max-height: calc(100dvh - 110px);
  }

  .chronicle-panel .avatar-scene {
    min-height: clamp(278px, 45vh, 344px);
  }

  .chronicle-panel .mirror-clues {
    max-height: clamp(112px, 22vh, 208px);
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .chronicle-panel .story-lab {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
  }

  .chronicle-panel .story-lab .mirror {
    position: relative;
    top: auto;
    order: 0;
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 10px 18px;
    height: 172px;
    max-height: 172px;
    padding: 14px 18px;
    overflow: hidden;
  }

  .chronicle-panel .story-lab .mirror-header {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .chronicle-panel .story-lab .mirror-header strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .chronicle-panel .story-lab .avatar-scene {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 126px;
    height: 126px;
    min-height: 126px;
    align-self: center;
    padding: 8px;
  }

  .chronicle-panel .story-lab .avatar-orbit {
    width: 110px;
    height: 110px;
    margin-top: 0;
    transform: none;
  }

  .chronicle-panel .story-lab .avatar-orbit-name,
  .chronicle-panel .story-lab .avatar-caption {
    display: none !important;
  }

  .chronicle-panel .story-lab .mirror-metrics {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    gap: 7px;
  }

  .chronicle-panel .story-lab .mirror-clues {
    grid-column: 2;
    grid-row: 3;
    display: block;
    max-height: 38px;
    padding: 7px 10px;
    overflow: hidden;
  }

  .chronicle-panel .story-lab .mirror-clues > span {
    display: none;
  }

  .chronicle-panel .story-lab .mirror-clues ul {
    margin: 0;
  }

  .chronicle-panel .story-lab .mirror-clues li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chronicle-panel .story-lab .mirror-clues li:nth-child(n + 2),
  .chronicle-panel .story-lab .mirror-keepsakes {
    display: none !important;
  }

  .chronicle-panel .story-lab .discovery-flow {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  body.chronicle-open .chronicle-overlay {
    position: fixed;
    inset: var(--chronicle-vtop) 0 auto;
    display: block;
    width: 100vw;
    height: var(--chronicle-vh);
    padding: 0;
    overflow: hidden;
    overflow: clip;
  }

  body.chronicle-open .chronicle-panel {
    position: fixed;
    inset: var(--chronicle-vtop) 0 auto 0;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100vw;
    height: var(--chronicle-vh);
    min-height: 0;
    max-height: var(--chronicle-vh);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    animation: chronicleMobileBloom 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  body.chronicle-open .chronicle-panel-header {
    min-height: 52px;
    padding: 7px 12px;
    border-bottom-color: rgba(18, 40, 58, 0.1);
  }

  body.chronicle-open .chronicle-panel-header .section-kicker {
    margin-bottom: 2px;
    font-size: 10px;
  }

  body.chronicle-open .chronicle-panel-header h2 {
    max-width: 220px;
    font-size: 15px;
    line-height: 1.08;
  }

  body.chronicle-open .chronicle-panel-actions {
    flex-direction: row;
    gap: 6px;
  }

  body.chronicle-open .chronicle-panel-actions .button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  body.chronicle-open .chronicle-panel .story-lab {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror {
    position: relative;
    top: auto;
    order: 0;
    z-index: 8;
    grid-column: 1;
    grid-row: 1;
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 6px 10px;
    height: 154px;
    max-height: 154px;
    padding: 9px 12px 10px;
    overflow: hidden;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(8, 21, 34, 0.22);
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-header {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-header p {
    margin-bottom: 2px;
    font-size: 10px;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-header strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.14;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-scene {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 88px;
    height: 124px;
    min-height: 124px;
    align-self: center;
    padding: 6px;
    overflow: visible;
    border-radius: 8px;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-scene::before {
    inset: 8px;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-orbit {
    width: 78px;
    height: 78px;
    margin-top: 20px;
    transform: none;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-orbit-name {
    position: absolute;
    top: 3px;
    left: calc(50% + 2px);
    right: auto;
    z-index: 8;
    display: block !important;
    width: 84px;
    max-width: 84px;
    min-height: 18px;
    overflow: hidden;
    color: #f5d98a;
    font-size: var(--name-mobile-size, 12px);
    line-height: 1.18;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(245, 217, 138, 0.36);
    transform: translateX(-50%);
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-progress-joy {
    width: 78px;
    height: 78px;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-progress-traits {
    width: 66px;
    height: 66px;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-progress-interests {
    width: 54px;
    height: 54px;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-portrait {
    width: 45px;
    height: 45px;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar,
  body.chronicle-open .chronicle-panel .story-lab .avatar-placeholder {
    width: 43px;
    height: 43px;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-caption {
    position: absolute;
    top: 52px;
    right: auto;
    bottom: auto;
    left: 102px;
    display: block !important;
    width: min(264px, calc(100vw - 126px));
    margin: 0;
    text-align: left;
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-caption > span {
    display: block;
    max-height: 19px;
    overflow: hidden;
    color: rgba(202, 246, 250, 0.92);
    font-size: 7.6px;
    line-height: 1.14;
    text-overflow: clip;
    text-wrap: balance;
    white-space: normal;
    text-shadow: 0 0 10px rgba(126, 226, 224, 0.24);
  }

  body.chronicle-open .chronicle-panel .story-lab .avatar-caption .word-reveal {
    display: inline-block;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-metrics {
    position: absolute;
    top: 76px;
    left: 17px;
    right: auto;
    justify-self: start;
    align-self: start;
    display: grid !important;
    gap: 6px;
    width: min(264px, calc(100vw - 126px));
    height: auto;
    z-index: 7;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-metrics > div {
    position: static;
    width: 100%;
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: stretch;
    gap: 7px;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-metrics > div:first-child,
  body.chronicle-open .chronicle-panel .story-lab .mirror-metrics > div:last-child {
    left: auto;
    right: auto;
    bottom: auto;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-metrics span {
    margin: 0;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
  }

  body.chronicle-open .chronicle-panel .story-lab .meter {
    height: 7px;
    overflow: hidden;
    isolation: isolate;
  }

  body.chronicle-open .chronicle-panel .story-lab .meter span {
    position: absolute;
    left: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 42% 50%, rgba(255, 255, 255, 0.7) 0 0.7px, transparent 1.25px),
      radial-gradient(circle at 78% 42%, rgba(255, 250, 218, 0.58) 0 0.7px, transparent 1.25px),
      linear-gradient(90deg, rgba(255, 246, 203, 0.98) 0 24%, rgba(var(--favorite-rgb), 0.9) 62%, rgba(var(--world-rgb), 0.86) 100%);
    background-size: 38px 8px, 54px 8px, 100% 100%;
    background-color: #fff4c5;
    animation:
      meterGlow 3.8s ease-in-out infinite,
      meterSparkleDrift 7.2s ease-in-out infinite alternate;
  }

  body.chronicle-open .chronicle-panel .story-lab .meter span::after {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 0;
    width: 46px;
    height: auto;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    opacity: 0;
    pointer-events: none;
    animation: mobileMirrorGlint 5.8s cubic-bezier(0.42, 0, 0.24, 1) infinite;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-clues {
    grid-column: 2;
    grid-row: 3;
    display: block;
    max-height: 31px;
    padding: 6px 8px;
    overflow: hidden;
    border-radius: 7px;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-clues > span {
    display: none;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-clues ul {
    margin: 0;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-clues li {
    overflow: hidden;
    padding-left: 11px;
    font-size: 11px;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-clues li::before {
    top: 0.45em;
    width: 5px;
    height: 5px;
  }

  body.chronicle-open .chronicle-panel .story-lab .mirror-clues li:nth-child(n + 2),
  body.chronicle-open .chronicle-panel .story-lab .mirror-keepsakes {
    display: none !important;
  }

  body.chronicle-open .chronicle-panel .discovery-flow {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  body.chronicle-open .chronicle-panel .discovery-form {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
  }

  body.chronicle-open .chronicle-panel .form-intro[hidden],
  body.chronicle-open .chronicle-panel .discovery-form[hidden] {
    display: none !important;
  }

  body.chronicle-open .chronicle-panel .form-intro {
    min-height: 0;
    height: 100%;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(
      92px + env(safe-area-inset-bottom) + var(--chronicle-bottom-guard) +
        var(--chronicle-mobile-bottom-cushion)
    );
    scroll-padding-bottom: calc(
      108px + env(safe-area-inset-bottom) + var(--chronicle-bottom-guard) +
        var(--chronicle-mobile-bottom-cushion)
    );
    -webkit-overflow-scrolling: touch;
  }

  body.chronicle-open .chronicle-panel .intro-actions {
    position: sticky;
    bottom: calc(
      10px + env(safe-area-inset-bottom) + var(--chronicle-bottom-guard) +
        var(--chronicle-mobile-bottom-cushion)
    );
    z-index: 14;
    padding: 8px 0 2px;
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0), rgba(255, 250, 242, 0.96) 30%, #fffaf2),
      #fffaf2;
  }

  body.chronicle-open .chronicle-panel .form-chapter.active {
    min-height: 0;
    padding: 14px 16px 16px !important;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
  }

  body.chronicle-open .chronicle-panel .chapter-heading {
    margin-bottom: 10px;
  }

  body.chronicle-open .chronicle-panel .chapter-heading p {
    margin-bottom: 3px;
    font-size: 11px;
  }

  body.chronicle-open .chronicle-panel .chapter-heading h3 {
    font-size: clamp(24px, 7.2vw, 29px);
    line-height: 1.08;
  }

  body.chronicle-open .chronicle-panel .chapter-why {
    margin-bottom: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  body.chronicle-open .chronicle-panel fieldset {
    gap: 12px;
  }

  body.chronicle-open .chronicle-panel .audience-choice-grid,
  body.chronicle-open .chronicle-panel .color-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.chronicle-open .chronicle-panel input,
  body.chronicle-open .chronicle-panel textarea {
    font-size: 16px;
  }

  body.chronicle-open .chronicle-panel .mobile-step-hidden {
    display: none !important;
  }

  body.chronicle-open .chronicle-panel .mobile-step-active {
    animation: mobileStepIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body.chronicle-open .chronicle-panel .form-nav {
    position: relative !important;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    margin: 0;
    padding: 8px 16px
      calc(
        14px + env(safe-area-inset-bottom) + var(--chronicle-bottom-guard) +
          var(--chronicle-mobile-bottom-cushion)
      );
    border-top: 1px solid rgba(18, 40, 58, 0.11);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.76), #fffaf2 34%),
      #fffaf2;
    box-shadow: 0 -10px 24px rgba(18, 40, 58, 0.08);
  }

  body.chronicle-open .chronicle-panel .form-nav > [data-save-draft] {
    display: none !important;
  }

  body.chronicle-open .chronicle-panel .form-validation {
    order: 0;
    display: block;
    min-height: 16px;
    max-height: 34px;
    margin: 0;
    font-size: 12px;
    line-height: 1.28;
    overflow: hidden;
  }

  body.chronicle-open .chronicle-panel .form-validation:empty {
    display: block;
    visibility: hidden;
  }

  body.chronicle-open .chronicle-panel .chronicle-progress {
    order: 1;
    height: 8px;
  }

  body.chronicle-open .chronicle-panel .form-nav > div:not(.chronicle-progress) {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 8px;
  }

  body.chronicle-open .chronicle-panel .form-nav .button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
  }

  body.chronicle-open .chronicle-panel .form-nav .text-button {
    order: 3;
    min-height: 28px;
    padding: 0;
    text-align: center;
    font-size: 12px;
  }

  body.chronicle-keyboard-open .chronicle-panel {
    grid-template-rows: 42px minmax(0, 1fr);
  }

  body.chronicle-keyboard-open .chronicle-panel-header {
    min-height: 42px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  body.chronicle-keyboard-open .chronicle-panel-header h2 {
    display: none;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .mirror {
    grid-template-columns: 64px minmax(0, 1fr);
    height: 76px;
    max-height: 76px;
    padding: 6px 10px;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-scene {
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 3px;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-orbit {
    width: 52px;
    height: 52px;
    margin-top: 0;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-orbit-name,
  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-caption,
  body.chronicle-keyboard-open .chronicle-panel .story-lab .mirror-header {
    display: none !important;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-progress-joy {
    width: 52px;
    height: 52px;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-progress-traits {
    width: 44px;
    height: 44px;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-progress-interests {
    width: 36px;
    height: 36px;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-portrait,
  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar,
  body.chronicle-keyboard-open .chronicle-panel .story-lab .avatar-placeholder {
    width: 30px;
    height: 30px;
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .mirror-metrics {
    top: 18px;
    left: 8px;
    width: calc(100vw - 98px);
  }

  body.chronicle-keyboard-open .chronicle-panel .story-lab .mirror-clues,
  body.chronicle-keyboard-open .chronicle-panel .form-nav .text-button,
  body.chronicle-keyboard-open .chronicle-panel .chronicle-progress {
    display: none !important;
  }

  body.chronicle-keyboard-open .chronicle-panel .form-nav {
    padding: 6px 12px calc(8px + env(safe-area-inset-bottom));
  }

  body.chronicle-keyboard-open .chronicle-panel .form-nav .button {
    min-height: 40px;
    font-size: 14px;
  }

  body.chronicle-keyboard-open .chronicle-panel .chapter-heading h3 {
    font-size: 23px;
  }

  body.chronicle-keyboard-open .chronicle-panel .chapter-why {
    display: none;
  }
}
