:root {
  --red-900: #8b1a2f;
  --red-700: #c41e3a;
  --red-600: #e31837;
  --red-400: #ff6b6b;
  --green-800: #0f4d2a;
  --green-700: #165b33;
  --green-500: #2c8a53;
  --gold-500: #ffd700;
  --gold-600: #daa520;
  --gold-700: #fdb931;
  --silver-500: #c0c0c0;
  --cream-100: #fffaf0;
  --cream-150: #fff9f0;
  --cream-200: #fff5f5;
  --cream-300: #fceee4;
  --text-900: #2c1810;
  --text-700: #5f3d2a;
  --text-500: #87614c;
  --panel: rgba(255, 251, 244, 0.74);
  --panel-strong: rgba(255, 249, 239, 0.9);
  --border: rgba(196, 30, 58, 0.28);
  --shadow-soft: 0 14px 34px rgba(115, 23, 42, 0.14);
  --shadow-card: 0 20px 38px rgba(109, 30, 45, 0.24);
  --ring-gold: rgba(255, 215, 0, 0.42);
  --light-speed: 2.8s;
  --digit-color: #c41e3a;
  --digit-shadow: 0 6px 14px rgba(227, 24, 55, 0.24);
  --bg-main: radial-gradient(circle at 14% 22%, #ffe2df 0%, rgba(255, 226, 223, 0.2) 36%, transparent 58%),
    radial-gradient(circle at 85% 12%, #ffeccc 0%, rgba(255, 236, 204, 0.2) 34%, transparent 54%),
    linear-gradient(140deg, var(--cream-100) 0%, var(--cream-150) 44%, #ffe9e8 100%);
}

:root[data-theme="night"] {
  --panel: rgba(96, 16, 34, 0.3);
  --panel-strong: rgba(113, 18, 39, 0.42);
  --border: rgba(255, 228, 171, 0.3);
  --text-900: #fff3e6;
  --text-700: #ffe3ca;
  --text-500: #ffd2b3;
  --digit-color: #fffaf0;
  --digit-shadow: 0 8px 18px rgba(255, 215, 0, 0.25);
  --bg-main: radial-gradient(circle at 16% 20%, rgba(255, 125, 125, 0.2), transparent 42%),
    radial-gradient(circle at 84% 18%, rgba(255, 217, 92, 0.16), transparent 40%),
    linear-gradient(145deg, #4f0d23 0%, #7a0f2c 44%, #a51d3d 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-900);
  background: var(--bg-main);
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

body.countdown-only-fullscreen {
  overflow: hidden;
}

body.countdown-only-fullscreen .site {
  min-height: 100vh;
  padding: clamp(18px, 2.6vw, 34px) clamp(12px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

body.countdown-only-fullscreen .top-frame,
body.countdown-only-fullscreen .celebration,
body.countdown-only-fullscreen .content-transition,
body.countdown-only-fullscreen .section-block,
body.countdown-only-fullscreen .diy-modal,
body.countdown-only-fullscreen .surprise-modal,
body.countdown-only-fullscreen .back-top {
  display: none !important;
}

body.countdown-only-fullscreen .hero {
  margin: 0;
  width: min(1240px, 100%);
  gap: clamp(14px, 2.2vh, 28px);
}

body.countdown-only-fullscreen .countdown-panel {
  width: 100%;
  padding: clamp(14px, 2.2vw, 28px) 8px 10px;
}

body.countdown-only-fullscreen .intro {
  display: block;
}

body.countdown-only-fullscreen .decor-stage {
  width: min(1260px, 100%);
  min-height: 282px;
  margin: clamp(10px, 2.2vh, 22px) auto 0;
}

.site {
  position: relative;
  min-height: 100vh;
  padding: 30px 36px 48px;
  overflow: hidden;
  isolation: isolate;
}

.fx-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
}

.bg-wave {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.4;
  animation: waveFloat 12s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.wave-a {
  width: 48vw;
  height: 48vw;
  left: -10vw;
  top: -12vw;
  background: radial-gradient(circle, rgba(227, 24, 55, 0.2), transparent 68%);
}

.wave-b {
  width: 52vw;
  height: 42vw;
  right: -8vw;
  top: 22vh;
  animation-delay: -4s;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18), transparent 70%);
}

.wave-c {
  width: 46vw;
  height: 34vw;
  left: 28vw;
  bottom: -16vw;
  animation-delay: -8s;
  background: radial-gradient(circle, rgba(22, 91, 51, 0.18), transparent 72%);
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  justify-items: center;
  background: linear-gradient(135deg, rgba(255, 243, 233, 0.97), rgba(255, 234, 230, 0.98));
  backdrop-filter: blur(8px);
  z-index: 120;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader p {
  color: var(--red-900);
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.loader-gift {
  width: 86px;
  height: 86px;
  position: relative;
  animation: floatGift 2.4s ease-in-out infinite;
}

.loader-box,
.loader-lid {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(150deg, #d8364f, #a8112f);
  box-shadow: 0 8px 20px rgba(164, 17, 47, 0.35);
}

.loader-lid {
  height: 30%;
  top: -9%;
  background: linear-gradient(150deg, #ffe8a4, #fdb931);
  animation: loaderLid 1.6s ease-in-out infinite;
}

.loader-ribbon-x,
.loader-ribbon-y {
  position: absolute;
  background: linear-gradient(180deg, #fff6d4, #ffd700);
}

.loader-ribbon-x {
  width: 15%;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.loader-ribbon-y {
  width: 100%;
  height: 15%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.top-frame {
  width: min(1340px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 6;
}

.wreath-crown {
  width: 100%;
  height: 68px;
  border: 2px solid rgba(22, 91, 51, 0.3);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(22, 91, 51, 0.14), transparent 34%),
    radial-gradient(circle at 38% 55%, rgba(22, 91, 51, 0.2), transparent 32%),
    radial-gradient(circle at 66% 52%, rgba(22, 91, 51, 0.16), transparent 32%),
    radial-gradient(circle at 88% 50%, rgba(22, 91, 51, 0.18), transparent 34%);
  position: relative;
  overflow: hidden;
  animation: breathe 6s ease-in-out infinite;
}

.wreath-crown .berry {
  position: absolute;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-700);
  box-shadow: 0 0 0 2px rgba(255, 245, 245, 0.7), 0 0 10px rgba(227, 24, 55, 0.4);
}

.wreath-crown .berry:nth-child(1) {
  left: 16%;
}

.wreath-crown .berry:nth-child(2) {
  left: 34%;
}

.wreath-crown .berry:nth-child(3) {
  left: 62%;
}

.wreath-crown .berry:nth-child(4) {
  left: 82%;
}

.crown-star {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 62% 38%, 100% 38%, 69% 58%, 80% 100%, 50% 74%, 20% 100%, 31% 58%, 0 38%, 38% 38%);
  background: linear-gradient(160deg, #fff0a7, #fdb931);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.65);
  animation: pulseStar 1.8s ease-in-out infinite;
}

.utility-bar {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.18), 0 0 14px rgba(255, 215, 0, 0.45);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  position: relative;
}

.control-btn,
.snow-control {
  border: 1px solid rgba(196, 30, 58, 0.26);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-900);
  border-radius: 999px;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

:root[data-theme="night"] .control-btn,
:root[data-theme="night"] .snow-control {
  background: rgba(255, 244, 230, 0.16);
  color: var(--text-900);
}

.control-btn {
  cursor: pointer;
}

.control-btn:hover,
.control-btn:focus-visible,
.snow-control:hover,
.snow-control:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.16);
  outline: none;
}

.snow-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

#snowRange {
  width: 80px;
  accent-color: var(--red-700);
  cursor: pointer;
}

#snowValue {
  min-width: 2.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(139, 69, 19, 0.86);
}

.share-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 40px));
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(196, 30, 58, 0.22);
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  z-index: 40;
}

.share-popover.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

:root[data-theme="night"] .share-popover {
  background: rgba(42, 20, 18, 0.92);
  border-color: rgba(255, 215, 0, 0.34);
}

.share-title {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #7a4f3b;
  margin-bottom: 10px;
}

.share-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.share-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(196, 30, 58, 0.24);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-900);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

:root[data-theme="night"] .share-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.28);
  color: #ffe8ce;
}

