#era-explorer { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: #080b12; color: #f2eee5; --era-accent: #f1b87b; user-select: text; }
#era-explorer[hidden], #atlas-workspace[hidden] { display: none; }
.era-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(20px,4vw,64px); border-bottom: 1px solid #ffffff18; }
.era-brand { font-size: 22px; font-weight: 500; letter-spacing: -.6px; }
.era-top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#era-explorer button, #era-explorer a { -webkit-tap-highlight-color: transparent; }
#era-explorer button:focus-visible, #era-explorer a:focus-visible { outline: 2px solid var(--era-accent); outline-offset: 5px; }
.era-quiet-button { font-size: 12px; color: #c2c7d0; border-bottom: 1px solid #ffffff45; padding: 5px 0; }
.era-globe-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; background: var(--era-accent); color: #10141d; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; line-height: 1.5; transition: background .18s, transform .18s, box-shadow .18s; }
.era-globe-button:hover { background: #fff0da; transform: translateY(-2px); box-shadow: 0 5px 18px #0003; }
.era-globe-button:active { transform: translateY(0); box-shadow: none; }
.era-globe-icon { width: 20px; height: 20px; flex-shrink: 0; }
.era-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; }
.era-hero-actions .era-globe-button { min-height: 50px; padding-inline: 21px; font-size: 15px; }
.era-hero-actions .era-quiet-button { min-height: 44px; border: 0; text-decoration: underline; text-underline-offset: 5px; }
.era-quiet-button:hover { color: #fff; }
.era-entry-arrow { display: inline-block; font-size: 22px; line-height: 1; }
html[dir="rtl"] .era-entry-arrow { transform: scaleX(-1); }
.era-language { font-size: 12px; padding: 5px 9px; border: 1px solid #ffffff25; border-radius: 6px; }
.era-language[aria-pressed="true"] { color: var(--era-accent); border-color: var(--era-accent); }
.era-language svg { display: inline-block; width: 20px; height: 14px; margin-inline-end: 6px; vertical-align: middle; }
#era-tabs { display: flex; gap: clamp(12px,4vw,56px); padding: 0 clamp(20px,4vw,64px); border-bottom: 1px solid #ffffff18; }
.era-tab { position: relative; padding: 18px 0; color: #9da4af; font-size: 14px; text-align: start; }
.era-tab span { font: 10px monospace; opacity: .65; margin-inline-end: 10px; }
.era-tab::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--era-accent); transform: scaleX(0); transition: transform .25s; }
.era-tab:hover { color: #fff; }
.era-tab[aria-pressed="true"] { color: var(--era-accent); }
.era-tab[aria-pressed="true"]::after { transform: scaleX(1); }
.era-hero { position: relative; min-height: 440px; isolation: isolate; overflow: hidden; }
#era-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.era-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#080b12f0 0%,#080b12c9 28%,#080b1205 75%),linear-gradient(0deg,#080b12,transparent 30%); }
html[dir="rtl"] .era-hero::after { transform: scaleX(-1); }
html[dir="rtl"] #era-art { transform: scaleX(-1); }
.era-hero-copy { width: min(530px,55%); padding: 48px 0 38px; margin-inline-start: clamp(20px,4vw,64px); animation: era-arrive .55s ease both; }
.era-eyebrow { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--era-accent); margin-bottom: 14px; }
html[dir="rtl"] .era-eyebrow { letter-spacing: 0; }
#era-title { font-size: clamp(34px,4.5vw,62px); font-weight: 400; line-height: 1.18; letter-spacing: -.03em; margin: 0 0 12px; }
#era-subtitle { font-size: 16px; color: #d6d6d5; margin: 0 0 26px; line-height: 1.6; }
#era-duration { display: block; font-size: clamp(23px,3vw,36px); font-weight: 300; color: var(--era-accent); line-height: 1.4; }
#era-description { max-width: 460px; font-size: 13px; line-height: 1.9; color: #c4c8cf; margin: 16px 0 20px; }
.era-primary { display: inline-flex; align-items: center; gap: 18px; padding: 11px 17px; border: 1px solid var(--era-accent); color: var(--era-accent); border-radius: 5px; font-size: 13px; transition: background .2s, transform .2s; }
.era-primary:hover { background: #ffffff10; transform: translateY(-2px); }
.era-secondary { flex-shrink: 0; min-height: 36px; padding: 7px 12px; border: 1px solid #719ba377; border-radius: 5px; background: #152329; color: #c3e5e9; font-size: 12px; transition: background .15s; }
.era-secondary:hover { background: #29434a; }
.era-art-caption { position: absolute; inset-inline-end: 24px; bottom: 18px; font-size: 10px; color: #a8a5a1; }
.era-content { padding: 6px clamp(20px,4vw,64px) 48px; }
.era-note { max-width: 950px; font-size: 12px; line-height: 1.9; color: #9ea8b7; border-inline-start: 2px solid var(--era-accent); padding-inline-start: 14px; margin: 0 0 28px; }
#era-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 11px; margin-block: 12px; color: #b9c3d2; }
#era-breadcrumbs button { text-decoration: underline; text-underline-offset: 4px; }
.era-range-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid #ffffff20; padding-block: 20px 14px; }
#era-range-title { font-size: clamp(18px,2vw,25px); font-weight: 400; unicode-bidi: plaintext; }
#era-range-duration { color: var(--era-accent); font-size: 13px; }
#era-range-hint { font-size: 12px; color: #9ea8b7; margin-bottom: 18px; }
#era-sections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 24px; }
.era-section { padding: 15px 0; border-top: 1px solid #ffffff20; text-align: start; transition: background .2s, padding .2s; }
.era-section:hover { background: #ffffff06; padding-inline: 8px; }
.era-section-title { display: block; font-size: 13px; color: #e7e6e3; unicode-bidi: plaintext; }
.era-section-meta { display: block; margin-top: 7px; font-size: 11px; color: #a3abb8; }
.era-section-arrow { float: inline-end; color: var(--era-accent); margin-inline-start: 8px; }
.era-milestone-heading { font-size: 17px; font-weight: 400; margin: 32px 0 18px; }
#era-milestones { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; scrollbar-color: #565354 #10141d; }
.era-milestone { flex: 0 0 215px; text-align: start; border-top: 2px solid #ffffff2e; padding: 12px 0; }
.era-milestone[aria-pressed="true"] { border-color: var(--era-accent); }
.era-milestone time { display: block; font-size: 11px; color: var(--era-accent); margin-bottom: 8px; }
.era-milestone span { font-size: 14px; }
#era-milestone-detail { max-width: 850px; margin-top: 12px; padding-inline-start: 16px; border-inline-start: 1px solid #ffffff32; font-size: 13px; line-height: 1.9; }
#era-milestone-detail h3 { font-size: 18px; font-weight: 400; margin-bottom: 10px; }
.era-sources { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 11px; color: #b5becb; }
.era-sources a { text-decoration: underline; text-underline-offset: 4px; }
.era-empty { color: #a7afbb; font-size: 13px; line-height: 1.8; }
#era-open-atlas { margin-block: 22px 8px; }
#era-load-state { padding: 60px 24px; text-align: center; }
#era-load-state button { margin: 20px; text-decoration: underline; }
@keyframes era-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
#environment-viewer { margin: 12px clamp(20px,4vw,64px) 42px; padding-top: 26px; border-top: 1px solid #ffffff25; scroll-margin-top: 16px; }
#environment-viewer [hidden] { display: none; }
.env-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
#env-heading { font-size: clamp(22px,3vw,32px); font-weight: 400; margin-bottom: 10px; }
.env-heading-row p:not(.era-eyebrow) { font-size: 13px; color: #aab9c8; line-height: 1.8; }
#env-open { flex-shrink: 0; }
#env-status { font-size: 13px; color: #e8c994; line-height: 1.9; }
#env-stage { position: relative; height: max(260px,calc(100svh - 260px)); max-height: 760px; background: radial-gradient(ellipse at 50% 50%,#071422,#02040a 70%); overflow: hidden; border-radius: 8px 8px 0 0; }
#env-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#env-canvas:active { cursor: grabbing; }
.env-stage-caption { position: absolute; top: 18px; inset-inline-start: 20px; max-width: min(240px,calc(100% - 40px)); display: grid; gap: 5px; font-size: 10px; line-height: 1.7; color: #b9ccd8; pointer-events: none; text-shadow: 0 1px 4px #000; }
.env-stage-caption span:first-child { color: var(--era-accent); text-transform: uppercase; letter-spacing: .04em; }
.env-camera { position: absolute; bottom: 16px; inset-inline-end: 16px; display: flex; gap: 6px; }
#env-layers { position: absolute; bottom: 16px; inset-inline-start: 16px; display: flex; gap: 5px; max-width: calc(100% - 220px); flex-wrap: wrap; }
#env-layers button { border: 1px solid #7b9aaa66; border-radius: 5px; min-height: 34px; padding: 5px 9px; font-size: 11px; color: #91a7b7; background: #07111deb; }
#env-layers button[aria-pressed="true"] { color: #daf4ff; border-color: #79cee0; background: #142c3aeb; }
#env-layers button:disabled { opacity: .4; cursor: default; }
#env-layer-description { font-size: 11px; color: #9aafbc; line-height: 1.9; margin-top: 12px; max-width: 900px; }
#env-air-stage { color: #c6d9e5; }
.env-camera button,.env-playback button { min-width: 40px; min-height: 40px; padding: 7px 12px; background: #142431e8; border: 1px solid #ffffff2b; border-radius: 6px; font-size: 12px; }
.env-camera button:hover,.env-playback button:hover { background: #274352; }
.env-readout { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px 2px; }
#env-current { font-size: clamp(18px,2.3vw,28px); font-weight: 400; color: var(--era-accent); font-variant-numeric: tabular-nums; }
.env-readout>span { font-size: 11px; color: #9aabb9; }
.env-toolbar { display: flex; align-items: end; gap: 12px; margin-top: 12px; }
.env-toolbar label { display: grid; gap: 6px; font-size: 11px; color: #aab9c8; flex: 1 1 135px; }
.env-toolbar select,.env-toolbar input { width: 100%; min-height: 40px; padding: 8px; border-radius: 5px; background: #111e2a; border: 1px solid #ffffff2b; color: #f0eee8; font-size: 12px; color-scheme: dark; }
.env-playback { display: flex; gap: 6px; flex-shrink: 0; }
#env-play { color: #10141d; background: var(--era-accent); }
.env-playback button:disabled { opacity: .4; cursor: default; }
#env-year-hint { font-size: 10px; color: #899ba9; margin-top: 6px; }
#env-slider { display: block; width: 100%; height: 24px; margin-top: 4px; accent-color: var(--era-accent); cursor: pointer; }
.env-axis { display: flex; justify-content: space-between; gap: 16px; font-size: 10px; color: #aab9c8; }
.env-gesture { font-size: 10px; color: #93a6ba; max-width: 200px; padding-bottom: 10px; }
#environment-viewer[data-open="true"] { padding-top: 10px; scroll-margin-top: 0; }
#environment-viewer[data-open="true"] .env-heading-row { margin-bottom: 10px; }
#environment-viewer[data-open="true"] #env-heading { font-size: 19px; margin: 0; }
#environment-viewer[data-open="true"] .env-heading-row p { display: none; }
#env-controls { background: linear-gradient(#07101c,#080b12 230px); padding-inline: 16px; }
#env-stage { animation: env-reveal .35s ease both; }
@keyframes env-reveal { from { opacity: 0; } to { opacity: 1; } }
.env-camera button,.env-playback button { transition: background .15s, border-color .15s; }
.env-keyframe-label { margin-top: 24px; font-size: 12px; color: #cad3dd; }
#env-keyframes { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-color: #42535f #080b12; }
#env-keyframes button { flex-shrink: 0; padding: 9px 12px; border: 1px solid #ffffff2b; border-radius: 20px; font-size: 11px; }
#env-keyframes button[aria-pressed="true"],#env-keyframes button:hover { border-color: var(--era-accent); color: var(--era-accent); }
.env-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; color: #b2c0ca; margin-block: 16px; }
.env-legend>span { display: flex; align-items: center; gap: 7px; }.env-legend i { width: 9px; height: 9px; border-radius: 50%; }.env-ice { background: #dceef3; }.env-green { background: #508a54; }.env-water { background: #286a95; }
#env-title { font-size: 21px; font-weight: 400; margin-block: 18px 10px; }
#env-description,#env-note { max-width: 900px; font-size: 13px; color: #c3ccd5; line-height: 1.9; }
#env-anchor,#env-interpolation { font-size: 11px; color: #99acbc; margin-top: 8px; }
.env-evidence { margin-top: 18px; border-top: 1px solid #ffffff20; padding-top: 14px; }.env-evidence summary { cursor: pointer; color: var(--era-accent); font-size: 12px; }.env-evidence p { margin-top: 12px; }
@media(max-width:760px) {
    #environment-viewer { margin-inline: 12px; }
    #env-stage { height: max(240px,calc(100svh - 300px)); }
    .env-heading-row { align-items: start; flex-direction: column; }
    .env-playback { gap: 4px; }.env-playback button { min-width: 36px; min-height: 36px; padding: 5px 8px; font-size: 11px; }
    .env-stage-caption { top: 10px; inset-inline-start: 10px; font-size: 9px; max-width: 175px; }
    #env-controls { padding-inline: 8px; }.env-toolbar { gap: 8px; }.env-toolbar label { min-width: 0; flex-basis: 0; }
    .env-toolbar select,.env-toolbar input { font-size: 11px; padding: 5px; min-height: 36px; }.env-gesture { display: none; }
    #env-current { font-size: 17px; }.env-readout { flex-wrap: wrap; }
    .env-camera { bottom: 8px; inset-inline-end: 8px; }
    #env-layers { bottom: 56px; inset-inline: 8px; max-width: none; gap: 4px; }
    #env-layers button { font-size: 10px; padding-inline: 6px; min-height: 32px; }
}
@media (max-width: 760px) {
    .era-topbar { padding-block: 12px; gap: 8px; }
    .era-brand { font-size: 18px; }
    .era-top-actions { gap: 6px; }
    .era-tab { font-size: 12px; padding-block: 15px; }
    .era-tab span { display: none; }
    #era-tabs { justify-content: space-between; gap: 12px; }
    .era-hero { min-height: 470px; }
    .era-hero-copy { width: calc(100% - 40px); padding-top: 190px; margin-inline: 20px; }
    #era-title { font-size: 34px; }
    #era-subtitle { margin-bottom: 10px; font-size: 14px; }
    #era-description { font-size: 12px; margin-block: 12px; }
    .era-hero::after { background: linear-gradient(0deg,#080b12 3%,#080b12ee 38%,#080b1200 80%); }
    #era-duration { font-size: 25px; }
    .era-art-caption { top: 16px; bottom: auto; font-size: 9px; }
    #era-sections { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
}
@media (max-width: 390px) { .era-topbar { flex-wrap: wrap; } #era-sections { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #era-explorer *, #era-explorer *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
