/* publikSNOW 2.0.0 FINAL – isolated CSS selectors.
 * Copyright (C) 2026 PUBLIK Internetservice.
 * Licence: GNU GPL v2 or later; see LICENSE.txt in the distribution.
 */
#publiksnow-canvas {
  position: fixed !important; inset: 0 !important;
  width: 100vw !important; height: 100vh !important; height: 100dvh !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
  border: 0 !important; padding: 0 !important; margin: 0 !important;
  user-select: none; contain: strict;
}
#publiksnow-candles {
  /* A compact seasonal arrangement: four candles in a bed of fir twigs. */
  position: fixed !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  left: max(10px, env(safe-area-inset-left)) !important;
  z-index: 2147483001 !important;
  box-sizing: border-box !important;
  width: 210px !important;
  height: 106px !important;
  display: block !important;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; background: transparent !important;
  pointer-events: none !important; user-select: none !important;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.19));
}
#publiksnow-candles .publiksnow-greenery {
  position: absolute; z-index: 3; left: -8px; bottom: -9px;
  width: 226px; height: 78px;
  background: url('../images/advent-greenery.svg') center bottom / contain no-repeat;
  pointer-events: none;
}
#publiksnow-candles .publiksnow-candle-row {
  position: absolute; z-index: 2; left: 37px; bottom: 16px;
  display: flex; align-items: flex-end; gap: 8px;
  width: auto; height: auto;
}
#publiksnow-candles .publiksnow-candle {
  --publiksnow-wax-height: 61px;
  position: relative; display: block; flex: 0 0 25px;
  width: 25px; height: calc(var(--publiksnow-wax-height) + 17px);
}
#publiksnow-candles .publiksnow-candle:nth-child(2) {--publiksnow-wax-height: 69px;}
#publiksnow-candles .publiksnow-candle:nth-child(3) {--publiksnow-wax-height: 65px;}
#publiksnow-candles .publiksnow-candle:nth-child(4) {--publiksnow-wax-height: 58px;}
#publiksnow-candles .publiksnow-wax {
  position: absolute; bottom: 0; left: 0;
  width: 25px; height: var(--publiksnow-wax-height);
  box-sizing: border-box;
  border: 1px solid rgba(144,148,150,.75); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #c5c7c5 0%, #efefed 14%, #fff 42%, #f7f7f4 79%, #c4c7c6 100%);
  box-shadow: inset -2px 0 4px rgba(70,70,70,.12), 0 3px 5px rgba(0,0,0,.22);
}
#publiksnow-candles .publiksnow-wax::before {
  content: ''; position: absolute; left: -1px; top: -3px;
  width: 25px; height: 7px; box-sizing: border-box;
  border: 1px solid #c3c5c4; border-radius: 50%; background: #f4f2ed;
}
#publiksnow-candles .publiksnow-wick {
  position: absolute; z-index: 3; bottom: calc(var(--publiksnow-wax-height) + 2px);
  left: 11px; height: 8px; width: 2px; border-radius: 2px; background: #292b29;
}
#publiksnow-candles .publiksnow-flame {
  position: absolute; z-index: 4; bottom: calc(var(--publiksnow-wax-height) + 9px); left: 8px;
  width: 9px; height: 18px; opacity: 0;
  transform-origin: 50% 100%; border-radius: 80% 10% 75% 50%;
  transform: rotate(42deg);
  background: radial-gradient(ellipse at 65% 80%, #fff 1%, #fff9ac 22%, #ffb52d 57%, #f86a00 82%, transparent 100%);
  box-shadow: 0 0 8px rgba(255,161,0,.85), 0 0 13px rgba(255,126,0,.4);
}
#publiksnow-candles .publiksnow-halo {
  position: absolute; bottom: calc(var(--publiksnow-wax-height) + 1px);
  left: -5px; z-index: 1; width: 35px; height: 35px;
  border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse,rgba(255,208,83,.38),rgba(255,168,0,.07) 55%,transparent 75%);
}
#publiksnow-candles .publiksnow-candle.is-lit .publiksnow-flame {
  opacity: 1; animation: publiksnow-flicker 1.7s ease-in-out infinite alternate;
}
#publiksnow-candles .publiksnow-candle.is-lit .publiksnow-halo {opacity: 1;}
@keyframes publiksnow-flicker {
  from {transform:rotate(39deg) scale(1,.97);filter:brightness(1);}
  to {transform:rotate(46deg) scale(.92,1.12);filter:brightness(1.14);}
}
#publiksnow-snow-switch {
  position: fixed !important; bottom: max(17px, env(safe-area-inset-bottom)) !important;
  left: 50% !important; right: auto !important; transform: translateX(-50%) !important; z-index: 2147483002 !important;
  display: block !important; width: auto !important; min-width: 118px; min-height: 42px;
  padding: 8px 15px !important; border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: 24px !important; background: rgba(24,42,56,.93) !important;
  color: #fff !important; font: 600 14px/1.4 system-ui,-apple-system,sans-serif !important;
  text-transform: none !important; letter-spacing: normal !important; cursor: pointer;
  box-shadow: 0 3px 13px rgba(0,0,0,.28);
  touch-action: manipulation;
}
#publiksnow-snow-switch.is-on {background: rgba(39,87,112,.95) !important;}
#publiksnow-snow-switch:focus-visible {outline: 3px solid #f4c95e !important; outline-offset: 3px !important;}
#publiksnow-snow-switch:disabled {opacity: .55; cursor: not-allowed;}
@media (max-width: 480px) {
  #publiksnow-candles {left: 5px !important; bottom: 58px !important; transform: scale(.75); transform-origin: left bottom;}
  #publiksnow-snow-switch {left: 50% !important; right: auto !important; bottom: max(8px, env(safe-area-inset-bottom)) !important; min-width: 99px; padding: 7px 9px !important; font-size: 12px !important;}
}
@media (prefers-reduced-motion: reduce) {
  #publiksnow-canvas {display:none !important;}
  #publiksnow-candles .publiksnow-candle.is-lit .publiksnow-flame {animation: none;}
}