.share-link:hover,
.share-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.76);
  box-shadow: 0 8px 18px rgba(255, 215, 0, 0.18);
  outline: none;
}

.share-copy {
  width: 100%;
  margin-top: 10px;
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(196, 30, 58, 0.3);
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), rgba(255, 215, 0, 0.14));
  color: var(--text-900);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

:root[data-theme="night"] .share-copy {
  border-color: rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.28), rgba(255, 215, 0, 0.2));
  color: #ffe8ce;
}

.share-copy:hover,
.share-copy:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.18);
  outline: none;
}

.hero {
  width: min(1240px, 100%);
  margin: 40px auto 0;
  display: grid;
  gap: 34px;
  justify-items: center;
  position: relative;
  z-index: 4;
}

.parallax {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.intro {
  text-align: center;
  max-width: 920px;
}

.kicker {
  font-family: "Cinzel", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-700);
}

.intro h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.65rem, 7.2vw, 5.7rem);
  line-height: 1.02;
  margin-top: 16px;
  color: var(--red-700);
  text-shadow: 0 8px 18px rgba(196, 30, 58, 0.18);
}

:root[data-theme="night"] .intro h1 {
  color: #ffe8ce;
  text-shadow: 0 8px 18px rgba(255, 215, 0, 0.24);
}

.subtitle {
  margin: 16px auto 0;
  max-width: 860px;
  line-height: 1.5;
  font-size: clamp(1.04rem, 2.05vw, 1.24rem);
  color: var(--text-700);
}

.countdown-panel {
  width: min(1160px, 100%);
  padding: 34px 10px 24px;
  position: relative;
  overflow: visible;
}

:root[data-theme="night"] .countdown-panel {
  background: transparent;
}

.countdown-panel::before {
  content: none;
}

.countdown-panel::after {
  content: none;
}

.light-string {
  position: relative;
  width: min(820px, 100%);
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  opacity: 0.88;
}

.light-string::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(120, 70, 40, 0.24), rgba(120, 70, 40, 0.5), rgba(120, 70, 40, 0.24));
}

.light-string span {
  width: 14px;
  height: 20px;
  border-radius: 8px 8px 12px 12px;
  position: relative;
  animation: bulbBlink var(--light-speed) ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.36));
}

.light-string span::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(86, 58, 36, 0.9);
}

.light-string span:nth-child(4n + 1) {
  background: linear-gradient(170deg, #fff8f8, #ffffff);
}

.light-string span:nth-child(4n + 2) {
  animation-delay: 0.5s;
  background: linear-gradient(170deg, #ffd8df, #e31837);
}

.light-string span:nth-child(4n + 3) {
  animation-delay: 1s;
  background: linear-gradient(170deg, #e2ffe2, #228b22);
}

.light-string span:nth-child(4n) {
  animation-delay: 1.5s;
  background: linear-gradient(170deg, #fff2bb, #ffd700);
}

.countdown-grid {
  --digit-size: clamp(3.1rem, 8.6vw, 6rem);
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  width: min(1020px, 100%);
  margin-inline: auto;
  gap: 16px;
  align-items: end;
  position: relative;
  z-index: 1;
}

.flip-card {
  position: relative;
  padding: 0;
  min-height: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.flip-card:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 12px rgba(255, 215, 0, 0.16));
}

.flip-card.active {
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.36));
}

.flip-card:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -10px;
  top: 19%;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  line-height: 1;
  color: rgba(196, 30, 58, 0.42);
  pointer-events: none;
}

:root[data-theme="night"] .flip-card:not(:last-child)::after {
  color: rgba(255, 223, 184, 0.62);
}

