:root {
  color-scheme: dark;
  --paper: #fff3dc;
  --muted: #dac5a9;
  --gold: #ebc68a;
  --line: #a67a4c70;
  --panel: #30231e;
  font: 100%/1.5 "Segoe UI", system-ui, sans-serif;
  background: #1d1613;
  color: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}
.eyebrow {
  margin: 0 0 .5rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}
h2 { margin: .2rem 0 1.1rem; font-size: clamp(1.85rem, 5vw, 2.5rem); }
.room-scroll {
  width: 100%;
  height: 100dvh;
  overflow: auto;
  background: #402a1d;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.room-scroll:focus-visible { outline-offset: -3px; }
.room {
  position: relative;
  width: max(100%, 195.33dvh);
  aspect-ratio: 1672 / 856;
  overflow: hidden;
}
.backdrop, .backdrop-repairs, .dog-corner, .snow, .hearth, .decorations, .gift-objects, .wreath-wax, .ambience, .window-fixtures, .markers { position: absolute; inset: 0; width: 100%; aspect-ratio: 1672 / 941; }
.backdrop { height: auto; display: block; pointer-events: none; user-select: none; }
.table-vase-layer { position: absolute; inset: 0; width: 100%; aspect-ratio: 1672 / 941; pointer-events: none; }
.table-vase-art { position: absolute; }
.table-vase-art::before {
  content: "";
  position: absolute;
  left: 15%; right: 12%; bottom: 1%; height: 5%;
  background: radial-gradient(ellipse, #311a12b0, transparent 72%);
}
.table-vase-art img {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 97%;
  transition: transform .18s ease;
}
.room:has(.marker[data-motif="vase"]:focus-visible) .table-vase-art img { transform: scale(1.13); }
@media (hover: hover) {
  .room:has(.marker[data-motif="vase"]:hover) .table-vase-art img { transform: scale(1.13); }
}
.room-tone {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 52% 48%, #0e142330 15%, #10162765 100%);
  opacity: 1; transition: opacity 1s ease-out;
}
.hearth-globe-layer, .ship-shelf-layer, .cookie-tin-layer {
  position: absolute; inset: 0; width: 100%; aspect-ratio: 1672 / 941; pointer-events: none;
}
.ship-shelf, .ship-model { position: absolute; pointer-events: none; }
.ship-model { transform-origin: 42% 92%; }
.room:has(.marker[data-motif="schiff"]:focus-visible) .ship-model { transform: scale(1.085); }
@media (hover: hover) {
  .room:has(.marker[data-motif="schiff"]:hover) .ship-model { transform: scale(1.085); }
}
@media (prefers-reduced-motion: no-preference) {
  .ship-model { transition: transform .22s ease-out; }
}
.marker[data-motif="schiff"] .marker-number { top: 8%; }
.cookie-tin-art { position: absolute; transform-origin: 50% 85%; }
.room:has(.marker[data-motif="keksdose"]:focus-visible) .cookie-tin-art { transform: scale(1.09); }
@media (hover: hover) {
  .room:has(.marker[data-motif="keksdose"]:hover) .cookie-tin-art { transform: scale(1.09); }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-tin-art { transition: transform .22s ease-out; }
}
.marker[data-motif="keksdose"] .marker-number { top: 8%; }
.hearth-globe {
  position: absolute; pointer-events: none;
  transform-origin: 52% 75%;
  transition: transform .22s ease-out;
}
.room:has(.marker[data-motif="schneekugel"]:focus-visible) .hearth-globe { transform: scale(1.08); }
@media (hover: hover) {
  .room:has(.marker[data-motif="schneekugel"]:hover) .hearth-globe { transform: scale(1.08); }
}
.marker[data-motif="schneekugel"] .marker-number { top: -.2rem; }
.marker[data-motif="schneekugel"]:focus-visible { outline: none; }
.room-candles .room-tone { opacity: .06; }
.motion-paused .room-tone { transition: none; }
@media (prefers-reduced-motion: reduce) { .room-tone { transition: none; } }
.plane-shelf {
  position: absolute;
  left: 17.942584%;
  top: 26.869159%;
  width: 14.65311%;
  height: auto;
  clip-path: polygon(42% 4%, 59% 11%, 96.5% 19%, 97% 46%, 95% 48.5%, 46% 40%, 40% 35%);
  pointer-events: none;
  user-select: none;
}
.marker[data-motif="flugzeug"], .marker[data-motif="pokal"], .marker[data-motif="zelt"], .marker[data-motif="caffrey"] { cursor: pointer; }
.marker[data-motif="flugzeug"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 7% 4% at 24% 92%, #190b058a, transparent),
    radial-gradient(ellipse 8% 4% at 42% 98%, #190b05aa, transparent);
  pointer-events: none;
}
.model-plane, .trophy-art, .tent-art, .bone-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 43% 97%;
  pointer-events: none;
  filter: brightness(.82) sepia(.12) drop-shadow(1px 1px 1px #1b100a8c);
  transition: transform .17s ease;
}
.model-plane {
  rotate: -7deg;
  filter: brightness(.77) sepia(.25) saturate(.88);
}
.trophy-art {
  transform-origin: 50% 98%;
  filter: brightness(.93) drop-shadow(1px 2px 1px #21150f8c);
}
.bone-art {
  transform-origin: 50% 95%;
  rotate: -13deg;
  filter: brightness(.9) sepia(.17) drop-shadow(0 2px 1px #420e08b0);
}
.blanca {
  position: absolute;
  pointer-events: none;
  transform-origin: 48% 89%;
  transition: transform .2s ease;
}
.bowl-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: 50% 92%;
  transition: transform .2s ease;
  background: radial-gradient(ellipse 48% 21% at 50% 87%, #291807d4, transparent);
}
.bowl-art::before, .bowl-art::after {
  content: "";
  position: absolute;
}
.bowl-art::before {
  inset: 22% 5% 11%;
  border-radius: 50% 50% 45% 45% / 25% 25% 60% 60%;
  background: linear-gradient(105deg, #313c26, #61704b 35%, #3f5035 67%, #273520);
  box-shadow: inset 0 -2px 2px #211a12a0, inset 0 1px 3px #9a946172;
}
.bowl-art::after {
  inset: 8% 11% 46%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 44% 68%, #68664a, #474d38 58%, #a4a173 65%, #626a4e 76%);
  box-shadow: 0 1px 2px #211c16a0;
}
.marker[data-motif="blanca"]:focus-visible .bowl-art,
.room:has(.marker[data-motif="blanca"]:focus-visible) .blanca { transform: scale(1.1); }
@media (hover: hover) {
  .marker[data-motif="blanca"]:hover .bowl-art,
  .room:has(.marker[data-motif="blanca"]:hover) .blanca { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .blanca, .bowl-art { transition: none; }
}
.marker[data-motif="caffrey"]:focus-visible .bone-art { transform: scale(1.23); }
.tent-art {
  transform-origin: 63% 100%;
  filter: brightness(.88) sepia(.16) saturate(.89);
}
.tent-art::before, .tent-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("zelt.png") center bottom / contain no-repeat;
}
.tent-art::before { clip-path: inset(0 36.5% 0 0); }
/* Follow the tabletop at the rear corner while keeping the front edge fixed. */
.tent-art::after {
  clip-path: inset(0 0 0 63%);
  transform: skewY(17deg);
  transform-origin: 63% 100%;
}
.marker[data-motif="zelt"]::before {
  content: "";
  position: absolute;
  inset: auto 0 -1%;
  height: 11%;
  background: radial-gradient(ellipse 47% 50% at 53% 50%, #2b1209a6, transparent);
  pointer-events: none;
}
.marker[data-motif="flugzeug"]:focus-visible .model-plane { transform: scale(1.08); }
.marker[data-motif="pokal"]:focus-visible .trophy-art { transform: scale(1.13); }
.marker[data-motif="zelt"]:focus-visible .tent-art { transform: scale(1.08); }
.tree-topper {
  position: absolute;
  height: auto;
  pointer-events: none;
  transform-origin: 49% 91%;
  filter: brightness(.55) saturate(.77);
  transition: transform .18s ease, filter .55s ease;
}
.tree-topper-lit {
  filter: brightness(1.19) saturate(1.12) drop-shadow(0 0 .24rem #ffd878a8) drop-shadow(0 0 .6rem #ffb54b8c);
}
.marker[data-motif="baumstern"] { cursor: pointer; }
.markers .tree-marker {
  z-index: 0;
  cursor: pointer;
  clip-path: polygon(56% 0%, 63% 11%, 73% 18%, 80% 26%, 89% 39%, 95% 54%, 100% 72%, 100% 98%, 66% 99%, 23% 99%, 1% 95%, 6% 69%, 15% 51%, 24% 37%, 35% 25%, 43% 13%);
}
.tree-hover-light {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; mix-blend-mode: screen;
  mask-size: 100% 100%; mask-repeat: no-repeat;
  background: radial-gradient(ellipse at 56% 60%, #ffe5a93d, #d8c17917 68%, transparent 88%);
  transition: opacity .3s ease;
}
.tree-marker:focus-visible .tree-hover-light { opacity: 1; }
.tree-marker:focus-visible { outline: none; }
.tree-marker .marker-number { top: 46%; left: 56%; }
@media (prefers-reduced-motion: reduce) {
  .tree-hover-light { transition: none; }
}
.marker[data-motif="baumstern"]:not([data-day]):not([data-preview-day]) .marker-number { display: none; }
.room:has(.marker[data-motif="baumstern"]:focus-visible) .tree-topper { transform: scale(1.12); }
@media (hover: hover) {
  .tree-marker:hover .tree-hover-light { opacity: 1; }
  .marker[data-motif="caffrey"]:hover .bone-art { transform: scale(1.23); }
  .marker[data-motif="flugzeug"]:hover .model-plane { transform: scale(1.08); }
  .marker[data-motif="pokal"]:hover .trophy-art { transform: scale(1.13); }
  .marker[data-motif="zelt"]:hover .tent-art { transform: scale(1.08); }
  .room:has(.marker[data-motif="baumstern"]:hover) .tree-topper { transform: scale(1.12); }
}
.lucky { position: absolute; top: 77.9%; left: 87.2%; width: 9.57%; pointer-events: none; }
.basket-art {
  position: absolute; left: 86.364%; top: 83.061%; width: 12.56%; height: auto;
  pointer-events: none; transform-origin: 50% 92%;
}
.lucky { transform-origin: 57% 136%; }
.basket-art, .lucky { transition: transform .22s ease; }
.room:has(.marker[data-motif="hundekorb"]:focus-visible) :is(.basket-art, .lucky) { transform: scale(1.09); }
@media (hover: hover) {
  .room:has(.marker[data-motif="hundekorb"]:hover) :is(.basket-art, .lucky) { transform: scale(1.09); }
}
.caffrey {
  position: absolute; top: 69.5093%; left: 36.4234%; width: 10.6459%; pointer-events: none;
  transform-origin: 50% 85%; transition: transform .22s ease;
}
.room:has(.marker[data-motif="caffrey"]:focus-visible) .caffrey { transform: scale(1.1); }
@media (hover: hover) {
  .room:has(.marker[data-motif="caffrey"]:hover) .caffrey { transform: scale(1.1); }
}
.backdrop-repairs, .dog-corner, .snow, .hearth, .decorations, .gift-objects, .wreath-wax, .ambience, .window-fixtures, .markers { pointer-events: none; }
.gift-object { position: absolute; filter: drop-shadow(1px 2px 2px #1e110978); transform-origin: 50% 97%; transition: transform .2s ease; }
.room:has(.marker[data-motif="geschenk"]:focus-visible) .gift-object[data-gift="red"] { transform: scale(1.12); }
@media (hover: hover) {
  .room:has(.marker[data-motif="geschenk"]:hover) .gift-object[data-gift="red"] { transform: scale(1.12); }
}
.pane-glint {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(114deg, transparent 13%, #c8e5ff22 33%, #d6ecff40 49%, #c8e5ff19 58%, transparent 77%);
  box-shadow: inset 0 0 .35rem #d8eeff44;
  transition: opacity .24s ease;
}
.hearth-glint {
  position: absolute;
  left: 4.3%;
  top: 61.8%;
  width: 13%;
  aspect-ratio: 217 / 218;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse closest-side at 52% 52%, #ffdbab48, #eac49b1f 49%, transparent 100%);
  transition: opacity .22s ease;
}
.room-fire .hearth-glint { background: radial-gradient(ellipse closest-side at 52% 52%, #ffd29142, #eab3771a 49%, transparent 100%); }
.window-fixture { position: absolute; transform-origin: 50% 97%; transition: transform .2s ease; }
.window-fixture[data-fixture="star"] { transform-origin: 50% 4%; }
.room:has(.window-marker:focus-visible) .pane-glint { opacity: .66; }
.room:has(.hearth-marker:focus-visible) .hearth-glint { opacity: 1; }
.room:has(.marker[data-fixture="star"]:focus-visible) .window-fixture[data-fixture="star"],
.room:has(.marker[data-fixture="candles"]:focus-visible) .window-fixture[data-fixture="candles"] { transform: scale(1.13); }
@media (hover: hover) {
  .room:has(.window-marker:hover) .pane-glint { opacity: .66; }
  .room:has(.hearth-marker:hover) .hearth-glint { opacity: 1; }
  .room:has(.marker[data-fixture="star"]:hover) .window-fixture[data-fixture="star"],
  .room:has(.marker[data-fixture="candles"]:hover) .window-fixture[data-fixture="candles"] { transform: scale(1.13); }
}
.marker {
  position: absolute;
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}
.wreath-marker::after { width: 100%; }
.blanca-dog-marker::after { content: none; }
.hearth-marker { cursor: pointer; }
.markers .marker[data-motif="laterne"] { z-index: 2; }
.hearth-marker:focus-visible { outline: none; }
.object-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 50% 99%;
  transition: transform .2s ease, visibility 0s linear .2s;
}
.framed-keepsake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.memory-frame-visual {
  position: absolute; pointer-events: none;
  transform-origin: center; transition: transform .28s ease-out;
}
.memory-frame-art { display: block; width: 100%; height: auto; }
.memory-sky-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.memory-sky-star {
  position: absolute;
  width: var(--star-size);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, #fffbe8 0 19%, #ffe29c 25%, #dcb77348 50%, transparent 72%);
  box-shadow: 0 0 .35rem #ffcd7580;
  animation: memory-sky-twinkle var(--twinkle-duration) var(--twinkle-delay) ease-in-out infinite;
}
.memory-sky-star::after {
  content: "";
  position: absolute;
  inset: -24%;
  background: radial-gradient(circle, #fffce9 8%, #ffdc94 64%, transparent 73%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.room.motion-paused .memory-sky-star { animation-play-state: paused; }
@keyframes memory-sky-twinkle {
  0%, 100% { opacity: .65; scale: .88; }
  49% { opacity: 1; scale: 1.09; }
  68% { opacity: .82; scale: 1; }
}
.memory-frame {
  position: absolute;
  left: 7.05%;
  top: 10.3%;
  width: 8.7%;
  height: 22.4%;
  border: 0;
  padding: 0;
  background: transparent;
}
.memory-frame:is(:hover, :focus-visible) { background: transparent; }
.room:has(.memory-frame:focus-visible) .memory-frame-visual { transform: scale(1.055); }
@media (hover: hover) {
  .room:has(.memory-frame:hover) .memory-frame-visual { transform: scale(1.055); }
}
.memory-star {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  width: 0;
  height: 0;
}
.memory-star-tail {
  position: absolute;
  right: 0;
  top: -.35rem;
  width: clamp(7rem, 12vw, 10.5rem);
  height: .7rem;
  border-radius: 80% 28% 28% 80% / 50%;
  background: linear-gradient(90deg, transparent, #e9923628 35%, #ffcb6eaa 78%, #fff1bd);
  filter: blur(.12rem);
  transform-origin: right center;
  animation: memory-tail-flicker .29s ease-in-out infinite alternate;
}
.memory-star-core {
  position: absolute;
  width: clamp(2.4rem, 4vw, 3.6rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle, #fffbe0 0 7%, #ffdf8ccc 11%, #ffae3950 31%, transparent 68%);
  animation: memory-core-twinkle .38s ease-in-out infinite alternate;
}
.memory-star-core::before {
  content: "";
  position: absolute;
  inset: 10%;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  background: radial-gradient(circle, #fffef2 20%, #ffe5a9 50%, #ffc06744 79%);
}
.memory-spark {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  color: #fff0bc;
  font-size: .85rem;
  line-height: 1;
  text-shadow: 0 0 .35rem #ffb44d, 0 0 .7rem #ffa42e;
}
.memory-spark:nth-of-type(3n) { font-size: .58rem; }
@keyframes memory-tail-flicker {
  from { transform: scale(.85, .66); opacity: .66; }
  to { transform: scale(1, 1.28); opacity: .95; }
}
@keyframes memory-core-twinkle {
  from { transform: rotate(-10deg) scale(.78); opacity: .74; }
  to { transform: rotate(18deg) scale(1.13); opacity: 1; }
}
.memory-gallery { position: relative; width: min(100%, 24rem); aspect-ratio: 344 / 468; margin: 1rem auto 0; background: #51412e; }
.memory-gallery figure {
  position: absolute;
  margin: 0;
  border: .15rem solid transparent;
  overflow: hidden;
}
.memory-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; border: .14rem solid #dfc69d; }
.finale-dialog { width: min(calc(100% - 1rem), 67rem); }
.finale-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(58dvh, 37rem);
  padding: .4rem;
  overflow: hidden;
  border-radius: .75rem;
  background: radial-gradient(ellipse at center, #53422b, #281e17 72%);
}
.finale-stage .memory-gallery {
  width: min(100%, 41dvh, 26rem);
  margin: 0;
  outline: 1px solid #caaa75;
  border-radius: .25rem;
  background: #292019;
  box-shadow: 0 0 1.25rem #110b07;
}
.finale-stage .memory-gallery figure:empty { background: #e6c49518; background-clip: padding-box; }
.finale-incoming {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: .4rem;
  box-shadow: 0 .4rem 1.8rem #120a07c9;
}
.finale-incoming img { display: block; width: 100%; height: 100%; object-fit: cover; }
.finale-stage .memory-star-tail { width: clamp(3rem, 9vw, 6.5rem); }
.finale-stage .memory-star-core { width: clamp(1.8rem, 5vw, 2.9rem); }
:is(.finale-dialog, .finale-gallery-dialog) #door-title { display: none; }
.finale-complete {
  min-height: 0;
  padding: .8rem;
}
.finale-complete .memory-gallery {
  width: min(100%, 48dvh, 31rem);
  box-shadow: 0 0 1rem #e6ba7340;
}
.finale-caption { color: var(--gold); margin: .7rem 0 .35rem; text-align: center; }
.finale-caption:focus-visible { outline: none; }
.finale-caption:empty { display: none; }
.collect-memory { margin: .75rem 0 0 auto; display: flex; align-items: center; gap: .55em; border-color: #8b653b; color: #ffe7ab; }
.collect-memory span {
  position: relative;
  padding-left: .45em;
  color: #ffd77c;
  font-size: 1.4em;
  line-height: 1;
  text-shadow: 0 0 .35em #ffa64c9c;
}
.collect-memory span::before {
  content: "";
  position: absolute;
  top: 55%;
  left: 0;
  width: .65em;
  height: .12em;
  border-radius: 100%;
  background: linear-gradient(90deg, transparent, #ffd77c);
  transform: rotate(-22deg);
  transform-origin: right center;
}
.collect-memory:hover { background: #59402b; }
:is(.marker, .memory-frame) .marker-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%) scale(.94);
  font: 400 clamp(1.5rem, 4.5dvh, 2.75rem)/1 Georgia, serif;
  color: #fff0cfbd;
  text-shadow: 0 1px 4px #100805, 0 2px 8px #100805;
  opacity: 0;
  pointer-events: none;
  transition: opacity .19s ease, transform .19s ease;
}
.memory-frame .marker-number { top: 0; }
.memory-frame:focus-visible .marker-number { opacity: 1; transform: translate(-50%, -55%); }
@media (hover: hover) {
  .memory-frame:hover .marker-number { opacity: 1; transform: translate(-50%, -55%); }
}
.marker[data-motif="laterne"] .marker-number { left: 78%; top: 28%; }
.marker[data-motif="blanca"] .marker-number { top: -.25rem; }
.marker:focus-visible { z-index: 1; }
.marker:focus-visible .object-art { visibility: visible; transition-delay: 0s; }
.marker:focus-visible .object-art-sprite { transform: scale(1.13); }
.marker:focus-visible .marker-number { opacity: 1; transform: translate(-50%, -55%); }
@media (hover: hover) {
  .marker:hover { z-index: 1; }
  .marker:hover .object-art { visibility: visible; transition-delay: 0s; }
  .marker:hover .object-art-sprite { transform: scale(1.13); }
  .marker:hover .marker-number { opacity: 1; transform: translate(-50%, -55%); }
}
.lantern-art {
  position: absolute; left: .957%; top: 71.846%; width: 4.964%; height: auto;
  pointer-events: none; transform-origin: 50% 94%; transition: transform .24s ease-out;
}
.room:has(.marker[data-motif="laterne"]:focus-visible) .lantern-art { transform: scale(1.075); }
.memory-frame:focus-visible,
.marker:is([data-motif="laterne"], [data-motif="hundekorb"], [data-motif="caffrey"], [data-motif="blanca"], [data-motif="vase"]):focus-visible { outline: none; }
@media (hover: hover) {
  .room:has(.marker[data-motif="laterne"]:hover) .lantern-art { transform: scale(1.075); }
}
button, select, input { font: inherit; }
button, select {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: inherit;
  background: #362720;
  padding: .5rem .8rem;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.room-controls {
  position: fixed;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  display: flex;
  gap: .4rem;
}
.room-control {
  min-height: 2.75rem;
  min-width: 2.75rem;
  border-radius: 1.4rem;
  background: #2c201be0;
  color: var(--paper);
  font-size: .875rem;
}
.preview button:hover, .room-control:hover { background: #4c372a; }
a { color: var(--gold); text-underline-offset: .22em; }
.preview {
  position: fixed;
  z-index: 1;
  bottom: .75rem;
  left: .75rem;
  right: .75rem;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: .8rem 1rem;
}
@media (max-width: 50rem) {
  .preview { bottom: 3.8rem; }
}
.preview { right: auto; }
.preview label { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
#door-body > .preview-skip {
  display: block;
  margin: .1rem 0 .75rem auto;
  padding: .35rem .65rem;
  border-color: #a07b4b;
  color: #ffe6b4;
  font-size: .85rem;
}
.remember-login { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; }
dialog {
  width: min(calc(100% - 1.5rem), 33rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  background: #30221c;
  color: var(--paper);
  border: 1px solid #a78359;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem #0f0908a6;
}
dialog::backdrop { background: #130e0bd4; }
.used-photos { width: min(calc(100% - 1.5rem), 65rem); }
.used-photos h2 { margin: 0 2rem .4rem 0; }
#used-photos-status { margin: 0 0 1rem; color: var(--muted); }
.used-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: .9rem;
}
.used-photos-grid figure { min-width: 0; margin: 0; }
.used-photos-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #201713;
  border: 1px solid var(--line);
  border-radius: .5rem;
}
.entry { width: min(calc(100% - 1.5rem), 35rem); background: #2c211bf2; }
.entry::backdrop { background: #1e120ed9; backdrop-filter: blur(18px); }
.entry h1 {
  margin: 0 0 .5rem;
  font: 400 clamp(2rem, 7vw, 3.3rem)/1.06 Georgia, serif;
  text-wrap: balance;
}
.entry-subtitle { color: var(--gold); margin: 0 0 1.75rem; }
.door-photo { display: block; max-width: 100%; max-height: 48dvh; margin: auto; border-radius: .5rem; }
.enlarge-photo { display: block; margin: -.35rem auto 1rem; }
.memory-gallery + .enlarge-photo { margin-top: .75rem; }
.photo-viewer {
  width: min(calc(100% - 1.5rem), 90rem);
  padding: clamp(.6rem, 2vw, 1.1rem);
  background: #211813;
}
.photo-viewer::backdrop { background: #100b08bd; }
.photo-viewer-toolbar { display: flex; justify-content: flex-end; margin-bottom: .65rem; }
.photo-viewer-toolbar span { margin-inline-start: .35rem; }
.photo-viewer-stage { display: grid; place-items: center; }
.photo-viewer-stage .door-photo {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.photo-viewer-stage .sample-photo { width: min(100%, 60rem, calc((100dvh - 8rem) * 2.2)); }
.photo-viewer-stage .memory-gallery {
  width: min(100%, 46rem, calc((100dvh - 8rem) * .735));
  margin: 0;
}
.world-quiz-dialog { width: min(calc(100% - 1.25rem), 39rem); }
.world-quiz-count { color: var(--gold); font-size: .92rem; margin-bottom: .45rem; }
#world-quiz-question {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border-left: 2px solid #b08d57;
  border-radius: 0 .45rem .45rem 0;
  background: #4a3928;
  font: 400 clamp(1.18rem, 3.2vw, 1.45rem)/1.4 Georgia, serif;
}
.world-quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.world-quiz-options button { min-height: 2.75rem; }
.world-quiz-options .correct { color: #f0ffe8; background: #36513c; border-color: #82aa83; }
.world-quiz-options .incorrect { color: #fff0e3; background: #67352d; border-color: #d0836c; }
.world-quiz-feedback { color: #fae9b9; min-height: 1.5em; margin: .75rem 0; }
.world-quiz-win {
  position: relative;
  overflow: hidden;
  margin: .75rem 0 1rem;
  padding: clamp(1.5rem, 7vw, 3rem) 1rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: radial-gradient(ellipse at center, #59442d, #35261c 77%);
  text-align: center;
  color: #fff0c4;
}
.world-quiz-win h3 { margin: 0; font: 600 clamp(1.9rem, 8vw, 3.25rem)/1.1 Georgia, serif; }
.world-quiz-win p { margin: .55rem 0 0; color: var(--gold); }
.catch-dialog, .stack-dialog, .reindeer-dialog, .painting-dialog, .balance-dialog { width: min(calc(100% - 1.25rem), 43rem); }
.snow-merge-dialog { width: min(calc(100% - 1.25rem), 32rem); }
.snow-merge { display: grid; justify-items: center; gap: .65rem; text-align: center; }
.snow-merge p { margin: 0; }
.snow-merge-board {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem;
  width: min(100%, 19rem); padding: .55rem; border-radius: .75rem;
  background: linear-gradient(145deg, #19374d, #142336); border: 1px solid #829db7;
  touch-action: none; user-select: none;
}
.snow-merge-board > span, .snow-merge-slide-layer > span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: .35rem;
  font-size: clamp(1.25rem, 6vw, 2.25rem); background: #304459;
}
.snow-merge-board [data-tile="1"] { background: #244c69; color: #e9f9ff; }
.snow-merge-board [data-tile="2"] { background: #466985; }
.snow-merge-board [data-tile="3"] { background: #437a83; }
.snow-merge-board [data-tile="4"] { background: #376a60; }
.snow-merge-board [data-tile="5"] { background: #825d2d; }
.snow-merge-board.snow-merge-sliding > span { background: #304459; color: transparent; }
.snow-merge-slide-layer { position: absolute; inset: 0; pointer-events: none; }
.snow-merge-slide-layer > span { position: absolute; }
.snow-merge-controls { display: flex; gap: .35rem; }
.snow-merge-controls button { min-width: 2.75rem; min-height: 2.75rem; }
.snow-merge-won [data-tile="5"] { box-shadow: 0 0 1rem #f4d68d; }
.snow-merge-won .snow-merge-status { color: #ffe4a7; font-weight: 700; }
.snow-merge-sparks { position: absolute; inset: 0; pointer-events: none; }
.snow-merge-sparks span { position: absolute; left: 50%; top: 50%; color: #fff0b6; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .snow-merge-celebrate [data-tile="5"] { animation: snow-merge-glow .75s ease-in-out 2 alternate; }
  .snow-merge-celebrate .snow-merge-status { animation: snow-merge-cheer .45s ease-out; }
  .snow-merge-celebrate .snow-merge-sparks span { animation: snow-merge-spark .95s ease-out both; }
}
@keyframes snow-merge-glow { to { box-shadow: 0 0 1.55rem #ffecb2, inset 0 0 .7rem #ffecb2; } }
@keyframes snow-merge-cheer { from { opacity: 0; transform: translateY(.35rem) scale(.94); } }
@keyframes snow-merge-spark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) rotate(55deg) scale(1.3); }
}
.catch-score, .stack-status { color: var(--gold); font-variant-numeric: tabular-nums; margin: .55rem 0; }
.angel-dialog { width: min(calc(100% - 1rem), 38rem); }
.star-stroke-dialog { width: min(calc(100% - 1rem), 35rem); }
.winter-bird-dialog { width: min(calc(100% - 1rem), 43rem); }
.christmas-differences-dialog { width: min(calc(100% - 1rem), 60rem); }
.toy-machine-dialog { width: min(calc(100% - 1rem), 48rem); }
.shadow-sleigh-dialog { width: min(calc(100% - 1rem), 49rem); }
.elf-photo-dialog { width: min(calc(100% - 1rem), 48rem); }
.elf-photo h3 { margin: .65rem 0 .2rem; color: #f5d28c; font-size: 1.1rem; }
.elf-photo p { margin: .45rem 0 .7rem; }
.elf-photo canvas {
  display: block;
  width: min(100%, 78dvh);
  height: auto;
  margin: 0 auto;
  border: 1px solid #866248;
  border-radius: .7rem;
}
.elf-photo canvas.elf-photo-captured { border-color: #ffe0a2; box-shadow: 0 0 1.1rem #f7c46545; }
.elf-photo-controls { display: flex; gap: .6rem 1rem; flex-wrap: wrap; align-items: center; margin-top: .75rem; }
.elf-photo-count { color: #ebc893; font-variant-numeric: tabular-nums; }
.elf-photo-status { min-height: 1.5em; color: #ffe0a2; }
.candy-snake-dialog { width: min(calc(100% - 1rem), 44rem); }
.candy-snake > p { margin: .35rem 0 .65rem; }
.candy-snake-hud, .candy-snake-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: .65rem 0;
}
.candy-snake-score { margin-right: auto; color: #ffdda6; font-variant-numeric: tabular-nums; }
.candy-snake-board {
  display: grid;
  grid-template: repeat(12, 1fr) / repeat(16, 1fr);
  width: min(100%, 63dvh);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border: .38rem solid #c6a464;
  border-radius: .8rem;
  background:
    radial-gradient(circle at 15% 27%, #e5f6f3b0 1px, transparent 2px) 0 0 / 83px 69px,
    radial-gradient(circle at 67% 54%, #e5f6f369 1px, transparent 2px) 0 0 / 61px 89px,
    radial-gradient(ellipse at 50% 110%, #416d69, transparent 64%),
    linear-gradient(#152b3d, #254d52);
  box-shadow: inset 0 0 1.6rem #0c172f80;
}
.candy-snake-board > span { position: relative; box-shadow: inset -1px -1px #bbdbe914; }
.candy-snake-board .snake-body, .candy-snake-board .snake-head {
  border-radius: 28%;
  background: repeating-linear-gradient(135deg, #fff2dc 0 22%, #cc3651 23% 47%, #fff2dc 48% 72%, #cc3651 73% 100%);
  box-shadow: inset 0 2px 3px #fff9, inset 0 -3px 4px #65122d9c;
}
.candy-snake-board .snake-head {
  z-index: 1;
  border-radius: 42%;
  background: #fff2dc;
  border: 1px solid #e8868e;
}
.snake-head::after {
  content: "";
  position: absolute;
  inset: 24%;
  background: radial-gradient(circle at 75% 22%, #5f2033 16%, transparent 19%),
    radial-gradient(circle at 75% 78%, #5f2033 16%, transparent 19%);
}
.snake-head[data-facing="U"]::after { rotate: -90deg; }
.snake-head[data-facing="D"]::after { rotate: 90deg; }
.snake-head[data-facing="L"]::after { rotate: 180deg; }
.candy-snake-board .snake-candy::before, .candy-snake-board .snake-candy::after {
  content: "";
  position: absolute;
  z-index: 1;
}
.candy-snake-board .snake-candy::before {
  inset: 30% 3%;
  background: #f4be59;
  clip-path: polygon(0 0, 50% 28%, 100% 0, 90% 50%, 100% 100%, 50% 72%, 0 100%, 10% 50%);
}
.candy-snake-board .snake-candy::after {
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 29%, #fff1ac, #ffc55c 47%, #c97231 82%);
  box-shadow: 0 0 9px #ffc36b92;
}
.candy-snake-controls button { min-width: 2.75rem; min-height: 2.75rem; touch-action: manipulation; }
.candy-snake-status { min-height: 1.5em; color: #ffdda6; }
.candy-snake-won { outline: 2px solid #ffe1a4; outline-offset: 3px; }
.cookie-cutters-dialog { width: min(calc(100% - 1rem), 48rem); }
.cookie-cutters h3 { margin: .65rem 0 .3rem; font-size: 1.1rem; color: #f6d18e; }
.cookie-cutters-tools, .cookie-cutters-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .65rem 0;
}
.cookie-cutters-actions strong { margin-inline-start: auto; color: #f6ca85; }
.cookie-cutters-board {
  display: grid;
  grid-template: repeat(7, 1fr) / repeat(11, 1fr);
  width: min(100%, 77dvh);
  aspect-ratio: 11 / 7;
  margin: 1rem auto .75rem;
  padding: .42rem;
  border-radius: .65rem;
  background: repeating-linear-gradient(176deg, #563628 0 8px, #59392a 9px 13px, #4b3024 14px 16px);
  box-shadow: inset 0 0 0 1px #9a6b47, 0 .35rem .8rem #10080580;
}
.cookie-cutters-board > span { display: grid; place-items: center; user-select: none; touch-action: manipulation; cursor: crosshair; }
.cookie-dough {
  color: #743b2c;
  box-shadow: inset -1px -1px #9d60373d;
  background: radial-gradient(ellipse at 34% 60%, #ffe2a3, #e6b77a);
}
.cookie-cutters-board .cookie-placed {
  border: 1px solid #a3643b75;
  background: radial-gradient(ellipse at 42% 37%, #eab375, #bc7a46);
  font-size: clamp(.8rem, 3vw, 1.6rem);
}
.cookie-cutters-board .cookie-placed.herz { background: #da9c67; color: #9e3d36; }
.cookie-cutters-board .cookie-placed.tanne { background: #c18c59; }
.cookie-cutters-board .cookie-placed.glocke { background: #d79c58; }
.cookie-cutters-board .cookie-fit {
  background: #acb382;
  box-shadow: inset 0 0 0 1px #536a47;
}
.cookie-cutters-board .cookie-miss { box-shadow: inset 0 0 0 2px #b44748; }
.cookie-cutters-status { min-height: 1.4em; margin: .35rem 0; color: #ffcf8a; }
.mirror-light-dialog { width: min(calc(100% - 1rem), 43rem); }
.mirror-light h3 { margin: .65rem 0; font-size: 1.1rem; color: #f6d18e; }
.mirror-light-board {
  position: relative;
  width: min(100%, 58dvh, 31rem);
  aspect-ratio: 1;
  margin: .8rem auto;
  overflow: hidden;
  border: 1px solid #8e704b;
  border-radius: .75rem;
  background:
    radial-gradient(circle at 16% 27%, #eff7f1b0 1px, transparent 2px) 0 0 / 71px 83px,
    radial-gradient(circle at 68% 54%, #d4f3fd78 1px, transparent 2px) 0 0 / 53px 59px,
    linear-gradient(#11243b, #214444);
}
.mirror-light-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mirror-light-turn {
  position: absolute;
  width: 13.5%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #abbec25e;
  border-radius: .55rem;
  background: #14293442;
  touch-action: manipulation;
}
.mirror-light-turn::before {
  content: "";
  width: 68%;
  height: 12%;
  border-radius: 1rem;
  background: linear-gradient(#eff9f4, #a6cbce 65%, #546a72);
  box-shadow: 0 0 3px #0f273f, 0 0 7px #d7e5eb61;
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.mirror-light-turn[data-angle="1"]::before { transform: rotate(45deg); }
.mirror-light-turn:disabled { cursor: default; }
.mirror-light-status { min-height: 1.35em; margin: .3rem 0 .45rem; color: #f9d584; }
.mirror-light-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.shadow-sleigh-motif { margin: .3rem 0; color: var(--gold); }
.shadow-sleigh-motif + p { margin: .2rem 0 .7rem; color: var(--muted); }
.shadow-sleigh-screen {
  display: block;
  width: 100%;
  max-width: calc(max(13rem, 100dvh - 21rem) * 1.65);
  margin-inline: auto;
  height: auto;
  aspect-ratio: 660 / 400;
  border: 1px solid #a87c56;
  border-radius: .65rem;
  touch-action: none;
  cursor: grab;
}
.shadow-sleigh-screen:active { cursor: grabbing; }
.shadow-sleigh-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .65rem; }
.shadow-sleigh-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.shadow-sleigh-controls button { padding: .35rem .6rem; }
.shadow-sleigh-controls [aria-pressed="true"] { border-color: #f9ce90; color: #fff0c9; background: #5d4631; }
.shadow-sleigh-status { min-height: 1.25em; margin: .55rem 0; color: #ffe3aa; }
@media (prefers-reduced-motion: no-preference) {
  .shadow-sleigh-won { animation: shadow-sleigh-glow 1s ease-out; }
}
@keyframes shadow-sleigh-glow { 35% { filter: brightness(1.3); box-shadow: 0 0 1rem #ffd994; } }
.toy-machine-game > p:first-child { margin: .3rem 0 .7rem; color: var(--muted); }
.toy-machine-board {
  position: relative;
  aspect-ratio: 2;
  border: 1px solid #a58052;
  border-radius: .65rem;
  background:
    repeating-linear-gradient(0deg, #d9a5640d 0 1px, transparent 1px 12px),
    radial-gradient(ellipse at 68% 30%, #5f3d31, #2e251f 85%);
  box-shadow: inset 0 0 1.35rem #1b100dbd;
}
.toy-machine-board > canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.toy-machine-label, .toy-machine-slot { position: absolute; transform: translate(-50%, -50%); }
.toy-machine-label { font-size: clamp(.65rem, 2vw, .88rem); color: #ffe6b8; pointer-events: none; }
.toy-machine-slot {
  display: grid;
  place-items: center;
  width: clamp(1.6rem, 6%, 2.5rem);
  height: auto;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 1px dashed #c89059;
  border-radius: 50%;
  background: #24191459;
  cursor: pointer;
}
.toy-machine-slot::before { content: ""; width: 27%; aspect-ratio: 1; border-radius: 50%; background: #e3ba7e; box-shadow: 0 0 .35rem #ddad6b85; }
.toy-machine-slot[data-filled="true"] { border-color: transparent; background: transparent; }
.toy-machine-slot:hover:not(:disabled) { border-color: #ffe19a; }
.toy-machine-slot:disabled { opacity: 1; cursor: default; }
.toy-machine-tools, .toy-machine-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.toy-machine-tools { margin-top: .75rem; }
.toy-machine-tools button { display: flex; align-items: center; gap: .23rem; padding: .27rem .48rem; white-space: nowrap; }
.toy-machine-tools canvas { width: clamp(1.25rem, 5vw, 2.15rem); height: auto; pointer-events: none; }
.toy-machine-tools [aria-pressed="true"] { border-color: #f9ce90; color: #fff0c9; background: #5d4631; }
.toy-machine-status { min-height: 1.25em; margin: .55rem 0; color: #ffe3aa; }
.toy-machine-won {
  border-color: #e8bf81;
  box-shadow: 0 0 .65rem #ffc86a54, inset 0 0 1rem #ffcd7826;
}
@media (prefers-reduced-motion: no-preference) {
  .toy-machine-won { animation: game-completion-gold .85s ease-out; }
}
.motion-paused .toy-machine-won { animation: none; }
@keyframes game-completion-gold {
  0% { box-shadow: 0 0 .25rem #ffc86a14, inset 0 0 .4rem #ffcd7812; }
  42% { box-shadow: 0 0 1rem #ffc86a72, inset 0 0 1.25rem #ffcd783c; }
}
.toy-machine-progress, .winter-bouquet-progress { margin: .45rem 0; color: #f3ce92; font-weight: 700; }
.toy-machine-slot[data-blocked="true"] { border-color: #ff8f79; background: #7e2d2a55; box-shadow: 0 0 .35rem #ff8f79; }
.winter-bouquet-dialog { width: min(calc(100% - 1rem), 47rem); }
.winter-bouquet-game > p:first-child { color: var(--muted); margin: .3rem 0 .7rem; }
.winter-bouquet-vase {
  position: relative;
  overflow: hidden;
  border: 1px solid #637764;
  border-radius: .65rem;
  background: radial-gradient(ellipse at 50% 43%, #485746, #263a31 64%, #192a24);
  box-shadow: inset 0 0 1.4rem #10191399;
}
.winter-bouquet-art { width: 100%; height: auto; display: block; min-height: 8rem; }
.winter-bouquet-rack { display: flex; background: #14231cbf; border-top: 1px solid #93aa7955; }
.winter-bouquet-slot {
  flex: 1;
  min-width: 0;
  min-height: 2.4rem;
  border: 0;
  border-radius: 0;
  border-inline-end: 1px solid #93aa7940;
  padding: .35rem;
  color: #e9d8b4;
  background: transparent;
}
.winter-bouquet-slot:last-child { border-inline-end: 0; }
.winter-bouquet-slot[data-filled="true"] { background: #82947426; }
.winter-bouquet-slot:focus-visible { outline-offset: -3px; }
.winter-bouquet-slot:disabled { opacity: 1; }
.winter-bouquet-won { border-color: #c5a878; box-shadow: 0 0 .65rem #e5b97348, inset 0 0 1.4rem #10191399; }
.winter-bouquet-won .winter-bouquet-rack { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .winter-bouquet-rack { transition: opacity .23s ease-out; }
}
.winter-bouquet-tray, .winter-bouquet-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.winter-bouquet-choice { text-align: left; padding: .28rem .48rem; border-left: .23rem solid #86a774; }
.winter-bouquet-choice[data-color="rosa"] { border-left-color: #eaa2b3; }
.winter-bouquet-choice[data-color="weiß"] { border-left-color: #eee6d5; }
.winter-bouquet-choice[data-color="rot"] { border-left-color: #e98076; }
.winter-bouquet-choice span { display: block; color: var(--muted); font-size: .82em; }
.winter-bouquet-choice[data-used="true"] span { text-decoration: underline; }
.winter-bouquet-choice[aria-pressed="true"] { background: #5d4631; outline: 1px solid #f9ce90; }
.winter-bouquet-rules { padding-left: 1.4rem; margin: .65rem 0 .45rem; }
.winter-bouquet-rules li { padding-left: .15rem; margin: .18rem 0; }
.winter-bouquet-rules [data-result="yes"] { color: #cce8ab; list-style-type: "✓ "; }
.winter-bouquet-rules [data-result="no"] { color: #ffae9c; list-style-type: "× "; }
.winter-bouquet-status { min-height: 1.25em; margin: .5rem 0; color: #ffe3aa; }
.christmas-memory-dialog { width: min(calc(100% - 1rem), 36rem); }
.christmas-memory > p { margin: .35rem 0; }
.christmas-memory-status { min-height: 1.3em; color: #f3ce92; font-weight: 600; }
.christmas-memory-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.3rem, 1.2vw, .55rem);
  margin-top: .65rem;
  border-radius: .5rem;
}
.christmas-memory-card {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 2.75rem;
  aspect-ratio: 1.12;
  padding: .12rem;
  border: 1px solid #bd986e;
  border-radius: .5rem;
  background: radial-gradient(ellipse at 50% 38%, #436252, #263e33);
  color: #edcf91;
  box-shadow: inset 0 0 0 .16rem #172c24a0, 0 .13rem .3rem #130b0870;
}
.christmas-memory-card[data-state="closed"]:hover { background: #486a55; }
.christmas-memory-card[data-state="open"],
.christmas-memory-card[data-state="matched"] {
  background: radial-gradient(ellipse at 50% 35%, #fff3da, #d8bc91);
  box-shadow: inset 0 0 0 .16rem #fff1ce70, 0 .13rem .3rem #130b0870;
}
.christmas-memory-card[data-state="matched"] {
  border-color: #a9c393;
  background: radial-gradient(ellipse at 50% 35%, #f2f1d4, #adc29b);
  cursor: default;
}
.christmas-memory-face { font-size: clamp(1.2rem, 4.6vw, 2rem); line-height: 1; }
.christmas-memory-card[data-state="closed"] .christmas-memory-face { font-size: 1.25rem; }
.christmas-memory > .primary { margin-top: .8rem; }
.christmas-memory-won {
  box-shadow: 0 0 0 2px #f6c770, 0 0 1.45rem #ffbd5c91, 0 0 3rem #f0a94240;
}
.christmas-memory-won .christmas-memory-card {
  border-color: #efc782;
  background: radial-gradient(ellipse at 50% 35%, #fff1c6, #e7c88b);
  box-shadow: inset 0 0 0 .15rem #fff2c1b5, inset 0 0 .65rem #ffe5a28f;
}
.christmas-memory:has(.christmas-memory-won) .christmas-memory-status {
  color: #ffe2a0;
  text-shadow: 0 0 .65rem #f3b4529c;
}
@media (prefers-reduced-motion: no-preference) {
  body:not(:has(.room.motion-paused)) .christmas-memory-won::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 26%, #ffd56a83 41%, #fff2bbce 50%, #ffcb618c 60%, transparent 74%) 100% 0 / 270% 100%;
    animation: christmas-memory-light-sweep 1.55s ease-in-out both;
  }
  @keyframes christmas-memory-light-sweep {
    from { background-position: 100% 0; opacity: 0; }
    22%, 75% { opacity: 1; }
    to { background-position: 0 0; opacity: 0; }
  }
}
@media (max-width: 420px) {
  .christmas-memory-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .christmas-memory-card { aspect-ratio: 1.35; }
}
.christmas-memory-card:focus-visible { outline-offset: -3px; }
.christmas-differences-game > p:first-child { margin: .3rem 0; color: var(--muted); }
.christmas-differences-count { margin: .1rem 0 .65rem; color: var(--gold); font-weight: 600; }
.christmas-differences-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.christmas-differences-switch { display: none; }
.christmas-differences-tile { min-width: 0; margin: 0; }
.christmas-differences-tile figcaption { text-align: center; margin-top: .2rem; }
.christmas-differences-target {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: .55rem;
  overflow: hidden;
  cursor: crosshair;
  touch-action: manipulation;
}
.christmas-differences-target img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.christmas-differences-marker, .christmas-differences-cursor {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  aspect-ratio: 1;
  border-radius: 50%;
}
.christmas-differences-marker { border: 2px solid #ffe9a1; box-shadow: 0 0 0 1px #332018; }
.christmas-differences-cursor { width: 1.2rem; border: 2px dashed #fff5ce; box-shadow: 0 0 0 1px #332018; }
.christmas-differences-status { margin: .5rem 0; min-height: 1.3em; color: #ffe3aa; }
@media (max-width: 38rem) {
  .christmas-differences-switch { display: flex; gap: .45rem; margin-bottom: .6rem; }
  .christmas-differences-switch button[aria-pressed="true"] { color: #2c1c12; background: #ebc68a; }
  .christmas-differences-board { grid-template-columns: minmax(0, 1fr); }
  .christmas-differences-tile:not(.christmas-differences-shown) { display: none; }
  .christmas-differences-tile figcaption { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .christmas-differences-won img { animation: christmas-differences-finish .9s ease-out both; }
}
@keyframes christmas-differences-finish { 35% { filter: brightness(1.3); } }
.winter-bird-game > p:first-child { margin: 0 0 .8rem; color: var(--muted); }
.winter-bird-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  aspect-ratio: 2;
  overflow: hidden;
  padding: .65rem;
  border: 1px solid #94a7b0;
  border-radius: .7rem;
  background: linear-gradient(180deg, #23344a1f, #1424398a), url("schneelichtung.jpg") center 55% / cover;
}
.winter-bird-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.winter-bird-arrival {
  justify-self: start;
  max-width: min(56%, 16rem);
  padding: .45rem .65rem;
  border-radius: .5rem;
  background: #16293bea;
  color: #f8f1e4;
}
.winter-bird-arrival p { margin: .15rem 0 0; font-size: clamp(.81rem, 2.7vw, .95rem); }
.winter-bird-progress { margin: .7rem 0 .5rem; color: var(--gold); }
.winter-bird-food { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.winter-bird-food button { display: flex; align-items: center; gap: .45rem; text-align: left; overflow-wrap: anywhere; }
.winter-bird-food .winter-bird-correct { border-color: #a2c391; color: #e1f6d2; background: #314631; opacity: 1; }
.winter-bird-status { min-height: 1.4em; margin: .6rem 0; color: #ffe3aa; }
.winter-bird-fed { border-color: #ecc580; box-shadow: 0 0 1.1rem #ffd98d65; }
@media (prefers-reduced-motion: no-preference) {
  .winter-bird-fed { animation: winter-bird-glow .9s ease-out both; }
}
@keyframes winter-bird-glow { 35% { box-shadow: 0 0 2rem #ffd98dad; } }
.star-stroke-game > p { margin: .5rem 0 .9rem; color: var(--muted); }
.star-stroke-sky {
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 1;
  margin-inline: auto;
  touch-action: none;
  user-select: none;
  border-radius: .65rem;
  background:
    radial-gradient(circle at 22% 23%, #fff0bc 0 1px, transparent 2px),
    radial-gradient(circle at 83% 21%, #fff0bc 0 1px, transparent 2px),
    radial-gradient(circle at 13% 75%, #fff0bc 0 1px, transparent 2px),
    radial-gradient(circle at 87% 74%, #fff0bc 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 60%, #2f4659, #131c30 76%);
  box-shadow: inset 0 0 0 1px #bd9d6f75;
}
.star-stroke-sky canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.star-stroke-dot {
  position: absolute;
  width: 1.65rem;
  height: 1.65rem;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: crosshair;
}
.star-stroke-dot::after {
  content: "";
  display: block;
  width: .48rem;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  background: #d9e0e5;
  box-shadow: 0 0 .5rem #abd0e3aa;
}
.star-stroke-dot:hover::after, .star-stroke-current::after {
  background: #ffe1a0;
  box-shadow: 0 0 .65rem #ffc35e;
}
.star-stroke-dot[data-marker]::before {
  content: attr(data-marker);
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  padding: .08rem .23rem;
  border-radius: .24rem;
  color: #ffe1a0;
  background: #172237;
  font-size: .72rem;
  line-height: 1.1;
  pointer-events: none;
}
.star-stroke-dot[data-marker="Start"]::after {
  width: .7rem;
  background: #ffdc87;
  box-shadow: 0 0 .7rem #ffc35e;
}
.star-stroke-checkpoint {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  transform: translate(-50%, -50%);
  border: 1px solid #c6a771;
  border-radius: 50%;
  color: #ffe1a0;
  background: #172237;
  font: 600 .7rem/1 system-ui, sans-serif;
  pointer-events: none;
}
.star-stroke-checkpoint-next { color: #332316; background: #ffdc87; box-shadow: 0 0 .5rem #ffcd6b9c; }
.star-stroke-checkpoint-done { opacity: .65; }
.star-stroke-controls { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .85rem; }
.star-stroke-controls p { margin: 0; color: var(--gold); }
.star-stroke-controls button { flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .star-stroke-glow canvas { animation: star-stroke-glint 1.1s ease-out both; }
}
@keyframes star-stroke-glint {
  35% { filter: brightness(1.7) drop-shadow(0 0 .7rem #ffd78a); }
}
.gift-xray-dialog { width: min(calc(100% - 1rem), 37rem); }
.gift-xray { display: grid; justify-items: center; gap: .7rem; text-align: center; }
.gift-xray p { margin: 0; }
.gift-xray canvas {
  width: 100%; height: auto; border: 1px solid #83b8df8a; border-radius: .8rem;
  background: #101b30; touch-action: none; cursor: grab;
}
.gift-xray canvas:active { cursor: grabbing; }
.gift-xray label { display: grid; justify-items: center; gap: .35rem; width: min(100%, 19rem); color: #dceaff; }
.gift-xray input[type="range"] { width: 100%; accent-color: #87dbf3; padding: 0; }
.gift-xray-answers { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; }
.gift-xray-answers button { min-height: 2.65rem; }
.gift-xray-answers button:disabled { opacity: .53; }
.gift-xray-won canvas { border-color: #ffd68c; cursor: default; }
.gift-xray-won [role="status"] { color: #ffe4a5; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .gift-xray-celebrate canvas { animation: xray-reveal .9s ease-out; }
}
@keyframes xray-reveal {
  30% { box-shadow: 0 0 1.6rem #ffe2a4; filter: brightness(1.35); }
}
.angel-game { display: grid; justify-items: center; text-align: center; gap: .55rem; }
.angel-game p { margin: 0; }
.angel-sky {
  position: relative; width: min(100%, 30rem); aspect-ratio: 10 / 9;
  border: 1px solid #879acf70; border-radius: .8rem; overflow: hidden;
  background:
    radial-gradient(circle at 11% 27%, #eaf0ffb0 0 1px, transparent 1.6px) 0 0 / 113px 71px,
    radial-gradient(circle at 46% 77%, #f5e3a4a0 0 1px, transparent 1.7px) 0 0 / 157px 103px,
    radial-gradient(circle at 59% 30%, #b8d1e29c 0 1px, transparent 1.7px) 0 0 / 83px 137px,
    radial-gradient(ellipse at 52% 91%, #414871, #171e3a 52%, #0c142a);
}
.angel-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.angel-sky button.angel-star {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: clamp(1.13rem, 5.4vw, 1.7rem); aspect-ratio: 1;
  border: 1px solid #a1b7ea78; padding: 0; border-radius: 50%;
  background: #1c2445; color: #eff3ff; font: 700 clamp(.62rem, 2.5vw, .82rem)/1 system-ui, sans-serif;
  box-shadow: 0 0 .36rem #7f9bdf45;
}
.angel-sky button.angel-star:is(:hover, :focus-visible, .angel-star-linked) {
  color: #1c2445; background: #f5d383; border-color: #fff6bd; z-index: 1;
}
.angel-revealed { box-shadow: inset 0 0 2rem #eac66b3b; }
@media (prefers-reduced-motion: no-preference) {
  .angel-glow canvas { animation: angel-reveal 1.2s ease-out; }
}
@keyframes angel-reveal {
  0% { filter: brightness(1); transform: scale(.98); }
  32% { filter: brightness(1.85) drop-shadow(0 0 .55rem #f9d374); }
  100% { filter: brightness(1); transform: scale(1); }
}
.gift-pack-dialog { width: min(calc(100% - 1.25rem), 38rem); }
.gift-pack { display: grid; justify-items: center; gap: .7rem; text-align: center; }
.gift-pack p { margin: 0; }
.gift-pack-stage {
  --gift-cell: clamp(.95rem, 3.2dvh, 1.95rem);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: max-content minmax(0, 8rem); gap: clamp(.4rem, 2vw, 1rem);
  align-items: start; max-width: 100%; padding: .35rem;
  border-radius: .8rem;
  background: radial-gradient(ellipse at 50% 100%, #365163, transparent 70%), #1b2d37;
}
.gift-pack-snow { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.gift-pack-snow > span {
  position: absolute; left: var(--left); top: -6px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: #f5f8ff; opacity: .65;
}
.gift-pack-board {
  display: grid; grid-template-columns: repeat(7, var(--gift-cell)); gap: 2px;
  padding: .9rem .4rem .45rem;
  border: 2px solid #bb9b6a; border-radius: .7rem;
  background:
    radial-gradient(circle at 6px 7px, #fff0b0 1px, #e9b34a 2px, transparent 5px) 0 0 / 28px 14px repeat-x,
    radial-gradient(circle at 20px 9px, #ffd3ad 1px, #ed4667 2px, transparent 4px) 0 0 / 28px 14px repeat-x,
    linear-gradient(#1c503c .8rem, #18202b59 .8rem, #34261c45);
  box-shadow: inset 0 0 .8rem #160d0a, 0 .3rem .85rem #160d0a;
}
.gift-pack-board > span, .gift-pack-next > span {
  aspect-ratio: 1; border-radius: .16rem; border: 1px solid #e0ba6638;
  background: #161b2480;
}
.gift-pack [data-package="1"] { --wrapping: #bd314a; --ribbon: #ffdbc5; }
.gift-pack [data-package="2"] { --wrapping: #c48c35; --ribbon: #fff3b6; }
.gift-pack [data-package="3"] { --wrapping: #397555; --ribbon: #ffdd96; }
.gift-pack [data-package="4"] { --wrapping: #874567; --ribbon: #ffd29b; }
.gift-pack [data-package="5"] { --wrapping: #447692; --ribbon: #e7f5ee; }
.gift-pack [data-package="6"] { --wrapping: #ac5435; --ribbon: #ffdfad; }
.gift-pack span[data-package]:not([data-package="0"]) {
  border-color: #fae2a97d;
  background:
    linear-gradient(90deg, transparent 44%, var(--ribbon) 44% 56%, transparent 56%),
    linear-gradient(transparent 43%, var(--ribbon) 43% 56%, transparent 56%),
    repeating-linear-gradient(135deg, #fff3d529 0 2px, transparent 2px 7px),
    var(--wrapping);
}
.gift-pack-board [data-landing="true"] { border: 2px dashed #ffe39b; background: #f3d38542; }
.gift-pack-summary {
  display: grid; justify-items: center; gap: .55rem; padding: .55rem .25rem;
  border: 1px solid #d6a96a78; border-radius: .65rem; background: #173529;
  color: #fff0cb; font-size: .88rem;
}
.gift-pack-summary progress { width: 90%; accent-color: #e6bb6e; }
.gift-pack-next {
  display: grid; grid-template: repeat(3, .84rem) / repeat(3, .84rem); gap: 2px;
  align-content: start; justify-content: start;
}
.gift-pack-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.gift-pack-controls button { min-width: 2.65rem; min-height: 2.65rem; padding: .35rem .5rem; touch-action: manipulation; }
.gift-pack-controls button:disabled { opacity: .5; }
.gift-pack-won .gift-pack-board { border-color: #ffdc8b; }
.gift-pack-won .gift-pack-status { color: #ffe3a4; font-weight: 700; }
.gift-pack-victory {
  display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  place-items: center; background: radial-gradient(ellipse, #171f29e0, #171f2926 72%, transparent);
}
.gift-pack-won .gift-pack-victory { display: grid; }
.gift-pack-victory strong {
  position: relative; z-index: 1; padding: .4rem .8rem;
  border: 1px solid #f3c879; border-radius: .55rem;
  background: #164334; color: #fff2bf;
  box-shadow: 0 0 1.7rem #f4c16a85;
  font: 700 clamp(1.55rem, 6vw, 2.6rem)/1 Georgia, serif;
}
.gift-pack-victory > span {
  position: absolute; top: 50%; left: 50%; opacity: 0; font-size: 1.3rem;
  color: #ffdda1; text-shadow: 0 0 .55rem #ffc06b;
}
@media (prefers-reduced-motion: no-preference) {
  .gift-pack-moving .gift-pack-snow > span { animation: gift-pack-snowfall var(--fall) var(--delay) linear infinite; }
  .gift-pack-celebrate .gift-pack-board { animation: gift-pack-win .75s ease-out 2 alternate; }
  .gift-pack-celebrate .gift-pack-victory strong { animation: gift-pack-badge .75s cubic-bezier(.18,.76,.27,1.2) both; }
  .gift-pack-celebrate .gift-pack-victory > span { animation: gift-pack-spark 1.4s var(--delay) ease-out both; }
}
@keyframes gift-pack-snowfall {
  from { top: -6px; transform: translateX(0); }
  to { top: 103%; transform: translateX(var(--drift)); }
}
@keyframes gift-pack-win { to { box-shadow: 0 0 1.6rem #e8b857, inset 0 0 .8rem #d49b58; } }
@keyframes gift-pack-badge {
  from { opacity: 0; transform: scale(.65) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes gift-pack-spark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(100deg) scale(1.15); }
}
.painting-palette {
  display: flex;
  justify-content: center;
  gap: clamp(.25rem, 2vw, .65rem);
  margin: .8rem 0;
}
.painting-brush {
  width: clamp(2.2rem, 10vw, 2.85rem);
  min-height: 2.75rem;
  padding: 0;
  border: 2px solid #ffffff52;
  border-radius: .65rem;
  background: var(--paint);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px #1d1426, 0 0 3px #1d1426;
}
.painting-brush:hover { background: var(--paint); filter: brightness(1.15); }
.painting-brush[aria-pressed="true"] { outline: 2px solid #f9dc9d; outline-offset: 2px; }
.painting-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 520 / 300;
  overflow: hidden;
  border: 1px solid #9c7fa1;
  border-radius: .7rem;
  background: radial-gradient(ellipse at 65% 95%, #5a3f61, transparent 60%),
    radial-gradient(ellipse at 20% 15%, #233c63, #11172c 72%);
}
.painting-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.painting-region {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff3d4;
  cursor: crosshair;
  touch-action: manipulation;
}
.painting-region:is(:hover, :focus-visible):not(:disabled) { background: #f7ddac38; }
.painting-region span {
  position: absolute;
  translate: -50% -50%;
  font: 650 clamp(.7rem, 2.7vw, 1.04rem)/1 system-ui, sans-serif;
  pointer-events: none;
}
.painting-region.painted { visibility: hidden; }
.painting-score { margin: .6rem 0; color: var(--gold); }
.painting-win {
  inset: auto 0 0;
  padding: .4rem;
  font-size: clamp(1rem, 5vw, 1.85rem);
  pointer-events: none;
}
.balance-stage {
  position: relative;
  isolation: isolate;
  min-height: clamp(11rem, 37dvh, 18rem);
  margin: .75rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: linear-gradient(#111d31a0, #211b22ba), #21374d url("weihnachtsmarkt.jpg") center 55% / cover;
}
.balance-stage::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 54%;
  left: 50%;
  width: 2px;
  background: #e0af72;
}
.balance-rack { display: flex; gap: clamp(.2rem, 1.5vw, .5rem); margin: .55rem 0; }
.balance-rack button {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  min-height: 3.45rem;
  padding: .2rem;
  font-size: .82rem;
}
.balance-rack button[aria-pressed="true"] { border-color: #ffdda0; background: #68442d; }
.balance-rack .balance-ornament { top: .24rem; max-width: 1.33rem; }
.balance-rack button:disabled { opacity: .36; }
.balance-branch {
  position: absolute;
  top: 46%;
  left: 5%;
  right: 5%;
  height: .48rem;
  border-radius: 50% 30% 45% 25%;
  background: linear-gradient(#b17e55, #613922 50%, #47291f);
  transform: rotate(var(--tilt, 0deg));
}
.balance-motion .balance-branch { transition: transform .26s ease; }
.balance-branch::before {
  content: "";
  position: absolute;
  inset: .13rem 12% auto 7%;
  height: .15rem;
  background: #ca9a686e;
  border-radius: 50%;
  pointer-events: none;
}
.balance-hook {
  position: absolute;
  top: -.4rem;
  width: clamp(1.6rem, 8vw, 2.75rem);
  height: 3.5rem;
  border: 0;
  padding: 0;
  translate: -50% 0;
  background: transparent;
}
.balance-hook::before {
  content: "";
  position: absolute;
  top: .4rem;
  left: 50%;
  width: .64rem;
  height: .85rem;
  translate: -50% 0;
  border: 1px solid #ffd895;
  border-radius: 50%;
  background: #2e251d9e;
}
.balance-hook::after {
  content: attr(data-distance);
  position: absolute;
  left: 50%;
  bottom: 100%;
  translate: -50% 0;
  color: #ffe9bf;
  font: 650 .73rem/1.1 system-ui, sans-serif;
}
.balance-hook:is(:hover, :focus-visible):not(:disabled) { background: #fff1c92c; }
.balance-hook.holding { opacity: 1; transform-origin: 50% .6rem; transform: rotate(calc(-1 * var(--tilt))); }
.balance-fixed { pointer-events: none; }
.balance-fixed::before { background: #ffd895; }
.balance-motion .balance-hook.holding { transition: transform .26s ease; }
.balance-ornament {
  position: absolute;
  top: 1.35rem;
  left: 50%;
  translate: -50% 0;
  width: 70%;
  max-width: 1.65rem;
  aspect-ratio: 1;
  background: radial-gradient(circle at 32% 24%, #fff4d78c, transparent 52%), currentColor;
  border-radius: 50%;
}
.balance-ornament[data-kind="Stern"] {
  clip-path: polygon(50% 0%, 63% 33%, 100% 37%, 72% 61%, 81% 100%, 50% 79%, 19% 100%, 28% 61%, 0 37%, 37% 33%);
}
.balance-ornament[data-kind="Glocke"] {
  clip-path: polygon(44% 0, 56% 0, 61% 12%, 74% 24%, 80% 65%, 96% 81%, 58% 81%, 59% 94%, 49% 100%, 40% 94%, 41% 81%, 4% 81%, 20% 65%, 25% 24%, 39% 12%);
}
.balance-weight {
  position: absolute;
  top: 1.49rem;
  left: 50%;
  translate: -50% 0;
  font-size: .69rem;
  font-weight: 700;
  color: #221b20;
  text-shadow: 0 0 3px #fff3c5;
}
.balance-meter { display: block; width: 100%; height: .85rem; }
.reindeer-score { margin: .55rem 0 .3rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.reindeer-progress { display: block; width: 100%; height: .65rem; margin-bottom: .65rem; accent-color: #e8be77; }
.reindeer-field {
  position: relative;
  isolation: isolate;
  height: clamp(13rem, 47dvh, 22rem);
  margin-bottom: .9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: linear-gradient(#13213811, #233a5844), #294461 url("schneelichtung.jpg") center 58% / cover;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.reindeer-field::before {
  content: "";
  position: absolute;
  inset: 83% 0 0;
  background: linear-gradient(180deg, #d7e8f1, #a2bcd4 29%, #496984);
  border-top: 2px solid #f5fbff;
  pointer-events: none;
}
.reindeer-running::before {
  background: repeating-linear-gradient(171deg, transparent 0 18px, #ebf6ff39 21px 23px, transparent 26px 40px),
    linear-gradient(180deg, #d7e8f1, #a2bcd4 29%, #496984);
  background-size: 180px 100%, 100% 100%;
  animation: reindeer-track .86s linear infinite;
}
@keyframes reindeer-track { to { background-position: -180px 0, 0 0; } }
.reindeer-snow {
  position: absolute;
  inset: 0 0 17%;
  container-type: size;
  overflow: hidden;
  pointer-events: none;
}
.reindeer-snow span {
  position: absolute;
  top: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f5faff;
  animation: reindeer-flake linear infinite;
}
@keyframes reindeer-flake {
  0% { transform: translate(0, -4cqh); opacity: 0; }
  14% { opacity: var(--opacity); }
  50% { transform: translate(calc(var(--drift) * -.35), 48cqh); }
  88% { opacity: var(--opacity); }
  100% { transform: translate(calc(-1 * var(--drift)), 103cqh); opacity: 0; }
}
.reindeer-runner, .reindeer-log, .reindeer-carrot, .reindeer-finish {
  position: absolute;
  translate: -50% 0;
  pointer-events: none;
}
.reindeer-runner {
  z-index: 1;
  width: 15%;
  height: 40%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 55% 96%;
  filter: drop-shadow(0 2px 1px #1d273f8e);
}
.reindeer-running:not(.reindeer-airborne) .reindeer-runner { animation: reindeer-stride .29s ease-in-out infinite alternate; }
.reindeer-airborne .reindeer-runner { transform: rotate(-7deg); }
@keyframes reindeer-stride {
  from { transform: rotate(-1.5deg) scaleY(.95); }
  to { transform: rotate(1.5deg) scaleY(1.02); }
}
.reindeer-log {
  bottom: 17%;
  width: 8%;
  height: 9%;
  border-radius: 38% 19% 23% 33%;
  border-top: 2px solid #eef5f4;
  background: repeating-linear-gradient(4deg, #2f150e66 0 2px, transparent 2px 5px), linear-gradient(#916341, #492c21);
  box-shadow: 0 2px 2px #243a516b;
}
.reindeer-log::before {
  content: "";
  position: absolute;
  inset: 8% auto 8% -4%;
  width: 40%;
  border-radius: 50%;
  border: 1px solid #744329;
  background: repeating-radial-gradient(ellipse, #c69560 0 2px, #a37755 3px 4px);
}
.reindeer-carrot {
  bottom: 34%;
  width: 3.2%;
  height: 6%;
  border-radius: 50% 50% 85% 61%;
  background: linear-gradient(101deg, #ffe791, #cf661f 70%);
  box-shadow: 0 0 .7rem #ffd27cc7;
  rotate: 28deg;
}
.reindeer-carrot::before {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 90%;
  width: 75%;
  height: 55%;
  border-radius: 15% 95% 32% 85%;
  background: #7eaa59;
}
.reindeer-finish {
  bottom: 16.5%;
  width: 3%;
  height: 36%;
  border-left: 3px solid #a34f42;
  background: conic-gradient(#efe6cf 25%, #aa4f42 0 50%, #efe6cf 0 75%, #aa4f42 0) top left / 8px 8px;
  background-repeat: repeat-x;
}
.reindeer-win { font-size: clamp(1.9rem, 7vw, 3.8rem); text-align: center; }
.stack-field {
  position: relative;
  isolation: isolate;
  height: clamp(16rem, 50dvh, 27rem);
  margin-bottom: .9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: linear-gradient(#15223c22, #15223c66), #26384c url("schneelichtung.jpg") center 63% / cover;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
}
.stack-platform {
  position: absolute;
  top: 84%;
  left: 50%;
  width: 35%;
  height: 9%;
  transform: translateX(-50%);
  border-radius: .2rem .2rem .6rem .6rem;
  border-top: .23rem solid #c39868;
  background: repeating-linear-gradient(4deg, #ffcd921c 0 1px, transparent 1px 6px), linear-gradient(#8d5636, #48291f);
  box-shadow: 0 .3rem .5rem #0a130a99;
}
.stack-pile {
  position: absolute;
  inset: 0;
  transform-origin: 50% 84%;
  pointer-events: none;
}
.stack-wobble { animation: stack-wobble .9s ease-in-out infinite alternate; }
.stack-fallen { animation: stack-fall .45s ease-in both; }
@keyframes stack-wobble {
  from { transform: rotate(calc(-1 * var(--wobble))); }
  to { transform: rotate(var(--wobble)); }
}
@keyframes stack-fall {
  to { opacity: .4; transform: translateY(19%) rotate(33deg); }
}
.stack-gift {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #fff6e45c;
  border-radius: .16rem;
  background: repeating-linear-gradient(135deg, #fff4db20 0 2px, transparent 2px 7px), linear-gradient(var(--wrap-light, #a34545), var(--wrap-dark, #79252e));
  box-shadow: inset 0 -.2rem .3rem #170e1838, 0 1px .16rem #170e1859;
  pointer-events: none;
}
.stack-gift::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 44%, #fff1bc 45%, #d5a565 55%, transparent 56%);
}
.stack-gift[data-pattern="1"] { --wrap-light: #42766b; --wrap-dark: #234840; }
.stack-gift[data-pattern="2"] { --wrap-light: #b9793d; --wrap-dark: #7c4b22; }
.stack-gift[data-pattern="3"] { --wrap-light: #52668c; --wrap-dark: #303d62; }
.stack-gift[data-pattern="4"] { --wrap-light: #97647f; --wrap-dark: #683e58; }
.catch-field {
  position: relative;
  isolation: isolate;
  height: clamp(14rem, 45dvh, 23rem);
  margin-bottom: .9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: linear-gradient(#0d182935, #101b2a75), #23374d url("weihnachtsmarkt.jpg") center 56% / cover;
  user-select: none;
  touch-action: none;
}
.catch-running { cursor: ew-resize; }
.catch-win, .stack-win {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #22191aaf, #1a203448 65%, transparent);
  color: #fff0c4;
  font: 600 clamp(2.5rem, 10vw, 4.5rem)/1 Georgia, serif;
  text-shadow: 0 0 .85rem #de9a40a8, 0 .14rem .35rem #1e120f;
}
.catch-won .catch-box { opacity: .52; }
.catch-photo {
  position: relative;
  overflow: hidden;
  border-radius: .5rem;
}
.catch-photo-reveal .door-photo { animation: catch-photo-in .85s ease-out both; }
.catch-sparkles .catch-win, .stack-sparkles .stack-win { animation: catch-photo-in .55s ease-out both; }
.catch-sparkles::after, .catch-photo-reveal::after, .world-quiz-sparkles::after, .stack-sparkles::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 34%, #fff4cb 0 2px, #ffcd805c 2px 6px, transparent 10px),
    radial-gradient(circle at 31% 69%, #fff 0 1px, #ffdf8ea8 1px 3px, transparent 7px),
    radial-gradient(circle at 42% 20%, #ffefaa 0 2px, #ffbf675c 2px 5px, transparent 8px),
    radial-gradient(circle at 63% 75%, #fff6d2 0 2px, #ffc46878 2px 4px, transparent 8px),
    radial-gradient(circle at 79% 30%, #fff 0 2px, #ffd08178 2px 5px, transparent 10px),
    radial-gradient(circle at 88% 56%, #fff6d2 0 1px, #ffdf8e8c 1px 4px, transparent 7px),
    linear-gradient(110deg, transparent 24%, #ffe5ad4a 48%, transparent 73%) 100% / 230% 100%;
  animation: catch-golden-sweep 1s ease-out both;
}
.reward-step { margin-top: .25rem; }
@keyframes catch-photo-in {
  from { opacity: .12; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes catch-golden-sweep {
  0% { opacity: 0; background-position: 0% 0%; }
  32% { opacity: 1; }
  66% { opacity: .62; }
  100% { opacity: 0; background-position: 100% 100%; }
}
.catch-box {
  position: absolute;
  z-index: 1;
  height: 10%;
  top: 84%;
  transform: translateX(-50%);
  border: 2px solid #875337;
  border-top: 5px solid #bc8e59;
  border-radius: .25rem .25rem .6rem .6rem;
  background: repeating-linear-gradient(4deg, #ffd09213 0 1px, transparent 1px 5px), linear-gradient(#925737, #a96940 26%, #6e3926);
  box-shadow: inset 0 1px .3rem #352017, 0 .25rem .5rem #0a130a99;
  pointer-events: none;
}
.catch-drop {
  position: absolute;
  width: clamp(1.15rem, 4.5vw, 1.7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset -.12rem -.22rem .35rem #250a2280, 0 .1rem .28rem #0a141b85;
  background: radial-gradient(circle at 34% 28%, #fff2cf 0 4%, #f09c84 13%, #b72e42 42%, #7a162a 78%);
  pointer-events: none;
}
.catch-drop.kugel:nth-child(2n) {
  background: radial-gradient(circle at 34% 28%, #e0fff1 0 4%, #9ddec7 17%, #409487 43%, #1d5a52 80%);
}
.catch-drop.gold {
  background: radial-gradient(circle at 34% 28%, #fffde2 0 7%, #fff0a8 16%, #efa92e 50%, #a45f17 84%);
  box-shadow: 0 0 .55rem #ffc95889, inset -.14rem -.15rem .35rem #a7682b66;
}
.catch-drop:not(.zapfen)::before {
  content: "";
  position: absolute;
  top: -13%;
  left: 34%;
  width: 32%;
  height: 20%;
  border-radius: 30% 30% 8% 8%;
  background: linear-gradient(90deg, #875d30, #e5c392 42%, #936336);
}
.catch-drop.zapfen {
  aspect-ratio: .76;
  border-radius: 48% 48% 40% 40% / 71% 71% 28% 28%;
  transform: translate(-50%, -50%) rotate(17deg);
  background: repeating-linear-gradient(157deg, transparent 0 4px, #331b13 4px 6px, #ba8452 6px 8px), linear-gradient(90deg, #956a44, #53311f);
}
.snowball-dialog { width: min(calc(100% - 1.25rem), 45rem); }
.snowball-score { color: var(--gold); font-variant-numeric: tabular-nums; margin: .65rem 0; }
.snowball-field {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(14rem, 48dvh, 24rem);
  margin: 0 0 1rem;
  border-radius: .65rem;
  border: 1px solid var(--line);
  background: #273e58 url("schneelichtung.jpg") center 65% / cover;
  user-select: none;
  touch-action: manipulation;
}
.snowball-active, .snowball-target { cursor: crosshair; }
.snowball-target {
  position: absolute;
  transform: translate(-50%, -80%);
  width: clamp(3.6rem, 13%, 5.4rem);
  aspect-ratio: .82;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 30%;
}
.snowball-target img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 .25rem .3rem #263b5970); }
.snowball-target:focus-visible { outline: none; }
.snowball-target:focus-visible img { filter: drop-shadow(0 0 .22rem #fff9d9) drop-shadow(0 0 .45rem #294662); }
.snowball-target.snowball-moving { animation: snowman-sway 1.7s ease-in-out infinite alternate; }
.snowball-shot {
  position: absolute;
  left: -.42rem;
  top: -.42rem;
  width: .84rem;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 .4rem #fff6;
  background: radial-gradient(circle at 32% 28%, #fff, #dfedff 56%, #94aac5);
  pointer-events: none;
}
@keyframes snowman-sway {
  from { transform: translate(calc(-50% - 10px), -80%) rotate(-3deg); }
  to { transform: translate(calc(-50% + 10px), -82%) rotate(3deg); }
}
.puzzle-dialog { width: min(calc(100% - 1.25rem), 48rem); }
.puzzle-dialog #door-body > div > p { margin: .5rem 0; color: var(--muted); }
.puzzle-status { color: var(--gold); margin: .5rem 0 .75rem; }
.puzzle-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.puzzle-board { position: relative; display: grid; grid-template: repeat(6, minmax(0, 1fr)) / repeat(4, minmax(0, 1fr)); width: min(100%, 39dvh); margin-inline: auto; background: #221912; box-shadow: 0 0 0 1px #a78359; }
.puzzle-slot { border: 1px dashed #bf956054; border-radius: 0; padding: 0; background: transparent; }
.puzzle-slot.over, .puzzle-slot:hover { background: #d5a35835; }
.puzzle-slot.filled { border-color: transparent; cursor: grab; touch-action: none; }
.puzzle-slot[aria-pressed="true"], .puzzle-slot.over { outline: 2px solid var(--gold); outline-offset: -2px; }
.puzzle-slot[aria-pressed="true"], .puzzle-slot:focus-visible, .puzzle-slot.over { position: relative; z-index: 1; }
.puzzle-assembled { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; }
.puzzle-wave { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.puzzle-flash { position: absolute; }
.puzzle-flash-piece { display: block; width: 100%; height: 100%; filter: brightness(1.35) sepia(.25); }
.puzzle-sparkle { position: absolute; left: 43%; top: 33%; color: #fff7df; font-size: clamp(.65rem, 2dvh, 1rem); line-height: 1; text-shadow: 0 0 .45rem #ffca79; }
.puzzle-flash:nth-child(3n) .puzzle-sparkle { left: 55%; top: 51%; }
.puzzle-tray { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; }
.puzzle-tray-area.over { outline: 2px solid var(--gold); outline-offset: .25rem; }
.puzzle-return { display: block; margin-top: .5rem; font-size: .9rem; }
.puzzle-return:disabled { opacity: .55; }
.puzzle-piece { display: grid; place-items: center; min-width: 0; min-height: 42px; padding: 0; border-radius: .35rem; border-color: #bb91523b; background: #211813a0; cursor: grab; touch-action: none; user-select: none; }
.puzzle-piece[hidden] { display: grid !important; visibility: hidden; }
.puzzle-piece[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: -2px; background: #573c27; }
.puzzle-tile { display: block; width: min(100%, 3.9rem); height: auto; pointer-events: none; }
.puzzle-ghost { position: fixed; z-index: 2; pointer-events: none; transform: translate(-50%, -50%); opacity: .88; filter: drop-shadow(0 3px 4px #18100cb8); }
.puzzle-confirm { margin-top: .8rem; }
@media (max-width: 36rem) {
  .puzzle-dialog .dialog-inner { padding: 1rem; }
  .puzzle-layout { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .puzzle-board { width: min(65vw, 33dvh, 15rem); }
  .puzzle-tray { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.room-enter { animation: room-enter .65s ease both; }
@keyframes room-enter { from { opacity: .18; } to { opacity: 1; } }
.dialog-inner { padding: clamp(1.25rem, 4vw, 2rem); position: relative; }
.close { position: absolute; top: .6rem; right: .65rem; font-size: 1.35rem; padding: .1rem .7rem; }
.answer { display: grid; gap: .5rem; }
.answer-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.answer-row input {
  flex: 1 1 9rem;
  min-width: 0;
  color: var(--paper);
  background: #201713;
  border: 1px solid #a78359;
  border-radius: .5rem;
  padding: .55rem .75rem;
}
.primary { background: #ebc68a; border-color: #ebc68a; color: #2c1c12; font-weight: 600; }
.feedback { color: #ffd1a4; margin: 0; }
details { margin-top: 1rem; color: var(--muted); }
summary { color: var(--gold); cursor: pointer; }
.sample-photo {
  width: 100%;
  aspect-ratio: 2.2;
  border-radius: .5rem;
  border: 1px solid var(--line);
  background: #243348 url("zimmer.png") 65.5% 16% / 760% auto no-repeat;
}
figure { margin: 1rem 0; }
figcaption { color: var(--muted); font-size: .875rem; margin-top: .35rem; }
audio { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
