:root {
  --bg: #110d13;
  --bg-soft: #1b1420;
  --card: rgba(33, 23, 38, 0.78);
  --card-strong: rgba(53, 34, 55, 0.9);
  --line: rgba(255, 244, 229, 0.15);
  --text: #fff5eb;
  --muted: #dbc9bc;
  --accent: #ffb38a;
  --accent-2: #ffd8a8;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --paper: #fff7ef;
  --ink: #4a3744;
  --bg-gradient:
    radial-gradient(circle at top left, rgba(255, 170, 120, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(255, 217, 168, 0.14), transparent 26%),
    linear-gradient(145deg, #0e0910 0%, #17101a 42%, #241726 100%);
  --texture-overlay:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04) 0 0.45rem, transparent 0.48rem),
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.035) 0 0.35rem, transparent 0.38rem),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.03) 0 0.25rem, transparent 0.29rem);
  --glow-left-color: rgba(255, 161, 118, 0.22);
  --glow-right-color: rgba(255, 215, 155, 0.18);
  --surface-gradient: linear-gradient(180deg, rgba(45, 30, 47, 0.82), rgba(24, 18, 29, 0.82));
  --hero-surface-gradient: linear-gradient(180deg, rgba(45, 30, 47, 0.48), rgba(24, 18, 29, 0.44));
  --surface-border: rgba(255, 244, 229, 0.15);
  --surface-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --frame-background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(20, 15, 21, 0.9);
  --frame-border: rgba(255, 255, 255, 0.08);
  --polaroid-paper: linear-gradient(180deg, #fffaf4, #f7efe6);
  --polaroid-tape: rgba(255, 214, 171, 0.3);
  --fx-color: rgba(255, 220, 185, 0.18);
  --fx-blur: 0px;
}

