:root {
  --ink: #0a0c0d;
  --ink-soft: #101416;
  --surface: #14191a;
  --surface-light: #1a2021;
  --ivory: #f2eee5;
  --muted: #9c9f98;
  --muted-dark: #6f7470;
  --coral: #f0a08d;
  --coral-bright: #ffb7a3;
  --gold: #e9c487;
  --mint: #a8d3c6;
  --kitty-pink: #f36b8d;
  --kitty-pink-soft: #ffb8c7;
  --kitty-cream: #fffaf5;
  --line: rgba(242, 238, 229, 0.14);
  --line-strong: rgba(242, 238, 229, 0.24);
  --display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: "MiSans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page-pad: 7vw;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--coral) var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

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

::selection {
  background: var(--coral);
  color: var(--ink);
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.kitty-icon {
  overflow: visible;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body.is-gated {
  overflow: hidden;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  min-height: 100svh;
  padding: clamp(1rem, 4vw, 3rem);
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 42%, rgba(243, 107, 141, 0.13), transparent 22rem),
    radial-gradient(circle at 12% 16%, rgba(168, 211, 198, 0.08), transparent 19rem),
    linear-gradient(155deg, #080b0c 0%, #101112 48%, #0b0b0d 100%);
  isolation: isolate;
  transition:
    opacity 650ms var(--ease-out),
    visibility 650ms;
}

.access-gate::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(242, 238, 229, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 229, 0.018) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  content: "";
}

.access-gate::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(242, 238, 229, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 77% 19%, rgba(243, 107, 141, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 74%, rgba(233, 196, 135, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 82%, rgba(168, 211, 198, 0.58) 0 1px, transparent 1.5px);
  background-size: 17rem 13rem, 21rem 16rem, 19rem 17rem, 23rem 15rem;
  content: "";
  opacity: 0.65;
}

.access-gate.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.access-gate.is-leaving .access-panel {
  transform: translateY(-1.2rem) scale(0.97);
}

.access-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.access-star {
  position: absolute;
  width: 0.28rem;
  height: 0.28rem;
  background: var(--kitty-pink-soft);
  border-radius: 50%;
  box-shadow: 0 0 1.4rem currentColor;
  animation: accessTwinkle 3.8s ease-in-out infinite;
}

.access-star::before,
.access-star::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  content: "";
  opacity: 0.55;
  transform: translate(-50%, -50%);
}

.access-star::before {
  width: 2.7rem;
  height: 1px;
}

.access-star::after {
  width: 1px;
  height: 2.7rem;
}

.access-star-one {
  top: 18%;
  left: 12%;
  color: var(--gold);
  background: var(--gold);
}

.access-star-two {
  top: 24%;
  right: 13%;
  width: 0.2rem;
  height: 0.2rem;
  color: var(--kitty-pink);
  background: var(--kitty-pink);
  animation-delay: -1.3s;
}

.access-star-three {
  right: 18%;
  bottom: 16%;
  color: var(--mint);
  background: var(--mint);
  animation-delay: -2.4s;
}

.access-star-four {
  bottom: 20%;
  left: 16%;
  width: 0.18rem;
  height: 0.18rem;
  color: var(--coral);
  background: var(--coral);
  animation-delay: -0.7s;
}

.access-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(243, 107, 141, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-14deg);
}

.access-orbit::after {
  position: absolute;
  top: 50%;
  left: -0.22rem;
  width: 0.44rem;
  height: 0.44rem;
  background: var(--kitty-pink);
  border-radius: 50%;
  box-shadow: 0 0 1.5rem var(--kitty-pink);
  content: "";
}

.access-orbit-one {
  width: min(76rem, 94vw);
  height: min(76rem, 94vw);
  animation: accessOrbit 35s linear infinite;
}

.access-orbit-two {
  width: min(54rem, 72vw);
  height: min(54rem, 72vw);
  border-color: rgba(168, 211, 198, 0.1);
  animation: accessOrbitReverse 26s linear infinite;
}

.access-orbit-two::after {
  background: var(--mint);
  box-shadow: 0 0 1.5rem var(--mint);
}

.access-panel {
  position: relative;
  width: min(100%, 37rem);
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.4rem, 5vw, 4.2rem) 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(24, 26, 27, 0.97), rgba(13, 15, 16, 0.96));
  border: 1px solid rgba(255, 184, 199, 0.22);
  border-radius: 8px;
  box-shadow:
    0 2.2rem 7rem rgba(0, 0, 0, 0.52),
    0 0 3.6rem rgba(243, 107, 141, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 650ms var(--ease-out);
}

.access-panel::before {
  position: absolute;
  top: 0;
  right: 15%;
  left: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kitty-pink-soft), transparent);
  content: "";
  box-shadow: 0 0 1.2rem rgba(243, 107, 141, 0.65);
}

.access-panel::after {
  position: absolute;
  top: -4.5rem;
  right: -4.5rem;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(243, 107, 141, 0.11), transparent 67%);
  content: "";
  pointer-events: none;
}

.access-panel.is-shaking {
  animation: accessShake 420ms var(--ease-out);
}

.access-topline {
  position: absolute;
  top: 0;
  right: 1.2rem;
  left: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  color: var(--muted-dark);
  border-bottom: 1px solid rgba(242, 238, 229, 0.08);
  font-size: 0.44rem;
  letter-spacing: 0.1em;
}

.access-topline span:last-child {
  text-align: right;
}

.access-mascot {
  position: relative;
  display: grid;
  width: 5.6rem;
  height: 5.6rem;
  margin: 0.45rem auto 1.35rem;
  place-items: center;
  background:
    radial-gradient(circle at 38% 28%, #fffefb, var(--kitty-cream) 68%);
  border: 1px solid rgba(34, 29, 30, 0.2);
  border-radius: 50%;
  box-shadow:
    0 1.1rem 2.5rem rgba(0, 0, 0, 0.32),
    0 0 0 0.45rem rgba(243, 107, 141, 0.055);
}

.access-mascot-halo {
  position: absolute;
  inset: -1.1rem;
  border: 1px dashed rgba(243, 107, 141, 0.24);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}

.access-mascot > svg {
  width: 4.5rem;
  height: 4.5rem;
  filter: drop-shadow(0 0.35rem 0.4rem rgba(80, 30, 43, 0.12));
}

.access-mascot-bow {
  position: absolute;
  top: -0.55rem;
  right: -0.3rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--kitty-cream);
  background: var(--kitty-pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.3);
  transform: rotate(12deg);
}

.access-mascot-bow .icon {
  width: 1.5rem;
  height: 1.2rem;
  stroke-width: 1.6;
}

