#act1:has(.forest-panel){background:#101715}
#act1:has(.forest-panel) .act1-film{background:#050907;overflow:hidden}
.forest-frame{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.forest-panel{color:#eef0e4;background:#17221c}
.forest-panel h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(1.65rem,3.6vw,3.75rem);line-height:1.03}
.forest-panel h2,.forest-panel h3{font-family:Georgia,serif;line-height:1.22}
.forest-panel button{margin:.25rem .35rem .25rem 0}
.forest-panel a{color:#d7e7ad}
.forest-shot-note{position:absolute;left:1rem;bottom:1rem;padding:.45rem .65rem;background:#0b140f;color:#e4ebd8}
.forest-dialogue{margin:0 0 .65rem;border-left:1px solid #708663;padding-left:.85rem}
.forest-dialogue p{margin:.14rem 0;line-height:1.42}
.forest-dialogue small,.forest-panel>small{color:#c6d49f;letter-spacing:.09em}
.forest-subtitle{font-family:Georgia,serif;font-style:italic;font-size:clamp(1.15rem,2vw,2rem)}
.forest-end{color:#d8e6ba;font-family:Georgia,serif;font-size:1.5rem}
.forest-route{min-height:230px;position:relative;background-size:cover;background-position:center 49%;border-radius:.4rem;background-color:#282e22}
.forest-route button{position:absolute;z-index:1;background:#16231e;color:#fff;border:1px solid #9fac87;box-shadow:0 3px 8px #0009}
.forest-route button[data-visited]::after{content:' ✓';color:#bed797}
.forest-paper{padding:clamp(.85rem,3vw,1.8rem);background:#eee9d6;color:#28332b;border:1px solid #c1b599;border-radius:.2rem;line-height:1.55}
.forest-paper a{color:#234828}
.forest-paper img{display:block;width:100%;max-height:220px;object-fit:cover}
.forest-paper button{background:#283d32;color:#fff}
.forest-paper button[aria-pressed="true"]{background:#f0d990;color:#17231a;border-color:#7c642c}
.forest-paper header{border-block:2px solid #736d5b;margin-bottom:1rem;padding:.75rem 0}
.forest-paper table{width:100%;border-collapse:collapse;margin:.7rem 0;font-size:.93rem}
.forest-paper th,.forest-paper td{padding:.42rem;text-align:left;border-bottom:1px solid #a49d8a;vertical-align:top}
.forest-paper th{font-weight:650}
.forest-paper .forest-map img{max-height:none;object-fit:contain}
.forest-notebook{background:repeating-linear-gradient(#f3edcd,#f3edcd 28px,#a9b9b5 29px,#f3edcd 30px);border-left:.35rem solid #976859;font-family:'Segoe Print','Comic Sans MS',cursive;font-size:clamp(1.03rem,2vw,1.25rem);line-height:30px}
.forest-notebook em{color:#7d2718}
.forest-knowledge{background:#213126;border-color:#65795b;color:#eef2e4}
.forest-knowledge a{color:#daedae}
.forest-knowledge details{margin:1rem 0}
.forest-diagram{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.45rem;margin:1rem 0}
.forest-diagram figure{margin:0;background:#15241c;border:1px solid #6c8064;border-radius:.3rem;overflow:hidden;color:#f1f2e9}
.forest-diagram figure img{aspect-ratio:4/3;object-fit:cover}
.forest-diagram figcaption{padding:.45rem;font-size:.86rem}
.forest-model{padding:.65rem .8rem;background:#131f18;border:1px solid #6c8064;border-radius:.4rem;margin:.85rem 0}
.forest-model label{display:grid;grid-template-columns:1fr minmax(90px,1fr) 3ch;align-items:center;gap:.35rem;margin:.5rem 0}
.forest-model input{width:100%;accent-color:#b3cf87}
.forest-model button{border:1px solid #8ea076;background:#253d2d}
.forest-bars{display:flex;height:1.35rem;overflow:hidden;border-radius:.25rem;background:#3e4b41;margin:.4rem 0}
.forest-bars span{display:grid;place-items:center;color:#101713;font-size:.8rem;min-width:0;overflow:hidden}
.forest-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:.3rem;align-items:end;height:108px;padding-top:4px}
.forest-counts div{display:flex;align-items:flex-end;justify-content:center;height:100%;background:#26382c}
.forest-counts span{width:100%;text-align:center;color:#101713}
.forest-money{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.forest-money p{padding:.55rem;background:#25392b;border-left:2px solid #b9cd9a;margin:.25rem 0}
@media (min-width:761px){
  #act1:has(.forest-intro){grid-template-columns:1fr;grid-template-rows:auto 1fr}
  #act1:has(.forest-intro) .act1-film,#act1 .forest-intro{grid-column:1;grid-row:2}
  #act1 .forest-intro{align-self:end;z-index:2;justify-self:start;max-width:min(62rem,90%);max-height:65%;background:linear-gradient(90deg,#101a13f2,#101a13ce 83%,transparent);border:0;padding:1.2rem 3rem 1.4rem 1.35rem}
  #act1 .forest-intro h1{max-width:15ch}
}
@media (max-width:760px){
  #act1:has(.forest-panel) .act1-film{min-height:0}
  .forest-model label{grid-template-columns:1fr minmax(62px,1fr) 3ch}
}
@media (prefers-reduced-motion:no-preference){
  #act1:not(.reduce-motion):has(.forest-intro) .forest-frame{animation:forest-return 10s ease-out both}
}
@keyframes forest-return{from{opacity:.78;transform:scale(1.045)}to{opacity:1;transform:scale(1)}}
.forest-map{margin-inline:0}
.forest-map-stack{position:relative}
.forest-map-stack svg{position:absolute;inset:0;width:100%;height:100%}
#act1:has(.forest-panel) .act1-film img{object-fit:cover;max-height:none}
#act1:has(.forest-panel) .act1-panel{overflow:auto}
@media (max-width:760px){
  #act1:has(.forest-panel) .act1-film img{height:clamp(140px,36dvh,300px);object-position:center 43%}
  #act1:has(.forest-intro) .act1-film:empty{height:26dvh}
}
.forest-route{min-height:0;background:none}
.forest-route img{width:100%;display:block;border-radius:.4rem}
.forest-route button{top:auto;bottom:auto;right:auto;transform:translate(-20%,-80%);max-width:45%;margin:0;font-size:.84rem}
.forest-intro.forest-black{background:#050907}
.forest-black>h1,.forest-black>small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.forest-paper{max-width:66rem;margin-inline:auto}
@media (max-width:420px){
  .forest-paper{padding:.65rem}
  .forest-paper table{font-size:.82rem}
  .forest-route button{font-size:.75rem;padding:.3rem .45rem}
}
