:root {
  color-scheme: dark;
  --ink: #0b1020;
  --ink-soft: #141a2e;
  --paper: #fff8ee;
  --paper-ink: #402b2f;
  --rose: #ff6f91;
  --rose-soft: #ffb3c2;
  --gold: #ffd166;
  --teal: #6ee7d8;
  --mint: #9af3bd;
  --violet: #b892ff;
  --white: #fffdf7;
  --muted: rgba(255, 253, 247, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 111, 145, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 20%, rgba(110, 231, 216, 0.22), transparent 26rem),
    radial-gradient(circle at 50% 90%, rgba(255, 209, 102, 0.18), transparent 28rem),
    linear-gradient(145deg, #090d1b 0%, #11152a 48%, #180f21 100%);
  color: var(--white);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    system-ui,
    sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 75%);
}

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

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

button {
  font: inherit;
}

#sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(0);
  contain: strict;
}

.aurora {
  position: fixed;
  inset: auto -12% -12% -12%;
  z-index: -1;
  height: 38vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 60%, rgba(255, 209, 102, 0.2), transparent 55%),
    radial-gradient(ellipse at 50% 48%, rgba(255, 111, 145, 0.16), transparent 60%),
    radial-gradient(ellipse at 84% 62%, rgba(110, 231, 216, 0.16), transparent 56%);
  filter: blur(18px);
  transform: translateZ(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 42px;
  background: linear-gradient(to bottom, rgba(9, 13, 27, 0.82), rgba(9, 13, 27, 0));
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 253, 247, 0.92);
}

.brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.56);
  border-radius: 50%;
  color: var(--gold);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.26);
}

.brand strong {
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav a {
  min-width: 82px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.78);
  font-size: 0.92rem;
  text-align: center;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-1px);
}

main {
  position: relative;
}

section {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 44px;
  align-items: center;
  min-height: 92vh;
  padding: 112px 7vw 74px;
}

.hero::after {
  position: absolute;
  right: 7vw;
  bottom: 22px;
  width: 190px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.78), transparent);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 4.6rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(255, 111, 145, 0.26);
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.45rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.38;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  min-height: 4.4rem;
  color: var(--muted);
  font-size: 1.22rem;
  overflow-wrap: anywhere;
}

.hero-lead span {
  overflow-wrap: anywhere;
}

.hero-lead span::after {
  display: inline-block;
  width: 0.55em;
  height: 1.2em;
  margin-left: 4px;
  vertical-align: -0.18em;
  content: "";
  border-right: 2px solid var(--gold);
  animation: blink 900ms steps(2, start) infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-action {
  color: #24151a;
  background: linear-gradient(135deg, var(--gold), var(--rose-soft) 54%, var(--teal));
  box-shadow: 0 18px 44px rgba(255, 111, 145, 0.28);
}

.ghost-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.ghost-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(255, 209, 102, 0.22);
}

.hero-visual {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.orbital {
  position: relative;
  width: 460px;
  height: 460px;
}

.orbit-ring {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 450px;
  height: 450px;
  border-color: rgba(255, 111, 145, 0.34);
  animation: rotateSlow 30s linear infinite;
}

.ring-two {
  width: 330px;
  height: 330px;
  border-color: rgba(110, 231, 216, 0.32);
  animation: rotateSlow 24s linear reverse infinite;
}

.ring-three {
  width: 210px;
  height: 210px;
  border-color: rgba(255, 209, 102, 0.42);
  animation: rotateSlow 18s linear infinite;
}

.ring-one::before,
.ring-two::before,
.ring-three::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: currentColor;
  box-shadow: 0 0 20px currentColor;
}

.ring-one {
  color: var(--rose);
}

.ring-two {
  color: var(--teal);
}

.ring-three {
  color: var(--gold);
}

.center-medal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(145deg, rgba(255, 248, 238, 0.22), rgba(255, 111, 145, 0.16));
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.1),
    0 28px 80px rgba(0, 0, 0, 0.32),
    0 0 54px rgba(255, 209, 102, 0.18);
  transform: translate(-50%, -50%);
}

.center-medal span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.3rem;
  font-weight: 700;
  line-height: 1;
}

