:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #fff8df;
  background: #09111f;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 210, 76, 0.2), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(84, 207, 255, 0.2), transparent 22%),
    linear-gradient(160deg, #111f38 0%, #09111f 48%, #171018 100%);
}

.party {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding: clamp(28px, 6vw, 76px);
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #7de0ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff8df;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.38);
}

.lead {
  max-width: 58ch;
  margin: 28px 0 0;
  color: #d8e7ef;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 14px 18px;
  border: 1px solid rgba(125, 224, 255, 0.42);
  border-radius: 8px;
  color: #fff8df;
  background: rgba(9, 17, 31, 0.66);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #49e67d;
  box-shadow: 0 0 0 0 rgba(73, 230, 125, 0.65);
  animation: pulse 1.35s infinite;
}

.fries-rain,
.fireworks,
.stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.moon {
  position: fixed;
  top: clamp(40px, 8vh, 90px);
  right: clamp(40px, 7vw, 110px);
  z-index: 1;
  width: clamp(110px, 14vw, 180px);
  height: clamp(110px, 14vw, 180px);
  pointer-events: none;
  animation: moon-float 7s ease-in-out infinite;
}

.moon-glow {
  position: absolute;
  inset: -40%;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 245, 200, 0.45) 0%,
    rgba(255, 220, 140, 0.18) 35%,
    transparent 70%
  );
  filter: blur(8px);
  animation: moon-pulse 4.5s ease-in-out infinite;
}

.moon-body {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 32%, #fff5d8 0%, #f4e2a4 40%, #d8b96b 78%, #a07f3a 100%);
  box-shadow:
    inset -14px -18px 28px rgba(80, 50, 10, 0.45),
    inset 10px 12px 18px rgba(255, 250, 220, 0.45),
    0 0 60px rgba(255, 225, 150, 0.35);
}

.crater {
  position: absolute;
  border-radius: 999px;
  background: rgba(120, 90, 40, 0.35);
  box-shadow: inset -2px -3px 4px rgba(80, 55, 15, 0.55), inset 2px 2px 3px rgba(255, 240, 200, 0.4);
}

.crater-1 { top: 22%; left: 28%; width: 18%; height: 18%; }
.crater-2 { top: 52%; left: 18%; width: 12%; height: 12%; }
.crater-3 { top: 64%; left: 48%; width: 22%; height: 22%; }
.crater-4 { top: 30%; left: 62%; width: 10%; height: 10%; }
.crater-5 { top: 14%; left: 54%; width: 8%; height: 8%; }

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #fff8df;
  box-shadow: 0 0 6px rgba(255, 248, 223, 0.95);
  animation: twinkle 2.4s ease-in-out infinite;
}

.star-1  { top: 8%;  left: 12%; animation-delay: -0.2s; }
.star-2  { top: 14%; left: 38%; animation-delay: -1.1s; width: 2px; height: 2px; }
.star-3  { top: 6%;  left: 62%; animation-delay: -0.6s; width: 4px; height: 4px; }
.star-4  { top: 22%; left: 8%;  animation-delay: -1.8s; }
.star-5  { top: 28%; left: 92%; animation-delay: -0.9s; width: 2px; height: 2px; }
.star-6  { top: 42%; left: 4%;  animation-delay: -1.4s; width: 4px; height: 4px; }
.star-7  { top: 48%; left: 96%; animation-delay: -2.1s; }
.star-8  { top: 58%; left: 22%; animation-delay: -0.4s; width: 2px; height: 2px; }
.star-9  { top: 68%; left: 88%; animation-delay: -1.6s; }
.star-10 { top: 78%; left: 48%; animation-delay: -0.8s; width: 4px; height: 4px; }
.star-11 { top: 84%; left: 14%; animation-delay: -2.0s; }
.star-12 { top: 90%; left: 72%; animation-delay: -1.2s; width: 2px; height: 2px; }

