/* ColdHost seasonal decorations – see season.js. Nothing here takes a click or changes the layout. */
.chs-layer, .chs-layer * { pointer-events: none !important; user-select: none; }
.chs-layer { position: fixed; inset: 0; z-index: 52; overflow: hidden; contain: strict; animation: chs-in 1.2s ease-out both; }
@keyframes chs-in { from { opacity: 0; } to { opacity: 1; } }
.chs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* String along the top edge. */
.chs-string { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 20px; }
.chs-string-bulbs {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='10'%3E%3Cpath d='M0 1 Q22 11 44 1' fill='none' stroke='%23303744' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0;
}
.chs-string-flags {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='8'%3E%3Cpath d='M0 1 Q19 8 38 1' fill='none' stroke='%23a89a86' stroke-width='1' opacity='.7'/%3E%3C/svg%3E") repeat-x 0 0;
}
/* New Year / Black Friday: a thin golden line with a slow shine running along it. */
.chs-string-gold {
    height: 2px;
    background: linear-gradient(90deg, rgba(233,196,106,0) 0%, rgba(233,196,106,.55) 20%, rgba(255,236,179,.95) 50%, rgba(233,196,106,.55) 80%, rgba(233,196,106,0) 100%) 0 0 / 50% 100% repeat-x,
                rgba(233,196,106,.28);
    animation: chs-shine 6s linear infinite;
}
@keyframes chs-shine { from { background-position: -50% 0, 0 0; } to { background-position: 150% 0, 0 0; } }

