:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0908;
}

html[lang="th"] {
  font-family: "Noto Sans Thai", Thonburi, Tahoma, sans-serif;
}

html[lang="zh-Hans"] {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh-Hant"] {
  font-family: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
}

html[lang="th"] :is(.message--first, .still, .wild, .earned, .open, .coming-card p),
html[lang="th"] .discovery-card__question {
  font-family: "Noto Serif Thai", Thonburi, Tahoma, serif;
}

html[lang="zh-Hans"] :is(.message--first, .still, .wild, .earned, .open, .coming-card p),
html[lang="zh-Hans"] .discovery-card__question {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
}

html[lang="zh-Hant"] :is(.message--first, .still, .wild, .earned, .open, .coming-card p),
html[lang="zh-Hant"] .discovery-card__question {
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
}

html[lang="th"] :is(.discovery-card, .coming-card a),
html[lang="zh-Hans"] :is(.discovery-card, .coming-card a),
html[lang="zh-Hant"] :is(.discovery-card, .coming-card a) {
  font-family: inherit;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: #0a0908;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.portal-stage {
  --story-gold: #d7ad62;
  --gate-sphere-surface: radial-gradient(circle at 35% 26%, #fff7e0 0%, #f7dc99 18%, var(--story-gold) 44%, #9e7228 74%, #4a320c 100%);
  --gate-sphere-shadow:
    0 0 0 1px rgba(246, 218, 148, .75),
    0 2px 14px rgba(215, 173, 98, .4),
    0 0 28px rgba(215, 173, 98, .24),
    inset 0 -4px 10px rgba(74, 50, 12, .65),
    inset 0 2px 6px rgba(255, 255, 255, .55);
  --gate-x: 50%;
  --gate-y: 44%;
  --gate-size: 56px;
  --text-safe-top: 54%;
  --lower-copy-center: 72%;
  --storygate-detail-x: 68%;
  --storygate-detail-y: 24%;
  --demo-detail-x: 36%;
  --demo-detail-y: 61%;
  --biography-detail-x: 19%;
  --biography-detail-y: 8%;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  overflow: clip;
  background: #0a0908;
  isolation: isolate;
}

.gesture-cue {
  position: absolute;
  left: 50%;
  bottom: max(8vh, 48px);
  z-index: 12;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(5,6,6,.62);
  backdrop-filter: blur(12px);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 220ms ease;
  pointer-events: none;
}

.portal-stage[data-gesture-active="true"] .gesture-cue {
  opacity: 1;
  transform: translate(-50%, 0);
}

.portal-image,
.coming-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.portal-image--blurred {
  z-index: 0;
  filter: blur(38px) brightness(.54) saturate(.6);
  transform: scale(1.06);
}

.portal-image--sharp {
  z-index: 1;
  opacity: 0;
  filter: blur(38px) brightness(.54) saturate(.6);
  transform: scale(1.06);
}

.portal-stage.has-image-layout .portal-image--sharp {
  inset: auto;
  left: var(--sharp-image-left);
  top: var(--sharp-image-top);
  width: var(--sharp-image-width);
  height: var(--sharp-image-height);
  object-fit: fill;
}

.portal-stage.is-token-fit .portal-image--sharp {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(4, 8, 8, .28), transparent 34%),
    linear-gradient(0deg, rgba(4, 8, 8, .54), transparent 52%);
  opacity: .15;
  transition: opacity 1.6s ease;
}

.portal-stage[data-phase="1"] .wordmark,
.portal-stage[data-phase="2"] .wordmark {
  opacity: 1;
}

.portal-stage[data-phase="1"] .discovery-star,
.portal-stage[data-phase="2"] .discovery-star {
  opacity: .92;
}

.portal-stage[data-phase="1"] .discovery-star::before,
.portal-stage[data-phase="1"] .discovery-star::after,
.portal-stage[data-phase="2"] .discovery-star::before,
.portal-stage[data-phase="2"] .discovery-star::after {
  animation-name: discovery-flare;
  animation-duration: 1.15s;
}

.portal-stage[data-phase="1"] .prelude-star,
.portal-stage[data-phase="2"] .prelude-star {
  animation-name: prelude-star-flare;
  animation-duration: 1.25s;
}

