/* ==========================================================================
   Highland Vault – Festive Mode · "Silver Minimal" (Silver 12)

   Page body only. The header (including the scrolling top announcement bar)
   and the footer are NOT changed: no colour, size, position or content.

   Three touches, each its own <html> class (added by the inline <head> gate
   only inside the schedule window):
     hvfm-f-tint    cool pale page #FAFBFD
     hvfm-f-flakes  silver snowflake on each draw section heading
     hvfm-f-snow    gentle CSS snowfall — falls over the page content and
                    passes BEHIND the top bar, the header and the footer

   No element changes size or position, and nothing decorative takes a click.
   Colours are sampled from the design.
   ========================================================================== */

/* The snow layer is printed in the footer; it stays hidden unless the gate
   allows it (and never shows if this stylesheet fails to load — the spans
   are empty inline elements). */
.hvfm-snow { display: none; }

/* --------------------------------------------------------------------------
   1. Cool pale page. --hv-bg is the theme's page-background token (body,
      blog, account pages). The header and footer paint their own colours.
   -------------------------------------------------------------------------- */
html.hvfm-on.hvfm-f-tint { --hv-bg: #FAFBFD; }
html.hvfm-on.hvfm-f-tint body { background-color: #FAFBFD; }

/* --------------------------------------------------------------------------
   2. Draw sections ("Closing Soon", "Signature Competitions", …): a silver
      snowflake in place of the blue category icon, same 24px slot. The
      theme's fine grey rule under the heading is kept, as in the design.
   -------------------------------------------------------------------------- */
html.hvfm-on.hvfm-f-flakes .hv-draw-tabs__section-icon { display: none; }
html.hvfm-on.hvfm-f-flakes .hv-draw-tabs__section-head::before {
	content: "";
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BDC3D1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 4.5 12 7l2.5-2.5M9.5 19.5 12 17l2.5 2.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Snowfall — the design's flakes, in a fixed layer that never takes a
      click. Layer 0: above the page content (hero, cards, sections — the
      layer is printed last in the page), below the sticky header (z 100) and
      the mobile bottom bar (z 1000). The top bar and footer are put on layer 1
      purely so the snow passes behind them. Tested: their rendering is
      pixel-identical (a higher level, e.g. 100, changes the browser's text
      smoothing in the footer on tablet/mobile, so it is deliberately 1).
   -------------------------------------------------------------------------- */
html.hvfm-on.hvfm-f-snow .hv-announce,
html.hvfm-on.hvfm-f-snow .hv-footer {
	position: relative; /* static → relative: no layout change */
	z-index: 1;
}
html.hvfm-on.hvfm-f-snow .hvfm-snow {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
/* ≤1080px the theme shows its fixed, slightly see-through bottom navigation
   bar (66px + border + safe area). Stop the snow above it so no flake is ever
   seen through the bar. */
@media (max-width: 1080px) {
	html.hvfm-on.hvfm-f-snow .hvfm-snow { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
.hvfm-flake {
	position: absolute;
	top: 0;
	animation-name: hvfm-fall;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}
.hvfm-flake i {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 5px rgba(170, 200, 240, .95), 0 0 1px rgba(10, 40, 100, .5);
}
.hvfm-flake--a i { animation: hvfm-sway-a 4.5s ease-in-out infinite alternate; }
.hvfm-flake--b i { animation: hvfm-sway-b 5.5s ease-in-out infinite alternate; }
@keyframes hvfm-fall { from { transform: translateY(-30px); } to { transform: translateY(calc(100vh + 30px)); } }
@keyframes hvfm-sway-a { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes hvfm-sway-b { from { transform: translateX(16px); } to { transform: translateX(-10px); } }

/* --------------------------------------------------------------------------
   Safeguards
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html.hvfm-on.hvfm-f-snow .hvfm-snow { display: none; }
}
@media print {
	html.hvfm-on .hvfm-snow { display: none; }
}
