:root {
  --night: #14213f;
  --night-2: #0a1226;
  --paper: #fbfaf7;
  --cream: #e6eef8;
  --red: #c8304f;
  --red-deep: #8e1c38;
  --gold: #e3b04b;
  --gold-soft: #f4d68c;
  --pine: #1f7a83;
  --ink: #1d2740;
  --ink-soft: #5d6886;
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --ui: "Nunito", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--ui);
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 50% -10%, #2c4680 0%, transparent 60%),
    radial-gradient(900px 400px at 50% 110%, rgba(227,176,75,.22) 0%, transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.035) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  background-attachment: fixed;
  padding: env(safe-area-inset-top, 0px) 16px calc(env(safe-area-inset-bottom, 0px) + 32px);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.santa { position: absolute; left: 0; top: 0; color: var(--gold-soft); filter: drop-shadow(0 0 6px rgba(241,209,140,.55)); }
.sleigh-svg { width: 100%; display: block; overflow: visible; }
.sleigh-svg * { fill: currentColor; stroke: currentColor; }
.sleigh-svg path[fill="none"] { fill: none; }
.sleigh-bob { animation: sleighBob 1.6s ease-in-out infinite; }
.gallop { transform-box: fill-box; transform-origin: 50% 0; animation: gallop .35s ease-in-out infinite alternate; }
@keyframes sleighBob { 50% { transform: translateY(-5px); } }
@keyframes gallop { from { transform: scaleX(1); } to { transform: scaleX(.55); } }
.trail {
  position: absolute; right: 100%; top: 62%; width: 70px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(241,209,140,.9));
  box-shadow: 0 0 6px rgba(241,209,140,.8);
}
.trail::before, .trail::after {
  content: "✦"; position: absolute; color: var(--gold-soft); font-size: 9px; animation: twinkle 0.6s ease-in-out infinite alternate;
}
.trail::before { left: 15px; top: -9px; }
.trail::after { left: 40px; top: 3px; animation-delay: .3s; }
@keyframes twinkle { from { opacity: .2; } to { opacity: 1; } }

.shooting-star {
  position: absolute; left: 0; top: 0; width: 130px; height: 2px; margin-left: -130px; transform-origin: 100% 50%;
  border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9));
  box-shadow: 0 0 8px rgba(255,255,255,.7);
}
.shooting-star::after {
  content: ""; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgba(255,255,255,.85);
}
header, main { position: relative; z-index: 1; }

#preview-banner {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  margin: 8px auto 0; width: fit-content;
  background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- header ---------- */
.top { text-align: center; padding: 36px 0 22px; max-width: 560px; margin: 0 auto; }
.eyebrow { margin: 0; color: var(--gold-soft); font-weight: 800; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 9vw, 52px); line-height: 1.02;
  margin: 10px 0 8px; letter-spacing: -.01em;
}
h1 span { font-family: var(--hand); font-weight: 700; color: var(--gold-soft); font-size: 1.15em; display: inline-block; transform: rotate(-3deg); }
.sub { margin: 0; color: rgba(255,250,242,.75); font-size: 15px; }

/* ---------- grid ---------- */
main { max-width: 560px; margin: 0 auto; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.door {
  position: relative;
  aspect-ratio: 1 / 1.18;
  border: 0; padding: 0; margin: 0;
  background: none; cursor: pointer;
  perspective: 700px;
  font: inherit; color: inherit;
  border-radius: var(--radius);
}
.door:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }

.behind {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 3px 10px rgba(58,36,32,.35);
  display: grid; place-items: center;
  font-size: clamp(26px, 8vw, 38px);
}

.panel {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.2,.75,.25,1);
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.12);
  overflow: hidden;
}
/* wrapping-paper looks */
.v0 .panel { background: var(--red); color: var(--paper); }
.v1 .panel { background: var(--cream); color: var(--red-deep); }
.v2 .panel { background: var(--pine); color: var(--paper); }
.v3 .panel { background: var(--gold); color: var(--ink); }

.v0 .panel { background-image: radial-gradient(circle, rgba(255,255,255,.16) 1.6px, transparent 2px); background-size: 14px 14px; }
.v1 .panel { background-image: repeating-linear-gradient(45deg, rgba(179,18,46,.10) 0 6px, transparent 6px 14px); }
.v2 .panel { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 4px, transparent 4px 12px); }
.v3 .panel { background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35) 0 2px, transparent 2.5px), radial-gradient(circle at 70% 70%, rgba(255,255,255,.25) 0 1.5px, transparent 2px); background-size: 18px 18px; }

.num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 8.5vw, 40px);
  text-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.knob {
  position: absolute; right: 9px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: currentColor; opacity: .55;
}
.lock { position: absolute; bottom: 6px; right: 8px; font-size: 11px; opacity: .55; }

.door.open .panel { transform: rotateY(-80deg); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.door.open .lock { display: none; }

.door.today .panel {
  animation: glow 2.2s ease-in-out infinite;
}
.door.today::after {
  content: "today"; position: absolute; z-index: 2;
  top: -7px; left: 50%; transform: translateX(-50%);
  background: var(--paper); color: var(--red);
  font-weight: 800; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.door.today.open::after { display: none; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold-soft), 0 0 16px 2px rgba(241,209,140,.45); }
  50%      { box-shadow: 0 0 0 2px var(--gold-soft), 0 0 28px 6px rgba(241,209,140,.75); }
}

.door.shake .panel { animation: shake .45s ease; }
@keyframes shake {
  0%,100% { transform: rotateY(0) translateX(0); }
  20% { transform: rotateY(-8deg) translateX(-2px); }
  40% { transform: rotateY(-2deg) translateX(3px); }
  60% { transform: rotateY(-10deg) translateX(-2px); }
  80% { transform: rotateY(-1deg) translateX(1px); }
}

.from { text-align: center; font-family: var(--hand); font-size: 26px; color: var(--gold-soft); margin: 28px 0 0; }

/* ---------- notification prompt ---------- */
.notify {
  position: fixed; z-index: 10;
  left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  max-width: 520px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  animation: rise .5s cubic-bezier(.2,.8,.2,1);
}
.notify-text { flex: 1 1 220px; font-size: 14px; line-height: 1.4; }
.notify-text b { color: var(--red); }
.notify-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

.btn {
  font: inherit; font-weight: 800; font-size: 15px;
  border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--red); color: var(--paper); cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; }
.btn.ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.link { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); background: none; border: 0; padding: 8px; cursor: pointer; }

