:root {
  --night-blue: #151d3b;
  --twilight-purple: #756b96;
  --peach-pink: #dfa3ae;
  --sun-gold: #ffe0a8;
  --card-cream: #f9f1ea;
  --ink: #555068;
  --night-text: #f8f3f0;
  --night-muted: rgba(245, 239, 240, 0.72);
  --glass: rgba(248, 241, 238, 0.12);
  --glass-border: rgba(255, 246, 240, 0.26);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --scene-duration: 700ms;
  --tap-duration: 180ms;
  --safe-top: max(22px, env(safe-area-inset-top));
  --safe-bottom: max(24px, env(safe-area-inset-bottom));
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  height: -webkit-fill-available;
  background: var(--night-blue);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night-blue);
  color: var(--night-text);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
[type="range"] {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

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

.experience {
  --sun-p: 0;
  --sun-y: 118px;
  --cloud-shift: -8px;
  --slider-p: 0%;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--night-blue);
}

@supports (height: 100dvh) {
  .experience {
    height: 100dvh;
  }
}

.sky,
.sky > div,
.mountains {
  position: absolute;
  inset: 0;
}

.sky {
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sky__night {
  background:
    radial-gradient(circle at 72% 18%, rgba(121, 114, 160, 0.26), transparent 32%),
    linear-gradient(180deg, #111833 0%, #1b2547 48%, #343957 100%);
}

.sky__dawn {
  opacity: var(--sun-p);
  background:
    radial-gradient(circle at 50% 68%, rgba(255, 224, 168, 0.72), transparent 27%),
    linear-gradient(180deg, #615f82 0%, #8d7696 43%, #d79aa9 72%, #f2c6b2 100%);
  transition: opacity 120ms linear;
}

.sky__light {
  top: auto !important;
  height: 64%;
  opacity: calc(var(--sun-p) * 0.92);
  background: radial-gradient(ellipse at 50% 76%, rgba(255, 232, 183, 0.88), transparent 55%);
}

.stars {
  opacity: calc(1 - var(--sun-p));
  transition: opacity 120ms linear;
}

.stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(255, 247, 231, 0.92);
  box-shadow: 0 0 7px rgba(255, 236, 200, 0.58);
  animation: star-breathe 4.4s var(--d) ease-in-out infinite;
}

.cloud {
  inset: auto !important;
  height: 24px;
  border-radius: 999px;
  opacity: calc(0.08 + var(--sun-p) * 0.14);
  background: rgba(255, 239, 229, 0.78);
  filter: blur(0.2px);
  transform: translate3d(var(--cloud-shift), 0, 0);
  transition: opacity 180ms linear, transform 180ms linear;
}

.cloud::before,
.cloud::after,
.cloud span {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 40px;
  height: 32px;
  left: 24px;
  bottom: 4px;
}

.cloud::after {
  width: 48px;
  height: 38px;
  right: 24px;
  bottom: 2px;
}

.cloud span:first-child {
  width: 28px;
  height: 24px;
  left: 4px;
  bottom: 1px;
}

.cloud span:last-child {
  width: 34px;
  height: 26px;
  right: 4px;
  bottom: 0;
}

.cloud--one {
  top: 25% !important;
  left: -34px !important;
  width: 126px;
  transform: translate3d(calc(var(--cloud-shift) * 0.7), 0, 0) scale(0.72);
}

.cloud--two {
  top: 35% !important;
  right: -46px !important;
  width: 154px;
  transform: translate3d(calc(var(--cloud-shift) * -1), 0, 0) scale(0.9);
}

.cloud--three {
  top: 50% !important;
  left: 58% !important;
  width: 100px;
  transform: translate3d(calc(var(--cloud-shift) * 0.45), 0, 0) scale(0.52);
}

.sun-wrap {
  inset: auto auto 18% 50% !important;
  width: 112px;
  height: 112px;
  transform: translate3d(-50%, var(--sun-y), 0);
  transition: transform 120ms linear;
}

.sun,
.sun-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sun {
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, #fff6d6 0%, var(--sun-gold) 62%, #ffc991 100%);
  box-shadow:
    inset -5px -7px 14px rgba(242, 171, 117, 0.18),
    0 0 18px rgba(255, 225, 165, 0.58);
}

.sun-halo--near {
  width: 104px;
  height: 104px;
  opacity: calc(0.26 + var(--sun-p) * 0.4);
  background: radial-gradient(circle, rgba(255, 227, 177, 0.42), rgba(255, 218, 164, 0));
}

.sun-halo--wide {
  width: 236px;
  height: 236px;
  opacity: calc(0.1 + var(--sun-p) * 0.35);
  background: radial-gradient(circle, rgba(255, 219, 166, 0.29), rgba(255, 207, 168, 0) 68%);
}

.mountains {
  top: auto;
  width: 100%;
  height: 48%;
}

.mountains__night {
  opacity: calc(1 - var(--sun-p) * 0.68);
}

.mountains__dawn {
  opacity: calc(var(--sun-p) * 0.9);
}

.horizon-mist {
  top: auto !important;
  bottom: 24% !important;
  height: 18% !important;
  opacity: calc(var(--sun-p) * 0.6);
  background: linear-gradient(180deg, transparent, rgba(255, 228, 207, 0.26), transparent);
  filter: blur(10px);
}

.film-grain {
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.28) 0 0.5px, transparent 0.7px),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.18) 0 0.5px, transparent 0.7px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: soft-light;
}