.center-medal small {
  color: var(--gold);
  font-weight: 700;
}

.orbit-note {
  position: absolute;
  max-width: 148px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  color: rgba(255, 253, 247, 0.9);
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  backdrop-filter: blur(14px);
}

.note-one {
  top: 36px;
  left: 10px;
}

.note-two {
  right: -4px;
  top: 132px;
}

.note-three {
  bottom: 70px;
  left: 24px;
}

.note-four {
  right: 36px;
  bottom: 38px;
  color: var(--gold);
}

.memory-band,
.wish-section,
.code-section {
  padding: 92px 7vw;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

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

.memory-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(10, 16, 32, 0.66);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
  backdrop-filter: blur(16px);
}

.memory-card:nth-child(2) {
  transform: translateY(28px);
}

.memory-card:nth-child(3) {
  transform: translateY(56px);
}

.memory-card:nth-child(4) {
  transform: translateY(28px);
}

.memory-number {
  display: inline-grid;
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  box-shadow: inset 0 0 20px rgba(255, 209, 102, 0.08);
}

.memory-card h3,
.memory-card p {
  max-width: 28rem;
}

.memory-card p {
  color: rgba(255, 253, 247, 0.7);
}

.letter-section {
  padding: 112px 7vw 96px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0), rgba(255, 248, 238, 0.075) 22%, rgba(255, 248, 238, 0)),
    linear-gradient(90deg, rgba(255, 111, 145, 0.1), rgba(110, 231, 216, 0.08));
}

.letter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.letter-intro {
  max-width: 600px;
}

.letter-intro p:not(.eyebrow) {
  color: var(--muted);
}

.envelope-stage {
  display: grid;
  min-height: 430px;
  place-items: center;
  perspective: 1200px;
}

.envelope {
  position: relative;
  width: 440px;
  height: 286px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  filter: drop-shadow(0 36px 44px rgba(0, 0, 0, 0.36));
}

.envelope-back,
.envelope-front,
.envelope-flap,
.envelope-paper-preview,
.seal {
  position: absolute;
  display: block;
}

.envelope-back {
  inset: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(145deg, #ffe4cf, #ffd0d9 52%, #d3fff7);
}

.envelope-front {
  inset: 0;
  border-radius: 8px;
  clip-path: polygon(0 31%, 50% 70%, 100% 31%, 100% 100%, 0 100%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(160deg, #ffb3c2, #ffe6b7 60%, #9feee5);
}

.envelope-flap {
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 58%;
  transform-origin: top;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(160deg, #fff1cf, #ff9eb5 62%, #89e9df);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.envelope-paper-preview {
  left: 44px;
  right: 44px;
  bottom: 42px;
  z-index: 1;
  height: 166px;
  padding-top: 42px;
  border: 1px solid rgba(64, 43, 47, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 111, 145, 0.1), transparent 22%, transparent 78%, rgba(110, 231, 216, 0.1)),
    var(--paper);
  color: var(--paper-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  text-align: center;
  transition:
    bottom 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.seal {
  top: 132px;
  left: 50%;
  z-index: 6;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  color: #fff8ee;
  background: radial-gradient(circle at 30% 25%, #ffd166, #ff6f91 74%);
  box-shadow: 0 12px 30px rgba(255, 111, 145, 0.36);
  transform: translateX(-50%);
  transition:
    transform 480ms ease,
    opacity 480ms ease;
}

.envelope.is-open .envelope-flap {
  transform: rotateX(178deg);
}

.envelope.is-open .envelope-paper-preview {
  bottom: 176px;
  transform: translateZ(24px);
}

.envelope.is-open .seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.7);
}

.letter-paper {
  max-width: 940px;
  max-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 111, 145, 0.12), transparent 22%, transparent 78%, rgba(110, 231, 216, 0.12)),
    repeating-linear-gradient(0deg, transparent 0, transparent 33px, rgba(64, 43, 47, 0.055) 34px),
    var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition:
    max-height 1000ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 1000ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 700ms ease;
}

.letter-paper.is-open {
  max-height: 1200px;
  padding: 38px 46px 46px;
  opacity: 1;
}

.paper-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(64, 43, 47, 0.12);
  color: rgba(64, 43, 47, 0.58);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.letter-paper h3 {
  color: #8e3349;
  font-size: 2rem;
}

.letter-paper p {
  font-size: 1.04rem;
  text-align: justify;
}

.wish-section {
  overflow: hidden;
}

.wish-composition {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.wish-main {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 111, 145, 0.18), rgba(110, 231, 216, 0.08)),
    rgba(10, 16, 32, 0.72);
  box-shadow: var(--shadow);
}

.wish-main p {
  color: rgba(255, 253, 247, 0.72);
  font-size: 1.08rem;
}

.wish-main strong {
  display: block;
  margin-top: 22px;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1.35;
}

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

.wish-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.wish-card::before {
  position: absolute;
  right: -36px;
  bottom: -54px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(255, 209, 102, 0.2), transparent 64%);
}

