[data-theme="invierno"] .winter-hero {
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  color: #f4f8ff;
  min-height: 290px;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid #2f425e;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 95%, #1c4559 0, transparent 57%),
    linear-gradient(108deg, #0c1323 24%, #121f3d 72%, #101a31);
}
[data-theme="invierno"] .winter-hero .art {
  position: relative;
  align-self: stretch;
  overflow: visible;
  background: none;
}
[data-theme="invierno"] .winter-hero .art > :not(.winter-art) { display: none; }
.winter-art {
  position: absolute;
  inset: 0;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 21% 27%, #d5efff 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, #aaffea 0 1px, transparent 3px),
    radial-gradient(circle at 83% 68%, #d5efff 0 1px, transparent 2px),
    radial-gradient(circle at 19% 76%, #bdcfff 0 1px, transparent 3px),
    radial-gradient(circle at 63% 30%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 71% 80%, #b0e9ff 0 1px, transparent 2px),
    radial-gradient(circle at 33% 67%, #d5efff 0 1px, transparent 2px),
    radial-gradient(ellipse at center, #3e648761, transparent 67%);
}
[data-theme="invierno"] .winter-art { display: grid; }
.snowfall {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-theme="invierno"] .snowfall { display: block; }
}
.snowflake {
  position: absolute;
  top: -24px;
  left: var(--x);
  height: calc(100% + 24px);
  color: #e1fbff;
  font: var(--size)/1 sans-serif;
  opacity: var(--opacity);
  filter: blur(var(--blur));
  text-shadow: 0 0 7px #88ddff;
  animation: snow-fall var(--fall-time) var(--fall-delay) linear infinite;
}
@keyframes snow-fall {
  0% { transform: translate3d(0, 0, 0); }
  45% { transform: translate3d(var(--drift), 45%, 0); }
  100% { transform: translate3d(0, 100%, 0); }
}
.aurora {
  position: absolute;
  width: 115%;
  height: 34%;
  transform: rotate(-33deg) translateY(-25%);
  border-radius: 50%;
  border-top: 14px solid #75ffe49c;
  border-bottom: 20px solid #7c82fb7d;
  filter: blur(25px);
}
.orbit {
  position: absolute;
  width: min(80%, 355px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #a5cbff36;
}
.orbit-vertical { transform: rotate(-28deg) scaleX(.78); }
.orbit-horizontal { transform: rotate(-28deg) scaleY(.43); border-color: #baffeb5c; }
.captain-apex {
  --captain-travel: clamp(25px, 7vw, 78px);
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: clamp(168px, 21vw, 205px);
  max-width: 94%;
  object-fit: contain;
  filter: drop-shadow(0 16px 15px #030d27a8) drop-shadow(0 0 14px #75dafa60);
}
@media (prefers-reduced-motion: no-preference) {
  .captain-apex { animation: captain-apex-sway 4.5s ease-in-out infinite alternate; }
}
@keyframes captain-apex-sway {
  from {
    transform: perspective(620px) translate3d(calc(0px - var(--captain-travel)), 4px, 0) rotateY(-14deg) rotateZ(-4deg);
  }
  to {
    transform: perspective(620px) translate3d(var(--captain-travel), -5px, 20px) rotateY(14deg) rotateZ(4deg);
  }
}
.ice-floor {
  position: absolute;
  width: 52%;
  height: 7%;
  bottom: 8%;
  border-radius: 50%;
  background: #93f9ff56;
  filter: blur(16px);
}
[data-theme="invierno"] .winter-hero .hero-copy { display: none; }

@media (max-width: 720px) {
  [data-theme="invierno"] .winter-hero { min-height: 238px; }
  .orbit { width: min(78%, 235px); }
  .captain-apex { height: 158px; }
}

.shop-panel.shop-panel--winter {
  --surface-alt: #121d30;
  --muted: #b6c7e0;
  --border: #364865;
  color: #eef5ff;
  background: linear-gradient(120deg, #11192a, #101e2a);
}
.shop-panel--winter .shop-buy { background: linear-gradient(115deg, #141e32, #111f2c); }
.shop-panel--winter .accounts-head {
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}
.shop-winter-product {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 2vw, 1.25rem);
  min-width: 0;
}
.shop-winter-product-logo {
  isolation: isolate;
  flex: none;
  width: clamp(6rem, 23vw, 11rem);
  aspect-ratio: 2;
  overflow: hidden;
  border: 1px solid #6082a9;
  border-radius: .8rem;
  background: radial-gradient(ellipse at 65% 0%, #352337, #090f1d 76%);
  box-shadow: 0 0 1.35rem #75c5f530;
}
.shop-winter-product-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}
.shop-winter-product h2 {
  color: #f4f8ff;
  font-size: clamp(1.05rem, 3vw, 1.65rem);
  line-height: 1.15;
}
.shop-panel--winter .shop-tier:not(.is-promo) { background: #162339; }
.shop-panel--winter .shop-order-row .shop-total-value { color: #b5ffe9; }
.shop-panel--winter .shop-summary { border-color: #364865; }


/* The application loads this stylesheet with the ID only when the admin enables it. */
:root:has(#winter-theme-styles) {
  color: #edf5ff;
  background: #080e1c;
  --background: #080e1c;
  --surface: #101a2ce8;
  --surface-alt: #142137;
  --surface-hover: #1b2c46;
  --border: #3c547a99;
  --border-strong: #8ee5ee95;
  --text: #edf5ff;
  --muted: #b1c4e0;
  --accent: #b5ffe9;
  --accent-soft: #a2ffe328;
  --accent-hover: #e3fff5;
  --accent-2: #aaccff;
  --accent-2-soft: #aaccff25;
}

:root:has(#winter-theme-styles) body {
  background:
    radial-gradient(ellipse at 93% 8%, #32416870, transparent 39rem),
    radial-gradient(ellipse at 12% 1%, #1f68645e, transparent 34rem),
    radial-gradient(ellipse at 50% 95%, #233e6e7a, transparent 45rem),
    #080e1c;
  background-attachment: fixed;
}

:root:has(#winter-theme-styles) :is(.topbar, .sidebar, .site-footer, .login-card) {
  border-color: #425f83;
  background: linear-gradient(115deg, #101a2cf0, #13283bec);
}

:root:has(#winter-theme-styles) .sidebar-link.is-active {
  color: #d5fff2;
  border-color: #76cbbb85;
  background: linear-gradient(120deg, #225051a6, #203857c7);
}

.site-snowfall {
  position: fixed;
  z-index: 4;
  opacity: .55;
}

@media (prefers-reduced-motion: no-preference) {
  .site-snowfall { display: block; }
}
