:root {
  --bg-dark: #041008;
  --bg-deep: #090b10;
  --grinch-green: #15a84a;
  --grinch-dark-green: #0b5c2b;
  --accent-red: #e53935;
  --accent-gold: #ffd54f;
  --accent-soft-gold: #ffe082;
  --accent-candy: #ff6fa7;
  --snow-white: #f7fbff;
  --card-bg: rgba(10, 20, 16, 0.86);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #fdfdfd;
  --text-soft: #d0dde6;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --transition-fast: 180ms ease-out;
  --transition-med: 260ms ease-out;
  --blur-xl: 24px;
  --glow-green: 0 0 25px rgba(21, 168, 74, 0.85);
  --glow-red: 0 0 30px rgba(229, 57, 53, 0.8);
  --glow-gold: 0 0 26px rgba(255, 213, 79, 0.9);
}

/* Base layout */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* single-screen experience */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
}

body {
  background:
    radial-gradient(circle at 10% -20%, #3f7e45 0, transparent 55%),
    radial-gradient(circle at 90% 120%, #7f1d1d 0, transparent 55%),
    radial-gradient(circle at 50% 10%, #102a43 0, #020305 70%);
  position: relative;
}

/* Background glow */

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(229, 57, 53, 0.4) 0, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(21, 168, 74, 0.4) 0, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
  z-index: -1;
}

/* Snow layers */

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

.snow-layer--back {
  opacity: 0.45;
}

.snow-layer--front {
  opacity: 0.9;
}

/* Grinch runner across top */

.grinch-runner {
  position: fixed;
  top: 6px;
  left: -80px;
  width: 64px;
  height: 40px;
  z-index: 6;
  pointer-events: none;
  animation: grinch-run 10s linear infinite;
}

.grinch-runner-body {
  position: absolute;
  inset: 4px 0 0 0;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 20% 0, #a5ffce, var(--grinch-green));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.9);
}

.grinch-runner-face {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f1f8e9;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.grinch-runner-face::before,
.grinch-runner-face::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #212121;
}

.grinch-runner-face::before {
  left: 3px;
}
.grinch-runner-face::after {
  right: 3px;
}

.grinch-runner-arm {
  position: absolute;
  top: 14px;
  left: -6px;
  width: 20px;
  height: 10px;
  border-radius: 50% 0 50% 50%;
  background: radial-gradient(circle at 0 0, #c8ffd9, var(--grinch-green));
  transform-origin: 15px 5px;
  animation: grinch-wave 0.4s ease-in-out infinite;
}

.grinch-runner-hat {
  position: absolute;
  top: -4px;
  right: 4px;
  width: 20px;
  height: 16px;
  border-radius: 100% 100% 60% 60%;
  background: linear-gradient(145deg, #ff7961, #c62828);
  transform: rotate(-18deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.grinch-runner-hat::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 2px;
  right: 2px;
  height: 5px;
  border-radius: 999px;
  background: #fafafa;
}

@keyframes grinch-run {
  0% {
    transform: translateX(0);
  }
  70% {
    transform: translateX(calc(100vw + 80px));
  }
  100% {
    transform: translateX(calc(100vw + 80px));
  }
}

@keyframes grinch-wave {
  0%,
  100% {
    transform: rotate(-25deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

/* Header */

.header {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(6, 26, 15, 0.94), rgba(7, 10, 15, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
}

.logo-grinch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 10%, #7dfd9c, var(--grinch-green));
  color: #021006;
  font-weight: 800;
  font-size: 17px;
  box-shadow: var(--glow-green);
}

.logo-text {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
}

.ghost-pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 0 0, rgba(21, 168, 74, 0.5), transparent 58%),
    rgba(5, 10, 8, 0.9);
  color: var(--text-soft);
  padding: 6px 13px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.nav-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #a5ffcf, var(--grinch-green));
  box-shadow: 0 0 12px rgba(165, 255, 207, 0.9);
}

/* Hero layout */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 18px 26px;
  position: relative;
  z-index: 1;
}

.hero-card {
  width: 100%;
  max-width: 1020px;
  height: 100%;
  max-height: 540px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at top left, rgba(43, 94, 65, 0.84), transparent 55%),
    radial-gradient(circle at bottom right, rgba(92, 35, 35, 0.9), transparent 52%),
    radial-gradient(circle at 110% 0, rgba(255, 111, 167, 0.35), transparent 60%),
    rgba(3, 8, 7, 0.97);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(26px);
  overflow: auto;
  position: relative;
  transform-origin: center;
}

/* candy cane rails */

.candy-rail {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 10px;
  background-image: repeating-linear-gradient(
    135deg,
    #ffffff,
    #ffffff 6px,
    #ff6b6b 6px,
    #ff6b6b 12px,
    #ffeb3b 12px,
    #ffeb3b 18px
  );
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
  opacity: 0.8;
  pointer-events: none;
}

.candy-rail--left {
  left: 6px;
}
.candy-rail--right {
  right: 6px;
}

/* Left side */

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 10px 6px 10px 14px;
  position: relative;
}

/* alert strip */

.grinch-alert-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 244, 128, 0.12);
  border: 1px dashed rgba(255, 235, 59, 0.8);
  color: var(--accent-soft-gold);
  font-size: 11px;
  max-width: 100%;
}

.alert-icon {
  font-size: 12px;
}

.alert-text {
  flex: 1;
}

.alert-grinch-face {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 10%, #a5ffce, #15a84a);
  position: relative;
  box-shadow: 0 0 10px rgba(165, 255, 206, 0.7);
}

.alert-grinch-face::before,
.alert-grinch-face::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #263238;
}