.access-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.access-panel h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 6vw, 3.35rem);
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
}

.access-intro {
  margin: 1rem auto 1.8rem;
  color: rgba(242, 238, 229, 0.62);
  font-family: var(--display);
  font-size: 0.85rem;
  line-height: 1.9;
  text-align: center;
  text-wrap: balance;
}

.access-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.access-step-count,
.access-progress-label {
  color: var(--muted-dark);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.access-step-count b {
  color: var(--kitty-pink-soft);
  font-size: 0.62rem;
  font-weight: 600;
}

.access-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.access-dots i {
  position: relative;
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  background: rgba(242, 238, 229, 0.18);
  border: 1px solid rgba(242, 238, 229, 0.18);
  border-radius: 50%;
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease,
    transform 300ms var(--ease-out);
}

.access-dots i.is-active {
  background: var(--kitty-pink);
  border-color: var(--kitty-pink);
  box-shadow: 0 0 0.8rem rgba(243, 107, 141, 0.82);
  transform: scale(1.35);
}

.access-dots i.is-passed {
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 0.7rem rgba(168, 211, 198, 0.6);
}

.access-form {
  padding-top: 1.6rem;
}

.access-form > label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 1.05rem;
}

.access-input-row {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr) auto;
  align-items: center;
  min-height: 3.45rem;
  padding: 0.35rem;
  background: rgba(4, 6, 6, 0.46);
  border: 1px solid rgba(242, 238, 229, 0.17);
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition:
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.access-input-row:focus-within {
  border-color: rgba(255, 184, 199, 0.62);
  box-shadow:
    0 0 0 3px rgba(243, 107, 141, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.access-form.is-correct .access-input-row {
  border-color: rgba(168, 211, 198, 0.72);
  box-shadow: 0 0 0 3px rgba(168, 211, 198, 0.08);
}

.access-form.is-error .access-input-row {
  border-color: rgba(243, 107, 141, 0.72);
  box-shadow: 0 0 0 3px rgba(243, 107, 141, 0.08);
}

.access-input-icon {
  display: grid;
  place-items: center;
  color: var(--kitty-pink);
}

.access-input-icon .icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke-width: 1.2;
}

.access-input-row input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.5rem;
  color: var(--ivory);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.9rem;
}

.access-input-row input::placeholder {
  color: rgba(242, 238, 229, 0.3);
}

.access-submit {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--kitty-pink-soft);
  border: 1px solid var(--kitty-pink-soft);
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    transform 220ms var(--ease-out);
}

.access-submit:hover,
.access-submit:focus-visible {
  background: var(--kitty-pink);
  border-color: var(--kitty-pink);
  transform: translateY(-1px);
}

.access-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.access-submit .icon {
  width: 0.83rem;
  height: 0.83rem;
}

.access-feedback,
.access-hint {
  min-height: 1.35rem;
  margin: 0.7rem 0 0;
  font-size: 0.67rem;
  line-height: 1.65;
}

.access-feedback {
  color: var(--coral);
}

.access-feedback.is-correct {
  color: var(--mint);
}

.access-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--muted-dark);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 250ms ease,
    transform 250ms var(--ease-out),
    visibility 250ms;
}

.access-hint.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.access-hint .icon {
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  margin-top: 0.16rem;
  color: var(--gold);
}

.access-footer {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.1rem calc(clamp(1.4rem, 5vw, 4.2rem) * -1) 0;
  padding: 0.65rem 1rem;
  color: var(--muted-dark);
  background: rgba(255, 250, 245, 0.025);
  border-top: 1px solid var(--line);
}

.access-footer p {
  margin: 0;
  font-size: 0.42rem;
  letter-spacing: 0.1em;
}

.access-footer-kitty {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
}

.access-footer > .icon {
  width: 0.68rem;
  height: 0.68rem;
  color: var(--gold);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem var(--page-pad);
  color: var(--ivory);
  transition:
    background-color 400ms ease,
    padding 400ms ease,
    border-color 400ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: rgba(10, 12, 13, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  color: var(--kitty-cream);
  background: var(--kitty-pink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(243, 107, 141, 0.12);
  transition: transform 300ms var(--ease-out);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-mark .icon {
  width: 1.85rem;
  height: 1.85rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-copy small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.55rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  color: rgba(242, 238, 229, 0.72);
  font-size: 0.78rem;
}

.site-nav a {
  position: relative;
  padding: 0.3rem 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.sound-toggle {
  position: relative;
  justify-self: end;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  place-items: center;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 250ms ease,
    border-color 250ms ease,
    background-color 250ms ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.sound-toggle .icon {
  width: 1rem;
  height: 1rem;
}

.sound-toggle .sound-off {
  display: none;
}

.sound-toggle.is-playing .sound-on {
  display: none;
}

.sound-toggle.is-playing .sound-off {
  display: block;
}

.sound-status {
  position: absolute;
  top: 0;
  right: 0;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 12, 13, 0.8);
  opacity: 0;
}

.sound-toggle.is-playing .sound-status {
  opacity: 1;
  animation: livePulse 2s infinite;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.05fr) minmax(26rem, 0.95fr);
  align-items: center;
  gap: 3vw;
  padding: 8.5rem var(--page-pad) 5.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 42%, rgba(50, 91, 83, 0.2), transparent 25rem),
    radial-gradient(circle at 12% 100%, rgba(118, 57, 47, 0.15), transparent 28rem),
    linear-gradient(135deg, #080b0c 0%, #0a1111 48%, #0b0d0d 100%);
}

.star-canvas,
.hero-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.star-canvas {
  z-index: 0;
}

.hero-grain {
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 49rem;
}

.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
}

.eyebrow-dot {
  width: 0.38rem;
  height: 0.38rem;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 1rem rgba(240, 160, 141, 0.85);
}

.kitty-note {
  display: inline-flex;
  max-width: max-content;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  padding: 0.45rem 0.7rem 0.45rem 0.5rem;
  color: rgba(242, 238, 229, 0.82);
  background: rgba(243, 107, 141, 0.08);
  border: 1px solid rgba(255, 184, 199, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 0 1.4rem rgba(243, 107, 141, 0.04);
}

.kitty-note-face {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 0.25rem 0.4rem rgba(0, 0, 0, 0.22));
}

.kitty-note span {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-family: var(--display);
  font-size: 0.72rem;
  line-height: 1.35;
}

.kitty-note b {
  color: var(--kitty-pink-soft);
  font-family: var(--sans);
  font-size: 0.51rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.kitty-note-heart {
  width: 0.85rem;
  margin-left: 0.1rem;
  color: var(--kitty-pink);
  fill: currentColor;
  animation: kittyHeartbeat 1.9s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
}

.hero-name {
  display: block;
  color: var(--coral-bright);
  font-size: 8.8rem;
  text-shadow: 0 0 4rem rgba(240, 160, 141, 0.12);
}

.hero-title-line {
  display: block;
  margin-top: 1.2rem;
  color: var(--ivory);
  font-size: 4.05rem;
  line-height: 1.18;
}

.hero-intro {
  max-width: 33rem;
  margin: 2rem 0 0;
  color: rgba(242, 238, 229, 0.68);
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 250ms var(--ease-out),
    color 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--ivory);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--coral-bright);
  border-color: var(--coral-bright);
}

.button .icon {
  width: 1rem;
  height: 1rem;
}

.signal-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
  transition:
    color 250ms ease,
    border-color 250ms ease;
}