.card-shimmer {
  display: none;
}

.number-stage {
  position: relative;
  font-size: var(--digit-size);
  width: auto;
  min-width: 2.62em;
  height: 1.24em;
  z-index: 1;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.flip-card[data-unit="days"] .number-stage {
  min-width: 3.9em;
}

:root[data-theme="night"] .number-stage {
  background: transparent;
}

.number-stage::before {
  content: none;
}

.number-stage::after {
  content: none;
}

.number-current,
.number-next {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 1em;
  line-height: 1.05;
  color: var(--digit-color);
  text-shadow: 0 4px 14px rgba(227, 24, 55, 0.22), 0 0 24px rgba(255, 215, 0, 0.12);
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0;
  will-change: transform, opacity;
}

:root[data-theme="night"] .number-current,
:root[data-theme="night"] .number-next {
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.34), 0 0 20px rgba(255, 215, 0, 0.28);
}

.number-current {
  transform: translateY(0);
  opacity: 1;
}

.number-next {
  transform: translateY(20%);
  opacity: 0;
}

.flip-card.tick .number-current {
  animation: digitSlideOut 0.26s cubic-bezier(0.23, 0.83, 0.25, 1) both;
}

.flip-card.tick .number-next {
  animation: digitSlideIn 0.26s cubic-bezier(0.2, 0.86, 0.28, 1) both;
}

.flip-card.tick .number-stage {
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.34));
}

.unit {
  margin-top: 2px;
  text-align: center;
  font-family: "Cinzel", serif;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-size: 0.69rem;
  color: var(--text-700);
  padding: 0;
  border: none;
  background: transparent;
}

:root[data-theme="night"] .unit {
  color: var(--text-700);
}

.meta-info {
  margin-top: 28px;
  text-align: center;
  display: grid;
  gap: 8px;
  color: var(--text-700);
  font-size: 0.96rem;
}

.meta-info p {
  text-wrap: balance;
}

.countdown-seo-copy {
  max-width: 860px;
  margin: 2px auto 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-500);
}

.decor-stage {
  width: min(1300px, 100%);
  min-height: 332px;
  margin: 38px auto 0;
  position: relative;
  z-index: 5;
}

.tree-wrap {
  position: absolute;
  bottom: 26px;
  width: clamp(132px, 18.5vw, 224px);
}

.tree-wrap.left {
  left: 0;
}

.tree-wrap.right {
  right: 0;
  transform: scaleX(-1) translate3d(var(--tx, 0px), var(--ty, 0px), 0);
}

.tree-svg {
  width: 100%;
  filter: drop-shadow(0 12px 16px rgba(97, 51, 33, 0.2));
  animation: sway 5.5s ease-in-out infinite;
}

.tree-bauble {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  animation: baubleGlow 2.5s ease-in-out infinite;
}

.tree-bauble.flash {
  animation: baubleFlash 0.5s ease;
}

.ornament-row {
  width: min(540px, 100%);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  padding-top: 26px;
}

.ornament-btn {
  border: 1px solid rgba(196, 30, 58, 0.2);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 16px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

:root[data-theme="night"] .ornament-btn {
  background: rgba(255, 240, 228, 0.14);
}

.ornament-btn svg {
  width: 64%;
  height: 64%;
}

.ornament-btn:hover,
.ornament-btn:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.18);
  outline: none;
}

.ornament-btn.bell.ringing {
  animation: bellRing 0.7s ease;
}

.gift-row {
  width: min(780px, 100%);
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.gift {
  position: relative;
  width: clamp(66px, 8vw, 90px);
  height: clamp(66px, 8vw, 90px);
  border-radius: 10px;
  box-shadow: 0 12px 18px rgba(120, 37, 56, 0.2);
  animation: floatGift 5s ease-in-out infinite;
}

.gift::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 14%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6d8, #ffd700);
}

.gift::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 14%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6d8, #ffd700);
}