.wish-card span {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.wish-card p {
  position: relative;
  margin-bottom: 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: 1.06rem;
}

.code-section {
  background: linear-gradient(180deg, rgba(110, 231, 216, 0.065), rgba(255, 111, 145, 0.065));
}

.code-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.terminal,
.output-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 18, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.terminal {
  overflow: hidden;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.terminal-titlebar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-titlebar span:nth-child(1) {
  background: #ff6f91;
}

.terminal-titlebar span:nth-child(2) {
  background: #ffd166;
}

.terminal-titlebar span:nth-child(3) {
  background: #6ee7d8;
}

.terminal-titlebar strong {
  margin-left: 8px;
  color: rgba(255, 253, 247, 0.64);
  font-size: 0.88rem;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

code {
  color: #d9fff8;
  font-family:
    "Cascadia Code",
    "Fira Code",
    Consolas,
    monospace;
  font-size: 0.96rem;
  line-height: 1.7;
}

.run-action {
  margin: 0 24px 24px;
}

.output-panel {
  display: grid;
  gap: 18px;
  align-content: stretch;
  padding: 24px;
}

.packet-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.11), rgba(255, 111, 145, 0.1)),
    rgba(255, 255, 255, 0.06);
}

.packet-label {
  margin-bottom: 22px;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 700;
}

.packet-card p {
  margin-bottom: 0;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.58;
  white-space: pre-line;
}

.distance-map {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  color: rgba(255, 253, 247, 0.72);
}

.distance-map i {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.distance-map i::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), var(--teal), transparent);
  animation: packetTravel 2.6s linear infinite;
}

.closing {
  min-height: 62vh;
  padding: 104px 7vw 118px;
}

.closing-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 54px 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(10, 16, 32, 0.7);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(14px);
}

.closing-inner p:not(.eyebrow) {
  margin-right: auto;
  margin-bottom: 30px;
  margin-left: auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.18rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 760ms ease,
    transform 760ms ease;
}

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