.stage {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  min-height: 100%;
  padding: calc(var(--safe-top) + 18px) clamp(20px, 7vw, 34px) calc(var(--safe-bottom) + 18px);
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  pointer-events: none;
  transition: opacity var(--scene-duration) var(--ease-soft), transform var(--scene-duration) var(--ease-soft);
  scrollbar-width: none;
}

.stage::-webkit-scrollbar {
  display: none;
}

.stage.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.stage h1,
.stage h2,
.stage p {
  margin-top: 0;
}

.stage h1:focus,
.stage h2:focus {
  outline: none;
}

.stage--intro {
  grid-template-rows: 1fr;
  align-items: center;
  text-align: center;
}

.intro-copy {
  width: min(100%, 430px);
  margin: clamp(62px, 12vh, 112px) auto 0;
}

.subtitle {
  margin-bottom: 18px;
  color: rgba(255, 235, 214, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.08em;
  animation: text-arrive 900ms 100ms both var(--ease-soft);
}

.intro-copy h1 {
  margin-bottom: 32px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(32px, 9.2vw, 44px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.07em;
  text-shadow: 0 5px 26px rgba(7, 12, 33, 0.32);
  animation: text-arrive 900ms 240ms both var(--ease-soft);
}

.opening-lines {
  margin-bottom: 36px;
  color: var(--night-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.opening-lines p {
  margin-bottom: 2px;
  animation: text-arrive 850ms both var(--ease-soft);
}

.opening-lines p:first-child {
  animation-delay: 420ms;
}

.opening-lines p:last-child {
  animation-delay: 570ms;
}

.button {
  appearance: none;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition:
    transform var(--tap-duration) var(--ease-standard),
    box-shadow var(--tap-duration) var(--ease-standard),
    background-color var(--tap-duration) var(--ease-standard),
    opacity var(--tap-duration) var(--ease-standard);
}

.button:active {
  transform: scale(0.975);
}

.button:focus-visible,
.mood-card:focus-visible,
.egg-button:focus-visible,
#sunriseSlider:focus-visible {
  outline: 3px solid rgba(255, 233, 187, 0.92);
  outline-offset: 4px;
}

.button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 172px;
  padding: 0 26px;
  color: #4e4962;
  background: linear-gradient(135deg, #fff4df, #ffe0b1);
  box-shadow:
    0 12px 34px rgba(6, 10, 28, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
  animation: text-arrive 850ms 760ms both var(--ease-soft);
}

.button--primary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media (hover: hover) {
  .button--primary:hover {
    transform: translateY(-2px);
    box-shadow:
      0 16px 38px rgba(6, 10, 28, 0.26),
      inset 0 1px rgba(255, 255, 255, 0.76);
  }
}

.stage--sunrise {
  align-items: end;
  text-align: center;
}

.sunrise-panel,
.sunrise-complete {
  width: min(100%, 440px);
  margin: 0 auto;
}

.sunrise-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sunrise-heading p {
  margin-bottom: 0;
  color: rgba(255, 247, 239, 0.9);
  font-size: 15px;
  letter-spacing: 0.07em;
}

.tiny-sun {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 226, 171, 0.84);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 224, 168, 0.54);
}

.slider-card {
  padding: 16px 18px 13px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: rgba(38, 39, 68, 0.26);
  box-shadow: 0 14px 42px rgba(12, 16, 38, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.slider-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  color: rgba(255, 248, 241, 0.62);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.slider-meta strong {
  color: rgba(255, 245, 232, 0.86);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.06em;
}

#sunriseSlider {
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

#sunriseSlider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ffe0a8 var(--slider-p), rgba(255, 255, 255, 0.2) var(--slider-p));
  box-shadow: inset 0 1px 2px rgba(10, 14, 35, 0.22);
}

#sunriseSlider::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -12.5px;
  appearance: none;
  border: 5px solid rgba(255, 245, 223, 0.5);
  border-radius: 50%;
  background: #ffe2ad;
  background-clip: padding-box;
  box-shadow: 0 4px 15px rgba(26, 24, 50, 0.32);
}

#sunriseSlider::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

#sunriseSlider::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: #ffe0a8;
}

#sunriseSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 5px solid rgba(255, 245, 223, 0.5);
  border-radius: 50%;
  background: #ffe2ad;
  box-shadow: 0 4px 15px rgba(26, 24, 50, 0.32);
}

