/* Original Shire illustration, with layered garden detail and evening light. */
.poster { position: relative; width: 100%; aspect-ratio: 550 / 822; overflow: hidden; background: #183224; container-type: inline-size; }
.poster img { display: block; position: absolute; height: auto; pointer-events: none; }
.scene-world, .parallax-layer, .fireflies, .stars { position: absolute; inset: 0; pointer-events: none; }
.scene-world { transform: scale(1.022); }
.poster .background { inset: 0; width: 100%; height: 100%; filter: saturate(1.16) contrast(1.04) brightness(1.04); transform: translate(calc(var(--pointer-x) * -1px), calc(var(--pointer-y) * -.6px)); transition: transform .8s; }
.sky-light { position: absolute; inset: 0 0 50%; background: radial-gradient(ellipse at 15% 5%, #efc67580, #c7a25e1a 48%, transparent 75%); mix-blend-mode: screen; opacity: calc(1 - var(--night)); }
.sky-colour { position: absolute; inset: 0 0 51%; background: linear-gradient(180deg, #11274f80, #8a7c9a28 62%, #d1a2743b); mix-blend-mode: soft-light; opacity: calc(.9 - var(--night) * .35); pointer-events: none; }
.moonbeams { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: calc(.46 + var(--night) * .34); pointer-events: none; animation: moonlight-drift 24s ease-in-out infinite alternate; }
.sky-layer { transform: translate(calc(var(--pointer-x) * -2px), calc(var(--pointer-y) * -1px)); transition: transform .8s; }
.poster .moon { width: 24%; left: 76%; top: 1%; animation: moon-breathe 12s ease-in-out infinite; opacity: calc(.6 + var(--night) * .4); }
.moon-glow { position: absolute; width: 47%; aspect-ratio: 1; left: 63%; top: -7%; background: radial-gradient(circle, #dcebf24f, #c6dced12 45%, transparent 70%); mix-blend-mode: screen; animation: moon-breathe 12s ease-in-out infinite; }
.poster .clouds { width: 76%; left: 26%; top: 4.3%; opacity: .54; filter: blur(.3px); animation: cloud-drift 42s ease-in-out infinite alternate; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #faf2cd; box-shadow: 0 0 5px #f3e6a5; animation: starlight var(--duration) ease-in-out var(--delay) infinite; }
.shooting-star { position: absolute; left: 46%; top: 7%; width: 12%; height: 1px; background: linear-gradient(90deg, transparent, #ecedcebb); opacity: 0; transform-origin: right center; animation: shooting-star 38s linear -12s infinite; }
.window-light { position: absolute; width: 9%; aspect-ratio: 1; left: 11.4%; top: 43.8%; border-radius: 50%; box-shadow: 0 0 15px #e6b55670, 0 0 40px #dfad4430; mix-blend-mode: screen; opacity: calc(.78 + var(--night) * .18); animation: window-flicker 8s ease-in-out infinite; }
.window-light svg { display: block; width: 100%; height: 100%; }
.window-spill { position: absolute; left: -3%; top: 36%; width: 43%; height: 42%; background: radial-gradient(ellipse at 44% 27%, #f9bd6052, #e6aa4420 27%, transparent 64%); mix-blend-mode: screen; opacity: calc(.58 + var(--night) * .22); pointer-events: none; }
.leaves-layer { transform: translate(calc(var(--pointer-x) * 3px), calc(var(--pointer-y) * 2px)); transition: transform .8s; }
.leaves { transform-origin: 18% 55%; animation: leaf-sway 13s ease-in-out infinite alternate; }
.poster .leaves1 { width: 41.82%; top: 3.04%; left: -3.64%; }
.poster .leaves2 { width: 29.09%; top: 8.51%; left: 20.91%; animation-delay: -4s; animation-duration: 16s; }
.poster .leaves3 { width: 20%; top: 10.95%; left: -9.09%; animation-delay: -7s; animation-duration: 11s; }
.poster .leaves4 { width: 20%; top: 12.77%; left: 18.18%; animation-delay: -2s; }
.drifting-leaf { position: absolute; left: 13%; top: 19%; width: 1.3%; aspect-ratio: .55; background: #95a556; clip-path: polygon(50% 0, 91% 30%, 100% 62%, 62% 100%, 16% 81%, 0 43%); opacity: 0; animation: leaf-fall 26s ease-in-out -10s infinite; }
.drifting-leaf--second { left: 25%; top: 13%; width: 1%; background: #bdab62; animation-delay: -21s; animation-duration: 33s; }
.characters-layer { transform: translate(calc(var(--pointer-x) * 1px), calc(var(--pointer-y) * .5px)); transition: transform .8s; }
.characters-layer > img { filter: brightness(1.1) saturate(1.08) drop-shadow(0 2px 1px #08120d66); }
.poster .gandalf-body { width: 36.36%; top: 62.04%; left: 54.55%; }
.poster .gandalf-head { width: 21.82%; top: 48.66%; left: 60%; transform-origin: 48% 84%; animation: gandalf-reverie 12s ease-in-out infinite; }
.poster .bilbo-body { width: 25.45%; top: 65.69%; left: 32.73%; }
.poster .bilbo-head { width: 21.82%; top: 56.45%; left: 39.09%; transform-origin: 51% 86%; animation: bilbo-reverie 15s ease-in-out -4s infinite; }
/* The SVG's bottom centre meets the pipe bowl at (491, 514) in the original artboard. */
.pipe-smoke { position: absolute; left: 78.33%; top: 35.55%; width: 22%; aspect-ratio: 6 / 11; overflow: visible; pointer-events: none; }
.pipe-smoke > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.smoke-ribbon { opacity: .72; transform-origin: 60px 220px; animation: smoke-curl 10s ease-in-out -2s infinite alternate; }
.smoke-ribbon--veil { opacity: .36; transform: rotate(9deg) scaleX(1.4); animation-duration: 13s; animation-delay: -7s; }
.smoke-filament { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 20 80; opacity: .68; animation: smoke-rise 7s linear infinite; }
.smoke-filament--fine { stroke-width: 1.2; stroke-dasharray: 28 72; opacity: .5; animation-duration: 9s; animation-delay: -4s; }
.evening-wash { position: absolute; inset: 0; background: linear-gradient(125deg, #e8c0783b, #cba36b12 37%, #1d405128 77%); mix-blend-mode: soft-light; opacity: calc(1 - var(--night)); }
.night-wash { position: absolute; inset: 0; background: linear-gradient(180deg, #061a435c, #0b1d354d 65%, #08182a85); mix-blend-mode: multiply; opacity: var(--night); }
.fireflies { opacity: calc(.55 + var(--night) * .45); }
.firefly { position: absolute; left: var(--x); top: var(--y); width: var(--size); aspect-ratio: 1; border-radius: 50%; background: #f9e39c; box-shadow: 0 0 5px 1px #e8ce7b85, 0 0 14px 3px #e8ce7b28; opacity: 0; animation: firefly-drift var(--duration) ease-in-out var(--delay) infinite; }
.ground-mist { position: absolute; left: -25%; width: 150%; bottom: 6%; height: 17%; opacity: calc(.2 + var(--night) * .1); background: radial-gradient(ellipse, #cbd4bb58, transparent 65%); filter: blur(14px); animation: mist-drift 26s ease-in-out infinite alternate; }
.garden-depth { position: absolute; inset: 0; pointer-events: none; transform: translate(calc(var(--pointer-x) * 4px), calc(var(--pointer-y) * 2px)); transition: transform .8s; }
.foreground-garden { display: block; width: 100%; height: 100%; }
.garden-left { transform-origin: 50px 822px; animation: garden-sway 11s ease-in-out infinite alternate; }
.garden-right { transform-origin: 520px 822px; animation: garden-sway 14s ease-in-out -5s infinite alternate-reverse; }
.garden-blossoms { opacity: .82; }
.poster-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 55% 48%, transparent 38%, #07180f20 78%, #06110bc9 112%), linear-gradient(transparent 78%, #06110bd4); pointer-events: none; }
.poster .poster-title { width: 54%; top: 10.4%; left: 37.5%; opacity: .97; filter: sepia(.85) saturate(.72) brightness(1.02) drop-shadow(0 2px 4px #00111b90); }
.poster-tagline { position: absolute; top: 33%; left: 35%; width: 60%; margin: 0; color: #eee1b6df; font-family: var(--font-page); font-size: 1.5cqw; line-height: 1.8; text-align: center; letter-spacing: 0; }
.poster .credits { width: 50%; left: 27.27%; top: 93.67%; opacity: .6; }
.poster-inner-border { position: absolute; inset: 7px; border: 1px solid #e6d7a523; pointer-events: none; }
.poster-filigree { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .56; pointer-events: none; }
.poster-grain { position: absolute; inset: 0; opacity: .045; mix-blend-mode: soft-light; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 150'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath d='M0 0h150v150H0z' filter='url(%23g)'/%3E%3C/svg%3E"); }
.poster-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 15%, #f5e6bd09 35%, transparent 55%); transform: translateX(calc(var(--pointer-x) * 12%)); pointer-events: none; }

@keyframes moon-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }
@keyframes moonlight-drift { from { transform: translateX(-1%) rotate(-.6deg); } to { transform: translateX(1%) rotate(.6deg); } }
@keyframes shooting-star { 0%, 88%, 95%, 100% { opacity: 0; } 88% { transform: translate(-9cqw, -3cqw) rotate(24deg); } 89%, 91% { opacity: .55; } 94%, 100% { transform: translate(12cqw, 6cqw) rotate(24deg); } }
@keyframes cloud-drift { from { transform: translateX(-4%); } to { transform: translateX(8%); } }
@keyframes leaf-sway { from { transform: rotate(-1deg) translateY(0); } to { transform: rotate(3deg) translateY(2px); } }
@keyframes leaf-fall { 0%, 8% { transform: translate(0, 0) rotate(-20deg); opacity: 0; } 14% { opacity: .55; } 32% { transform: translate(-3cqw, 23cqw) rotate(95deg); } 52% { transform: translate(6cqw, 45cqw) rotate(220deg); opacity: .45; } 70%, 100% { transform: translate(9cqw, 64cqw) rotate(350deg); opacity: 0; } }
@keyframes garden-sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
@keyframes gandalf-reverie { 0%, 100% { transform: rotate(-.6deg); } 45% { transform: rotate(1.4deg); } 70% { transform: rotate(.4deg); } }
@keyframes bilbo-reverie { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-2deg); } 75% { transform: rotate(.8deg); } }
@keyframes smoke-curl {
 0% { d: path('M59 220C59 206 69 198 68 183C67 168 49 165 49 150C49 132 68 128 67 109C66 88 41 87 39 67C37 47 52 34 47 11L51 8C61 33 46 49 48 67C50 82 76 85 77 107C79 132 59 138 59 151C59 164 77 168 77 184C77 201 62 210 62 220Z'); }
 50% { d: path('M59 220C59 207 53 199 55 184C57 168 71 164 70 150C69 133 49 129 50 109C51 89 76 83 72 65C68 46 44 32 55 10L61 9C52 30 79 43 82 64C85 87 61 94 61 110C61 126 81 131 81 150C81 169 66 172 65 186C64 201 62 210 62 220Z'); }
 100% { d: path('M59 220C59 205 70 198 68 182C66 166 58 166 57 149C56 131 70 127 65 107C60 88 31 84 32 62C33 41 62 29 53 9L59 7C71 32 43 48 43 64C43 79 72 84 76 104C84 128 67 137 67 151C67 164 78 166 78 182C78 200 63 211 62 220Z'); }
}
@keyframes smoke-rise { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes firefly-drift { 0%, 100% { transform: translate(0, 0); opacity: .05; } 25% { transform: translate(calc(var(--drift-x) * -.35), calc(var(--drift-y) * -.55)); opacity: .8; } 50% { transform: translate(var(--drift-x), calc(var(--drift-y) * -1)); opacity: .2; } 75% { transform: translate(calc(var(--drift-x) * .65), calc(var(--drift-y) * -.4)); opacity: .65; } }
@keyframes starlight { 0%, 100% { opacity: .15; transform: scale(.7); } 55% { opacity: .85; transform: scale(1.25); } }
@keyframes window-flicker { 0%, 100% { filter: brightness(.9); } 40% { filter: brightness(1.15); } 65% { filter: brightness(1); } }
@keyframes mist-drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes status-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
body[data-paused="true"] .poster *, body[data-paused="true"] .living-dot,
body[data-away="true"] .poster *, body[data-away="true"] .living-dot { animation-play-state: paused !important; }
body[data-paused="true"] .living-dot { background: #8a9580; box-shadow: none; }
body[data-paused="true"] .poster-frame, body[data-paused="true"] .parallax-layer, body[data-paused="true"] .garden-depth, body[data-paused="true"] .background { transform: none; }


@media (hover: none), (pointer: coarse) { .poster-frame, .parallax-layer, .garden-depth, .poster .background { transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
 .poster-frame, .parallax-layer, .garden-depth, .poster .background { transform: none !important; }
 .poster *, .living-dot { animation-play-state: paused !important; }
 body[data-motion-allowed="true"] .poster *, body[data-motion-allowed="true"] .living-dot { animation-play-state: running !important; }
 body[data-paused="true"] .poster *, body[data-paused="true"] .living-dot, body[data-away="true"] .poster *, body[data-away="true"] .living-dot { animation-play-state: paused !important; }
}
