﻿/* ===== New Year overlay (Dec 15 вЂ“ Jan 7) =====
   Activated by newyear.js when body.ny is present.
   Decorative only, does not affect layout or clicks. */

#ny-snow{
  position:fixed; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:4;
}

/* garland container вЂ” SVG is built by newyear.js */
.ny-garland{
  position:fixed; top:0; left:0; right:0; height:24px;
  z-index:9998; pointer-events:none; overflow:hidden;
}
.ny-garland svg{ display:block; width:100%; height:24px; }
.ny-garland .wire{ fill:none; stroke:rgba(45,52,58,.9); stroke-width:1.4; }
.ny-garland .bulb{ animation: ny-bulb 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes ny-bulb{ from{opacity:.55} to{opacity:1} }
body.ny.theme-glass .ny-garland .wire,
body.ny.theme-light .ny-garland .wire{ stroke:rgba(90,115,140,.75); }

.ny-badge{
  position:fixed; left:14px; bottom:14px; z-index:9998; pointer-events:none;
  display:flex; align-items:center; gap:7px;
  padding:9px 14px; border-radius:999px;
  font:600 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#04110e;
  background:linear-gradient(135deg,#ffd36e,#2fe6c8);
  border:1px solid rgba(255,255,255,.45);
  box-shadow:0 8px 26px rgba(0,0,0,.42), 0 0 0 1px rgba(0,0,0,.14) inset;
}
.ny-badge small{opacity:.72;font-weight:700;letter-spacing:.02em}

/* ---- interactive icicles ---- */
#ny-icicles{
  position:fixed; left:0; right:0; top:64px; height:0;
  z-index:9997; pointer-events:none;
}
.ny-icicle{
  position:absolute; top:0; pointer-events:auto; cursor:pointer;
  background-repeat:no-repeat;
  background-position:center top;
  background-size:100% 100%;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.28));
  transform-origin:top center;
  transition:transform .16s ease, filter .16s ease;
  will-change:transform, opacity;
}
.ny-icicle::before{ display:none; }
.ny-icicle:hover{
  transform:scaleX(1.18) translateY(1px);
  filter:drop-shadow(0 0 7px rgba(120,200,255,.85)) brightness(1.1);
}
.ny-icicle.fall{
  animation:ny-icicle-fall 1.15s cubic-bezier(.32,.08,.6,1) forwards;
  pointer-events:none;
}
@keyframes ny-icicle-fall{
  0%{ transform:translateY(0) rotate(0deg) scaleX(1); opacity:1; }
  70%{ opacity:1; }
  100%{ transform:translateY(74vh) rotate(22deg) scaleX(.9); opacity:0; }
}

/* ---- idle accumulating snowdrift ---- */
.ny-idle-drift{
  position:absolute; left:0; right:0; top:0; height:0;
  z-index:2; pointer-events:none; opacity:0;
  background:url('/static/snowdrift.png') center top / 100% 100% no-repeat;
  filter:drop-shadow(0 5px 7px rgba(0,0,0,.28));
  transition:height .6s ease, opacity .4s ease;
}
.ny-idle-drift.on{ opacity:1; }
.ny-idle-drift.clickable{
  pointer-events:auto; cursor:pointer;
  animation:ny-drift-pulse 2.2s ease-in-out infinite;
}
@keyframes ny-drift-pulse{
  0%,100%{ filter:drop-shadow(0 5px 7px rgba(0,0,0,.28)); }
  50%{ filter:drop-shadow(0 6px 13px rgba(120,200,255,.55)) brightness(1.05); }
}
.ny-idle-drift.dump{
  animation:ny-drift-dump 1.35s cubic-bezier(.3,.05,.6,1) forwards;
  pointer-events:none;
}
@keyframes ny-drift-dump{
  0%{ transform:translateY(0) rotate(0deg); opacity:1; }
  100%{ transform:translateY(112vh) rotate(1.5deg); opacity:0; }
}
.ny-idle-drift.melt{ opacity:0; height:0 !important; }

/* ---- base art vs New Year art (swap only while active) ---- */
body.ny .ny-hide{display:none !important}
body:not(.ny) .ny-show{display:none !important}

/* ---- snow caps on icons ---- */
.ny-cap{opacity:0;transition:opacity .25s}
body.ny .ny-cap{opacity:1}

/* snow lying on top of game covers вЂ” irregular drift, not a fence */
body.ny .game-cover::after{
  content:"";position:absolute;left:0;right:0;top:0;height:48px;z-index:2;pointer-events:none;
  background:url('/static/snowdrift.png') center top / 100% 48px no-repeat;
  opacity:.98;
}

/* snow mound on the recruit icon */
body.ny .recruit-ico{position:relative}
body.ny .recruit-ico::after{
  content:"";position:absolute;left:50%;top:-6px;transform:translateX(-50%);
  width:26px;height:9px;border-radius:50% 50% 42% 42%;
  background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.22);
  opacity:.95;
}

/* snow on small topbar icons (star / cart) */
body.ny .cart-top{position:relative}
body.ny .cart-top::after{
  content:"";position:absolute;left:50%;top:-3px;transform:translateX(-50%);
  width:14px;height:5px;border-radius:50%;
  background:rgba(255,255,255,.96);box-shadow:0 1px 1px rgba(0,0,0,.22);
}

/* AQUA brand mark cap */
body.ny .brand-mark{position:relative}
body.ny .brand-mark::after{
  content:"";position:absolute;left:50%;top:-4px;transform:translateX(-50%);
  width:18px;height:6px;border-radius:50%;
  background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.28);
}

@media (prefers-reduced-motion: reduce){
  .ny-garland .bulb{ animation:none; opacity:.9; }
}
@media (max-width:520px){
  .ny-badge{ font-size:11px; padding:7px 11px; left:8px; bottom:8px; }
  .ny-garland, .ny-garland svg{ height:20px; }
}

/* admin test button hides after its 3h window */
.ny-test-window.ny-expired{display:none !important}