.button--quiet {
  margin-top: 10px;
  padding: 0 20px;
  color: rgba(255, 248, 240, 0.72);
  background: transparent;
  font-size: 13px;
}

.button--quiet::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 2px;
  background: currentColor;
  opacity: 0.28;
}

.sunrise-complete {
  align-self: center;
  padding-bottom: clamp(28px, 8vh, 72px);
  text-shadow: 0 4px 24px rgba(49, 38, 61, 0.16);
  animation: complete-arrive 800ms both var(--ease-soft);
}

.morning-mark {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 64px;
  height: 32px;
  margin-bottom: 18px;
  overflow: hidden;
}

.morning-mark::before {
  content: "";
  position: absolute;
  top: 11px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 244, 214, 0.88);
  border-radius: 50%;
  background: rgba(255, 227, 171, 0.22);
  box-shadow: 0 0 16px rgba(255, 227, 171, 0.28);
}

.morning-mark i {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 1px;
  height: 7px;
  background: rgba(255, 245, 218, 0.72);
  transform-origin: 50% 28px;
}

.morning-mark i:nth-child(2) {
  transform: rotate(-50deg);
}

.morning-mark i:nth-child(3) {
  transform: rotate(50deg);
}

.sunrise-complete h2 {
  margin-bottom: 8px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 500;
  letter-spacing: 0.13em;
}

.sunrise-complete > p {
  margin-bottom: 34px;
  color: rgba(80, 67, 87, 0.82);
  font-size: 16px;
  letter-spacing: 0.09em;
}

.button--warm {
  color: #585067;
  background: rgba(255, 246, 226, 0.9);
  box-shadow: 0 12px 32px rgba(85, 67, 75, 0.17);
  animation-delay: 280ms;
}

.stage--mood {
  align-items: center;
}

.mood-panel {
  width: min(100%, 440px);
  margin: auto;
  padding: 20px 0 12px;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
  text-shadow: 0 4px 22px rgba(57, 43, 68, 0.16);
}

.section-heading h2 {
  margin-bottom: 12px;
  color: #fff8ee;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(28px, 7.5vw, 38px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.055em;
}

.section-heading p {
  margin-bottom: 0;
  color: rgba(255, 248, 240, 0.72);
  font-size: 14px;
  letter-spacing: 0.09em;
}

.mood-options {
  display: grid;
  gap: 12px;
}