.signal-button:hover,
.signal-button:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.signal-button .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3rem;
  margin: 3.5rem 0 0;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta dt {
  color: var(--muted-dark);
  font-size: 0.6rem;
}

.hero-meta dd {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: rgba(242, 238, 229, 0.78);
  font-size: 0.7rem;
}

.live-dot {
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;
  background: var(--mint);
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

.orbit-scene {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 2;
  width: min(42vw, 39rem);
  aspect-ratio: 1;
  justify-self: center;
  filter: drop-shadow(0 2rem 4rem rgba(0, 0, 0, 0.25));
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 500ms var(--ease-out);
}

.orbit-scene::before,
.orbit-scene::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 150%;
  background: linear-gradient(transparent, var(--line), transparent);
  content: "";
  transform: translate(-50%, -50%) rotate(38deg);
  opacity: 0.35;
}

.orbit-scene::after {
  transform: translate(-50%, -50%) rotate(-38deg);
}

.orbit-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-halo-one {
  width: 102%;
  height: 102%;
  border-style: dashed;
  opacity: 0.45;
  animation: spin 80s linear infinite;
}

.orbit-halo-two {
  width: 82%;
  height: 82%;
  opacity: 0.25;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(242, 238, 229, 0.2);
  border-radius: 50%;
  transform-origin: center;
}

.orbit-ring::after {
  position: absolute;
  inset: -3px;
  border: 1px dotted rgba(242, 238, 229, 0.12);
  border-radius: 50%;
  content: "";
}

.orbit-ring-one {
  width: 63%;
  height: 63%;
  margin: -31.5%;
  animation: spin 22s linear infinite;
}

.orbit-ring-two {
  width: 84%;
  height: 84%;
  margin: -42%;
  animation: spinReverse 38s linear infinite;
}

.orbit-ring-three {
  width: 100%;
  height: 100%;
  margin: -50%;
  animation: spin 55s linear infinite;
}

.orbit-planet {
  position: absolute;
  top: -0.34rem;
  left: 50%;
  display: block;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
}

.orbit-planet::after {
  position: absolute;
  inset: -0.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.25;
}

.orbit-planet-coral {
  color: var(--coral);
  background: var(--coral);
  box-shadow: 0 0 1.3rem var(--coral);
}

.orbit-planet-mint {
  color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 1.3rem var(--mint);
}

.orbit-planet-gold {
  color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 1.3rem var(--gold);
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 32%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.center-photo-wrap {
  position: relative;
  aspect-ratio: 1;
  padding: 0.45rem;
  border: 1px solid rgba(242, 238, 229, 0.35);
  border-radius: 50%;
  background: rgba(10, 12, 13, 0.88);
}

.center-photo-wrap::before {
  position: absolute;
  inset: -1.1rem;
  border: 1px solid rgba(240, 160, 141, 0.2);
  border-radius: 50%;
  content: "";
}

.center-photo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.72) sepia(0.12) brightness(0.88);
}

.center-bow {
  position: absolute;
  top: -9%;
  right: -7%;
  z-index: 3;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  color: var(--kitty-pink);
  background: var(--kitty-cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.28);
  transform: rotate(13deg);
}

.center-bow .icon {
  width: 1.9rem;
  height: 1.55rem;
  stroke-width: 1.4;
}

.center-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 160, 141, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: centerPulse 4s ease-out infinite;
}

.center-name {
  margin: 1.3rem 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.center-caption {
  margin: 0.5rem 0 0;
  color: var(--coral);
  font-size: 0.48rem;
}

.orbit-note {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(242, 238, 229, 0.65);
  font-family: var(--display);
  font-size: 0.8rem;
  line-height: 1.55;
}

.orbit-note span {
  color: var(--coral);
  font-family: var(--sans);
  font-size: 0.55rem;
}

.orbit-note p {
  margin: 0;
}

.orbit-note-one {
  top: 13%;
  left: 1%;
}

.orbit-note-two {
  right: -2%;
  bottom: 17%;
  text-align: right;
}

.kitty-orbit-label {
  position: absolute;
  bottom: 4%;
  left: -3%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem 0.5rem 0.5rem;
  color: var(--ink);
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid rgba(34, 29, 30, 0.2);
  border-radius: 5px;
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.24);
  transform: rotate(-5deg);
}

.kitty-orbit-label::before {
  position: absolute;
  inset: -4px;
  z-index: -1;
  background: var(--kitty-pink-soft);
  border-radius: 6px;
  content: "";
  opacity: 0.28;
  transform: rotate(2deg);
}

.kitty-orbit-face {
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
}

.kitty-orbit-label > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.kitty-orbit-label b {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.kitty-orbit-label small {
  margin-top: 0.12rem;
  color: #8d777b;
  font-size: 0.39rem;
}

.kitty-orbit-label > .icon {
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.15rem;
  color: var(--kitty-pink);
  fill: currentColor;
}

.orbit-coordinate {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  color: var(--muted-dark);
  font-size: 0.48rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.scroll-cue {
  position: absolute;
  bottom: 2.3rem;
  left: var(--page-pad);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted-dark);
  font-size: 0.52rem;
}

.scroll-cue i {
  position: relative;
  width: 4.5rem;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  background: var(--coral);
  content: "";
  transform: translateX(-100%);
  animation: scrollLine 2.8s infinite;
}

.section-shell {
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4.5rem;
}

.section-index {
  margin-bottom: 1.4rem;
  color: var(--muted-dark);
}

.section-index span {
  color: var(--coral);
}

.section-heading h2,
.game-copy h2,
.wishes-intro h2,
.letter-content h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.32;
}

.section-heading h2 em,
.game-copy h2 em,
.wishes-intro h2 em,
.letter-content h2 em {
  color: var(--coral);
  font-style: normal;
}

.section-note {
  max-width: 20rem;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1.9;
}

