:root {
  --night: #08051d;
  --blue: #0c4fa3;
  --paper: #fffdf9;
  --muted: #d8d2e8;
  --pink: #ff6fae;
  --pink-soft: #ffc3dc;
  --violet: #9270ff;
  --cyan: #66ddff;
  --gold: #ffe18b;
  --line: rgba(255, 255, 255, 0.19);
  --body: "DM Sans", sans-serif;
  --display: "Mouse Memoirs", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0, rgba(70, 129, 255, 0.22), transparent 32%),
    var(--night);
  color: var(--paper);
  font-family: var(--body);
}

a {
  color: inherit;
}

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

.aurora {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.17;
  animation: aurora-drift 14s ease-in-out infinite alternate;
}

.aurora-one {
  top: -30vw;
  left: -10vw;
  background: var(--cyan);
}

.aurora-two {
  right: -20vw;
  bottom: -32vw;
  background: var(--pink);
  animation-delay: -6s;
}

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  animation: star-drift 90s linear infinite;
}

.stars-small {
  opacity: 0.5;
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle, #bfe9ff 0 1px, transparent 1.5px);
  background-position:
    18px 24px,
    80px 100px;
  background-size:
    135px 135px,
    190px 190px;
}

.stars-large {
  opacity: 0.38;
  background-image: radial-gradient(
    circle,
    var(--gold) 0 1.5px,
    transparent 2px
  );
  background-position: 45px 65px;
  background-size: 290px 290px;
  animation-duration: 130s;
}

.shooting-star {
  position: absolute;
  width: 110px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff);
  filter: drop-shadow(0 0 5px #fff);
  rotate: -35deg;
  opacity: 0;
  animation: shoot 8s ease-in infinite;
}

.shooting-one {
  top: 18%;
  left: 12%;
}

.shooting-two {
  top: 34%;
  left: 70%;
  animation-delay: -4.8s;
}

.site-header,
main,
footer {
  width: min(1440px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.board-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 6, 31, 0.56);
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.board-shortcut:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 174, 0.65);
  background: rgba(255, 111, 174, 0.12);
}

