/* Nine-scene animated forest adventure for Capyplan */
:root{--forest-deep:#102c23;--forest-mid:#28523d;--forest-leaf:#6f9665;--forest-mist:#d9e5d1;--forest-gold:#e8cf91;--forest-cream:#f6f0df;--journey-progress:11%}
body.forest-adventure{min-height:100vh;color:#24372c;background:#e9eee2;overflow-x:hidden}
.adventure-top{position:sticky;top:0;z-index:80;display:flex;align-items:center;gap:18px;padding:10px clamp(12px,3vw,34px);background:rgba(17,43,33,.91);color:#f7f2e4;backdrop-filter:blur(18px);border-bottom:1px solid #ffffff20;box-shadow:0 8px 28px #122a1d20}
.adventure-brand{flex:0 0 auto;color:#fff;text-decoration:none;font-weight:900;letter-spacing:.04em}.brand-leaf{display:inline-grid;place-items:center;width:30px;height:30px;margin-right:7px;border-radius:50%;background:#d9c18a;color:#23432f}
.adventure-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffffff18}.adventure-progress span{display:block;width:var(--journey-progress);height:100%;background:linear-gradient(90deg,#d5bd83,#a5c58a);transition:width .6s ease}
.adventure-nav{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;overflow-x:auto;scrollbar-width:none}.adventure-nav::-webkit-scrollbar{display:none}.adventure-nav-dot{display:flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid transparent;border-radius:999px;padding:7px 9px;background:transparent;color:#d9e4d4;cursor:pointer;font:inherit;font-size:.77rem;transition:.25s}.adventure-nav-dot span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#ffffff18;font-size:.72rem}.adventure-nav-dot em{font-style:normal}.adventure-nav-dot.is-current{background:#e7d5a8;color:#23412e;border-color:#e7d5a8}.adventure-nav-dot.is-current span{background:#31543b;color:#fff}.adventure-nav-dot:not(.is-current):hover{background:#ffffff15;color:#fff}.adventure-help{border:1px solid #ffffff3b;border-radius:999px;padding:8px 12px;background:#ffffff10;color:white;cursor:pointer;white-space:nowrap}
.forest-adventure-main{position:relative;isolation:isolate;min-height:calc(100vh - 55px)}.adventure-scene{position:relative;min-height:calc(100vh - 58px);overflow:hidden;isolation:isolate;padding:clamp(16px,3vw,36px)}.adventure-scene[hidden]{display:none!important}.scene-content{position:relative;z-index:2;max-width:1160px;margin:0 auto;animation:chapterArrive .85s cubic-bezier(.2,.75,.2,1) both}@keyframes chapterArrive{from{opacity:0;transform:translateY(26px) scale(.985);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
.scene-art{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:linear-gradient(180deg,#b8d0c0 0%,#d9e2c9 48%,#8fae82 100%)}.scene-sky{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 25%,#fff6d8a8,transparent 36%),linear-gradient(180deg,#a8c7ba55,transparent 65%);animation:skyBreath 12s ease-in-out infinite alternate}@keyframes skyBreath{to{filter:hue-rotate(13deg) brightness(1.08)}}.scene-sun{position:absolute;width:clamp(100px,17vw,220px);aspect-ratio:1;top:7%;right:17%;border-radius:50%;background:radial-gradient(circle,#fff4c9 0%,#f6df9b80 44%,transparent 72%);filter:blur(1px);animation:sunDrift 18s ease-in-out infinite alternate}@keyframes sunDrift{to{transform:translate(-35px,18px) scale(1.08)}}.scene-mountains{position:absolute;left:-10%;right:-10%;bottom:17%;height:40%;border-radius:50% 50% 0 0 / 22% 22% 0 0}.mountain-back{background:linear-gradient(160deg,#789c83,#4d785e);transform:translateY(10%) scaleX(1.2);opacity:.7}.mountain-front{bottom:7%;height:32%;background:linear-gradient(170deg,#527c5d,#234b39);transform:translateY(18%) scaleX(1.25);opacity:.9}.scene-tree{position:absolute;bottom:8%;width:clamp(120px,22vw,290px);height:65%;opacity:.8;background:linear-gradient(90deg,#183c2d,#315b3d 48%,#173a2b);clip-path:polygon(50% 0,66% 24%,60% 24%,80% 48%,69% 47%,100% 78%,62% 72%,62% 100%,38% 100%,38% 72%,0 78%,30% 47%,20% 48%,40% 24%,34% 24%);transform-origin:bottom;animation:treeSway 8s ease-in-out infinite alternate}.tree-left{left:-4%;transform:scale(1.12)}.tree-right{right:-5%;height:73%;animation-delay:-3s;transform:scaleX(-1) scale(1.05)}@keyframes treeSway{to{rotate:1.2deg}}.scene-mist{position:absolute;left:-15%;right:-15%;bottom:9%;height:28%;background:linear-gradient(180deg,transparent,#e5eddb72,transparent);filter:blur(15px);animation:mistMove 17s ease-in-out infinite alternate}@keyframes mistMove{to{transform:translateX(8%) translateY(-12px)}}.scene-fireflies i,.intro-fireflies b{position:absolute;width:5px;height:5px;border-radius:50%;background:#fff4b6;box-shadow:0 0 12px 4px #fff0a6a8;animation:firefly 5s ease-in-out infinite}.scene-fireflies i:nth-child(1){left:16%;top:35%}.scene-fireflies i:nth-child(2){left:29%;top:59%;animation-delay:-2s}.scene-fireflies i:nth-child(3){left:76%;top:38%;animation-delay:-1s}.scene-fireflies i:nth-child(4){left:85%;top:63%;animation-delay:-3s}.scene-fireflies i:nth-child(5){left:57%;top:48%;animation-delay:-4s}.scene-fireflies i:nth-child(6){left:43%;top:28%;animation-delay:-2.5s}.scene-fireflies i:nth-child(7){left:68%;top:72%;animation-delay:-.7s}@keyframes firefly{0%,100%{opacity:.15;transform:translate(0,0) scale(.6)}50%{opacity:1;transform:translate(15px,-22px) scale(1.3)}}.scene-path{position:absolute;bottom:-15%;left:30%;width:40%;height:43%;border-radius:50% 50% 0 0;background:linear-gradient(90deg,#b9a477,#dfc995 50%,#ad9668);clip-path:polygon(45% 0,56% 0,100% 100%,0 100%);opacity:.65;filter:blur(1px)}
.scene-heading{display:flex;align-items:center;gap:16px;margin:clamp(8px,2vh,24px) 0 24px;color:#173b2b;text-shadow:0 1px #ffffff55}.scene-heading-icon{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:19px;background:#f8f0d9d9;border:1px solid #ffffffa8;box-shadow:0 8px 22px #24442a20;font-size:1.8rem}.adventure-kicker{margin:0 0 5px;color:#f8f2df;font-size:.7rem;font-weight:900;letter-spacing:.19em;text-shadow:0 1px 5px #23442f88}.scene-heading .adventure-kicker{color:#42684a;text-shadow:none}.scene-heading h1{margin:0;color:#193b2b;font-size:clamp(1.9rem,4.5vw,3.3rem);letter-spacing:-.04em;line-height:1.05}.scene-heading p:last-child{margin:8px 0 0;max-width:690px;color:#355541;font-size:1rem;line-height:1.55}.scene-body{min-height:210px}.scene-body>.feature-section,.scene-body>.decision-hub,.scene-body>.side-card,.scene-body>.mascot-card{margin:0 0 18px;background:#f8f6edeb;border:1px solid #ffffffb5;border-radius:24px;padding:clamp(16px,2.6vw,28px);box-shadow:0 20px 55px #1b3b2920;backdrop-filter:blur(10px)}.scene-body>.mascot-card{max-width:700px;margin-inline:auto}.scene-body>.side-card{max-width:900px;margin-inline:auto}.scene-tip{margin:14px auto;padding:12px 16px;max-width:900px;border:1px solid #fff9;border-radius:15px;background:#f7f1dfd9;color:#3b5a42;box-shadow:0 8px 20px #29462b12;font-size:.9rem}.scene-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px;padding:13px 15px;border:1px solid #ffffff80;border-radius:18px;background:#173c2dcc;color:#f8f1df;backdrop-filter:blur(12px)}.scene-step-label{font-size:.75rem;letter-spacing:.12em;color:#d7e4d0}.adventure-primary,.adventure-back,.adventure-quiet{border-radius:999px;padding:12px 18px;font:inherit;font-weight:800;cursor:pointer;transition:transform .2s,box-shadow .2s}.adventure-primary{border:1px solid #f1dfb1;background:linear-gradient(135deg,#e9d7a6,#d4bc7f);color:#24412f;box-shadow:0 7px 18px #091e1633}.adventure-primary:hover{transform:translateY(-2px);box-shadow:0 12px 24px #091e1644}.adventure-back{border:1px solid #ffffff40;background:#ffffff12;color:#fff}.adventure-quiet{border:1px solid #ffffff50;background:transparent;color:#fff}
/* Chapter-specific lighting and mood: nine distinct clearings in one continuous forest. */
.scene-arrival .scene-art{background:linear-gradient(#a6cbbb,#d9e2c5 52%,#769b72)}.scene-clearing .scene-art{background:linear-gradient(#c3d6c5,#e8e5c9 50%,#92ad7d)}.scene-clearing .scene-sun{right:55%;top:12%}.scene-trail .scene-art{background:linear-gradient(#9dbbb2,#d7d9b7 52%,#75976e)}.scene-trail .scene-path{left:38%;width:25%;height:58%;opacity:.9}.scene-camp .scene-art{background:linear-gradient(#9eb7a0,#d9d0a9 54%,#718d65)}.scene-camp .scene-sun{top:23%;right:34%;width:130px}.scene-focus .scene-art{background:linear-gradient(#4e796b,#8ba98a 55%,#345b46)}.scene-focus .scene-sun{opacity:.45;filter:blur(8px)}.scene-focus .scene-mountains{filter:brightness(.7)}.scene-habits .scene-art{background:linear-gradient(#829c9a,#d5d7b2 50%,#6b936f)}.scene-habits .scene-fireflies i{width:7px;height:7px;box-shadow:0 0 18px 6px #fff0a6}.scene-lookout .scene-art{background:linear-gradient(#82b1b4,#e8dcb1 56%,#78966e)}.scene-lookout .scene-sun{right:40%;top:4%;width:240px}.scene-patterns .scene-art{background:linear-gradient(#647f7a,#a4b5a0 52%,#526f58)}.scene-patterns .scene-mist{height:42%;opacity:1}.scene-archive .scene-art{background:linear-gradient(#304e46,#718d76 55%,#294b39)}.scene-archive .scene-sun{top:4%;right:48%;opacity:.65}.scene-archive .scene-fireflies i{background:#f4dca0}
/* Intro: layered canopy and floating lights */
.forest-intro{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#789c73aa,transparent 46%),linear-gradient(160deg,#102b23,#294f3b 52%,#8ca77a);color:#fff;transition:opacity .5s,transform .5s}.forest-intro[hidden]{display:none}.forest-intro.is-leaving{opacity:0;transform:scale(1.04);pointer-events:none}.forest-intro-card{position:relative;z-index:3;width:min(620px,100%);padding:clamp(24px,5vw,48px);text-align:center;border:1px solid #ffffff35;border-radius:30px;background:#102c23a8;backdrop-filter:blur(20px);box-shadow:0 30px 100px #071b15aa;animation:introRise 1s cubic-bezier(.2,.8,.2,1) both}@keyframes introRise{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}.forest-intro-card img{width:min(190px,44vw);height:175px;object-fit:contain;filter:drop-shadow(0 16px 24px #071b1577);animation:capyHello 3.8s ease-in-out infinite}@keyframes capyHello{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(2deg)}}.forest-intro-card h1{font-size:clamp(2rem,6vw,3.5rem);line-height:1.02;margin:12px 0}.forest-intro-card p:not(.adventure-kicker){max-width:470px;margin:0 auto 22px;color:#e1eadc;line-height:1.7}.forest-intro-card small{display:block;margin-top:17px;color:#c4d6c0}.intro-moon{position:absolute;right:11%;top:9%;color:#f1dca9;font-size:2rem;animation:moonFloat 6s ease-in-out infinite}@keyframes moonFloat{50%{transform:translateY(-12px) rotate(20deg)}}.intro-canopy i{position:absolute;top:-10%;width:36vw;height:30vh;border-radius:50%;background:#0d291f;filter:blur(12px);opacity:.6}.intro-canopy i:nth-child(1){left:-10%}.intro-canopy i:nth-child(2){left:15%;top:-17%}.intro-canopy i:nth-child(3){right:-10%}.intro-canopy i:nth-child(4){right:20%;top:-16%}.intro-canopy i:nth-child(5){left:43%;top:-22%}.intro-fireflies b:nth-child(1){left:12%;top:25%}.intro-fireflies b:nth-child(2){left:82%;top:20%;animation-delay:-1s}.intro-fireflies b:nth-child(3){left:20%;top:76%;animation-delay:-2s}.intro-fireflies b:nth-child(4){right:17%;bottom:18%;animation-delay:-3s}.intro-fireflies b:nth-child(5){left:67%;top:72%;animation-delay:-4s}.intro-fireflies b:nth-child(6){left:42%;top:14%;animation-delay:-2.5s}.intro-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.forest-intro .adventure-quiet{border-color:#b6cbb3}
/* Focus overlay retained as a distinct quiet glade. */
.focus-screen{position:fixed;inset:0;z-index:900;background:radial-gradient(ellipse at 50% 15%,#547a5c,#1d382b 72%);color:#fff;display:grid;place-items:center;padding:22px}.focus-screen[hidden]{display:none}.focus-inner{width:min(700px,100%);text-align:center}.focus-cap{width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 12px 20px #0c211a77)}.focus-eyebrow{letter-spacing:.18em;text-transform:uppercase;color:#c5d8bd;font-size:.78rem}.focus-task{font-size:clamp(1.4rem,4vw,2.3rem);margin:10px 0}.focus-clock{font-size:clamp(4rem,13vw,7rem);font-weight:800;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.focus-sub{color:#d5e2d0}.focus-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px 0}.focus-actions button{border-radius:999px;padding:12px 20px;border:1px solid #b6cdb2;background:#e8d9b6;color:#213d2d;font-weight:800;cursor:pointer}.focus-actions button.secondary{background:transparent;color:#fff;border-color:#a6bea4}.focus-blocking{margin:24px auto 0;max-width:570px;text-align:left;padding:16px;border-radius:16px;background:#ffffff13;border:1px solid #ffffff2b}.focus-blocking h3{margin:0 0 8px}.focus-blocking p{color:#dbe7d7;font-size:.9rem;line-height:1.5}.focus-blocking .platform-row{display:flex;gap:10px;flex-wrap:wrap}.focus-blocking button{background:#e8d9b6;color:#263f30;border:0;border-radius:10px;padding:9px 12px;font-weight:700;cursor:pointer}.focus-blocking .muted{font-size:.78rem;color:#c4d4c0}
.system-block-card{border:1px solid #dce6d9;background:#f7faf5;border-radius:18px;padding:18px;margin-top:18px}.system-block-card h3{margin-top:0}.system-block-card .block-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.system-block-card article{background:#fff;border:1px solid #e0e8de;border-radius:14px;padding:14px}.system-block-card p,.system-block-card li{font-size:.9rem;color:#647369;line-height:1.5}.system-block-card button{border:0;border-radius:999px;background:#315b43;color:white;padding:10px 14px;font-weight:700;cursor:pointer}
body.focus-active{overflow:hidden}body.focus-active .adventure-top,body.focus-active main,body.focus-active #voice-dock{filter:blur(3px);pointer-events:none}
@media(max-width:950px){.adventure-top{flex-wrap:wrap;gap:8px}.adventure-nav{order:4;flex-basis:100%;justify-content:flex-start;padding:2px 0 5px}.adventure-nav-dot em{display:none}.adventure-nav-dot{padding:6px}.adventure-help{margin-left:auto}}
@media(max-width:650px){.adventure-scene{padding:14px;min-height:calc(100vh - 96px)}.scene-heading{align-items:flex-start}.scene-heading-icon{flex-basis:44px;width:44px;height:44px;border-radius:14px}.scene-heading h1{font-size:1.85rem}.scene-foot{flex-wrap:wrap}.scene-step-label{order:3;flex-basis:100%;text-align:center}.scene-foot button{flex:1;padding:11px 12px}.scene-body>.feature-section,.scene-body>.decision-hub,.scene-body>.side-card,.scene-body>.mascot-card{border-radius:18px}.system-block-card .block-columns{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
