/* Holiday takeover: bold colors (html[data-holiday], set by looks.js) + the decorations from decor.js.
   --hol-1 = the big holiday color (top bar), --hol-2 = the second color, --hol-ink = text on --hol-1. */

/* ---- the top bar turns the holiday color ---- */
html[data-holiday] .site-header { background: var(--hol-1); border-bottom-color: transparent; backdrop-filter: none; }
html[data-holiday] .site-header .brand span,
html[data-holiday] .site-header .nav a:not(.btn),
html[data-holiday] .site-header .menu-toggle { color: var(--hol-ink); }
html[data-holiday] .site-header .nav a:not(.btn):hover { color: var(--hol-2); }
html[data-holiday] .site-header .brand img { filter: none; background: #fff; border-radius: 50%; }
html[data-holiday] .site-header .btn-primary { background: #fff; color: var(--hol-1); box-shadow: 0 0 0 3px var(--hol-2); }
html[data-holiday] .announce { background: color-mix(in srgb, var(--hol-1) 82%, #000); color: var(--hol-ink); font-weight: 700; }
html[data-holiday] .announce a { color: var(--hol-ink); text-decoration: underline; }
@media (max-width: 860px) {
  html[data-holiday] .site-header .nav { background: var(--hol-1); border-color: transparent; }
  html[data-holiday] .site-header .nav a:not(.btn) { border-color: color-mix(in srgb, var(--hol-ink) 20%, transparent); }
}
/* the homepage top glows in the holiday colors */
html[data-holiday] .hero { background:
  radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--hol-2) 30%, transparent), transparent 70%),
  radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--hol-1) 16%, transparent), transparent 70%), var(--cream); }
html[data-holiday] .hero-art .main { box-shadow: 0 0 0 8px var(--hol-1), 0 0 0 14px var(--hol-2), var(--shadow); }
html[data-holiday] .hero-art .inset { border-color: var(--hol-2); }
html[data-holiday] .gift { background: var(--hol-1); }
html[data-holiday] .gift h2, html[data-holiday] .gift p { color: var(--hol-ink); }

/* ---- garland hanging under the top bar ---- */
.pk-garland { position: absolute; left: 0; right: 0; top: 100%; height: 30px; background-repeat: repeat-x; pointer-events: none; z-index: 2; }
.board > header { position: relative; }
.pk-lights.pk-l0 { animation: pk-blink 1.6s steps(1) infinite; }
.pk-lights.pk-l1 { animation: pk-blink 1.6s steps(1) .8s infinite; }
@keyframes pk-blink { 0% { filter: brightness(1.25) drop-shadow(0 0 4px rgba(255,255,200,.8)); } 50% { filter: brightness(.7); } }
.pk-web { position: absolute; top: 100%; width: 110px; height: 110px; pointer-events: none; z-index: 2; }
.pk-web-l { left: 0; } .pk-web-r { right: 0; }
.pk-spider { position: absolute; top: 100%; right: 160px; width: 30px; pointer-events: none; z-index: 2; animation: pk-drop 7s ease-in-out infinite; }
.pk-spider i { display: block; width: 1px; height: 60px; margin: 0 auto; background: rgba(230,230,240,.7); }
.pk-spider span { display: block; text-align: center; font-size: 26px; margin-top: -4px; }
@keyframes pk-drop { 0%, 100% { transform: translateY(-40px); } 50% { transform: translateY(30px); } }

/* ---- characters around the homepage photo ---- */
.pk-h { position: absolute; z-index: 3; pointer-events: none; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.pk-ha { left: -14%; bottom: -6%; font-size: clamp(70px, 10vw, 130px); display: flex; align-items: flex-end; }
.pk-ha small { font-size: .42em; margin-left: -.25em; }
.pk-hb { left: 24%; top: -7%; font-size: clamp(46px, 6vw, 74px); animation: pk-peek 6s ease-in-out infinite; }
.pk-hc { right: -4%; bottom: 18%; font-size: clamp(40px, 5vw, 62px); animation: pk-bob 3.2s ease-in-out infinite; }
.pk-dl, .pk-dr { bottom: 18px; font-size: clamp(54px, 8vw, 96px); opacity: .95; }
.pk-dl { left: 4%; } .pk-dr { right: 4%; animation: pk-bob 3.4s ease-in-out infinite; }
@keyframes pk-peek { 0%, 100% { transform: translateY(14px) rotate(-8deg); } 40%, 60% { transform: translateY(-6px) rotate(6deg); } }
@keyframes pk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .pk-ha { left: -4%; } .pk-hc { right: 0; } }