.board-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 111, 174, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.hero {
  position: relative;
  min-height: calc(100svh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 60px;
  overflow: hidden;
  padding: 70px clamp(34px, 6vw, 90px) 82px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.hero-background {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  scale: 1.04;
  animation: background-breathe 16s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 3, 20, 0.96) 0%,
      rgba(7, 4, 24, 0.82) 42%,
      rgba(8, 4, 25, 0.28) 72%
    ),
    linear-gradient(0deg, rgba(6, 3, 17, 0.82), transparent 50%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(
    circle at 30% 35%,
    rgba(119, 98, 255, 0.21),
    transparent 38%
  );
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 3;
  animation: hero-enter 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 13px;
  color: var(--pink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 38px;
  height: 1px;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

h1 {
  max-width: 830px;
  margin: 0;
  font: 400 clamp(68px, 8.4vw, 132px) / 0.78 var(--display);
  letter-spacing: -0.035em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

.magic-word {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0 0.08em 0.08em 0;
  background: linear-gradient(
    105deg,
    #fff6bb,
    var(--pink-soft),
    var(--pink),
    var(--cyan),
    #fff6bb
  );
  background-size: 250% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 0.78em;
  filter: drop-shadow(0 8px 26px rgba(255, 105, 180, 0.22));
  animation: magic-gradient 7s linear infinite;
}

.magic-word::after {
  content: "✦";
  position: absolute;
  top: -0.02em;
  right: -0.22em;
  color: var(--gold);
  font: 400 0.22em var(--body);
  filter: drop-shadow(0 0 8px var(--gold));
  animation: sparkle 2.5s ease-in-out infinite;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 27px 0 0;
  color: #f1eaf7;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-date span:not(:last-child)::after {
  content: "·";
  margin-left: 11px;
  color: var(--pink);
}

.countdown {
  display: grid;
  grid-template-columns: auto 13px auto 13px auto 13px auto;
  align-items: start;
  width: max-content;
  margin-top: 34px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(10, 5, 30, 0.54);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.29);
}

.time-card {
  min-width: 80px;
  text-align: center;
}

.time-card strong,
.time-card span {
  display: block;
}

.time-card strong {
  font: 400 clamp(38px, 4vw, 60px) / 1 var(--display);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.time-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.time-separator {
  padding-top: 7px;
  color: var(--pink);
  font: 400 30px/1 var(--display);
  animation: separator-blink 1s steps(1) infinite;
}

.hero-note,
.countdown-finished {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.countdown-finished {
  color: var(--gold);
  font: 400 42px var(--display);
}

.castle-card {
  position: absolute;
  z-index: 3;
  top: 78px;
  right: 3%;
  width: min(78%, 390px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  rotate: 2.5deg;
  transition:
    rotate 0.35s ease,
    scale 0.35s ease;
  animation: photo-enter 1.2s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.castle-card:hover {
  rotate: 0deg;
  scale: 1.02;
}

.castle-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 54% center;
  border-radius: 14px;
}

.castle-card figcaption {
  padding: 13px 8px 6px;
}

.castle-card span,
.castle-card strong {
  display: block;
}

.castle-card span {
  color: var(--pink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.castle-card strong {
  margin-top: 3px;
  font: 400 25px var(--display);
}

.memory-scene {
  position: relative;
  min-height: 690px;
  align-self: stretch;
  animation: photo-enter 1.2s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.memory-scene::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: 15%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 111, 174, 0.18),
    transparent 68%
  );
  translate: -50% 0;
}

.memory-card {
  position: absolute;
  z-index: 4;
  width: 170px;
  margin: 0;
  padding: 7px 7px 12px;
  border-radius: 5px;
  background: #fffdf7;
  box-shadow: 0 34px 75px rgba(0, 0, 0, 0.45);
  color: #211b27;
  transition:
    transform 0.35s ease,
    rotate 0.35s ease;
}

.memory-card:hover {
  z-index: 4;
  rotate: 0deg;
  transform: translateY(-9px) scale(1.025);
}

.memory-collage {
  z-index: 2;
  right: -1%;
  bottom: 4px;
  width: 165px;
  rotate: 7deg;
}

.memory-drawing {
  top: 18px;
  left: 0;
  rotate: -7deg;
}

.memory-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.memory-card figcaption {
  padding: 9px 3px 0;
  font: 400 17px/1.05 var(--display);
  text-align: center;
}

.tape {
  position: absolute;
  z-index: 2;
  top: -18px;
  left: 50%;
  width: 65px;
  height: 26px;
  background: rgba(255, 224, 142, 0.76);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  rotate: -2deg;
  translate: -50% 0;
}

.memory-drawing .tape {
  rotate: 3deg;
}

.ride-sticker {
  position: absolute;
  z-index: 5;
  left: -7%;
  bottom: -78px;
  width: 520px;
  display: grid;
  place-items: end center;
  min-height: 0;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.42));
  animation: sticker-float 4.8s ease-in-out infinite;
}

.ride-sticker::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 270px;
  height: 270px;
  left: 50%;
  bottom: 45px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 111, 174, 0.26),
    transparent 68%
  );
  translate: -50% 0;
}

.ride-sticker img {
  display: block;
  width: 100%;
  height: auto;
}

.speech-bubble {
  position: absolute;
  z-index: 3;
  top: 24%;
  right: 13%;
  padding: 12px 17px;
  border: 2px solid #171022;
  border-radius: 18px 18px 18px 4px;
  background: var(--paper);
  box-shadow: 4px 5px 0 var(--pink);
  color: #171022;
  font: 400 25px var(--display);
  rotate: 4deg;
}

.sticker-caption {
  position: absolute;
  right: 16%;
  bottom: 7%;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(11, 6, 30, 0.72);
  backdrop-filter: blur(12px);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

footer {
  min-height: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  color: var(--muted);
  font-size: 11px;
}

footer a {
  color: var(--paper);
  text-decoration: none;
}

footer a:hover {
  color: var(--pink-soft);
}

.photo-credit {
  width: 100%;
  padding-bottom: 16px;
  color: #8f859d;
  font-size: 9px;
  text-align: right;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(42px);
    filter: blur(10px);
  }
}

@keyframes photo-enter {
  from {
    opacity: 0;
    transform: translateX(55px) scale(0.92);
    filter: blur(10px);
  }
}

@keyframes background-breathe {
  to {
    scale: 1.09;
  }
}

@keyframes magic-gradient {
  to {
    background-position: 250% center;
  }
}

@keyframes sparkle {
  50% {
    scale: 1.45;
    rotate: 35deg;
    opacity: 0.55;
  }
}

@keyframes aurora-drift {
  to {
    translate: 10vw 8vw;
    scale: 1.18;
  }
}

@keyframes star-drift {
  to {
    transform: translateY(-290px);
  }
}

@keyframes shoot {
  0%,
  70% {
    opacity: 0;
    transform: translate(0, 0);
  }
  72% {
    opacity: 1;
  }
  82%,
  100% {
    opacity: 0;
    transform: translate(260px, 170px);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(255, 111, 174, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 111, 174, 0);
  }
}

@keyframes separator-blink {
  50% {
    opacity: 0.35;
  }
}

@keyframes sticker-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 85px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 3, 20, 0.88), rgba(8, 4, 25, 0.7)),
      linear-gradient(90deg, rgba(5, 3, 20, 0.9), transparent);
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-date {
    justify-content: center;
  }

  .magic-word,
  .countdown {
    margin-inline: auto;
  }

  .castle-card {
    top: 100px;
    right: 9%;
    width: min(62%, 440px);
  }

  .castle-card img {
    aspect-ratio: 4 / 5;
  }

  .memory-scene {
    width: min(100%, 760px);
    min-height: 760px;
    margin: 0 auto;
  }

  .ride-sticker {
    left: 5%;
    bottom: -65px;
    width: 540px;
  }

  .memory-collage {
    right: 4%;
    bottom: 15px;
    width: 175px;
  }

  .memory-drawing {
    top: 30px;
    left: 5%;
    width: 180px;
  }
}