.section-note-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.kitty-picks {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  color: #8c5560;
  background: var(--kitty-cream);
  border: 1px solid rgba(243, 107, 141, 0.2);
  border-radius: 999px;
  box-shadow: 0 0.5rem 1.3rem rgba(87, 54, 48, 0.08);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  transform: rotate(-2deg);
}

.kitty-picks svg {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.countdown-section {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 10rem;
  background:
    linear-gradient(90deg, rgba(242, 238, 229, 0.03) 1px, transparent 1px),
    var(--ink);
  background-size: 10rem 100%;
  border-top: 1px solid var(--line);
}

.countdown-section .section-heading {
  align-items: flex-start;
}

.countdown-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 7vw;
  align-items: stretch;
}

.elapsed-panel {
  position: relative;
  min-height: 28rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.live-caption {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.elapsed-number-wrap {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.2rem;
}

.elapsed-days {
  color: var(--ivory);
  font-family: var(--display);
  font-size: 9rem;
  font-weight: 400;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

.elapsed-number-wrap > span {
  padding-bottom: 0.45rem;
  color: var(--coral);
  font-family: var(--display);
  font-size: 2.2rem;
}

.elapsed-date {
  margin: 1.6rem 0 0;
  color: var(--muted-dark);
  font-size: 0.64rem;
}

.time-cluster {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.time-cluster div {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.time-cluster strong {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.time-cluster span {
  color: var(--muted-dark);
  font-size: 0.55rem;
}

.time-cluster i {
  color: var(--coral);
  font-family: var(--display);
  font-style: normal;
}

.heartbeat-line {
  position: absolute;
  right: 0;
  bottom: 3.2rem;
  left: 0;
  height: 3rem;
  overflow: hidden;
  opacity: 0.6;
}

.heartbeat-line::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 3rem,
    rgba(240, 160, 141, 0.55) 3rem 3.1rem,
    transparent 3.1rem 3.6rem
  );
  content: "";
}

.heartbeat-line span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 50'%3E%3Cpath d='M0 27h72l8-16 13 31 13-38 12 23h37l9-9 10 9h126' fill='none' stroke='%23f0a08d' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 300px 50px;
  transform: translateY(-50%);
  animation: heartbeatMove 8s linear infinite;
}

.heartbeat-caption {
  position: absolute;
  right: 0;
  bottom: 1.6rem;
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.5rem;
}

.anniversary-panel {
  position: relative;
  padding: 2.2rem;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.45), transparent 9rem),
    var(--coral);
  border-radius: 8px;
}

.kitty-peek {
  position: absolute;
  top: -0.8rem;
  right: 1.1rem;
  width: 5rem;
  height: 4.8rem;
  pointer-events: none;
  transform: rotate(4deg);
  transform-origin: 50% 100%;
  animation: kittyPeek 4.6s ease-in-out infinite;
}

.kitty-peek svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0.55rem 0.6rem rgba(75, 35, 36, 0.18));
}

.kitty-peek span {
  position: absolute;
  right: 0.15rem;
  bottom: 0.55rem;
  color: var(--kitty-pink);
  font-family: var(--display);
  font-size: 0.75rem;
  animation: kittyHeartbeat 1.9s ease-in-out infinite;
}

.anniversary-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 3rem;
  padding-bottom: 1.1rem;
  font-size: 0.55rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(10, 12, 13, 0.22);
}

.anniversary-main {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 1.5rem;
  padding: 2.2rem 0;
}

.anniversary-orbit {
  position: relative;
  aspect-ratio: 1;
}

.anniversary-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 12, 13, 0.26);
  border-radius: 50%;
  animation: spin 35s linear infinite;
}

.anniversary-ring::before {
  position: absolute;
  top: -0.3rem;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--ink);
  border-radius: 50%;
  content: "";
}

.anniversary-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
}

.anniversary-core strong {
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.anniversary-core small {
  margin-top: 0.25rem;
  font-size: 0.45rem;
}

.game-copy h2 em {
  display: block;
  font-size: 0.86em;
  white-space: nowrap;
}

.anniversary-detail > p {
  margin: 0;
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1.8;
}

.mini-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.mini-clock span {
  font-family: var(--display);
  font-size: 1.2rem;
}

.mini-clock i {
  margin-right: 0.25rem;
  font-size: 0.55rem;
  font-style: normal;
  opacity: 0.6;
}

.anniversary-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(10, 12, 13, 0.2);
  font-size: 0.55rem;
}

.progress-track {
  height: 2px;
  overflow: hidden;
  background: rgba(10, 12, 13, 0.2);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 700ms var(--ease-out);
}

.gallery-section {
  padding-top: 9rem;
  padding-bottom: 11rem;
  background: var(--ivory);
  color: var(--ink);
}

.gallery-section .section-index {
  color: var(--muted-dark);
}

.gallery-section .section-index span {
  color: #c66f5d;
}

.gallery-section .section-heading h2 em {
  color: #c66f5d;
}

.gallery-section .section-note {
  color: #626762;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem) clamp(1.2rem, 2.4vw, 2.4rem);
  align-items: stretch;
  padding-top: clamp(2.8rem, 5vw, 4.8rem);
}

.album-card {
  --album-tilt: -0.65deg;
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 0.8rem 0.8rem 0;
  flex-direction: column;
  background: #fdf9ef;
  border: 1px solid rgba(73, 63, 51, 0.12);
  border-radius: 2px;
  box-shadow:
    0 1.1rem 2.8rem rgba(74, 59, 44, 0.09),
    0 0.12rem 0 rgba(255, 255, 255, 0.9) inset;
  transform: rotate(var(--album-tilt));
  transform-origin: 50% 0;
  transition:
    transform 450ms var(--ease-out),
    box-shadow 450ms var(--ease-out);
}

.album-card:nth-child(3n + 2) {
  --album-tilt: 0.75deg;
  margin-top: 1.3rem;
}

.album-card:nth-child(3n) {
  --album-tilt: -0.25deg;
}

.album-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
  margin-top: 0.4rem;
}

.album-card::before {
  position: absolute;
  top: -0.58rem;
  left: 50%;
  z-index: 2;
  width: 4.8rem;
  height: 1.15rem;
  background: rgba(224, 169, 146, 0.58);
  clip-path: polygon(2% 10%, 100% 0, 97% 92%, 0 100%);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.album-card:hover {
  box-shadow:
    0 1.7rem 3.4rem rgba(74, 59, 44, 0.14),
    0 0.12rem 0 rgba(255, 255, 255, 0.9) inset;
  transform: rotate(0) translateY(-0.35rem);
}

.album-photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: #d9d3c7;
  border: 0;
  cursor: zoom-in;
}

