/* Stormwatch The Web of Life: coastal teal, living green, and clear evidence. */
:root{--eco-ink:#102e2d;--eco-green:#84e0b1;--eco-gold:#ffe09b}
body{background:#092f33}.explore-header,.explore-footer{background:#103c3d}.explore-brand b{color:#acedd4}.explore-goal{border:2px solid #ffe09b;background:#164a44f5}.explore-goal small{color:#ffe09b}
.journey-home-dialog .journey-home{background-position:center}.journey-home-copy h2{max-width:13ch}
.welcome-dialog .dialog-body{background-image:linear-gradient(90deg,#092f36ed,#092f36b8),url(assets/eco-estuary.webp)}
.ecosystem-dialog{max-width:1100px;width:calc(100vw - 24px)}.ecosystem-dialog .science-work{grid-template-columns:1.06fr 1fr;gap:18px}.ecosystem-dialog .science-model-panel{background:#123f40;padding:12px}.eco-scene{height:100px;background-size:cover;background-position:50% 60%;border-radius:9px;margin-bottom:8px}.eco-scene.compact{height:60px}
.ecosystem-dialog .science-evidence{font-size:16px!important;line-height:1.4!important;margin:6px 0 10px!important}.ecosystem-dialog .science-heading h2{font-size:26px}.ecosystem-dialog .science-instructions{font-size:16px}.ecosystem-dialog .science-question-panel h3{font-size:21px;line-height:1.35}.ecosystem-dialog .science-choice{font-size:16px;min-height:45px;padding:8px 12px}
.eco-step-title{font-size:15px!important;font-weight:750;color:#ffe09b;margin:8px 0!important}.eco-table{border-collapse:collapse;width:100%;font:15px/1.3 system-ui}.eco-table th,.eco-table td{text-align:left;padding:7px;border:1px solid #77b8a75c}.eco-table th{background:#195950;color:#f0ffea}.eco-model-options,.eco-token-bank{display:flex;flex-wrap:wrap;gap:7px}.eco-token{background:#1e5750;border:1px solid #90cbbb;color:#f1fff6;border-radius:9px;font:15px/1.25 system-ui;padding:9px 11px;min-height:44px;cursor:pointer}.eco-token[aria-pressed=true],.eco-journal-tabs [aria-pressed=true]{background:#ffe09b;color:#133e35;border-color:#fff2c9}.eco-token:disabled{opacity:.45;cursor:default}
.eco-sort{display:grid;gap:8px}.eco-sort-card{display:grid;grid-template-columns:1fr 155px;gap:3px 10px;background:#174a45;border:1px solid #76bfa366;padding:9px;border-radius:9px}.eco-sort-card strong{font-size:16px}.eco-sort-card>span{font:14px/1.3 system-ui;grid-column:1}.eco-sort-card select{grid-column:2;grid-row:1/3;align-self:center;width:100%;min-height:44px;border:1px solid #9eccba;border-radius:8px;padding:6px;font:15px system-ui;background:#fff9e8;color:#153c32}
.eco-chain{display:flex;gap:7px;align-items:center;margin:10px 0;min-height:62px}.eco-chain>b{color:#ffe09b;font-size:20px}.eco-slot{flex:1;text-align:center;padding:13px 5px;min-width:0;border:2px dashed #9ddac3;border-radius:9px;color:#c7e8da;font:16px system-ui}.eco-slot.filled{border-style:solid;background:#a8e0ae;color:#133c31;font-weight:750}.eco-web,.eco-pyramid{width:100%;height:170px;display:block;margin:4px 0}.eco-pyramid{height:185px}
.eco-checklist{padding:8px 12px;margin-top:10px;border:1px solid #6fafa477;border-radius:8px;background:#0b3539}.eco-checklist p{font:14px/1.3 system-ui!important;margin:4px 0!important;color:#ffe0a5}.eco-checklist .done{color:#a1eab8}.eco-task-help{font:17px/1.5 system-ui;color:#d5eee0}.eco-missing{outline:3px solid #ff777f;outline-offset:4px;border-radius:8px;animation:eco-shake 1s ease}.eco-missing:focus-within{outline-color:#ff777f}
@keyframes eco-shake{0%,100%{transform:translateX(0)}10%,30%,50%,70%,90%{transform:translateX(-4px)}20%,40%,60%,80%{transform:translateX(4px)}}
.eco-badge-list.training-cards{display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0}.eco-badge-list .training-card{display:grid;grid-template-columns:48px 1fr 74px;align-items:center;gap:12px;padding:9px 13px;min-height:70px;background:#164b43;text-align:left}.eco-badge-list .training-card:disabled{opacity:.65}.eco-badge-list .training-card-copy{padding:0;display:grid;gap:3px}.eco-badge-list .training-card-copy b{font-size:17px}.eco-badge-list .training-card-copy span,.eco-badge-list .training-card-copy small{font-size:14px}.eco-badge{width:44px;height:44px;border:2px solid #90c9b1;border-radius:50%;display:grid;place-items:center;font:800 21px system-ui;color:#a5cfbd;background:#0c3737}.eco-badge.earned{background:#ffe09b;border-color:#fff2c9;color:#244b32;box-shadow:0 0 0 4px #ffe09b18}.eco-badge-action{font-size:14px;color:#ffe09b}.badge-tracker{border:2px solid #f3d88e!important;background:#194e40!important;color:#fff0b1!important}
.eco-journal-tabs{display:flex;flex-wrap:wrap;gap:8px}.eco-journal-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px;align-items:start}.eco-journal-layout img{width:100%;border-radius:12px}.eco-journal-layout h3{font-size:23px}.eco-journal-layout p{font-size:16px;line-height:1.5}.habitat-dialog{max-width:1000px}
/* Match evidence and question sizing; the battle is still the main event. */
.battle-evidence,.battle-question{font-size:21px!important;line-height:1.32!important}.battle-evidence{padding:8px 11px}.question-skill{font-size:14px!important}.battle-choice{font-size:16px!important}.showing-feedback .battle-evidence{display:none}
.ecosystem-dialog .model-caption{font-size:14px!important}.ecosystem-dialog .puzzle-feedback p{font-size:16px!important;margin:7px 0}.ecosystem-dialog .puzzle-feedback{padding:10px}.ecosystem-dialog button:focus-visible,.ecosystem-dialog select:focus-visible{outline:3px solid #fff0a3;outline-offset:3px}
@media(min-width:700px) and (max-height:760px){.ecosystem-dialog .dialog-body{padding:8px 16px}.ecosystem-dialog .science-heading h2{font-size:24px}.ecosystem-dialog .science-work{margin-top:7px;gap:14px}.eco-scene{height:64px}.eco-scene.compact{height:40px}.eco-web,.eco-pyramid{height:138px}.eco-sort-card{padding:7px}.ecosystem-dialog .science-model-panel{padding:9px}.eco-checklist{margin-top:7px;padding:5px 9px}.ecosystem-dialog .science-instructions{margin:5px 0}.eco-badge-list .training-card{min-height:66px}.training-dialog .dialog-body>p{margin:6px 0}}
@media(max-width:699px){.ecosystem-dialog .science-work,.eco-journal-layout{grid-template-columns:1fr}.eco-scene{height:90px}.eco-sort-card{grid-template-columns:1fr 140px}.eco-badge-list .training-card{grid-template-columns:40px 1fr;gap:8px}.eco-badge-action{display:none}.eco-badge{width:36px;height:36px}.eco-badge-list .training-card-copy b{font-size:16px}.battle-evidence,.battle-question{font-size:19px!important}}
@media(prefers-reduced-motion:reduce){.eco-missing{animation:none}}
/* Ecosystems 2026: one task beside one readable piece of evidence. */
.ecosystem-dialog .dialog-body{display:block;padding:8px 18px 14px}
.ecosystem-dialog .science-heading h2{font-size:26px;margin:4px 0}
.ecosystem-dialog .science-heading .section-readers{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 0}
.ecosystem-dialog .science-work{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:12px}
.ecosystem-dialog .science-evidence{font-size:17px!important;line-height:1.4!important;margin:0 0 12px!important}
.eco-scene-figure{margin:0}.eco-scene-figure img{display:block;width:100%;aspect-ratio:2/1;height:auto;object-fit:contain;border-radius:8px}
.eco-scene-figure figcaption{font:13px/1.4 system-ui;color:#c3ddd0;margin-top:7px}
.ecosystem-dialog .science-question-panel h3{font-size:20px;line-height:1.35;margin-bottom:10px}
.ecosystem-dialog .science-choice{font-size:16px;line-height:1.3;min-height:46px;padding:9px 12px}
.ecosystem-dialog .science-choices{margin-top:0;gap:7px}
.eco-evidence-model .eco-web,.eco-evidence-model .eco-pyramid{height:auto;max-height:230px;margin:8px auto;overflow:visible}
.eco-table{font-size:16px;line-height:1.35}.eco-table caption{text-align:left;font-weight:700;color:#ffe09b;padding:4px 0 9px}.eco-table td,.eco-table th{padding:9px}
.eco-model-chain{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px 0}.eco-model-chain b{padding:10px;border:1px solid #9ed9bd;border-radius:9px;background:#19594e;font:600 17px system-ui}.eco-model-chain span{color:#ffe09b;font-size:24px}
.eco-change-tabs{display:flex;gap:8px;flex-wrap:wrap}.eco-change-tabs [aria-pressed=true]{background:#ffe09b;color:#153c32}.eco-change-state{padding-left:26px;margin:14px 0}.eco-change-state li{font:17px/1.4 system-ui;margin:12px 0;padding-left:3px}.eco-change-state[hidden]{display:none}
.ecosystem-dialog .eco-sort-card{grid-template-columns:minmax(0,1fr) 143px;padding:10px;gap:4px 10px}.eco-sort-card>span{font-size:15px}
.ecosystem-dialog .eco-checklist{padding:6px 10px;margin-top:9px}.ecosystem-dialog .eco-checklist p{font-size:15px!important}
.ecosystem-dialog .puzzle-feedback{margin-top:8px;padding:8px 10px}.ecosystem-dialog .puzzle-feedback p{font-size:16px!important;line-height:1.35!important;margin:0 0 6px}
.ecosystem-dialog .dialog-footer{padding:10px 18px}.ecosystem-dialog .puzzle-footer{gap:10px}
.battle-evidence,.battle-question{font-size:19px!important;line-height:1.32!important}
.eco-battle-model{margin:8px 0}.eco-battle-model .eco-table{font-size:15px}.eco-battle-model .eco-table th,.eco-battle-model .eco-table td{padding:5px 7px}.eco-battle-model .eco-table caption{padding:0 0 5px}.eco-battle-model .eco-model-chain{margin:10px 0}.eco-battle-model .eco-model-chain b{font-size:16px;padding:8px}.eco-battle-model .model-caption{font-size:13px!important}
.showing-feedback .eco-battle-model{display:none}
@media(min-width:700px) and (max-height:760px){.ecosystem-dialog .science-work{gap:14px;margin-top:9px}.ecosystem-dialog .science-heading h2{font-size:24px}.ecosystem-dialog .science-model-panel{padding:10px}.ecosystem-dialog .science-instructions{margin:4px 0}.ecosystem-dialog .science-evidence{font-size:16px!important;margin-bottom:10px!important}.ecosystem-dialog .science-question-panel h3{font-size:19px}.ecosystem-dialog .eco-sort-card{padding:8px}.eco-table td,.eco-table th{padding:7px}.battle-evidence,.battle-question{font-size:18px!important}}
@media(max-width:699px){.ecosystem-dialog .science-work{grid-template-columns:1fr}.ecosystem-dialog .eco-sort-card{grid-template-columns:minmax(0,1fr) 140px}.eco-scene-figure img{max-height:230px}.eco-model-chain{gap:5px}.eco-model-chain b{font-size:15px;padding:7px}.eco-table{font-size:15px}}
@media(prefers-reduced-motion:reduce){.eco-missing{animation:none}}
body.reduce-motion .eco-missing{animation:none}
