:root {
    --red: #b3261e;
    --red-dark: #8c1d18;
    --green: #1f6f43;
    --bg: #f7f3ee;
    --card: #ffffff;
    --text: #222;
    --muted: #6b6b6b;
    --border: #e3ddd5;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    /* Snowy pine trees along the bottom, over a sky fading from cold blue to deep night blue */
    background:
        url("trees.svg") repeat-x left bottom / 600px 150px fixed,
        linear-gradient(180deg, #24476f 0%, #1a3961 30%, #112b50 60%, #0b1d3d 85%, #060f24 100%) fixed;
    background-color: #060f24;
}

/* ---- Falling snow: individual flakes, each with its own speed and sway, behind the content ---- */
.snow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.snow i {
    position: absolute;
    top: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 3px rgba(255, 255, 255, .7);
    will-change: transform;
    animation-name: snow-fall, snow-sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-direction: normal, alternate;
}
/* Every 4th flake is a six-armed snowflake that spins as it falls */
.snow i:nth-child(4n) {
    border-radius: 0;
    background: none;
    box-shadow: none;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .6));
}
.snow i:nth-child(4n)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("snowflake.svg") center / contain no-repeat;
    animation: snow-spin 12s linear infinite;   /* per-flake speed/direction set by tools/make_snow.py */
}
@keyframes snow-fall { from { transform: translateY(-40px); } to { transform: translateY(calc(100vh + 40px)); } }
@keyframes snow-sway { from { translate: calc(var(--sway) * -1) 0; } to { translate: var(--sway) 0; } }
@keyframes snow-spin { to { rotate: 360deg; } }
/* Reduced motion: flakes stay frozen where they are */
@media (prefers-reduced-motion: reduce) {
    .snow i, .snow i::before { animation-play-state: paused; }
}

/* Keep page content above the snow */
header.site, main { position: relative; z-index: 1; }

