/* Christmas layer for Belukha Baltics: intro (snow, garland, trees, NOS 173) + light decor across the app */
#xSnow{ position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; transition:opacity .8s; }
body.x-app #xSnow{ opacity:.55; }

/* ---- garland (intro: top of screen; app: hangs under the header) */
.xGarland{ position:fixed; left:0; right:0; top:0; height:70px; z-index:2; pointer-events:none; }
.xGarland svg{ position:absolute; inset:0; width:100%; height:100%; }
.xGarland .bulb{ position:absolute; width:9px; height:14px; border-radius:50% 50% 45% 45%;
  transform:translate(-50%,0) rotate(var(--r)); animation:xTwinkle 1.8s ease-in-out infinite alternate; }
.xGarland .bulb::before{ content:""; position:absolute; left:2px; top:-4px; width:5px; height:5px; background:#2b3038; border-radius:1px; }
.app-header{ position:relative; }
.app-header .xGarland{ position:absolute; top:auto; bottom:-36px; height:40px; z-index:3; }
.app-header .xGarland .bulb{ width:7px; height:11px; }
@keyframes xTwinkle{ from{ opacity:.35; box-shadow:none; } to{ opacity:1; box-shadow:0 0 12px 3px currentColor; } }

/* ---- ridge: snow caps + little lit pines */
#xCaps{ position:fixed; left:0; right:0; bottom:0; height:26vh; z-index:0; pointer-events:none; opacity:.8; }
#xCaps svg{ width:100%; height:100%; display:block; }
.xTree{ position:fixed; z-index:0; pointer-events:none; transform:translateX(-50%); }
.xTree i{ position:absolute; width:3px; height:3px; border-radius:50%; animation:xTwinkle 1.4s ease-in-out infinite alternate; }

/* ---- snowy road */
#xRoad{ position:fixed; left:0; right:0; bottom:0; height:9vh; z-index:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(238,241,244,.16), rgba(238,241,244,.05)); }
#xRoad::before{ content:""; position:absolute; left:0; right:0; top:-6px; height:12px; border-radius:50%;
  background:rgba(238,241,244,.22); filter:blur(3px); }

/* ---- Santa hats on every Belukha logo */
.xHatWrap{ position:relative; display:inline-block; line-height:0; }
.xHat{ position:absolute; pointer-events:none; width:34%; right:16%; top:8%; transform:rotate(16deg);
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

/* ---- snow on the enter button, cards and login card */
.xBtnWrap{ position:relative; display:inline-block; }
.xBtnSnow{ position:absolute; left:12%; right:8%; top:-5px; height:9px; pointer-events:none; z-index:2;
  background:#eef1f4; border-radius:50% 50% 35% 35% / 100% 100% 25% 25%; opacity:.9;
  box-shadow:0 1px 2px rgba(0,0,0,.45); }
.xGreet{ font-family:var(--font-mono, monospace); font-size:11px; letter-spacing:.32em; text-transform:uppercase;
  color:var(--accent, #7fd8ff); text-shadow:0 0 14px var(--accent-glow, rgba(127,216,255,.3)); margin-top:-14px; }
.stat-tile, .warehouse-card{ position:relative; }
.stat-tile::before, .warehouse-card::before, .login-card::before{
  content:""; position:absolute; left:0; right:0; top:0; height:9px; pointer-events:none; z-index:1;
  background:
    radial-gradient(ellipse at 50% 0, rgba(238,241,244,.85) 45%, transparent 47%) 0 0/46px 18px repeat-x,
    linear-gradient(rgba(238,241,244,.5), rgba(238,241,244,0));
  opacity:.75; }

/* ---- NOS 173 (side sprite + spinning wheels on the measured hub centres + Christmas decorations) */
.nosCar{ position:fixed; aspect-ratio:1600/560; pointer-events:none; will-change:transform; transition:opacity .5s; }
.nosCar img, .nosCar svg{ position:absolute; display:block; user-select:none; -webkit-user-drag:none; }
.nosCar .body, .nosCar .deco{ inset:0; width:100%; height:100%; }
.nosCar .deco{ overflow:visible; }
.nosCar .wheel{ width:12.99%; height:37.13%; top:63.23%; }
.nosCar .wheel.rear{ left:19.56%; } .nosCar .wheel.front{ left:75.31%; }
.nosCar .shadow{ position:absolute; left:6%; right:4%; bottom:-3%; height:9%; border-radius:50%;
  background:radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
/* xenon beam from the projected projector (93–96 % across, 63.8 % down), falling to the road */
.nosCar .beam{ position:absolute; left:94%; top:58%; width:60%; height:40%; opacity:0;
  background:linear-gradient(90deg, rgba(235,243,255,.45), rgba(235,243,255,.12) 55%, rgba(235,243,255,0));
  clip-path:polygon(0 8%, 100% 30%, 100% 100%, 0 22%); filter:blur(10px); transition:opacity .4s; }
.nosCar .beam::before{ content:""; position:absolute; left:-2%; top:2%; width:9%; height:26%; border-radius:50%;
  background:radial-gradient(closest-side, rgba(255,255,255,.95), rgba(220,235,255,0)); }
.nosCar .tail{ position:absolute; left:5%; top:50%; width:10%; height:16%; border-radius:50%; opacity:.2;
  background:radial-gradient(closest-side, rgba(255,40,20,.95), transparent); filter:blur(4px); transition:opacity .3s; }
.nosCar.on .beam, .nosCar.on .tail{ opacity:1; }
.nosCar.gone{ opacity:0; }
.nosCar .nose, #nosPark .nose{ animation:xNose 1.1s ease-in-out infinite alternate; transform-origin:1580px 395px; }
@keyframes xNose{ from{ opacity:.75 } to{ opacity:1 } }
.nosCar .roofLights circle, #nosPark .roofLights circle{ animation:xTwinkle 1.2s ease-in-out infinite alternate; }

#nosCar{ left:50%; bottom:calc(9vh - 1.6vw); width:min(56vw, 620px); transform:translateX(-50%); z-index:0; }
/* parked on the site after the intro, seen from the front: behind the panels, never blocks clicks.
   car_front.png is 1000×640 with the car at x 28–72 %, bottom at 76 %: the offsets crop that empty margin */
#nosPark{ position:fixed; --w:min(44vw, 460px); width:var(--w); aspect-ratio:1000/640; right:calc(var(--w) * -0.25 + 18px);
  bottom:calc(var(--w) * -0.12); z-index:0; pointer-events:none; display:none; }
#nosPark img, #nosPark svg{ position:absolute; inset:0; width:100%; height:100%; }
#nosPark .nose{ transform-origin:500px 351px; }
body.x-app #nosPark{ display:block; }

.xPuff{ position:fixed; width:40px; height:40px; border-radius:50%; pointer-events:none; z-index:59;
  background:radial-gradient(closest-side, rgba(220,228,240,.5), transparent); animation:xPuff 1.3s ease-out forwards; }
@keyframes xPuff{ from{ transform:translate(0,0) scale(.4); opacity:.9 } to{ transform:translate(-110px,-45px) scale(2.6); opacity:0 } }


/* the intro car/road/garland belong to the intro only */
body.x-app #nosCar, body.x-app #xRoad, body.x-app > .xGarland{ display:none; }  /* ridge caps + pines stay with the ridge */

@media (prefers-reduced-motion: reduce){ .xGarland .bulb, .xTree i, .nosCar .nose, .nosCar .roofLights circle{ animation:none; opacity:.85; } }
@media (max-height:560px){ #nosCar{ width:min(40vw,420px); } }
