/* Seasonal decoration is below the game and never handles input. */
body.winterTheme { --app-stroke:#91e7ee38; --app-stroke-soft:#91e7ee1a; }
.winterTheme h1, .winterTheme h2, .winterTheme .slideHeader b { color:#c6f7f5; }
.winterTheme #topHud { border-color:#b9cbb478; isolation:isolate; }
.winterTheme #topHud::before {
  content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none;
  background:url('../icons/winter-hud.svg?v=2') center / cover no-repeat;
  -webkit-mask-image:linear-gradient(90deg,#0003 16%,#0007 27%,#000 38%,#000 71%,#0004 83%,#0002 96%);
  mask-image:linear-gradient(90deg,#0003 16%,#0007 27%,#000 38%,#000 71%,#0004 83%,#0002 96%);
}
.winterTheme #topTitle, .winterTheme #topCurrencies { text-shadow:0 1px 5px #071218; }
#limitedEventDockBtn[data-season="winter"]::after { content:"ZIMA"; }
#limitedEventDockBtn[data-season="winter"][hidden] { display:none !important; }
#winterDecor { display:none; position:fixed; inset:0; overflow:hidden; z-index:0; pointer-events:none; }
.winterTheme #winterDecor {
  display:block;
  background:
    radial-gradient(circle at 17% 36%,#c9f5ff80 0 1px,transparent 2.5px),
    radial-gradient(circle at 81% 26%,#c9f5ff80 0 1px,transparent 2.5px),
    radial-gradient(circle at 68% 63%,#c9f5ff55 0 1px,transparent 2.5px),
    radial-gradient(circle at 26% 74%,#c9f5ff55 0 1.5px,transparent 3px),
    linear-gradient(180deg,#24415340,transparent 65%,#295b5733);
}
.winterCorner { position:absolute; width:clamp(116px,17vw,238px); bottom:0; opacity:.9; }
.winterCornerA { left:-33px; bottom:1%; transform:rotate(-9deg); }
.winterCornerB { right:-43px; bottom:8%; width:clamp(102px,15vw,205px); transform:scaleX(-1) rotate(14deg); opacity:.78; }

.winterEventView { background:linear-gradient(155deg,#16353d,#101b28 65%,#172b2a); backdrop-filter:none; }
.winterEventView .crystalTransitionVeil, .winterEventView .crystalParticles { display:none; }
.winterEventView .crystalCaveShell { grid-template-rows:auto auto 1fr; }
.winterTabs { display:none; }
.winterNotice { margin:0; padding:5px 0; color:#d2e8ef; font-size:12px; text-align:center; }
.winterEventView .crystalEventTop,
.winterEventView .crystalMineCard,
.winterEventView .crystalUpgradeCard,
.winterEventView .crystalEggCard,
.winterEventView .crystalShopCard { background:linear-gradient(145deg,#243a45,#1a2631); border-color:#9de9ed44; backdrop-filter:none; box-shadow:inset 0 1px #e7ffff17,0 12px 30px #0003; }
.winterEventView .crystalEventTop span,
.winterEventView .crystalEventTop h2,
.winterEventView .crystalCurrencyPill b span { color:#d0ffef; text-shadow:none; }
.winterEventView .crystalMineCard { min-height:360px; }
.winterEventView .crystalMole::before,
.winterEventView .crystalMole::after,
.winterEventView .crystalMoleFace { display:none; }
.winterAction, #winterEventBackBtn, #winterOpenEggBtn { min-height:40px; padding:8px 12px; color:#142823; border:1px solid #d9fff166; border-radius:10px; background:linear-gradient(145deg,#c5f6e5,#88cde0); font-size:12px; font-weight:800; cursor:pointer; }
.winterAction:disabled, #winterOpenEggBtn:disabled { opacity:.45; cursor:default; }
.winterEventView .crystalShopItem > small { display:block; margin:5px 0; color:#ccdfe7; }
.winterEventView .crystalEggVisual { background:conic-gradient(from 25deg at 36% 45%,#dcffff,#93e8e5,#5196c3,#abecff,#dcffff); box-shadow:inset -8px -10px 15px #164e8377,inset 6px 5px 10px #fff3; border:1px solid #d1ffff66; }
.winterEventView .crystalPetChance { border-color:#8fe3ed33; }
.winterEventView .crystalCooldownBar i { background:linear-gradient(90deg,#8edce9,#bcf5cf); }

@media (max-width:700px), (max-height:500px) and (pointer:coarse) {
 .winterEventView { box-sizing:border-box; padding:10px; }
 .winterEventView .crystalCaveShell { gap:10px; min-height:0; grid-template-rows:auto auto auto 1fr; }
 .winterTabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:4px; border:1px solid #9de9ed44; border-radius:14px; background:#213541; }
 .winterTabs button { min-width:0; min-height:40px; padding:4px; border:0; border-radius:10px; background:transparent; color:#dae9f4; font-size:11px; font-weight:700; }
 .winterTabs button[aria-pressed="true"] { background:#b3f2e7; color:#172c34; box-shadow:inset 0 1px #fff5; }
 .winterEventView .crystalEventGrid > section { display:none; }
 .winterEventView[data-winter-tab="harvest"] .crystalMineCard { display:grid; }
 .winterEventView[data-winter-tab="upgrades"] .crystalUpgradeCard,
 .winterEventView[data-winter-tab="egg"] .crystalEggCard,
 .winterEventView[data-winter-tab="shop"] .crystalShopCard { display:block; }
 .winterEventView .crystalEventTop { grid-template-columns:1fr 1fr; text-align:left; padding:12px; gap:8px; }
 .winterEventView .crystalEventTop > div:first-child { grid-column:1 / -1; }
 .winterEventView .crystalEventTop h2 { font-size:26px; line-height:32px; }
 .winterEventView .crystalEventCountdown, .winterEventView .crystalCurrencyPill { min-width:0; width:auto; }
 .winterEventView .crystalEventTop .crystalEventCountdown b, .winterEventView .crystalCurrencyPill b span { font-size:17px; }
 #winterEventBackBtn { grid-column:1 / -1; min-height:44px; }
 .winterEventView .crystalEventGrid { grid-template-columns:1fr; }
 .winterEventView .crystalMineCard { min-height:280px; padding:12px; }
 .winterEventView .crystalUpgradeCard, .winterEventView .crystalEggCard, .winterEventView .crystalShopCard { padding:12px; }
 .winterAction, #winterOpenEggBtn { min-height:44px; width:100%; }
}
@media (prefers-reduced-motion:reduce) { .winterEventView .crystalMole.hit .crystalPickaxe { animation:none; } }
.winterFlake { display:inline-block; flex:none; margin-inline:2px; color:#b6f3ff; font-style:normal; line-height:1; }
.winterAction .winterFlake, #winterOpenEggBtn .winterFlake { color:#204760; }
.winterEventView .crystalMole {
  width:min(230px,100%); height:220px; margin:16px auto;
  background:transparent url('../icons/winter-mole.svg') center/contain no-repeat; border-radius:0; box-shadow:none;
}
.winterEventView .crystalPickaxe { right:0; top:36px; }
.winterEventView .crystalMole.hit { filter:drop-shadow(0 0 14px #87dbf6a0); }
#winterEventView.crystalPhaseShopOnly .crystalMineCard { display:none; }
.winterTabs button:disabled { opacity:.45; }
#kret.skin-winter-snowman, .skinPreview.skin-winter-snowman { background:transparent url('../icons/winter-mole.svg') center/contain no-repeat !important; border-radius:0; box-shadow:none; }
#kret.skin-winter-snowman :is(.eye,.nose), .skinPreview.skin-winter-snowman :is(.petTinyFace,.petTinyMouth) { display:none; }
#kret.skin-halloween-pumpkin, .skinPreview.skin-halloween-pumpkin { background:transparent url('../icons/pumpkin-mole.svg') center/contain no-repeat !important; border-radius:0; box-shadow:none; }
#kret.skin-halloween-pumpkin :is(.eye,.nose) { display:none; }
.petStyleHalloween { box-shadow:inset 0 0 0 2px #ffe6b333,0 0 15px #da8b3833; }
.petStyleWinter { box-shadow:inset 0 0 0 2px #d1ffff66,0 0 16px #75ebcb60; }

body.weather-aurora #weatherFx {
  z-index:0; background:radial-gradient(ellipse at 75% 15%,#236f6477,transparent 58%),linear-gradient(180deg,#18275f66,transparent 80%);
}
body.weather-aurora #weatherFx::before,
body.weather-aurora #weatherFx::after {
  content:""; position:absolute; pointer-events:none; width:125%; height:42%; left:-13%; top:1%;
  background:radial-gradient(ellipse at 50% 12%,transparent 42%,#9bffe8d9 49%,#58d8aa9e 53%,#40a5d752 59%,transparent 70%);
  transform:rotate(-13deg); opacity:.86;
}
body.weather-aurora #weatherFx::after { top:11%; left:6%; width:113%; transform:rotate(-22deg); opacity:.45; }
body.weather-aurora #weatherFx::before,
body.weather-aurora #weatherFx::after {
  -webkit-mask-image:radial-gradient(ellipse at center,#000 48%,transparent 73%);
  mask-image:radial-gradient(ellipse at center,#000 48%,transparent 73%);
}
body.weather-aurora #weatherFx .weatherParticle {
  top:-12px; width:calc(var(--ws) * .44); height:calc(var(--ws) * .44); border-radius:50%;
  background:#dcffff; box-shadow:0 0 6px #b4fff3; opacity:.75;
  animation:winterSnowDrift calc(var(--wslow) * 1.5) var(--wdelay) linear infinite;
}
@keyframes winterSnowDrift { to { transform:translate3d(var(--wd),calc(100dvh + 20px),0); } }
@media (max-width:700px) {
  .winterTheme #topHud::before {
    background-size:auto 110%;
    background-position:52% center;
    -webkit-mask-image:linear-gradient(180deg,#0006,#0005 46%,#0003 68%,#000b);
    mask-image:linear-gradient(180deg,#0006,#0005 46%,#0003 68%,#000b);
  }
  .winterCornerA { left:-28px; bottom:12%; }
  .winterCornerB { right:-22px; bottom:18%; }
  .winterEventView .crystalMole { width:min(210px,100%); height:200px; margin:8px auto; }
}
@media (prefers-reduced-motion:reduce) {
  body.weather-aurora #weatherFx .weatherParticle { animation:none; top:var(--wy); }
}