header.site {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding: .75rem 1rem;
    background: linear-gradient(180deg, #c62f26, var(--red-dark));
    color: #fff;
    /* Candy-cane stripe */
    border-bottom: 8px solid transparent;
    border-image: repeating-linear-gradient(45deg, #fff 0 10px, var(--red) 10px 20px) 8;
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
header.site a { color: #fff; text-decoration: none; }
header.site .brand { font-weight: 700; font-size: 1.2rem; }
header.site nav { display: flex; align-items: center; gap: 1rem; }
header.site button.link { color: #fff; }

/* Bottom padding lets the last card scroll clear of the trees */
main { max-width: 860px; margin: 1.5rem auto 0; padding: 0 1rem 170px; }

h1 { margin-top: 0; }
/* Headings sitting directly on the night sky */
main > h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
h2 { margin-top: 0; color: var(--red-dark); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border-top: 4px solid var(--red);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.card.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }

label { display: block; margin-bottom: .9rem; font-weight: 600; }
label.checkbox { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], select, textarea {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .55rem .65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    font-weight: 400;
    background: #fff;
}
input[readonly] { background: #f2f2f2; color: var(--muted); }
textarea { resize: vertical; }

button {
    padding: .55rem 1.1rem;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
button:hover { filter: brightness(1.1); }
button:disabled { background: #aaa; cursor: not-allowed; }
button.danger { background: var(--red); }
button.small { padding: .25rem .6rem; font-size: .85rem; }
button.link { background: none; padding: 0; font-weight: 400; text-decoration: underline; }

form.inline { display: inline; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; align-items: end; }
.grid > div { margin-bottom: .9rem; }

.flash { padding: .7rem 1rem; border-radius: 6px; margin-bottom: 1rem; border: 1px solid; }
.flash.success { background: #e7f4ec; border-color: #b6dcc5; color: #14532d; }
.flash.error   { background: #fbeaea; border-color: #efc0bd; color: #7a1a15; }
.flash.info    { background: #eef3fb; border-color: #c4d4ee; color: #1e3a6b; }

.muted { color: var(--muted); font-weight: 400; }

.facts { display: flex; flex-wrap: wrap; gap: 2rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-size: 1.15rem; font-weight: 600; }

.reveal { font-size: 1.3rem; }
.wishlist { background: #fbf8f3; border-left: 4px solid var(--green); padding: .75rem 1rem; border-radius: 4px; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--border); }
th { font-size: .85rem; color: var(--muted); }
td.actions { white-space: nowrap; text-align: right; }

.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; background: #eee; color: #444; }
.badge.ok { background: #e7f4ec; color: #14532d; }
.badge.warn { background: #fdf1dc; color: #7a4b00; }

.exclusions { padding-left: 1.2rem; }
.exclusions li { margin-bottom: .4rem; }

.danger-zone { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }

.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.section-head h3 { margin: 1rem 0 .5rem; }

/* Santa logo on the login page */
.login { text-align: center; }
.login form, .login .flash { text-align: left; }
.login .logo {
    display: block;
    width: 120px;
    height: auto;
    margin: -.25rem auto .5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.15));
    transform-origin: 50% 90%;
    animation: santa-wobble 4s ease-in-out infinite;
}
@keyframes santa-wobble {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-4deg); }
    75%      { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .login .logo { animation: none; }
}

/* ---- Mobile ---- */

/* Long email addresses and lists wrap instead of overflowing the screen */
.flash, td, .exclusions li, .card p { overflow-wrap: anywhere; }

/* Comfortable tap targets on touch screens */
@media (pointer: coarse) {
    button.small { min-height: 40px; padding: .45rem .9rem; font-size: .9rem; }
    td.actions form.inline + form.inline { margin-left: .4rem; }
    .exclusions li { margin-bottom: .75rem; }
    header.site nav { gap: 1.25rem; }
    header.site nav a, header.site button.link { padding: .5rem 0; }
}

@media (max-width: 640px) {
    main { margin-top: 1rem; padding-bottom: 150px; }
    .card { padding: 1rem; }
    header.site .brand { font-size: 1.05rem; }

    /* Tables become a stack of small labelled cards */
    table.stack thead { display: none; }
    table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
    table.stack tr {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: .5rem .75rem;
        margin-bottom: .75rem;
        background: #fffdfa;
    }
    table.stack td { border: 0; padding: .2rem 0; text-align: left; }
    table.stack td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: .75rem;
        font-weight: 600;
        color: var(--muted);
    }
    table.stack td.actions { white-space: normal; padding-top: .4rem; }
    table.stack td.actions:not(:has(form)) { display: none; }
}

/* Login options and account forms */
button.wide { width: 100%; }
button.secondary { background: #fff; color: var(--green); border: 2px solid var(--green); }
.or { display: flex; align-items: center; gap: .75rem; margin: .9rem 0; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.hint { font-size: .85rem; margin: .5rem 0 0; }
.narrow-form { max-width: 420px; }
td.actions form.inline + form.inline { margin-left: .4rem; }

/* ---- Profile pictures ---- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    line-height: 1;
    vertical-align: middle;
    background: #94a3b8;
    color: #fff;
    font-weight: 700;
}
.avatar--sm { width: 30px; height: 30px; font-size: 1rem; border-width: 2px; }
.avatar--md { width: 56px; height: 56px; font-size: 1.8rem; }
.avatar--lg { width: 96px; height: 96px; font-size: 3.2rem; border-width: 4px; }


/* Picker: a grid of radio tiles */
.avatar-picker { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.avatar-picker legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .5rem; }
label.avatar-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    margin: 0;
    padding: .5rem .25rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
}
label.avatar-option:hover { background: #f6f1ea; }
.avatar-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avatar-option .avatar { transition: transform .15s; }
.avatar-label { font-size: .72rem; line-height: 1.2; color: var(--muted); }
.avatar-option:has(input:checked) { border-color: var(--green); background: #e7f4ec; }
.avatar-option input:checked + .avatar { transform: scale(1.12); }
.avatar-option input:focus-visible + .avatar { outline: 3px solid var(--green); outline-offset: 3px; }

/* Where pictures appear */
.profile-head { display: flex; align-items: center; gap: 1.25rem; }
.profile-head h2 { margin: 0; }
.profile-head p { margin: .2rem 0 0; }
.match { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.match .reveal { margin: 0; }
.who { display: inline-flex; align-items: center; gap: .45rem; }
header.site nav a.me { display: inline-flex; align-items: center; gap: .4rem; }

/* Picture backgrounds */
.avatar img { width: 82%; height: 82%; display: block; }
.avatar--santa      { background: #1f6f43; }
.avatar--mrs-claus  { background: #0e7490; }
.avatar--elf        { background: #7c3aed; }
.avatar--reindeer   { background: #2f7d6d; }
.avatar--penguin    { background: #38bdf8; }
.avatar--polar-bear { background: #1e3a6b; }
.avatar--robin      { background: #9cc9e8; }
.avatar--black-dog  { background: #e0a526; }
.avatar--horse      { background: #6aa84f; }
.avatar--black-cat  { background: #8b5cf6; }
.avatar--tuxedo-cat { background: #db2777; }
.avatar--sugar      { background: #f9a8d4; }
.avatar--honey      { background: #14b8a6; }
.avatar--moto       { background: #22c55e; }
.avatar--cuddles    { background: #fde68a; }
.avatar--kinx       { background: #3b82f6; }
.avatar--limo       { background: #4338ca; }
.avatar--robot      { background: #f97316; }

/* ---- Night sky: yellow stars, each drifting slowly sideways at its own speed ---- */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    /* Stars fade out lower down the sky */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.stars i {
    position: absolute;
    left: 100%;                       /* start just off the right edge... */
    border-radius: 50%;
    background: #fff3b0;
    box-shadow: 0 0 6px 2px rgba(253, 230, 138, .75), 0 0 12px 3px rgba(250, 204, 21, .3);
    animation-name: star-drift, star-twinkle;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-direction: normal, alternate;
}
/* Every 5th star is a larger five-pointed star. The shape is cut out on an inner layer
   so the glow (a filter on the outer element) isn't clipped away with it. */
.stars i:nth-child(5n) {
    border-radius: 0;
    background: none;
    box-shadow: none;
    filter: drop-shadow(0 0 3px rgba(253, 230, 138, .95)) drop-shadow(0 0 7px rgba(250, 204, 21, .55));
}
.stars i:nth-child(5n)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fde047;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: star-spin 20s linear infinite;   /* per-star speed/direction set by tools/make_stars.py */
}
@keyframes star-spin { to { transform: rotate(360deg); } }
/* ...and drift across to just off the left edge, then wrap round */
@keyframes star-drift   { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 20px)); } }
@keyframes star-twinkle { from { opacity: .45; } to { opacity: 1; } }
/* Reduced motion: stars stay frozen where they are (their random start points) */
@media (prefers-reduced-motion: reduce) {
    .stars i, .stars i::before { animation-play-state: paused; }
}
/* stars:start (generated by tools/make_stars.py) */
.stars i:nth-child(1) { top: 62.4%; width: 2.4px; height: 2.4px; animation-duration: 789s, 7.2s; animation-delay: -541s, -0.0s; }
.stars i:nth-child(2) { top: 55.1%; width: 3.2px; height: 3.2px; animation-duration: 367s, 4.4s; animation-delay: -50s, -0.2s; }
.stars i:nth-child(3) { top: 94.3%; width: 2.8px; height: 2.8px; animation-duration: 401s, 4.6s; animation-delay: -313s, -0.1s; }
.stars i:nth-child(4) { top: 75.0%; width: 2.4px; height: 2.4px; animation-duration: 498s, 6.3s; animation-delay: -13s, -4.5s; }
.stars i:nth-child(5) { top: 90.3%; width: 12.9px; height: 12.9px; animation-duration: 707s, 7.1s; animation-delay: -362s, -3.7s; }
.stars i:nth-child(5)::before { animation-duration: 18s; animation-direction: normal; animation-delay: -12s; }
.stars i:nth-child(6) { top: 11.5%; width: 1.6px; height: 1.6px; animation-duration: 502s, 3.5s; animation-delay: -124s, -2.1s; }
.stars i:nth-child(7) { top: 13.9%; width: 1.7px; height: 1.7px; animation-duration: 676s, 2.9s; animation-delay: -600s, -1.3s; }
.stars i:nth-child(8) { top: 78.2%; width: 2.0px; height: 2.0px; animation-duration: 891s, 3.4s; animation-delay: -747s, -1.1s; }
.stars i:nth-child(9) { top: 76.9%; width: 2.3px; height: 2.3px; animation-duration: 767s, 4.5s; animation-delay: -74s, -3.4s; }
.stars i:nth-child(10) { top: 63.2%; width: 10.8px; height: 10.8px; animation-duration: 329s, 6.3s; animation-delay: -313s, -5.3s; }
.stars i:nth-child(10)::before { animation-duration: 28s; animation-direction: normal; animation-delay: -2s; }
.stars i:nth-child(11) { top: 52.7%; width: 2.1px; height: 2.1px; animation-duration: 619s, 3.3s; animation-delay: -286s, -3.3s; }
.stars i:nth-child(12) { top: 8.2%; width: 2.0px; height: 2.0px; animation-duration: 450s, 5.8s; animation-delay: -141s, -3.2s; }
.stars i:nth-child(13) { top: 86.1%; width: 2.5px; height: 2.5px; animation-duration: 300s, 4.3s; animation-delay: -280s, -3.5s; }
.stars i:nth-child(14) { top: 55.3%; width: 2.4px; height: 2.4px; animation-duration: 814s, 7.1s; animation-delay: -351s, -3.6s; }
.stars i:nth-child(15) { top: 3.3%; width: 9.5px; height: 9.5px; animation-duration: 887s, 4.5s; animation-delay: -33s, -0.9s; }
.stars i:nth-child(15)::before { animation-duration: 25s; animation-direction: normal; animation-delay: -11s; }
.stars i:nth-child(16) { top: 14.6%; width: 1.8px; height: 1.8px; animation-duration: 754s, 6.8s; animation-delay: -154s, -1.8s; }
.stars i:nth-child(17) { top: 56.3%; width: 1.5px; height: 1.5px; animation-duration: 500s, 7.2s; animation-delay: -485s, -1.2s; }
.stars i:nth-child(18) { top: 70.5%; width: 2.7px; height: 2.7px; animation-duration: 565s, 5.9s; animation-delay: -139s, -4.3s; }
.stars i:nth-child(19) { top: 35.5%; width: 2.0px; height: 2.0px; animation-duration: 704s, 7.2s; animation-delay: -234s, -4.4s; }
.stars i:nth-child(20) { top: 18.5%; width: 10.3px; height: 10.3px; animation-duration: 822s, 3.3s; animation-delay: -684s, -1.4s; }
.stars i:nth-child(20)::before { animation-duration: 26s; animation-direction: normal; animation-delay: -16s; }
.stars i:nth-child(21) { top: 77.1%; width: 2.9px; height: 2.9px; animation-duration: 870s, 3.6s; animation-delay: -773s, -1.3s; }
.stars i:nth-child(22) { top: 50.1%; width: 2.7px; height: 2.7px; animation-duration: 678s, 5.1s; animation-delay: -333s, -1.3s; }
.stars i:nth-child(23) { top: 89.5%; width: 1.6px; height: 1.6px; animation-duration: 614s, 6.2s; animation-delay: -464s, -3.8s; }
.stars i:nth-child(24) { top: 40.6%; width: 2.6px; height: 2.6px; animation-duration: 638s, 3.1s; animation-delay: -254s, -3.0s; }
.stars i:nth-child(25) { top: 15.8%; width: 12.5px; height: 12.5px; animation-duration: 416s, 4.2s; animation-delay: -378s, -0.6s; }
.stars i:nth-child(25)::before { animation-duration: 14s; animation-direction: normal; animation-delay: -1s; }
.stars i:nth-child(26) { top: 67.4%; width: 2.6px; height: 2.6px; animation-duration: 374s, 3.0s; animation-delay: -134s, -1.1s; }
.stars i:nth-child(27) { top: 6.7%; width: 2.8px; height: 2.8px; animation-duration: 307s, 7.1s; animation-delay: -62s, -5.7s; }
.stars i:nth-child(28) { top: 91.6%; width: 2.5px; height: 2.5px; animation-duration: 604s, 3.6s; animation-delay: -268s, -2.2s; }
.stars i:nth-child(29) { top: 6.2%; width: 1.8px; height: 1.8px; animation-duration: 708s, 5.3s; animation-delay: -443s, -3.8s; }
.stars i:nth-child(30) { top: 26.3%; width: 9.4px; height: 9.4px; animation-duration: 625s, 3.5s; animation-delay: -283s, -1.6s; }
.stars i:nth-child(30)::before { animation-duration: 21s; animation-direction: reverse; animation-delay: -2s; }
.stars i:nth-child(31) { top: 95.6%; width: 3.0px; height: 3.0px; animation-duration: 355s, 4.3s; animation-delay: -272s, -3.2s; }
.stars i:nth-child(32) { top: 56.5%; width: 3.1px; height: 3.1px; animation-duration: 866s, 3.2s; animation-delay: -720s, -2.0s; }
.stars i:nth-child(33) { top: 79.4%; width: 2.9px; height: 2.9px; animation-duration: 709s, 7.2s; animation-delay: -427s, -0.4s; }
.stars i:nth-child(34) { top: 81.3%; width: 1.7px; height: 1.7px; animation-duration: 594s, 2.9s; animation-delay: -102s, -2.6s; }
.stars i:nth-child(35) { top: 41.6%; width: 12.7px; height: 12.7px; animation-duration: 856s, 4.3s; animation-delay: -93s, -1.1s; }
.stars i:nth-child(35)::before { animation-duration: 15s; animation-direction: normal; animation-delay: -13s; }
.stars i:nth-child(36) { top: 35.8%; width: 2.1px; height: 2.1px; animation-duration: 831s, 2.6s; animation-delay: -132s, -1.4s; }
.stars i:nth-child(37) { top: 30.2%; width: 2.3px; height: 2.3px; animation-duration: 652s, 3.8s; animation-delay: -127s, -2.6s; }
.stars i:nth-child(38) { top: 60.3%; width: 1.5px; height: 1.5px; animation-duration: 624s, 4.0s; animation-delay: -261s, -0.2s; }
.stars i:nth-child(39) { top: 93.0%; width: 2.6px; height: 2.6px; animation-duration: 611s, 4.0s; animation-delay: -445s, -0.1s; }
.stars i:nth-child(40) { top: 36.4%; width: 12.3px; height: 12.3px; animation-duration: 859s, 4.2s; animation-delay: -363s, -2.7s; }
.stars i:nth-child(40)::before { animation-duration: 9s; animation-direction: normal; animation-delay: -3s; }
.stars i:nth-child(41) { top: 15.5%; width: 2.9px; height: 2.9px; animation-duration: 540s, 3.8s; animation-delay: -510s, -3.4s; }
.stars i:nth-child(42) { top: 18.6%; width: 2.3px; height: 2.3px; animation-duration: 542s, 5.6s; animation-delay: -111s, -2.3s; }
.stars i:nth-child(43) { top: 15.0%; width: 3.1px; height: 3.1px; animation-duration: 584s, 6.6s; animation-delay: -244s, -0.4s; }
.stars i:nth-child(44) { top: 53.6%; width: 2.9px; height: 2.9px; animation-duration: 684s, 5.7s; animation-delay: -223s, -1.2s; }
.stars i:nth-child(45) { top: 78.7%; width: 10.6px; height: 10.6px; animation-duration: 629s, 6.9s; animation-delay: -298s, -2.7s; }
.stars i:nth-child(45)::before { animation-duration: 28s; animation-direction: normal; animation-delay: -18s; }
.stars i:nth-child(46) { top: 29.4%; width: 1.6px; height: 1.6px; animation-duration: 323s, 3.5s; animation-delay: -75s, -0.9s; }
.stars i:nth-child(47) { top: 61.0%; width: 2.9px; height: 2.9px; animation-duration: 429s, 7.4s; animation-delay: -71s, -5.1s; }
.stars i:nth-child(48) { top: 15.6%; width: 1.7px; height: 1.7px; animation-duration: 898s, 7.2s; animation-delay: -98s, -3.9s; }
.stars i:nth-child(49) { top: 63.5%; width: 1.8px; height: 1.8px; animation-duration: 868s, 3.3s; animation-delay: -114s, -0.2s; }
.stars i:nth-child(50) { top: 61.4%; width: 9.6px; height: 9.6px; animation-duration: 428s, 4.1s; animation-delay: -367s, -1.7s; }
.stars i:nth-child(50)::before { animation-duration: 26s; animation-direction: reverse; animation-delay: -1s; }
/* stars:end */
/* snow:start (generated by tools/make_snow.py) */
.snow i:nth-child(1) { left: 32.4%; width: 4.3px; height: 4.3px; opacity: 0.88; --sway: 18px; animation-duration: 29s, 2.6s; animation-delay: -4s, -0.8s; }
.snow i:nth-child(2) { left: 31.0%; width: 4.4px; height: 4.4px; opacity: 0.8; --sway: 21px; animation-duration: 26s, 4.6s; animation-delay: -2s, -4.1s; }
.snow i:nth-child(3) { left: 70.0%; width: 5.4px; height: 5.4px; opacity: 0.65; --sway: 10px; animation-duration: 22s, 2.7s; animation-delay: -0s, -0.7s; }
.snow i:nth-child(4) { left: 22.1%; width: 19.9px; height: 19.9px; opacity: 0.83; --sway: 14px; animation-duration: 17s, 3.3s; animation-delay: -9s, -0.2s; }
.snow i:nth-child(4)::before { animation-duration: 15s; animation-direction: reverse; }
.snow i:nth-child(5) { left: 18.6%; width: 3.9px; height: 3.9px; opacity: 0.58; --sway: 13px; animation-duration: 26s, 5.3s; animation-delay: -20s, -2.5s; }
.snow i:nth-child(6) { left: 47.1%; width: 5.5px; height: 5.5px; opacity: 0.57; --sway: 10px; animation-duration: 19s, 3.8s; animation-delay: -14s, -0.5s; }
.snow i:nth-child(7) { left: 71.5%; width: 6.2px; height: 6.2px; opacity: 0.47; --sway: 20px; animation-duration: 30s, 3.9s; animation-delay: -9s, -1.8s; }
.snow i:nth-child(8) { left: 12.4%; width: 25.5px; height: 25.5px; opacity: 0.76; --sway: 23px; animation-duration: 18s, 2.7s; animation-delay: -3s, -0.0s; }
.snow i:nth-child(8)::before { animation-duration: 17s; animation-direction: reverse; }
.snow i:nth-child(9) { left: 4.6%; width: 5.6px; height: 5.6px; opacity: 0.52; --sway: 29px; animation-duration: 30s, 4.1s; animation-delay: -17s, -1.7s; }
.snow i:nth-child(10) { left: 32.2%; width: 4.8px; height: 4.8px; opacity: 0.69; --sway: 18px; animation-duration: 25s, 2.8s; animation-delay: -6s, -2.4s; }
.snow i:nth-child(11) { left: 8.4%; width: 4.6px; height: 4.6px; opacity: 0.8; --sway: 17px; animation-duration: 29s, 4.9s; animation-delay: -15s, -3.5s; }
.snow i:nth-child(12) { left: 14.5%; width: 18.1px; height: 18.1px; opacity: 0.96; --sway: 29px; animation-duration: 19s, 4.6s; animation-delay: -7s, -1.2s; }
.snow i:nth-child(12)::before { animation-duration: 20s; animation-direction: reverse; }
.snow i:nth-child(13) { left: 0.4%; width: 4.8px; height: 4.8px; opacity: 0.56; --sway: 9px; animation-duration: 21s, 2.7s; animation-delay: -6s, -0.7s; }
.snow i:nth-child(14) { left: 3.9%; width: 5.3px; height: 5.3px; opacity: 0.85; --sway: 14px; animation-duration: 28s, 3.3s; animation-delay: -4s, -3.3s; }
.snow i:nth-child(15) { left: 96.5%; width: 3.7px; height: 3.7px; opacity: 0.86; --sway: 24px; animation-duration: 25s, 2.9s; animation-delay: -1s, -2.8s; }
.snow i:nth-child(16) { left: 33.3%; width: 21.6px; height: 21.6px; opacity: 0.87; --sway: 10px; animation-duration: 12s, 5.6s; animation-delay: -2s, -2.9s; }
.snow i:nth-child(16)::before { animation-duration: 20s; animation-direction: reverse; }
.snow i:nth-child(17) { left: 62.2%; width: 5.1px; height: 5.1px; opacity: 0.81; --sway: 9px; animation-duration: 16s, 3.3s; animation-delay: -13s, -1.0s; }
.snow i:nth-child(18) { left: 70.2%; width: 4.2px; height: 4.2px; opacity: 0.59; --sway: 19px; animation-duration: 14s, 5.9s; animation-delay: -12s, -3.2s; }
.snow i:nth-child(19) { left: 64.5%; width: 3.3px; height: 3.3px; opacity: 0.69; --sway: 19px; animation-duration: 19s, 4.6s; animation-delay: -3s, -3.3s; }
.snow i:nth-child(20) { left: 20.0%; width: 22.4px; height: 22.4px; opacity: 0.86; --sway: 11px; animation-duration: 14s, 3.2s; animation-delay: -13s, -2.3s; }
.snow i:nth-child(20)::before { animation-duration: 8s; animation-direction: normal; }
.snow i:nth-child(21) { left: 86.1%; width: 3.0px; height: 3.0px; opacity: 0.52; --sway: 27px; animation-duration: 16s, 4.4s; animation-delay: -11s, -3.7s; }
.snow i:nth-child(22) { left: 82.0%; width: 3.9px; height: 3.9px; opacity: 0.78; --sway: 12px; animation-duration: 23s, 4.6s; animation-delay: -17s, -3.4s; }
.snow i:nth-child(23) { left: 57.3%; width: 3.1px; height: 3.1px; opacity: 0.84; --sway: 19px; animation-duration: 23s, 5.5s; animation-delay: -10s, -2.4s; }
.snow i:nth-child(24) { left: 17.0%; width: 20.6px; height: 20.6px; opacity: 0.78; --sway: 11px; animation-duration: 19s, 3.9s; animation-delay: -14s, -2.1s; }
.snow i:nth-child(24)::before { animation-duration: 12s; animation-direction: reverse; }
.snow i:nth-child(25) { left: 18.1%; width: 6.0px; height: 6.0px; opacity: 0.55; --sway: 16px; animation-duration: 27s, 5.6s; animation-delay: -26s, -1.1s; }
.snow i:nth-child(26) { left: 98.6%; width: 3.8px; height: 3.8px; opacity: 0.48; --sway: 21px; animation-duration: 25s, 5.0s; animation-delay: -22s, -4.9s; }
.snow i:nth-child(27) { left: 18.7%; width: 4.8px; height: 4.8px; opacity: 0.52; --sway: 12px; animation-duration: 14s, 3.9s; animation-delay: -1s, -3.7s; }
.snow i:nth-child(28) { left: 1.8%; width: 18.8px; height: 18.8px; opacity: 0.79; --sway: 24px; animation-duration: 13s, 5.1s; animation-delay: -12s, -1.2s; }
.snow i:nth-child(28)::before { animation-duration: 8s; animation-direction: normal; }
.snow i:nth-child(29) { left: 57.0%; width: 3.7px; height: 3.7px; opacity: 0.54; --sway: 26px; animation-duration: 22s, 4.3s; animation-delay: -2s, -3.3s; }
.snow i:nth-child(30) { left: 37.3%; width: 6.4px; height: 6.4px; opacity: 0.85; --sway: 10px; animation-duration: 20s, 4.0s; animation-delay: -1s, -1.2s; }
.snow i:nth-child(31) { left: 46.0%; width: 4.9px; height: 4.9px; opacity: 0.87; --sway: 30px; animation-duration: 23s, 3.1s; animation-delay: -15s, -2.7s; }
.snow i:nth-child(32) { left: 35.8%; width: 17.7px; height: 17.7px; opacity: 0.79; --sway: 19px; animation-duration: 14s, 4.1s; animation-delay: -9s, -0.3s; }
.snow i:nth-child(32)::before { animation-duration: 20s; animation-direction: normal; }
.snow i:nth-child(33) { left: 74.8%; width: 4.9px; height: 4.9px; opacity: 0.64; --sway: 29px; animation-duration: 24s, 3.7s; animation-delay: -3s, -3.7s; }
.snow i:nth-child(34) { left: 77.8%; width: 6.2px; height: 6.2px; opacity: 0.65; --sway: 22px; animation-duration: 15s, 3.0s; animation-delay: -3s, -1.5s; }
.snow i:nth-child(35) { left: 16.1%; width: 3.8px; height: 3.8px; opacity: 0.7; --sway: 13px; animation-duration: 14s, 5.6s; animation-delay: -9s, -2.5s; }
.snow i:nth-child(36) { left: 24.1%; width: 14.5px; height: 14.5px; opacity: 0.94; --sway: 8px; animation-duration: 12s, 4.5s; animation-delay: -8s, -1.8s; }
.snow i:nth-child(36)::before { animation-duration: 19s; animation-direction: reverse; }
.snow i:nth-child(37) { left: 0.7%; width: 5.1px; height: 5.1px; opacity: 0.54; --sway: 17px; animation-duration: 27s, 3.7s; animation-delay: -2s, -1.1s; }
.snow i:nth-child(38) { left: 28.4%; width: 6.1px; height: 6.1px; opacity: 0.52; --sway: 15px; animation-duration: 18s, 2.7s; animation-delay: -17s, -2.7s; }
.snow i:nth-child(39) { left: 64.3%; width: 4.6px; height: 4.6px; opacity: 0.64; --sway: 12px; animation-duration: 19s, 2.6s; animation-delay: -17s, -0.8s; }
.snow i:nth-child(40) { left: 28.3%; width: 19.4px; height: 19.4px; opacity: 0.79; --sway: 30px; animation-duration: 19s, 4.0s; animation-delay: -4s, -2.6s; }
.snow i:nth-child(40)::before { animation-duration: 12s; animation-direction: reverse; }
.snow i:nth-child(41) { left: 26.3%; width: 5.6px; height: 5.6px; opacity: 0.79; --sway: 12px; animation-duration: 20s, 3.1s; animation-delay: -18s, -2.0s; }
.snow i:nth-child(42) { left: 43.3%; width: 6.5px; height: 6.5px; opacity: 0.81; --sway: 30px; animation-duration: 27s, 4.6s; animation-delay: -14s, -2.0s; }
.snow i:nth-child(43) { left: 10.1%; width: 4.0px; height: 4.0px; opacity: 0.85; --sway: 10px; animation-duration: 17s, 5.8s; animation-delay: -4s, -5.7s; }
.snow i:nth-child(44) { left: 34.3%; width: 15.3px; height: 15.3px; opacity: 0.94; --sway: 22px; animation-duration: 15s, 5.6s; animation-delay: -0s, -1.3s; }
.snow i:nth-child(44)::before { animation-duration: 8s; animation-direction: reverse; }
.snow i:nth-child(45) { left: 69.9%; width: 5.5px; height: 5.5px; opacity: 0.88; --sway: 26px; animation-duration: 18s, 3.7s; animation-delay: -7s, -2.2s; }
.snow i:nth-child(46) { left: 25.7%; width: 3.1px; height: 3.1px; opacity: 0.7; --sway: 9px; animation-duration: 21s, 5.8s; animation-delay: -3s, -1.7s; }
.snow i:nth-child(47) { left: 76.9%; width: 4.7px; height: 4.7px; opacity: 0.82; --sway: 23px; animation-duration: 22s, 5.4s; animation-delay: -12s, -3.7s; }
.snow i:nth-child(48) { left: 69.8%; width: 23.0px; height: 23.0px; opacity: 0.97; --sway: 19px; animation-duration: 19s, 4.2s; animation-delay: -2s, -1.6s; }
.snow i:nth-child(48)::before { animation-duration: 16s; animation-direction: reverse; }
.snow i:nth-child(49) { left: 22.9%; width: 6.0px; height: 6.0px; opacity: 0.73; --sway: 19px; animation-duration: 25s, 2.5s; animation-delay: -17s, -0.2s; }
.snow i:nth-child(50) { left: 98.1%; width: 3.5px; height: 3.5px; opacity: 0.61; --sway: 13px; animation-duration: 19s, 3.3s; animation-delay: -14s, -1.9s; }
.snow i:nth-child(51) { left: 76.3%; width: 4.2px; height: 4.2px; opacity: 0.9; --sway: 27px; animation-duration: 24s, 4.8s; animation-delay: -18s, -2.9s; }
.snow i:nth-child(52) { left: 63.7%; width: 24.5px; height: 24.5px; opacity: 0.85; --sway: 8px; animation-duration: 13s, 2.8s; animation-delay: -13s, -2.4s; }
.snow i:nth-child(52)::before { animation-duration: 18s; animation-direction: normal; }
.snow i:nth-child(53) { left: 37.5%; width: 3.4px; height: 3.4px; opacity: 0.62; --sway: 30px; animation-duration: 23s, 5.6s; animation-delay: -15s, -0.9s; }
.snow i:nth-child(54) { left: 32.3%; width: 3.5px; height: 3.5px; opacity: 0.52; --sway: 25px; animation-duration: 27s, 3.9s; animation-delay: -15s, -2.8s; }
.snow i:nth-child(55) { left: 83.5%; width: 4.9px; height: 4.9px; opacity: 0.75; --sway: 24px; animation-duration: 26s, 2.8s; animation-delay: -14s, -2.0s; }
.snow i:nth-child(56) { left: 23.5%; width: 19.3px; height: 19.3px; opacity: 0.78; --sway: 27px; animation-duration: 19s, 4.4s; animation-delay: -0s, -0.9s; }
.snow i:nth-child(56)::before { animation-duration: 7s; animation-direction: normal; }
.snow i:nth-child(57) { left: 90.7%; width: 5.2px; height: 5.2px; opacity: 0.71; --sway: 9px; animation-duration: 14s, 4.1s; animation-delay: -3s, -3.1s; }
.snow i:nth-child(58) { left: 5.3%; width: 4.5px; height: 4.5px; opacity: 0.76; --sway: 25px; animation-duration: 29s, 3.7s; animation-delay: -23s, -1.7s; }
.snow i:nth-child(59) { left: 25.5%; width: 3.7px; height: 3.7px; opacity: 0.81; --sway: 19px; animation-duration: 19s, 4.6s; animation-delay: -10s, -0.6s; }
.snow i:nth-child(60) { left: 61.0%; width: 21.5px; height: 21.5px; opacity: 0.8; --sway: 28px; animation-duration: 14s, 3.4s; animation-delay: -3s, -3.0s; }
.snow i:nth-child(60)::before { animation-duration: 19s; animation-direction: normal; }
.snow i:nth-child(61) { left: 82.7%; width: 5.0px; height: 5.0px; opacity: 0.68; --sway: 25px; animation-duration: 27s, 3.2s; animation-delay: -20s, -2.4s; }
.snow i:nth-child(62) { left: 74.6%; width: 5.6px; height: 5.6px; opacity: 0.57; --sway: 25px; animation-duration: 30s, 3.9s; animation-delay: -8s, -3.6s; }
.snow i:nth-child(63) { left: 32.9%; width: 3.5px; height: 3.5px; opacity: 0.87; --sway: 21px; animation-duration: 21s, 3.9s; animation-delay: -17s, -2.7s; }
.snow i:nth-child(64) { left: 67.4%; width: 19.5px; height: 19.5px; opacity: 0.87; --sway: 21px; animation-duration: 13s, 5.5s; animation-delay: -10s, -4.0s; }
.snow i:nth-child(64)::before { animation-duration: 17s; animation-direction: reverse; }
.snow i:nth-child(65) { left: 13.3%; width: 4.1px; height: 4.1px; opacity: 0.65; --sway: 18px; animation-duration: 29s, 5.7s; animation-delay: -5s, -1.6s; }
.snow i:nth-child(66) { left: 7.5%; width: 5.6px; height: 5.6px; opacity: 0.73; --sway: 28px; animation-duration: 17s, 4.4s; animation-delay: -17s, -4.4s; }
.snow i:nth-child(67) { left: 70.9%; width: 4.8px; height: 4.8px; opacity: 0.61; --sway: 26px; animation-duration: 24s, 5.8s; animation-delay: -13s, -2.7s; }
.snow i:nth-child(68) { left: 12.1%; width: 22.6px; height: 22.6px; opacity: 0.95; --sway: 23px; animation-duration: 16s, 5.5s; animation-delay: -15s, -1.6s; }
.snow i:nth-child(68)::before { animation-duration: 14s; animation-direction: reverse; }
.snow i:nth-child(69) { left: 26.5%; width: 3.6px; height: 3.6px; opacity: 0.59; --sway: 19px; animation-duration: 26s, 4.8s; animation-delay: -0s, -1.8s; }
.snow i:nth-child(70) { left: 38.8%; width: 4.5px; height: 4.5px; opacity: 0.85; --sway: 13px; animation-duration: 23s, 3.6s; animation-delay: -7s, -2.2s; }
.snow i:nth-child(71) { left: 44.8%; width: 5.7px; height: 5.7px; opacity: 0.83; --sway: 26px; animation-duration: 27s, 5.0s; animation-delay: -15s, -2.8s; }
.snow i:nth-child(72) { left: 3.3%; width: 24.5px; height: 24.5px; opacity: 0.81; --sway: 24px; animation-duration: 12s, 2.7s; animation-delay: -1s, -2.1s; }
.snow i:nth-child(72)::before { animation-duration: 12s; animation-direction: normal; }
.snow i:nth-child(73) { left: 76.5%; width: 6.5px; height: 6.5px; opacity: 0.68; --sway: 26px; animation-duration: 22s, 5.8s; animation-delay: -1s, -1.8s; }
.snow i:nth-child(74) { left: 39.7%; width: 6.5px; height: 6.5px; opacity: 0.57; --sway: 12px; animation-duration: 16s, 4.8s; animation-delay: -0s, -1.5s; }
.snow i:nth-child(75) { left: 56.5%; width: 4.1px; height: 4.1px; opacity: 0.48; --sway: 26px; animation-duration: 16s, 4.5s; animation-delay: -1s, -3.4s; }
.snow i:nth-child(76) { left: 39.1%; width: 18.5px; height: 18.5px; opacity: 0.82; --sway: 14px; animation-duration: 11s, 4.4s; animation-delay: -3s, -4.3s; }
.snow i:nth-child(76)::before { animation-duration: 19s; animation-direction: reverse; }
.snow i:nth-child(77) { left: 5.9%; width: 5.6px; height: 5.6px; opacity: 0.64; --sway: 8px; animation-duration: 20s, 4.0s; animation-delay: -4s, -2.7s; }
.snow i:nth-child(78) { left: 99.4%; width: 3.0px; height: 3.0px; opacity: 0.49; --sway: 30px; animation-duration: 19s, 4.4s; animation-delay: -17s, -0.1s; }
.snow i:nth-child(79) { left: 68.9%; width: 4.0px; height: 4.0px; opacity: 0.72; --sway: 10px; animation-duration: 27s, 5.8s; animation-delay: -25s, -3.0s; }
.snow i:nth-child(80) { left: 71.4%; width: 15.1px; height: 15.1px; opacity: 0.76; --sway: 18px; animation-duration: 18s, 2.8s; animation-delay: -13s, -2.0s; }
.snow i:nth-child(80)::before { animation-duration: 6s; animation-direction: normal; }
.snow i:nth-child(81) { left: 88.6%; width: 3.6px; height: 3.6px; opacity: 0.84; --sway: 16px; animation-duration: 17s, 4.8s; animation-delay: -3s, -0.1s; }
.snow i:nth-child(82) { left: 38.6%; width: 4.0px; height: 4.0px; opacity: 0.87; --sway: 8px; animation-duration: 19s, 3.1s; animation-delay: -17s, -0.8s; }
.snow i:nth-child(83) { left: 6.1%; width: 4.3px; height: 4.3px; opacity: 0.51; --sway: 19px; animation-duration: 28s, 3.8s; animation-delay: -24s, -2.4s; }
.snow i:nth-child(84) { left: 96.2%; width: 24.1px; height: 24.1px; opacity: 0.9; --sway: 15px; animation-duration: 11s, 3.5s; animation-delay: -3s, -1.7s; }
.snow i:nth-child(84)::before { animation-duration: 20s; animation-direction: reverse; }
.snow i:nth-child(85) { left: 61.1%; width: 3.5px; height: 3.5px; opacity: 0.85; --sway: 18px; animation-duration: 16s, 2.5s; animation-delay: -16s, -1.3s; }
.snow i:nth-child(86) { left: 55.6%; width: 6.0px; height: 6.0px; opacity: 0.67; --sway: 14px; animation-duration: 21s, 4.8s; animation-delay: -9s, -1.4s; }
.snow i:nth-child(87) { left: 70.6%; width: 5.8px; height: 5.8px; opacity: 0.87; --sway: 26px; animation-duration: 20s, 5.3s; animation-delay: -15s, -0.3s; }
.snow i:nth-child(88) { left: 69.7%; width: 18.3px; height: 18.3px; opacity: 0.93; --sway: 9px; animation-duration: 12s, 5.1s; animation-delay: -4s, -1.8s; }
.snow i:nth-child(88)::before { animation-duration: 8s; animation-direction: normal; }
.snow i:nth-child(89) { left: 33.0%; width: 3.2px; height: 3.2px; opacity: 0.64; --sway: 28px; animation-duration: 26s, 5.4s; animation-delay: -26s, -3.8s; }
.snow i:nth-child(90) { left: 72.8%; width: 3.4px; height: 3.4px; opacity: 0.47; --sway: 28px; animation-duration: 14s, 3.5s; animation-delay: -5s, -0.8s; }
.snow i:nth-child(91) { left: 79.7%; width: 5.1px; height: 5.1px; opacity: 0.56; --sway: 18px; animation-duration: 24s, 5.4s; animation-delay: -13s, -2.7s; }
.snow i:nth-child(92) { left: 67.4%; width: 24.5px; height: 24.5px; opacity: 0.99; --sway: 28px; animation-duration: 13s, 4.5s; animation-delay: -4s, -2.2s; }
.snow i:nth-child(92)::before { animation-duration: 17s; animation-direction: reverse; }
.snow i:nth-child(93) { left: 36.5%; width: 3.7px; height: 3.7px; opacity: 0.7; --sway: 15px; animation-duration: 24s, 5.1s; animation-delay: -16s, -0.5s; }
.snow i:nth-child(94) { left: 14.6%; width: 4.8px; height: 4.8px; opacity: 0.6; --sway: 20px; animation-duration: 24s, 4.8s; animation-delay: -0s, -4.0s; }
.snow i:nth-child(95) { left: 60.8%; width: 3.2px; height: 3.2px; opacity: 0.9; --sway: 28px; animation-duration: 20s, 3.8s; animation-delay: -9s, -2.4s; }
.snow i:nth-child(96) { left: 69.6%; width: 23.9px; height: 23.9px; opacity: 0.93; --sway: 18px; animation-duration: 17s, 5.8s; animation-delay: -15s, -4.7s; }
.snow i:nth-child(96)::before { animation-duration: 7s; animation-direction: reverse; }
.snow i:nth-child(97) { left: 50.1%; width: 6.4px; height: 6.4px; opacity: 0.48; --sway: 25px; animation-duration: 22s, 2.7s; animation-delay: -6s, -1.7s; }
.snow i:nth-child(98) { left: 48.1%; width: 4.4px; height: 4.4px; opacity: 0.51; --sway: 17px; animation-duration: 16s, 4.7s; animation-delay: -0s, -1.7s; }
.snow i:nth-child(99) { left: 56.1%; width: 5.5px; height: 5.5px; opacity: 0.54; --sway: 30px; animation-duration: 17s, 2.8s; animation-delay: -11s, -2.1s; }
.snow i:nth-child(100) { left: 35.2%; width: 25.2px; height: 25.2px; opacity: 0.82; --sway: 26px; animation-duration: 15s, 4.1s; animation-delay: -11s, -3.3s; }
.snow i:nth-child(100)::before { animation-duration: 9s; animation-direction: normal; }
.snow i:nth-child(101) { left: 53.6%; width: 5.7px; height: 5.7px; opacity: 0.75; --sway: 25px; animation-duration: 18s, 3.8s; animation-delay: -3s, -2.9s; }
.snow i:nth-child(102) { left: 47.1%; width: 3.5px; height: 3.5px; opacity: 0.89; --sway: 22px; animation-duration: 24s, 4.3s; animation-delay: -22s, -0.9s; }
.snow i:nth-child(103) { left: 49.3%; width: 5.8px; height: 5.8px; opacity: 0.82; --sway: 21px; animation-duration: 23s, 2.8s; animation-delay: -20s, -0.1s; }
.snow i:nth-child(104) { left: 12.7%; width: 25.5px; height: 25.5px; opacity: 0.91; --sway: 14px; animation-duration: 14s, 2.7s; animation-delay: -6s, -1.8s; }
.snow i:nth-child(104)::before { animation-duration: 20s; animation-direction: normal; }
.snow i:nth-child(105) { left: 94.1%; width: 3.7px; height: 3.7px; opacity: 0.63; --sway: 18px; animation-duration: 20s, 3.4s; animation-delay: -12s, -2.4s; }
.snow i:nth-child(106) { left: 69.5%; width: 4.4px; height: 4.4px; opacity: 0.8; --sway: 30px; animation-duration: 23s, 4.5s; animation-delay: -5s, -1.8s; }
.snow i:nth-child(107) { left: 55.3%; width: 4.3px; height: 4.3px; opacity: 0.79; --sway: 23px; animation-duration: 30s, 5.5s; animation-delay: -0s, -4.7s; }
.snow i:nth-child(108) { left: 49.0%; width: 14.6px; height: 14.6px; opacity: 0.78; --sway: 16px; animation-duration: 19s, 3.4s; animation-delay: -3s, -1.3s; }
.snow i:nth-child(108)::before { animation-duration: 9s; animation-direction: normal; }
.snow i:nth-child(109) { left: 1.0%; width: 4.8px; height: 4.8px; opacity: 0.65; --sway: 16px; animation-duration: 20s, 3.2s; animation-delay: -6s, -3.1s; }
.snow i:nth-child(110) { left: 56.3%; width: 5.7px; height: 5.7px; opacity: 0.86; --sway: 20px; animation-duration: 20s, 5.0s; animation-delay: -12s, -4.2s; }
.snow i:nth-child(111) { left: 82.9%; width: 6.3px; height: 6.3px; opacity: 0.5; --sway: 18px; animation-duration: 27s, 6.0s; animation-delay: -22s, -3.2s; }
.snow i:nth-child(112) { left: 26.5%; width: 25.1px; height: 25.1px; opacity: 0.84; --sway: 10px; animation-duration: 15s, 5.3s; animation-delay: -12s, -4.9s; }
.snow i:nth-child(112)::before { animation-duration: 9s; animation-direction: normal; }
.snow i:nth-child(113) { left: 88.8%; width: 4.4px; height: 4.4px; opacity: 0.83; --sway: 30px; animation-duration: 22s, 5.6s; animation-delay: -15s, -2.2s; }
.snow i:nth-child(114) { left: 20.8%; width: 5.8px; height: 5.8px; opacity: 0.85; --sway: 22px; animation-duration: 28s, 4.3s; animation-delay: -22s, -3.0s; }
.snow i:nth-child(115) { left: 90.6%; width: 3.2px; height: 3.2px; opacity: 0.87; --sway: 25px; animation-duration: 16s, 4.4s; animation-delay: -7s, -0.5s; }
.snow i:nth-child(116) { left: 12.3%; width: 18.9px; height: 18.9px; opacity: 0.81; --sway: 21px; animation-duration: 18s, 5.6s; animation-delay: -3s, -3.8s; }
.snow i:nth-child(116)::before { animation-duration: 18s; animation-direction: normal; }
.snow i:nth-child(117) { left: 91.5%; width: 3.8px; height: 3.8px; opacity: 0.84; --sway: 22px; animation-duration: 26s, 4.8s; animation-delay: -24s, -1.5s; }
.snow i:nth-child(118) { left: 42.3%; width: 3.4px; height: 3.4px; opacity: 0.47; --sway: 13px; animation-duration: 24s, 3.0s; animation-delay: -1s, -1.5s; }
.snow i:nth-child(119) { left: 13.3%; width: 4.9px; height: 4.9px; opacity: 0.55; --sway: 21px; animation-duration: 22s, 3.2s; animation-delay: -8s, -0.0s; }
.snow i:nth-child(120) { left: 21.9%; width: 20.3px; height: 20.3px; opacity: 0.83; --sway: 14px; animation-duration: 15s, 4.0s; animation-delay: -7s, -0.5s; }
.snow i:nth-child(120)::before { animation-duration: 12s; animation-direction: normal; }
/* snow:end */

[hidden] { display: none !important; }

/* ---- Background music player (bottom-right, logged-in users) ---- */
.music {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .7rem .35rem .4rem;
    background: rgba(255, 255, 255, .95);
    border: 2px solid var(--red);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    font-size: .85rem;
}
.music-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: var(--red);
    font-size: .95rem;
    line-height: 1;
}
.music-hint { color: var(--red-dark); font-weight: 600; white-space: nowrap; }
.music-volume { display: flex; align-items: center; gap: .3rem; margin: 0; font-weight: 400; }
.music-volume input { width: 90px; accent-color: var(--red); }
@media (max-width: 640px) {
    .music { right: 8px; bottom: 8px; }
    .music-volume input { width: 70px; }
}

/* While the next page is being fetched (smooth page changes, see nav.js) */
html.page-loading main { opacity: .6; transition: opacity .15s; }
html.page-loading, html.page-loading * { cursor: progress; }