.gift span {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.gift-a,
.gift-d {
  background: linear-gradient(155deg, #d9304b, #ad1a35);
}

.gift-b,
.gift-e {
  background: linear-gradient(155deg, #2b8a53, #165b33);
}

.gift-c,
.gift-f {
  background: linear-gradient(155deg, #f4be3f, #d79b1f);
}

.gift-b,
.gift-e {
  animation-delay: -1.1s;
}

.gift-c,
.gift-f {
  animation-delay: -2.2s;
}

.celebration {
  width: min(920px, 100%);
  margin: 28px auto 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  position: relative;
  z-index: 7;
}

.celebration h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 6vw, 4rem);
  color: var(--red-700);
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
}

:root[data-theme="night"] .celebration h2 {
  color: #fff4dd;
}

.celebration p {
  font-size: 1rem;
  color: var(--text-700);
}

.celebration-gift {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 8px;
  transform-style: preserve-3d;
}

.celebration-gift .gift-box,
.celebration-gift .gift-lid {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, #d9304b, #ad1a35);
  box-shadow: 0 10px 20px rgba(120, 20, 44, 0.26);
}

.celebration-gift .gift-lid {
  height: 30%;
  top: -6%;
  background: linear-gradient(160deg, #ffe7a2, #fdb931);
}

.celebration-gift .ribbon-x,
.celebration-gift .ribbon-y {
  position: absolute;
  background: linear-gradient(180deg, #fff7dd, #ffd700);
  z-index: 2;
}

.celebration-gift .ribbon-x {
  width: 14%;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.celebration-gift .ribbon-y {
  width: 100%;
  height: 14%;
  top: 50%;
  transform: translateY(-50%);
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(196, 30, 58, 0.28);
  background: rgba(255, 255, 255, 0.65);
  color: var(--red-900);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 12;
}

:root[data-theme="night"] .back-top {
  background: rgba(255, 225, 196, 0.2);
  color: #fff3dc;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover,
.back-top:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.section-block {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 84px 20px;
  position: relative;
  z-index: 4;
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  color: var(--red-700);
  line-height: 1.08;
}

.section-header p {
  margin-top: 12px;
  font-size: 1.02rem;
  color: var(--text-700);
  line-height: 1.7;
}

.header-stars {
  margin-top: 16px;
  display: inline-flex;
  gap: 12px;
  color: rgba(196, 30, 58, 0.72);
  letter-spacing: 0.3em;
}

.content-transition {
  width: min(1340px, 100%);
  margin: 20px auto 0;
  height: 106px;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.transition-wave {
  width: 100%;
  height: 100%;
  display: block;
}

.transition-wave path {
  fill: #ead5b8;
}

.snow-mound {
  position: absolute;
  bottom: 0;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 -4px 14px rgba(255, 255, 255, 0.4);
}

.snow-left {
  left: 6%;
  width: 180px;
  height: 36px;
}

.snow-mid {
  left: 42%;
  width: 240px;
  height: 42px;
}

.snow-right {
  right: 8%;
  width: 190px;
  height: 34px;
}

.transition-flake {
  position: absolute;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  animation: flakeDrift 6s ease-in-out infinite;
}

.transition-flake:nth-of-type(1) {
  left: 18%;
  top: 22%;
}

.transition-flake:nth-of-type(2) {
  left: 34%;
  top: 18%;
  animation-delay: -1.5s;
}

.transition-flake:nth-of-type(3) {
  right: 24%;
  top: 26%;
  animation-delay: -3s;
}

.transition-flake:nth-of-type(4) {
  right: 11%;
  top: 16%;
  animation-delay: -4.5s;
}

.timeline-section {
  padding-top: 74px;
}

.timeline-shell {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  padding: 14px 0 4px;
}

.timeline-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(196, 30, 58, 0.9) 0 10px,
    rgba(196, 30, 58, 0.4) 10px 18px
  );
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  margin-bottom: 56px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item.left .timeline-card {
  grid-column: 1;
}

.timeline-item.left .timeline-center {
  grid-column: 2;
}

.timeline-item.left .timeline-spacer {
  grid-column: 3;
}

.timeline-item.right .timeline-spacer {
  grid-column: 1;
}

.timeline-item.right .timeline-center {
  grid-column: 2;
}

.timeline-item.right .timeline-card {
  grid-column: 3;
}

.timeline-center {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.timeline-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--red-700);
  border: 4px solid var(--cream-150);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  display: grid;
  align-content: center;
  justify-content: center;
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-badge::before,
.timeline-badge::after {
  content: "✦";
  position: absolute;
  color: var(--gold-500);
  font-size: 0.7rem;
}

.timeline-badge::before {
  left: -8px;
  top: 10px;
}

.timeline-badge::after {
  right: -8px;
  bottom: 12px;
}

.timeline-card {
  background: #fff;
  border-radius: 20px;
  border: 3px solid var(--red-700);
  min-height: 200px;
  padding: 24px 24px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-item.right .timeline-card::before,
.timeline-item.left .timeline-card::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 2px;
  background: var(--red-700);
}

.timeline-item.right .timeline-card::before {
  left: -42px;
}

.timeline-item.left .timeline-card::before {
  right: -42px;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(196, 30, 58, 0.22);
  z-index: 12;
}

.timeline-card:focus-visible {
  outline: none;
  border-color: #e31837;
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.22);
  z-index: 12;
}

.timeline-card:focus-within,
.timeline-card.is-open {
  z-index: 12;
}

.timeline-item:hover .timeline-badge {
  transform: rotate(5deg);
}

.timeline-corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.timeline-corner.c1 {
  left: 10px;
  top: 10px;
  background: var(--red-700);
}

.timeline-corner.c2 {
  right: 10px;
  top: 10px;
  background: var(--green-700);
}

.timeline-corner.c3 {
  left: 10px;
  bottom: 10px;
  background: var(--gold-700);
}

.timeline-corner.c4 {
  right: 10px;
  bottom: 10px;
  background: var(--red-400);
}

.timeline-icon {
  font-size: 1.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.timeline-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.timeline-title {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red-700);
}

.timeline-era {
  margin-top: 4px;
  color: #8b5d4b;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-desc {
  margin-top: 12px;
  color: #5a4a42;
  font-size: 0.98rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.timeline-details {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% + 10px);
  border-radius: 14px;
  border: 1px solid rgba(196, 30, 58, 0.22);
  background: rgba(255, 249, 241, 0.96);
  box-shadow: 0 8px 20px rgba(66, 28, 22, 0.12);
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.timeline-card:hover .timeline-details,
.timeline-card:focus-within .timeline-details,
.timeline-card.is-open .timeline-details {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.timeline-points {
  margin-top: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #624f45;
  font-size: 0.84rem;
  line-height: 1.45;
}

.timeline-points li::marker {
  color: var(--red-700);
}

.timeline-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(196, 30, 58, 0.26);
  background: rgba(196, 30, 58, 0.08);
  color: #9b223f;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customs-section {
  padding-top: 68px;
  background: linear-gradient(180deg, rgba(245, 230, 211, 0), #fef8f0 36%, #f5e6d3 100%);
  border-radius: 36px;
}

.customs-grid {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.customs-map-shell {
  width: 100%;
  max-width: 1060px;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.world-map-board {
  width: min(100%, 980px);
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.15), transparent 32%),
    radial-gradient(circle at 75% 82%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(160deg, rgba(8, 26, 56, 0.82), rgba(6, 20, 44, 0.9));
  border: 1px solid rgba(255, 215, 0, 0.5);
  backdrop-filter: blur(9px);
  box-shadow:
    inset 0 -24px 36px rgba(0, 0, 0, 0.24),
    0 20px 46px rgba(32, 17, 15, 0.2);
}

.world-map-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 8%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 12%
    );
  opacity: 0.5;
}

.world-map-svg {
  position: absolute;
  inset: 6% 4% 8%;
  width: 92%;
  height: 86%;
}

.world-map-svg path {
  fill: rgba(76, 171, 116, 0.9);
  stroke: rgba(215, 244, 232, 0.2);
  stroke-width: 3;
  filter: drop-shadow(0 4px 8px rgba(4, 18, 12, 0.28));
}

.world-map-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 74% 76%, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 4;
}

.map-marker .map-marker-ping,
.map-marker .map-marker-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.map-marker .map-marker-dot {
  width: 10px;
  height: 10px;
  background: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2), 0 0 16px rgba(255, 215, 0, 0.72), 0 0 26px rgba(255, 215, 0, 0.46);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.map-marker .map-marker-ping {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 215, 0, 0.78);
  opacity: 0;
  animation: markerPulse 2.3s ease-out infinite;
  animation-delay: var(--delay);
}

.map-marker:hover .map-marker-dot,
.map-marker:focus-visible .map-marker-dot,
.map-marker.active .map-marker-dot {
  transform: translate(-50%, -50%) scale(1.2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.28), 0 0 20px rgba(255, 215, 0, 0.82);
}

.map-marker:focus-visible {
  outline: none;
}

.map-tip {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(139, 69, 19, 0.86);
}

.custom-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.5);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.custom-popup-card {
  width: min(460px, 100%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: rgba(10, 18, 30, 0.68);
  border: 1px solid rgba(255, 215, 0, 0.62);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  color: #f9ede1;
  transform: scale(0.84);
  opacity: 0;
  max-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  transition: transform 0.34s cubic-bezier(0.2, 0.84, 0.22, 1), opacity 0.34s ease;
}

.custom-popup-overlay.show .custom-popup-card {
  transform: scale(1);
  opacity: 1;
}

.custom-popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.custom-popup-media {
  height: 180px;
  background: linear-gradient(135deg, #b22234, #3c3b6e);
  position: relative;
}

.custom-popup-media::before {
  content: "Christmas Scene";
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.custom-popup-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
}

.custom-popup-body {
  padding: 20px 22px 24px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.45) transparent;
}

.custom-popup-country-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-popup-flag {
  font-size: 2rem;
  line-height: 1;
}

.custom-popup-country-row h3 {
  color: #fff;
  font-size: 1.44rem;
  line-height: 1.2;
}

#customPopupDesc {
  margin-top: 12px;
  color: rgba(249, 237, 225, 0.9);
  line-height: 1.68;
  font-size: 0.93rem;
}

.custom-popup-quick {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 11px;
}

.quick-item span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 226, 179, 0.82);
}

.quick-item strong {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  line-height: 1.36;
  color: rgba(255, 250, 244, 0.95);
  font-weight: 600;
}

.custom-popup-details {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.custom-popup-detail {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 11px;
}

.custom-popup-detail h4 {
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 226, 179, 0.92);
}

.custom-popup-detail p {
  margin-top: 6px;
  color: rgba(248, 236, 222, 0.94);
  font-size: 0.84rem;
  line-height: 1.45;
}

.custom-popup-body::-webkit-scrollbar {
  width: 8px;
}

.custom-popup-body::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.36);
  border-radius: 999px;
}

