.winter-tools { display:flex; align-items:flex-end; gap:7px; color:#20382e; }
.winter-tools[hidden],.winter-recovery[hidden],.winter-ornament[hidden] { display:none; }
.winter-tools button { display:inline-flex; align-items:center; justify-content:center; min-width:45px; height:46px; padding:0 13px; gap:7px; border:1px solid #d3c8ac; border-radius:11px 11px 13px 13px; color:inherit; background:linear-gradient(160deg,#fffefa,#f2e8d5); box-shadow:inset 0 -3px #d9c8ab,0 3px 9px #272d2a22; font:750 .86rem/1 var(--sans,system-ui); cursor:pointer; }
.winter-tools .winter-music { color:#fff8e9; border-color:#304c40; background:linear-gradient(155deg,#4e695a,#30483e); box-shadow:inset 0 1px #779383,inset 0 -3px #263c31,0 3px 9px #272d2a22; }
.winter-symbol {font:700 1.15rem Georgia,serif;color:#ffe2a1;width:.85em;}
.winter-tools .winter-flake { font:1.35rem Georgia,serif; }
.winter-flake[aria-pressed="true"] { background:linear-gradient(155deg,#f7ffff,#cfe7e9);border-color:#abc8c8;color:#24535c;box-shadow:inset 0 -3px #a4c4c4,0 3px 9px #272d2a22; }
.winter-tools button:active { transform:translateY(2px); }
.winter-tools button:focus-visible,.winter-ornament:focus-visible {outline:3px solid #314dcd;outline-offset:3px;}
.winter-status { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
.winter-snow { position:fixed;inset:0;overflow:hidden;z-index:18;pointer-events:none; }
.winter-snow i { position:absolute;top:-2em;left:var(--x);color:#8daebc;font:normal var(--size)/1 Georgia,serif;text-shadow:0 1px #fff;animation:smk-snowfall var(--fall) linear var(--delay) infinite; }
@keyframes smk-snowfall { 0% {opacity:0;} 8%,80% {opacity:.63;} 100% {opacity:0;transform:translate(var(--wind),105vh) rotate(125deg);} }
html.winter-shell > body > .winter-snow {display:none;}
.winter-ornament {vertical-align:middle;position:relative;width:50px;height:48px;display:inline-flex;align-items:flex-end;justify-content:center;gap:2px;border:0;background:transparent;cursor:pointer;transform-origin:50% 0;}
.winter-ornament i { width:21px;height:23px;display:grid;place-items:center;border-radius:50%;position:relative;font:normal 14px Georgia;color:#fee8af;background:radial-gradient(at 32% 25%,#b77e67,#844538 70%);box-shadow:inset -1px -2px #593f3038;}
.winter-ornament i:nth-child(2) {background:radial-gradient(at 32% 25%,#8ba392,#395c4b 70%);align-self:center;width:17px;height:19px;}
.winter-ornament i::before {content:'';position:absolute;bottom:100%;height:11px;width:1px;background:#9e8457;left:50%;border-bottom:3px solid #af9057;}
@media(prefers-reduced-motion:reduce){.winter-snow,.winter-tools .winter-flake{display:none;}}
@media(max-width:540px){.winter-tools .winter-music{padding:0 12px;}.winter-tools [data-winter-label]{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}.winter-symbol{width:auto;}}
.winter-frame { display: block; position: fixed; inset: 0; z-index: 999; width: 100%; height: 100%; border: 0; background: var(--paper,#fffaf4); }
.winter-frame:not([data-ready]) { visibility: hidden; }
html.winter-shell, html.winter-shell body { overflow: hidden; }
.winter-recovery { position: fixed; bottom: 12px; left: 12px; z-index: 1000; background: #fffaf0; border-radius: 10px; padding: 12px; color: #263c35; }


.winter-tools .winter-flake {position:relative;width:46px;min-width:46px;padding:0;font:1.85rem/1 "Segoe UI Symbol",sans-serif;}
.winter-flake > span {display:grid;place-items:center;width:100%;height:100%;transform:translateY(-1px);}
.winter-tools .winter-music {min-width:140px;}
.winter-tools .winter-music[data-state="playing"] {background:linear-gradient(155deg,#526e5b,#354e40);box-shadow:inset 0 -2px #232f27,0 0 0 2px #e4dcb5;}
.winter-tools .winter-music[data-state="loading"] {background:#516158;}
.winter-symbol {font-family:"Segoe UI Symbol",sans-serif;font-size:1.18rem;}
.winter-status.winter-error {clip-path:none;width:min(16rem,80vw);height:auto;bottom:100%;left:0;padding:.42rem .6rem;margin-bottom:.5rem;border-radius:8px;background:#fff4e4;color:#762f24;font-size:.85rem;box-shadow:0 2px 8px #2b251b33;}
.winter-ornament {touch-action:manipulation;isolation:isolate;}
.winter-ornament i {transform-origin:50% 0;}
.header-ornament {position:absolute;z-index:2;top:0;left:calc(100% + 4px);width:32px;height:35px;}
.header-ornament i {width:15px;height:17px;font-size:10px;}
.header-ornament i:nth-child(2) {width:12px;height:14px;}
.header-ornament i::before {height:15px;}
.header-ornament i:nth-child(2)::before {height:8px;}
@media(max-width:900px) {
    .header-ornament {top:calc(100% + 4px);left:0;width:44px;height:37px;}
    .site-header:has(.mobile-nav[open]) .header-ornament {visibility:hidden;}
}
@media(min-width:901px) and (max-width:1060px) {.header-ornament {left:auto;right:0;top:calc(100% + 6px);height:32px;}}
.ornament-sparks {position:absolute;inset:0;pointer-events:none;z-index:2;}
.ornament-sparks b {position:absolute;top:51%;left:50%;color:#b87830;text-shadow:0 0 3px #ffefbd;font:700 1.1rem Georgia,serif;animation:ornament-pop .72s ease-out both;}
.ornament-sparks b:nth-child(2n) {color:#497862;}
@keyframes ornament-pop {0%{opacity:0;transform:scale(.2);}18%{opacity:1;}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(25deg) scale(.6);}}
@media(max-width:540px){.winter-tools .winter-music{min-width:46px;}.winter-symbol{width:auto;}}

.footer-toys {width:84px;height:48px;gap:4px;margin-left:8px;align-items:center;}
.footer-toys i,.footer-toys i:nth-child(2) {display:block;position:relative;width:36px;height:39px;border-radius:0;background:none;box-shadow:none;}
.footer-toys i::before,.footer-toys i::after {position:absolute;inset:0;width:auto;height:auto;border:0;content:'';}
.footer-toys .candy-cane::before {clip-path:path('M 28 14 H 21 V 12 A 4 4 0 0 0 13 12 V 34 A 3.5 3.5 0 0 1 6 34 V 12 A 11 11 0 0 1 28 12 Z');background:repeating-linear-gradient(140deg,#a93f49 0 4px,#fff7e4 4px 8px);filter:drop-shadow(1px 1px #8b4c37);transform:rotate(-14deg) translateY(2px);}
.footer-toys .rocking-horse::before {clip-path:path('M 4 14 L 10 17 16 15 22 8 22 4 26 8 29 9 35 14 33 18 27 16 25 22 26 27 29 31 24 32 19 25 15 25 12 31 7 31 10 25 7 21 3 21 Z');background:linear-gradient(145deg,#d19460,#8c4836);}
.footer-toys .rocking-horse::after {inset:23px 1px 4px 3px;border-bottom:3px solid #79583c;border-radius:0 0 60% 53%;background:none;}

.header-ornament {width:42px;height:38px;top:auto;bottom:0;left:calc(100% + 2px);gap:3px;}
.header-ornament i {flex:none;width:16px;height:18px;transform-origin:center -10px;}
.header-ornament i:nth-child(2) {flex:none;width:14px;height:15px;}
.header-ornament i::before {height:13px;}
.winter-ornament:is(:hover,:focus-visible) i {filter:brightness(1.2);}
@media(prefers-reduced-motion:no-preference) {
    .winter-ornament:is(:hover,:focus-visible) i {animation:ornament-sway .65s ease-out;}
    @keyframes ornament-sway {30%{transform:rotate(-10deg);}68%{transform:rotate(6deg);}}
}
@media(max-width:900px),(min-width:901px) and (max-width:1060px){
    .header-ornament {top:calc(100% - 8px);bottom:auto;left:auto;right:2px;width:44px;height:36px;}
    .header-ornament::before {content:'';position:absolute;top:8px;width:27px;height:1px;border-radius:1px;background:#c5b18a;}
    .header-ornament i::before {height:10px;}
}

.winter-symbol {position:relative;display:inline-block;flex:none;width:19px;height:19px;color:#ffe2a1;}
.winter-symbol::before {content:'♪' / '';position:absolute;inset:0;display:grid;place-items:center;font:750 1.16rem/1 Georgia,serif;}
.winter-music[data-state="playing"] .winter-symbol::before {content:'';inset:3px auto 3px 4px;width:4px;border-radius:2px;background:currentColor;box-shadow:7px 0 currentColor;}
.winter-music[data-state="loading"] .winter-symbol::before {content:'…' / '';font-family:system-ui;}