.prelude-card {
  position: absolute;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(220px, 23vw, 300px);
  min-height: 72px;
  padding: 14px 22px;
  border: 1px solid rgba(215, 173, 98, .62);
  border-radius: 16px;
  color: #f4dfb0;
  background: rgba(5, 5, 4, .92);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 0 24px rgba(215, 173, 98, .16);
  opacity: 0;
  transform: translateY(10px) scale(.94);
  filter: blur(5px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
  font: 600 16px/1 Georgia, "Times New Roman", serif;
  text-align: center;
}

.portal-stage:not([data-phase="1"]):not([data-phase="2"]) .prelude-card {
  display: none;
}

.discovery.is-remember-open .prelude-card,
.portal-stage.is-remember-open .prelude-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.portal-stage[data-phase="0"] .portal-image,
.portal-stage[data-phase="1"] .portal-image,
.portal-stage[data-phase="2"] .portal-image {
  opacity: 0;
}

.wordmark {
  position: absolute;
  top: max(5.5%, env(safe-area-inset-top));
  left: max(5.5%, env(safe-area-inset-left));
  z-index: 6;
  width: clamp(132px, 18vw, 218px);
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35));
  transition: opacity 2.4s ease;
}

.wave {
  position: absolute;
  left: var(--gate-x);
  top: var(--gate-y);
  z-index: 4;
  width: max(34px, calc(var(--gate-size) * .72));
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.2);
  border: 1px solid rgba(215, 173, 98, .9);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(215, 173, 98, .28), inset 0 0 9px rgba(215, 173, 98, .16);
  opacity: 0;
  pointer-events: none;
}

.gate {
  position: absolute;
  left: var(--gate-x);
  top: var(--gate-y);
  z-index: 10;
  width: var(--gate-size);
  min-width: 48px;
  aspect-ratio: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: var(--gate-sphere-surface);
  box-shadow: var(--gate-sphere-shadow);
  cursor: pointer;
  animation: gate-idle-pulse 2.8s ease-in-out infinite;
  transition: transform .28s ease, box-shadow .28s ease, opacity 1.2s ease;
  touch-action: manipulation;
}

.gate::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 173, 98, .35) 0%, rgba(215, 173, 98, .1) 50%, transparent 72%);
  pointer-events: none;
  z-index: -1;
  animation: gate-halo-breathe 2.8s ease-in-out infinite;
}

.gate::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(48px, 100%);
  height: max(48px, 100%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.gate:hover {
  transform: translate(-50%, -50%) scale(1.055);
  box-shadow:
    0 0 0 1.5px rgba(255, 246, 219, .95),
    0 3px 20px rgba(215, 173, 98, .58),
    0 0 46px rgba(215, 173, 98, .38),
    inset 0 -3px 8px rgba(74, 50, 12, .5),
    inset 0 2px 8px rgba(255, 255, 255, .7);
}

.gate:focus-visible {
  transform: translate(-50%, -50%) scale(1.055);
  outline: 2px solid #fff;
  outline-offset: 5px;
  box-shadow:
    0 0 0 1.5px rgba(255, 246, 219, .95),
    0 3px 20px rgba(215, 173, 98, .58),
    0 0 46px rgba(215, 173, 98, .38),
    inset 0 -3px 8px rgba(74, 50, 12, .5),
    inset 0 2px 8px rgba(255, 255, 255, .7);
}

.gate-core {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 64% 68%, rgba(255, 226, 154, .25) 0%, rgba(215, 173, 98, .08) 32%, transparent 64%);
  pointer-events: none;
  animation: gate-core-drift 4.2s ease-in-out infinite alternate;
}

.tap-hint {
  display: none;
}

