:root {
  --ink: #f8fbff;
  --muted: rgba(248, 251, 255, 0.72);
  --soft: rgba(248, 251, 255, 0.13);
  --coral: #ff7468;
  --mint: #8de8cd;
  --gold: #ffd08a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
  background: #071018;
}

.world {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 116, 104, 0.2), transparent 28%),
    radial-gradient(circle at 18% 20%, rgba(141, 232, 205, 0.16), transparent 30%),
    linear-gradient(135deg, #071018 0%, #101b2d 48%, #27141b 100%);
}

#growthCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.story {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 0 12vh;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.58);
}

.name {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 850;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.3rem, 9.5vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

#dayNumber {
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.line {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.75;
}

.time {
  min-height: 1.5em;
  margin: 20px 0 0;
  color: rgba(255, 208, 138, 0.88);
  font-size: clamp(0.96rem, 1.4vw, 1.1rem);
  font-variant-numeric: tabular-nums;
}

.orbit-label {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  max-width: 260px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  body {
    overflow-y: auto;
  }

  .story {
    width: min(100% - 28px, 520px);
    justify-content: flex-end;
    padding: 16vh 0 15vh;
  }

  h1 {
    font-size: clamp(3.05rem, 17vw, 5.4rem);
  }

  .line {
    margin-top: 24px;
  }

  .orbit-label {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-label {
    display: none;
  }
}
