/* Shared winter preview for the cabinet and the Windows application. */
body.winter-theme {
  background: linear-gradient(180deg, #092e39a3 0, #123e49a3 58%, #123e49bd 100%), url('winter-background.webp') center top / cover fixed;
}
body.winter-theme > header {
  position: relative;
  overflow: visible;
  padding-top: 43px;
  background: linear-gradient(125deg, #082934ed, #134a50e9 65%, #0b3340ed);
  border-bottom: 1px solid #b7dfda6b;
  box-shadow: 0 14px 36px #04232c66, inset 0 -1px #d7eddf1c;
  backdrop-filter: blur(14px);
}
body.winter-site > header { position: sticky; top: 0; z-index: 10; }
body.winter-theme .clinic-suite-nav {
  background: #072934f2;
  border-bottom-color: #65958f6b;
  color: #e9f7f3;
}
body.winter-theme .clinic-suite-nav .clinic-suite-name,
body.winter-theme .clinic-suite-nav > div > a { color: #e9f7f3; }
body.winter-theme .clinic-suite-nav .clinic-suite-name span { color: #a7c9ca; }
body.winter-theme .clinic-suite-nav > div > a:hover,
body.winter-theme .clinic-suite-nav a[aria-current=page] { background: #ffffff20; color: white; }
body.winter-theme .clinic-suite-nav .studio-development-ribbon { color: #5b410e; }
body.winter-theme .brand,
body.winter-theme .brand > span,
body.winter-theme .brand .brand-title { color: #bbdfe2; }
body.winter-theme .brand small { color: #a8cbcb; }
body.winter-theme .brand-sound { stroke: #82d3cd; }
body.winter-theme .brand-sound .voice-pulse { stroke: #e9be72; }
body.winter-theme .header-right, body.winter-theme .account { color: #e8f6f3; }
body.winter-theme .account-menu > summary { color: #e8f6f3; }
body.winter-theme main { position: relative; }
body.winter-theme main#app > h1 { color: #f4fbfa; text-shadow: 0 3px 14px #001c26a8; }
body.winter-theme main#app > .eyebrow { color: #e9cb8b; }
body.winter-theme main#app > p.muted { color: #d7e9e9; }

/* The wire hangs from the header; bulbs glow independently. */
.winter-garland { position: absolute; inset: 0 0 auto; height: 48px; z-index: 3; pointer-events: none; overflow: hidden; }
.winter-garland svg { position: absolute; inset: 0; width: 100%; height: 39px; overflow: visible; }
.winter-garland .garland-wire-shadow { fill: none; stroke: #061c20; stroke-width: 3.6; }
.winter-garland .garland-wire { fill: none; stroke: #527062; stroke-width: 1.65; }
.winter-bulb {
  position: absolute; left: var(--bulb-x); top: var(--bulb-y); width: 8px; height: 11px;
  transform: translateX(-50%) rotate(18deg); border-radius: 46% 46% 52% 52%; border: 1px solid #fff2c5;
  background: radial-gradient(circle at 35% 30%, #fffdf0 0 18%, #ffe8a3 35%, #e9a851 75%, #9c612c 100%);
  box-shadow: 0 0 5px 2px #ffdd80c8, 0 0 15px 4px #ffc76f6e;
  animation: winter-bulb-glow 2.5s ease-in-out var(--bulb-delay) infinite alternate;
}
.winter-bulb::before { content: ''; position: absolute; left: 2px; top: -5px; width: 4px; height: 4px; border-radius: 1px; background: #977e5b; }
.winter-bulb:nth-of-type(3n) { background: radial-gradient(circle at 35% 30%, #fffef4, #fff5d7 30%, #dfb877 75%, #9a7548); border-color: #fff3d3; box-shadow: 0 0 5px 2px #fff0c6ba, 0 0 15px 4px #e8c78c81; }
.winter-bauble {
  position: absolute; top: 13px; left: var(--bauble-x); width: var(--bauble-size); height: var(--bauble-size); border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, #fff8db 0, #f6d991 7%, #ad5136 23%, #7d2528 62%, #351f29 100%);
  box-shadow: inset -4px -6px 9px #1a1a1a8a, 0 7px 13px #00171b82, 0 0 10px #e3b97766;
}
.winter-bauble::before { content: ''; position: absolute; left: 48%; bottom: 100%; width: 1px; height: 12px; background: #d8bf88; }
.winter-bauble::after { content: ''; position: absolute; left: 37%; top: -4px; width: 27%; height: 5px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg,#977950,#f9da91,#977950); }
.winter-bauble--gold { background: radial-gradient(circle at 28% 22%, #fffde7, #ffdf90 21%, #c9913f 56%, #684528 100%); }
@keyframes winter-bulb-glow { from { opacity: .48; filter: brightness(.75); } to { opacity: 1; filter: brightness(1.25); } }

.winter-mark { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; overflow: visible; }
.winter-mark--site { width: 70px; height: 70px; }
.winter-mark--app { width: 50px; height: 50px; }
.winter-tree-real {
  position: absolute; z-index: 1; width: 82px; height: auto; left: -62px; bottom: -20px;
  filter: drop-shadow(0 4px 9px #001d20b8); animation: winter-tree-breathe 3.2s ease-in-out infinite alternate;
}
.winter-mark--app .winter-tree-real { width: 72px; left: -51px; bottom: -17px; }
.winter-mark > img:not(.winter-tree-real) { position: relative; z-index: 2; }
@keyframes winter-tree-breathe { from { filter: drop-shadow(0 4px 9px #001d20b8) brightness(.93); } to { filter: drop-shadow(0 4px 11px #e0b26a88) brightness(1.08); } }
.winter-word { position: relative; display: inline-block; color: #bbdfe2; text-shadow: 0 2px 7px #001d26b8; }
.winter-word::after {
  content: attr(data-snow-text); position: absolute; inset: 0; color: #f7fcff;
  clip-path: polygon(0 0,100% 0,100% 28%,93% 31%,84% 24%,72% 34%,60% 26%,48% 34%,34% 25%,21% 33%,8% 26%,0 32%);
  text-shadow: 0 1px 2px #bbd7df; pointer-events: none;
}
.winter-person { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 68px; height: 68px; }
.winter-person > img { width: 100%; height: 100%; object-fit: contain; }
.winter-person--app { width: 48px; height: 48px; margin-left: 2px; }
.winter-badge {
  position: absolute; z-index: 2; right: 13%; bottom: 4%; width: 25%; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid #e4c980;
  background: radial-gradient(circle at 30% 22%, #fffefa, #e9f1eb 72%, #c8d6d1);
  box-shadow: 0 2px 5px #001c2880, inset 0 0 0 1px #ffffffb3;
}
.winter-badge img { display: block; width: 77%; height: 77%; object-fit: contain; }

.clinic-snow { position: fixed; inset: 0; z-index: 11; overflow: hidden; pointer-events: none; user-select: none; contain: layout paint; }
.clinic-snowflake {
  position: absolute; top: -24px; left: var(--snow-x); width: var(--snow-size); height: var(--snow-size);
  opacity: 0; filter: drop-shadow(0 0 3px #dffaffb0);
  animation: clinic-snowfall var(--snow-duration) linear var(--snow-delay) infinite;
}
@keyframes clinic-snowfall {
  0% { transform: translate3d(0,-40px,0) rotate(0deg); opacity: 0; }
  8% { opacity: var(--snow-opacity); }
  20% { transform: translate3d(var(--snow-sway),20vh,0) rotate(55deg); }
  40% { transform: translate3d(calc(var(--snow-sway) * -.7),40vh,0) rotate(105deg); }
  60% { transform: translate3d(var(--snow-sway),60vh,0) rotate(160deg); }
  80% { transform: translate3d(calc(var(--snow-sway) * -.5),80vh,0) rotate(220deg); }
  92% { opacity: var(--snow-opacity); }
  100% { transform: translate3d(var(--snow-drift),calc(100vh + 48px),0) rotate(var(--snow-rotation)); opacity: 0; }
}
@media (max-width: 900px) {
  .winter-mark--site { width: 50px; height: 50px; }
  .winter-mark--site .winter-tree-real { width: 66px; left: -46px; bottom: -17px; }
}
@media (max-width: 700px) {
  body.winter-theme > header { padding-top: 37px; }
  body.winter-theme > header .brand { position: relative; z-index: 4; }
  .winter-mark--site { width: 36px; height: 36px; margin-left: 28px; }
  .winter-mark--site .winter-tree-real { width: 55px; left: -43px; bottom: -13px; }
  .winter-person--site { display: none; }
  .winter-garland { height: 35px; }
  .winter-garland svg { height: 32px; }
  .winter-garland .winter-bulb:nth-of-type(-n+5) { display: none; }
  .winter-bauble { display: none; }
}
@media (max-width: 480px) {
  .winter-garland .winter-bulb:nth-of-type(-n+8) { display: none; }
}
@media (max-width: 620px) { .winter-person--app { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .clinic-snow { display: none; }
  .winter-bulb, .winter-tree-real { animation: none; }
}
@media (pointer: fine) {
  html, body { cursor: url('winter-cursor.svg') 3 2, auto; }
  a, button, select, summary, [role="button"] { cursor: url('winter-cursor.svg') 3 2, pointer; }
  input, textarea, [contenteditable="true"] { cursor: text; }
}