.message {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  align-content: end;
  justify-items: center;
  padding: var(--text-safe-top) 8% max(24px, env(safe-area-inset-bottom));
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.message--first {
  inset: auto 0;
  top: var(--lower-copy-center);
  display: grid;
  justify-items: center;
  padding: 0 8%;
  gap: .12em;
  font: 600 clamp(19px, 4.15vw, 56px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  transform: translateY(-50%);
}

html[lang="th"] .message--first,
html[lang="zh-Hans"] .message--first,
html[lang="zh-Hant"] .message--first {
  gap: 0;
}

.reveal-line {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
}

.message--wild,
.message--final {
  z-index: 8;
}

.wild,
.still,
.final-copy {
  position: absolute;
  left: 8%;
  right: 8%;
  margin: 0;
}

.wild,
.still {
  top: var(--lower-copy-center);
  bottom: auto;
  opacity: 0;
  font: 600 clamp(38px, 6vw, 78px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  transform: translateY(calc(-50% + 24px));
  filter: blur(10px);
}

.wild {
  max-width: 920px;
  margin: 0 auto;
  font: 400 clamp(28px, 3.8vw, 52px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
}

.final-copy {
  top: var(--lower-copy-center);
  bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.6vh, 18px);
  transform: translateY(-50%);
}

.earned,
.open {
  max-width: 920px;
  margin: 0;
  opacity: 0;
  font: 400 clamp(28px, 3.8vw, 52px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
  transform: translateY(24px);
  filter: blur(10px);
}

.earned {
  font-weight: 400;
}

.open {
  font-weight: 700;
  white-space: pre-line;
}

.coming-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 16px;
  color: #fff;
  background: rgba(14, 13, 11, .38);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 42px rgba(0, 0, 0, .2);
  font: 650 15px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.coming-card a:hover,
.coming-card a:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 24px 48px rgba(0, 0, 0, .27);
  outline: none;
}

.discoveries {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.discovery {
  --spark-cardinal-delay: -1.2s;
  --spark-diagonal-delay: -4.4s;
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.discovery--storygate {
  left: var(--storygate-detail-x);
  top: var(--storygate-detail-y);
}

.discovery--demo {
  --spark-cardinal-delay: -5.2s;
  --spark-diagonal-delay: -1.1s;
  left: var(--demo-detail-x);
  top: var(--demo-detail-y);
}

.discovery--biography {
  --spark-cardinal-delay: -2.7s;
  --spark-diagonal-delay: -6.1s;
  left: var(--biography-detail-x);
  top: var(--biography-detail-y);
}

.discovery-star {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  transform: translate(-50%, -50%) scale(.92);
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 244, 1) 0 2px, rgba(255, 225, 137, .72) 3px, rgba(255, 215, 112, .16) 5px, transparent 8px);
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(28, 17, 8, .72)) drop-shadow(0 0 10px rgba(255, 229, 150, .62));
  transition: opacity .8s ease, transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
  touch-action: manipulation;
}

.discovery-star::before,
.discovery-star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

.discovery-star::before {
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse, rgba(255, 255, 247, .98) 0 8%, rgba(255, 231, 157, .6) 26%, rgba(233, 183, 83, .18) 54%, transparent 76%) center / 42px 2px no-repeat,
    radial-gradient(ellipse, rgba(255, 255, 244, .95) 0 8%, rgba(255, 227, 147, .52) 28%, rgba(229, 173, 72, .15) 56%, transparent 78%) center / 2px 38px no-repeat,
    radial-gradient(circle, #fffef1 0 25%, rgba(255, 228, 148, .92) 28% 46%, transparent 72%) center / 8px 8px no-repeat;
  animation: discovery-twinkle 3.2s var(--spark-cardinal-delay) ease-in-out infinite;
}

.discovery-star::after {
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%) rotate(45deg);
  background:
    radial-gradient(ellipse, rgba(255, 255, 241, .8) 0 8%, rgba(255, 222, 132, .38) 30%, transparent 70%) center / 30px 1.2px no-repeat,
    radial-gradient(ellipse, rgba(255, 253, 232, .76) 0 8%, rgba(255, 218, 122, .34) 30%, transparent 72%) center / 1.2px 28px no-repeat;
  animation: discovery-twinkle 2.6s var(--spark-diagonal-delay) ease-in-out infinite;
}

.discovery.is-ready .discovery-star {
  opacity: .84;
  pointer-events: auto;
}

.discovery.is-found .discovery-star {
  opacity: .96;
  filter: brightness(1.35) drop-shadow(0 0 13px rgba(255, 234, 164, .58));
}

.discovery-star:hover,
.discovery-star:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.48);
  filter: brightness(1.6) drop-shadow(0 0 18px rgba(255, 240, 181, .82));
  outline: 1px solid rgba(255, 248, 211, .72);
  outline-offset: -8px;
}