body[data-theme="valentine"] {
  --accent: #ff8ea8;
  --accent-2: #ffd0dd;
  --bg-gradient:
    radial-gradient(circle at 20% 18%, rgba(255, 199, 223, 0.36), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(255, 150, 194, 0.24), transparent 24%),
    radial-gradient(circle at 50% 88%, rgba(255, 206, 221, 0.18), transparent 30%),
    linear-gradient(145deg, #2d1122 0%, #4b1735 50%, #2b1024 100%);
  --texture-overlay:
    radial-gradient(circle at 12% 24%, rgba(255, 232, 242, 0.07) 0 0.4rem, transparent 0.44rem),
    radial-gradient(circle at 76% 32%, rgba(255, 214, 228, 0.06) 0 0.55rem, transparent 0.6rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 35%);
  --glow-left-color: rgba(255, 158, 194, 0.35);
  --glow-right-color: rgba(255, 216, 234, 0.28);
  --surface-gradient: linear-gradient(180deg, rgba(77, 24, 51, 0.86), rgba(42, 16, 32, 0.88));
  --surface-border: rgba(255, 214, 228, 0.22);
  --frame-background:
    linear-gradient(180deg, rgba(255, 223, 235, 0.09), rgba(255, 255, 255, 0)),
    rgba(47, 18, 37, 0.92);
  --polaroid-paper: linear-gradient(180deg, #fff7fb, #fde9f1);
  --polaroid-tape: rgba(255, 186, 214, 0.36);
  --fx-color: rgba(255, 206, 225, 0.24);
}

body[data-theme="caboose-birthday"] {
  --accent: #b14dff;
  --accent-2: #5dd6ff;
  --bg-gradient:
    radial-gradient(circle at 20% 18%, rgba(91, 214, 255, 0.18), transparent 22%),
    radial-gradient(circle at 78% 16%, rgba(181, 77, 255, 0.34), transparent 25%),
    radial-gradient(circle at 58% 72%, rgba(116, 234, 255, 0.14), transparent 24%),
    linear-gradient(145deg, #17071f 0%, #42105c 44%, #15081f 100%);
  --texture-overlay:
    radial-gradient(circle at 16% 18%, rgba(102, 223, 255, 0.06) 0 0.55rem, transparent 0.62rem),
    radial-gradient(circle at 74% 30%, rgba(177, 77, 255, 0.08) 0 0.5rem, transparent 0.56rem),
    radial-gradient(circle at 52% 70%, rgba(124, 223, 255, 0.05) 0 0.4rem, transparent 0.46rem),
    linear-gradient(135deg, rgba(112, 224, 255, 0.03), transparent 38%);
  --glow-left-color: rgba(94, 220, 255, 0.24);
  --glow-right-color: rgba(184, 74, 255, 0.36);
  --surface-gradient: linear-gradient(180deg, rgba(70, 20, 103, 0.9), rgba(27, 11, 40, 0.92));
  --surface-border: rgba(124, 223, 255, 0.22);
  --frame-background:
    linear-gradient(180deg, rgba(93, 214, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(26, 10, 39, 0.95);
  --polaroid-paper: linear-gradient(180deg, #faf2ff, #efe3fb);
  --polaroid-tape: rgba(112, 224, 255, 0.28);
  --fx-color: rgba(138, 210, 255, 0.22);
}

body[data-theme="janie-birthday"] {
  --accent: #54d8ff;
  --accent-2: #f3a4ff;
  --bg-gradient:
    radial-gradient(circle at 18% 22%, rgba(90, 225, 255, 0.34), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(247, 166, 255, 0.24), transparent 24%),
    radial-gradient(circle at 70% 72%, rgba(255, 193, 233, 0.18), transparent 24%),
    linear-gradient(150deg, #102034 0%, #174a69 44%, #4a1f57 100%);
  --texture-overlay:
    linear-gradient(135deg, rgba(94, 226, 255, 0.06) 0 10%, transparent 10% 20%, rgba(248, 171, 255, 0.05) 20% 30%, transparent 30% 100%),
    radial-gradient(circle at 74% 24%, rgba(255, 218, 243, 0.06) 0 0.4rem, transparent 0.44rem);
  --glow-left-color: rgba(89, 224, 255, 0.38);
  --glow-right-color: rgba(243, 155, 255, 0.24);
  --surface-gradient: linear-gradient(180deg, rgba(19, 78, 109, 0.9), rgba(49, 24, 63, 0.9));
  --surface-border: rgba(176, 240, 255, 0.24);
  --frame-background:
    linear-gradient(180deg, rgba(100, 223, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(16, 32, 48, 0.94);
  --polaroid-paper: linear-gradient(180deg, #fdfbff, #f5ecfb);
  --polaroid-tape: rgba(132, 228, 255, 0.3);
  --fx-color: rgba(165, 234, 255, 0.24);
}

body[data-theme="halloween"] {
  --accent: #ff9d57;
  --accent-2: #ffd5a8;
  --bg-gradient:
    radial-gradient(circle at 22% 15%, rgba(255, 152, 72, 0.24), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(185, 81, 255, 0.18), transparent 24%),
    linear-gradient(155deg, #0b0710 0%, #1a1020 38%, #2b140d 100%);
  --texture-overlay:
    linear-gradient(0deg, rgba(255, 133, 61, 0.04), transparent 35%),
    radial-gradient(circle at 14% 26%, rgba(255, 219, 168, 0.05) 0 0.35rem, transparent 0.4rem),
    radial-gradient(circle at 84% 34%, rgba(201, 141, 255, 0.04) 0 0.45rem, transparent 0.5rem);
  --glow-left-color: rgba(255, 120, 42, 0.32);
  --glow-right-color: rgba(147, 77, 255, 0.24);
  --surface-gradient: linear-gradient(180deg, rgba(36, 22, 30, 0.9), rgba(16, 11, 18, 0.92));
  --surface-border: rgba(255, 183, 118, 0.18);
  --frame-background:
    linear-gradient(180deg, rgba(255, 158, 83, 0.05), rgba(255, 255, 255, 0)),
    rgba(14, 11, 16, 0.96);
  --polaroid-paper: linear-gradient(180deg, #fff8ef, #f6eadc);
  --polaroid-tape: rgba(255, 161, 86, 0.28);
  --fx-color: rgba(255, 155, 87, 0.22);
  --fx-blur: 0.4px;
}

body[data-theme="anniversary"] {
  --accent: #58d9ff;
  --accent-2: #bf68ff;
  --bg-gradient:
    radial-gradient(circle at 18% 20%, rgba(94, 228, 255, 0.28), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(186, 86, 255, 0.3), transparent 24%),
    radial-gradient(circle at 54% 74%, rgba(244, 164, 255, 0.16), transparent 26%),
    linear-gradient(145deg, #111d31 0%, #4f245e 44%, #170a1f 100%);
  --texture-overlay:
    linear-gradient(135deg, rgba(112, 226, 255, 0.05), transparent 40%),
    radial-gradient(circle at 30% 64%, rgba(255, 193, 245, 0.06) 0 0.38rem, transparent 0.42rem),
    radial-gradient(circle at 80% 28%, rgba(154, 211, 255, 0.06) 0 0.45rem, transparent 0.49rem);
  --glow-left-color: rgba(89, 223, 255, 0.3);
  --glow-right-color: rgba(190, 88, 255, 0.28);
  --surface-gradient: linear-gradient(180deg, rgba(26, 69, 99, 0.86), rgba(58, 22, 74, 0.9));
  --surface-border: rgba(175, 229, 255, 0.22);
  --frame-background:
    linear-gradient(180deg, rgba(112, 224, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(24, 15, 40, 0.95);
  --polaroid-paper: linear-gradient(180deg, #fbfbff, #efe9fb);
  --polaroid-tape: rgba(160, 220, 255, 0.3);
  --fx-color: rgba(175, 215, 255, 0.24);
}

body[data-theme="christmas"] {
  --accent: #8dd7ab;
  --accent-2: #d3f7df;
  --bg-gradient:
    radial-gradient(circle at 20% 18%, rgba(153, 219, 178, 0.22), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(255, 142, 142, 0.18), transparent 22%),
    linear-gradient(145deg, #10221b 0%, #18352b 42%, #311821 100%);
  --texture-overlay:
    radial-gradient(circle at 18% 22%, rgba(140, 215, 171, 0.06) 0 0.42rem, transparent 0.48rem),
    radial-gradient(circle at 74% 24%, rgba(255, 149, 149, 0.05) 0 0.36rem, transparent 0.42rem),
    radial-gradient(circle at 66% 70%, rgba(255, 255, 255, 0.05) 0 0.35rem, transparent 0.4rem),
    linear-gradient(140deg, rgba(187, 240, 206, 0.025), transparent 42%);
  --glow-left-color: rgba(120, 214, 157, 0.28);
  --glow-right-color: rgba(255, 132, 132, 0.2);
  --surface-gradient: linear-gradient(180deg, rgba(24, 57, 46, 0.9), rgba(28, 20, 27, 0.92));
  --surface-border: rgba(201, 247, 219, 0.2);
  --frame-background:
    linear-gradient(180deg, rgba(204, 247, 221, 0.05), rgba(255, 255, 255, 0)),
    rgba(16, 24, 21, 0.96);
  --polaroid-paper: linear-gradient(180deg, #f8fff9, #edf7f0);
  --polaroid-tape: rgba(171, 228, 191, 0.32);
  --fx-color: rgba(202, 247, 218, 0.22);
}

body[data-theme="new-year"] {
  --accent: #9bc8ff;
  --accent-2: #e0ecff;
  --bg-gradient:
    radial-gradient(circle at 50% 10%, rgba(255, 227, 145, 0.16), transparent 18%),
    radial-gradient(circle at 18% 18%, rgba(136, 187, 255, 0.18), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(173, 155, 255, 0.16), transparent 22%),
    linear-gradient(150deg, #0a1124 0%, #162542 46%, #1c1431 100%);
  --texture-overlay:
    radial-gradient(circle at 12% 34%, rgba(255, 255, 255, 0.08) 0 0.18rem, transparent 0.22rem),
    radial-gradient(circle at 72% 24%, rgba(255, 225, 152, 0.08) 0 0.22rem, transparent 0.26rem),
    radial-gradient(circle at 88% 42%, rgba(190, 213, 255, 0.07) 0 0.15rem, transparent 0.2rem);
  --glow-left-color: rgba(117, 167, 255, 0.28);
  --glow-right-color: rgba(255, 221, 133, 0.18);
  --surface-gradient: linear-gradient(180deg, rgba(22, 38, 73, 0.9), rgba(18, 18, 39, 0.92));
  --surface-border: rgba(220, 235, 255, 0.18);
  --frame-background:
    linear-gradient(180deg, rgba(210, 226, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(13, 18, 37, 0.96);
  --polaroid-paper: linear-gradient(180deg, #f9fbff, #edf2fa);
  --polaroid-tape: rgba(204, 220, 255, 0.28);
  --fx-color: rgba(255, 230, 161, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--texture-overlay);
  opacity: 0.62;
}

.holiday-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 280ms ease;
}

body[data-theme="christmas"] .holiday-lights {
  opacity: 1;
}

.lightrope {
  --globe-width: 12px;
  --globe-height: 28px;
  --globe-spacing: 40px;
  --globe-spread: 3px;
  --light-off-opacity: 0.4;
  --corner-gap: 18px;
  --rope-line-offset: 8px;
  --vertical-rope-inset: 26px;
  --corner-size: 36px;
  --corner-horizontal-stub: 14px;
  --corner-vertical-stub: 14px;
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  pointer-events: none;
}

.lightrope li {
  position: relative;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  list-style: none;
  margin: calc(var(--globe-spacing) / 2);
  padding: 0;
  display: inline-block;
  width: var(--globe-width);
  height: var(--globe-height);
  border-radius: 50%;
  background: rgba(0, 247, 165, 1);
  box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(0, 247, 165, 1);
  animation-name: flash-1;
  animation-duration: 2s;
}

.lightrope li:nth-child(2n + 1) {
  background: rgba(0, 255, 255, 1);
  box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(0, 255, 255, 0.5);
  animation-name: flash-2;
  animation-duration: 0.4s;
}

.lightrope li:nth-child(4n + 2) {
  background: rgba(247, 0, 148, 1);
  box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(247, 0, 148, 1);
  animation-name: flash-3;
  animation-duration: 1.1s;
}

.lightrope li:nth-child(odd) {
  animation-duration: 1.8s;
}

.lightrope li:nth-child(3n + 1) {
  animation-duration: 1.4s;
}

.lightrope li::before {
  content: "";
  position: absolute;
  background: #222;
  width: calc(var(--globe-width) - 2px);
  height: calc(var(--globe-height) / 3);
  border-radius: 3px;
  top: calc(var(--globe-height) * -0.16);
  left: 1px;
}

.lightrope li::after {
  content: "";
  position: absolute;
  top: calc(var(--globe-height) * -0.48);
  left: calc(var(--globe-width) - 3px);
  width: calc(var(--globe-spacing) + 12px);
  height: calc(var(--globe-height) / 2.2);
  border-bottom: 2px solid #222;
  border-radius: 50%;
}

.lightrope li:last-child::after {
  content: none;
}

.lightrope li:first-child {
  margin-left: calc(var(--globe-spacing) / 2);
}

.lightrope-top,
.lightrope-bottom {
  left: var(--corner-gap);
  width: calc(100% - (var(--corner-gap) * 2));
}

.lightrope-top {
  top: calc(var(--rope-line-offset) * -1);
}

.lightrope-bottom {
  bottom: calc(var(--rope-line-offset) * -1);
  transform: rotate(180deg);
}

.lightrope-left,
.lightrope-right {
  top: 50%;
  width: calc(100vh - (var(--corner-gap) * 2));
  transform-origin: center;
}

.lightrope-left {
  left: calc((-50vh + var(--corner-gap)) + var(--vertical-rope-inset));
  transform: translateY(-50%) rotate(-90deg);
}

.lightrope-right {
  right: calc((-50vh + var(--corner-gap)) + var(--vertical-rope-inset));
  transform: translateY(-50%) rotate(90deg);
}

.lightrope-corner {
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  border: 2px solid #222;
  pointer-events: none;
  z-index: 2;
}

.lightrope-corner::before,
.lightrope-corner::after {
  content: "";
  position: absolute;
  background: #222;
}

.lightrope-corner-top-left {
  top: 0;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 28px 0 0 0;
}

.lightrope-corner-top-left::before {
  top: -2px;
  right: calc(var(--corner-horizontal-stub) * -1);
  width: var(--corner-horizontal-stub);
  height: 2px;
}

.lightrope-corner-top-left::after {
  bottom: calc(var(--corner-vertical-stub) * -1);
  left: -2px;
  width: 2px;
  height: var(--corner-vertical-stub);
}

.lightrope-corner-top-right {
  top: 0;
  right: 8px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 28px 0 0;
}

.lightrope-corner-top-right::before {
  top: -2px;
  left: calc(var(--corner-horizontal-stub) * -1);
  width: var(--corner-horizontal-stub);
  height: 2px;
}

.lightrope-corner-top-right::after {
  bottom: calc(var(--corner-vertical-stub) * -1);
  right: -2px;
  width: 2px;
  height: var(--corner-vertical-stub);
}

.lightrope-corner-bottom-right {
  right: 8px;
  bottom: 0;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 28px 0;
}

.lightrope-corner-bottom-right::before {
  bottom: -2px;
  left: calc(var(--corner-horizontal-stub) * -1);
  width: var(--corner-horizontal-stub);
  height: 2px;
}

.lightrope-corner-bottom-right::after {
  top: calc(var(--corner-vertical-stub) * -1);
  right: -2px;
  width: 2px;
  height: var(--corner-vertical-stub);
}

.lightrope-corner-bottom-left {
  left: 8px;
  bottom: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 28px;
}

.lightrope-corner-bottom-left::before {
  bottom: -2px;
  right: calc(var(--corner-horizontal-stub) * -1);
  width: var(--corner-horizontal-stub);
  height: 2px;
}

.lightrope-corner-bottom-left::after {
  top: calc(var(--corner-vertical-stub) * -1);
  left: -2px;
  width: 2px;
  height: var(--corner-vertical-stub);
}

@keyframes flash-1 {
  0%,
  100% {
    background: rgba(0, 247, 165, 1);
    box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(0, 247, 165, 1);
  }
  50% {
    background: rgba(0, 247, 165, var(--light-off-opacity));
    box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(0, 247, 165, 0.2);
  }
}

@keyframes flash-2 {
  0%,
  100% {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(0, 255, 255, 1);
  }
  50% {
    background: rgba(0, 255, 255, var(--light-off-opacity));
    box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(0, 255, 255, 0.2);
  }
}

@keyframes flash-3 {
  0%,
  100% {
    background: rgba(247, 0, 148, 1);
    box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(247, 0, 148, 1);
  }
  50% {
    background: rgba(247, 0, 148, var(--light-off-opacity));
    box-shadow: 0 calc(var(--globe-height) / 6) calc(var(--globe-width) * 2) var(--globe-spread) rgba(247, 0, 148, 0.2);
  }
}

.hero-card {
  position: relative;
  overflow: visible;
}

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

.snow-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  transition: opacity 280ms ease;
}

body[data-theme="christmas"] .snow-layer {
  opacity: 1;
}

.snowflake {
  position: absolute;
  top: -12vh;
  width: var(--flake-size, 0.45rem);
  height: var(--flake-size, 0.45rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72) 58%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.35),
    0 0 16px rgba(214, 244, 255, 0.18);
  opacity: 0;
  animation: snow-fall linear infinite;
  will-change: transform, opacity;
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -8vh, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--snow-drift, 18px), 112vh, 0);
    opacity: 0.12;
  }
}

.fireworks-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
}

.fireworks-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.season-spark {
  position: absolute;
  top: -12vh;
  color: var(--fx-color);
  font-family: "Cormorant Garamond", serif;
  opacity: 0;
  filter: blur(var(--fx-blur));
  animation: season-fall linear infinite;
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.season-spark.is-soft {
  font-size: clamp(1rem, 1.8vw, 1.6rem);
}

.season-spark.is-bold {
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
}

@keyframes season-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--drift-x, 18px), 115vh, 0) rotate(var(--spin, 120deg));
    opacity: 0;
  }
}

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

.floating-note {
  position: absolute;
  top: 0;
  color: rgba(255, 245, 235, 0.2);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate3d(0, 110vh, 0) rotate(-3deg);
  animation: drift-note linear infinite;
  animation-fill-mode: both;
  white-space: nowrap;
}

@keyframes drift-note {
  0% {
    transform: translate3d(0, 110vh, 0) rotate(-3deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translate3d(2rem, -18vh, 0) rotate(4deg);
    opacity: 0;
  }
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.28;
  pointer-events: none;
}

.page-glow-left {
  left: -8rem;
  top: 12rem;
  background: var(--glow-left-color);
}

.page-glow-right {
  right: -10rem;
  top: 4rem;
  background: var(--glow-right-color);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero-card,
.note-card,
.polaroid-card {
  background: var(--surface-gradient);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
}

.hero-card {
  background: var(--hero-surface-gradient);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  padding: 1.4rem;
  border-radius: 32px;
}

.hero-copy {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.hero-meta,
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.eyebrow,
.note-kicker,
.counter-label {
  margin: 0;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-size: 0.72rem;
}

h1,
.note-body {
  font-family: "Cormorant Garamond", serif;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.95;
  font-weight: 600;
  max-width: 9ch;
}

.lede {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.season-chip,
.music-toggle {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.volume-control {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.volume-label {
  font-size: 0.76rem;
  color: var(--accent-2);
}

.volume-slider {
  width: 5.25rem;
  accent-color: var(--accent);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  margin-top: -0.265rem;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.volume-slider::-moz-range-track {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.volume-slider::-moz-range-thumb {
  width: 0.95rem;
  height: 0.95rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body[data-theme="christmas"] .volume-slider::-webkit-slider-runnable-track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(176, 29, 52, 0.08)),
    repeating-linear-gradient(
      -55deg,
      #c7173d 0 0.55rem,
      #fff8f8 0.55rem 1.1rem,
      #d6183f 1.1rem 1.65rem,
      #fff8f8 1.65rem 2.2rem
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 10px rgba(183, 36, 63, 0.2);
}

body[data-theme="christmas"] .volume-slider::-moz-range-track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(176, 29, 52, 0.08)),
    repeating-linear-gradient(
      -55deg,
      #c7173d 0 0.55rem,
      #fff8f8 0.55rem 1.1rem,
      #d6183f 1.1rem 1.65rem,
      #fff8f8 1.65rem 2.2rem
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 10px rgba(183, 36, 63, 0.2);
}

body[data-theme="christmas"] .volume-slider::-webkit-slider-thumb {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55) 20%, transparent 21%),
    repeating-conic-gradient(
      from 0deg,
      #fff9f9 0deg 22deg,
      #cf183f 22deg 44deg
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(69, 8, 18, 0.35);
}

body[data-theme="christmas"] .volume-slider::-moz-range-thumb {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55) 20%, transparent 21%),
    repeating-conic-gradient(
      from 0deg,
      #fff9f9 0deg 22deg,
      #cf183f 22deg 44deg
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(69, 8, 18, 0.35);
}

.music-toggle,
.season-chip {
  flex: 0 0 auto;
}

.season-chip {
  margin: 0;
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
  color: var(--accent-2);
}

.music-toggle {
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font: inherit;
  flex-shrink: 0;
  font-size: 0.92rem;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.music-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.music-toggle.is-playing {
  background: rgba(255, 179, 138, 0.14);
  border-color: rgba(255, 179, 138, 0.35);
}

.season-note,
.music-note {
  margin: -0.8rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.theme-tester {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-tester-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(26, 20, 29, 0.85);
  color: var(--text);
  padding: 0.4rem 0.75rem;
  min-width: 7rem;
  font-size: 0.8rem;
  font: inherit;
}

.music-note code {
  color: var(--accent-2);
}

.counter-card {
  padding: 1.2rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 184, 145, 0.14), rgba(255, 255, 255, 0.03)),
    var(--card-strong);
  border: 1px solid rgba(255, 244, 229, 0.12);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.counter-unit {
  padding: 0.95rem 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.counter-value {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
}

.counter-name,
.counter-footnote {
  color: var(--muted);
}

.counter-name {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

.counter-footnote {
  margin: 0.95rem 0 0;
  font-size: 0.92rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-frame {
  position: relative;
  min-height: 620px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--frame-background);
  border: 1px solid var(--frame-border);
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay,
.placeholder-panel {
  position: absolute;
  inset: auto 0 0;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 14, 0.8));
}

.slide-caption {
  margin: 0;
  font-size: 0.95rem;
  color: #fff1e3;
}

.placeholder-panel {
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 185, 138, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(83, 48, 72, 0.96), rgba(27, 18, 33, 0.96));
  padding: 2rem;
}

.placeholder-panel p {
  margin: 0;
  max-width: 18ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.gallery-controls {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.gallery-nav {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0.15rem 0.5rem;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  flex: 1;
}

.gallery-nav::-webkit-scrollbar {
  height: 8px;
}

.gallery-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.gallery-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition:
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.gallery-arrow:hover {
  background: rgba(255, 179, 138, 0.16);
  border-color: rgba(255, 179, 138, 0.4);
  transform: translateY(-1px);
}

.gallery-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  transition:
    transform 180ms ease,
    background 180ms ease;
  flex: 0 0 auto;
}

.gallery-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

.note-card {
  margin-top: 1.2rem;
  padding: 1.5rem 1.6rem;
  border-radius: 26px;
}

.note-body {
  margin: 0.55rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.12;
  max-width: 30ch;
}

.polaroid-card {
  margin-top: 1.2rem;
  padding: 1.5rem 1.6rem 1.9rem;
  border-radius: 26px;
}

.polaroid-copy h2 {
  margin: 0.45rem 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  max-width: 16ch;
}

.polaroid-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.polaroid {
  position: relative;
  background: var(--polaroid-paper);
  border-radius: 8px;
  padding: 0.9rem 0.9rem 1.25rem;
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg)) translateY(var(--offset, 0px));
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .season-fx,
  .snow-layer,
  .floating-notes,
  .holiday-lights,
  .fireworks-layer,
  .page-glow {
    display: none !important;
  }

  .lightrope li,
  .season-spark,
  .floating-note,
  .slide {
    animation: none !important;
    transition: none !important;
  }

  .hero-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.polaroid:nth-child(4n + 1) {
  --tilt: -5deg;
  --offset: 8px;
}

.polaroid:nth-child(4n + 2) {
  --tilt: 3deg;
  --offset: -6px;
}

.polaroid:nth-child(4n + 3) {
  --tilt: -2deg;
  --offset: 4px;
}

.polaroid:nth-child(4n + 4) {
  --tilt: 6deg;
  --offset: -10px;
}

.polaroid::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0.55rem auto auto;
  width: 3.3rem;
  height: 1.1rem;
  background: var(--polaroid-tape);
  transform: rotate(12deg);
  border-radius: 2px;
}

.polaroid-media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: #d8d0c8;
}

.polaroid-media img,
.polaroid-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  margin: 0.95rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.05;
}

@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .gallery-frame {
    min-height: 520px;
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 0.5rem;
  }

  .hero-card {
    padding: 0.8rem;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 0.8rem;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .theme-tester {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .gallery-frame {
    min-height: 420px;
  }

  .gallery-controls {
    gap: 0.45rem;
  }

  .gallery-arrow {
    width: 2.25rem;
    height: 2.25rem;
  }

  .note-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .polaroid-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .polaroid-grid {
    grid-template-columns: 1fr;
  }
}