/* ---- greeting ---- */
.pk-greet { display: inline-block; background: var(--hol-1); color: var(--hol-ink); font: 800 .95rem var(--body); padding: 9px 18px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: 0 0 0 3px var(--hol-2), 0 10px 24px rgba(0,0,0,.15); transform: rotate(-1.5deg); }
.m-hero-in .pk-greet { margin-bottom: 14px; }

/* ---- scene above the footer ---- */
.pk-scene { position: relative; height: 128px; overflow: hidden; background: var(--cream); }
.pk-scene::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: 0; height: 58px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.pk-ground-snow::after { background: linear-gradient(#ffffff, #e6f1fa); box-shadow: 0 -2px 10px rgba(120,160,200,.35); }
.pk-ground-grass::after { background: linear-gradient(#7cc46a, #4f9a45); }
.pk-ground-pink::after { background: linear-gradient(#ffd1dc, #f4a3b8); }
.pk-ground-sand::after { background: linear-gradient(#f6dca0, #e8c27a); }
.pk-ground-leaves::after { background: linear-gradient(#e0913a, #b8561b); }
.pk-ground-night::after { background: linear-gradient(#3a2a4a, #1c1a1f); }
.pk-ground-night { background: linear-gradient(#2a2238, #121014); }
.pk-row { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 1; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 2%; }
.pk-row span { font-size: clamp(30px, 4.4vw, 58px); line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); animation: pk-bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.pk-row span:nth-child(3n) { font-size: clamp(40px, 5.6vw, 76px); }
@media (max-width: 600px) { .pk-row span:nth-child(n+8) { display: none; } }

/* ---- falling things + things crossing the screen ---- */
.pk-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 45; }
.pk-fly { position: fixed; z-index: 46; pointer-events: none; left: 0; white-space: nowrap; visibility: hidden; }
.pk-fly span { display: inline-block; font-size: clamp(34px, 4.5vw, 58px); filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.pk-fly-sky { top: 96px; }
.pk-fly-sky.go { visibility: visible; animation: pk-across 11s linear forwards; }
.pk-fly-sky.go span { animation: pk-float 1.6s ease-in-out infinite; }
.pk-fly-walk, .pk-fly-hop { bottom: 8px; }
.pk-fly-walk.go, .pk-fly-hop.go { visibility: visible; animation: pk-across 14s linear forwards; }
.pk-fly-walk.go span { animation: pk-waddle .5s ease-in-out infinite; }
.pk-fly-hop.go span { animation: pk-hop .7s ease-out infinite; }
@keyframes pk-across { from { transform: translateX(105vw); } to { transform: translateX(-60vw); } }
@keyframes pk-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes pk-waddle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-3px); } }
@keyframes pk-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-34px); } }

/* ---- drawn art (rainbow) sizes like an emoji of the same font size ---- */
.pk-art { display: block; width: 1.9em; height: auto; }
.pk-wide .pk-art { width: 2.3em; }
.pk-row .pk-wide .pk-art { width: 2em; }

.pk-wave { animation: pk-wave 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 50%; }
@keyframes pk-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-3deg) scaleX(.97); } }

/* ---- peek-a-boo character ---- */
.pk-peek { position: fixed; left: 0; top: 0; z-index: 70; width: clamp(110px, 12vw, 170px); transform-origin: 50% 0; pointer-events: none; will-change: transform; transform: translate(-999px, -999px); }
.pk-peek svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); }
.pk-bubble { position: fixed; bottom: calc(clamp(110px, 12vw, 170px) * .95); z-index: 71; max-width: 240px; background: #fff; color: #2b1d16; font: 800 .95rem/1.3 var(--body, sans-serif);
  padding: 10px 14px; border-radius: 16px; box-shadow: 0 10px 26px rgba(0,0,0,.2), 0 0 0 3px var(--hol-1, #b4652a); pointer-events: none; opacity: 0; transform: translateY(8px) scale(.95); transition: opacity .25s, transform .25s; }
.pk-bubble.BR { right: 18px; } .pk-bubble.BL { left: 18px; }
.pk-bubble.show { opacity: 1; transform: none; }
@media (max-width: 600px) { .pk-peek { width: 84px; } .pk-bubble { max-width: 180px; font-size: .82rem; bottom: 82px; } .pk-ha { font-size: 64px; } .pk-hb { font-size: 42px; } .pk-hc { font-size: 36px; } .pk-scene { height: 100px; } }

@media (prefers-reduced-motion: reduce) { .pk-decor, .pk-decor * { animation: none !important; } }
@media print { .pk-decor { display: none !important; } }