.discovery-star--small::before {
  transform: translate(-50%, -50%) scale(.72);
}

.discovery-star--small::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(.72);
}

.discovery-card {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(220px, 23vw, 300px);
  min-height: 72px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 16px;
  color: #fff;
  background: rgba(8, 14, 14, .6);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 42px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(10px) scale(.94);
  filter: blur(5px);
  font: 650 15px/1.15 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  pointer-events: none;
  transition: opacity .75s ease, transform .75s cubic-bezier(.16, .72, .18, 1), filter .75s ease, box-shadow .28s ease, background .28s ease;
}

.discovery--storygate .prelude-card,
.discovery--storygate .discovery-card {
  top: 20px;
  right: 26px;
}

.discovery--demo .prelude-card,
.discovery--demo .discovery-card {
  top: -18px;
  left: 26px;
}

.discovery--biography .prelude-card,
.discovery--biography .discovery-card {
  top: 22px;
  left: -18px;
}

.discovery.is-open .discovery-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.discovery-card:hover,
.discovery-card:focus-visible {
  transform: translateY(-3px) scale(1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 24px 48px rgba(0, 0, 0, .3);
  outline: none;
}

.discovery-card--biography {
  flex-direction: column;
  gap: 5px;
  min-height: 78px;
}

.discovery-card__question {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 500;
}

.discovery-card--biography strong {
  font: 600 20px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.portal-stage.is-partial-focus .portal-image--sharp {
  animation: partial-focus 1.55s cubic-bezier(.16, .72, .18, 1) both;
}

.portal-stage.is-full-focus .portal-image--sharp {
  animation: full-focus 4.2s cubic-bezier(.16, .72, .18, 1) both;
}

.portal-stage.is-full-focus .wordmark {
  opacity: 1;
}

.portal-stage.is-rippling .wave {
  border-color: rgba(215, 173, 98, .9);
  box-shadow: 0 0 14px rgba(215, 173, 98, .28), inset 0 0 9px rgba(215, 173, 98, .16);
  animation: water-ripple 1.65s cubic-bezier(.16, .72, .16, 1) both;
}

.portal-stage.is-rippling .gate {
  background: var(--gate-sphere-surface);
  box-shadow: var(--gate-sphere-shadow);
}

.portal-stage.is-full-focus .gate {
  background: var(--gate-sphere-surface);
  box-shadow: var(--gate-sphere-shadow);
}

.portal-stage .wave:nth-of-type(2) {
  animation-delay: 0s;
}

.portal-stage .wave:nth-of-type(3) {
  animation-delay: .18s;
}

.portal-stage .wave:nth-of-type(4) {
  animation-delay: .36s;
}

.portal-stage.is-partial-focus .gate,
.portal-stage.is-full-focus .gate,
.portal-stage.has-message .gate {
  animation: none;
}

.portal-stage.is-message-idle .gate {
  animation: gate-idle-pulse 2.4s ease-in-out infinite;
}

.portal-stage.has-message .veil {
  opacity: 1;
}

.portal-stage.is-partial-focus .veil {
  opacity: .72;
}

.portal-stage.is-full-focus .veil {
  opacity: .3;
}

.portal-stage.has-message .gate {
  opacity: .62;
  background: var(--gate-sphere-surface);
  box-shadow: var(--gate-sphere-shadow);
}

.portal-stage.has-message.is-message-idle .gate {
  opacity: .78;
  animation: gate-idle-pulse 2.4s ease-in-out infinite;
}

.portal-stage.has-message .reveal-line {
  animation: centered-line 1.8s cubic-bezier(.16, .72, .18, 1) both;
  animation-delay: var(--line-delay, .15s);
}

.portal-stage.is-still-prompt .message--first {
  animation: primary-message-out 1.2s ease both;
}

.portal-stage.is-still-prompt .still {
  animation: still-word-in 1.8s .45s cubic-bezier(.16, .72, .18, 1) both;
}

.portal-stage.is-wild-prompt .still,
.portal-stage.is-final-act .still {
  animation: still-tease-out 1.25s ease both;
}

.portal-stage.is-wild-prompt .wild {
  animation: final-line-in 1.8s .55s cubic-bezier(.16, .72, .18, 1) both;
}

.portal-stage.is-final-act .message--wild {
  animation: wild-message-out 1.1s ease both;
}

.portal-stage.is-final-act .earned {
  animation: earned-beat 3.15s .75s ease both;
}

.portal-stage.is-final-act .open {
  animation: final-line-in 2s 3.45s cubic-bezier(.16, .72, .18, 1) both;
}

.portal-stage.is-final-act .final-copy {
  animation: final-copy-out 1.35s 6.85s ease both;
}

.portal-stage.is-still-prompt .veil {
  opacity: .3;
}

.portal-stage.is-still-prompt .gate,
.portal-stage.is-wild-prompt .gate {
  opacity: .9;
  pointer-events: auto;
  animation: gate-idle-pulse 2.4s ease-in-out infinite;
}

/* The gate point remains the earned focus marker after the image is fully sharp. */
.portal-stage.is-final-act .gate {
  opacity: .78;
  pointer-events: none;
  background: var(--gate-sphere-surface);
  box-shadow: var(--gate-sphere-shadow);
  animation: none;
}

.coming-page {
  overflow: hidden;
}

.coming-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.coming-background {
  z-index: -3;
  filter: blur(26px) brightness(.5) saturate(.72);
  transform: scale(1.08);
}

.coming-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, rgba(3, 14, 15, .76), rgba(22, 15, 8, .42));
}