/* ---------- modal ---------- */
dialog {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: visible;
}
dialog::backdrop { background: rgba(10, 25, 18, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] .modal-inner { animation: pop .45s cubic-bezier(.2,.9,.25,1.15); }
@keyframes pop { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.modal-inner { position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; border-radius: 20px; }
.close {
  position: absolute; top: 8px; right: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(58,36,32,.08); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
}

.day-label { font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }

/* message: a letter */
.letter {
  background: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(179,18,46,.12) 33px 34px);
  background-position: 0 14px;
  padding: 28px 26px 30px;
  border-radius: 20px;
}
.letter p.body { font-family: var(--hand); font-size: 27px; line-height: 34px; margin: 0; color: var(--ink); white-space: pre-line; }
.letter .sign { font-family: var(--hand); font-size: 24px; color: var(--red); text-align: right; margin: 14px 0 0; }

/* coupon: a ticket */
.ticket {
  position: relative;
  background: var(--paper);
  border-radius: 20px;
  padding: 26px 24px 22px;
  text-align: center;
  overflow: hidden;
  /* punched notches on both sides, level with the dashed tear line */
  --notch: 130px;
  -webkit-mask:
    radial-gradient(circle 13px at left var(--notch), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at right var(--notch), #0000 97%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle 13px at left var(--notch), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at right var(--notch), #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket .emoji { font-size: 54px; line-height: 1; margin: 6px 0 10px; display: block; }
.ticket .kind { font-weight: 800; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.ticket h2 { font-family: var(--display); font-size: 30px; line-height: 1.1; margin: 18px 0 8px; color: var(--red-deep); padding-top: 20px; border-top: 2px dashed rgba(58,36,32,.18); }
.ticket .detail { color: var(--ink-soft); font-size: 16px; line-height: 1.5; margin: 0 0 20px; }
.ticket .stamp {
  display: inline-block; transform: rotate(-6deg);
  border: 3px solid var(--pine); color: var(--pine);
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 14px;
  padding: 6px 14px; border-radius: 8px;
}
.ticket .stamp small { display: block; font-size: 11px; letter-spacing: .04em; text-transform: none; font-weight: 700; }
.ticket .hint { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }

/* photo: a polaroid */
.polaroid {
  background: #fff;
  padding: 14px 14px 18px;
  border-radius: 6px;
  transform: rotate(-1.5deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.polaroid img, .polaroid .missing {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: #eee;
}
.polaroid .missing { display: grid; place-items: center; text-align: center; color: #999; font-size: 14px; padding: 20px; }
.polaroid .caption { font-family: var(--hand); font-size: 28px; text-align: center; margin: 12px 4px 0; color: var(--ink); line-height: 1.15; }
.photo-note { margin-top: 18px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 16px); z-index: 20;
  transform: translate(-50%, -140%);
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- confetti ---------- */
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; z-index: 60; pointer-events: none; border-radius: 2px; }
.confetti.heart-bit { width: auto; height: auto; font-size: 22px; line-height: 1; background: none; }

/* ============================================================ the present */
.gift { position: relative; width: 150px; height: 140px; --gcol: var(--red); --rib: var(--gold); }
.gift.v1 { --gcol: var(--cream); --rib: var(--red); }
.gift.v2 { --gcol: var(--pine); --rib: var(--gold-soft); }
.gift.v3 { --gcol: var(--gold); --rib: var(--red); }
.gift-box, .gift-lid {
  position: absolute; background-color: var(--gcol); border-radius: 8px;
  background-image: linear-gradient(90deg, transparent 42%, var(--rib) 42% 58%, transparent 58%);
}
.gift-box { left: 10px; right: 10px; bottom: 0; height: 96px; box-shadow: inset 0 14px 0 rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.35); }
.gift-lid { left: 0; right: 0; bottom: 92px; height: 30px; z-index: 2; box-shadow: 0 4px 8px rgba(0,0,0,.2); transform-origin: 50% 100%; }
.bow { position: absolute; left: 50%; top: -24px; width: 0; height: 0; }
.bow::before, .bow::after {
  content: ""; position: absolute; top: 0; width: 26px; height: 22px;
  border: 7px solid var(--rib); border-radius: 50% 50% 4px 50%;
}
.bow::before { right: 0; transform: rotate(-20deg); }
.bow::after { left: 0; transform: scaleX(-1) rotate(-20deg); }

.gift-stage {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; align-content: center; gap: 18px;
  background: rgba(10,25,18,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: opacity .25s;
}
.gift-stage .gift { scale: 1.4; animation: giftIn .5s cubic-bezier(.2,.9,.25,1.3) both; }
.gift-stage.wiggle .gift { animation: giftWiggle .6s ease-in-out both; }
.gift-stage.open .gift-lid { animation: lidOff .6s cubic-bezier(.3,.6,.4,1) forwards; }
.gift-stage.open .gift-box { animation: boxAway .45s .2s ease-in forwards; }
.gift-stage .burst {
  position: absolute; width: 40px; height: 40px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff8dc 0%, rgba(241,209,140,.7) 35%, transparent 70%);
}
.gift-stage.open .burst { animation: burst .7s ease-out forwards; }
.gift-stage.gone { opacity: 0; }
.gift-tap { color: rgba(255,250,242,.5); font-size: 12px; margin: 0; letter-spacing: .05em; }
.gift-stage .gift-tap { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
@keyframes giftIn { from { transform: scale(.2) translateY(80px); opacity: 0; } }
@keyframes giftWiggle {
  0%,100% { transform: rotate(0); } 20% { transform: rotate(-9deg) scale(1.04); }
  40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg) scale(1.06); } 80% { transform: rotate(4deg); }
}
@keyframes lidOff { to { transform: translate(40px, -170px) rotate(38deg); opacity: 0; } }
@keyframes boxAway { to { transform: scale(.6) translateY(30px); opacity: 0; } }
@keyframes burst { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(14); } }

/* ============================================================ shared game card */
.game-card, .count-card, .pups-card, .boom-card, .tilt-stage {
  background: var(--paper); border-radius: 20px; padding: 26px 22px 24px; text-align: center;
}
.game-title { font-family: var(--display); font-size: 24px; line-height: 1.2; margin: 0 0 6px; color: var(--red-deep); }
.game-sub { color: var(--ink-soft); font-size: 14px; line-height: 1.45; margin: 0 0 16px; }
.game-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.btn.small { font-size: 14px; padding: 8px 16px; }
.hint { font-size: 12px; color: var(--ink-soft); }
.letter-title { font-family: var(--display); font-size: 24px; color: var(--red-deep); margin: 0 0 6px; line-height: 1.2; }
.reveal-in { animation: pop .5s cubic-bezier(.2,.9,.25,1.15); }

/* sliding puzzle */
.puzzle { position: relative; width: 100%; max-width: 330px; aspect-ratio: 1; margin: 0 auto; border-radius: 12px; background: #ead9bf; overflow: hidden; touch-action: manipulation; }
.tile {
  position: absolute; left: 0; top: 0; width: 33.3334%; height: 33.3334%;
  border: 0; padding: 0; background-size: 300% 300%; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(255,250,242,.85); border-radius: 6px;
  transition: transform .18s ease, opacity .5s, box-shadow .5s;
}
.tile-last { opacity: 0; pointer-events: none; }
.tile.can-move { box-shadow: inset 0 0 0 3px rgba(241,209,140,.95); }
.num-badge {
  position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: none; place-items: center; background: rgba(255,250,242,.92); color: var(--red-deep);
  font-weight: 800; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.puzzle.show-nums .num-badge { display: grid; }
.puzzle.solved .num-badge { display: none; }
.tile.hint-glow { z-index: 2; animation: hintGlow .7s ease-in-out 4; }
@keyframes hintGlow {
  0%, 100% { box-shadow: inset 0 0 0 3px rgba(241,209,140,.95); filter: brightness(1); }
  50% { box-shadow: inset 0 0 0 6px #fff, 0 0 18px 4px rgba(241,209,140,.9); filter: brightness(1.25); }
}
.puzzle-tools { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.pill {
  font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid #ead9bf; border-radius: 999px; padding: 8px 14px;
}
.pill:active { transform: scale(.97); }
.pill.on { border-color: var(--red); color: var(--red); background: #fff4f4; }
.give-up { display: block; margin: 12px auto 0; color: var(--red); text-decoration: underline; }
.tile.nope { animation: tileNope .3s; }
@keyframes tileNope { 25% { filter: brightness(.8); } }
.puzzle.solved .tile { box-shadow: none; border-radius: 0; }
.puzzle.solved .tile-last { opacity: 1; }
.puzzle.solved { box-shadow: 0 0 0 4px var(--gold), 0 0 30px rgba(241,209,140,.8); }
.puzzle-peek { position: absolute; inset: 0; z-index: 3; background-size: cover; opacity: 0; pointer-events: none; transition: opacity .2s; }
.puzzle.peeking .puzzle-peek { opacity: 1; }
.peek { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* quiz */
.options { display: grid; gap: 10px; margin-top: 16px; }
.option {
  font: inherit; font-weight: 800; font-size: 17px; color: var(--ink);
  background: #fff; border: 2px solid #ead9bf; border-radius: 14px; padding: 14px; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s;
}
.option:active { transform: scale(.98); }
.option.wrong { background: #fbe3e6; border-color: #f0b3bd; color: #b9909a; text-decoration: line-through; animation: wrongShake .4s; }
.option.right { background: #e3f1e8; border-color: var(--pine); color: var(--pine); transform: scale(1.03); }
.option.right::after { content: " ✓"; }
.option:disabled { cursor: default; }
@keyframes wrongShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz-reveal { font-family: var(--hand); font-size: 28px; color: var(--red); margin: 18px 0 0; line-height: 1.15; animation: pop .5s; }

/* slider guesses */
.guess { margin-top: 18px; padding-top: 16px; border-top: 2px dashed rgba(58,36,32,.15); }
.guess-q { font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.guess-val { font-family: var(--display); font-size: 20px; color: var(--ink-soft); margin-bottom: 4px; }
.guess-val b { font-size: 34px; color: var(--red); }
.guess input[type=range] { width: 100%; accent-color: var(--red); height: 32px; margin: 4px 0 10px; }
.guess-result { margin: 4px 0 0; color: var(--ink); line-height: 1.45; animation: pop .4s; }
.guess-outro { font-family: var(--hand); font-size: 25px; line-height: 1.2; color: var(--red-deep); margin: 20px 0 0; animation: pop .5s; }

/* day 9: tilt */
.tilt-stage { padding-bottom: 28px; }
.tilt-gift { display: grid; place-items: center; padding: 36px 0 10px; cursor: pointer; }
.tilt-gift .gift { animation: stuck 3.2s ease-in-out infinite; }
.tilt-gift.nudge .gift { animation: giftWiggle .4s; }
.tilt-gift.flip .gift { animation: flipOver .7s cubic-bezier(.4,0,.3,1) forwards; }
.tilt-gift.flip .gift-lid { animation: lidDrop .7s .2s ease-in forwards; }
.tilt-hint { min-height: 1.5em; color: var(--ink-soft); font-size: 15px; margin: 10px 0 0; }
.tilt-stage.released .tilt-gift { display: none; }
.tilt-photo .polaroid { animation: fallIn .9s cubic-bezier(.3,1.4,.5,1) both; margin-top: 4px; }
@keyframes stuck { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-3deg); } 94% { transform: rotate(3deg); } }
@keyframes flipOver { to { transform: rotate(180deg) translateY(-20px); } }
@keyframes lidDrop { to { transform: translateY(-140px) rotate(-30deg); opacity: 0; } }
@keyframes fallIn { from { transform: translateY(-260px) rotate(-14deg); opacity: 0; } to { transform: rotate(-1.5deg); opacity: 1; } }

/* day 15: bomb */
.bomb-stage { position: fixed; inset: 0; z-index: 45; background: #000; display: grid; place-items: center; transition: opacity .3s; }
.bomb-stage.gone { opacity: 0; }
.bomb { position: relative; width: 150px; animation: bombIn .5s cubic-bezier(.2,.9,.3,1.3); }
.bomb-stage.lit .bomb { animation: bombIn .5s cubic-bezier(.2,.9,.3,1.3), tremble .12s .6s linear infinite; }
.spark {
  position: absolute; left: 82%; top: 2%; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, #ffd166 40%, #ff6b35 65%, transparent 72%);
  animation: spark .12s linear infinite alternate, fuseBurn 2.5s linear forwards;
}
.fuse { stroke-dasharray: 60; animation: fuseShrink 2.5s linear forwards; }
.bomb-stage.boom .bomb { display: none; }
.flash { position: absolute; inset: 0; background: #fff; animation: flash .7s ease-out forwards; pointer-events: none; }
.boom-msg {
  position: relative; z-index: 2; color: var(--paper); text-align: center; padding: 0 24px;
  font-family: var(--display); font-weight: 700; font-size: clamp(38px, 11vw, 64px); line-height: 1.1;
  animation: boomIn .7s .15s cubic-bezier(.2,1.5,.4,1) both;
}
.rain-heart {
  position: absolute; top: -50px; z-index: 1; pointer-events: none; line-height: 1;
  animation: heartFall linear forwards;
}
@keyframes heartFall {
  0%   { transform: translate(0, 0) rotate(-15deg); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(var(--sway), 50vh) rotate(10deg); }
  90%  { opacity: 1; }
  100% { transform: translate(0, calc(100vh + 60px)) rotate(-10deg); opacity: 0; }
}
.bomb-stage .gift-tap { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
.bomb-stage.boom { background: radial-gradient(circle at 50% 50%, #7f0d22 0%, #2a0510 60%, #000 100%); }
@keyframes bombIn { from { transform: scale(0); } }
@keyframes tremble { 0% { transform: translate(0,0); } 25% { transform: translate(-2px,1px); } 50% { transform: translate(2px,-1px); } 75% { transform: translate(-1px,-2px); } }
@keyframes spark { from { transform: scale(.8); } to { transform: scale(1.35); } }
@keyframes fuseBurn { to { left: 52%; top: 18%; } }
@keyframes fuseShrink { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 60; } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes boomIn { from { transform: scale(.2); opacity: 0; } }
.boom-big { font-size: 64px; line-height: 1; margin: 6px 0; }
.boom-text { font-family: var(--display); font-size: 30px; color: var(--red-deep); margin: 8px 0 0; line-height: 1.15; }

/* day 17: countdown */
.count-pre { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }
.count-num { font-family: var(--display); font-weight: 700; font-size: 120px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; margin: 6px 0; transition: transform .4s cubic-bezier(.2,1.6,.4,1); }
.count-card.arrived .count-num { transform: scale(1.25); }
.count-card.arrived .count-pre { color: var(--red); font-size: 16px; }
.count-post { font-family: var(--hand); font-size: 30px; line-height: 1.15; color: var(--ink); margin: 6px 0 0; opacity: 0; transform: translateY(10px); transition: all .6s .2s; }
.count-post.show { opacity: 1; transform: none; }

/* day 18: chase */
.chase-board { position: relative; max-width: 360px; margin: 0 auto; }
.chase-board svg { width: 100%; display: block; touch-action: manipulation; }
.chase-board .lines line { stroke: #c9b08c; stroke-width: 6; stroke-linecap: round; }
.dot { fill: #d8c3a3; transition: fill .2s, r .2s; }
.dot.goal { fill: var(--gold); r: 13; }
.dot.can { fill: var(--pine); r: 12; animation: canPulse 1s ease-in-out infinite alternate; }
@keyframes canPulse { to { r: 15; } }
.hit { fill: transparent; cursor: pointer; }
.ab { font-family: var(--display); font-weight: 700; font-size: 28px; fill: var(--red); }
.token { transition: transform .35s cubic-bezier(.3,.8,.3,1.15); pointer-events: none; }
.token text { font-size: 32px; }
.me-bg { fill: #fff; stroke: var(--pine); stroke-width: 3; }
.coach-ring { fill: var(--red); }
.chase-board.won .me-inner { animation: hop .45s ease 3; }
@keyframes hop { 50% { transform: translateY(-14px) scale(1.15); } }
.bob { animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }

.bubble {
  position: absolute; z-index: 3; transform: translate(-50%, -100%);
  background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; line-height: 1.2;
  padding: 7px 11px; border-radius: 14px; pointer-events: none;
  width: max-content; max-width: 190px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.18), 0 0 0 2px var(--red);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px;
  border: 7px solid transparent; border-bottom: 0; border-top-color: #fff;
}
.bubble.left { transform: translate(-85%, -100%); }
.bubble.left::after { left: 85%; }
.bubble.right { transform: translate(-15%, -100%); }
.bubble.right::after { left: 15%; }
.bubble.pop { animation: bubblePop .25s cubic-bezier(.2,1.6,.4,1); }
@keyframes bubblePop { from { scale: .3; opacity: 0; } }

.gotcha {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; gap: 6px;
  background: rgba(127,13,34,.18); border-radius: 16px; pointer-events: none;
}
.gotcha img {
  width: 62%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--red); box-shadow: 0 16px 40px rgba(0,0,0,.4);
  animation: zoomFace .55s cubic-bezier(.2,1.5,.4,1) both;
}
.gotcha span {
  font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--red);
  text-shadow: 0 2px 0 #fff, 0 0 12px #fff; animation: zoomFace .5s .25s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes zoomFace { from { transform: scale(.1) rotate(-25deg); opacity: 0; } }

.win-photo { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.win-photo .polaroid { width: 72%; animation: winPop .8s cubic-bezier(.2,1.4,.4,1) both; }
.win-photo .polaroid img { aspect-ratio: 1; }
.win-photo .caption { font-size: 24px; }
@keyframes winPop { from { transform: translateY(-45%) scale(.15) rotate(-20deg); opacity: 0; } to { transform: rotate(-3deg); } }
.chase-status { font-weight: 700; color: var(--ink); min-height: 2.6em; margin: 10px 0 8px; line-height: 1.3; }

/* day 21: puppies */
.pups svg { width: 100%; display: block; }
.pup-l { animation: walkL 1.4s cubic-bezier(.3,.8,.3,1) both; }
.pup-r { animation: walkR 1.4s cubic-bezier(.3,.8,.3,1) both; }
.pup .head { transform-box: fill-box; transform-origin: 30% 90%; animation: nuzzle 2.4s 1.4s ease-in-out infinite; }
.tail { transform-box: fill-box; transform-origin: 100% 100%; animation: wag .35s ease-in-out infinite alternate; }
.arm { opacity: 0; animation: armIn .4s 1.3s forwards; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 4s 2s infinite; }
.hearts text { font-size: 18px; fill: #e63950; opacity: 0; animation: floatUp 2.4s ease-out infinite; }
.hearts text:nth-child(1) { animation-delay: 1.5s; }
.hearts text:nth-child(2) { animation-delay: 2.3s; font-size: 14px; }
.hearts text:nth-child(3) { animation-delay: 3.1s; font-size: 22px; }
@keyframes walkL { from { transform: translateX(-70px); } }
@keyframes walkR { from { transform: translateX(70px); } }
@keyframes nuzzle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
@keyframes wag { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes armIn { to { opacity: 1; } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px); } }
.pups-text { font-family: var(--hand); font-size: 34px; color: var(--red); margin: 6px 0 0; line-height: 1.1; }

/* day 22: archery */
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.score { border-radius: 14px; padding: 8px 10px; background: #f3e9da; display: grid; gap: 4px; transition: box-shadow .2s, background .2s; }
.score.active { background: #fff; box-shadow: 0 0 0 3px var(--pc); }
.pname { font-weight: 800; color: var(--pc); font-size: 14px; }
.shots { display: flex; gap: 5px; justify-content: center; }
.shots i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: rgba(58,36,32,.08); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ink); }
.total { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); }
.range { width: 100%; max-width: 360px; aspect-ratio: 360 / 380; display: block; margin: 0 auto; touch-action: none; cursor: crosshair; border-radius: 14px; background: linear-gradient(#e8f2ea, #d5e7d9 70%, #b9d4bd); }
.arch-status { font-weight: 700; color: var(--ink); min-height: 2.6em; margin: 10px 0 6px; line-height: 1.3; }

/* ============================================================ voucher wallet */
.wallet-row { display: flex; justify-content: center; margin-top: 22px; }
.wallet-btn {
  font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  background: var(--paper); color: var(--red-deep); border: 0; border-radius: 999px; padding: 12px 22px;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
}
.wallet-btn:active { transform: scale(.97); }
.wallet-btn span { color: var(--ink-soft); font-weight: 700; }
.wallet { background: var(--paper); border-radius: 20px; padding: 26px 18px 18px; text-align: center; }
.wallet-list { display: grid; gap: 10px; text-align: left; }
.wallet-item {
  font: inherit; color: var(--ink); cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border: 2px dashed rgba(179,18,46,.35); border-radius: 14px;
}
.wallet-item.used { opacity: .55; border-style: solid; border-color: #e3d6c3; }
.wi-emoji { font-size: 30px; }
.wi-text { flex: 1; display: grid; gap: 2px; text-align: left; }
.wi-text b { font-size: 16px; }
.wi-text small { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.wallet-item:not(.used) .wi-text small { color: var(--pine); }
.wi-arrow { font-size: 26px; color: var(--ink-soft); }
.wallet-back {
  display: block; margin: 0 0 10px; font: inherit; font-weight: 800; font-size: 14px;
  color: var(--paper); background: rgba(255,250,242,.18); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}

@media (max-width: 360px) { .grid { gap: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .panel { transition: none; }
  .door.today .panel { animation: none; box-shadow: 0 0 0 2px var(--gold-soft); }
}

/* ============================================================ family: ranking, name, new games */
.wallet-row { gap: 10px; flex-wrap: wrap; }
.player-chip { font-family: var(--ui); font-size: 13px; color: var(--gold-soft); opacity: .85; padding: 4px; }
.player-chip b { color: var(--paper); }
.board-card { background: var(--paper); border-radius: 20px; padding: 26px 18px 18px; text-align: center; }
.ranking { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 6px; text-align: left; }
.ranking li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  background: #fff; border: 2px solid #f0e3cf; font-weight: 700;
}
.ranking li.me { border-color: var(--gold); background: #fff8e8; }
.r-place { width: 30px; text-align: center; font-size: 18px; }
.r-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.r-name small { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.r-score { color: var(--pine); font-weight: 800; white-space: nowrap; }
.ranking.overall li:first-child { border-color: var(--gold); }
.rank-empty { color: var(--ink-soft); font-size: 14px; margin: 10px 0; }
.rank-slot:empty { display: none; }
.today-rank { background: var(--paper); border-radius: 16px; padding: 14px 12px 6px; margin-top: 16px; text-align: center; color: var(--ink); }
.tr-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; }
.tr-lead { margin: 6px 0 0; color: var(--red); font-weight: 800; }
.show-board { color: var(--red); }
.day-rank { text-align: left; margin-top: 10px; border-top: 1px dashed #e3d6c3; padding-top: 8px; }
.day-rank summary { cursor: pointer; font-weight: 800; padding: 6px 2px; }
.whoami { font-size: 13px; color: var(--ink-soft); margin: 16px 0 0; }
.whoami .link { padding: 2px; text-decoration: underline; font-size: 13px; }
.name-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 16px 0 12px; }
.name-list:empty { display: none; }
.name-form { display: flex; gap: 8px; margin-top: 8px; }
.name-input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px;
  border: 2px solid #ead9bf; background: #fff; color: var(--ink);
}
.name-input:focus { outline: none; border-color: var(--gold); }
.result-big { font-family: var(--display); font-size: 24px; font-weight: 700; text-align: center; margin: 14px 0 0; color: var(--ink); }
.reveal-in + .result-big { color: var(--paper); }
.clock { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--pine); }
.quiz-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.quiz-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e3d6c3; }
.quiz-dots i.past { background: var(--pine); }
.quiz-dots i.now { background: var(--red); transform: scale(1.3); }
.answers { text-align: left; padding-left: 20px; font-size: 14px; }
.answers li { margin-bottom: 8px; }
.answers b { display: block; color: var(--pine); }

/* reaction */
.react-pad {
  width: 100%; height: 260px; margin-top: 14px; border: 0; border-radius: 20px; cursor: pointer;
  display: grid; place-content: center; gap: 6px; font: inherit; color: var(--paper);
  user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: background .1s;
}
.react-pad.wait { background: var(--night); }
.react-pad.go { background: var(--pine); }
.react-pad.hit { background: #2c5a85; }
.react-pad.early { background: var(--red); }
.react-big { font-size: 34px; font-weight: 800; }
.react-pad.go .react-big { font-size: 90px; line-height: 1; }
.react-small { font-size: 15px; font-weight: 700; opacity: .9; }
.react-times { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; min-height: 26px; }
.react-times span { background: #fff; border: 2px solid #f0e3cf; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; }

/* memory */
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mcard { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; perspective: 600px; touch-action: manipulation; }
.mface {
  position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; font-size: 30px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .35s; overflow: hidden;
}
.mface.back { background: linear-gradient(135deg, var(--red), var(--red-deep, #8a0e24)); box-shadow: inset 0 0 0 3px rgba(241,209,140,.6); }
.mface.front { background: #fff; border: 2px solid #f0e3cf; transform: rotateY(180deg); }
.mface.front img { width: 100%; height: 100%; object-fit: cover; }
.mcard.up .back { transform: rotateY(180deg); }
.mcard.up .front { transform: rotateY(0); }
.mcard.found .front { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

/* catch */
.catch-hud { display: flex; justify-content: space-between; font-weight: 800; margin-top: 10px; color: var(--pine); }
.catch-cv {
  width: 100%; aspect-ratio: 340 / 420; margin-top: 8px; border-radius: 16px; display: block;
  background: linear-gradient(#173a2d, #2f6b50 85%, #fffaf2 85%);
}
.game-card .start { margin-top: 12px; }
.quiz-img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin: 10px 0 4px; }
.finale-row { text-align: center; margin-top: 16px; }

/* stack */
.stack-cv { width: 100%; aspect-ratio: 340 / 480; margin-top: 8px; border-radius: 16px; display: block; touch-action: manipulation;
  background: linear-gradient(#173a2d, #2f6b50); }
/* whack */
.whack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.hole {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; touch-action: manipulation;
  background: linear-gradient(#8a3b2a, #5e2619); box-shadow: inset 0 -10px 0 rgba(0,0,0,.25), inset 0 6px 0 #fffaf2;
}
.hole .pop { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; transform: translateY(100%); transition: transform .12s ease-out; }
.hole.up .pop { transform: translateY(6%); }
.hole.hit { background: linear-gradient(#2f6b50, #1f4a37); }
.hole.bad { background: linear-gradient(#b3122e, #7f0d22); }
/* timer */
.timer-face { font-family: var(--display); font-size: 72px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 14px 0 0; color: var(--ink); }
.timer-face.hidden-time { color: #c9b9a2; }
.timer-face.good { color: var(--pine); }
.timer-face.bad { color: var(--red); }
.timer-msg { font-weight: 800; min-height: 22px; }
.timer-btn { font-size: 20px; padding: 16px 40px; }
.timer-btn.stop { background: var(--pine); }
/* count */
.herd { position: relative; height: 280px; margin-top: 10px; border-radius: 16px; background: linear-gradient(#dfeee6, #fffaf2); display: grid; place-items: center; overflow: hidden; }
.herd-item { position: absolute; font-size: 30px; transform: translate(-50%, -50%); }
.herd-q { font-family: var(--display); font-size: 24px; font-weight: 700; display: block; margin-bottom: 10px; }
.count-options { grid-template-columns: repeat(4, 1fr); }
.count-options:empty { display: none; }
/* simon */
.bells { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.bell {
  aspect-ratio: 1.3; border: 0; border-radius: 20px; font-size: 48px; cursor: pointer; touch-action: manipulation;
  background: var(--bc); opacity: .55; transition: opacity .08s, transform .08s;
}
.bell:not([disabled]) { opacity: .8; }
.bell.lit { opacity: 1; transform: scale(1.05); box-shadow: 0 0 24px var(--bc); }
.bell.hint { opacity: 1; outline: 4px dashed var(--ink); }

.bday {
  background: linear-gradient(135deg, #ffe3ea, #fff4d6); color: var(--red-deep); border-radius: 14px;
  padding: 10px 46px; margin-bottom: 12px; text-align: center; font-size: 14px; line-height: 1.4; box-shadow: 0 0 0 2px #f1d18c;
}
.bday-tag { display: inline; font-size: 11px; color: var(--red); }
/* flyer */
.flyer-cv { width: 100%; aspect-ratio: 340 / 480; margin-top: 8px; border-radius: 16px; display: block; }
/* Kölner Dom */
.dom-wrap { position: relative; width: 62%; margin: 8px auto 0; }
.dom-svg { display: block; width: 100%; }
.dom-climber { position: absolute; font-size: 26px; transform: translate(-50%, -50%); transition: top .12s; }
.dom-flag { position: absolute; left: 84%; top: 30%; font-size: 30px; transform: translate(-50%, -50%); }
.dom-bar { height: 10px; border-radius: 6px; background: #eadfcd; overflow: hidden; margin-top: 10px; }
.dom-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d9374f, #f2c14e); transition: width .1s; }
.feet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.foot {
  font: inherit; font-size: 34px; padding: 16px 0 10px; border: 0; border-radius: 18px; cursor: pointer; touch-action: manipulation;
  background: var(--pine); color: var(--paper); display: grid; gap: 2px; user-select: none; -webkit-user-select: none;
}
.foot[data-f="1"] { background: var(--red); }
.foot small { font-size: 13px; font-weight: 800; }
.foot.press { animation: footPress .12s; }
.foot[disabled] { opacity: .5; }
@keyframes footPress { 50% { transform: scale(.94); } }
.dom-card.stumble .feet { animation: tileNope .3s 2; }
.dom-msg { font-weight: 800; min-height: 22px; margin: 10px 0 0; }
/* candle fuse */
.fuse-wrap { display: grid; grid-template-columns: 30px 1fr 34px; gap: 4px; margin-top: 10px; align-items: stretch; }
.fuse-side { display: grid; font-size: 22px; }
.fuse-side span { display: grid; place-items: center; }
.fuse { display: grid; gap: 3px; aspect-ratio: 1; }
.piece { border: 0; padding: 0; border-radius: 8px; background: #3a2d26; cursor: pointer; touch-action: manipulation; }
.piece svg { width: 100%; height: 100%; display: block; }
.piece polyline { stroke: #c9b9a2; stroke-width: 8; stroke-linecap: round; fill: none; }
.piece circle { fill: #c9b9a2; }
.piece.burning { background: #5a2a18; }
.piece.burning polyline { stroke: #ff9a3d; }
.piece.burning circle { fill: #ffcf5a; }
.flame { position: relative; display: inline-block; }
.flame i { position: absolute; left: 50%; top: -55%; transform: translateX(-50%); font-size: 16px; font-style: normal; animation: flicker .3s infinite alternate; }
@keyframes flicker { to { transform: translateX(-50%) scale(1.15) rotate(4deg); } }

.tries-chip { margin: 0 0 10px; text-align: center; font-weight: 800; font-size: 13px; color: var(--gold-soft); }
.tries-chip.empty { color: rgba(255,255,255,.6); }
.tries-note { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-soft); }

/* snake */
.snake-cv { width: 100%; aspect-ratio: 1; margin-top: 8px; border-radius: 14px; display: block; }
.pad4 { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 46px); gap: 6px; justify-content: center; margin-top: 10px; }
.pad4 button { border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 20px; cursor: pointer; touch-action: manipulation; }
.pad4 button:nth-child(1) { grid-column: 2; grid-row: 1; }
.pad4 button:nth-child(2) { grid-column: 1; grid-row: 2; }
.pad4 button:nth-child(3) { grid-column: 3; grid-row: 2; }
.pad4 button:nth-child(4) { grid-column: 2; grid-row: 2; }
/* sequence */
.seq-box { min-height: 120px; display: grid; place-items: center; margin-top: 10px; }
.seq { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.seq span { min-width: 48px; padding: 10px 6px; border-radius: 12px; background: #fff; border: 2px solid #e1e6f0; font-weight: 800; font-size: 20px; }
.seq .q { background: var(--gold-soft); border-color: var(--gold); }
/* 1-25 */
.schulte { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.sc { aspect-ratio: 1; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px #e1e6f0; font-family: var(--display); font-weight: 700; cursor: pointer; touch-action: manipulation; }
.sc.hit { background: #e7f3f4; opacity: .35; }
.sc.nope, .odd-grid button.nope, .peg.nope { animation: tileNope .3s; background: #ffe3e8; }
/* stroop */
.stroop-word { font-family: var(--display); font-size: 46px; font-weight: 700; margin: 22px 0; min-height: 60px; }
.stroop-word.pop { animation: footPress .15s; }
.stroop-word.wrong { opacity: .3; }
.stroop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stroop-btns button { border: 0; border-radius: 14px; padding: 16px 0; background: #fff; box-shadow: inset 0 0 0 3px var(--sc); font: inherit; font-weight: 800; font-size: 17px; color: var(--ink); cursor: pointer; touch-action: manipulation; }
/* odd one out */
.odd-grid { display: grid; gap: 4px; margin-top: 10px; min-height: 200px; }
.odd-grid button { aspect-ratio: 1; border: 0; background: #fff; border-radius: 8px; padding: 0; font-size: inherit; cursor: pointer; touch-action: manipulation; line-height: 1; }
/* hanoi */
.hanoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.peg { position: relative; height: 170px; border: 0; border-radius: 14px; background: #eef2f8; cursor: pointer; touch-action: manipulation; }
.peg.held { background: #fff4d6; box-shadow: inset 0 0 0 2px var(--gold); }
.pole { position: absolute; left: 50%; bottom: 10px; width: 8px; height: 140px; margin-left: -4px; border-radius: 4px; background: #9b3d2b; }
.stack { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.stack i { display: block; height: 20px; border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); background-image: linear-gradient(90deg, transparent 46%, rgba(255,255,255,.8) 46% 54%, transparent 54%) !important; transition: transform .15s; }
.stack i.up { transform: translateY(-14px); }
/* pattern */
.pattern { display: grid; gap: 6px; margin-top: 10px; }
.pattern button { aspect-ratio: 1; border: 0; border-radius: 10px; background: #e1e8f3; cursor: pointer; touch-action: manipulation; transition: background .15s; }
.pattern button.lit, .pattern button.ok { background: #7fc6ff; box-shadow: 0 0 14px #7fc6ff; }
.pattern button.show { background: #ffe39a; }
.pattern button.miss { background: var(--red); }
/* math */
.math-q { font-family: var(--display); font-size: 40px; font-weight: 700; margin: 20px 0 6px; }
.math-q.good { color: var(--pine); } .math-q.bad { color: var(--red); }
.game-card .tries-chip, .board-card .tries-chip { color: var(--pine); margin-bottom: 4px; }
.game-card .tries-chip.empty, .board-card .tries-chip.empty { color: var(--ink-soft); }

/* ============================================================ family layout: the doors are windows in the New York skyline */
.top { padding: 20px 0 6px; }
h1 { font-size: clamp(30px, 8vw, 48px); margin: 6px 0 4px; }
.city { position: relative; width: calc(100% + 32px); max-width: 520px; margin: 0 -16px; aspect-ratio: 480 / 740; }
@media (min-width: 552px) { .city { margin: 0 auto; width: 100%; } }
.city-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.city-svg .bldg { fill: #060b1a; }
.city-svg .bldg .front { fill: #0d1630; }
.city-svg .bldg .roof { fill: #18223f; }
.city-svg .win rect { fill: #ffd98a; }
.city-svg .win rect.cool { fill: #bfe3ff; }
.city-svg .win .tw { animation: winTw 4s ease-in-out infinite alternate; }
.city-svg .win .tw:nth-child(3n) { animation-delay: -1.5s; animation-duration: 6s; }
.city-svg .win .tw:nth-child(4n) { animation-delay: -3s; }
@keyframes winTw { from { opacity: .08; } to { opacity: 1; } }
.city-svg .esb.r { fill: #ff3b55; filter: drop-shadow(0 0 4px #ff3b55); }
.city-svg .esb.g { fill: #3ddc84; filter: drop-shadow(0 0 4px #3ddc84); }
.city-svg .crownline { fill: none; stroke: #ffd98a; stroke-width: 1.4; opacity: .85; }
.city-svg .beacon { fill: #ff3b3b; animation: beacon 1.6s steps(1) infinite; filter: drop-shadow(0 0 4px #ff3b3b); }
.city-svg .beacon.b2 { animation-delay: -.6s; } .city-svg .beacon.b3 { animation-delay: -1.1s; }
@keyframes beacon { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
.city-svg .garland { fill: none; stroke: #3a4666; stroke-width: .8; }
.city-svg .bulb { animation: bulb 1.4s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes bulb { from { opacity: .35; } to { opacity: 1; } }
.city-doors { position: absolute; inset: 0; display: block; }
.city-doors .door { position: absolute; width: var(--dw); height: var(--dh); aspect-ratio: auto; --radius: 6px; }
.city-doors .door .panel { box-shadow: 0 0 0 2px rgba(255,217,138,.55), 0 0 12px rgba(255,217,138,.35); }
.city-doors .door .behind { background: #fff6dc; box-shadow: inset 0 0 0 2px #ffd98a, 0 0 16px rgba(255,217,138,.7); font-size: clamp(16px, 5vw, 26px); }
.city-doors .num { font-size: clamp(15px, 4.6vw, 24px); }
.city-doors .knob { right: 4px; width: 4px; height: 4px; margin-top: -2px; }
.city-doors .lock { bottom: 2px; right: 3px; font-size: 8px; }
.city-doors .door.today::after { font-size: 8px; padding: 1px 5px; top: -8px; }
.wallet-row { margin-top: 14px; }
.from { margin-top: 12px; font-size: 22px; }

/* ---------- doors in the sky: stars, angel, helicopter ---------- */
.rig { position: absolute; }
.rig-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.angel-rig { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.angel-rig .wing { fill: #f3f6ff; opacity: .92; filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
.angel-rig .robe { fill: #fff8e6; }
.angel-rig .face { fill: #ffd9b8; }
.angel-rig .hair { fill: #f2c14e; }
.angel-rig .halo { fill: none; stroke: #ffd98a; stroke-width: 3; filter: drop-shadow(0 0 4px #ffd98a); }
.heli-rig { animation: heliFly 70s ease-in-out infinite alternate; z-index: 2; }
@keyframes heliFly { from { transform: translate(0, 0); } 50% { transform: translate(336%, -2%); } to { transform: translate(672%, 1%); } }
.heli-sway { position: absolute; inset: 0; transform-origin: 50% 5%; animation: heliSway 3.2s ease-in-out infinite; }
@keyframes heliSway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg) translateY(3px); } }
.heli-rig .heli-body { fill: #c8304f; }
.heli-rig .rotor { fill: #c9d3e6; transform-origin: 95px 6px; animation: rotor .18s linear infinite; }
@keyframes rotor { 50% { transform: scaleX(.15); } }
.heli-rig .tail-rotor { fill: none; stroke: #c9d3e6; stroke-width: 2; stroke-dasharray: 6 4; transform-origin: 186px 38px; animation: spin .4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.heli-rig .skid { stroke: #8e1c38; stroke-width: 3; fill: none; stroke-linecap: round; }
.heli-rig .rope { stroke: #e8dcc0; stroke-width: 1.4; }
.heli-rig .heli-light { fill: #ff3b3b; animation: beacon 1.2s steps(1) infinite; filter: drop-shadow(0 0 4px #ff3b3b); }
.heli-rig .heli-light.b2 { fill: #3ddc84; filter: drop-shadow(0 0 4px #3ddc84); animation-delay: -.5s; }
.city-doors .door.k-star .panel, .city-doors .door.k-star .behind {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  border-radius: 0; box-shadow: none;
}
.city-doors .door.k-star { filter: drop-shadow(0 0 6px rgba(255,217,138,.9)); animation: starTw 3s ease-in-out infinite alternate; }
.city-doors .door.k-star:nth-of-type(2n) { animation-delay: -1.4s; }
@keyframes starTw { from { filter: drop-shadow(0 0 3px rgba(255,217,138,.6)); } to { filter: drop-shadow(0 0 10px rgba(255,217,138,1)); } }
.city-doors .door.k-star .panel { background: var(--gold); color: var(--ink); background-image: none; }
.city-doors .door.k-star .num { font-size: clamp(12px, 3.6vw, 18px); margin-top: 18%; }
.city-doors .door.k-star .knob, .city-doors .door.k-star .lock { display: none; }
.city-doors .door.k-star .behind { font-size: clamp(12px, 3.6vw, 18px); padding-top: 18%; }
.city-doors .door.k-heli .panel { border-radius: 10px 10px 6px 6px; }
.city-doors .door.k-hang .panel, .city-doors .door.k-heli .panel { box-shadow: 0 4px 10px rgba(0,0,0,.35); }
/* ---------- trucks made of fairy lights ---------- */
.truck-lane { position: absolute; left: 0; right: 0; top: 87.4%; height: 8.6%; overflow: hidden; pointer-events: none; z-index: 3; }
.truck { position: absolute; left: 0; top: 0; height: 100%; }
.truck-svg { height: 100%; width: auto; display: block; overflow: visible; }
.truck-svg .lights { fill: none; stroke: #ffe6a0; stroke-width: 2.6; stroke-dasharray: 0 5.5; stroke-linecap: round;
  filter: drop-shadow(0 0 2.5px #ffd98a) drop-shadow(0 0 6px rgba(255,200,90,.6)); animation: chase .9s linear infinite; }
.truck-svg.dhl .lights { stroke: #ffd400; filter: drop-shadow(0 0 2.5px #ffcc00) drop-shadow(0 0 6px rgba(255,204,0,.6)); }
@keyframes chase { to { stroke-dashoffset: -11; } }
.truck-svg .logo-cola { font-family: "Yellowtail", var(--hand); font-size: 34px; fill: #fff;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px #ff3b4f); }
.truck-svg .santa { font-size: 26px; filter: drop-shadow(0 0 5px rgba(255,255,255,.8)); }
.truck-svg .logo-dhl { font-family: var(--ui); font-weight: 800; font-style: italic; font-size: 36px; fill: #ff2a3a; letter-spacing: -1px;
  filter: drop-shadow(0 0 2px #ff5a66) drop-shadow(0 0 7px #ff1a2a); transform: skewX(-12deg); transform-box: fill-box; transform-origin: center; }
.truck-svg .speed { stroke: #ff2a3a; stroke-width: 3; stroke-dasharray: 0 5; stroke-linecap: round; filter: drop-shadow(0 0 3px #ff1a2a); }
.truck-svg .headlight { fill: #fffbe0; filter: drop-shadow(0 0 5px #fffbe0); }
.truck-svg .beam { fill: rgba(255,246,200,.13); }
/* ---------- the plane ---------- */
.plane-lane { position: absolute; left: 0; right: 0; top: 0; height: 17%; overflow: hidden; pointer-events: none; }
.plane { position: absolute; left: 0; top: 0; height: 58%; }
.plane-svg { height: 100%; width: auto; display: block; overflow: visible; }
.plane-svg .p-body { fill: #f2f4f8; }
.plane-svg .p-tail { fill: #0b1a5c; }
.plane-svg .p-ring { fill: none; stroke: #fff; stroke-width: 1.2; }
.plane-svg .p-bird { fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; }
.plane-svg .p-stab { fill: #d9dde6; }
.plane-svg .p-name { font-family: var(--ui); font-weight: 800; font-size: 11px; fill: #0b1a5c; }
.plane-svg .p-win { fill: #ffd98a; }
.plane-svg .p-cockpit { fill: #24324f; }
.plane-svg .p-wing { fill: #cfd5e0; }
.plane-svg .p-wing-far { fill: #9aa3b5; }
.plane-svg .p-engine { fill: #e6e9f0; stroke: #9aa3b5; stroke-width: .8; }
.plane-svg .p-strobe { fill: #fff; animation: beacon 1s steps(1) infinite; filter: drop-shadow(0 0 4px #fff); }
.plane-svg .p-beacon { fill: #ff3b3b; animation: beacon 1.3s steps(1) infinite; filter: drop-shadow(0 0 3px #ff3b3b); }
.plane-svg .p-beacon.b2 { animation-delay: -.6s; }
/* ---------- presents hanging from the helicopter ---------- */
.city-doors .door.k-hang .panel::before, .city-doors .door.k-hang .panel::after { content: ""; position: absolute; background: rgba(255,250,240,.85); }
.city-doors .door.k-hang .panel::before { left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2.5px; }
.city-doors .door.k-hang .panel::after { top: 50%; left: 0; right: 0; height: 5px; margin-top: -2.5px; }
.city-doors .door.k-hang .num { position: relative; z-index: 1; text-shadow: 0 0 3px rgba(255,255,255,.9), 0 1px 0 rgba(0,0,0,.2); }
.city-doors .door.k-hang .knob { top: -9px; right: auto; left: 50%; margin: 0; width: auto; height: auto; background: none; opacity: 1; transform: translateX(-50%); }
.city-doors .door.k-hang .knob::before { content: "🎀"; font-size: 15px; }
.city-doors .door.k-hang { overflow: visible; }
.city-doors .door.k-hang .panel { overflow: visible; }

/* trucks and the plane fly through the sky (behind the doors) */
.truck.flying, .plane.flying { position: absolute; left: 0; top: 0; height: auto; }
.truck.flying .truck-svg, .plane.flying .plane-svg { width: 100%; height: auto; }
.truck.flying .vehicle-img, .truck.flying .truck-svg { animation: sleighBob 1.8s ease-in-out infinite; }
.city-doors .door.k-star .num { font-size: clamp(11px, 3.2vw, 16px); }

/* ---------- the swipeable city ---------- */
.city-scroll { margin: 0 -16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.city-scroll::-webkit-scrollbar { display: none; }
.city-scroll .city { height: clamp(380px, calc(100dvh - 240px), 700px); width: auto !important; max-width: none; aspect-ratio: 1313 / 740; margin: 0 !important; }
.swipe-hint { text-align: center; margin: 8px 0 0; font-size: 13px; font-weight: 800; color: var(--gold-soft); opacity: .85; transition: opacity .6s; animation: hintNudge 2.4s ease-in-out infinite; }
.swipe-hint.gone { opacity: 0; }
@keyframes hintNudge { 50% { transform: translateX(6px); } }
main { max-width: none; }
.wallet-row, .from { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- doors wiggle impatiently; no "today" tag ---------- */
.city-doors .door.today::after { display: none; }
.city-doors .door:not(.open) .panel { animation: eager var(--wdur, 4.5s) ease-in-out infinite; animation-delay: var(--wdel, 0s); transform-origin: 50% 90%; }
.city-doors .door.today:not(.open) .panel { animation: eager 4.5s ease-in-out infinite, glow 2.2s ease-in-out infinite; }
.city-doors .door.k-star:not(.open) .panel { transform-origin: 50% 55%; }
@keyframes eager {
  0%, 86%, 100% { transform: rotate(0) scale(1); }
  89% { transform: rotate(-3deg) scale(1.02); }
  92% { transform: rotate(2.5deg) scale(1.02); }
  95% { transform: rotate(-1.2deg) scale(1.01); }
  98% { transform: rotate(0.5deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .city-doors .door:not(.open) .panel { animation: none; } }
.city-doors .door.shake:not(.open) .panel { animation: shake .45s ease; }
.name-actions { display: grid; gap: 6px; justify-items: center; margin-top: 14px; }
.name-card .game-title { overflow-wrap: anywhere; }
.from-player { text-align: center; margin: 2px 0 0; }

/* ============================================================ a different sky every day */
.sky-extra { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-extra i { position: absolute; display: block; }
body[data-sky="night"] { background: radial-gradient(1200px 600px at 50% -10%, #2c4680 0%, transparent 60%), linear-gradient(180deg, #14213f 0%, #0a1226 100%); background-attachment: fixed; }
body[data-sky="aurora"] { background: linear-gradient(180deg, #06122a 0%, #0a1d35 55%, #0c2236 100%); background-attachment: fixed; }
.aurora { width: 140%; height: 38vh; left: -20%; filter: blur(38px); opacity: .55; border-radius: 50%; mix-blend-mode: screen; }
.aurora.a1 { top: 6vh; background: linear-gradient(90deg, transparent, #2ef5a0 30%, #1fc8c8 55%, transparent); animation: auroraMove 16s ease-in-out infinite alternate; }
.aurora.a2 { top: 14vh; background: linear-gradient(90deg, transparent, #7b5cff 35%, #2ef5a0 60%, transparent); animation: auroraMove 22s ease-in-out infinite alternate-reverse; opacity: .4; }
.aurora.a3 { top: 2vh; height: 22vh; background: linear-gradient(90deg, transparent, #ff6fd8 40%, transparent 70%); animation: auroraMove 28s ease-in-out infinite alternate; opacity: .25; }
@keyframes auroraMove { from { transform: translateX(-12%) skewY(-4deg) scaleY(.85); } to { transform: translateX(12%) skewY(4deg) scaleY(1.15); } }
body[data-sky="dusk"] { background: linear-gradient(180deg, #1b1f4b 0%, #3d2a66 38%, #8a3f73 66%, #d9706a 86%, #f2a65a 100%); background-attachment: fixed; }
.sun { width: 46vw; height: 46vw; max-width: 340px; max-height: 340px; left: 50%; bottom: -12vw; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,140,.9) 0%, rgba(255,160,100,.45) 40%, transparent 70%); }
body[data-sky="fullmoon"] { background: radial-gradient(900px 500px at 78% 8%, #3a5a9a 0%, transparent 60%), linear-gradient(180deg, #1c3263 0%, #0e1c3b 100%); background-attachment: fixed; }
.moon { width: 82px; height: 82px; right: 9%; top: 11vh; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbea 0%, #f4e7b8 55%, #d9c88c 100%);
  box-shadow: 0 0 40px 12px rgba(255,246,205,.45), 0 0 120px 40px rgba(200,215,255,.18); }
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(180,165,110,.35); }
.moon::before { width: 16px; height: 16px; left: 22px; top: 40px; } .moon::after { width: 10px; height: 10px; left: 48px; top: 22px; }
body[data-sky="snowstorm"] { background: linear-gradient(180deg, #3a4a68 0%, #26324d 55%, #1a2338 100%); background-attachment: fixed; }
body[data-sky="starry"] { background: radial-gradient(1000px 420px at 30% 20%, rgba(120,90,200,.25), transparent 70%), linear-gradient(180deg, #04060f 0%, #0b1230 100%); background-attachment: fixed; }
body[data-sky="golden"] { background: radial-gradient(1200px 500px at 50% 105%, rgba(255,190,90,.55), transparent 70%), linear-gradient(180deg, #1d1838 0%, #3b2546 50%, #6a3b3a 100%); background-attachment: fixed; }
.stars { inset: 0; background-repeat: repeat; }
.stars.s1 { background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #fff, transparent), radial-gradient(1.5px 1.5px at 200px 150px, #fffbe0, transparent), radial-gradient(1px 1px at 60px 190px, #fff, transparent);
  background-size: 240px 220px; animation: starTwinkle 3s ease-in-out infinite alternate; }
.stars.s2 { background-image: radial-gradient(1px 1px at 70px 40px, #cfe3ff, transparent), radial-gradient(1.4px 1.4px at 170px 120px, #fff, transparent), radial-gradient(1px 1px at 30px 140px, #fff, transparent);
  background-size: 210px 180px; animation: starTwinkle 4.5s ease-in-out infinite alternate-reverse; opacity: .7; }
@keyframes starTwinkle { from { opacity: .35; } to { opacity: 1; } }

/* ============================================================ the Christmas-tree story */
.story-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.story-svg .tree, .story-svg .truck-big, .story-svg .nypd { transform-box: view-box; transform-origin: 0 0; }
.story-svg .tl { opacity: 0; }
.story-svg .tl.on { opacity: 1; animation: bulb 1.4s ease-in-out infinite alternate; animation-delay: var(--d); filter: drop-shadow(0 0 2px currentColor); }
.story-svg .tree-glow { fill: rgba(255,210,120,.13); filter: blur(18px); }
.story-svg.finished .tree-glow { fill: rgba(255,210,120,.24); }
.story-svg .tree-star { fill: #ffd84a; filter: drop-shadow(0 0 6px #ffd84a) drop-shadow(0 0 14px rgba(255,216,74,.7)); animation: starPulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes starPulse { 50% { transform: scale(1.15); } }
.story-svg .bauble { filter: drop-shadow(0 0 2px rgba(255,255,255,.5)); }
.story-svg .boom { stroke: #e3b04b; stroke-width: 7; stroke-linecap: round; }
.story-svg .cable { stroke: #c9d3e6; stroke-width: 1.6; }
.story-svg .nypd-text { font: 800 7px var(--ui); fill: #1d3f91; }
.story-svg .siren { animation: siren .5s steps(1) infinite; }
.story-svg .siren.r { fill: #ff2a3a; } .story-svg .siren.b { fill: #2a6bff; animation-delay: -.25s; }
@keyframes siren { 0%, 49% { opacity: 1; filter: drop-shadow(0 0 4px currentColor); } 50%, 100% { opacity: .15; } }
.story-svg .siren.r { color: #ff2a3a; } .story-svg .siren.b { color: #2a6bff; }
.story-svg .headlamp { fill: #fffbe0; filter: drop-shadow(0 0 4px #fffbe0); }
.story-svg .beam { fill: rgba(255,246,200,.12); }
.story-svg.driving .wheel { animation: spin .5s linear infinite; }
.story-svg .wheel { transform-box: view-box; }

/* Nils' drawn vehicles: gold lines with a soft glow */
.flying .vehicle-img { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 2px rgba(255,214,122,.9)) drop-shadow(0 0 7px rgba(227,176,75,.55)); }

/* Easter egg: neon "managerberater" sign on a rooftop, with a few loose contacts */
.neon-sign text { font-family: var(--ui); font-size: 9px; font-weight: 600; letter-spacing: -.2px; }
.neon-sign .ng, .neon-sign .ng-mark { fill: #b6ea4a; stroke: #b6ea4a; filter: drop-shadow(0 0 1.5px #9fdc2a) drop-shadow(0 0 4px rgba(150,215,40,.7)); }
.neon-sign .nb, .neon-sign .nb-mark { fill: #49b6ff; stroke: #49b6ff; filter: drop-shadow(0 0 1.5px #2a9cf0) drop-shadow(0 0 4px rgba(40,150,240,.7)); }
.neon-sign text tspan { stroke: none; }
.neon-sign .ng-mark, .neon-sign .nb-mark { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.neon-post { stroke: #2a3350; stroke-width: 1.4; fill: none; }
.neon-sign .flk { animation: looseContact 5.3s steps(1) infinite; }
.neon-sign .f2 { animation-duration: 7.9s; animation-delay: -2.1s; }
.neon-sign .f3 { animation-duration: 3.7s; animation-delay: -1.3s; }
@keyframes looseContact {
  0%, 61%, 66%, 70%, 100% { opacity: 1; }
  60%, 64%, 69% { opacity: .12; }
  86% { opacity: .35; } 87% { opacity: 1; }
}

/* realistic mobile crane */
.story-svg .cr-cable { stroke: #b8bfcc; stroke-width: 1.3; }
.story-svg .cr-sling { stroke: #e3b04b; stroke-width: 2; stroke-linecap: round; }
.story-svg .cr-ram { stroke: #9aa1b1; stroke-width: 6; stroke-linecap: round; }
.story-svg .tipl { fill: #ff3b3b; filter: drop-shadow(0 0 4px #ff3b3b); animation: bulb 1.1s ease-in-out infinite alternate; }
.story-svg .crane-beacon { fill: #ff9a1a; filter: drop-shadow(0 0 5px #ff9a1a); animation: craneBeacon 1s steps(1) infinite; }
@keyframes craneBeacon { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
