/* Holiday season 2026 (Dec 1 - Jan 2): snow and string lights on every page; evergreen, cranberry and gold colours
   on pages with data-holiday-theme on <html> (homepage, arcade). Everything hangs off html.holiday (/holiday.js). */

/* ---- String lights along the top of the page ---- */
.hol-lights {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 22px; overflow: hidden; pointer-events: none;
  display: flex; justify-content: space-between; padding: 0 6px;
  background: radial-gradient(120% 16px at 50% -6px, transparent 13px, rgba(20, 60, 30, .9) 14px, rgba(20, 60, 30, .9) 15.5px, transparent 16.5px) repeat-x 0 0 / 46px 22px;
}
.hol-lights span {
  width: 9px; height: 13px; margin-top: 7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: hol-twinkle 1.8s ease-in-out infinite;
}
.hol-lights .c0 { background: #ff4d5e; box-shadow: 0 0 8px #ff4d5e; }
.hol-lights .c1 { background: #ffd447; box-shadow: 0 0 8px #ffd447; }
.hol-lights .c2 { background: #46e08a; box-shadow: 0 0 8px #46e08a; }
.hol-lights .c3 { background: #5cc8ff; box-shadow: 0 0 8px #5cc8ff; }
.hol-lights .c4 { background: #ff9ad5; box-shadow: 0 0 8px #ff9ad5; }
@keyframes hol-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 700px) { .hol-lights span:nth-child(2n) { display: none; } }

/* ---- Falling snow behind the page ---- */
.hol-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hol-flake {
  position: absolute; top: -20px; border-radius: 50%; background: #fff; opacity: .75;
  box-shadow: 0 0 6px rgba(255, 255, 255, .7); animation: hol-fall linear infinite;
}
@keyframes hol-fall {
  0% { transform: translate(0, -20px); }
  50% { transform: translate(24px, 50vh); }
  100% { transform: translate(-12px, 105vh); }
}
html.holiday[data-theme="light"] .hol-flake { background: #b9d7ef; box-shadow: none; }
html.holiday body > .shell, html.holiday body > main, html.holiday body > header { position: relative; z-index: 1; }

/* ---- Holiday colours (homepage, arcade) ---- */
html.holiday[data-holiday-theme]:not([data-theme="light"]) {
  --bg: #07130e;
  --bg-2: #0d2018;
  --card: rgba(14, 38, 28, .9);
  --card-strong: rgba(16, 44, 32, .97);
  --text: #f5fff8;
  --muted: #c9e3d4;
  --line: rgba(190, 255, 220, .16);
  --gold: #ffd447;
  --pink: #ff4d5e;
  --blue: #9fe6ff;
  --green: #46e08a;
  --dz-nav-bg: rgba(10, 30, 22, .86);
  --dz-nav-text: #f5fff8;
  --dz-nav-muted: #c9e3d4;
  --dz-nav-line: rgba(190, 255, 220, .2);
  --dz-nav-accent: #ffd447;
}
html.holiday[data-holiday-theme][data-theme="light"] {
  --bg: #fbf8f1;
  --bg-2: #eef6ef;
  --line: rgba(20, 70, 40, .14);
  --dz-nav-accent: #b3122b;
}
html.holiday[data-holiday-theme] body {
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(255, 77, 94, .16), transparent 60%),
    radial-gradient(800px 520px at 100% 0%, rgba(70, 224, 138, .14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
html.holiday[data-holiday-theme] .hero h1 span,
html.holiday[data-holiday-theme][data-theme="light"] .hero h1 span { background-image: linear-gradient(90deg, #ff4d5e, #ffd447 50%, #46e08a); }
html.holiday[data-holiday-theme] .hero .eyebrow::before { content: "❄️ "; }
html.holiday[data-holiday-theme] .section-title::before { content: "🎄"; font-size: 1rem; letter-spacing: 0; }
html.holiday[data-holiday-theme] .honk-meter {
  background: linear-gradient(120deg, rgba(255, 77, 94, .2), rgba(70, 224, 138, .14)), var(--card);
  border-color: color-mix(in srgb, #ffd447 35%, var(--line));
}
html.holiday[data-holiday-theme] .honk-button,
html.holiday[data-holiday-theme] .btn.primary { background: linear-gradient(135deg, #ff6b6b, #d4142e); color: #fff; }
html.holiday[data-holiday-theme] .footer::before {
  content: "🎄 🕎 ❄️ 🎁 🔔 🎆"; flex-basis: 100%; text-align: center; letter-spacing: .35em; font-size: 1.1rem; opacity: .9;
}
/* Candy-cane edge on cards */
html.holiday[data-holiday-theme] .news-card,
html.holiday[data-holiday-theme] .goose-day,
html.holiday[data-holiday-theme] .hatching { box-shadow: inset 0 3px 0 0 transparent, 0 0 0 1px var(--line); border-top: 4px solid transparent; border-image: repeating-linear-gradient(135deg, #e8142f 0 10px, #fff 10px 20px) 4; }

/* ---- Global Bell count in the HONK meter (homepage) ---- */
.bell-count {
  display: flex; flex-direction: column; gap: 2px; padding: 0 18px; border-left: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.bell-count[hidden] { display: none; }
.bell-count h2 { margin: 0; font-size: .8rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; color: #ffd447; }
.bell-count strong { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; color: #ffd447; }
.bell-count small { color: var(--muted); font-size: .76rem; }
.bell-count:hover strong { text-decoration: underline; }
.bell-count:focus-visible { outline: 3px solid #ffd447; outline-offset: 4px; border-radius: 8px; }
:root[data-theme="light"] .bell-count h2, :root[data-theme="light"] .bell-count strong { color: #9a6a00; }
@media (max-width: 700px) { .bell-count { padding: 0; border-left: 0; } }

/* ---- Holiday card on the homepage (the countdown + Bell Hunt) ---- */
.holiday-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 32px);
  margin-top: 18px; padding: clamp(20px, 4vw, 32px) clamp(18px, 4vw, 40px); border-radius: calc(var(--radius, 24px) + 6px);
  border: 1px solid rgba(255, 212, 71, .4); color: #f5fff8;
  background:
    radial-gradient(420px 260px at 0% 100%, rgba(255, 77, 94, .3), transparent 70%),
    radial-gradient(500px 300px at 100% 0%, rgba(70, 224, 138, .25), transparent 70%),
    linear-gradient(135deg, #0b1f17, #12301f 60%, #0a1912);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.holiday-card[hidden] { display: none; }
.holiday-card .holiday-art { font-size: clamp(3rem, 9vw, 5rem); line-height: 1; filter: drop-shadow(0 10px 20px rgba(255, 212, 71, .35)); }
.holiday-card .eyebrow { margin: 0 0 8px; color: #ffd447; }
.holiday-card h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 900; }
.holiday-card .holiday-countdown span { display: block; }
.holiday-card .holiday-countdown { margin: 10px 0 0; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 900; color: #ffd447; font-variant-numeric: tabular-nums; }
.holiday-card .pitch { margin: 8px 0 0; max-width: 600px; color: #d6eedf; }
.holiday-card .holiday-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.holiday-card .btn.primary { background: linear-gradient(135deg, #ff6b6b, #d4142e); color: #fff; box-shadow: 0 10px 30px rgba(212, 20, 46, .35); }
@media (max-width: 560px) {
  .holiday-card { grid-template-columns: minmax(0, 1fr); }
  .holiday-card .holiday-art { position: absolute; top: 14px; right: 16px; font-size: 2.6rem; }
  .holiday-card .eyebrow, .holiday-card h2 { padding-right: 56px; }
  .holiday-card .holiday-actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hol-flake { animation: none; display: none; }
  .hol-lights span { animation: none; }
}
@media print { .hol-sky, .hol-lights { display: none !important; } }