.coming-wordmark {
  position: absolute;
  top: max(5.5%, env(safe-area-inset-top));
  left: max(5.5%, env(safe-area-inset-left));
  width: clamp(132px, 18vw, 218px);
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35));
}

.coming-card {
  display: grid;
  justify-items: center;
  gap: 34px;
  width: min(520px, calc(100% - 40px));
  padding: 48px 32px;
  text-align: center;
}

.coming-card p {
  margin: 0;
  color: #fff;
  font: 600 clamp(48px, 8vw, 92px)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.coming-card a {
  min-width: 220px;
  min-height: 62px;
}

@keyframes partial-focus {
  from {
    opacity: 0;
    filter: blur(38px) brightness(.54) saturate(.6);
    transform: scale(1.06);
  }
  to {
    opacity: .52;
    filter: blur(20px) brightness(.73) saturate(.76);
    transform: scale(1.035);
  }
}

@keyframes full-focus {
  from {
    opacity: .52;
    filter: blur(20px) brightness(.73) saturate(.76);
    transform: scale(1.035);
  }
  to {
    opacity: 1;
    filter: blur(0) brightness(1) saturate(1);
    transform: scale(1);
  }
}

@keyframes water-ripple {
  0% { transform: translate(-50%, -50%) scale(.28); opacity: 0; }
  16% { opacity: .7; }
  38% { opacity: .28; }
  56% { opacity: .5; }
  100% { transform: translate(-50%, -50%) scale(6.1); opacity: 0; }
}

@keyframes gate-idle-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 0 1px rgba(246, 218, 148, .75),
      0 2px 14px rgba(215, 173, 98, .38),
      0 0 28px rgba(215, 173, 98, .22),
      inset 0 -4px 10px rgba(74, 50, 12, .65),
      inset 0 2px 6px rgba(255, 255, 255, .55);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.036);
    box-shadow:
      0 0 0 1.5px rgba(255, 246, 219, .88),
      0 3px 20px rgba(215, 173, 98, .5),
      0 0 42px rgba(215, 173, 98, .32),
      inset 0 -3px 8px rgba(74, 50, 12, .5),
      inset 0 2px 8px rgba(255, 255, 255, .7);
  }
}

@keyframes gate-halo-breathe {
  0%, 100% {
    transform: scale(.92);
    opacity: .45;
  }
  50% {
    transform: scale(1.12);
    opacity: .85;
  }
}

@keyframes gate-core-drift {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: .5;
  }
  100% {
    transform: rotate(20deg) scale(1.06);
    opacity: .85;
  }
}