.custom-popup-body::-webkit-scrollbar-track {
  background: transparent;
}

.music-box-section {
  padding-top: 92px;
}

.music-shell {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  padding: 44px 34px 34px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(196, 30, 58, 0.7);
}

.gramophone-stage {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  position: relative;
}

.gramophone-base {
  position: absolute;
  width: 280px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(180deg, #8b5a2b, #5b3418);
  bottom: 24px;
  box-shadow: 0 10px 24px rgba(91, 52, 24, 0.3);
}

.gramophone-horn {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  right: 70px;
  top: 10px;
  background: radial-gradient(circle at 35% 35%, #f4c430, #c99520 76%);
  box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.16);
}

.gramophone-arm {
  position: absolute;
  width: 120px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4c430, #c99520);
  right: 194px;
  top: 160px;
  transform-origin: right center;
  transform: rotate(-24deg);
  transition: transform 0.35s ease;
}

.gramophone-arm.playing {
  transform: rotate(-8deg);
}

.record-disc {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid var(--red-700);
  background:
    radial-gradient(circle at 50% 50%, #1a1a1a 0 32%, #000 32% 100%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.06) 0deg 2deg, rgba(0, 0, 0, 0.95) 2deg 5deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  display: grid;
  place-items: center;
}

.record-disc.spinning {
  animation: spinRecord 4s linear infinite;
}

.record-label {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid var(--red-700);
  background: var(--cream-150);
  color: var(--red-700);
  display: grid;
  place-items: center;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.music-control-row {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.music-btn {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.music-btn.primary {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
  background: var(--red-700);
}

.music-btn.secondary {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  background: #cf2c49;
}

.music-btn:hover,
.music-btn:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(196, 30, 58, 0.4);
  outline: none;
}

.music-progress-wrap {
  margin-top: 18px;
}

#musicTimeLabel {
  display: block;
  text-align: center;
  color: var(--text-700);
  font-size: 0.9rem;
}

.music-progress-bar {
  margin-top: 8px;
  height: 6px;
  background: #f1ded4;
  border-radius: 999px;
  overflow: hidden;
}

#musicProgressFill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-700), #f46b7a);
  transition: width 0.25s linear;
}

.volume-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#musicVolume {
  width: min(320px, 72vw);
  accent-color: var(--red-700);
}

.playlist {
  margin-top: 20px;
  display: grid;
  gap: 0.8rem;
}

.track-item {
  width: 100%;
  height: 60px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(196, 30, 58, 0.05);
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.track-item:hover,
.track-item:focus-visible {
  border-color: var(--red-700);
  transform: translateY(-1px);
  outline: none;
}

.track-item.active {
  background: rgba(196, 30, 58, 0.16);
}

.track-order {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(196, 30, 58, 0.15);
  color: var(--red-700);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.track-main {
  display: grid;
  gap: 2px;
}

.track-main strong {
  color: var(--red-700);
  font-size: 0.97rem;
}

.track-main em {
  color: #5a4a42;
  font-size: 0.82rem;
  font-style: normal;
}

.track-duration {
  color: #8b8b8b;
  font-size: 0.88rem;
}

.track-bars {
  width: 18px;
  height: 16px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  opacity: 0;
}

.track-item.active.playing .track-bars {
  opacity: 1;
}

.track-bars i {
  width: 4px;
  border-radius: 2px;
  background: var(--red-700);
  animation: waveBars 0.85s ease-in-out infinite;
}

.track-bars i:nth-child(1) {
  height: 6px;
}

.track-bars i:nth-child(2) {
  height: 12px;
  animation-delay: 0.1s;
}

.track-bars i:nth-child(3) {
  height: 8px;
  animation-delay: 0.2s;
}

.diy-section {
  padding-top: 92px;
}

.diy-wall {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 18px;
}

.diy-coming {
  column-span: all;
  break-inside: avoid;
  max-width: 920px;
  margin: 0 auto 18px;
  padding: 32px 28px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(196, 30, 58, 0.18);
  background: linear-gradient(145deg, #fffdf9, #fff6ef);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.diy-coming strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  color: var(--red-700);
  letter-spacing: 0.02em;
}

.diy-coming p {
  margin: 10px auto 0;
  max-width: 680px;
  color: #6d4a39;
  line-height: 1.7;
  font-size: 0.99rem;
}

.diy-card {
  break-inside: avoid;
  background: #fff;
  border-radius: 15px;
  margin-bottom: 18px;
  border: 1px solid rgba(196, 30, 58, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.diy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(196, 30, 58, 0.16);
}

.diy-open {
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.diy-cover {
  position: relative;
  height: var(--cover-h, 188px);
  background: var(--cover);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 13px;
}

.diy-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
}

.diy-cover-icon,
.diy-cover-type {
  position: relative;
  z-index: 1;
}

.diy-cover-icon {
  font-size: 1.75rem;
}

.diy-cover-type {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 8px;
}

.diy-content {
  padding: 12px 13px 8px;
}

.diy-content h3 {
  color: var(--red-700);
  font-size: 0.98rem;
  line-height: 1.42;
  min-height: 2.84em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.diy-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px 13px;
}

.diy-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.74rem;
  color: #7a4f3b;
  background: #fff6ef;
  border: 1px solid rgba(196, 30, 58, 0.16);
}

.diy-fav {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(196, 30, 58, 0.24);
  background: #fff;
  color: #ca566c;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.diy-fav:hover,
.diy-fav:focus-visible {
  transform: scale(1.08);
  outline: none;
  border-color: rgba(196, 30, 58, 0.45);
}

.diy-fav.active {
  background: rgba(196, 30, 58, 0.12);
  color: #c41e3a;
  border-color: rgba(196, 30, 58, 0.5);
}

.diy-modal {
  position: fixed;
  inset: 0;
  z-index: 155;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 10, 18, 0.55);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.diy-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.diy-modal-card {
  width: min(680px, 100%);
  max-height: min(88vh, 820px);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(196, 30, 58, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.84, 0.22, 1), opacity 0.32s ease;
}

.diy-modal.show .diy-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.diy-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.diy-modal-media {
  height: 220px;
  background: linear-gradient(145deg, #2d5016, #f4c430);
  position: relative;
}

.diy-modal-media::before {
  content: "DIY Tutorial";
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.94);
}

.diy-modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22));
}

.diy-modal-body {
  padding: 20px 24px 24px;
  overflow: auto;
}

.diy-modal-category {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(196, 30, 58, 0.1);
  border: 1px solid rgba(196, 30, 58, 0.24);
  color: #9f223e;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diy-modal-body h3 {
  margin-top: 10px;
  color: var(--red-700);
  font-size: 1.42rem;
  line-height: 1.24;
}

.diy-modal-meta {
  margin-top: 8px;
  color: #7e5a47;
  font-size: 0.9rem;
}

.diy-modal-desc {
  margin-top: 10px;
  color: #5a4a42;
  line-height: 1.62;
  font-size: 0.95rem;
}

.diy-modal-steps {
  margin-top: 14px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.diy-modal-steps li {
  color: #5d4d44;
  line-height: 1.5;
  font-size: 0.9rem;
}

.diy-modal-steps li::marker {
  color: var(--red-700);
  font-weight: 600;
}

.surprise-section {
  padding-bottom: 110px;
}

.surprise-inner {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 36px;
  background: radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.08), transparent 36%), #2d5016;
  color: #f5e6d3;
  padding: 58px 24px 62px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.surprise-inner h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #f5e6d3;
}

.surprise-inner p {
  margin-top: 10px;
  color: rgba(245, 230, 211, 0.86);
}

.surprise-gift {
  margin-top: 22px;
  width: 200px;
  height: 200px;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
  animation: giftFloat 2.8s ease-in-out infinite;
}

.surprise-gift span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.surprise-gift .gift-body {
  width: 160px;
  height: 120px;
  bottom: 20px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(150deg, #c41e3a, #9f122d);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.surprise-gift .gift-top {
  width: 174px;
  height: 42px;
  top: 44px;
  border-radius: 14px;
  background: linear-gradient(150deg, #dc3652, #b91935);
}

.surprise-gift .gift-ribbon-x {
  width: 22px;
  height: 164px;
  top: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe18f, #f4c430);
}

.surprise-gift .gift-ribbon-y {
  width: 170px;
  height: 20px;
  top: 88px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe18f, #f4c430);
}

.surprise-gift.opened {
  animation: giftOpenPop 0.65s ease;
}

.surprise-gift.opened .gift-top {
  transform: translateX(-50%) translateY(-24px) rotate(-10deg);
}

.surprise-tip {
  margin-top: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.faq-section {
  padding-top: 64px;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(196, 30, 58, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

:root[data-theme="night"] .faq-item {
  background: rgba(255, 244, 230, 0.12);
  border-color: rgba(255, 215, 0, 0.24);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  padding-right: 52px;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--red-700);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, #d62e4b, #a91632);
  box-shadow: 0 6px 14px rgba(196, 30, 58, 0.3);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-700);
  line-height: 1.7;
  font-size: 0.98rem;
}

.surprise-spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd86f;
  pointer-events: none;
  animation: surpriseSpark 0.9s ease-out forwards;
}

.surprise-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  padding: 20px;
}

.surprise-modal.show {
  opacity: 1;
  visibility: visible;
}

.surprise-card {
  width: min(420px, 100%);
  min-height: 300px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 28px 26px 24px;
  text-align: center;
  position: relative;
  animation: popIn 0.35s ease;
}

.surprise-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: #7b5d4b;
  cursor: pointer;
}

.surprise-card-icon {
  font-size: 2.4rem;
}

.surprise-card h3 {
  margin-top: 8px;
  color: var(--red-700);
  font-size: 1.35rem;
}

.surprise-card p {
  margin-top: 12px;
  color: #5a4a42;
  line-height: 1.7;
  font-size: 0.98rem;
}

.surprise-again {
  margin-top: 18px;
  border: none;
  border-radius: 999px;
  background: var(--red-700);
  color: #fff;
  padding: 11px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.35);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .customs-grid {
    min-height: 520px;
  }

  .world-map-board {
    width: min(100%, 860px);
  }

  .diy-wall {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .section-block {
    padding: 62px 14px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .timeline-shell::before {
    left: 30px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 74px 1fr;
    margin-bottom: 42px;
  }

  .timeline-item .timeline-center {
    grid-column: 1;
  }

  .timeline-item .timeline-card {
    grid-column: 2;
  }

  .timeline-item .timeline-spacer {
    display: none;
  }

  .timeline-badge {
    width: 60px;
    height: 60px;
    font-size: 0.7rem;
  }

  .timeline-card {
    min-height: 0;
    width: calc(100% - 4px);
    padding: 18px 16px;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-era {
    font-size: 0.7rem;
  }

  .timeline-desc {
    font-size: 0.9rem;
    line-height: 1.56;
    -webkit-line-clamp: 2;
  }

  .timeline-details {
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    padding: 9px 10px;
  }

  .timeline-points {
    font-size: 0.8rem;
    line-height: 1.42;
    gap: 5px;
  }

  .timeline-tags span {
    font-size: 0.6rem;
    padding: 3px 7px;
  }

  .timeline-item.left .timeline-card::before,
  .timeline-item.right .timeline-card::before {
    left: -28px;
    right: auto;
    width: 26px;
  }

  .customs-grid {
    min-height: 420px;
  }

  .world-map-board {
    border-radius: 20px;
  }

  .map-tip {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .map-marker {
    width: 22px;
    height: 22px;
  }

  .custom-popup-overlay {
    padding: 14px;
  }

  .custom-popup-media {
    height: 152px;
  }

  .custom-popup-body {
    padding: 16px 16px 20px;
  }

  .custom-popup-country-row h3 {
    font-size: 1.2rem;
  }

  .custom-popup-quick {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .custom-popup-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .diy-wall {
    column-count: 2;
    column-gap: 14px;
  }

  .diy-card {
    margin-bottom: 14px;
  }

  .diy-cover-type {
    font-size: 0.6rem;
    padding: 3px 7px;
  }

  .diy-content h3 {
    font-size: 0.92rem;
  }

  .diy-pill {
    height: 24px;
    font-size: 0.68rem;
    padding: 0 8px;
  }

  .diy-fav {
    width: 30px;
    height: 30px;
    font-size: 0.92rem;
  }

  .diy-modal {
    padding: 14px;
  }

  .diy-modal-media {
    height: 170px;
  }

  .diy-modal-body {
    padding: 16px 16px 18px;
  }

  .diy-modal-body h3 {
    font-size: 1.2rem;
  }

  .diy-modal-desc,
  .diy-modal-steps li {
    font-size: 0.86rem;
  }

  .music-shell {
    padding: 28px 16px 22px;
    border-radius: 24px;
  }

  .gramophone-stage {
    min-height: 230px;
  }

  .gramophone-base {
    width: 220px;
    height: 60px;
  }

  .gramophone-horn {
    width: 110px;
    height: 110px;
    right: 36px;
    top: 22px;
  }

  .gramophone-arm {
    right: 138px;
    top: 146px;
  }

  .record-disc {
    width: 176px;
    height: 176px;
  }

  .track-item {
    grid-template-columns: 36px 1fr auto;
    padding: 0 10px;
    gap: 8px;
  }

  .track-bars {
    display: none;
  }

  .surprise-inner {
    border-radius: 26px;
    padding: 42px 16px 48px;
  }

  .surprise-gift {
    width: 164px;
    height: 164px;
  }

  .surprise-gift .gift-body {
    width: 130px;
    height: 96px;
  }

  .surprise-gift .gift-top {
    width: 142px;
    height: 34px;
    top: 36px;
  }

  .surprise-gift .gift-ribbon-x {
    height: 132px;
  }

  .surprise-gift .gift-ribbon-y {
    width: 136px;
    top: 72px;
  }

  .faq-item summary {
    padding: 16px 16px;
    padding-right: 46px;
    font-size: 0.86rem;
  }

  .faq-item summary::after {
    right: 14px;
    width: 22px;
    height: 22px;
  }

  .faq-item p {
    padding: 0 16px 16px;
    font-size: 0.92rem;
  }
}

body.final-day {
  --light-speed: 1.5s;
  --digit-color: #daa520;
  --digit-shadow: 0 8px 20px rgba(255, 193, 7, 0.42);
}

body.final-day .countdown-panel {
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.28));
}

body.final-day .subtitle {
  color: #b86a28;
}

body.christmas-day .celebration {
  opacity: 1;
  transform: translateY(0);
}

body.christmas-day #celebrationGift {
  animation: popIn 0.8s ease forwards;
}

body.christmas-day #celebrationGift .gift-lid {
  animation: openGift 0.7s ease 0.35s forwards;
}

body.christmas-day #giftRow .gift {
  animation: cheerBounce 0.9s ease infinite;
}