.confetti {
  position: fixed;
  z-index: 60;
  top: -14px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall 1.9s ease-in forwards;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes rotateSlow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes packetTravel {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes confettiFall {
  to {
    transform: translate3d(var(--drift), 108vh, 0) rotate(680deg);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav {
    display: none;
  }

  .hero,
  .letter-layout,
  .wish-composition,
  .code-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 104px 22px 54px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lead {
    min-height: 5.6rem;
    font-size: 1.08rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .orbital {
    width: 340px;
    height: 340px;
  }

  .ring-one {
    width: 330px;
    height: 330px;
  }

  .ring-two {
    width: 246px;
    height: 246px;
  }

  .ring-three {
    width: 160px;
    height: 160px;
  }

  .center-medal {
    width: 122px;
    height: 122px;
  }

  .center-medal span {
    font-size: 3.2rem;
  }

  .orbit-note {
    max-width: 122px;
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .note-two {
    right: 0;
  }

  .note-three {
    bottom: 42px;
  }

  .memory-band,
  .wish-section,
  .code-section,
  .letter-section,
  .closing {
    padding-right: 22px;
    padding-left: 22px;
  }

  .memory-grid,
  .wish-list {
    grid-template-columns: 1fr;
  }

  .memory-card,
  .memory-card:nth-child(2),
  .memory-card:nth-child(3),
  .memory-card:nth-child(4) {
    min-height: auto;
    transform: none;
  }

  .letter-layout {
    gap: 24px;
  }

  .envelope-stage {
    min-height: 340px;
  }

  .envelope {
    width: 320px;
    height: 208px;
  }

  .envelope-paper-preview {
    left: 32px;
    right: 32px;
    bottom: 30px;
    height: 124px;
    padding-top: 30px;
    font-size: 1rem;
  }

  .seal {
    top: 96px;
    width: 52px;
    height: 52px;
  }

  .envelope.is-open .envelope-paper-preview {
    bottom: 130px;
  }

  .letter-paper.is-open {
    max-height: 1600px;
    padding: 28px 22px 34px;
  }

  .letter-paper h3 {
    font-size: 1.7rem;
  }

  .letter-paper p {
    font-size: 0.98rem;
    text-align: left;
  }

  .wish-main {
    min-height: auto;
    padding: 28px;
  }

  .wish-main strong {
    font-size: 1.54rem;
  }

  .packet-card {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-behavior: auto;
  }

  body {
    background:
      radial-gradient(circle at 18% 8%, rgba(255, 111, 145, 0.24), transparent 20rem),
      radial-gradient(circle at 84% 24%, rgba(110, 231, 216, 0.2), transparent 18rem),
      linear-gradient(160deg, #090d1b 0%, #11152a 54%, #180f21 100%);
  }

  body::before {
    opacity: 0.62;
    mask-image: none;
  }

  .aurora {
    position: absolute;
    top: 12vh;
    right: -24%;
    bottom: auto;
    left: -24%;
    height: 76vh;
    filter: blur(10px);
    opacity: 0.78;
  }

  .site-header {
    position: absolute;
    background: linear-gradient(to bottom, rgba(9, 13, 27, 0.88), rgba(9, 13, 27, 0));
    backdrop-filter: none;
  }

  .memory-card,
  .wish-card,
  .terminal,
  .output-panel,
  .closing-inner,
  .orbit-note {
    backdrop-filter: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .primary-action:hover,
  .ghost-action:hover,
  .nav a:hover {
    transform: none;
  }

  .ring-one,
  .ring-two,
  .ring-three,
  .distance-map i::before,
  .hero-lead span::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .ghost-action {
    width: 100%;
  }

  h1 {
    font-size: 2.54rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-lead {
    min-height: 6.8rem;
  }

  .orbit-note {
    max-width: 116px;
    font-size: 0.74rem;
  }

  .orbital {
    width: 292px;
    height: 292px;
  }

  .ring-one {
    width: 282px;
    height: 282px;
  }

  .ring-two {
    width: 214px;
    height: 214px;
  }

  .ring-three {
    width: 140px;
    height: 140px;
  }

  .center-medal {
    width: 104px;
    height: 104px;
  }

  .center-medal span {
    font-size: 2.74rem;
  }

  .note-one {
    top: 16px;
    left: 0;
  }

  .note-two {
    top: 100px;
    right: 0;
  }

  .note-three {
    bottom: 30px;
    left: 2px;
  }

  .note-four {
    right: 8px;
    bottom: 8px;
  }

  .envelope {
    width: 280px;
    height: 182px;
  }

  .envelope-stage {
    min-height: 300px;
  }

  .envelope-paper-preview {
    left: 28px;
    right: 28px;
    height: 110px;
  }

  .envelope.is-open .envelope-paper-preview {
    bottom: 116px;
  }

  pre {
    padding: 18px;
  }

  code {
    font-size: 0.82rem;
  }

  .run-action {
    margin: 0 18px 18px;
  }

  .closing-inner {
    padding: 38px 22px;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .orbital {
    width: 268px;
    height: 268px;
  }

  .ring-one {
    width: 258px;
    height: 258px;
  }

  .ring-two {
    width: 198px;
    height: 198px;
  }

  .ring-three {
    width: 130px;
    height: 130px;
  }

  .center-medal {
    width: 96px;
    height: 96px;
  }

  .center-medal span {
    font-size: 2.48rem;
  }

  .orbit-note {
    max-width: 104px;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .note-two {
    top: 92px;
  }

  .memory-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
