/* Public app: the holiday logo variations of the public header (round frontend/2a, 2026-11-13).
   Lifted from the Claude Design project's fp-logo-deco.js (its CSS constant), loaded by the layout
   only on a decorated day; HolidayLogo picks the day on the server and sets data-fp-deco on <html>.
   The design's JS-only parts are done on the server (the --w/--h sizes, data-wm, the logo-anchored
   layer below); the candle is a decoration only. Motion: prefers-reduced-motion stops every
   animation and hides the pieces that only make sense moving (the owner's pick, 2026-11-13). */
html[data-fp-deco] .fpx .mainHeader{position:relative}
html[data-fp-deco] .fpx .mainHeader>.container{position:relative;z-index:1}
html[data-fp-deco] .fpx .mainHeader .logo{position:relative}
html[data-fp-deco] .fpDecoBar{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
html[data-fp-deco] .fpDecoBar.fwOver{z-index:2}
html[data-fp-deco] .fpLogoDeco{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible}
html[data-fp-deco] .fpLogoDeco>svg,html[data-fp-deco] .fpDecoBar svg{position:absolute;display:block;width:var(--w,auto);height:var(--h,auto)}html[data-fp-deco] .fpDecoBar .web{width:34px;height:34px}
html[data-fp-deco] .fpLogoDeco>svg[data-pct],html[data-fp-deco] .fpDecoBar svg[data-pct]{width:100%}
html[data-fp-deco] .fpLogoDeco svg svg,html[data-fp-deco] .fpDecoBar svg svg{position:static;width:auto;height:auto}
html[data-fp-deco] .fpx .mainHeader .logo .logoFull,html[data-fp-deco] .fpx .mainHeader .logo .logoMark{position:relative;z-index:2}
/* wordmark hidden (<1100px): the design hid the wordmark-anchored pieces ([data-wm]) here; since GitHub #265
   (the owner, 2026-11-20) they STAY at their places beside the mark, over the bar the hidden menu leaves free
   (the Christmas gifts, the New Year's horseshoe, pig and clover). The design's rule was:
   html[data-fp-deco] .fpLogoDeco>[data-wm]{display:none}
   THE NARROW HEADER IS 64px TOO since #265 (fp-header.css), so the logo layer is NOT scaled any more: the design
   drew it at .875 (top:4px;height:64px;transform:scale(.875);transform-origin:0 0) for its 56px header. The pieces
   are their full, desktop size; the left offsets below that move a wordmark piece beside the mark were written for
   the scaled layer and are multiplied by .875 (the design's: fpNearM 44px, cdLight -6px, cdCandle 40px), so each
   piece starts where it did. */
@media(max-width:1100px){html[data-fp-deco] .fpLogoDeco{width:200px}html[data-fp-deco] .fpLogoDeco>.fpNearM{display:block;left:38.5px!important}html[data-fp-deco] .fpLogoDeco>.fpNearL{display:block}html[data-fp-deco] .fpLogoDeco>.cdLight.fpNearL{left:-5.25px!important}html[data-fp-deco] .fpLogoDeco>.cdCandle.fpNearL{left:35px!important}}
/* Full-bar decoration layer */
html[data-fp-deco] .fpDecoBar{
position:absolute;inset:0;
pointer-events:none;z-index:1;
overflow:hidden;
}
html[data-fp-deco] .fpDecoBar svg{position:absolute;display:block}
/* ====== SNOWFALL ANIMATION ====== */
@keyframes snowfall {
0%   { transform: translateY(0)    translateX(0)   rotate(0deg);   opacity: 0; }
10%  { opacity: 1; }
50%  { transform: translateY(38px) translateX(6px) rotate(180deg); }
90%  { opacity: 1; }
100% { transform: translateY(74px) translateX(-4px) rotate(360deg); opacity: 0; }
}
html[data-fp-deco] .snowFall{
position:absolute;
animation: snowfall linear infinite;
will-change: transform, opacity;
}
/* ====== BALLOON FLOAT ====== */
@keyframes balloonFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-3px) rotate(2deg)}}
html[data-fp-deco] .balloon{transform-origin:50% 100%;animation:balloonFloat 3.2s ease-in-out infinite}
/* ====== BELL SWING ====== */
@keyframes bellSwing{0%,3.3%{transform:rotate(-25deg)}50%,53.3%{transform:rotate(25deg)}100%{transform:rotate(-25deg)}}
html[data-fp-deco] .bellSwing{transform-origin:50% 0;animation:bellSwing 3.6s cubic-bezier(.45,0,.55,1) infinite}
/* ====== FIREWORK BURST (reusable: Aug 20, Szilveszter) ====== */
/* rocket trail rises, then sparks fly outward + fall, fading; core flashes */
@keyframes fwTrail{0%{transform:translateY(26px) scaleY(1);opacity:0}4%{opacity:.9}17%{transform:translateY(0) scaleY(.4);opacity:0}100%{transform:translateY(0);opacity:0}}
@keyframes fwCore{0%,16%{transform:scale(0);opacity:0}19%{transform:scale(1.6);opacity:1}26%{transform:scale(.4);opacity:.7}40%,100%{transform:scale(0);opacity:0}}
@keyframes fwSpark{0%,17%{transform:translate(0,0) scale(.3);opacity:0}19%{opacity:1}36%{opacity:1}52%{transform:translate(var(--dx),calc(var(--dy) + 9px)) scale(.55);opacity:0}100%{transform:translate(var(--dx),calc(var(--dy) + 9px)) scale(.3);opacity:0}}
@keyframes fwGlow{0%,17%{transform:scale(0);opacity:0}21%{transform:scale(1);opacity:.7}45%,100%{transform:scale(1.3);opacity:0}}
html[data-fp-deco] .fw{position:absolute;width:40px;height:40px;pointer-events:none}
html[data-fp-deco] .fpDecoBar.fwOver{z-index:4}
html[data-fp-deco] .fw span{position:absolute;left:50%;top:50%;width:3.5px;height:3.5px;margin:-1.75px 0 0 -1.75px;border-radius:50%;background:currentColor;box-shadow:0 0 5px 1.5px currentColor;animation:fwSpark var(--t,2.8s) cubic-bezier(.2,.7,.4,1) infinite;animation-delay:var(--d,0s)}
html[data-fp-deco] .fw span:nth-child(2n){width:2.5px;height:2.5px;margin:-1.25px 0 0 -1.25px}
html[data-fp-deco] .fw span:nth-child(3n){background:#fff}
html[data-fp-deco] .fw i{display:block;border-radius:50%}
html[data-fp-deco] .fw .fwCore{width:9px;height:9px;margin:-4.5px 0 0 -4.5px;background:#fff;box-shadow:0 0 12px 5px currentColor,0 0 28px 12px currentColor;animation:fwCore var(--t,2.8s) ease-out infinite;animation-delay:var(--d,0s)}
html[data-fp-deco] .fw .fwGlow{width:52px;height:52px;margin:-26px 0 0 -26px;background:radial-gradient(circle,currentColor 0%,transparent 60%);box-shadow:none;animation:fwGlow var(--t,2.8s) ease-out infinite;animation-delay:var(--d,0s)}
html[data-fp-deco] .fw .fwTrail{width:1.5px;height:14px;margin:-7px 0 0 -.75px;border-radius:1px;background:linear-gradient(to top,transparent,#fff);box-shadow:none;transform-origin:50% 100%;animation:fwTrail var(--t,2.8s) ease-out infinite;animation-delay:var(--d,0s)}
/* ====== FLAG WAVE ====== */
@keyframes flagWave{0%,100%{transform:rotate(-1.5deg) skewY(0deg)}50%{transform:rotate(1.5deg) skewY(1deg)}}
html[data-fp-deco] .flagWave{animation:flagWave 2.4s ease-in-out infinite}
/* ====== AUTUMN LEAVES (gust every ~90 s; reused from Oct 23 to the end of November) ====== */
@keyframes leafGust{
0%,100%{transform:translate(0,0) rotate(0deg);opacity:0}
1%{opacity:0}
2%{transform:translate(calc(10px*var(--gx,1)),calc(-10px*var(--gy,1))) rotate(calc(40deg*var(--gr,1)));opacity:1}
4%{transform:translate(calc(40px*var(--gx,1)),calc(-34px*var(--gy,1))) rotate(calc(160deg*var(--gr,1)))}
5.5%{transform:translate(calc(70px*var(--gx,1)),calc(-26px*var(--gy,1))) rotate(calc(260deg*var(--gr,1)))}
7%{transform:translate(calc(100px*var(--gx,1)),calc(-38px*var(--gy,1))) rotate(calc(380deg*var(--gr,1)));opacity:.95}
8.5%{transform:translate(calc(130px*var(--gx,1)),calc(-18px*var(--gy,1))) rotate(calc(470deg*var(--gr,1)));opacity:.6}
9.5%{transform:translate(calc(150px*var(--gx,1)),calc(4px*var(--gy,1))) rotate(calc(540deg*var(--gr,1)));opacity:0}
10%{transform:translate(calc(150px*var(--gx,1)),calc(4px*var(--gy,1))) rotate(calc(540deg*var(--gr,1)));opacity:0}
}
html[data-fp-deco] .leaf{position:absolute;bottom:-6px;width:14px;height:10px;opacity:0;animation:leafGust 90s linear infinite;animation-delay:var(--d,0s);will-change:transform,opacity}
html[data-fp-deco] .leaf svg{display:block;width:100%;height:100%;overflow:visible}
/* ====== LOGO-ANCHORED PIECES (server side, round frontend/2a) ======
   The design's fp-logo-deco.js measured the logo after load (left: the logo's left - 12px, width:
   the logo's width + 24px, at least 96px; the eggs at the logo's left). .fpDecoIn is a box of the
   header .container's size and padding, so the same places follow from CSS alone: the logo starts
   at the container's padding (20px, 12px up to 765px) and is 147px wide (34px from 1100px down). */
html[data-fp-deco] .fpDecoBar .fpDecoIn{position:relative;height:100%;max-width:var(--fp-container);margin:0 auto}
html[data-fp-deco] .fpDecoBar .fpAtLogo{position:absolute;top:0;bottom:0;left:calc(var(--fp-pad) - 12px);width:171px}
html[data-fp-deco] .fpDecoBar .fpDecoIn>.fpEggs{left:var(--fp-pad)}
@media(max-width:1100px){html[data-fp-deco] .fpDecoBar .fpAtLogo{width:96px}
}
@media(max-width:765px){html[data-fp-deco] .fpDecoBar .fpAtLogo{left:0}
html[data-fp-deco] .fpDecoBar .fpDecoIn>.fpEggs{left:12px}
}
/* ====== HALLOWEEN: glowing face + bats ====== */
@keyframes jackGlow{0%,100%{opacity:1;filter:drop-shadow(0 0 1.5px #ffd54a)}40%{opacity:.78;filter:drop-shadow(0 0 .5px #ffb300)}55%{opacity:1;filter:drop-shadow(0 0 3px #fff066)}70%{opacity:.86}}
@keyframes jackSpill{0%,100%{opacity:.22;transform:scale(1)}45%{opacity:.1;transform:scale(.92)}60%{opacity:.3;transform:scale(1.08)}}
html[data-fp-deco] .jackFace{animation:jackGlow 2.8s ease-in-out infinite;transform-origin:50% 50%}
html[data-fp-deco] .jackSpill{animation:jackSpill 2.8s ease-in-out infinite;transform-origin:28px 32px}
@keyframes batFlap{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.35)}}
@keyframes batDrift{0%{transform:translate(0,0)}25%{transform:translate(14px,-5px)}50%{transform:translate(28px,2px)}75%{transform:translate(42px,-4px)}100%{transform:translate(56px,1px)}}
html[data-fp-deco] .bat{position:absolute;animation:batDrift 7s ease-in-out infinite alternate}
html[data-fp-deco] .bat .wingL,html[data-fp-deco] .bat .wingR{animation:batFlap .4s ease-in-out infinite;transform-box:fill-box}
html[data-fp-deco] .bat .wingL{transform-origin:100% 50%}.bat .wingR{transform-origin:0% 50%}
html[data-fp-deco] .web{position:absolute;right:0;top:0;width:34px;height:34px;opacity:.55;pointer-events:none}
/* ====== MINDENSZENTEK: candle flicker (a decoration only, the owner 2026-11-13) ====== */
@keyframes cdFlick{0%,100%{transform:rotate(-3deg) scaleY(1)}30%{transform:rotate(2deg) scaleY(1.06)}60%{transform:rotate(-1deg) scaleY(.95)}80%{transform:rotate(3deg) scaleY(1.03)}}
@keyframes cdHalo{0%,100%{opacity:.3;transform:scale(1)}50%{opacity:.18;transform:scale(.88)}}
@keyframes cdLight{0%,100%{opacity:1}50%{opacity:.7}}
html[data-fp-deco] .cdFlame{transform-origin:10px 15px;animation:cdFlick 1.3s ease-in-out infinite}
html[data-fp-deco] .cdHalo{transform-origin:10px 9px;animation:cdHalo 1.3s ease-in-out infinite}
html[data-fp-deco] .cdLight ellipse{animation:cdLight 1.3s ease-in-out infinite}
/* ====== SANTA HAT TIP SWING ====== */
@keyframes hatTip{0%,100%{transform:rotate(-1.5deg)}50%{transform:rotate(1.5deg)}}
html[data-fp-deco] .hatTip{animation:hatTip 2.6s ease-in-out infinite}
/* ====== CHRISTMAS: blinking lights + star ====== */
@keyframes xmBlink{0%,100%{opacity:1;filter:drop-shadow(0 0 1.5px var(--c))}50%{opacity:.25;filter:drop-shadow(0 0 0 var(--c))}}
html[data-fp-deco] .xmL{animation:xmBlink 1.6s ease-in-out infinite}
@keyframes xmStar{0%,100%{filter:drop-shadow(0 0 1px #fff3aa)}50%{filter:drop-shadow(0 0 4px #fff8cc)}}
html[data-fp-deco] .xmStar{animation:xmStar 2.4s ease-in-out infinite}
/* ====== CONFETTI FALL (Szilveszter) ====== */
@keyframes cfFall{0%{transform:translateY(-10px) rotateX(0) rotateZ(0);opacity:0}8%{opacity:.95}50%{transform:translateY(32px) translateX(6px) rotateX(540deg) rotateZ(90deg)}92%{opacity:.9}100%{transform:translateY(74px) translateX(-4px) rotateX(1080deg) rotateZ(200deg);opacity:0}}
html[data-fp-deco] .cfP{position:absolute;top:-6px;display:block;border-radius:1px;animation:cfFall 12s linear infinite;will-change:transform,opacity}
/* ====== UJEV: the lucky pig's tail (GitHub #265, from the design's Logo-variaciok.html; the falling clovers and coins reuse .cfP) ====== */
@keyframes pigTail{0%,100%{transform:rotate(0)}50%{transform:rotate(-14deg)}}
html[data-fp-deco] .pigTail{transform-origin:7px 19px;animation:pigTail 1.4s ease-in-out infinite}

html[data-fp-deco="mindenszentek"] .fpx .mainHeader .logo{margin-right:30px}
@media(max-width:1100px){html[data-fp-deco="mindenszentek"] .fpx .mainHeader .logo{margin-right:26px}}

html[data-fp-deco] .fpDecoBar .fpGrass{width:100%;height:var(--h)}

html[data-fp-deco] .fpDecoBar .fpEggs svg{position:absolute;display:block}
html[data-fp-deco] .fpDecoBar .fpEggs .fpGrassD{width:400px}
/* full-width grass only on mobile; desktop keeps the logo-anchored, tapering grass */
html[data-fp-deco] .fpDecoBar>.fpGrass{display:none}
/* the eggs keep their full size in the 64px narrow header (#265; the design scaled them by .875 up to 1100px) */
@media(max-width:860px){html[data-fp-deco] .fpDecoBar>.fpGrass{display:block}html[data-fp-deco] .fpDecoBar .fpEggs .fpGrassD{display:none}}

/* dove: flies toward the logo; desktop right of wordmark, mobile right of the mark */
html[data-fp-deco="punkosd"] .fpx .mainHeader .logo{margin-right:40px}
@media(max-width:1100px){html[data-fp-deco] .fpLogoDeco>.fpDove.fpNearM{left:31.5px!important}html[data-fp-deco="punkosd"] .fpx .mainHeader .logo{margin-right:48px}}

@media(max-width:1100px){html[data-fp-deco] .fpLogoDeco>.fpBell{left:26.25px!important}html[data-fp-deco="jul22"] .fpx .mainHeader .logo{margin-right:28px}}

@keyframes bellClapper{0%,8%{transform:rotate(6deg)}50%,58%{transform:rotate(-6deg)}100%{transform:rotate(6deg)}}
html[data-fp-deco] .bellClapper{transform-origin:24px 11px;animation:bellClapper 3.6s cubic-bezier(.45,0,.55,1) .25s infinite}

/* the crown: the design undid the narrow layer's .875 here (transform:scale(1.1429);transform-origin:50% 100%;left:-4px;top:3px); with the
   layer unscaled since #265 the crown sits on the mark at its desktop place, so no narrow rule is left */

/* the pumpkin over the mark: the design's left:34px;top:10px;transform:scale(1.1429);transform-origin:0 50% in the
   scaled layer is left:30px;top:14px at full size in the 64px header (#265), the same place on the mark */
@media(max-width:1100px){html[data-fp-deco] .fpLogoDeco>.fpPumpkin{display:block;left:30px!important;top:14px!important}html[data-fp-deco="halloween"] .fpx .mainHeader .logo{margin-right:50px}}

/* ====== REDUCED MOTION (the owner's pick, 2026-11-13: a standing decoration) ======
   Every animation stops; the pieces that only make sense in motion (firework sparks, confetti and
   the New Year's falling clovers and coins, falling snow, gusting leaves) are not drawn; the rest
   (hats, crown, pumpkin, the lucky pig, lights, the snow drift, the candle) stays still. */
@media (prefers-reduced-motion:reduce){
html[data-fp-deco] .fpDecoBar,html[data-fp-deco] .fpDecoBar *,html[data-fp-deco] .fpLogoDeco,html[data-fp-deco] .fpLogoDeco *{animation:none!important;transition:none!important}
html[data-fp-deco] .fw,html[data-fp-deco] .cfP,html[data-fp-deco] .snowFall,html[data-fp-deco] .leaf{display:none!important}
}
