/* A single horizon, with the animal names centered independently of the controls. */
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-nav{
 left:0;right:0;top:auto;width:100%;max-width:none;box-sizing:border-box;
 display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:0;
 padding:0;border:0;border-radius:0;isolation:isolate;
 background:linear-gradient(180deg,#07161100,#07161155);backdrop-filter:none;
}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-nav::before{
 content:'';position:absolute;left:0;right:0;bottom:0;height:1px;
 background:linear-gradient(90deg,#cfbc8e35,#cfbc8e75 35%,#cfbc8e75 65%,#cfbc8e35);z-index:-1;
}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices{
 grid-column:2;grid-row:1;flex:none;display:flex;justify-content:center;
 gap:clamp(28px,3.4vw,54px);padding:0 34px;
}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices button{
 position:relative;min-width:0;min-height:64px;padding:0 6px;border:0;
 font-family:var(--serif);font-size:19px;font-weight:400;letter-spacing:.2px;
 color:#c5cbbf;white-space:nowrap;transition:color .3s,text-shadow .3s;
}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices button:hover{color:#f7ead0}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices button[aria-pressed=true]{color:#f0d6a7;text-shadow:0 0 24px #dfb77530}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices button::after{
 content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;
 background:linear-gradient(90deg,#e6c68a00,#e6c68a 25%,#e6c68a 75%,#e6c68a00);
 opacity:0;scale:.5 1;box-shadow:none;transition:opacity .35s,scale .35s;
}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices button[aria-pressed=true]::after{opacity:1;scale:1 1;box-shadow:0 4px 22px #e6c68a20}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-nav>button{
 grid-row:1;width:44px;min-width:44px;height:44px;min-height:44px;
 display:grid;place-items:center;margin:0;color:#d7c49c;font-size:23px;
 border:1px solid transparent;border-radius:50%;background:transparent;
 transition:color .25s,border-color .25s,background .25s,opacity .25s;
}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-prev{grid-column:1;justify-self:end}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-next{grid-column:3;justify-self:start}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-nav>button:hover:enabled{color:#fff0cf;border-color:#dec58b40;background:#dec58b0b}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-nav>button:disabled{opacity:.2}
:is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-count{
 position:absolute;left:50%;top:calc(100% + 13px);transform:translateX(-50%);
 margin:0;color:#c2c8b9b3;font-size:9px;font-variant-numeric:tabular-nums;letter-spacing:3px;
}
.species-nav button:focus-visible{outline:1px solid #e5c185;outline-offset:5px}
@media(max-width:760px){
 :is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-nav{grid-template-columns:minmax(26px,1fr) auto minmax(26px,1fr)}
 :is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices{gap:18px;padding:0 10px}
 :is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices button{font-size:14px;letter-spacing:0;min-height:50px;padding:0}
 :is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-nav>button{width:30px;min-width:26px;height:40px;min-height:40px;font-size:20px}
 :is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-count{top:calc(100% + 11px);font-size:8px;letter-spacing:2px}
}
@media(max-width:380px){
 :is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices{gap:15px;padding:0 7px}
 :is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-choices button{font-size:13px}
}
@media(max-width:760px) and (max-height:760px){
 :is(#triassic,#jurassic,#early-cretaceous,#cretaceous,#present) .species-count{top:calc(100% + 10px)}
}
@media(prefers-reduced-motion:reduce){.species-nav button,.species-nav button::after{transition:none!important}}
/* Only the controls capture input; the full-width horizon stays transparent to animal cards. */
.species-nav{pointer-events:none}.species-nav button{pointer-events:auto}