@keyframes flakeDrift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-8px) rotate(16deg);
    opacity: 0.8;
  }
}

@keyframes globeFloaty {
  0%,
  100% {
    transform: translateY(0px) rotateX(9deg) rotateY(-7deg);
  }
  50% {
    transform: translateY(-10px) rotateX(11deg) rotateY(7deg);
  }
}

@keyframes globeSpinMap {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes markerPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.25);
    opacity: 0.92;
  }
  75% {
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

@keyframes spinRecord {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes waveBars {
  0%,
  100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1.3);
  }
}

@keyframes giftOpenPop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes surpriseSpark {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.95;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0);
    opacity: 0;
  }
}

@keyframes digitSlideOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-16%);
    opacity: 0;
  }
}

@keyframes digitSlideIn {
  0% {
    transform: translateY(20%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bulbBlink {
  0%,
  100% {
    opacity: 0.95;
    filter: brightness(1);
  }
  45% {
    opacity: 0.42;
    filter: brightness(0.7);
  }
}

@keyframes waveFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.08);
  }
}

@keyframes pulseStar {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.18);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(0.8deg);
  }
}

@keyframes baubleGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 7px rgba(255, 215, 0, 0.78));
  }
}

@keyframes baubleFlash {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.35);
    filter: brightness(1.4);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes floatGift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes loaderLid {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes openGift {
  0% {
    transform: rotateX(0deg) translateY(0);
  }
  100% {
    transform: rotateX(-85deg) translateY(-36px);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.65);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bellRing {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(4deg);
  }
}

@keyframes cheerBounce {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.06);
  }
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: inset 0 0 0 rgba(22, 91, 51, 0.12);
  }
  50% {
    box-shadow: inset 0 0 24px rgba(22, 91, 51, 0.22);
  }
}

