/* One coordinate space keeps the lights and keeper grounded in the film. */
.forest-hero{height:max(720px,100svh);max-height:1200px;background:#030b0b}
.forest-viewport{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none;container-type:size}
.forest-world{position:absolute;left:50%;top:50%;width:max(100cqw,177.683316cqh);aspect-ratio:1672/941;transform:translate3d(var(--world-center-x,-50%),-50%,0) scale(1.025);transform-origin:60% 60%;pointer-events:none;will-change:transform}
@media(max-width:700px){.forest-world{--world-center-x:-75%}}
.forest-world .forest-backdrop,.forest-film{position:absolute;inset:0;width:100%;height:100%;background:none;transform:none!important;object-fit:fill;pointer-events:none}
.forest-backdrop img{display:block;width:100%;height:100%;object-fit:fill}
.forest-film{opacity:0;transition:opacity 1.8s;filter:saturate(.88)}
.forest-film.is-playing{opacity:1}
.forest-shade{background:linear-gradient(90deg,#030c0d30 0%,#02090bb3 27%,#020b0c8a 45%,transparent 69%),linear-gradient(0deg,#030b0beb,transparent 19%,transparent 80%,#02090b6b);z-index:2}
.forest-smoke{z-index:4;opacity:.65}
.forest-grain{opacity:.022}
.forest-hero .hero-grid{width:100%;max-width:none;margin:0;padding:125px 20px 125px 28%;align-items:center}
.forest-hero .hero-copy{width:min(43vw,575px);max-width:none;transform:translateY(calc(var(--scroll)*-30px));text-shadow:0 5px 36px #000a}
.forest-hero .eyebrow{font-size:9px;letter-spacing:.2em;margin-bottom:25px;color:#d8f8df}
.forest-hero h1{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:clamp(80px,6.6vw,126px);font-weight:400;line-height:.94;letter-spacing:-.015em;margin-bottom:25px}
.forest-hero h1 em{letter-spacing:-.035em;color:#d6ff96;text-shadow:0 0 35px #b8ff631d}
.forest-hero .hero-copy>p{color:#c9dad3;font-size:14px;line-height:1.85}
.forest-hero .actions{gap:13px;flex-wrap:wrap;margin:27px 0}
.forest-hero .hero-meta{padding-top:18px;border-color:#b9e6db33;gap:24px}
.forest-hero .hero-meta b{color:#d9f1de}
.forest-hero .hero-meta span+span{padding-left:24px}
.forest-hero .hero-bottom{background:#02101355;border-color:#bef3dd20}
.button,.navright .button{--light-x:50%;--light-y:0%;background:radial-gradient(ellipse at var(--light-x) var(--light-y),#dcffb83b,transparent 65%),linear-gradient(120deg,#aaff9c1e,#53e7dc12 58%,#b5e8ff20);border:1px solid #c8f5d888;color:#edfff4;border-radius:9px;backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 #efffffa0,inset 0 -1px 0 #94e9dc44,0 0 19px #b6ff6420,0 10px 30px #0005;transition:transform .3s,box-shadow .3s,border-color .3s}
.button:before{background:linear-gradient(110deg,transparent 32%,#efffff60 49%,transparent 65%)}
.button:after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,transparent,#d7ffc7aa,transparent) top/65% 1px no-repeat;animation:holo-edge 5s ease-in-out infinite}
.button:hover,.navright .button:hover{background:radial-gradient(ellipse at var(--light-x) var(--light-y),#e8ffb94d,transparent 70%),linear-gradient(120deg,#aaff9c29,#53e7dc26);border-color:#d8ffe9;box-shadow:inset 0 1px 0 #fff,0 0 28px #a6ff9655,0 15px 35px #0006;transform:perspective(800px) translateY(-4px) rotateX(5deg)}
.button span[aria-hidden]{background:#cbffee12;border:1px solid #caffee26;color:#d7ffbd;border-radius:5px}
.button.ghost{border-color:#c6ece850;background:linear-gradient(125deg,#e9fff312,#84e7ff09);color:#d8eae7;box-shadow:inset 0 1px 0 #d2fff044,0 10px 25px #0004}
.holo-button{font-size:12px;padding:15px 17px;gap:20px;min-height:58px}
.button-label{position:relative;z-index:1}
.forest-orbit{position:absolute;inset:0;width:100%;height:100%;opacity:.8;filter:drop-shadow(0 0 7px #b7ff99);pointer-events:none}
.forest-orbit path{fill:none;stroke:#e1ffe8;stroke-width:2;stroke-linecap:round;stroke-dasharray:24 105 2 175;animation:orbit-stream 12s linear infinite}
.moon-glint{position:absolute;left:68%;top:24%;width:9%;height:38%;background:linear-gradient(105deg,#99d6fa00 25%,#bbeaff27 49%,#a1d5ff00 72%);transform:rotate(18deg);mix-blend-mode:screen;filter:blur(20px);pointer-events:none;animation:moon-breathe 9s ease-in-out infinite}
.forest-world .bulb-target{left:var(--anchor-x);top:var(--anchor-y);right:auto;width:4.05%;height:auto;aspect-ratio:84/130;transform:translate(-50%,-34%);animation:none;filter:drop-shadow(0 0 16px #ffe48990);z-index:3;pointer-events:auto}
.forest-world .bulb-target:before{display:none}
.forest-world .bulb-target:after{inset:30% 2% 8%;font-size:18px}
.forest-world .bulb-target svg{display:block}
.forest-world .bulb-target:hover{filter:drop-shadow(0 0 26px #fff4a8)}
.forest-world .bulb-target.is-broken{filter:none}
.forest-world .keeper{position:absolute;left:12%;top:56%;bottom:auto;width:13.2%;aspect-ratio:3/4;z-index:2;border:0;padding:0;background:none;pointer-events:auto;cursor:pointer;transform:scaleX(var(--facing,1));transform-origin:50% 90%;filter:brightness(.57) saturate(.58) hue-rotate(10deg) drop-shadow(-2px -1px 2px #a8d6d550) drop-shadow(4px 10px 9px #000c)}
.forest-world .keeper:after{content:'';position:absolute;left:-18%;right:-17%;bottom:-7%;height:24%;background:radial-gradient(ellipse,#162c24a1,transparent 70%);filter:blur(5px);pointer-events:none}
.keeper-seat{position:absolute;left:30%;top:63%;width:43%;height:27%;background:radial-gradient(ellipse at 45% 5%,#52605a,#1d2921 60%,#111d17);clip-path:polygon(10% 7%,46% 0,86% 10%,97% 86%,79% 100%,5% 91%);box-shadow:0 10px 17px #000}
.forest-world .keeper-sprite{mask-image:linear-gradient(#000 81%,#000c 93%,transparent 100%);-webkit-mask-image:linear-gradient(#000 81%,#000c 93%,transparent 100%)}
.keeper-name{left:5%;bottom:-9%;font-size:8px;white-space:nowrap;filter:brightness(1.8)}
.forest-stage{inset:0;height:auto;perspective:1400px}
.forest-speech{left:10%;bottom:32%;max-width:205px;font-size:11px;background:#06191cee;border-color:#baffd744}
.forest-hud{right:5%;bottom:91px;padding:10px 13px;border-color:#c6ffe637;background:linear-gradient(130deg,#9ac8bb16,#051d20b8);box-shadow:inset 0 1px 0 #c2f6e51a,0 12px 40px #0005;border-radius:9px}
.floating-deck{position:absolute;right:8%;bottom:24%;width:360px;height:235px;perspective:1000px;transform:translate3d(calc(var(--mx)*15px),calc(var(--my)*8px),0);pointer-events:none}
.scene-card{position:absolute;left:50%;top:0;width:145px;height:205px;margin-left:-72px;padding:0;border:0;background:none;color:#e8f4cf;transform-style:preserve-3d;transform:translate3d(var(--cx),var(--cy),0) rotateZ(var(--cz)) rotateY(calc(var(--mx)*12deg));pointer-events:auto;cursor:pointer;animation:card-drift 6s ease-in-out infinite;animation-delay:var(--delay);transition:filter .3s;filter:drop-shadow(0 22px 17px #000b)}
.card-one{--cx:-100px;--cy:15px;--cz:-18deg;--delay:-1s}
.card-two{--cx:0px;--cy:-12px;--cz:1deg;--delay:-3s;z-index:2}
.card-three{--cx:100px;--cy:15px;--cz:19deg;--delay:-5s}
.card-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:9px;padding:18px 15px;border-radius:10px;border:1px solid #c9f99d80;background:radial-gradient(ellipse at var(--light-x,50%) var(--light-y,0%),#c8f88e2c,transparent 65%),linear-gradient(140deg,#203a26f5,#071814f7);box-shadow:inset 0 0 0 4px #d1ed9b10,inset 1px 1px 0 #eeffca50,3px 4px 0 #172b20;backface-visibility:hidden;transition:transform .7s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.card-face:before{content:'';position:absolute;inset:8px;border:1px solid #d8f3a723;border-radius:5px;pointer-events:none}
.card-face small{font:7px monospace;letter-spacing:.16em;color:#b7d396}
.card-face strong{font:800 12px/1.5 Arial,sans-serif;letter-spacing:.02em}
.card-face i{font:normal 9px/1.5 Arial,sans-serif;color:#acc2ab}
.card-sigil{font-size:45px;line-height:1;color:#d8ff9b;text-shadow:0 0 25px #cfff7a70}
.card-one .card-face{background:radial-gradient(ellipse at 70% 0,#eee0ac25,transparent 65%),linear-gradient(135deg,#534328,#181c12)}
.card-three .card-face{background:radial-gradient(ellipse at 70% 0,#8df4ff29,transparent 65%),linear-gradient(135deg,#17423e,#0b191b)}
.card-back{transform:rotateY(180deg);justify-content:center;gap:24px}
.scene-card.is-flipped .card-front{transform:rotateY(-180deg)}
.scene-card.is-flipped .card-back{transform:rotateY(0)}
.scene-card:hover,.scene-card:focus-visible{z-index:4;filter:drop-shadow(0 0 17px #ceff9745) drop-shadow(0 28px 17px #000b);outline:none}
.scene-card:hover .card-face,.scene-card:focus-visible .card-face{box-shadow:inset 0 0 0 4px #d1ed9b1a,inset 1px 1px 0 #fff9,3px 4px 0 #315341,0 0 25px #d5ff9355;border-color:#e1ffc3}
.deck-hint{position:absolute;right:9%;bottom:22%;font:8px monospace;letter-spacing:.14em;color:#c1debc;text-shadow:0 2px 10px #000}
.closing{background-image:linear-gradient(#05100be6,#05100b66),url('/assets/optimized/forest-living.6097aed26bf8.webp')}
@keyframes holo-edge{50%{background-position:100% 0;background-size:25% 1px}}
@keyframes orbit-stream{to{stroke-dashoffset:-612}}
@keyframes moon-breathe{50%{opacity:.45}}
@keyframes card-drift{50%{transform:translate3d(var(--cx),calc(var(--cy) - 12px),20px) rotateZ(calc(var(--cz) + 2deg)) rotateY(calc(var(--mx)*12deg + 5deg))}}
@media(min-width:1600px){.floating-deck{right:10%;bottom:24%;transform:scale(1.15) translate3d(calc(var(--mx)*15px),calc(var(--my)*8px),0)}.deck-hint{right:12%;bottom:21%}}
@media(max-width:1100px) and (min-width:701px){.forest-hero .hero-grid{padding-left:24%}.forest-hero .hero-copy{width:49vw}.forest-hero h1{font-size:82px}.floating-deck{right:0;bottom:23%;transform:scale(.8);transform-origin:100% 100%}.deck-hint{right:3%;font-size:7px}.holo-button{padding:12px;gap:12px;font-size:11px}.forest-world .keeper{left:17%;width:12%}}
@media(max-width:700px){
 .forest-hero{height:1120px;min-height:1120px;max-height:none}
 .forest-viewport{top:430px;bottom:65px}
 .forest-world .forest-backdrop{background-size:100% 100%;background-position:center}
 .forest-shade{background:linear-gradient(#030b0b 0%,#030b0b 33%,#030b0b77 43%,transparent 60%,#030b0b 98%)}
 .forest-hero .hero-grid{padding:119px 7% 0;height:auto;display:block}
 .forest-hero .hero-copy{width:100%;max-width:520px;margin:auto;transform:none}
 .forest-hero h1{font-size:clamp(66px,17vw,105px);line-height:.94;margin-bottom:20px}
 .forest-hero .eyebrow{font-size:8px;margin-bottom:20px}
 .forest-hero .hero-copy>p{font-size:12px}
 .forest-hero .actions{gap:10px;margin:21px 0}
 .holo-button{padding:11px 12px;min-height:48px;font-size:11px;gap:10px}
 .button span[aria-hidden]{width:22px;height:22px}
 .forest-hero .hero-meta{gap:17px;font-size:9px;padding-top:14px}
 .forest-hero .hero-meta span+span{padding-left:17px}
 .forest-world .keeper{left:59%;top:57%;width:12.5%}
 .forest-world .bulb-target{width:5%}
 .forest-world .bulb-three{display:none}
 .forest-stage{inset:0;height:auto}
 .forest-hud{right:7%;left:7%;bottom:83px;padding:10px;gap:10px}
 .forest-speech{left:7%;bottom:26%;max-width:185px;font-size:10px}
 .floating-deck{right:1%;bottom:18%;width:270px;height:180px;transform:scale(.67);transform-origin:right bottom}
 .deck-hint{right:5%;bottom:16.5%;font-size:6px;max-width:190px;text-align:right}
 .forest-hero .hero-bottom{width:86%;padding-inline:0;min-height:65px}
 .forest-hero .hero-bottom>span{font-size:7px}
 .forest-hero .hero-bottom .edition-label{display:none}
 .moon-glint{opacity:.4}
}
@media(max-width:380px){.holo-button{padding:10px;font-size:10px;gap:7px}.forest-hero .hero-meta{gap:13px}.forest-hero .hero-meta span+span{padding-left:13px}.forest-hud .hud-copy small{font-size:7px}}
.motion-paused .scene-card,.motion-paused .forest-orbit path,.motion-paused .moon-glint,.motion-paused .button:after{animation-play-state:paused!important}
.motion-paused .floating-deck{transform:none}
@media(prefers-reduced-motion:reduce){.forest-film{transition:none}.scene-card,.button:after,.forest-orbit path,.moon-glint{animation:none!important}.floating-deck{transform:none}.card-face{transition:none}}

.nav .button.ghost{background:linear-gradient(120deg,#aaff9c26,#53e7dc19);color:#edfff4;border-color:#c8f5d888;box-shadow:inset 0 1px 0 #efffffa0,0 0 19px #b6ff6420}
@media(min-width:701px) and (max-height:800px){.forest-hero .hero-grid{padding-top:105px;padding-bottom:110px}.forest-hero h1{font-size:70px;margin-bottom:18px}.forest-hero .eyebrow{margin-bottom:18px}.forest-hero .actions{margin:20px 0}.forest-hero .hero-copy>p{font-size:13px}.forest-hero .hero-meta{padding-top:14px}.floating-deck{bottom:27%;transform:scale(.88);transform-origin:right bottom}.deck-hint{bottom:25%}.forest-hud{bottom:84px}}