.album-photo-button::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(43, 38, 31, 0.08) inset;
  content: "";
  pointer-events: none;
}

.album-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 800ms var(--ease-out),
    filter 500ms ease;
}

.album-photo-button:hover img,
.album-photo-button:focus-visible img {
  filter: saturate(1.04);
  transform: scale(1.035);
}

.album-photo-button:focus-visible {
  outline: 2px solid #c66f5d;
  outline-offset: 0.28rem;
}

.album-open-hint {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 1;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  color: #51483f;
  background: rgba(255, 251, 242, 0.92);
  border: 1px solid rgba(70, 60, 49, 0.12);
  border-radius: 50%;
  place-items: center;
  transition:
    color 300ms ease,
    transform 300ms var(--ease-out);
}

.album-open-hint .icon {
  width: 1rem;
  height: 1rem;
}

.album-photo-button:hover .album-open-hint {
  color: #ae5547;
  transform: translateX(0.15rem);
}

.album-story {
  display: flex;
  padding: 1.2rem 0.55rem 1.5rem;
  flex: 1;
  flex-direction: column;
}

.album-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #91897d;
  font-family: var(--sans);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.album-meta span {
  color: #c66f5d;
}

.album-meta time {
  text-align: right;
}

.album-story h3 {
  margin: 0.75rem 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.28rem, 1.65vw, 1.55rem);
  font-weight: 400;
  line-height: 1.35;
}

.album-message {
  position: relative;
  margin: auto 0 0;
  padding-top: 0.95rem;
  color: #5f625d;
  border-top: 1px solid rgba(73, 63, 51, 0.13);
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1.75;
}

.album-message::after {
  margin-left: 0.3rem;
  color: #c66f5d;
  content: "♡";
}

.game-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7vw;
  align-items: center;
  padding-top: 10rem;
  padding-bottom: 10rem;
  background:
    radial-gradient(circle at 77% 50%, rgba(53, 91, 82, 0.17), transparent 25rem),
    var(--ink-soft);
}

.game-copy > p:not(.section-index) {
  max-width: 26rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-family: var(--display);
  line-height: 1.9;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.game-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.game-stats span {
  color: var(--muted-dark);
  font-size: 0.58rem;
}

.game-stats strong {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.game-stats small {
  margin-left: 0.2rem;
  color: var(--coral);
  font-family: var(--sans);
  font-size: 0.6rem;
}

.game-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  color: var(--muted-dark);
  font-size: 0.62rem;
}

.game-hint .icon {
  width: 1rem;
  height: 1rem;
  color: var(--coral);
}

.game-arena {
  position: relative;
  min-height: 38rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(242, 238, 229, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 229, 0.03) 1px, transparent 1px),
    #0a0e0f;
  background-size: 4rem 4rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.3);
}

.game-arena::before,
.game-arena::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(168, 211, 198, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.game-arena::before {
  width: 68%;
  aspect-ratio: 1;
}

.game-arena::after {
  width: 42%;
  aspect-ratio: 1;
}

.arena-chrome {
  position: absolute;
  inset: 1.2rem 1.2rem auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: var(--muted-dark);
  font-size: 0.5rem;
  pointer-events: none;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  background: rgba(8, 11, 12, 0.78);
  backdrop-filter: blur(7px);
  transition:
    opacity 450ms ease,
    visibility 450ms ease;
}

.game-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.overlay-stars {
  position: relative;
  width: 9rem;
  height: 5rem;
  margin-bottom: 1.2rem;
}

.overlay-stars span {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 1.2rem var(--coral);
  animation: starBlink 2.8s infinite;
}

.overlay-stars span:nth-child(1) {
  top: 30%;
  left: 18%;
}

.overlay-stars span:nth-child(2) {
  top: 10%;
  left: 51%;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--gold);
  box-shadow: 0 0 1.5rem var(--gold);
  animation-delay: 0.7s;
}

.overlay-stars span:nth-child(3) {
  right: 13%;
  bottom: 7%;
  background: var(--mint);
  box-shadow: 0 0 1.2rem var(--mint);
  animation-delay: 1.4s;
}

.overlay-kicker {
  margin: 0 0 1rem;
  color: var(--coral);
  font-size: 0.52rem;
}

.overlay-kitty {
  width: 5.8rem;
  height: 5.8rem;
  margin: -0.4rem 0 0.5rem;
  filter: drop-shadow(0 0.8rem 1.5rem rgba(243, 107, 141, 0.18));
  animation: kittyBob 3.8s ease-in-out infinite;
}

.game-overlay h3 {
  max-width: 24rem;
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.45;
}

.game-overlay > p:not(.overlay-kicker) {
  max-width: 25rem;
  margin: 1.2rem 0 1.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.game-combo {
  position: absolute;
  top: 4.5rem;
  left: 50%;
  z-index: 4;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem) scale(0.9);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.game-combo.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.wishes-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding-top: 10rem;
  padding-bottom: 10rem;
  background: var(--ivory);
  color: var(--ink);
}

.wishes-section .section-index {
  color: var(--muted-dark);
}

.wishes-section .section-index span {
  color: #c66f5d;
}

.wishes-section h2 em {
  color: #c66f5d;
}

.wishes-intro > p:not(.section-index) {
  max-width: 24rem;
  margin: 2rem 0 0;
  color: #626762;
  font-family: var(--display);
  line-height: 1.9;
}

.wish-progress-card {
  position: relative;
  max-width: 24rem;
  margin-top: 3.2rem;
  padding-top: 2.45rem;
  border-top: 1px solid rgba(10, 12, 13, 0.16);
}

.wish-kitty-tag {
  position: absolute;
  top: -0.8rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.55rem 0.32rem 0.32rem;
  color: #985968;
  background: var(--kitty-cream);
  border: 1px solid rgba(243, 107, 141, 0.24);
  border-radius: 999px;
  box-shadow: 0 0.45rem 1.2rem rgba(89, 54, 48, 0.08);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(2deg);
}

.wish-kitty-tag svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
}

.wish-progress-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.wish-progress-copy span {
  color: var(--muted-dark);
  font-size: 0.65rem;
}

.wish-progress-copy strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
}

.wish-progress-track {
  height: 3px;
  margin-top: 1rem;
  overflow: hidden;
  background: rgba(10, 12, 13, 0.12);
}

.wish-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #c66f5d;
  transition: width 500ms var(--ease-out);
}

.wish-progress-card p {
  margin: 0.9rem 0 0;
  color: #7d817c;
  font-size: 0.62rem;
}

.wish-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(10, 12, 13, 0.16);
}