@media (max-width: 1120px) {
  .hero {
    margin-top: 34px;
    gap: 26px;
  }

  .intro h1 {
    font-size: clamp(2.7rem, 8vw, 5.2rem);
  }

  .countdown-panel {
    padding: 32px 8px 24px;
  }

  .light-string {
    width: min(760px, 100%);
    margin-bottom: 24px;
  }

  .countdown-grid {
    --digit-size: clamp(2.9rem, 8.2vw, 5.2rem);
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    width: min(880px, 100%);
    gap: 12px;
  }

  .tree-wrap {
    width: clamp(124px, 18vw, 196px);
    bottom: 18px;
  }

  .decor-stage {
    min-height: 282px;
    margin-top: 26px;
  }
}

@media (max-width: 820px) {
  .site {
    padding: 18px 14px 30px;
  }

  .utility-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .controls {
    justify-content: center;
  }

  .share-popover {
    left: 50%;
    right: auto;
    width: min(340px, calc(100vw - 28px));
    transform: translate(-50%, -6px) scale(0.98);
  }

  .share-popover.show {
    transform: translate(-50%, 0) scale(1);
  }

  .hero {
    margin-top: 26px;
    gap: 22px;
  }

  .intro {
    max-width: 760px;
  }

  .intro h1 {
    font-size: clamp(2.3rem, 9.6vw, 4.2rem);
  }

  .subtitle {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .countdown-panel {
    padding: 24px 8px 18px;
  }

  .light-string {
    width: min(640px, 100%);
    margin-bottom: 20px;
  }

  .countdown-grid {
    --digit-size: clamp(2.5rem, 10.5vw, 4.2rem);
    width: min(720px, 100%);
    gap: 12px;
  }

  .flip-card {
    padding: 0;
  }

  .number-stage {
    min-width: 2.55em;
  }

  .flip-card[data-unit="days"] .number-stage {
    min-width: 3.7em;
  }

  .flip-card::after {
    display: none;
  }

  .ornament-row {
    width: min(400px, 100%);
    padding-top: 14px;
  }

  .tree-wrap {
    opacity: 0.9;
    width: clamp(94px, 14vw, 140px);
    bottom: 8px;
  }

  .gift-row {
    width: min(460px, 100%);
    margin-top: 18px;
    gap: 8px;
  }

  .meta-info {
    margin-top: 18px;
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .site {
    padding: 14px 10px 26px;
  }

  .hero {
    margin-top: 20px;
    gap: 18px;
  }

  .wreath-crown {
    height: 44px;
  }

  .kicker {
    font-size: 0.63rem;
    letter-spacing: 0.13em;
  }

  .subtitle {
    font-size: 0.94rem;
  }

  .countdown-grid {
    --digit-size: clamp(2.2rem, 15.2vw, 3.6rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .countdown-panel {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .flip-card {
    padding: 0;
  }

  .number-stage {
    min-width: 2.6em;
  }

  .flip-card[data-unit="days"] .number-stage {
    min-width: 3.7em;
  }

  .unit {
    margin-top: 0;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    padding: 0;
  }

  .meta-info {
    margin-top: 18px;
    font-size: 0.82rem;
  }

  .diy-wall {
    column-count: 1;
    column-gap: 0;
  }

  .tree-wrap {
    display: none;
  }

  .ornament-row {
    grid-template-columns: repeat(4, minmax(56px, 1fr));
    gap: 8px;
  }

  .gift-row {
    margin-top: 16px;
    gap: 6px;
  }

  .gift {
    width: 52px;
    height: 52px;
  }

  .control-btn,
  .snow-control {
    font-size: 0.64rem;
    padding: 8px 9px;
  }

  #snowRange {
    width: 58px;
  }
}

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

  .parallax {
    transform: none !important;
  }
}