.mood-card {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 42px 25px 1fr 26px;
  align-items: center;
  min-height: 74px;
  padding: 10px 16px 10px 13px;
  border: 1px solid rgba(255, 247, 238, 0.24);
  border-radius: 22px;
  color: rgba(255, 250, 244, 0.94);
  background: rgba(249, 240, 233, 0.12);
  box-shadow: 0 12px 30px rgba(39, 31, 56, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
  transition:
    transform 260ms var(--ease-soft),
    border-color 260ms var(--ease-standard),
    background-color 260ms var(--ease-standard),
    box-shadow 260ms var(--ease-standard);
}

.mood-card:active {
  transform: scale(0.985);
}

.mood-card.is-selected {
  z-index: 1;
  border-color: rgba(255, 232, 188, 0.88);
  background: rgba(255, 241, 216, 0.22);
  box-shadow:
    0 14px 36px rgba(49, 37, 62, 0.16),
    0 0 0 1px rgba(255, 232, 188, 0.18);
  transform: scale(1.025);
}

@media (hover: hover) {
  .mood-card:hover {
    border-color: rgba(255, 241, 220, 0.48);
    transform: translateY(-2px);
  }
}

.mood-icon {
  font-size: 28px;
  filter: saturate(0.78) drop-shadow(0 3px 7px rgba(51, 40, 67, 0.14));
}

.mood-letter {
  color: rgba(255, 246, 235, 0.52);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.mood-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.055em;
}

.mood-arrow {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 244, 231, 0.18);
  border-radius: 50%;
}

.mood-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: rgba(255, 248, 240, 0.7);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.stage--card {
  align-items: center;
  padding-top: calc(var(--safe-top) + 22px);
}

.card-wrap {
  width: min(100%, 430px);
  margin: auto;
  padding: 36px 0 14px;
  text-align: center;
}

.note-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 8vw, 38px) clamp(24px, 7vw, 34px) 34px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  color: var(--ink);
  background:
    linear-gradient(rgba(249, 241, 234, 0.96), rgba(249, 241, 234, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(91, 76, 100, 0.025) 5px 6px);
  box-shadow:
    0 24px 60px rgba(50, 38, 60, 0.22),
    0 2px 8px rgba(59, 45, 64, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.8);
  text-align: left;
  animation: card-arrive 760ms both var(--ease-soft);
}

.note-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(rgba(83, 72, 93, 0.1) 0.45px, transparent 0.55px);
  background-size: 6px 6px;
  pointer-events: none;
}

.note-card__label {
  position: relative;
  margin-bottom: 12px;
  color: rgba(85, 80, 104, 0.68);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.recipient-greeting {
  position: relative;
  max-width: 250px;
  margin-bottom: 26px;
  color: #504a61;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(28px, 7.6vw, 35px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  opacity: 0;
}

.stage--card.is-active .recipient-greeting {
  animation: recipient-reveal 900ms 800ms both var(--ease-soft);
}

.card-message {
  position: relative;
  min-height: 68px;
  color: #605a6d;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

.card-message p {
  margin-bottom: 2px;
}

.card-divider {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 25px 0 22px;
  color: rgba(151, 117, 111, 0.48);
  font-size: 13px;
}

.card-divider::before,
.card-divider::after {
  content: "";
  height: 1px;
  background: rgba(85, 80, 104, 0.12);
}

.card-footer {
  position: relative;
  padding-right: 4px;
  color: rgba(85, 80, 104, 0.78);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.035em;
}

.card-footer p {
  margin-bottom: 1px;
}

.paper-sun {
  position: absolute;
  top: 74px;
  right: -28px;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(221, 158, 145, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 13px rgba(221, 158, 145, 0.035),
    0 0 0 27px rgba(221, 158, 145, 0.025);
}

.egg-button {
  appearance: none;
  position: absolute;
  z-index: 4;
  top: var(--safe-top);
  right: max(10px, env(safe-area-inset-right));
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.egg-star {
  color: rgba(255, 244, 214, 0.63);
  font-size: 13px;
  text-shadow: 0 0 8px rgba(255, 229, 180, 0.3);
  animation: secret-star 4.2s ease-in-out infinite;
  transition: color 600ms var(--ease-soft), text-shadow 600ms var(--ease-soft), transform 600ms var(--ease-soft);
}

.egg-is-open .egg-star {
  color: #fff2c9;
  text-shadow:
    0 0 9px rgba(255, 233, 186, 0.9),
    0 0 22px rgba(255, 221, 164, 0.68);
  transform: scale(1.35) rotate(16deg);
}

.egg-message {
  position: relative;
  max-height: 0;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  color: rgba(255, 248, 239, 0.88);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  transform: translateY(-8px);
  transition:
    margin 800ms var(--ease-soft),
    opacity 700ms 80ms var(--ease-soft),
    transform 700ms 80ms var(--ease-soft);
}

.egg-message p {
  margin-bottom: 2px;
}

.egg-is-open .egg-message {
  max-height: none;
  margin: 18px auto 4px;
  overflow: visible;
  opacity: 1;
  text-shadow: 0 1px 10px rgba(68, 50, 74, 0.42);
  transform: translateY(0);
}

.egg-particles {
  position: absolute;
  inset: 50% 0 auto;
  pointer-events: none;
}

.egg-particles i {
  position: absolute;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  opacity: 0;
  background: #ffe7af;
  box-shadow: 0 0 6px rgba(255, 226, 171, 0.72);
}

.egg-is-open .egg-particles i {
  animation: particle-float 1.6s both var(--ease-soft);
}

.egg-particles i:nth-child(1) { --px: -92px; --py: -20px; animation-delay: 80ms !important; }
.egg-particles i:nth-child(2) { --px: -56px; --py: -44px; animation-delay: 180ms !important; }
.egg-particles i:nth-child(3) { --px: -20px; --py: -30px; animation-delay: 320ms !important; }
.egg-particles i:nth-child(4) { --px: 35px; --py: -40px; animation-delay: 140ms !important; }
.egg-particles i:nth-child(5) { --px: 76px; --py: -22px; animation-delay: 260ms !important; }
.egg-particles i:nth-child(6) { --px: 104px; --py: -38px; animation-delay: 380ms !important; }

.button--restart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0 18px;
  color: rgba(255, 248, 240, 0.67);
  background: transparent;
  font-size: 12px;
}

.button--restart svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

#cardScene .card-wrap .world-light-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-width: 112px;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 244, 231, 0.16);
  border-radius: 999px;
  color: rgba(255, 248, 240, 0.7);
  background: rgba(248, 241, 238, 0.055);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    color var(--tap-duration) var(--ease-standard),
    border-color var(--tap-duration) var(--ease-standard),
    background-color var(--tap-duration) var(--ease-standard),
    transform var(--tap-duration) var(--ease-standard);
}

#cardScene .card-wrap .world-light-link:active {
  transform: scale(0.975);
}

#cardScene .card-wrap .world-light-link:focus-visible {
  outline: 3px solid rgba(255, 233, 187, 0.92);
  outline-offset: 4px;
}