.wish-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 0.4rem;
  border-bottom: 1px solid rgba(10, 12, 13, 0.16);
  cursor: pointer;
  transition:
    padding-left 300ms var(--ease-out),
    background-color 300ms ease;
}

.wish-item:hover {
  padding-left: 0.8rem;
  background: rgba(255, 255, 255, 0.25);
}

.wish-check {
  position: relative;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(10, 12, 13, 0.3);
  border-radius: 50%;
}

.wish-check .icon {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 200ms ease,
    transform 250ms var(--ease-out);
}

.wish-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wish-item input:focus-visible + .wish-check {
  outline: 2px solid #c66f5d;
  outline-offset: 3px;
}

.wish-item input:checked + .wish-check {
  background: #c66f5d;
  border-color: #c66f5d;
}

.wish-item input:checked + .wish-check .icon {
  opacity: 1;
  transform: scale(1);
}

.wish-copy strong {
  display: block;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 400;
  transition: color 250ms ease;
}

.wish-copy small {
  display: block;
  margin-top: 0.35rem;
  color: #767b76;
  font-size: 0.68rem;
}

.wish-item input:checked ~ .wish-copy strong {
  color: #9a9d98;
  text-decoration: line-through;
}

.wish-coordinate {
  color: #a4a6a1;
  font-size: 0.55rem;
}

.letter-section {
  position: relative;
  display: grid;
  min-height: 45rem;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5rem;
  padding: 8rem var(--page-pad);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 50%, rgba(240, 160, 141, 0.11), transparent 24rem),
    #121616;
  border-top: 1px solid var(--line);
}

.letter-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.backdrop-orbit {
  position: absolute;
  top: 50%;
  right: 8%;
  width: min(40rem, 60vw);
  aspect-ratio: 1;
  border: 1px solid rgba(242, 238, 229, 0.09);
  border-radius: 50%;
  transform: translateY(-50%) rotateX(66deg);
}

.backdrop-orbit::before,
.backdrop-orbit::after {
  position: absolute;
  border: 1px solid rgba(242, 238, 229, 0.06);
  border-radius: 50%;
  content: "";
}

.backdrop-orbit::before {
  inset: 16%;
}

.backdrop-orbit::after {
  inset: 34%;
}

.backdrop-star {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 2rem var(--gold);
}

.backdrop-star-one {
  top: 18%;
  right: 33%;
}

.backdrop-star-two {
  right: 12%;
  bottom: 23%;
  width: 0.25rem;
  height: 0.25rem;
  background: var(--coral);
  box-shadow: 0 0 1.2rem var(--coral);
}

.backdrop-star-three {
  top: 30%;
  right: 9%;
  width: 0.18rem;
  height: 0.18rem;
  background: var(--mint);
  box-shadow: 0 0 1rem var(--mint);
}

.letter-content {
  position: relative;
  z-index: 2;
  max-width: 44rem;
}

.section-index-light {
  color: var(--muted);
}

.section-index-light span {
  color: var(--coral);
}

.letter-content h2 {
  font-size: 4rem;
}

.letter-content > p:not(.section-index) {
  margin: 2rem 0 2.6rem;
  color: var(--muted);
  font-family: var(--display);
  line-height: 1.9;
}

.letter-kitty-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0.28rem 0.7rem 0.28rem 0.32rem;
  color: var(--muted);
  background: rgba(255, 250, 245, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
}

.letter-kitty-note svg {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
}

.letter-kitty-note b {
  color: var(--kitty-pink-soft);
  font-weight: 700;
}

.letter-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  color: var(--ivory);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.letter-button-icon {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  color: var(--ink);
  background: var(--coral);
  border-radius: 50%;
  transition: transform 300ms var(--ease-out);
}

.letter-button:hover .letter-button-icon,
.letter-button:focus-visible .letter-button-icon {
  transform: rotate(-8deg) scale(1.06);
}

.letter-button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.letter-button small {
  color: var(--muted-dark);
  font-family: var(--sans);
  font-size: 0.48rem;
}

.letter-button > .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.6rem;
  transition: transform 250ms var(--ease-out);
}

.letter-button:hover > .icon {
  transform: translateX(0.4rem);
}

.letter-signature {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 3rem;
  border-left: 1px solid var(--line);
  text-align: right;
}

.letter-signature span {
  color: var(--muted-dark);
  font-size: 0.55rem;
}

.letter-signature strong {
  margin-top: 0.3rem;
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 400;
}

.letter-signature i {
  margin-top: 0.7rem;
  color: var(--coral);
  font-family: var(--display);
  font-size: 0.8rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 3rem;
  padding: 3rem var(--page-pad);
  background: #080a0a;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-mark {
  color: var(--coral);
  font-family: var(--display);
  font-size: 2rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted-dark);
  font-family: var(--display);
  font-size: 0.7rem;
  line-height: 1.7;
}

.footer-meta {
  text-align: center;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
  color: var(--muted);
  font-size: 0.55rem;
  transition: color 250ms ease;
}

.back-to-top:hover {
  color: var(--coral);
}

.back-to-top .icon {
  width: 0.9rem;
  height: 0.9rem;
  transform: rotate(90deg);
}

.icon-button {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  opacity: 1;
}

.icon-button .icon {
  width: 1rem;
  height: 1rem;
}

dialog {
  border: 0;
}

dialog::backdrop {
  background: rgba(4, 6, 6, 0.86);
  backdrop-filter: blur(16px);
}

.lightbox {
  width: min(92vw, 78rem);
  max-width: none;
  max-height: 92svh;
  padding: 0;
  color: var(--ivory);
  background: transparent;
  overflow: visible;
}

.lightbox-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  max-height: 88svh;
  overflow: hidden;
  background: #111515;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.lightbox-image-wrap {
  display: flex;
  min-height: 34rem;
  align-items: center;
  justify-content: center;
  background: #050707;
}

.lightbox-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 88svh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  color: var(--ivory);
  background: rgba(10, 12, 13, 0.55);
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 5rem 2rem 2rem;
  border-left: 1px solid var(--line);
}

.lightbox-info > div:first-child > span {
  color: var(--coral);
  font-size: 0.55rem;
}

.lightbox-info h3 {
  margin: 0.8rem 0 1rem;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
}

.lightbox-info p {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.8rem;
  line-height: 1.8;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lightbox-controls > span {
  margin-right: auto;
  color: var(--muted-dark);
  font-size: 0.55rem;
}

.letter-dialog {
  width: min(92vw, 43rem);
  max-width: none;
  max-height: 92svh;
  padding: 0;
  color: #2b2925;
  background: transparent;
  overflow: visible;
}

.letter-paper {
  position: relative;
  max-height: 88svh;
  padding: 4.5rem;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(83, 65, 44, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(83, 65, 44, 0.025) 1px, transparent 1px),
    #eee9dc;
  background-size: 2.2rem 2.2rem;
  border-radius: 4px;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.4);
}

