/* Atlas — living herbarium */
body.nenrin-atlas-award .species-gallery{perspective:1200px}
body.nenrin-atlas-award .species-gallery.nenrin-focus .portrait:not(.nenrin-focus-card){opacity:.52;filter:saturate(.45) brightness(.62)}
body.nenrin-atlas-award .portrait{transform-origin:center;will-change:translate}
.nenrin-atlas-light{position:absolute;z-index:1;inset:0;pointer-events:none;opacity:0;background:radial-gradient(280px circle at var(--atlas-x,50%) var(--atlas-y,50%),rgba(235,227,214,.17),transparent 58%);transition:opacity .35s}
.portrait:hover .nenrin-atlas-light{opacity:1}
body.nenrin-atlas-award .portrait img{translate:var(--atlas-tx,0) var(--atlas-ty,0);scale:var(--atlas-scale,1);transition:translate .55s var(--nenrin-ease),scale .7s var(--nenrin-ease),filter .5s}
body.nenrin-atlas-award .portrait:hover img{--atlas-scale:1.055}
.nenrin-drawer-backdrop{position:fixed;z-index:39;inset:0;background:rgba(5,5,4,.72);backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:opacity .45s,visibility .45s}
.nenrin-drawer-backdrop.open{opacity:1;visibility:visible}
body.nenrin-atlas-award .drawer{clip-path:inset(0 0 0 22%);transition:transform .65s var(--nenrin-ease),clip-path .65s var(--nenrin-ease)}
body.nenrin-atlas-award .drawer.open{clip-path:inset(0)}
body.nenrin-atlas-award .drawer.open .drawer-photo{animation:nenrin-drawer-image .8s .18s var(--nenrin-ease) both}
body.nenrin-atlas-award .drawer.open h2,body.nenrin-atlas-award .drawer.open .facts,body.nenrin-atlas-award .drawer.open>p{animation:nenrin-drawer-copy .62s var(--delay,.18s) var(--nenrin-ease) both}
body.nenrin-atlas-award .drawer.open .facts{--delay:.25s}body.nenrin-atlas-award .drawer.open>p{--delay:.31s}
@keyframes nenrin-drawer-image{from{opacity:0;scale:1.05;filter:blur(7px)}to{opacity:1;scale:1;filter:none}}
@keyframes nenrin-drawer-copy{from{opacity:0;translate:24px 0}to{opacity:1;translate:0}}

/* History — eras become physical layers */
.nenrin-history-contours{position:absolute;z-index:4;right:-10vw;top:50%;width:min(68vw,980px);aspect-ratio:1;translate:var(--history-x,0) calc(-50% + var(--history-y,0));pointer-events:none;opacity:.19;mix-blend-mode:screen;transition:translate .55s var(--nenrin-ease),opacity .7s}
.nenrin-history-contours i{position:absolute;inset:var(--contour);border:1px solid color-mix(in srgb,var(--scene) 50%,transparent);border-radius:var(--shape);rotate:var(--turn);opacity:var(--alpha)}
.nenrin-era-index{position:absolute;z-index:11;right:clamp(24px,5vw,84px);top:50%;translate:0 -50%;display:grid;gap:12px;pointer-events:none}
.nenrin-era-index i{display:block;width:18px;height:1px;background:rgba(233,227,215,.24);transform-origin:right;transition:width .5s var(--nenrin-ease),background .4s}
.nenrin-era-index i.on{width:46px;background:var(--scene)}
body.nenrin-history-award .content::before{content:"";position:absolute;left:-28px;top:2px;bottom:0;width:1px;background:linear-gradient(var(--scene),transparent 72%);transform-origin:top;animation:nenrin-era-line .9s var(--nenrin-ease) both}
@keyframes nenrin-era-line{from{scale:1 0}to{scale:1}}
body.nenrin-history-award .year{text-shadow:0 18px 60px rgba(0,0,0,.45)}
body.nenrin-history-award .rail::before{content:"";position:absolute;left:var(--rail-hover,-10%);top:20px;width:52px;height:26px;translate:-50% 0;border:1px solid rgba(214,58,48,.25);border-radius:50%;opacity:var(--rail-active,0);transition:opacity .2s;pointer-events:none}
@media(max-width:760px){.nenrin-era-index{display:none}.nenrin-history-contours{width:105vw;right:-42vw;opacity:.11}}
@media(prefers-reduced-motion:reduce){.nenrin-atlas-light,.nenrin-history-contours,.nenrin-era-index,.nenrin-drawer-backdrop{display:none}body.nenrin-atlas-award .portrait img{translate:none;scale:1}body.nenrin-atlas-award .drawer{clip-path:none}}