.alert-grinch-face::before {
  left: 4px;
}
.alert-grinch-face::after {
  right: 4px;
}

.tagline-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(1, 18, 12, 0.86);
  border: 1px solid rgba(172, 255, 200, 0.7);
  box-shadow: var(--glow-green);
  font-size: 11px;
  color: var(--accent-soft-gold);
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff, #ffe082);
  box-shadow: 0 0 9px rgba(255, 244, 154, 0.9);
}

.tag-text {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow:
    -2px 2px 0 rgba(0, 0, 0, 0.6),
    0 4px 18px rgba(0, 0, 0, 0.9);
}

.hero-highlight {
  display: inline-block;
  background: linear-gradient(120deg, #ffeb3b, #ff9800, #ff5252);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 216, 102, 0.85);
}

.hero-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-soft);
}

.hero-date {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--accent-soft-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-cta-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* CTA */

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 25% 0, #fff59d, transparent 52%),
    linear-gradient(140deg, #ff7043, #e53935, #c62828);
  color: #1b0201;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 30px rgba(0, 0, 0, 0.85),
    var(--glow-red);
  transform-origin: center;
  transition:
    transform 140ms ease-out,
    box-shadow 160ms ease-out,
    filter 160ms ease-out;
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 160deg,
    rgba(255, 255, 255, 0.8),
    rgba(244, 67, 54, 0.4),
    rgba(255, 241, 118, 0.5),
    rgba(255, 255, 255, 0.7)
  );
  opacity: 0;
  filter: blur(6px);
  transition: opacity 200ms ease-out;
  z-index: -1;
}

.cta-label {
  position: relative;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.9), transparent 55%);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.cta-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff, #ffe082);
  box-shadow: 0 0 16px rgba(255, 241, 118, 0.9);
  opacity: 0;
}

.cta-spark--1 {
  top: -4px;
  left: 12px;
}
.cta-spark--2 {
  right: 10px;
  bottom: -6px;
}

.cta-mischief:hover .cta-spark,
.cta-mischief:focus-visible .cta-spark {
  animation: spark-pop 0.4s ease-out forwards;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px) scale(1.04) rotate(-1deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 18px 40px rgba(229, 57, 53, 0.9);
  filter: brightness(1.06);
}

.cta-button:hover::before,
.cta-button:focus-visible::before {
  opacity: 0.9;
}

.cta-button:active {
  transform: translateY(0) scale(0.98) rotate(1.2deg);
}