@media (max-width: 660px) {
  .site-header,
  main,
  footer {
    width: min(100% - 22px, 1440px);
  }

  .site-header {
    height: 76px;
  }

  .brand strong {
    display: none;
  }

  .brand img {
    width: 43px;
    height: 43px;
  }

  .hero {
    min-height: calc(100svh - 76px);
    padding: 58px 17px 34px;
    border-radius: 24px;
  }

  .hero-background img {
    object-position: 55% center;
  }

  h1 {
    font-size: clamp(64px, 22vw, 92px);
    line-height: 0.82;
  }

  .magic-word {
    width: auto;
    font-size: 0.72em;
  }

  .magic-word::after {
    right: -0.03em;
  }

  .hero-date {
    margin-top: 22px;
    font-size: 11px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 20px 12px;
    margin-top: 28px;
    padding: 20px 12px;
  }

  .time-card {
    min-width: 0;
  }

  .time-card strong {
    font-size: 44px;
  }

  .time-separator {
    display: none;
  }

  .castle-card {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 92%;
    margin: 0 auto;
    rotate: 1.5deg;
  }

  .castle-card img {
    aspect-ratio: 16 / 10;
  }

  .memory-scene {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px 12px;
    margin-top: 25px;
    padding: 0 5px 16px;
  }

  .ride-sticker {
    top: 0;
    bottom: auto;
    left: 50%;
    width: 330px;
    margin-left: -165px;
  }

  .memory-collage {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: min(100%, 145px);
    margin-top: 15px;
  }

  .memory-drawing {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    width: min(100%, 145px);
    margin-top: 15px;
  }

  .speech-bubble {
    top: 18%;
    right: 8%;
    padding: 9px 12px;
    font-size: 17px;
  }

  .sticker-caption {
    right: 13%;
    bottom: 8%;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
    text-align: center;
  }

  .photo-credit {
    padding: 0;
    text-align: center;
  }
}

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