.activity-root{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}.anatomy-stage{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:16px;background:#eff7ed;border:1px solid #c8ddce;border-radius:20px;overflow:hidden}.activity-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;flex-shrink:0}.activity-actions button{padding:10px 15px}button:not(:disabled){cursor:pointer}button:focus-visible{outline:3px solid #dca137;outline-offset:3px}.animal-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;min-height:0;flex:1}.animal-card,.wing-comparison button{border:1px solid #abcbb4;border-radius:16px;background:#fffef9;color:#28543c;display:flex;flex-direction:column;align-items:center;min-height:0;font:inherit;padding:10px;gap:5px}.animal-card:hover{box-shadow:0 0 0 3px #bcdec4}.animal-card svg{width:100%;height:calc(100% - 50px);min-height:0}.animal-card span,.limb-comparison span,.wing-comparison span{font-size:13px}.limb-focus{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;gap:18px}.animal-context{width:36%;opacity:.8}.animal-context svg{width:100%}.bone-detail{height:100%;width:47%;animation:zoomLimb 1.4s ease both}.bone-detail svg{width:100%;height:100%}.zoom-arrow{font-size:35px;color:#43815b}.bone-key{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;flex-shrink:0}.bone-key button{font:inherit;font-size:12px;padding:8px;border:1px solid #abcbb4;border-radius:10px;background:white;color:#28543c;display:flex;gap:5px;align-items:center}.bone-key [aria-pressed=true]{box-shadow:0 0 0 2px #41845a}.bone-key i{width:12px;height:12px;border-radius:50%}.bone-active{filter:drop-shadow(0 0 5px #d4ac48)}.limb-comparison{display:grid;grid-template-columns:repeat(4,1fr);min-height:0;flex:1;gap:8px}.limb-comparison>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;background:#fffef9;border-radius:12px;padding:8px;min-height:0}.limb-comparison svg{width:100%;flex:1;min-height:0}.ancestry{display:flex;flex-direction:column;justify-content:center;height:100%;gap:20px}.ancestor{align-self:center;padding:16px;border:2px solid #5e956c;background:white;border-radius:12px;text-align:center;font-weight:600}.branches{display:grid;grid-template-columns:repeat(4,1fr);border-top:3px solid #719c7d;gap:8px;min-height:0}.branches.two{grid-template-columns:repeat(2,1fr)}.branches>div{text-align:center;display:flex;flex-direction:column;align-items:center;min-height:0}.branch-line{height:30px;min-height:30px;width:3px;background:#719c7d}.branches svg{width:100%;height:200px;min-height:0}.branches p{font-size:13px}.wing-comparison{display:grid;grid-template-columns:repeat(2,1fr);height:100%;gap:15px}.wing-comparison svg{width:100%;flex:1;min-height:0}.flying .wing-left{transform-origin:150px 140px;animation:flapL 1.2s ease-in-out infinite}.flying .wing-right{transform-origin:150px 140px;animation:flapR 1.2s ease-in-out infinite}.checkpoint{display:grid;gap:12px;align-content:center;flex:1;min-height:0}.checkpoint fieldset{border:1px solid #a6c5af;border-radius:12px;padding:12px}.checkpoint button{display:block;width:100%;margin-top:7px;padding:10px;text-align:left;font:inherit;background:white;color:#29543b;border:1px solid #adc9b5;border-radius:9px}.checkpoint .correct{background:#d8eddb;border-color:#317d47}@keyframes zoomLimb{from{opacity:0;transform:translateX(-110px) scale(.25)}to{opacity:1;transform:none}}@keyframes flapL{50%{transform:scaleX(.6) rotate(8deg)}}@keyframes flapR{50%{transform:scaleX(.6) rotate(-8deg)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important}}@media(max-width:750px){.anatomy-stage{padding:10px}.animal-card span{font-size:11px}.limb-comparison{gap:3px}.limb-comparison>div{padding:3px}.limb-comparison span{font-size:10px}.bone-key button{font-size:11px;padding:6px}.checkpoint button{font-size:13px}.branches svg{height:130px}.ancestor{font-size:14px}}
.pattern-origin{align-self:center;text-align:center;padding:12px 20px;border:2px solid #79a488;border-radius:12px;background:#fffef7;font-weight:650}.convergent-pair{display:grid;grid-template-columns:1fr 1fr;gap:24px;flex:1;min-height:0}.lineage{display:flex;flex-direction:column;align-items:center;min-height:0;border:1px solid #bfd4c3;border-radius:14px;overflow:hidden;padding:10px}.lineage-name{font-size:14px;font-weight:600}.descent-line{display:block;width:3px;height:30px;min-height:30px;background:#6b997c;animation:branchGrow 1.2s ease both;transform-origin:top}.animal-habitat{flex:1;min-height:0;width:100%;overflow:hidden}.animal-habitat svg{width:100%;height:100%}.land-habitat{background:linear-gradient(#f6f2df 72%,#c3c994 72%)}.ocean-habitat{background:linear-gradient(#dceff0,#94c2c9)}.animal-motion{animation:arriveLineage 2.6s ease both}.feature-list{display:flex;gap:8px;margin-top:10px}.feature-list button{border:2px solid #82ad8e;background:#fffef9;border-radius:10px;padding:10px;color:#28543c;font:inherit;box-shadow:0 0 8px #b7d5ab}.explored{background:#ddedd9!important;border-color:#358655!important}.divergent-branches{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;flex:1;min-height:0;border-top:3px solid #76a180}.divergent-branches button{display:flex;flex-direction:column;align-items:center;min-height:0;border:1px solid #aac6b3;border-radius:12px;background:#fffef9;font:inherit;color:#28543c;padding:8px;gap:7px}.divergent-branches button>span:last-child{font-size:12px}.morph-limb{flex:1;min-height:0;width:100%;animation:revealLimb 1.3s ease both}.morph-limb svg{width:100%;height:100%}.pattern-note{text-align:center;font-size:14px;color:#386249}@keyframes branchGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes arriveLineage{from{opacity:0;transform:translate(-50px,-30px) scale(.65)}to{opacity:1;transform:none}}@keyframes revealLimb{from{opacity:.2;transform:scale(.65)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.animal-motion,.morph-limb,.descent-line{animation:none}}
.animal-habitat.feature-0 svg{filter:drop-shadow(0 0 5px #e6c34d)}.animal-habitat.feature-1 .animal-motion{filter:drop-shadow(0 0 4px #eece58)}.morph-limb{position:relative}.ancestral-overlay,.descendant-overlay{position:absolute;inset:0}.ancestral-overlay{animation:ancestorFade 2.5s ease forwards}.descendant-overlay{animation:descendantForm 2.5s ease both}@keyframes ancestorFade{0%,20%{opacity:1}100%{opacity:0}}@keyframes descendantForm{0%,20%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}
.isolation-world{width:100%;flex:1;min-height:0}.isolation-timeline{display:flex;gap:6px;justify-content:center}.isolation-timeline button{padding:9px;border:1px solid #a1c0ab;background:white;border-radius:10px;color:#30553c}.isolation-timeline [aria-pressed=true]{background:#d0e7ce;border:2px solid #367747}.river-form{stroke-dasharray:700;stroke-dashoffset:700;animation:riverForm 2.5s ease forwards}.river-current,.flow-route{animation:waterFlow 3s linear infinite}.beetle-roam{animation:beetleRoam 4s ease-in-out infinite alternate}.crossing-beetle{animation:crossHabitat 5s ease-in-out infinite alternate}.courtship-signal{animation:signalPulse 2s ease-in-out infinite}.congo-layout{display:flex;align-items:center;gap:12px;flex:1;min-height:0}.congo-layout>svg{width:74%;height:100%;min-height:0}.ape-card{width:26%;text-align:center}.ape-card svg{width:100%}.map-hint{padding:12px;color:#476a50}.map-targets [role=button]{cursor:pointer;outline:none}.map-targets rect{fill:transparent;stroke:#497b52;stroke-width:3;stroke-dasharray:8 4}.map-targets [role=button]:hover rect,.map-targets [role=button]:focus rect{fill:#fff8;stroke:#24623b;stroke-dasharray:none}.map-targets text{font-size:18px;fill:#245775;pointer-events:none}.spec-check{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;justify-content:center}.event-slots{margin:0;padding-left:32px;display:grid;gap:6px}.event-slots li{padding:10px;background:#fffef8;border:1px solid #b7cbb6;border-radius:8px;min-height:20px}.event-bank{display:grid;grid-template-columns:1fr 1fr;gap:8px}.spec-check button{font:inherit;padding:10px;border:1px solid #aac6b1;border-radius:9px;background:white;color:#30563d}.spec-check fieldset{border:1px solid #abc6b1;border-radius:10px;display:grid;gap:6px}.spec-check p{margin:0;color:#326746}@keyframes riverForm{to{stroke-dashoffset:0}}@keyframes waterFlow{to{stroke-dashoffset:-72}}@keyframes beetleRoam{to{transform:translate(12px,8px) rotate(7deg)}}@keyframes crossHabitat{to{transform:translateX(170px)}}@keyframes signalPulse{50%{opacity:.2}}@media(prefers-reduced-motion:reduce){.river-form{stroke-dashoffset:0}.river-form,.river-current,.flow-route,.beetle-roam,.crossing-beetle,.courtship-signal{animation:none}}
.generation-new{animation:generationReveal 3s ease both}@keyframes generationReveal{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.generation-new{animation:none}}

.animal-context{opacity:1}.bone-detail{width:54%}.limb-focus{gap:10px}.animal-context{width:32%}.limb-envelope{pointer-events:none}.bone-detail svg text,.limb-comparison svg text{font-family:inherit}.limb-comparison svg text{font-size:10px}

/* Feature selection reveals anatomy, without replaying the scene entrance. */
.showing-feature .animal-motion,.showing-feature .descent-line{animation:none!important}.showing-feature .animal-habitat svg{filter:none!important}.feature-closeup{height:100%;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:0;background:#f9fcf8;border:1px solid #b5cdbd;border-radius:12px;padding:10px;box-sizing:border-box}.feature-closeup>svg{flex:1;min-height:0;width:100%;overflow:hidden}.feature-closeup>p{font-size:13px;line-height:1.4;margin:0;text-align:center;max-width:34em}.feature-closeup>small{font-size:11px;color:#536b5c}.feature-view-label{font-weight:700;color:#28583c;font-size:14px}.showing-feature .descent-line{height:12px;min-height:12px}.feature-list{flex-wrap:wrap;justify-content:center}.feature-list [aria-pressed=true]{border-color:#285b3c;background:#dcebdc;box-shadow:inset 0 0 0 1px #285b3c}.showing-feature .animal-habitat{background:none;overflow:hidden}.showing-feature .lineage{background:#edf5e9}.showing-feature .lineage-name{font-size:12px}@media(max-height:750px){.feature-closeup{gap:4px;padding:7px}.feature-closeup>p{font-size:12px}.feature-list{margin-top:6px}.feature-list button{padding:8px}}

.river-established{stroke-dasharray:none;stroke-dashoffset:0;animation:none}.spec-check-stage{overflow:auto}.spec-check{width:100%;box-sizing:border-box;min-width:0;justify-content:flex-start;gap:10px}.spec-check>*{min-width:0;box-sizing:border-box}.event-bank{grid-template-columns:repeat(2,minmax(0,1fr))}.spec-check button{white-space:normal;overflow-wrap:anywhere;min-width:0;line-height:1.35;text-align:left;font-size:14px}.event-slots{font-size:14px}.event-slots li{padding:9px}.spec-check fieldset{margin:0;min-width:0}.map-targets rect{fill:#fff;fill-opacity:.84;stroke-dasharray:none;stroke-width:1.5}.map-targets text{font-size:16px}.ape-card svg{max-height:280px}.congo-layout{min-width:0}.ape-card strong{font-size:14px;display:block}.spec-check p{font-size:13px}@media(max-width:700px){.event-bank{grid-template-columns:1fr}.spec-check button{font-size:12px}}

.event-slots li{padding:0;border:0;background:none}.spec-check .event-drop{width:100%;min-height:48px;border:2px dashed #91b29d;background:#f9fcf8}.spec-check .event-drop.filled{border:1px solid #7ba48a;background:#e4efdf}.spec-check .event-drop.drag-over{background:#d7e9d6;border-color:#287944;box-shadow:inset 0 0 0 2px #287944}.event-card{cursor:grab;display:flex;gap:8px;align-items:center}.event-card>span{font-size:23px;color:#597d65}.event-card.dragging{opacity:.4}.spec-check .selected-event{outline:3px solid #c09238;outline-offset:1px}.event-card:disabled{opacity:.38;cursor:default}.drag-instructions{font-weight:600;margin:0}.event-card:active{cursor:grabbing}.event-slots{gap:8px}