.letter-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: #2b2925;
}

.letter-paper-top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  font-size: 0.62rem;
  border-bottom: 1px solid rgba(43, 41, 37, 0.16);
}

.letter-paper-top b {
  font-weight: 600;
}

.letter-heart {
  width: 1.3rem;
  height: 1.3rem;
  margin: 2.5rem 0 1.2rem;
  fill: #c66f5d;
  stroke: #c66f5d;
}

.letter-paper h2 {
  margin: 0;
  color: #24221f;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.5;
}

.letter-body {
  margin-top: 1.6rem;
  color: #4f4b44;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 2;
}

.letter-body p {
  margin: 0 0 1rem;
}

.letter-body p:first-child::first-letter {
  float: left;
  margin: 0.25rem 0.3rem 0 0;
  color: #c66f5d;
  font-size: 3.2rem;
  line-height: 0.8;
}

.letter-paper-bottom {
  position: relative;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(43, 41, 37, 0.16);
}

.letter-paper-bottom p {
  margin: 0;
  color: #7f7a70;
  font-size: 0.68rem;
}

.letter-paper-bottom strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
}

.letter-seal {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: #f4dfcc;
  background: #b85f4e;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.letter-seal .icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.letter-seal .kitty-icon {
  width: 2.45rem;
  height: 2.45rem;
}

.toast {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 30;
  display: flex;
  max-width: min(24rem, calc(100vw - 4rem));
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  color: var(--ivory);
  background: rgba(20, 25, 26, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition:
    opacity 300ms ease,
    transform 300ms var(--ease-out);
}

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

.toast-icon {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: var(--kitty-pink-soft);
  border-radius: 50%;
  overflow: hidden;
}

.toast-icon .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.toast-icon .kitty-icon {
  width: 2rem;
  height: 2rem;
}

.toast p {
  margin: 0;
  font-family: var(--display);
  font-size: 0.78rem;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(1.3rem);
  animation: revealUp 1s var(--ease-out) forwards;
}

.hero .reveal:nth-child(2) {
  animation-delay: 100ms;
}

.hero .reveal:nth-child(3) {
  animation-delay: 220ms;
}

.hero .reveal:nth-child(4) {
  animation-delay: 340ms;
}

.hero .reveal:nth-child(5) {
  animation-delay: 460ms;
}

.orbit-scene.reveal {
  animation-delay: 250ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accessTwinkle {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.72);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes accessOrbit {
  from {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-14deg) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-14deg) rotate(360deg);
  }
}

@keyframes accessOrbitReverse {
  from {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(18deg) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(18deg) rotate(-360deg);
  }
}

@keyframes accessShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-0.45rem);
  }
  40% {
    transform: translateX(0.38rem);
  }
  60% {
    transform: translateX(-0.25rem);
  }
  80% {
    transform: translateX(0.16rem);
  }
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(168, 211, 198, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(168, 211, 198, 0);
  }
}

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

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

@keyframes centerPulse {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.2);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes heartbeatMove {
  to {
    transform: translate(-300px, -50%);
  }
}

@keyframes starBlink {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes kittyHeartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.13);
  }
  28% {
    transform: scale(0.96);
  }
  42% {
    transform: scale(1.07);
  }
}

@keyframes kittyPeek {
  0%,
  100% {
    transform: translateY(0.25rem) rotate(3deg);
  }
  50% {
    transform: translateY(0) rotate(7deg);
  }
}

@keyframes kittyBob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-0.35rem) rotate(3deg);
  }
}

