/* Home "Tonight's arrivals" (r12): the owner-approved rope art (concept arrivals-4, HOME-rope-v2-green.png cut from its
   green key) - the rope with knots, clothespins, lanterns and the plaque as one static layer in front, the polaroids
   (frame sprite + portrait) hanging on the clothespins behind it, the FENNECS ALIVE sign on the left post
   (r12c: no signpost - the community links live in the header).
   Geometry (left/top/width/height of every piece, card space as --vars, the art per scale as --*-img) is measured and set
   by home-arrivals-r12.mjs; this file only draws. r12g (owner 25.09, a clothesline): the rope layer and the NEW tag over
   the first clothespin never move; the photos move only when a Fennec arrives (Web Animations in the module: drop onto
   the first clothespin, slide one right, the last one falls off). Here: the lanterns' flicker (light only) and the motion
   policy. Every art image is shown 1:1 (exact divisions of the source); a photo at rest carries its clothespin's tilt/scale. */
.hfa{position:absolute;inset:0;z-index:2;display:block;pointer-events:none;visibility:hidden;--sc:1;
  --wood-ink:#2a0b12;--wood-lip:rgba(242,181,124,.55);contain:layout style}
.hfa[data-ready]{visibility:visible}
.hfa>*{position:absolute;margin:0;box-sizing:border-box}
.hfa .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.hfa-counter,.hfa-rig{pointer-events:auto}
.hfa-counter,.hfa-post{image-rendering:pixelated}

/* the posts the rope's knots are tied to, down to the ground (behind the rope) */
.hfa-post{z-index:1;background:url('/art/home-arrivals/post-cap.png') 0 0/100% auto no-repeat,url('/art/home-arrivals/post.png') 0 0/100% auto repeat-y;
  filter:drop-shadow(0 2px 0 rgba(6,2,14,.55))}
.hfa-post[hidden]{display:none}

/* the rig: rope art + cards + lantern light + plaque heading in one box */
.hfa-rig{z-index:2}
.hfa-sway{position:absolute;inset:0}
.hfa-cards{position:absolute;inset:0;z-index:1;margin:0;padding:0;list-style:none}
/* the rope, knots, clothespins, lanterns and plaque: in front of the cards (the clothespins bite the frames) */
.hfa-ropeart{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2;pointer-events:none;background:var(--rope-img) 0 0/100% 100% no-repeat}
.hfa-lamps{position:absolute;inset:0;z-index:3;pointer-events:none}
/* lantern light: a warm glow over each lantern, flickering by opacity only (the lantern pixels never animate) */
.hfa-lamp{position:absolute;border-radius:50%;mix-blend-mode:screen;opacity:.8;
  background:radial-gradient(closest-side,rgba(255,236,170,.75) 0,rgba(255,196,92,.42) 28%,rgba(255,140,40,.14) 60%,transparent 100%);
  animation:hfa-flicker var(--fd,2.8s) ease-in-out var(--fl,0s) infinite alternate}
@keyframes hfa-flicker{0%{opacity:.62}17%{opacity:.86}31%{opacity:.56}48%{opacity:.95}63%{opacity:.6}81%{opacity:.88}100%{opacity:.68}}
/* the plaque is painted on the rope art: its heading only carries the text for assistive technology */
.hfa-plaque{position:absolute;z-index:4;margin:0;background:none;pointer-events:none}

/* the cards: the polaroid frame sprite with the portrait behind its window; tilted/scaled per clothespin about the
   frame's centre (--ox/--oy); the swing pivots on the clothespin (--pinx/--piny) */
.hfa-card{position:absolute;width:var(--cw);height:var(--ch);transform-origin:var(--ox) var(--oy);will-change:transform}
.hfa-swing{position:absolute;inset:0;transform-origin:var(--pinx) var(--piny)}
/* the card opens its Fennec on OpenSea once the asset template exists (a link); without it the card is not clickable */
.hfa-link{position:absolute;inset:0;display:block;color:inherit;text-decoration:none;-webkit-user-drag:none}
a.hfa-link{cursor:pointer}
a.hfa-link:focus-visible{outline:2px solid #ffd968;outline-offset:2px;border-radius:4px}
a.hfa-link:hover .hfa-frame{filter:brightness(1.08)}
.hfa-photo{position:absolute;left:var(--wx);top:var(--wy);width:var(--ww);height:var(--wh);background:#140b24;overflow:hidden}
.hfa-img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 42%;image-rendering:auto}
.hfa-frame{position:absolute;inset:0;z-index:1;pointer-events:none;background:var(--frame-img) 0 0/100% 100% no-repeat}
/* r12h (owner: "small and blurry, the time is not visible"): the caption is live text in the pixel font at WHOLE sizes,
   level on the tilted photo (the module turns it back by the photo's tilt), dark ink on the polaroid's warm strip
   (contrast 11-14:1), the number larger, both inside the reserved caption band (whole pixels, overflow clipped) */
.hfa-cap{position:absolute;z-index:2;left:var(--capx);width:var(--capw);top:var(--capy);height:var(--caph);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:1px;padding-top:1px;font-family:Pixel,monospace;line-height:1;color:#240b14;text-align:center;letter-spacing:0;font-variant-numeric:tabular-nums;
  transform-origin:50% 50%;pointer-events:none;overflow:hidden}
.hfa-cap b{font-weight:400;font-size:19px;line-height:12px}
.hfa-cap small{font-size:13px;line-height:10px;color:#3d1d2a}
.hfa-rig[data-scale=m] .hfa-cap{gap:0}
.hfa-rig[data-scale=m] .hfa-cap b{font-size:16px;line-height:10px}
.hfa-rig[data-scale=m] .hfa-cap small{font-size:11px;line-height:9px}
.hfa-rig[data-scale=s] .hfa-cap b{font-size:12px;line-height:8px}
.hfa-rig[data-scale=s] .hfa-cap small{display:none}
/* NEW: the art's tag, fixed over the first clothespin (as it sits on the first frame in the art): it never moves or blinks;
   a new photo is pinned under it. Above the photos, below the rope and clothespins. Placed by the module. */
.hfa-new{position:absolute;z-index:1;background:var(--tag-img) 0 0/100% 100% no-repeat;filter:drop-shadow(0 0 3px rgba(255,120,60,.55));pointer-events:none}
.hfa-new[hidden]{display:none}

/* FENNECS ALIVE counter: the sign on the rope's left post */
.hfa-counter{z-index:5;display:flex;flex-direction:column;align-items:center;background:url('/art/home-arrivals/counter.png') 0 0/100% 100%;
  filter:drop-shadow(0 4px 0 rgba(6,2,14,.55))}
.hfa-counter-label{display:block;height:18px;padding-top:3px;font:400 14px/1 Pixel,monospace;letter-spacing:.6px;color:var(--wood-ink);text-shadow:0 1px 0 var(--wood-lip);white-space:nowrap}
.hfa-odo{display:flex;align-items:center;justify-content:center;margin-top:4px;height:26px;min-width:56px;padding:0 6px;background:#12050b;
  box-shadow:0 0 0 2px #1b0810,inset 0 2px 0 #000,inset 0 -1px 0 rgba(242,181,124,.28);overflow:hidden;font:400 24px/1 Pixel,monospace;color:#ffd968;
  text-shadow:0 0 6px rgba(255,186,64,.55);white-space:nowrap}
.hfa-digit{position:relative;display:inline-block;width:.5em;height:1em;overflow:hidden;text-align:center}
.hfa-reel{position:absolute;left:0;top:0;width:100%;line-height:1em;text-align:center}
.hfa-comma{display:inline-block;width:.24em;text-align:center}
.hfa-dash{opacity:.6}

/* empty strip */
.hfa-empty{position:absolute;z-index:4;text-align:center;font:400 16px/1.1 Pixel,monospace;color:#f2d9a8;letter-spacing:.5px;text-shadow:0 2px 0 rgba(6,2,14,.8)}
.hfa-empty[hidden]{display:none}

/* phone / narrow: a section of its own below the Home card; the rope's ends run out of the section */
.hfa[data-layout=flow]{position:relative;inset:auto;width:auto;margin:12px 0 0;border:1px solid rgba(146,112,255,.34);border-radius:14px;overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  /* r12f: the Home picture's own lit town over its flat sand (art/home-r12/scene-strip.webp): the post stands on the sand */
  background:linear-gradient(180deg,rgba(9,7,34,.72),rgba(9,7,34,.32) 38%,rgba(9,7,34,0) 58%),url("/art/home-r12/scene-strip.webp") 50% 100%/cover no-repeat,#1b1036}

/* motion policy: paused (hidden tab, offscreen, Scene animation off) and static (reduced motion); an arrival that
   cannot be seen is applied at once by the module (no motion) */
.hfa[data-paused] .hfa-lamp,html[data-motion=off] .hfa *{animation-play-state:paused!important}
html[data-motion-static] .hfa *{animation:none!important}
@media (prefers-reduced-motion:reduce){.hfa *{animation:none!important;transition:none!important}}

/* ---- Home scene HOME-BG-2 (owner 24-25.09.2026; home-still-15.mjs, art/home-r12/scene*.webp). The picture keeps its
   proportions; its box (--hb2-w/-x/-y) is solved by placeHomeScene from the measured title, buttons and plates
   ([data-place]); until then the scenery's own centred cover applies. The picture's sky / ground continue it only where
   a layout needs them ([data-sky-ext] / [data-floor-ext]); otherwise they are not drawn (and not fetched). */
#app.ui12 .hb2-scenery[data-place]>.scene-world12{left:var(--hb2-x);top:var(--hb2-y);width:var(--hb2-w);transform:none}
#app.ui12 .hb2-scenery .hb2-sky,#app.ui12 .hb2-scenery .hb2-floor{position:absolute;left:0;width:100%;display:none;pointer-events:none;background:0 0/100% 100% no-repeat}
#app.ui12 .hb2-scenery .hb2-sky{bottom:100%;aspect-ratio:1672/318;background-image:url("/art/home-r12/scene-sky.webp")}
#app.ui12 .hb2-scenery .hb2-floor{top:100%;aspect-ratio:1672/250;background-image:url("/art/home-r12/scene-floor.webp")}
#app.ui12 .hb2-scenery[data-sky-ext] .hb2-sky,#app.ui12 .hb2-scenery[data-floor-ext] .hb2-floor{display:block}
/* light over the painted card and spirit: additive only (plus-lighter), never a patch over the picture */
.hb2-fx{position:absolute;inset:0;pointer-events:none}
.hb2-fx>span{position:absolute;display:block;pointer-events:none}
.hb2-glow,.hb2-flare,.hb2-aura{aspect-ratio:1;translate:-50% -50%;border-radius:50%;mix-blend-mode:plus-lighter}
/* the card's glow lights the air around the card (a ring from its edge out): the painted paw print keeps its contrast */
.hb2-glow{background:radial-gradient(closest-side,transparent 0 46%,#ffd35a3d 56%,#ffb04028 68%,#ff9a2a0c 84%,transparent 100%);
  opacity:.75;animation:hb2-glow 3.2s ease-in-out infinite alternate;animation-delay:calc(0ms - var(--age,0ms))}
.hb2-flare{background:radial-gradient(closest-side,#fff4c838 0%,#ffd76a1c 45%,transparent 100%);
  opacity:.5;animation:hb2-flare 3.2s ease-in-out infinite alternate;animation-delay:calc(-1.6s - var(--age,0ms))}
/* the spirit (r12h): its own layer again - it floats in place (a slow bob and a sway away from the fox, never towards it)
   with a breathing aura behind it; at rest (static, reduced motion) it sits exactly where the approved picture paints it */
.hb2-fx>.hb2-spirit{z-index:1;animation:hb2-float 5.6s ease-in-out infinite;animation-delay:calc(0ms - var(--age,0ms));will-change:transform}
.hb2-wisp{position:absolute;inset:0;display:block;width:100%;height:100%;image-rendering:auto;-webkit-user-drag:none;user-select:none;pointer-events:none}
.hb2-aura{position:absolute;left:41%;top:50%;width:137%;background:radial-gradient(closest-side,#bdf2ff4d 0%,#5fd0ff2a 32%,#3a8dff10 60%,transparent 100%);
  opacity:.7;animation:hb2-aura 2.8s ease-in-out infinite alternate;animation-delay:calc(0ms - var(--age,0ms))}
/* a mote is a column as tall as its rise; the dot sits at its foot, so translate -100% lifts the dot by the column height */
.hb2-dust{inset:0}
.hb2-dust>i{position:absolute;left:var(--x);top:calc(var(--y) - var(--rise));width:var(--s);height:var(--rise);transform:rotate(var(--r,0deg));transform-origin:50% 100%}
.hb2-dust>i>b{position:absolute;inset:0;display:block;opacity:0;animation:hb2-mote var(--p) linear infinite;animation-delay:calc(0s - var(--d) - var(--age,0ms));will-change:transform,opacity}
.hb2-dust>i>b::before{content:"";position:absolute;left:0;bottom:0;width:100%;aspect-ratio:1;background:#fff0a8;box-shadow:0 0 5px 2px #ffc94db3}
.hb2-dust>i.d-w>b::before{background:#fffbea;box-shadow:0 0 5px 2px #ffe7a0a6}
@keyframes hb2-glow{from{opacity:.6;transform:scale(.93)}to{opacity:.95;transform:scale(1.06)}}
@keyframes hb2-flare{from{opacity:.25}to{opacity:.85}}
@keyframes hb2-mote{0%{transform:translate(0,0) scale(.6);opacity:0}12%{opacity:1}55%{opacity:.85}100%{transform:translate(0,-100%) scale(1);opacity:0}}
@keyframes hb2-aura{from{opacity:.4;transform:scale(.94)}to{opacity:.9;transform:scale(1.05)}}
/* the float: up to 3% of its box to the right, 6% up, turns of 1.5 deg - never left of its rest place (the fox is on its left) */
@keyframes hb2-float{0%,100%{transform:translate(0,0) rotate(0deg)}25%{transform:translate(3%,-3%) rotate(1.5deg)}50%{transform:translate(1%,-6%) rotate(0deg)}75%{transform:translate(2.5%,-2%) rotate(-1deg)}}
/* motion policy (motion-core-16): toggle off / owner pause / scrolled away = paused in place; static = still light, no dust */
html[data-motion=off] .hb2-fx *,html[data-motion=off] .hb2-fx *::before,html[data-owner-motion=paused] .hb2-fx *,.hb2-fx[data-offscreen] *{animation-play-state:paused!important}
html[data-motion-static] .hb2-fx *{animation:none!important}
html[data-motion-static] .hb2-dust{display:none}
html[data-fx-tier="2"] .hb2-dust>i:nth-child(2n){display:none}
html[data-fx-tier="1"] .hb2-dust,html[data-fx-tier="0"] .hb2-dust{display:none}
@media (prefers-reduced-motion:reduce){.hb2-fx *{animation:none!important}.hb2-dust{display:none}}
