:root {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #f5e0e7;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}
.jar-scene {
  position: relative;
  width: 420px;
  height: 680px;
  isolation: isolate;
  overflow: hidden;
  transform-origin: top left;
}
.aura {
  position: absolute;
  inset: 155px 15px 95px;
  background: radial-gradient(ellipse, #e5b1ce22, transparent 70%);
  pointer-events: none;
}
.jar-assembly {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 620px;
  transform-origin: 210px 530px;
}
.jar-back,
.jar-front {
  position: absolute;
  inset: 0;
  width: 420px;
  height: 620px;
  pointer-events: none;
}
.jar-back {
  z-index: 1;
}
.jar-front {
  z-index: 5;
}
.glass-body {
  fill: url(#glass);
}
.inner-floor {
  fill: #efd6e122;
  stroke: #fff0dd99;
  stroke-width: 1.2;
}
.mouth-back {
  fill: #241f2270;
  stroke: #ffe7cfc9;
  stroke-width: 1.6;
}
.body-edge-shadow {
  fill: none;
  stroke: #39232c80;
  stroke-width: 6;
  stroke-linejoin: round;
}
.body-outline {
  fill: none;
  stroke: #fff0dfed;
  stroke-width: 3;
  stroke-linejoin: round;
}
.glass-edge-inner {
  fill: none;
  stroke: #fff6ee52;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.glass-gloss {
  fill: none;
  stroke: #fff6ed94;
  stroke-width: 6;
  stroke-linecap: round;
}
.glass-gloss-soft {
  fill: none;
  stroke: #fff8ef70;
  stroke-width: 3.5;
  stroke-linecap: round;
}
.mouth-rim-shadow {
  fill: none;
  stroke: #39232c99;
  stroke-width: 5.5;
}
.mouth-rim {
  fill: #fff4e912;
  stroke: url(#metal);
  stroke-width: 3;
}
.necklace {
  fill: none;
  stroke: url(#metal);
  stroke-width: 2;
}
.bow path {
  fill: #dcb2c4;
  stroke: #ffe8db;
  stroke-width: 0.6;
}
.bow ellipse {
  fill: #f1d4cd;
  stroke: #fff0d9;
  stroke-width: 0.6;
}
.holly path {
  fill: #a6b29d88;
  stroke: #dce0c8;
  stroke-width: 0.6;
}
.holly circle {
  fill: #d8a0b0;
  stroke: #fff0df;
  stroke-width: 0.5;
}
.pedestal {
  fill: url(#base);
  stroke: #f5ddce;
  stroke-width: 0.9;
}
.pedestal-top {
  fill: #d5b1c750;
  stroke: #ffe8d0a6;
  stroke-width: 0.7;
}
.pedestal-trim {
  fill: none;
  stroke: url(#metal);
  stroke-width: 1;
}
.base-light {
  fill: #fff0cf;
  filter: drop-shadow(0 0 3px #ffd5aa77);
  opacity: 0.55;
  transition: opacity 0.8s;
}
.jar-scene.warm .base-light {
  opacity: 1;
  filter: drop-shadow(0 0 5px #ffdb9e);
}
.etched-star {
  fill: none;
  stroke: #ffe9d33d;
  stroke-width: 0.8;
}
.gifts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 28%,
    74% 28%,
    74% 35%,
    82% 40%,
    87% 48%,
    87% 74%,
    83% 82%,
    70% 87%,
    30% 87%,
    17% 82%,
    13% 74%,
    13% 48%,
    18% 40%,
    26% 35%,
    26% 28%,
    0 28%
  );
}
.gift-token {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  filter: drop-shadow(0 2px 2px #41223155);
  transform-origin: center;
  pointer-events: none;
}
.gift-token img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.effect-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}
.snow {
  position: absolute;
  inset: 150px 0 100px;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.4;
}
.warm .snow {
  opacity: 0.7;
}
.snow-dot {
  position: absolute;
  top: -6px;
  background: #fff5ed;
  border-radius: 50%;
  opacity: 0;
  animation: jar-snow linear infinite;
}
@keyframes jar-snow {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translate(20px, 430px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .snow-dot {
    display: none;
  }
}
/* El rebose se dibuja por fuera del cristal; nunca se recorta con la jarra. */
.overflow-gifts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.jar-scene.full .mouth-rim {
  filter: drop-shadow(0 0 5px #ffdfbc66);
}

.floor-plane {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 571px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff1e640, #d7afc81a 60%, transparent);
  border-top: 1px solid #ffe9d65c;
  filter: drop-shadow(0 0 6px #e7c0d322);
  pointer-events: none;
}