@media (hover: hover) {
  #cardScene .card-wrap .world-light-link:hover {
    color: rgba(255, 248, 240, 0.88);
    border-color: rgba(255, 233, 187, 0.32);
    background: rgba(248, 241, 238, 0.09);
  }
}

@keyframes star-breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.78); }
  48% { opacity: 1; transform: scale(1.18); }
}

@keyframes text-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes complete-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-arrive {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes recipient-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes secret-star {
  0%, 100% { opacity: 0.46; transform: scale(0.86); }
  52% { opacity: 0.92; transform: scale(1.08); }
}

@keyframes particle-float {
  0% { opacity: 0; transform: translate(0, 10px) scale(0.5); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(1); }
}

@media (max-width: 350px) {
  .stage {
    padding-right: 18px;
    padding-left: 18px;
  }

  .intro-copy {
    margin-top: 52px;
  }

  .intro-copy h1 {
    font-size: 30px;
  }

  .opening-lines {
    font-size: 14px;
  }

  .mood-card {
    grid-template-columns: 38px 22px 1fr 24px;
    padding-right: 13px;
    padding-left: 11px;
  }

  .note-card {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-height: 690px) {
  .stage {
    padding-top: calc(var(--safe-top) + 10px);
    padding-bottom: calc(var(--safe-bottom) + 10px);
  }

  .intro-copy {
    margin-top: 42px;
  }

  .subtitle {
    margin-bottom: 12px;
  }

  .intro-copy h1 {
    margin-bottom: 22px;
  }

  .opening-lines {
    margin-bottom: 24px;
    line-height: 1.75;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2 {
    margin-bottom: 7px;
    font-size: 28px;
  }

  .mood-options {
    gap: 9px;
  }

  .mood-card {
    min-height: 66px;
  }

  .card-wrap {
    padding-top: 26px;
  }

  .note-card {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .recipient-greeting {
    margin-bottom: 20px;
    font-size: 27px;
  }

  .card-divider {
    margin: 18px 0 15px;
  }

  .button--restart {
    margin-top: 8px;
  }
}

@media (min-width: 700px) {
  .experience::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }

  .stage {
    padding-right: max(34px, calc((100vw - 520px) / 2));
    padding-left: max(34px, calc((100vw - 520px) / 2));
  }
}

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

