/* Friends advent calendar: a snowy Christmas night. Builds on home.css (scene, board, maker card). */
.scene.xmas {
  padding: 150px 0 200px;
  background:
    radial-gradient(720px 460px at 72% 36%, rgb(244 185 66 / 0.18), transparent 70%),
    radial-gradient(620px 420px at 10% 80%, rgb(47 111 222 / 0.25), transparent 70%),
    linear-gradient(180deg, #08112b 0%, #0f1f4a 50%, #1d3a72 100%);
}
.scene.xmas .scene-title h1 { text-shadow: 3px 4px 0 #d7263d; }
.scene.xmas .scene-sub { color: #ffe39a; }
.moon {
  position: absolute; top: 120px; right: 8%; width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe8, #ffe8a8 60%, #f7d77a);
  box-shadow: 0 0 60px 18px rgb(255 232 168 / 0.28);
}
.moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 70% 64%, rgb(0 0 0 / 0.07) 9px, transparent 10px), radial-gradient(circle at 40% 70%, rgb(0 0 0 / 0.06) 6px, transparent 7px); }
.snow { position: absolute; inset: -100% 0 0; background-repeat: repeat; pointer-events: none; will-change: transform; }
.snow.s1 {
  background-image: radial-gradient(2.4px 2.4px at 20px 30px, #fff 60%, transparent 62%), radial-gradient(1.8px 1.8px at 120px 90px, #fff 60%, transparent 62%), radial-gradient(2.2px 2.2px at 200px 160px, #fffd 60%, transparent 62%), radial-gradient(1.6px 1.6px at 70px 200px, #fffc 60%, transparent 62%);
  background-size: 240px 240px; opacity: 0.9; animation: snowfall 18s linear infinite;
}
.snow.s2 {
  background-image: radial-gradient(3.2px 3.2px at 60px 50px, #fff 60%, transparent 62%), radial-gradient(2.6px 2.6px at 260px 180px, #fffe 60%, transparent 62%), radial-gradient(2px 2px at 160px 300px, #fffd 60%, transparent 62%);
  background-size: 340px 340px; opacity: 0.75; animation: snowfall 28s linear infinite;
}
@keyframes snowfall { from { transform: translateY(0); } to { transform: translateY(50%); } }
.garland .bulb-glass { animation: twinkle 1.8s ease-in-out infinite; }
.flakes { position: absolute; inset: 0; }
.flake { position: absolute; top: -60px; width: 38px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; animation: flakefall var(--fall, 11s) linear forwards; filter: drop-shadow(0 4px 10px rgb(0 0 0 / 0.3)); }
.flake svg { width: 100%; height: 100%; animation: flakespin 4s linear infinite; }
.flake.got { animation: popb 260ms ease-out forwards; }
@keyframes flakefall { to { transform: translate(var(--drift, 30px), 1100px); } }
@keyframes flakespin { to { transform: rotate(360deg); } }
.catch {
  position: absolute; top: 92px; right: 24px; z-index: 4; padding: 7px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 0.12); border: 1.5px solid rgb(255 255 255 / 0.35); color: #fff; font: 700 13px/1 var(--font-body);
}
.scene.xmas .board {
  box-shadow: 0 0 0 10px #1f6b3e, 0 0 0 13px var(--ink), 0 34px 70px rgb(0 0 0 / 0.55);
}
.scene.xmas .board::before { background: radial-gradient(circle, #e2405a 2.6px, transparent 3.2px) 0 0 / 22px 22px; opacity: 1; }
.board-bow { position: absolute; top: -40px; left: 50%; width: 92px; height: 54px; transform: translateX(-50%); z-index: 3;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 54'%3E%3Cpath d='M46 30C34 6 8 2 8 18s22 16 38 12zM46 30c12-24 38-28 38-12S62 34 46 30z' fill='%23D7263D' stroke='%232A1533' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M42 34l-8 18 8-4 4 6 2-20zM50 34l8 18-8-4-4 6-2-20z' fill='%23B81D33' stroke='%232A1533' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='46' cy='30' r='8' fill='%23D7263D' stroke='%232A1533' stroke-width='3'/%3E%3C/svg%3E"); }
.scene.xmas .board .doors { grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 16px 10px; }
.scene.xmas .board .door-cap { display: none; }
.scene.xmas .cake-tile .cake-art { width: 170px; }
.scene.xmas .board-grid { grid-template-columns: minmax(0, 1fr) 170px; }
.bday-chip {
  display: block; margin-top: 14px; padding: 10px 14px; border-radius: 14px; text-align: center; text-decoration: none;
  background: #fff4e8; border: 1.5px dashed #2a1533; color: #2a1533; font: 700 14px/1.3 var(--font-body);
}
.bday-chip:hover { background: #ffe1ec; color: #2a1533; }
.top.on-dark .nav-bday { color: #ffe39a !important; }
.len-chips .chip span { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 14px; min-height: 0; border-radius: 16px; }
.len-chips .chip small { font: 600 11px/1.2 var(--font-body); color: var(--muted); }
.len-chips .chip input:checked + span small { color: #2a1533; }
.drift-wrap { position: absolute; left: 0; right: 0; bottom: -1px; height: 150px; z-index: 1; pointer-events: none; }
.drift-wrap .drift { position: absolute; left: 0; bottom: 0; width: 100%; height: 100px; }
.drift-wrap .drift-trees { position: absolute; left: 0; bottom: 30px; width: 100%; height: 120px; }
.drift-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bg); }
body[data-kind="advent"] { --bg: #fbf6ef; }
.ideas-24 { grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.ideas-24 li { grid-template-columns: 60px 1fr; }
.ideas-24 li::before { font-size: 36px; }
.xmas-cta { background:
  radial-gradient(4px 4px at 12% 22%, #fff 60%, transparent 62%), radial-gradient(3px 3px at 30% 80%, #fff 60%, transparent 62%),
  radial-gradient(4px 4px at 62% 14%, #fff 60%, transparent 62%), radial-gradient(3px 3px at 86% 88%, #fff 60%, transparent 62%),
  #d7263d; }
.bday-band .bday-promo { background: #fff4e8; }
@media (max-width: 1100px) { .ideas-24 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .scene.xmas { padding: 112px 0 170px; }
  .moon { width: 54px; height: 54px; top: 96px; right: 6%; }
  .scene.xmas .board .doors { gap: 12px 6px; }
  .scene.xmas .board-grid { grid-template-columns: 1fr; }
  .scene.xmas .cake-tile .cake-art { width: 108px; }
  .board-bow { width: 70px; height: 42px; top: -30px; }
  .ideas-24 { grid-template-columns: 1fr; }
  .drift-wrap { height: 110px; }
  .drift-wrap .drift { height: 76px; }
  .catch { top: 70px; right: 12px; }
}
body[data-kind="advent"] { --primary: #d7263d; --primary-deep: #a3122a; --primary-soft: #ffe0e4; }
@media (max-width: 640px) { .scene.xmas .board .door-lock { display: none; } }