.chs-bulb {
    position: absolute; top: 5px; width: 5px; height: 8px; margin-left: -2.5px; border-radius: 45% 45% 50% 50% / 40% 40% 60% 60%;
    background: var(--c); box-shadow: 0 0 5px 0 var(--c); opacity: .85;
    animation: chs-twinkle 2.8s ease-in-out infinite;
}
.chs-bulb::before { content: ''; position: absolute; top: -2px; left: 1px; width: 3px; height: 3px; border-radius: 1px; background: #4b5563; }
@keyframes chs-twinkle { 0%, 100% { opacity: .85; } 50% { opacity: .35; box-shadow: none; } }
.chs-pumpkin { position: absolute; top: 4px; margin-left: -7px; transform-origin: 50% 0; animation: chs-flutter 3.4s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(240,122,26,.45)); }
.chs-pumpkin svg { display: block; }
.chs-flag {
    position: absolute; top: 3px; width: 0; height: 0; margin-left: -6px;
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 11px solid var(--c);
    opacity: .75; transform-origin: 50% 0; animation: chs-flutter 3.4s ease-in-out infinite;
}
@keyframes chs-flutter { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* Thin coloured line at the top (Mrazík, Neon). */
.chs-string-line { height: 2px; opacity: .8; }
.chs-neonline { background-size: 200% 100% !important; animation: chs-neon 6s linear infinite; box-shadow: 0 0 8px rgba(162,89,255,.6), 0 0 14px rgba(0,229,255,.35); }
@keyframes chs-neon { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* Polární záře / Neon: a soft glow over the top of the page that slowly drifts. */
.chs-glow {
    position: absolute; left: -20%; right: -20%; top: -40px; height: 260px; opacity: .16; filter: blur(28px);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
    animation: chs-drift 22s ease-in-out infinite alternate;
}
.chs-glow-aurora, .chs-glow-green { opacity: .24; background: radial-gradient(40% 70% at 22% 40%, #34d399, transparent 70%), radial-gradient(35% 60% at 52% 30%, #22d3ee, transparent 70%), radial-gradient(40% 70% at 80% 45%, #a78bfa, transparent 70%); }
.chs-glow-neon { opacity: .14; background: radial-gradient(40% 70% at 30% 30%, #00e5ff, transparent 70%), radial-gradient(40% 70% at 70% 30%, #ff3ea5, transparent 70%); }
.chs-glow-frost { opacity: .12; background: radial-gradient(50% 80% at 50% 10%, #a0d7ff, transparent 70%); }
.chs-glow-sakura { opacity: .12; background: radial-gradient(40% 70% at 80% 20%, #ff9fc0, transparent 70%); }
.chs-glow-ocean { opacity: .18; background: radial-gradient(45% 70% at 30% 20%, #22d3ee, transparent 70%), radial-gradient(40% 70% at 75% 25%, #0ea5e9, transparent 70%); }
.chs-glow-night { opacity: .14; background: radial-gradient(50% 80% at 70% 10%, #3b4a8f, transparent 70%); }
.chs-glow-forest { opacity: .12; background: radial-gradient(50% 80% at 40% 20%, #65a30d, transparent 70%); }
.chs-glow-lava { opacity: .2; background: radial-gradient(45% 70% at 35% 15%, #ff6a1a, transparent 70%), radial-gradient(40% 70% at 70% 20%, #dc2626, transparent 70%); }
.chs-glow-gold { opacity: .12; background: radial-gradient(50% 80% at 50% 0%, #e9c46a, transparent 70%); }
.chs-glow-galaxy { opacity: .24; background: radial-gradient(40% 70% at 25% 30%, #7c3aed, transparent 70%), radial-gradient(35% 60% at 60% 20%, #db2777, transparent 70%), radial-gradient(40% 70% at 85% 35%, #2563eb, transparent 70%); }
.chs-glow-champion { opacity: .16; background: radial-gradient(40% 70% at 30% 20%, #a259ff, transparent 70%), radial-gradient(40% 70% at 70% 15%, #e9c46a, transparent 70%); }
@keyframes chs-drift { from { transform: translateX(-6%) scaleY(1); } to { transform: translateX(6%) scaleY(1.15); } }

/* Corner pieces (ice, cherry branch, moon, gold filigree). */
.chs-corner { position: absolute; top: 0; }
.chs-corner svg { display: block; width: 100%; height: auto; }
.chs-corner-right { right: 0; }
.chs-corner-left { left: 0; }
.chs-corner-left.chs-corner-ice svg, .chs-corner-left.chs-corner-filigree svg { transform: scaleX(-1); }
.chs-corner-right.chs-corner-filigree svg { transform: scaleX(-1); }
.chs-corner-left.chs-corner-filigree svg { transform: none; }
.chs-corner-ice { width: 150px; opacity: .85; }
.chs-corner-branch { width: 190px; opacity: .9; transform-origin: 100% 0; animation: chs-sway 7s ease-in-out infinite; }
.chs-corner-moon { width: 84px; top: 10px; right: 18px; opacity: .9; }
.chs-corner-filigree { width: 90px; opacity: .9; }
@keyframes chs-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(1.5deg); } }

/* Ocean: two soft waves along the top edge. */
.chs-string-wave { height: 14px; }
.chs-string-wave span { position: absolute; inset: 0; background-repeat: repeat-x; background-size: 120px 14px; }
.chs-wave-a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14'%3E%3Cpath d='M0 6 Q30 14 60 6 T120 6 V0 H0 Z' fill='rgba(34,211,238,.35)'/%3E%3C/svg%3E"); animation: chs-waves 9s linear infinite; }
.chs-wave-b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14'%3E%3Cpath d='M0 4 Q30 12 60 4 T120 4 V0 H0 Z' fill='rgba(14,165,233,.3)'/%3E%3C/svg%3E"); animation: chs-waves 14s linear infinite reverse; }
@keyframes chs-waves { from { background-position: 0 0; } to { background-position: 120px 0; } }

/* Glow behind the logo (Neon, Láva, Galaxie) and the terminal cursor. */
.chs-hat-ring { border-radius: 50%; filter: blur(8px); opacity: .55; animation: chs-pulse 3.2s ease-in-out infinite; }
.chs-ring-neon { background: radial-gradient(circle, rgba(0,229,255,.9), rgba(255,62,165,.5) 45%, transparent 70%); }
.chs-ring-lava { background: radial-gradient(circle, rgba(255,140,40,.95), rgba(220,38,38,.5) 45%, transparent 70%); }
.chs-ring-galaxy { background: radial-gradient(circle, rgba(196,165,255,.9), rgba(124,58,237,.5) 45%, transparent 70%); }
@keyframes chs-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .65; } }
.chs-hat-ring { mix-blend-mode: screen; }
.chs-hat-cursor { background: #4ade80; box-shadow: 0 0 6px #4ade80; filter: none; animation: chs-blink 1.05s steps(1) infinite; }
@keyframes chs-blink { 50% { opacity: 0; } }

/* Picture over the logo (positioned by season.js). */
.chs-hat { position: absolute; left: 0; top: 0; display: none; transform-origin: 30% 90%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.chs-hat svg { display: block; width: 100%; height: auto; }
.chs-hat-heart svg { animation: chs-beat 2.4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes chs-beat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.14); } 90% { transform: scale(.98); } }

/* Halloween: small cobweb in the top right corner with a spider. */
.chs-web { position: absolute; right: 0; top: 0; width: 96px; height: 96px; }
.chs-web > svg { stroke: rgba(226,232,240,.3); }
.chs-spider { position: absolute; right: 26px; top: 0; display: flex; flex-direction: column; align-items: center; animation: chs-spider 7s ease-in-out infinite; transform-origin: 50% 0; }
.chs-thread { display: block; width: 1px; height: 46px; background: rgba(226,232,240,.3); }
@keyframes chs-spider { 0%, 100% { transform: translateY(-12px) rotate(-2deg); } 50% { transform: translateY(4px) rotate(2deg); } }
.chs-bat { position: absolute; left: 0; width: 36px; opacity: .9; filter: drop-shadow(0 0 5px rgba(240,122,26,.35)); animation: chs-bat 9s linear forwards; }
.chs-bat svg { display: block; width: 100%; animation: chs-flap .3s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes chs-bat {
    from { transform: translate(calc(var(--dir) * -50vw + 50vw - 18px - var(--dir) * 30vw), 0); }
    50% { transform: translate(50vw, -30px); }
    to { transform: translate(calc(var(--dir) * 50vw + 50vw + var(--dir) * 30vw), 10px); }
}
@keyframes chs-flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }

@media (max-width: 767px) {
    .chs-corner-ice { width: 100px; }
    .chs-corner-branch { width: 120px; }
    .chs-corner-moon { width: 56px; right: 10px; }
    .chs-corner-filigree { width: 60px; }
    .chs-web { width: 64px; height: 64px; }
    .chs-spider { right: 18px; }
    .chs-thread { height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .chs-layer, .chs-glow, .chs-neonline, .chs-corner-branch, .chs-wave-a, .chs-wave-b, .chs-hat-ring, .chs-hat-cursor, .chs-bulb, .chs-flag, .chs-pumpkin, .chs-spider, .chs-bat, .chs-bat svg, .chs-string-gold, .chs-hat svg { animation: none !important; }
}
@media print { .chs-layer { display: none !important; } }