/* subtle idle wiggle animation */
.cta-button {
  animation: cta-wiggle 3.6s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes cta-wiggle {
  0%,
  88%,
  100% {
    transform: translateY(0) scale(1);
  }
  92% {
    transform: translateY(-1px) rotate(-2deg) scale(1.02);
  }
  96% {
    transform: translateY(-1px) rotate(2deg) scale(1.02);
  }
}

@keyframes spark-pop {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  80% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.1);
  }
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 20, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

.hero-note-light {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff, #a5ffce);
  box-shadow: 0 0 12px rgba(165, 255, 206, 0.9);
}

.hero-note-text {
  font-size: 12px;
  color: var(--accent-soft-gold);
}

/* chaos row */

.chaos-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.chaos-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(21, 168, 74, 0.2);
  border: 1px solid rgba(165, 255, 207, 0.7);
  font-size: 11px;
}

.chaos-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chaos-switch {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  position: relative;
}

.chaos-switch::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a5ffce;
  box-shadow: 0 0 8px rgba(165, 255, 207, 0.9);
  animation: chaos-switch 1.5s ease-in-out infinite;
}

@keyframes chaos-switch {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(7px);
  }
}

/* fake trap button */

.trap-button {
  position: relative;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 111, 167, 0.18);
  border: 1px dashed rgba(255, 171, 145, 0.9);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffccbc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  overflow: hidden;
}

.trap-button::before {
  content: "🤔";
  font-size: 9px;
  opacity: 0.7;
}

.trap-snap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* features */

.features-list {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.feature-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.feature-icon {
  width: 20px;
  text-align: center;
}

/* Right side */

.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 10px 10px 0;
  gap: 8px;
}

.scene-orbit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  padding: 12px;
  background:
    radial-gradient(circle at top left, rgba(16, 62, 36, 0.9), transparent 60%),
    radial-gradient(circle at bottom, rgba(84, 36, 34, 0.95), transparent 60%),
    radial-gradient(circle at -10% 10%, rgba(255, 255, 255, 0.12), transparent 60%),
    rgba(8, 14, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.9),
    0 0 36px rgba(21, 168, 74, 0.35);
  overflow: hidden;
}

.scene-inner-glow {
  position: absolute;
  inset: 30% 10% 0;
  background: radial-gradient(circle at center, rgba(230, 255, 231, 0.22), transparent 70%);
  mix-blend-mode: screen;
}

/* Tree */

.scene-tree {
  position: absolute;
  inset: 20% 14% 10% 14%;
}

.tree-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 70% 70%;
  background: conic-gradient(
    from 200deg,
    #2e7d32,
    #66bb6a,
    #1b5e20,
    #2e7d32,
    #66bb6a,
    #1b5e20
  );
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.tree-layer--1 {
  bottom: 0;
  width: 76%;
  height: 45%;
}

.tree-layer--2 {
  bottom: 26%;
  width: 60%;
  height: 35%;
}

.tree-layer--3 {
  bottom: 46%;
  width: 40%;
  height: 26%;
}

.tree-trunk {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 13%;
  height: 13%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4e342e, #3e2723);
  border-radius: 6px;
}

/* Star */

