:root{font:16px/1.5 Inter,system-ui,-apple-system,sans-serif;color:#1f2933;background:#edf1ee;--green:#1f7a45;--line:#d4e4db}*{box-sizing:border-box}body{margin:0;padding:12px}.module-shell{height:calc(100dvh - 24px);max-width:1700px;margin:auto;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#f1f8f4;display:flex;flex-direction:column}header{background:white;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--line);gap:12px}.brand,.tools{display:flex;align-items:center;gap:12px}.brand img{width:48px;height:58px;object-fit:contain}h1{font-size:clamp(19px,2vw,27px);margin:0}h2{font-size:25px;line-height:1.2;margin:0 0 16px}h3{font-size:20px;margin:0 0 12px}p{margin:0 0 16px}button{font:inherit;font-size:14px;min-height:44px;padding:10px 15px;border:1px solid #bed5c6;border-radius:12px;background:white;color:#155b33;cursor:pointer}button:hover:not(:disabled){background:#e5f3e9}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #d6a338;outline-offset:3px}.primary,nav [aria-current]{background:var(--green);color:white}.primary:hover:not(:disabled){background:#155b33}.badge{border:1px solid var(--line);padding:9px;border-radius:28px;font-weight:700;white-space:nowrap}nav{display:flex;gap:10px;padding:14px 24px 0}nav button{border-radius:28px;font-size:13px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;padding:18px 24px;flex:1;min-height:0}#scene{background:white;border:1px solid var(--line);border-radius:20px;padding:14px;min-height:0;display:flex;flex-direction:column;overflow:hidden}#guide{border:1px solid var(--line);border-radius:20px;background:white;overflow:auto}.guide-top{background:#eaf6ef;padding:18px 22px;font-size:13px;letter-spacing:2px;font-weight:800;color:#155b33}.guide-body{padding:22px}.goal{background:#eff7f2;border-radius:14px;padding:16px;font-size:14px}.eyebrow{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;font-weight:750;color:#267049}.scene-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.scene-heading h2{font-size:20px;margin:0}.scene-heading span{font-size:12px;color:#607269}.map{position:relative;flex:1;min-height:160px;background:#e4f1f3;border-radius:14px;overflow:hidden}.map svg{width:100%;height:100%;position:absolute;inset:0}.map-inner{position:absolute;width:100%;height:100%}.pin{position:absolute;transform:translate(-50%,-50%);font-size:12px;padding:8px 11px;box-shadow:0 4px 14px #244b3c25;border:2px solid #2a8051;max-width:190px;line-height:1.3}.pin:before{content:'●';color:#d89b2b;display:block;font-size:21px;line-height:1}.pin.visited{background:#e4f4e8}.pin small{display:block;color:#5a7062;margin-top:3px}.locations{display:flex;gap:8px;margin-top:10px}.locations button{flex:1;font-size:12px;padding:8px}.habitat{flex:1;min-height:0;position:relative;background:#eff6f0;border-radius:14px;overflow:hidden;display:grid;place-items:center}.habitat iframe{width:100%;aspect-ratio:16/9;max-height:100%;border:0;animation:arrive .55s ease-out}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.summary article{border-radius:12px;padding:12px;background:#eaf6ef;font-size:13px}.summary h3{font-size:15px;margin-bottom:6px}.summary p{margin:0}footer{background:white;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 24px}#progress{font-size:13px;font-weight:650;color:#155b33}dialog{border:1px solid var(--line);border-radius:20px;max-width:520px;padding:25px}dialog::backdrop{background:#173d2966}.module-shell:fullscreen{height:100dvh;max-width:none;border-radius:0}@keyframes arrive{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@media(max-height:780px){header{padding:10px 20px}.brand img{height:45px;width:40px}.workspace{padding:12px 20px;gap:16px}.guide-body{padding:16px}#guide p{font-size:14px;margin-bottom:12px}.guide-top{padding:12px 16px}h2{font-size:22px}footer{padding:9px 20px}.goal{padding:12px}nav{padding-top:10px}}@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr) 260px;gap:12px}nav{gap:5px;padding-left:16px;padding-right:16px}nav button{font-size:11px;padding:8px}footer{flex-wrap:wrap}#progress{font-size:12px}.tools{gap:6px}.pin{font-size:10px;max-width:140px}.summary{gap:5px}.summary article{padding:8px;font-size:11px}}@media(max-width:650px){body{padding:0}.module-shell{height:100dvh;border-radius:0}header{padding:8px}.brand{gap:6px}.brand img{width:28px}.brand h1{font-size:16px}.badge{display:none}#fullscreen{font-size:0}#fullscreen:after{content:'⛶';font-size:20px}nav{overflow-x:auto;flex-shrink:0}nav button{white-space:nowrap}.workspace{display:flex;flex-direction:column;padding:8px;gap:8px}#scene{flex:1;padding:8px;min-height:220px}#guide{max-height:35%;flex-shrink:0}.guide-top{display:none}.guide-body{padding:12px}.guide-body h2{font-size:18px;margin-bottom:8px}.guide-body p{font-size:13px}.goal{margin:0}.scene-heading h2{font-size:16px}.locations button{padding:5px;font-size:10px}.summary{margin-top:5px}.summary article{font-size:10px}.summary h3{font-size:11px}.pin{font-size:9px;padding:5px;max-width:105px}footer{padding:8px}footer button{font-size:11px;padding:7px}#progress{order:3;width:100%;text-align:center}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.habitat{container-type:size}.habitat iframe{width:min(100cqw,177.777cqh);height:min(56.25cqw,100cqh);max-height:none}.map.zooming{transition:transform .28s ease-in,opacity .28s ease-in;transform:scale(2.2);opacity:0}
.activity-tabs,.habitat-tabs{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}.activity-tabs button{font-size:12px;padding:6px 10px;min-height:34px}.activity-tabs [aria-current]{background:#1f7a45;color:white}.habitat-tabs button{flex:1;font-size:12px;padding:8px}.feature-list{display:grid;gap:6px;margin:12px 0}.feature-list button{font-size:12px;text-align:left;padding:7px 10px;min-height:34px}button[aria-pressed=true]{border:2px solid #1f7a45;background:#e4f3e8}.feedback{font-size:13px;color:#155b33;font-weight:650;margin:12px 0 0}.activity-question{font-size:21px;text-align:center;margin:8px 0 18px}.region-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;flex:1;min-height:0}.region-choice{display:flex;flex-direction:column;gap:8px;align-items:center;min-height:0;padding:12px}.region-choice strong{font-size:20px}.region-choice svg{width:100%;flex:1;min-height:0;max-height:310px}.region-choice span{font-size:13px}.classify{display:grid;gap:16px;align-content:center;flex:1}.classify button{display:flex;align-items:center;gap:18px;padding:22px;text-align:left;font-size:18px}.classify small{display:block;color:#51745c;font-size:14px;margin-top:8px}.example-icon{font-size:36px}.takeaways{padding-left:22px;font-size:14px}.takeaways li{margin-bottom:12px}@media(max-height:780px){.feature-list{gap:4px;margin:8px 0}.feature-list button{min-height:30px;padding:5px 8px}.feedback{font-size:12px}.activity-tabs{margin-bottom:8px}.takeaways{font-size:13px}.classify{gap:10px}.classify button{padding:14px;font-size:16px}}@media(max-width:650px){.activity-tabs button{font-size:10px;padding:4px}.activity-question{font-size:15px;margin:5px}.region-choice{padding:6px}.region-choice strong{font-size:14px}.region-choice span{font-size:10px}.classify{gap:6px}.classify button{font-size:12px;padding:8px}.example-icon{font-size:24px}.feature-list{grid-template-columns:1fr 1fr}}

.region-choice>span{min-height:40px}.region-choice svg{flex:1;min-height:0}
.sample-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;flex:1;min-height:0}.sample-card{display:flex;flex-direction:column;justify-content:space-evenly;gap:8px;padding:14px;min-height:0;background:#fbfaf4}.sample-title{display:grid;gap:4px;text-align:center}.sample-title strong{font-size:21px}.sample-title span,.sample-select{font-size:12px}.sample-row{display:grid;grid-template-columns:80px minmax(0,1fr) 24px;align-items:center;gap:8px;text-align:left}.sample-row img{width:80px;height:64px;object-fit:contain}.sample-row span{font-size:13px}.sample-row b{font-size:20px}.count-dots{display:grid;grid-template-columns:repeat(6,12px);gap:4px;margin-top:6px}.count-dots i{width:12px;height:12px;border:1px solid #a9c5b2;border-radius:50%;background:white}.count-dots .filled{background:#287d4c;border-color:#287d4c}.sample-card.correct{border:2px solid #1f7a45;background:#eaf6ef}.sample-card.incorrect{border:2px solid #a55b26;background:#fff7ed}.feedback.retry{color:#8c4b20}.sample-note{font-size:11px;text-align:center;color:#526459;margin:8px 0 0}.quiz-index{display:flex;gap:8px;justify-content:center;margin:6px}.next-question{align-self:flex-end}.species-answers button{justify-content:center;text-align:center}@media(max-width:900px){.sample-row{grid-template-columns:56px minmax(0,1fr) 18px;gap:4px}.sample-row img{width:56px;height:50px}.count-dots{grid-template-columns:repeat(6,9px);gap:3px}.count-dots i{width:9px;height:9px}.sample-title span{font-size:11px}}@media(max-width:650px){.sample-card{padding:5px;gap:3px}.sample-row img{height:36px;width:40px}.sample-row{grid-template-columns:40px 1fr 14px}.sample-title strong{font-size:15px}.sample-row span{font-size:10px}.sample-row b{font-size:14px}.sample-select,.sample-note{font-size:9px}.count-dots{grid-template-columns:repeat(6,6px);gap:2px}.count-dots i{width:6px;height:6px}.quiz-index button{min-height:28px;padding:4px 10px}}

.sample-card.incorrect:hover:not(:disabled){background:#fff7ed}.sample-card.correct:hover:not(:disabled){background:#eaf6ef}
.allele{display:inline-grid;place-items:center;width:36px;height:36px;border:2px solid #516a5b;border-radius:50%;font-size:13px;font-weight:750;margin:3px;color:#163528}.allele-A1{background:#bfe2cc}.allele-A2{background:#f4d496}.allele-A3{background:#c7c3e8}.allele-A4{background:#a9d8ed}.inheritance{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;background:#f5f8f3;border-radius:14px}.parent-pair{display:flex;justify-content:center;gap:70px;width:100%;text-align:center}.parent-pair h3{font-size:17px;margin:0}.parent-pair img{width:160px;height:85px;object-fit:contain}.parent-pair button{padding:1px 8px;margin:0 4px}.inherit-arrow{font-size:24px;color:#35784f}.offspring{display:flex;align-items:center;gap:24px}.offspring img{width:120px;height:75px;object-fit:contain}.offspring span{font-size:13px}.gene-population{display:flex;flex-direction:column;justify-content:space-evenly;gap:8px;min-height:0;background:#f8faf5}.gene-population strong{font-size:20px}.gene-population>span{font-size:12px}.panther-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.panther-grid img{width:100%;height:65px;object-fit:contain}.conservation-view{flex:1;min-height:0;position:relative;overflow:hidden;border-radius:14px}.conservation-view>img{width:100%;height:100%;object-fit:cover}.conservation-card{position:absolute;bottom:18px;left:7%;right:7%;background:#fffffff2;border:1px solid #bed5c6;border-radius:14px;padding:16px;text-align:center}.conservation-card h3{font-size:20px;margin-bottom:8px}.conservation-card p{margin:0}.gene-flow{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px}.gene-flow>span:last-child{width:100%;font-size:14px}.source-link a{font-size:12px;color:#236d40}@media(max-width:650px){.parent-pair{gap:12px}.parent-pair img{width:100px;height:50px}.parent-pair h3{font-size:13px}.allele{width:25px;height:25px;font-size:10px;margin:2px}.offspring img{width:75px;height:45px}.panther-grid{gap:4px}.panther-grid img{height:40px}.gene-population{padding:5px}.gene-population strong{font-size:15px}.conservation-card{padding:8px;bottom:8px}.conservation-card h3{font-size:14px}.gene-flow>span:last-child{font-size:11px}}

.map .world-map{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.classify button:focus-visible{outline:3px solid #c69235;outline-offset:3px}.classify button:not([aria-pressed="true"]){box-shadow:none}.pin{max-width:155px}.pin[data-site="reef"]{transform:translate(-85%,-50%)}
.pin[data-site="reef"]{min-width:120px}@media(max-width:650px){.pin[data-site="reef"]{min-width:90px}}

#pause[hidden]{display:none}.module-completion-card{position:relative;box-sizing:border-box;width:min(560px,calc(100% - 32px));max-height:90dvh;overflow:auto;text-align:center;padding:38px 32px;border:1px solid #a8cdb7;border-radius:24px;box-shadow:0 24px 80px #143e2933;color:#244b36}.module-completion-card::backdrop{background:#143b2c88;backdrop-filter:blur(4px)}.completion-close{position:absolute;right:14px;top:14px;border:0;font-size:26px;line-height:1;padding:4px 10px;background:transparent}.completion-success{margin:0 auto 18px;width:76px;height:76px;display:grid;place-items:center;border-radius:50%;background:#e3f3e6;color:#197541;font-size:48px}.module-completion-card h2{font-size:28px}.module-completion-card>p{line-height:1.5}.completion-progress{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;text-align:left;padding:18px;background:#eff6ef;border-radius:14px;margin:24px 0}.completion-track{width:100%;height:9px;border-radius:10px;background:#d6e7d9;overflow:hidden}.completion-track>div{width:100%;height:100%;background:#227f48}.completion-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.completion-actions a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:12px;padding:12px 18px;min-height:44px;box-sizing:border-box;font-weight:650}