.fry {
  position: absolute;
  top: -120px;
  width: 16px;
  height: 78px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffc24c, #ffec8a 48%, #d88721);
  box-shadow: inset 0 -10px 0 rgba(170, 72, 20, 0.14);
  animation: fry-fall 5.5s linear infinite;
}

.fry::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 8px;
  width: 18px;
  height: 14px;
  border-radius: 999px;
  background: #d92f2f;
}

.fry-1 { left: 4%; animation-delay: -0.3s; transform: rotate(9deg); }
.fry-2 { left: 11%; animation-delay: -2.1s; animation-duration: 6.2s; }
.fry-3 { left: 18%; animation-delay: -4.4s; animation-duration: 5.2s; }
.fry-4 { left: 25%; animation-delay: -1.1s; animation-duration: 6.8s; }
.fry-5 { left: 32%; animation-delay: -3.2s; }
.fry-6 { left: 39%; animation-delay: -0.8s; animation-duration: 5.9s; }
.fry-7 { left: 46%; animation-delay: -4.8s; }
.fry-8 { left: 53%; animation-delay: -1.9s; animation-duration: 6.5s; }
.fry-9 { left: 60%; animation-delay: -3.8s; }
.fry-10 { left: 67%; animation-delay: -0.2s; animation-duration: 6.1s; }
.fry-11 { left: 74%; animation-delay: -2.8s; }
.fry-12 { left: 81%; animation-delay: -4.1s; animation-duration: 5.4s; }
.fry-13 { left: 88%; animation-delay: -1.5s; }
.fry-14 { left: 95%; animation-delay: -3.5s; animation-duration: 6.6s; }
.fry-15 { left: 57%; animation-delay: -5s; animation-duration: 7s; }
.fry-16 { left: 8%; animation-delay: -5.7s; animation-duration: 6.9s; }

.firework {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  animation: burst 1.8s ease-out infinite;
}

