/* Thanksgiving 2026 "Happy harvest" (H2). On: class "tg-H2" on <html> + this link + js/tg-companion.js. Off: remove all three. Dusk scene: also add class "tg-dusk" (off by default). */
html.sky.tg-H2{--maple:#FF9A47;--gold:#F5C24C;--cran:#F06A6A;--cream:#FFF0DD;--ground:#1F1220;position:relative;
  background:linear-gradient(180deg,#1F1220 0,#34182A 380px,#1F1220 820px,#150a16 1200px) 0 0/100% 1200px no-repeat #150a16}
html.tg-H2 body{position:relative;z-index:1}
/* scattered maple leaves, wide screens only; one swappable set: images/tg-leaf*.svg */
@media (min-width:1400px){html.tg-H2::before{content:"";position:absolute;inset:0 0 auto 0;height:520px;pointer-events:none;z-index:0;
  background:url(../images/tg-leaf.svg) 6% 40px/44px no-repeat,url(../images/tg-leaf-gold.svg) 12% 210px/30px no-repeat,url(../images/tg-leaf-red.svg) 3% 330px/36px no-repeat,url(../images/tg-leaf-gold.svg) 93% 70px/38px no-repeat,url(../images/tg-leaf-red.svg) 88% 250px/32px no-repeat,url(../images/tg-leaf.svg) 95% 360px/42px no-repeat}}
/* leaves on the lockup: overlays, the lockup image is untouched. --lw = rendered lockup width */
html.tg-H2 .logo{position:relative;container-type:inline-size;--lw:clamp(300px,90cqw,900px);--lp:36px;padding-top:var(--lp)}
html.tg-H2 .logo::before,html.tg-H2 .logo::after{content:"";position:absolute;pointer-events:none;background:center/contain no-repeat}
/* orange maple straddles the big block's top edge, stem down-left; gold floats up-right of the block, about half the size */
html.tg-H2 .logo::before{background-image:url(../images/tg-leaf.svg);left:calc(50% + var(--lw)*-.320);top:calc(var(--lp) + var(--lw)*.010);width:max(18px,calc(var(--lw)*.064));height:max(19px,calc(var(--lw)*.069));transform:translate(-50%,-50%) rotate(20deg)}
html.tg-H2 .logo::after{background-image:url(../images/tg-leaf-gold.svg);left:calc(50% + var(--lw)*-.2424);top:calc(var(--lp) + var(--lw)*-.022);width:max(12px,calc(var(--lw)*.036));height:max(13px,calc(var(--lw)*.039));transform:translate(-50%,-50%) rotate(-28deg)}
@media (max-width:700px){html.tg-H2 .logo{--lp:20px}}
html.tg-H2 header{border-bottom:4px solid var(--maple);padding-bottom:4px;margin-bottom:6px}
html.tg-H2 header::after{content:"Happy harvest";display:block;width:max-content;max-width:90%;margin:10px auto 12px;padding:7px 40px;background:var(--maple);color:var(--ground);font-weight:bold;font-size:17px;line-height:22px;letter-spacing:.04em;clip-path:polygon(0 0,100% 0,calc(100% - 16px) 50%,100% 100%,0 100%,16px 50%)}
html.tg-H2 .mg{border:2px solid var(--maple);background:rgba(255,240,221,.07)}
html.tg-H2 .mg h2{color:var(--gold)}
html.tg-H2 .app-card{border:1px solid rgba(255,154,71,.5);border-radius:16px;background:rgba(31,18,32,.85);box-shadow:0 4px 18px rgba(0,0,0,.45)}
html.tg-H2 .app-card:hover{border-color:var(--gold)}
html.tg-H2 .app-title,html.tg-H2 .app-title a{color:var(--maple)}
html.tg-H2 .app-description{color:var(--cream)}
html.tg-H2 .app-icon{box-shadow:0 0 0 3px var(--maple);border-radius:24%}
html.tg-H2{--game-bg:rgba(255,240,221,.08);--game-muted:#e6d6c2}
/* round 2 dusk scene (hills, sun, tree) behind tg-dusk */
html.sky.tg-H2.tg-dusk{background:#1F1220}
html.tg-H2.tg-dusk::before{display:block;content:"";position:absolute;inset:0 0 auto 0;height:max(330px,20.6vw);pointer-events:none;z-index:0;
  background:url(../images/tg-leaf.svg) calc(50% - 650px) 60px/34px no-repeat,url(../images/tg-leaf-gold.svg) calc(50% - 600px) 230px/26px no-repeat,url(../images/tg-leaf-red.svg) calc(50% + 630px) 210px/28px no-repeat,url(../images/tg-scene.svg) center bottom/max(1600px,100%) auto no-repeat}
html.tg-H2.tg-dusk header{border-bottom:0;padding-bottom:0;margin-bottom:0}
html.tg-H2.tg-dusk .mg{background:rgba(31,18,32,.88)}
html.tg-H2.tg-dusk .app-card{background:rgba(31,18,32,.92)}
html.tg-H2.tg-dusk .app-icon{box-shadow:none;border-radius:inherit}
@media (max-width:700px){html.tg-H2.tg-dusk::before{height:250px;background:url(../images/tg-scene.svg) 72% bottom/auto 250px no-repeat}}
/* live falling leaves replace the static scatter; the lockup pair (CSS) is held back from first paint and appears as the falling pair lands; no JS or reduced motion: tg-pre is never set */
html.tg-H2.tg-live:not(.tg-dusk)::before{background-image:none!important}
html.tg-H2.tg-pre:not(.tg-landed) .logo::before,html.tg-H2.tg-pre:not(.tg-landed) .logo::after{opacity:0}
