.case-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;flex:1;min-height:0}.case-card{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:19px;overflow:hidden;background:#f4f7ef}.case-card img{width:90%;height:65%;object-fit:contain;min-height:0}.case-card small{font-size:13px;margin-top:8px}.chapter-tabs{display:flex;gap:7px;margin:4px 0 12px}.chapter-tabs button{flex:1;font-size:12px;padding:7px}.chapter-tabs [aria-current]{background:#1f7a45;color:white}.stage-wrap{flex:1;min-height:0;display:grid;place-items:center;background:#eaf1e9;border-radius:14px;overflow:hidden}.landscape{position:relative;width:100%;aspect-ratio:3.87;overflow:hidden;background-image:url('references/extinction-habitats-v1.png');background-size:100% 219%;background-position:50% 6.1%}.landscape.seal{background-position:50% 100%}.animal{position:absolute;bottom:7%;left:40%;width:23%;height:84%;transform-origin:center bottom;filter:drop-shadow(0 3px 2px #0003)}.animal svg{width:100%;height:100%;overflow:visible}.seal .animal{left:24%;bottom:7%;width:28%;height:48%}.animal.secondary{left:63%;width:16%;height:59%;bottom:7%;filter:brightness(.86)}.seal .animal.secondary{left:57%;width:19%;height:34%;bottom:21%}.stage-note{font-size:12px;color:#56705e;margin:10px 0 0}.empty-label{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:25px;font-weight:750;text-shadow:0 2px 5px #000;background:#18302333}.choices{display:grid;gap:12px;width:100%;max-width:680px;margin:auto}.choices button{text-align:left;font-size:16px;padding:18px}.choices .correct{background:#e1f3e5;border:2px solid #1f7a45}.feedback{min-height:48px;padding:12px;color:#155b33;font-weight:600}.summary-box{margin:auto;max-width:650px}.summary-box p{font-size:18px}.source{font-size:11px;color:#496a56}.guide-body h2{font-size:22px}.guide-body p{font-size:15px}.question-title{font-size:24px;margin:15px 0}.status-tag{font-size:12px;color:#155b33}.chapter-tabs button:disabled{opacity:.5}@media(max-height:750px){.guide-body p{font-size:13px}.guide-body h2{font-size:19px;margin-bottom:10px}.choices button{padding:12px;font-size:14px}.question-title{font-size:21px}.chapter-tabs{margin-bottom:8px}.stage-note{font-size:11px}}@media(max-width:650px){.case-grid{gap:8px}.case-card{font-size:14px}.case-card small{font-size:11px}.chapter-tabs button{font-size:10px;padding:4px}.question-title{font-size:18px}.choices{gap:6px}.choices button{padding:8px;font-size:12px}.feedback{font-size:12px;min-height:30px;padding:5px}.summary-box p{font-size:14px}}
.forest-scene{position:relative;width:100%;aspect-ratio:4.6;background-image:url('references/forest-conversion-v1.png');background-size:100% 307%;background-position:center top;overflow:hidden}.forest-1{background-position:center 50%}.forest-2{background-position:center bottom}.forest-actor{position:absolute;bottom:2%;height:68%;width:14%;left:9%;filter:drop-shadow(0 2px 1px #0003)}.forest-actor svg{width:100%;height:100%;overflow:visible}.forest-actor.hornbill{left:33%;bottom:37%;height:40%;width:10%}.forest-topics{display:flex;gap:8px;margin-top:12px}.forest-topics button{flex:1}.forest-topics .visited{background:#dff1e4;border:2px solid #1f7a45}@media(max-width:650px){.forest-topics button{font-size:11px;padding:5px}.forest-topics{gap:4px}}
.visited{background:#e1f2e7!important;border:2px solid #1f7a45!important}.risk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;flex:1;min-height:0}.risk-card{display:flex;flex-direction:column;justify-content:center;gap:8px}.risk-card strong{font-size:36px}.risk-card span{font-size:18px}.threat-chart{margin:auto 10px;width:calc(100% - 20px)}.chart-axis{display:flex;justify-content:space-between;margin-left:125px;font-size:12px;padding-right:20px}.chart-row{display:flex;align-items:center;width:100%;gap:10px;border:0;border-radius:5px;background:transparent;padding:9px 20px 9px 0}.chart-label{width:115px;text-align:left;flex-shrink:0}.chart-track{position:relative;display:block;flex:1;height:32px;background:repeating-linear-gradient(to right,#d4e4db 0,#d4e4db 1px,transparent 1px,transparent 25%);border-left:1px solid #526459}.chart-fill{display:block;height:100%;background:#337b53;border-radius:0 4px 4px 0}.chart-track strong{position:absolute;top:4px;margin-left:7px;font-size:14px}.axis-title{text-align:center;margin:8px 0 0 125px;font-size:13px}.driver-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:auto 0}.driver-grid button{padding:22px}.driver-detail{background:#eaf5ed;padding:18px;border-radius:12px;min-height:80px;font-size:15px}@media(max-width:650px){.risk-grid{gap:6px}.risk-card strong{font-size:23px}.risk-card span{font-size:12px}.chart-label{width:75px;font-size:11px}.chart-axis{margin-left:85px;font-size:10px}.axis-title{margin-left:85px;font-size:11px}.chart-row{padding-top:4px;padding-bottom:4px}.chart-track{height:24px}.chart-track strong{font-size:11px}.driver-grid{gap:6px}.driver-grid button{padding:8px;font-size:12px}.driver-detail{font-size:12px;min-height:45px;padding:8px}}

/* Keep the habitat in the full stage, with an undistorted, cropped backdrop. */
.brand-copy{min-width:0}.module-eyebrow{margin:0 0 3px;color:#187840;font-size:12px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}.brand-copy h1{margin:0;font-size:25px;line-height:1.15}
.stage-wrap{display:flex;align-items:stretch}.landscape,.forest-scene{height:100%;min-height:0;aspect-ratio:auto;flex:1}.landscape{background-size:auto 219%}.forest-scene{background-size:auto 307%}
.forest-actor.orangutan{width:24%;left:12%;height:78%}.forest-actor.hornbill{width:16%;height:42%;left:42%;bottom:35%}
#scene:has(>.question-title){justify-content:center;gap:18px;padding:clamp(18px,3vw,36px)}
#scene>.question-title{width:100%;max-width:680px;align-self:center;margin:0;font-size:clamp(21px,2.2vw,28px);line-height:1.3}
#scene>.question-title+.choices{margin:0 auto;flex:none}.choices button{border-radius:12px;line-height:1.45;min-height:48px}.feedback{width:100%;max-width:680px;align-self:center;box-sizing:border-box;padding:0;min-height:44px}
@media(max-width:700px){.module-eyebrow{font-size:9px;letter-spacing:.5px}.brand-copy h1{font-size:18px}#scene:has(>.question-title){gap:14px;padding:16px}.choices button{font-size:14px}.forest-actor.orangutan{width:30%}}

/* Match each actor box to its artwork so feet cannot float in SVG letterboxing. */
.landscape .animal{width:23%;height:auto;aspect-ratio:700 / 575;bottom:6%;left:18%}
.landscape .animal.secondary{width:16%;height:auto;bottom:17%;left:56%}
.landscape.seal .animal{width:30%;height:auto;aspect-ratio:846 / 315;bottom:8%;left:20%}
.landscape.seal .animal.secondary{width:20%;height:auto;bottom:24%;left:57%}
.animal svg,.forest-actor svg{display:block}
.forest-scene .forest-actor.orangutan{width:16%;height:auto;aspect-ratio:675 / 870;left:13%;bottom:5%}
.forest-scene .forest-actor.hornbill{width:8%;height:auto;aspect-ratio:625 / 880;left:53%;bottom:33%}
.forest-perches{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
