/* Frost grows inward from the rim. Leave a quiet centre for labels and icons. */
:where(:root[data-theme="newyear"] [data-frost-static]) { position: relative; }
:root[data-theme="newyear"] [data-winter-frost] { isolation: isolate; }
:root[data-theme="newyear"] [data-winter-frost]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: url('../../assets/new-year/frost-window.webp?v=20261114ice') no-repeat
    var(--frost-texture-position, 50%) center / var(--frost-texture-size, 120%) 100%;
  opacity: .38;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 24%, #0008 65%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 24%, #0008 65%, black 100%);
  pointer-events: none;
}
:root[data-theme="newyear"] [data-frost-square]::before {
  background-image: url('../../assets/new-year/snowflakes-square.webp?v=snow2026');
  background-size: contain;
  background-position: center;
}
:root[data-theme="newyear"] [data-winter-frost]:is(:disabled,[aria-disabled="true"])::before {
  opacity: 0;
}
:root[data-theme="newyear"] [data-winter-frost]:focus-visible {
  outline: 2px solid var(--gold-hi, currentColor);
  outline-offset: -3px;
}
:root[data-theme="newyear"] [data-winter-frost]:is(.po-primary,.give-btn-primary,.st-btn-save,.yd-upload-button,.map-tab.danger):focus-visible {
  outline-color: var(--on-accent);
}

/* Distinct snowflake artwork for each destination in the winter dock. */
:root[data-theme="newyear"] .botnav .nav-btn[data-winter-frost].map::before { background-image: url('../../assets/new-year/snowflakes-nav-1.webp?v=snow2026'); }
:root[data-theme="newyear"] .botnav .nav-btn[data-winter-frost].orders::before { background-image: url('../../assets/new-year/snowflakes-nav-2.webp?v=snow2026'); }
:root[data-theme="newyear"] .botnav .nav-btn[data-winter-frost].team::before { background-image: url('../../assets/new-year/snowflakes-nav-3.webp?v=snow2026'); }
:root[data-theme="newyear"] .botnav .nav-btn[data-winter-frost].projects::before { background-image: url('../../assets/new-year/snowflakes-nav-4.webp?v=snow2026'); }
:root[data-theme="newyear"] .botnav .nav-btn[data-winter-frost].analytics::before { background-image: url('../../assets/new-year/snowflakes-nav-5.webp?v=snow2026'); }
:root[data-theme="newyear"] .botnav .nav-btn[data-winter-frost].admin::before { background-image: url('../../assets/new-year/snowflakes-nav-6.webp?v=snow2026'); }
:root[data-theme="newyear"] .botnav .nav-btn[data-winter-frost].voice::before { background-image: url('../../assets/new-year/snowflakes-nav-7.webp?v=snow2026'); }
:root[data-theme="newyear"] .botnav .nav-btn[data-winter-frost]::before { background-size: cover; background-position: center; }

@media (prefers-contrast: more), (forced-colors: active) {
  :root[data-theme="newyear"] [data-winter-frost]::before { content: none; }
}
