.test-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;background:#151923;color:#f9eacb;text-align:center;padding:7px;font:12px/1.4 system-ui;letter-spacing:.08em}.test-banner a{color:#f7c782}body{padding-bottom:46px!important}
html[data-season=halloween]{--paper:#fff0d4;--ink:#35233e;--cranberry:#843e21;--outline:#b89169;--muted:#65506d}
html[data-season=halloween] body{background:radial-gradient(ellipse at 75% 0,#553654,#171526 70%);color:#35233e}
html[data-season=halloween] .postcard{background:linear-gradient(145deg,#fff1d7,#e8c99c) padding-box,repeating-linear-gradient(135deg,#773f21 0 12px,#f2d6a5 12px 23px,#4b365c 23px 35px,#f2d6a5 35px 46px) border-box;box-shadow:0 20px 80px #0008}
html[data-season=halloween] :is(h1 em,.welcome,.replay){color:#793b22}
html[data-season=halloween] .stamp{background:#35233e;color:#ffc878;border-color:#d49c5b}
html[data-season=halloween] .enter{background:#793b22}
html[data-season=halloween] header{background:#211b30;color:#ffe4b6}
html[data-season=halloween] header a{color:#ffe4b6}
html[data-season=halloween] .village-heading{color:#ffdb9e}
html[data-season=halloween] .building{--wall:#685078!important;--sky:#211d35!important;--sky-glow:#6e426f!important;background:#efdab9;border-color:#957399;color:#35233e}
html[data-season=halloween] .building:nth-child(3n){--wall:#566752!important;--sky-glow:#596b49!important}
html[data-season=halloween] .building:nth-child(3n+1){--wall:#876045!important;--sky-glow:#80512f!important}
html[data-season=halloween] .building .scene{position:relative;background:radial-gradient(circle at 78% 25%,#ffe4a5 0 14px,transparent 15px),linear-gradient(140deg,var(--sky),var(--sky-glow));isolation:isolate}
html[data-season=halloween] .building .scene::before{content:"";position:absolute;inset:auto 0 0;height:14px;background:#3a3542}
html[data-season=halloween] .building .house{width:100px;height:57px;align-self:auto;margin:28px 0 10px;border:2px solid #302737;border-bottom:5px solid #302737;border-radius:2px;background:repeating-linear-gradient(0deg,transparent 0 10px,#0002 11px 12px),var(--wall);box-shadow:0 6px 0 #161621}
html[data-season=halloween] .building .house::before{left:-13px;bottom:100%;width:122px;height:46px;background:repeating-linear-gradient(-15deg,#31283e 0 7px,#48334f 8px 10px);clip-path:polygon(44% 0,100% 100%,0 100%);border:0;border-radius:0}
html[data-season=halloween] .building .house::after{left:38px;bottom:0;width:22px;height:29px;border:2px solid #d48b42;border-radius:13px 13px 0 0;background:#241d30;transform-origin:left}
html[data-season=halloween] .building .window{top:17px;width:12px;height:18px;border:2px solid #332539;background:#ffcd64;box-shadow:0 0 12px #ffc36099;clip-path:none;border-radius:8px 8px 0 0}
html[data-season=halloween] .building .window:first-child{left:10px;right:auto}
html[data-season=halloween] .building .window:nth-child(2){right:10px;left:auto}
html[data-season=halloween] .building .building-detail{inset:auto auto -2px -18px;width:24px;height:21px;border:0;border-radius:45%;background:repeating-linear-gradient(90deg,#db7a30 0 6px,#a85329 7px 8px);box-shadow:0 0 15px #f99b3344;filter:none;clip-path:none;z-index:3;animation:none}
html[data-season=halloween] .building .building-detail::before{content:"";position:absolute;left:11px;top:-5px;width:4px;height:7px;background:#67764a;border:0;box-shadow:none}
html[data-season=halloween] .building .building-detail::after{content:"";position:absolute;inset:7px 5px 4px;background:#ffe991;clip-path:polygon(0 0,28% 0,28% 28%,0 28%,0 0,72% 0,100% 0,100% 28%,72% 28%,72% 0,0 66%,100% 66%,75% 100%,25% 100%);border:0;width:auto;height:auto;animation:none}
html[data-season=halloween] .building:nth-child(4n) .house{width:74px;height:76px;margin-top:10px}
html[data-season=halloween] .building:nth-child(4n) .house::before{width:96px;height:52px}
html[data-season=halloween] .building:nth-child(4n) .house::after{left:24px}
html[data-season=halloween] .building:nth-child(4n+2) .house::before{clip-path:polygon(0 20%,15% 20%,15% 0,30% 0,30% 20%,45% 20%,45% 0,60% 0,60% 20%,75% 20%,75% 0,90% 0,90% 20%,100% 20%,100% 100%,0 100%);height:22px}
html[data-season=halloween] .christmas-tree{display:none!important}
html[data-season=halloween] .building-motion .building .building-detail{animation:pumpkin-glow 3s ease-in-out infinite alternate}
@keyframes pumpkin-glow{to{filter:drop-shadow(0 0 7px #ffb650)}}
html[data-season=halloween] :is(.snow,#title-snow){display:none!important}
.halloween-atmosphere{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:-1;background:radial-gradient(ellipse at 30% 100%,#ba9ccb25,transparent 60%)}
.halloween-atmosphere::before,.halloween-atmosphere::after{content:"";position:absolute;bottom:-10%;left:-30%;width:150%;height:50%;background:radial-gradient(ellipse,#cab7d41f,transparent 65%);animation:drifting-fog 22s ease-in-out infinite alternate}
.halloween-atmosphere::after{bottom:30%;animation-delay:-12s;opacity:.6}
@keyframes drifting-fog{to{transform:translateX(20%)}}
.halloween-atmosphere .bat{position:absolute;top:12%;left:6%;width:48px;height:20px;background:#0e0e1b;clip-path:polygon(0 0,25% 20%,40% 65%,45% 25%,50% 45%,55% 25%,60% 65%,75% 20%,100% 0,90% 80%,68% 70%,50% 100%,32% 70%,10% 80%);animation:bat-drift 14s ease-in-out infinite alternate}
.halloween-atmosphere .bat:nth-child(2){top:35%;left:87%;width:34px;animation-delay:-5s}.halloween-atmosphere .bat:nth-child(3){top:70%;left:4%;width:28px;animation-delay:-9s}
@keyframes bat-drift{to{transform:translate(30px,-25px) rotate(10deg)}}
html[data-season=halloween] body{isolation:isolate}
html[data-season=halloween] :is(.our-story,dialog,#panda-letter,.radio){background:#fff0d4;color:#35233e}
html[data-season=halloween] .panda-countdown{color:#6a3b25;border-color:#8b593b}
@media(prefers-reduced-motion:reduce){.halloween-atmosphere *,.halloween-atmosphere::before,.halloween-atmosphere::after,html[data-season=halloween] .building-motion .building .building-detail{animation:none!important}}
@media(max-width:600px){.test-banner{font-size:10px}.halloween-atmosphere .bat:nth-child(3){display:none}}

html:is([data-season=spring],[data-season=summer]) {
  --paper:#fffaf0;--ink:#253e33;--cranberry:#8b3e5a;
  --outline:#a2b498;--muted:#475d50;
}
html:is([data-season=spring],[data-season=summer]) body {
  color:var(--ink);
  background:radial-gradient(ellipse at 80% 0,#fff1c6,transparent 36rem),
    linear-gradient(#c9e6e2,#e5edce 34rem,#c7ddb9);
}
html:is([data-season=spring],[data-season=summer]) .postcard {
  background:
    radial-gradient(ellipse at 0 0,#f4cad6,transparent 38%) padding-box,
    radial-gradient(ellipse at 100% 100%,#d7e7b8,transparent 38%) padding-box,
    linear-gradient(#fffaf0,#fffaf0) padding-box,
    repeating-linear-gradient(135deg,#a85b76 0 12px,#fffaf0 12px 23px,
      #6e9579 23px 35px,#fffaf0 35px 46px) border-box;
  box-shadow:0 22px 50px #45685536;
}
html:is([data-season=spring],[data-season=summer]) :is(h1 em,.welcome,.replay,.brand) {color:var(--cranberry)}
html:is([data-season=spring],[data-season=summer]) .intro {color:var(--muted)}
html:is([data-season=spring],[data-season=summer]) .enter {background:#30614c}
html:is([data-season=spring],[data-season=summer]) .enter:hover {background:#254b3b}
html:is([data-season=spring],[data-season=summer]) .stamp {background:#f4dce3;border-color:#a85b76}
html:is([data-season=spring],[data-season=summer]) header {background:#fffaf0;border-color:#a2b498}
html:is([data-season=spring],[data-season=summer]) .village .village-heading h2 {color:#253e33}
html:is([data-season=spring],[data-season=summer]) .building {
  --spring-wall:#f3c5a2;--spring-roof:#a36168;--spring-flower:#d37b9c;
}
html:is([data-season=spring],[data-season=summer]) .building:nth-child(3n+2) {
  --spring-wall:#f6df9b;--spring-roof:#587c62;--spring-flower:#e3ad41;
}
html:is([data-season=spring],[data-season=summer]) .building:nth-child(3n) {
  --spring-wall:#dad0ea;--spring-roof:#776594;--spring-flower:#a080bc;
}
html:is([data-season=spring],[data-season=summer]) .building .scene {
  position:relative;grid-template-columns:1fr;
  background:radial-gradient(circle at 81% 20%,#fff3be 0 9px,transparent 10px),
    radial-gradient(ellipse 85% 100% at 18% 124%,#9fc18d 0 62%,transparent 63%),
    radial-gradient(ellipse 85% 100% at 85% 130%,#bad19a 0 69%,transparent 70%),
    linear-gradient(#c4e4e7,#edf1dc);
}
html:is([data-season=spring],[data-season=summer]) .building .scene::before,
html:is([data-season=spring],[data-season=summer]) .building .scene::after {
  content:"";position:absolute;inset:auto;bottom:13px;left:13%;width:6px;height:6px;
  border:0;border-radius:50%;background:var(--spring-flower);
  box-shadow:10px -6px var(--spring-flower),19px 1px #fff8df;
  opacity:1;filter:none;animation:none;transform:none;
}
html:is([data-season=spring],[data-season=summer]) .building .scene::after {left:auto;right:20%;bottom:20px}
html:is([data-season=spring],[data-season=summer]) .building-motion .building .scene::after {
  animation:spring-flowers 2.8s ease-in-out infinite alternate;
}
@keyframes spring-flowers {to{transform:translate(2px,-2px)}}
html:is([data-season=spring],[data-season=summer]) .building .house {
  z-index:1;background:var(--spring-wall);box-shadow:0 6px 0 -3px #51785467;
}
html:is([data-season=spring],[data-season=summer]) .building .house::before {
  background:linear-gradient(var(--spring-roof) 82%,#645548 82%);
}
html:is([data-season=spring],[data-season=summer]) .building .house::after {background:#52755f}
html:is([data-season=spring],[data-season=summer]) .building .window {background:#fff0b9;box-shadow:none}
html:is([data-season=spring],[data-season=summer]) .building :is(.building-detail,.christmas-tree) {display:none}
html:is([data-season=spring],[data-season=summer]) :is(.snow:not([hidden]) .flake,#title-snow span) {
  background:#cc779b;border-radius:70% 18% 65% 42%;
  width:calc(var(--size) * 1.5);box-shadow:none;outline:0;
}
html[data-season=spring] :is(.snow:not([hidden]) .flake,#title-snow span):nth-child(3n) {background:#ae8dc4}
html:is([data-season=spring],[data-season=summer]) .panda-letter-open {color:var(--cranberry)}
@media(prefers-reduced-motion:reduce) {
  html:is([data-season=spring],[data-season=summer]) .building-motion .building .scene::after {animation:none}
}


html[data-season=summer] {
  --paper:#fff7df;--ink:#193e45;--cranberry:#a0442e;--outline:#a3b8aa;--muted:#3c5658;
}
html[data-season=summer] body {
  background:radial-gradient(ellipse at 82% 0,#ffde83,transparent 32rem),
    linear-gradient(#9adbdc,#c0e7dc 26rem,#efd5a0 72rem);
}
html[data-season=summer] .postcard {
  background:radial-gradient(ellipse at 100% 100%,#99d6cb,transparent 45%) padding-box,
    radial-gradient(ellipse at 0 0,#ffe1a0,transparent 44%) padding-box,
    linear-gradient(#fff9eb,#fff9eb) padding-box,
    repeating-linear-gradient(135deg,#cc7250 0 12px,#fff9eb 12px 23px,
      #438d8e 23px 35px,#fff9eb 35px 46px) border-box;
}
html[data-season=summer] .stamp {background:#ffe9a4;border-color:#a96b29}
html[data-season=summer] .enter {background:#245b61}
html[data-season=summer] .enter:hover {background:#19464b}
html[data-season=summer] .building {
  --spring-wall:#fac39e;--spring-roof:#ad523e;--spring-flower:#eea455;
}
html[data-season=summer] .building:nth-child(3n+2) {
  --spring-wall:#ffdc99;--spring-roof:#316f76;--spring-flower:#fff1ae;
}
html[data-season=summer] .building:nth-child(3n) {
  --spring-wall:#a9dcd3;--spring-roof:#586a95;--spring-flower:#e99578;
}
html[data-season=summer] .building .scene {
  background:radial-gradient(circle at 82% 23%,#fff0a7 0 12px,transparent 13px),
    radial-gradient(ellipse at 44% 115%,#e9ce94 0 39%,transparent 40%),
    linear-gradient(#96d8df 0 58%,#5eaaa9 58% 65%,#afe1d6 65% 67%,#69b3ae 67% 77%,#edd29a 77%);
}
html[data-season=summer] :is(.snow:not([hidden]) .flake,#title-snow span) {
  background:#ffda62;border-radius:50%;box-shadow:0 0 7px 2px #c8833560;outline:0;
  animation:summer-fireflies var(--duration) var(--delay) ease-in-out infinite;
}
@keyframes summer-fireflies {
  0% {opacity:0;transform:translate3d(0,100vh,0)}
  28%,66% {opacity:.8}
  48% {opacity:.25}
  100% {opacity:0;transform:translate3d(var(--drift),0,0)}
}