@keyframes discovery-flare {
  0%, 100% { opacity: .5; filter: brightness(1); }
  24% { opacity: 1; filter: brightness(2.45); }
  42% { opacity: .62; filter: brightness(1.1); }
  66% { opacity: 1; filter: brightness(2.1); }
}

@keyframes centered-line {
  from { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes primary-message-out {
  from { opacity: 1; filter: blur(0); transform: translateY(-50%); }
  to { opacity: 0; filter: blur(12px); transform: translateY(calc(-50% + 24px)); }
}

@keyframes still-word-in {
  from { opacity: 0; transform: translateY(calc(-50% + 24px)); filter: blur(10px); }
  to { opacity: 1; transform: translateY(-50%); filter: blur(0); }
}

@keyframes still-tease-out {
  from { opacity: 1; transform: translateY(-50%); filter: blur(0); }
  to { opacity: 0; transform: translateY(calc(-50% + 18px)); filter: blur(9px); }
}

@keyframes wild-message-out {
  from { opacity: 1; filter: blur(0); }
  to { opacity: 0; filter: blur(10px); transform: translateY(18px); }
}

@keyframes final-line-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes earned-beat {
  0% { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  25%, 68% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-12px); filter: blur(8px); }
}

@keyframes final-copy-out {
  from { opacity: 1; filter: blur(0); transform: translateY(-50%); }
  to { opacity: 0; filter: blur(9px); transform: translateY(calc(-50% + 16px)); }
}

@keyframes discovery-twinkle {
  0%, 100% { opacity: .58; filter: brightness(1); }
  32% { opacity: 1; filter: brightness(1.58); }
  58% { opacity: .68; filter: brightness(1.08); }
  82% { opacity: .96; filter: brightness(1.42); }
}

@media (max-width: 680px) {
  .wordmark,
  .coming-wordmark {
    top: max(5%, env(safe-area-inset-top));
    left: max(7%, env(safe-area-inset-left));
    width: 132px;
  }

  .message {
    padding: var(--text-safe-top) 7% max(20px, env(safe-area-inset-bottom));
  }

  .message--first {
    padding: 0 7%;
    font-size: clamp(16px, 5vw, 24px);
  }

  .still,
  .final-copy {
    left: 7%;
    right: 7%;
  }

  .still {
    font-size: clamp(38px, 11vw, 54px);
  }

  .wild,
  .earned,
  .open {
    font-size: clamp(21px, 6.2vw, 30px);
    line-height: 1.04;
  }

  .discovery-card {
    width: min(220px, calc(100vw - 40px));
    min-height: 58px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 12.5px;
  }

  .discovery--storygate .prelude-card,
  .discovery--storygate .discovery-card {
    top: auto;
    right: auto;
    bottom: 24px;
    left: calc(50vw - var(--storygate-detail-x) - 110px);
  }

  .discovery--demo .prelude-card,
  .discovery--demo .discovery-card {
    top: -12px;
    left: 22px;
  }

  .discovery--biography .prelude-card,
  .discovery--biography .discovery-card {
    top: 20px;
    left: -96px;
  }

  .discovery-card--biography {
    min-height: 70px;
  }

  .discovery-card--biography strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }

  .portal-stage.is-wild-prompt .still,
  .portal-stage.is-final-act .still {
    opacity: 0;
    animation: none !important;
    filter: none;
    transform: translateY(-50%);
  }

  .portal-stage.is-wild-prompt .wild {
    opacity: 1;
    animation: none !important;
    filter: none;
    transform: none;
  }

  .portal-stage.is-final-act .message--wild {
    opacity: 0;
  }

  .portal-stage.is-final-act .earned,
  .portal-stage.is-final-act .open {
    opacity: 1;
    animation: none !important;
    filter: none;
    transform: none;
  }

  .portal-stage.is-final-act .final-copy {
    opacity: 1;
    animation: none !important;
    filter: none;
    transform: translateY(-50%);
  }

  .portal-stage.is-final-act.is-discovery-ready .final-copy {
    opacity: 0;
  }

  .gate,
  .gate::before,
  .gate-core {
    animation: none !important;
  }
}
