.species-editor summary{cursor:pointer;font-size:1.1rem;font-weight:650}.species-editor[open] summary{margin-bottom:15px}.species-editor .field{margin:10px 0}.creature-preview{width:100%;height:auto;border-radius:10px;margin-bottom:12px}.trait-flags{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.trait-flags label{display:flex;align-items:center;gap:7px;font-size:.85rem}.gene-row{display:flex;gap:10px;align-items:center}.gene-row output{min-width:30px}.species-editor .accent{margin-top:15px;width:100%}.inspector{margin-top:15px;min-height:160px}.family-links{display:flex;gap:7px;flex-wrap:wrap}.family-links button{font-size:.85rem}.species-archive{margin-top:18px}.toolbar{margin-bottom:15px}.toolbar .badge{flex-basis:100%;padding:10px}.stage canvas{aspect-ratio:1000/640}.species-archive .cards{margin-top:15px}@media(max-width:820px){.split.reverse{display:flex;flex-direction:column}.species-editor{width:100%}.split.reverse>div{width:100%}.metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.metric span{font-size:.65rem}.metric strong{font-size:1rem}.species-editor:not([open]){padding:12px}.toolbar .field{max-width:48%}.stage canvas{height:auto}}

body{background:#0c211f;overflow:hidden}.ecology-world{height:100dvh;max-width:none;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;padding:10px;gap:6px}.ecology-header{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#173d35;border:1px solid #73987a;border-radius:13px;padding:8px 14px}.ecology-header h1{font:700 1.4rem Georgia;margin:0}.ecology-header small{font-size:.75rem;letter-spacing:.12em;color:#c6d19d}.ecology-header button{min-height:40px;background:#2d5344;border-color:#8ca777}.ecology-world>.metrics{display:flex;justify-content:center;gap:20px;margin:0}.ecology-world .metric{border:0;background:none;padding:3px 7px;flex-direction:row;align-items:center;gap:9px}.ecology-world .metric strong{font-size:1.05rem;color:#cfe7a6}.ecology-world .toolbar{margin:0;gap:5px;justify-content:center}.ecology-world .toolbar .field{flex-direction:row;align-items:center}.ecology-world .toolbar .field>span{display:none}.ecology-world .toolbar button,.ecology-world .toolbar select{min-height:35px;padding:6px 9px;font-size:.8rem}.ecology-world .toolbar .badge{display:none}.ecology-world>.split.reverse{display:grid;grid-template-columns:240px minmax(0,1fr);gap:10px;min-height:0;align-items:stretch}.species-editor{height:100%;overflow:auto;padding:10px!important;background:#163c30!important;border-color:#779472!important}.species-editor summary{font:700 1.15rem Georgia}.creature-preview{height:110px;object-fit:contain;background:radial-gradient(ellipse,#62835f,#183d31)}.anatomy-group h3{font-size:.9rem;margin:13px 0 5px}.anatomy-choices{display:flex;gap:4px;overflow:auto}.anatomy-choices button{min-width:60px;flex:1;padding:3px;font-size:.75rem;border-color:#668f6a}.anatomy-choices svg{width:100%;height:48px}.anatomy-choices span{display:block}.species-editor .field{margin:7px 0}.species-editor .trait-flags{gap:3px}.species-editor .trait-flags label{font-size:.75rem}.species-editor .field>span{font-size:.75rem}.species-editor .gene-row input{min-height:20px}.species-editor>.field{max-height:30px}.ecology-world>.split.reverse>div{min-height:0;position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto}.ecology-world .stage{min-height:0;border-color:#88a875;background:#173d31}.ecology-world .stage canvas{height:100%;width:100%;object-fit:contain;aspect-ratio:auto}.ecology-world .inspector{margin-top:6px;max-height:145px;overflow:auto;background:#1b3e30;border-color:#76966b;padding:9px}.inspector h2{font-size:.9rem;display:none}.inspector h3{font-size:.95rem;margin:0 0 5px;color:#deebaa}.inspector p{font-size:.8rem;margin:5px 0}.inspector>.mini{display:none}.family-links button{min-height:30px;font-size:.7rem;padding:5px}.ecology-world>.species-archive{display:none}.ecology-status{min-height:22px;color:#e1e5a4;margin:0;text-align:center;font-size:.85rem}.world-dialog{background:#193b30;border-color:#91aa74;width:min(1000px,94vw);color:#eff2d1}.world-dialog>.actions{justify-content:space-between}.evolution-paths{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.evolution-paths article,.species-entry{border:1px solid #789467;border-radius:12px;background:#2c513c;padding:12px;text-align:center}.evolution-paths svg{width:100%;height:100px}.evolution-paths h3{font:1.1rem Georgia;margin:8px}.species-entry{display:inline-block;width:45%;margin:2%;vertical-align:top}.species-entry>svg{width:100%;height:150px}.species-entry p{font-size:.85rem}@media(max-width:800px){.ecology-world{padding:7px;gap:4px}.ecology-header{padding:7px;flex-wrap:wrap}.ecology-header small{display:none}.ecology-header h1{font-size:1.1rem}.ecology-header .actions{gap:4px}.ecology-header button{font-size:.7rem;padding:5px;min-height:33px}.ecology-world>.metrics{gap:0;justify-content:space-between}.ecology-world .metric{padding:2px;gap:3px}.ecology-world .metric span{font-size:.65rem}.ecology-world .metric strong{font-size:.85rem}.ecology-world>.split.reverse{grid-template-columns:110px minmax(0,1fr);gap:5px}.species-editor{padding:6px!important}.species-editor summary{font-size:.8rem}.creature-preview{height:75px}.species-editor input[type=text]{font-size:.8rem;padding:5px}.anatomy-choices{flex-wrap:wrap}.anatomy-choices button{min-width:40px;font-size:.65rem}.anatomy-choices svg{height:35px}.trait-flags{grid-template-columns:1fr}.trait-flags label{font-size:.65rem!important}.species-editor .accent{font-size:.7rem;padding:7px}.ecology-world .toolbar{gap:3px}.ecology-world .toolbar button,.ecology-world .toolbar select{font-size:.65rem;min-height:30px;padding:5px}.ecology-world .inspector{max-height:130px;padding:6px}.inspector h3{font-size:.75rem}.inspector p{font-size:.7rem}.evolution-paths{grid-template-columns:repeat(2,1fr)}.species-entry{width:96%;margin:2%}}
.studio-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;margin:8px 0}.studio-tabs button{font-size:.75rem;padding:5px;min-height:33px}.species-editor [hidden]{display:none!important}.species-editor .anatomy-group{margin:8px 0}.species-editor .anatomy-group h3{margin:5px 0}.species-editor .anatomy-choices svg{height:38px}.species-editor .trait-flags{grid-template-columns:repeat(2,1fr)}.species-editor .trait-flags>button{font-size:.75rem}

.discovery-notice{animation:discovery-reveal 1s ease-out}@keyframes discovery-reveal{0%{transform:scale(.85);filter:brightness(2);background:#a5c27155}100%{transform:scale(1);filter:brightness(1)}}