.firework-a { left: 18%; top: 18%; color: #ffdd55; animation-delay: -0.4s; }
.firework-b { left: 76%; top: 21%; color: #7de0ff; animation-delay: -1.2s; }
.firework-c { left: 58%; top: 62%; color: #ff6b9e; animation-delay: -0.9s; }
.firework-d { left: 88%; top: 52%; color: #9dff8f; animation-delay: -1.6s; }
.firework-e { left: 32%; top: 78%; color: #c89bff; animation-delay: -0.2s; }
.firework-f { left: 10%; top: 48%; color: #ffac6b; animation-delay: -1.9s; }

.otter {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(360px, 88vw);
  margin: 0;
  animation: otter-bob 2.8s ease-in-out infinite;
}

.otter-head {
  position: relative;
  width: 210px;
  height: 172px;
  margin: 0 auto -16px;
  border-radius: 48% 48% 44% 44%;
  background: #8b5a35;
  box-shadow: inset 0 -20px 0 rgba(61, 35, 20, 0.18);
}

.ear {
  position: absolute;
  top: 22px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #744527;
}

.ear-left { left: -8px; }
.ear-right { right: -8px; }

.eye {
  position: absolute;
  top: 70px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
}

.eye-left { left: 62px; }
.eye-right { right: 62px; }

.snout {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 92px;
  height: 62px;
  border-radius: 48% 48% 55% 55%;
  background: #e2bd85;
  transform: translateX(-50%);
}

.nose {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 30px;
  height: 20px;
  border-radius: 50% 50% 60% 60%;
  background: #1b1010;
  transform: translateX(-50%);
}

.whisker {
  position: absolute;
  bottom: 58px;
  width: 62px;
  height: 2px;
  background: rgba(255, 248, 223, 0.9);
}

.whisker-left {
  left: 28px;
  transform: rotate(10deg);
}

.whisker-right {
  right: 28px;
  transform: rotate(-10deg);
}

.otter-body {
  position: relative;
  width: 260px;
  height: 250px;
  margin: 0 auto;
  border-radius: 44% 44% 38% 38%;
  background: #7b4b2d;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.belly {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 150px;
  height: 170px;
  border-radius: 48%;
  background: #d9b178;
  transform: translateX(-50%);
}

.paw {
  position: absolute;
  top: 72px;
  width: 58px;
  height: 38px;
  border-radius: 999px;
  background: #5e361f;
}

.paw-left {
  left: 20px;
  transform: rotate(-20deg);
}

.paw-right {
  right: 20px;
  transform: rotate(20deg);
}

.tail {
  position: absolute;
  right: -54px;
  bottom: 14px;
  width: 112px;
  height: 54px;
  border-radius: 999px;
  background: #6a3e24;
  transform: rotate(-24deg);
}

figcaption {
  margin-top: 20px;
  color: #ffe48c;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

@keyframes fry-fall {
  0% {
    translate: 0 -120px;
    rotate: 0deg;
  }
  100% {
    translate: 40px calc(100vh + 180px);
    rotate: 720deg;
  }
}

@keyframes burst {
  0% {
    box-shadow:
      0 0 currentColor,
      0 0 currentColor,
      0 0 currentColor,
      0 0 currentColor,
      0 0 currentColor,
      0 0 currentColor;
    opacity: 1;
    transform: scale(0.6);
  }
  70% {
    box-shadow:
      0 -80px currentColor,
      70px -38px currentColor,
      70px 42px currentColor,
      0 86px currentColor,
      -70px 42px currentColor,
      -70px -38px currentColor;
    opacity: 0.95;
    transform: scale(1.1);
  }
  100% {
    box-shadow:
      0 -108px transparent,
      95px -54px transparent,
      95px 58px transparent,
      0 112px transparent,
      -95px 58px transparent,
      -95px -54px transparent;
    opacity: 0;
    transform: scale(1.25);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(73, 230, 125, 0.62);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(73, 230, 125, 0);
  }
}

@keyframes otter-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

.shake-strong {
  display: inline-block;
  animation: shake-strong 2.6s ease-in-out infinite;
  transform-origin: center;
}

.shake-soft {
  animation: shake-soft 3.4s ease-in-out infinite;
}

.flicker {
  animation: flicker 2.8s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(125, 224, 255, 0.6), 0 0 18px rgba(125, 224, 255, 0.25);
}

@keyframes shake-strong {
  0%, 100%   { transform: translate(0, 0) rotate(0deg); }
  8%         { transform: translate(-2px, 1px) rotate(-0.6deg); }
  16%        { transform: translate(2px, -1px) rotate(0.7deg); }
  24%        { transform: translate(-3px, 0) rotate(-0.4deg); }
  32%        { transform: translate(2px, 2px) rotate(0.5deg); }
  40%        { transform: translate(-1px, -2px) rotate(-0.3deg); }
  48%        { transform: translate(3px, 0) rotate(0.6deg); }
  56%        { transform: translate(-2px, 1px) rotate(-0.5deg); }
  64%        { transform: translate(1px, -1px) rotate(0.3deg); }
  72%        { transform: translate(-2px, 2px) rotate(-0.4deg); }
  80%        { transform: translate(2px, -1px) rotate(0.4deg); }
  88%        { transform: translate(-1px, 1px) rotate(-0.2deg); }
}

@keyframes shake-soft {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(-1px, 0.5px); }
  40%      { transform: translate(1px, -0.5px); }
  60%      { transform: translate(-0.5px, 1px); }
  80%      { transform: translate(0.5px, -1px); }
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(125, 224, 255, 0.6), 0 0 18px rgba(125, 224, 255, 0.25);
  }
  42% {
    opacity: 0.82;
    text-shadow: 0 0 4px rgba(125, 224, 255, 0.3);
  }
  46% {
    opacity: 1;
    text-shadow: 0 0 14px rgba(125, 224, 255, 0.9), 0 0 28px rgba(125, 224, 255, 0.45);
  }
  72% {
    opacity: 0.95;
  }
}

@keyframes moon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}

@keyframes moon-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.3); }
}

@media (max-width: 860px) {
  .party {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  h1 {
    max-width: 11ch;
  }

  .otter {
    width: min(320px, 88vw);
  }
}

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