.tree-star {
  position: absolute;
  bottom: 68%;
  left: 50%;
  width: 23px;
  height: 23px;
  transform: translateX(-50%) rotate(18deg);
  background: radial-gradient(circle at 30% 0, #fffde7, #ffeb3b, #ffb300);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  box-shadow:
    0 0 16px rgba(255, 241, 118, 0.9),
    0 0 28px rgba(255, 214, 0, 0.7);
  animation: star-twinkle 2.4s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%,
  100% {
    transform: translateX(-50%) rotate(18deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) rotate(18deg) scale(1.12);
    opacity: 0.8;
  }
}

/* Ornaments */

.tree-ornament {
  position: absolute;
  border-radius: 999px;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
}

.tree-ornament:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ornament--red {
  background: radial-gradient(circle at 30% 0, #ffcdd2, #f44336);
  left: 34%;
  bottom: 45%;
}

.ornament--gold {
  background: radial-gradient(circle at 30% 0, #fff9c4, #ffc107);
  right: 26%;
  bottom: 34%;
}

.ornament--blue {
  background: radial-gradient(circle at 30% 0, #bbdefb, #2196f3);
  left: 50%;
  bottom: 25%;
}

/* Tree lights */

.tree-lights {
  position: absolute;
  inset: 33% 18% 15% 18%;
}

.light-bulb {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 18px rgba(255, 255, 255, 0.7);
  animation: light-blink 1.6s infinite alternate;
}

.light-bulb--1 {
  left: 18%;
  top: 54%;
  background: #ffeb3b;
}

.light-bulb--2 {
  left: 52%;
  top: 42%;
  background: #ff5252;
  animation-delay: 0.3s;
}

.light-bulb--3 {
  left: 70%;
  top: 63%;
  background: #69f0ae;
  animation-delay: 0.6s;
}

.light-bulb--4 {
  left: 35%;
  top: 30%;
  background: #40c4ff;
  animation-delay: 0.9s;
}

@keyframes light-blink {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
    box-shadow:
      0 0 3px rgba(255, 255, 255, 0.3),
      0 0 6px rgba(255, 255, 255, 0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1.3);
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.9),
      0 0 20px rgba(255, 255, 255, 0.7);
  }
}

/* Gifts */

.gift-pile {
  position: absolute;
  inset: auto 4% 6% 4%;
}

.gift {
  position: absolute;
  width: 60px;
  height: 48px;
}

.gift--left {
  left: 4%;
  bottom: 0;
  animation: gift-bob 3.4s ease-in-out infinite;
}

.gift--right {
  right: 8%;
  bottom: 0;
  transform-origin: center;
  animation: gift-bob 3.8s ease-in-out infinite reverse;
}

.gift--tiny {
  left: 42%;
  bottom: -4px;
  width: 36px;
  height: 32px;
  animation: gift-bob 3s ease-in-out infinite alternate-reverse;
}

.gift-box {
  position: absolute;
  inset: 16px 4px 0;
  border-radius: 8px;
  background: linear-gradient(145deg, #c62828, #8e0000);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.5);
}

.gift-lid {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 18px;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(145deg, #ff7043, #e53935);
}

.gift-ribbon {
  position: absolute;
  background: linear-gradient(135deg, #fff8e1, #ffca28);
}

.gift-ribbon--vertical {
  width: 8px;
  inset: 4px auto 0 50%;
  transform: translateX(-50%);
}

.gift-ribbon--horizontal {
  height: 8px;
  inset: 18px 4px auto;
}

@keyframes gift-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Garland */

.garland {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 8%;
  height: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.garland--top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border-top: 2px solid rgba(123, 237, 159, 0.8);
  transform: translateY(-6px);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.7));
}

.garland-bulb {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 55% 55%;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.7),
    0 2px 7px rgba(0, 0, 0, 0.6);
  transform-origin: top;
  animation: bulb-swing 2.4s ease-in-out infinite;
}

.garland-bulb--red {
  background: radial-gradient(circle at 30% 0, #ffcdd2, #f44336);
}

.garland-bulb--gold {
  background: radial-gradient(circle at 30% 0, #fff9c4, #ffb300);
}

.garland-bulb--green {
  background: radial-gradient(circle at 30% 0, #c8e6c9, #2e7d32);
}

.garland-bulb--blue {
  background: radial-gradient(circle at 30% 0, #bbdefb, #1e88e5);
}

.garland-bulb:nth-child(2) {
  animation-delay: 0.25s;
}
.garland-bulb:nth-child(3) {
  animation-delay: 0.5s;
}
.garland-bulb:nth-child(4) {
  animation-delay: 0.75s;
}
.garland-bulb:nth-child(5) {
  animation-delay: 1s;
}
.garland-bulb:nth-child(6) {
  animation-delay: 1.25s;
}

@keyframes bulb-swing {
  0%,
  100% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

/* Grinch elements */

.grinch-peek {
  position: absolute;
  width: 90px;
  height: 90px;
  pointer-events: none;
}

.grinch-peek--hanging {
  top: -20px;
  right: -10px;
}

.grinch-hanging-body {
  position: absolute;
  bottom: 15px;
  right: 18px;
  width: 48px;
  height: 34px;
  border-radius: 40% 40% 40% 40%;
  background: radial-gradient(circle at 20% 0, #a5ffce, var(--grinch-green));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.grinch-hanging-arm {
  position: absolute;
  top: -16px;
  right: 10px;
  width: 18px;
  height: 22px;
  border-radius: 40% 40% 50% 50%;
  background: radial-gradient(circle at 20% 0, #d0ffe6, #1b8d42);
  transform-origin: top center;
  animation: arm-swing 1.2s ease-in-out infinite;
}

.grinch-hanging-leg {
  position: absolute;
  bottom: -8px;
  width: 16px;
  height: 20px;
  border-radius: 50% 50% 60% 60%;
  background: radial-gradient(circle at 20% 0, #b9f6ca, #1b5e20);
}

.grinch-hanging-leg--left {
  left: 4px;
}
.grinch-hanging-leg--right {
  right: 6px;
}

@keyframes arm-swing {
  0%,
  100% {
    transform: rotate(12deg);
  }
  50% {
    transform: rotate(-16deg);
  }
}

.grinch-eye {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fffde7, #cddc39);
  box-shadow: 0 0 7px rgba(230, 255, 160, 0.8);
}

.grinch-eye--left {
  right: 42px;
}

.grinch-eye::before {
  content: "";
  position: absolute;
  inset: 2px 4px 3px 3px;
  border-radius: inherit;
  background: #212121;
}

.grinch-eye::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -3px;
  right: -3px;
  height: 7px;
  border-radius: 50%;
  border-top: 3px solid #1b5e20;
}

.grinch-hat {
  position: absolute;
  top: 0;
  right: 12px;
  width: 50px;
  height: 30px;
}

.grinch-hat-top {
  position: absolute;
  inset: 0 6px auto;
  height: 26px;
  border-radius: 50% 50% 60% 60%;
  transform: rotate(-12deg);
  background: linear-gradient(145deg, #ff7961, #d32f2f);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.6);
}

.grinch-hat-band {
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fafafa;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.grinch-hat-pom {
  position: absolute;
  right: 0;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff, #f5f5f5);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Ornament snatch */

.grinch-ornament-snatch {
  position: absolute;
  top: 30%;
  right: -10px;
  width: 70px;
  height: 80px;
  overflow: visible;
}

.snatch-line {
  position: absolute;
  top: 0;
  right: 16px;
  width: 2px;
  height: 50px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.5) 4px,
    rgba(255, 255, 255, 0.15) 4px,
    rgba(255, 255, 255, 0.15) 8px
  );
  transform-origin: top;
  animation: snatch-swing 2.8s ease-in-out infinite;
}

.snatch-ornament {
  position: absolute;
  top: 46px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffe082, #ffb300, #ff6f00);
  box-shadow: 0 0 14px rgba(255, 193, 7, 0.85);
  transform-origin: top center;
  animation: snatch-swing 2.8s ease-in-out infinite;
}

@keyframes snatch-swing {
  0%,
  100% {
    transform: rotate(12deg);
  }
  50% {
    transform: rotate(-24deg);
  }
}

/* tió indicator */

.tio-indicator {
  position: absolute;
  left: 10px;
  top: 64%;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tio-eyes {
  width: 14px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, #ffffff 50%, #ffffff 50%);
  position: relative;
  overflow: hidden;
}

.tio-eyes::before,
.tio-eyes::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #000;
  animation: eyes-look 3s ease-in-out infinite;
}

.tio-eyes::before {
  left: 3px;
}
.tio-eyes::after {
  right: 3px;
}

.tio-text {
  white-space: nowrap;
}

@keyframes eyes-look {
  0%,
  100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(2px);
  }
  70% {
    transform: translateX(-2px);
  }
}

/* Mini label */

.mini-label {
  align-self: flex-end;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 12, 8, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-soft);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.75);
}

.mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffab91, #ff7043);
  box-shadow: 0 0 10px rgba(255, 171, 145, 0.9);
}

.mini-text {
  white-space: nowrap;
}

/* bottom grinch peek */

.grinch-bottom-peek {
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 140px;
  height: 40px;
  transform: translateX(-50%);
  pointer-events: none;
}

.grinch-bottom-hand {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 16px;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(circle at 50% 0, #b9f6ca, #1b5e20);
  box-shadow: 0 -6px 10px rgba(0, 0, 0, 0.8);
}

.grinch-bottom-eyes {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 32px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #f1f8e9;
  box-shadow: 0 -3px 4px rgba(0, 0, 0, 0.5);
}

.grinch-bottom-eyes::before,
.grinch-bottom-eyes::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #212121;
  animation: eyes-look 3s ease-in-out infinite;
}

.grinch-bottom-eyes::before {
  left: 6px;
}
.grinch-bottom-eyes::after {
  right: 6px;
}

/* Footer */

.footer {
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  color: rgba(227, 242, 253, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Hover & playful interactions */

.shaky-on-hover {
  transform-origin: center;
}

@keyframes comic-shake {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  25% {
    transform: translate3d(-1px, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(1px, 0, 0) rotate(1deg);
  }
  75% {
    transform: translate3d(-1px, 0, 0) rotate(-1deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .scene-card:hover .garland-bulb {
    animation-duration: 1.4s;
  }

  .scene-card:hover .scene-tree {
    transform: translateY(-2px);
    transition: transform 200ms ease-out;
  }

  .scene-card:hover .tree-ornament {
    transform: translateY(-1px) scale(1.06);
  }

  .mini-label:hover,
  .hero-note:hover,
  .chaos-pill:hover,
  .feature-row:hover {
    animation: comic-shake 0.26s ease-in-out 1;
  }

  .shaky-on-hover:hover {
    animation: comic-shake 0.26s ease-in-out 1;
  }

  .trap-button:hover {
    animation: comic-shake 0.4s ease-in-out 1;
  }
}

/* snowflakes */

.snowflake {
  position: absolute;
  top: -10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e3f2fd);
  opacity: 0.8;
  pointer-events: none;
}

/* Ornaments fallen state */

.ornament-fallen {
  animation: ornament-fall 0.7s ease-in forwards;
}

@keyframes ornament-fall {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  80% {
    transform: translateY(36px) scale(0.9);
    opacity: 1;
  }
  100% {
    transform: translateY(40px) scale(0.6);
    opacity: 0;
  }
}

/* Lights toggled */

.light-off {
  opacity: 0.2 !important;
  box-shadow: none !important;
}

/* trap burst */

.trap-triggered .trap-snap {
  animation: trap-pop 0.26s ease-out forwards;
}

@keyframes trap-pop {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* mischievous wiggle for logo */

.mischievous-wiggle {
  animation: mischievous-wiggle 4s ease-in-out infinite;
}

@keyframes mischievous-wiggle {
  0%,
  90%,
  100% {
    transform: rotate(0);
  }
  92% {
    transform: rotate(-3deg);
  }
  96% {
    transform: rotate(3deg);
  }
}

/* entrance animation */

body:not(.is-ready) .hero-card {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}

body.is-ready .hero-card {
  opacity: 1;
  transition: opacity 520ms ease-out, transform 520ms ease-out;
  transform: translateY(0) scale(1);
}

/* Responsive adjustments */

@media (max-width: 820px) {
  .hero {
    padding: 52px 12px 20px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    max-height: 560px;
  }

  .hero-left {
    padding: 6px 6px 0 10px;
  }

  .hero-right {
    padding: 0 4px 4px;
  }

  .mini-label {
    align-self: flex-start;
  }

  .features-list {
    display: none;
  }
}

@media (max-width: 480px) {
  .header {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .hero {
    padding: 50px 10px 18px;
  }

  .hero-card {
    padding: 14px 12px 12px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

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

  .hero-cta-row {
    gap: 8px;
  }

  .cta-button {
    flex: 1;
    justify-content: center;
  }

  .hero-note {
    padding: 4px 9px;
  }

  .scene-card {
    max-width: 260px;
  }

  .grinch-alert-strip {
    max-width: 260px;
  }
}

/* Accessibility focus */

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}