@media (max-width: 1180px) {
  :root {
    --page-pad: 5vw;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.8fr);
  }

  .hero-name {
    font-size: 7rem;
  }

  .hero-title-line {
    font-size: 3.3rem;
  }

  .orbit-scene {
    width: min(43vw, 33rem);
  }

  .section-heading h2,
  .game-copy h2,
  .wishes-intro h2 {
    font-size: 2.8rem;
  }

  .elapsed-days {
    font-size: 7.4rem;
  }

  .countdown-layout,
  .game-section,
  .wishes-section {
    gap: 4.5vw;
  }

  .anniversary-panel {
    padding: 1.8rem;
  }

  .kitty-peek {
    right: 0.8rem;
    width: 4.5rem;
    height: 4.4rem;
  }

  .anniversary-main {
    grid-template-columns: 1fr;
  }

  .anniversary-orbit {
    width: min(100%, 14rem);
    margin: 0 auto;
  }

  .anniversary-detail {
    text-align: center;
  }

  .mini-clock {
    justify-content: center;
  }

  .game-arena {
    min-height: 34rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 5rem;
    padding-top: 9rem;
    padding-bottom: 8rem;
  }

  .hero-copy {
    max-width: 38rem;
  }

  .hero-name {
    font-size: 7.4rem;
  }

  .hero-title-line {
    font-size: 3.4rem;
  }

  .orbit-scene {
    width: min(78vw, 34rem);
    margin-top: 0;
  }

  .scroll-cue {
    display: none;
  }

  .countdown-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .elapsed-panel {
    min-height: 25rem;
  }

  .elapsed-days {
    font-size: 8rem;
  }

  .anniversary-main {
    grid-template-columns: 1fr 0.8fr;
  }

  .anniversary-detail {
    text-align: left;
  }

  .mini-clock {
    justify-content: flex-start;
  }

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

  .album-card:nth-child(3n + 2) {
    margin-top: 0;
  }

  .album-card:nth-child(even) {
    margin-top: 1.5rem;
  }

  .album-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
    margin-top: 0;
  }

  .album-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.8rem);
    justify-self: center;
  }

  .game-section,
  .wishes-section {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .game-copy {
    max-width: 38rem;
  }

  .game-arena {
    min-height: min(38rem, 70vw);
  }

  .wishes-intro {
    max-width: 38rem;
  }

  .letter-section {
    min-height: 40rem;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .letter-signature {
    display: none;
  }

  .letter-content h2 {
    font-size: 3.1rem;
  }

  .backdrop-orbit {
    right: -20%;
    width: 70vw;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 1.25rem;
  }

  .access-gate {
    padding: 0.75rem;
  }

  .access-panel {
    padding: 2.8rem 1.25rem 0;
  }

  .access-topline {
    right: 0.9rem;
    left: 0.9rem;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    font-size: 0.4rem;
  }

  .access-topline span:nth-child(2) {
    display: none;
  }

  .access-mascot {
    width: 4.7rem;
    height: 4.7rem;
    margin-top: 0.25rem;
    margin-bottom: 1.2rem;
  }

  .access-mascot > svg {
    width: 3.8rem;
    height: 3.8rem;
  }

  .access-mascot-bow {
    width: 2rem;
    height: 2rem;
  }

  .access-panel h1 {
    font-size: 2.2rem;
  }

  .access-intro {
    margin: 0.85rem auto 1.4rem;
    font-size: 0.78rem;
  }

  .access-progress {
    gap: 0.55rem;
  }

  .access-progress-label {
    font-size: 0.44rem;
  }

  .access-form {
    padding-top: 1.35rem;
  }

  .access-form > label {
    font-size: 0.98rem;
  }

  .access-footer {
    margin-right: -1.25rem;
    margin-left: -1.25rem;
  }

  .site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .sound-toggle {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero {
    gap: 4.2rem;
    padding-top: 7.5rem;
    padding-bottom: 6rem;
  }

  .eyebrow {
    margin-bottom: 1.4rem;
    font-size: 0.55rem;
  }

  .hero-name {
    font-size: 5.2rem;
  }

  .hero-title-line {
    margin-top: 0.9rem;
    font-size: 2.55rem;
    line-height: 1.25;
  }

  .hero-intro {
    margin-top: 1.6rem;
    font-size: 0.94rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 2rem;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
    margin-top: 2.5rem;
  }

  .hero-meta div:last-child {
    grid-column: span 2;
  }

  .orbit-scene {
    width: min(92vw, 24rem);
  }

  .orbit-note {
    font-size: 0.65rem;
  }

  .orbit-note-one {
    top: 3%;
    left: -4%;
  }

  .orbit-note-two {
    right: -3%;
    bottom: 9%;
  }

  .center-name {
    margin-top: 0.9rem;
    font-size: 1.4rem;
  }

  .center-caption {
    font-size: 0.4rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 3rem;
  }

  .section-heading h2,
  .game-copy h2,
  .wishes-intro h2 {
    font-size: 2.15rem;
    line-height: 1.42;
  }

  .section-note {
    margin-top: 1.5rem;
  }

  .section-note-stack {
    align-items: flex-start;
  }

  .kitty-picks {
    margin-top: 1rem;
  }

  .countdown-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-size: 5rem 100%;
  }

  .elapsed-panel {
    min-height: 24rem;
  }

  .elapsed-days {
    font-size: 5.7rem;
  }

  .elapsed-number-wrap > span {
    font-size: 1.5rem;
  }

  .time-cluster {
    gap: 0.7rem;
  }

  .time-cluster strong {
    font-size: 1.45rem;
  }

  .anniversary-panel {
    padding: 1.4rem;
  }

  .kitty-peek {
    top: -0.65rem;
    right: 0.45rem;
    width: 3.9rem;
    height: 3.8rem;
  }

  .anniversary-topline {
    padding-right: 2.3rem;
  }

  .anniversary-main {
    grid-template-columns: 1fr 0.85fr;
    gap: 0.9rem;
    padding: 1.6rem 0;
  }

  .anniversary-core strong {
    font-size: 2.4rem;
  }

  .anniversary-detail > p {
    font-size: 0.78rem;
  }

  .anniversary-progress {
    gap: 0.6rem;
  }

  .gallery-section {
    padding-top: 6rem;
    padding-bottom: 7rem;
  }

  .album-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2.6rem;
  }

  .album-card:nth-child(n) {
    grid-column: auto;
    width: 100%;
    margin-top: 0;
    transform: none;
  }

  .album-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .album-card:hover {
    transform: translateY(-0.2rem);
  }

  .album-story {
    padding: 1.1rem 0.35rem 1.35rem;
  }

  .album-story h3 {
    font-size: 1.35rem;
  }

  .game-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .game-stats {
    margin-top: 2rem;
  }

  .game-arena {
    min-height: 29rem;
  }

  .game-overlay {
    padding: 1.5rem;
  }

  .overlay-stars {
    width: 7rem;
    height: 4rem;
    margin-bottom: 0.2rem;
  }

  .overlay-kitty {
    width: 4.5rem;
    height: 4.5rem;
    margin-top: -0.15rem;
    margin-bottom: 0.15rem;
  }

  .overlay-kicker {
    margin-bottom: 0.7rem;
  }

  .game-overlay h3 {
    font-size: 1.5rem;
    line-height: 1.35;
    text-wrap: balance;
  }

  .game-overlay > p:not(.overlay-kicker) {
    margin: 0.85rem 0 1.25rem;
  }

  .wishes-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .wish-item {
    gap: 1rem;
    padding: 1.3rem 0.2rem;
  }

  .kitty-picks {
    font-size: 0.43rem;
  }

  .kitty-picks svg {
    width: 1.8rem;
    height: 1.8rem;
  }

  .wish-progress-card {
    padding-top: 2.25rem;
  }

  .wish-copy strong {
    font-size: 1.02rem;
  }

  .wish-coordinate {
    display: none;
  }

  .letter-section {
    min-height: 36rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .letter-content h2 {
    font-size: 2.3rem;
  }

  .letter-content > p:not(.section-index) {
    font-size: 0.9rem;
  }

  .letter-kitty-note {
    margin-bottom: 1.15rem;
  }

  .letter-button > span:nth-child(2) {
    font-size: 0.98rem;
  }

  .letter-button-icon {
    width: 3.1rem;
    height: 3.1rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .footer-meta {
    display: none;
  }

  .lightbox-frame {
    display: flex;
    max-height: 88svh;
    flex-direction: column;
  }

  .lightbox-image-wrap {
    min-height: 0;
    flex: 1;
    height: 58svh;
  }

  .lightbox-image-wrap img {
    height: 58svh;
  }

  .lightbox-info {
    flex: 0 0 auto;
    gap: 1rem;
    padding: 1.2rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lightbox-info h3 {
    margin: 0.3rem 0 0.5rem;
    font-size: 1.25rem;
  }

  .letter-paper {
    padding: 3.5rem 1.5rem 2rem;
  }

  .letter-paper h2 {
    font-size: 1.65rem;
  }

  .letter-paper-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .toast {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .access-input-row {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    padding: 0.3rem;
  }

  .access-input-row input {
    padding-right: 0.35rem;
  }

  .access-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.25rem;
  }

  .access-progress {
    grid-template-columns: 1fr auto;
  }

  .access-dots {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .access-step-count {
    grid-column: 1;
    grid-row: 2;
  }

  .access-progress-label {
    grid-column: 2;
    grid-row: 2;
  }
}

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

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