/* A cozy Christmas village behind the game, with a readable frosted play area. */
:root {
  --bg:#eef8fc; --ink:#28465b; --muted:#4d6d81;
  --line:#c4dbe6; --card:#fff; --key:#d9eaf2; --green:#397b72;
}
body {
  background:#a7d6e9 url(winter-village.webp) center bottom / cover fixed no-repeat;
  isolation:isolate;
}
header,main,footer { position:relative; z-index:1; }
header {
  background:#f7fcffe8;
  border-bottom:1px solid #ffffffb0;
  box-shadow:0 3px 16px #47738c14;
}
main {
  width:min(94%,520px);
  margin:14px auto auto;
  background:linear-gradient(145deg,#ffffffcf,#effaffbf);
  border:1px solid #ffffffd9;
  border-radius:24px;
  box-shadow:0 12px 40px #47738c20;
  backdrop-filter:blur(7px);
}
.brand .logo i:nth-child(2){background:#e990a0}
.brand .logo i:nth-child(3){background:#81bacc}
.brand .logo i:nth-child(4){background:#f1c67d}
.winter-badge{display:inline-flex;align-items:center;gap:5px;background:#fff9f3;border:1px solid #f1d9c6;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:750;color:#9a5964;letter-spacing:.2px;white-space:nowrap}
.tile:not(.correct,.present,.absent){background:#ffffffdc;border-color:#b8d7e6}
.tile.filled{border-color:#638fa5!important}
.key:not(.correct,.present,.absent):hover{background:#c1dce8}
.keyboard .key{box-shadow:0 2px 0 #b8d3df}
.status{color:#3d6178}
footer{margin:16px auto 8px;width:max-content;max-width:94%;padding:7px 14px;background:#ffffffdc;border:1px solid #ffffffee;border-radius:20px;color:#48687a}
#snowfall{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0}
#snowfall i{position:absolute;display:block;top:-30px;left:var(--x);width:var(--size);height:var(--size);background:white;border-radius:50%;opacity:var(--opacity);animation:snowfall var(--duration) linear var(--delay) infinite;filter:drop-shadow(0 0 2px #ffffff77)}
#snowfall i.flake{background:none;width:auto;height:auto;color:white;font-size:var(--size);line-height:1;font-style:normal}
@keyframes snowfall{0%{transform:translate3d(0,-30px,0) rotate(0)}100%{transform:translate3d(var(--drift),calc(100dvh + 50px),0) rotate(150deg)}}
body.dark{--bg:#25364d;--ink:#eef5ff;--muted:#b8cde0;--line:#506981;--card:#243951;--key:#38546c;--green:#69ac9c;background:linear-gradient(#14243bb0,#182d42a0),url(winter-village.webp) center bottom / cover fixed no-repeat}
.dark header{background:#263b51e8;border-color:#6688a0}
.dark main{background:linear-gradient(145deg,#20354bde,#253a4dde);border-color:#63869c80}
.dark .tile:not(.correct,.present,.absent){background:#263d53;border-color:#57758a}
.dark .keyboard .key{box-shadow:0 2px 0 #20344a}
.dark .status{color:#c9def0}
.dark .key:not(.correct,.present,.absent):hover{background:#496981}
.dark footer{background:#273b50dd;border-color:#66889c;color:#d3e6f3}
.dark .winter-badge{background:#3d3850;border-color:#6f5573;color:#ffd9df}
@media(max-width:540px){
  main{margin:10px auto auto;border-radius:18px}
  .winter-badge{display:none}
  header{padding-inline:14px}
  .brand{gap:6px}
}
@media(max-height:760px){main{margin-top:8px}footer{margin-top:8px}}
@media(prefers-reduced-motion:reduce){#snowfall i{animation:none;top:var(--still);transform:none}}
