/* Night Emerald — local design revision. Keeps the approved five-world artwork. */
:root{color-scheme:dark;--font-body:'Mona Sans','Manrope',Arial,sans-serif;--editorial:'Bitter',Georgia,serif;--border-subtle:#30483e;--surface-raised:#172c25;--ease-out:cubic-bezier(.2,.7,.2,1)}
body{background:var(--bg);text-rendering:optimizeLegibility}
::selection{background:#d8b777;color:#0b1513}
.wrap{max-width:1320px;padding-inline:32px}
.celestial-header{max-width:1440px;padding:14px 32px 0;gap:0 24px;background:var(--bg)}
.celestial-header .brand{font-size:14px;letter-spacing:-.02em;max-width:430px;line-height:1.4}
.brand svg{width:30px;height:30px}
.header-actions{gap:12px}
.languages{background:transparent;border:1px solid var(--border-subtle);padding:2px;border-radius:99px}
.languages button{border-radius:99px;min-height:36px;font-size:11px;letter-spacing:.04em}
.languages button[aria-pressed=true]{color:var(--bg);background:var(--primary)}
.celestial-header .nav{margin:12px 0 0;gap:26px;border-color:var(--border-subtle);font-size:13px}
.celestial-header .nav a{min-height:46px;white-space:nowrap}
.celestial-header .nav a[aria-current=page]{border-color:var(--primary)}
.celestial-header .nav .nav-consult{color:var(--ink)}
.celestial-header .nav .nav-consult::after{content:'↗';margin-left:8px;color:var(--primary)}
.primary{background:var(--primary);color:var(--bg);border-color:var(--primary)}
.primary:hover{background:var(--hover);color:var(--bg)}
.button{border-radius:99px;min-height:48px;padding:12px 24px}
.secondary{border-color:var(--line)}
.eyebrow{letter-spacing:.14em;font-weight:550}
.section{padding-block:80px}
.section-heading{max-width:780px}
.section-heading h2,.page-heading h2{font-family:var(--editorial);font-weight:400;line-height:1.2;letter-spacing:-.04em}
.selected-worlds-home{background:radial-gradient(ellipse at 50% 8%,#173d324d,transparent 62%),var(--bg);border-bottom:1px solid var(--border-subtle)}
.selected-worlds-home .cosmic-inner{width:100%;max-width:1440px;min-height:0;padding:34px 32px 18px;display:block}
.selected-worlds-home .cosmic-copy{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,.7fr);gap:18px 56px;width:100%;max-width:none;padding:0 0 34px;align-items:center}
.selected-worlds-home .cosmic-copy>.eyebrow{grid-column:1/-1;margin:0;font-size:10px}
.selected-worlds-home #hero-title{font-family:var(--editorial);font-size:clamp(40px,5.3vw,76px);font-weight:400;line-height:1.08;letter-spacing:-.055em;max-width:none;margin:0;grid-row:2/4}
.selected-worlds-home #hero-title em{display:block;font-weight:400;color:var(--primary)}
.selected-worlds-home .cosmic-copy .lead{font-size:15px;line-height:1.65;max-width:33ch;margin:0;color:var(--muted);align-self:end}
.selected-worlds-home .cosmic-copy>.button{justify-self:start;align-self:start;font-size:12px;min-height:44px;padding:10px 18px;gap:10px}
.selected-worlds-home .cosmic-copy>.small{grid-column:1/-1;margin:0;color:var(--muted);font-size:10px}
.selected-worlds-home .topic-portals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;perspective:1400px}
.selected-worlds-home .topic-portal{min-height:clamp(350px,30vw,420px);border:1px solid #526e5d88;border-radius:160px 160px 16px 16px;background:#101f19;box-shadow:0 12px 35px #0003;transform:none;transition:transform .5s var(--ease-out),border-color .3s,box-shadow .3s;isolation:isolate}
.selected-worlds-home .topic-portal::after{background:linear-gradient(180deg,transparent 28%,#0b151344 48%,#0b1513e8 72%,#0b1513 100%)}
.selected-worlds-home .topic-portal .world-visual{transition:filter .5s;filter:saturate(.84)}
.selected-worlds-home .portal-copy{padding:22px 18px;min-height:176px;gap:9px}
.selected-worlds-home .portal-index{font-size:9px;color:var(--primary);letter-spacing:.14em}
.selected-worlds-home .portal-title{font:400 clamp(22px,2.2vw,32px)/1.17 var(--editorial);letter-spacing:-.045em;overflow-wrap:normal}
.selected-worlds-home .portal-note{font-size:12px;line-height:1.5;color:var(--muted);min-height:36px}
.selected-worlds-home .portal-open{font-size:11px;border-color:#496152;padding-top:12px;color:var(--primary)}
.selected-worlds-home .home-motion-row{padding-top:14px;min-height:52px;gap:16px}
.world-footer-note{font-size:10px;color:var(--muted);letter-spacing:.06em}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .selected-worlds-home .topic-portal:hover{transform:translateY(-7px);border-color:var(--primary);box-shadow:0 24px 48px #0007}
 .selected-worlds-home .topic-portal:hover .world-visual{filter:saturate(1.04)}
}
.selected-worlds-home .topic-portal:focus-visible{outline:3px solid var(--primary);outline-offset:4px}
.world-chapter{background:var(--bg);min-height:620px;min-height:clamp(580px,calc(100svh - 108px),850px);padding:26px max(5vw,32px) 30px;gap:30px;border-bottom:1px solid var(--border-subtle)}
.world-chapter>.world-visual{left:38%;opacity:1}
.world-chapter::after{background:linear-gradient(90deg,#0b1513 4%,#0b1513f0 31%,#0b151388 52%,#0b151300 77%),linear-gradient(0deg,#0b1513 0%,transparent 24%,transparent 80%,#0b151344)}
.world-chapter-copy{padding:20px 0 30px;width:52%;max-width:790px}
.world-chapter-copy .eyebrow{font-size:10px;max-width:38ch}
.world-chapter-title{font:400 clamp(48px,7vw,100px)/1.05 var(--editorial);letter-spacing:-.055em;margin:22px 0}
.world-chapter-note{font-size:17px;line-height:1.7;color:var(--muted);max-width:34ch;margin-bottom:28px}
.world-chapter-nav a,.world-pager a{font-size:12px;border-color:var(--border-subtle);background:#0b151366;backdrop-filter:blur(8px);min-height:44px}
.world-chapter-nav a:hover,.world-pager a:hover{border-color:var(--primary);background:var(--support)}
.world-pager{gap:16px}
.world-enter{font-size:13px}
/* Icon-sized, named, keyboard-accessible motion control. No large overlay button. */
.chapter-motion-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;overflow:hidden;font-size:0!important;line-height:0;border-radius:50%;border:1px solid var(--line);background:#0b1513b3;color:var(--primary);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.chapter-motion-button::before{content:'';display:block;width:17px;height:19px;border-inline:5px solid currentColor}
.chapter-motion-button[aria-pressed=true]::before{width:0;height:0;border:0;border-left:14px solid currentColor;border-top:9px solid transparent;border-bottom:9px solid transparent;margin-left:3px}
.chapter-motion-button:disabled::before{width:14px;height:14px;border:2px solid currentColor;border-radius:3px}
.chapter-motion-button:hover:not(:disabled){background:var(--support);border-color:var(--primary)}
/* Harmonise reading surfaces without changing planet or card illustration colours. */
.chapter-atmosphere{background:radial-gradient(ellipse at 70% 20%,#173d3266,transparent 65%),var(--bg)}
.chapter-atmosphere>svg{opacity:.2}
.chapter-atmosphere::after{background:linear-gradient(90deg,#0b1513d9,#0b151366)}
.chapter-scene{opacity:.1}
.card,.form-panel,.result-card,.newsletter-preview,.journal-story,.symbol-intro,.rune-card,.angel-card,.angel-result,.privacy-card{background:var(--surface);border-color:var(--border-subtle)}
.form-panel{box-shadow:0 16px 48px #0002}
input,select,textarea{color:var(--ink);background:#0d1c17;border-color:var(--line)}
input::placeholder,textarea::placeholder{color:#aabcb2;opacity:1}
.graha-card.cinematic-planet{background:linear-gradient(115deg,#142920,#0d1a16);border-color:var(--border-subtle);box-shadow:0 18px 54px #0003}
.graha-card.cinematic-planet .graha-body{padding:clamp(24px,4vw,52px)}
.graha-card.cinematic-planet h3{font-family:var(--editorial);font-weight:400;letter-spacing:-.035em}
.graha-description{line-height:1.8}
.graha-more{border-color:var(--border-subtle)}
.planet-jump-list{gap:8px;margin-bottom:36px}
.planet-jump-list button{background:var(--surface);border-color:var(--border-subtle);color:var(--muted);font-size:12px;min-height:44px;border-radius:99px}
.planet-jump-list button:hover{border-color:var(--primary);color:var(--ink)}
.personal-intro{gap:28px 64px;border-color:var(--border-subtle)}
.personal-intro h2,.find-juris h2,.home-articles-teaser h2{font-family:var(--editorial);font-weight:400;letter-spacing:-.04em}
.personal-intro .intro-statement{font-size:18px;line-height:1.8}
.home-articles-teaser{background:linear-gradient(110deg,#173d3240,transparent);border-block:1px solid var(--border-subtle)}
.home-socials a{border-color:var(--border-subtle)}
.social-photo-card{border-radius:18px;overflow:hidden}
.social-photo-card img{transition:transform .6s var(--ease-out)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.social-photo-card:hover img{transform:scale(1.035)}}
.assistant-launcher{background:var(--surface);border-color:var(--line);box-shadow:0 8px 32px #0005}
.assistant-dialog{background:var(--bg);border-color:var(--line)}
.assistant-header,.assistant-bubble{background:var(--surface)}
.assistant-form-actions button[type=submit]{background:var(--primary);color:var(--bg)}
.assistant-launcher>span,.assistant-prompts button,.assistant-footer a{color:var(--primary)}
.assistant-launcher>.assistant-launcher-label{font-size:13px;color:var(--ink)}
[data-page] :is(h1,h2,h3)[tabindex="-1"]:focus{outline:none}
.language-dialog{background:var(--bg);border-color:var(--line)}
/* Progressive enhancement: ordinary links still work without View Transitions. */
::view-transition-group(root){animation-duration:320ms}
::view-transition-old(root){animation:emerald-leave 160ms ease-out both}
::view-transition-new(root){animation:emerald-arrive 320ms var(--ease-out) both}
::view-transition-group(topic-art){animation-duration:520ms;animation-timing-function:var(--ease-out)}
::view-transition-old(topic-art),::view-transition-new(topic-art){height:100%;object-fit:cover;mix-blend-mode:normal}
@keyframes emerald-leave{to{opacity:0}}
@keyframes emerald-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1360px){
 .celestial-header{grid-template-columns:minmax(230px,1fr) auto auto;align-items:center;gap:24px;padding-block:18px}
 .celestial-header .brand{max-width:275px}
 .celestial-header .nav{grid-column:2;grid-row:1;border:0;margin:0;gap:20px;font-size:12px}
 .header-actions{grid-column:3;grid-row:1}
 .celestial-header .nav .nav-consult{margin-left:0}
}
@media(max-width:1000px){
 .celestial-header .nav{gap:17px;font-size:12px}
 .selected-worlds-home .cosmic-copy{gap:16px 30px}
 .selected-worlds-home .portal-copy{padding:18px 12px}
 .selected-worlds-home .portal-title{font-size:23px}
 .selected-worlds-home .portal-note{font-size:11px}
 .selected-worlds-home .topic-portals{gap:10px}
 .world-chapter-title{font-size:clamp(46px,7.8vw,78px)}
}
@media(max-width:760px){
 html{scroll-padding-top:16px}
 .wrap{padding-inline:24px}
 .celestial-header{display:grid;grid-template-columns:1fr auto;padding:16px 24px;gap:12px;border-bottom:1px solid var(--border-subtle)}
 .celestial-header .brand{font-size:12px;max-width:255px}
 .brand svg{width:26px;height:26px}
 .header-actions{gap:8px}
 .languages button{min-width:34px;min-height:38px;font-size:10px}
 .celestial-header.menu-open .languages button{min-width:44px;min-height:44px}
 .menu-toggle{width:44px;height:44px;padding:10px;justify-content:center;border-radius:50%;border-color:var(--line)}
 .menu-toggle>span{display:none}
 .celestial-header .nav{display:none;margin:4px 0 0;border-top:1px solid var(--border-subtle);gap:0;grid-template-columns:1fr 1fr;width:100%;padding:10px 0 0}
 .celestial-header.menu-open .nav{display:grid}
 .celestial-header .nav a{min-height:48px;white-space:normal;padding:8px;font-size:13px;border-radius:8px}
 .celestial-header .nav a[aria-current=page]{background:var(--support);border:0}
 .celestial-header .nav .nav-consult{margin-left:0}
 .selected-worlds-home .cosmic-inner{padding:32px 24px 16px;width:100%}
 .selected-worlds-home .cosmic-copy{display:grid;grid-template-columns:1fr;gap:18px;padding-bottom:28px}
 .selected-worlds-home #hero-title{grid-row:auto;max-width:none;font-size:clamp(38px,8vw,58px);line-height:1.11}
 .selected-worlds-home #hero-title em{display:inline}
 .selected-worlds-home .cosmic-copy .lead{font-size:14px;max-width:42ch}
 .selected-worlds-home .cosmic-copy>.small{font-size:9px}
 .selected-worlds-home .topic-portals{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .selected-worlds-home .topic-portal{min-height:340px;border-radius:130px 130px 14px 14px}
 .selected-worlds-home .topic-portal:last-child{grid-column:1/-1;min-height:260px;border-radius:18px}
 .selected-worlds-home .topic-portal:last-child .world-visual{left:35%}
 .selected-worlds-home .topic-portal:last-child::after{background:linear-gradient(90deg,#0b1513f5 12%,#0b1513a3 48%,#0b151326)}
 .selected-worlds-home .topic-portal:last-child .portal-copy{width:60%;align-self:center}
 .selected-worlds-home .portal-copy{padding:20px 16px;min-height:162px}
 .selected-worlds-home .portal-title,.selected-worlds-home .topic-portal:last-child .portal-title{font-size:25px}
 .selected-worlds-home .portal-note{font-size:12px}
 .selected-worlds-home .portal-index{font-size:8px}
 .selected-worlds-home .home-motion-row{padding-top:12px}
 .world-footer-note{font-size:9px;max-width:27ch}
 .world-chapter{min-height:720px;min-height:min(820px,100svh);padding:22px 24px;gap:26px}
 .world-chapter>.world-visual{left:15%;top:0;bottom:0;opacity:.85}
 .world-chapter::after{background:linear-gradient(0deg,#0b1513 1%,#0b1513e6 30%,#0b151377 57%,#0b151326 80%,#0b151366)}
 .world-chapter-copy{width:100%;max-width:540px;padding:160px 0 10px;margin-top:auto;margin-bottom:0}
 .world-chapter-title{font-size:clamp(44px,9vw,72px);margin:16px 0}
 .world-chapter-note{font-size:15px;max-width:36ch;margin-bottom:24px}
 .world-chapter-nav a,.world-pager a{font-size:11px}
 .world-pager a{max-width:49%;padding:10px 12px}
 .section{padding-block:56px}
 .section-heading h2,.page-heading h2{font-size:36px}
 .personal-intro{gap:24px}
 .chapter-atmosphere>svg{opacity:.12}
 .assistant-launcher{font-size:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));min-height:44px;padding:9px 14px}
 .assistant-launcher{width:56px;height:56px;padding:7px;flex-direction:column;justify-content:center;gap:0;border-radius:50%}
 .assistant-launcher>.assistant-launcher-label{display:none}
 .assistant-launcher>span{line-height:1.1;font-size:23px}
 .assistant-launcher>small{font-size:7px;line-height:1.1;margin-top:3px}
}
@media(max-width:480px){
 .celestial-header{padding:12px 20px;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .celestial-header .brand{font-size:11px;gap:8px;max-width:178px}
 .header-actions .languages{display:none}
 .celestial-header.menu-open .header-actions .languages{display:flex;position:absolute;top:calc(100% - 56px);left:20px;background:var(--bg)}
 .celestial-header.menu-open .nav{padding-bottom:64px}
 .menu-toggle{display:flex}
 .selected-worlds-home .cosmic-inner{padding:28px 20px 16px}
 .selected-worlds-home .cosmic-copy{gap:15px}
 .selected-worlds-home #hero-title{font-size:42px}
 .selected-worlds-home #hero-title em{display:block}
 .selected-worlds-home .cosmic-copy>.eyebrow{font-size:8px;letter-spacing:.1em}
 .selected-worlds-home .cosmic-copy .lead{font-size:13px;max-width:32ch}
 .selected-worlds-home .topic-portals{gap:10px}
 .selected-worlds-home .topic-portal{min-height:286px}
 .selected-worlds-home .topic-portal:last-child{min-height:224px}
 .selected-worlds-home .portal-copy{padding:16px 12px;min-height:150px;gap:8px}
 .selected-worlds-home .portal-title,.selected-worlds-home .topic-portal:last-child .portal-title{font-size:21px;line-height:1.2}
 .selected-worlds-home .portal-note{font-size:11px;min-height:34px}
 .selected-worlds-home .portal-open{font-size:10px;padding-top:10px}
 .selected-worlds-home .portal-index{font-size:7px;letter-spacing:.1em}
 .world-chapter{padding:18px 20px;min-height:690px}
 .world-chapter-copy{padding-top:150px}
 .world-chapter-title{font-size:48px;overflow-wrap:anywhere}
 .world-chapter-note{font-size:14px}
 .world-pager{gap:8px}
 .world-pager a{font-size:10px;padding:10px;min-width:0}
 .section-heading h2,.page-heading h2{font-size:32px}
 .wrap{padding-inline:20px}
}
@media(max-width:359px){
 .selected-worlds-home #hero-title{font-size:38px}
 .selected-worlds-home .topic-portals{grid-template-columns:1fr}
 .selected-worlds-home .topic-portal,.selected-worlds-home .topic-portal:last-child{min-height:180px;border-radius:16px}
 .selected-worlds-home .topic-portal .world-visual,.selected-worlds-home .topic-portal:last-child .world-visual{left:0;width:48%}
 .selected-worlds-home .topic-portal::after,.selected-worlds-home .topic-portal:last-child::after{background:linear-gradient(90deg,#0b151300 10%,#0b151388 32%,#0b1513 48%)}
 .selected-worlds-home .portal-copy,.selected-worlds-home .topic-portal:last-child .portal-copy{padding:16px 12px;width:62%;margin-left:38%;min-height:180px;align-self:stretch}
 .selected-worlds-home .portal-title,.selected-worlds-home .topic-portal:last-child .portal-title{font-size:20px}
 .selected-worlds-home .portal-note{font-size:11px}
 .world-chapter-title{font-size:42px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
 .topic-portal,.social-photo-card img{transition:none!important;transform:none!important}
}
html.motion-paused .topic-portal,html.motion-paused .social-photo-card img{transition:none;transform:none}
/* Approved detailed Moon; all other chapter backgrounds retain their existing artwork. */
.approved-moon-chapter{background:radial-gradient(ellipse at 75% 36%,#1e443c,#112924 38%,#0b1513 72%)}
.approved-moon-chapter>.approved-moon-visual{inset:0;opacity:1}
.approved-moon-host{position:absolute;width:min(48vw,620px);aspect-ratio:1;left:46%;top:47%;transform:translateY(-50%);isolation:isolate}
.approved-moon-host canvas{width:100%;height:100%;display:block;opacity:0}
.approved-moon-host.moon-ready canvas{opacity:1}
.approved-moon-host>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;opacity:.8}
.approved-moon-host.moon-ready>img{display:none}
.approved-moon-orbit{position:absolute;inset:2%;border:1px solid #d8b77726;border-radius:50%;transform:rotate(-25deg) scaleX(1.13) scaleY(.8);animation:approved-moon-orbit 160s linear infinite}
.approved-moon-orbit::after{content:'';position:absolute;top:13%;left:13%;width:4px;height:4px;border-radius:50%;background:#d8b777;box-shadow:0 0 14px #d8b777}
.approved-moon-orbit.orbit-counter{inset:-4%;opacity:.45;animation-direction:reverse;animation-duration:210s}
.approved-moon-mist{position:absolute;inset:35% -12% 0;opacity:.13;background:radial-gradient(ellipse at 70% 65%,#a3bfb0,transparent 44%);filter:blur(25px);animation:approved-moon-mist 24s ease-in-out infinite alternate}
.approved-moon-chapter::after{background:linear-gradient(90deg,#0b1513 2%,#0b1513c2 27%,#0b151322 55%,transparent 74%),linear-gradient(0deg,#0b1513,transparent 25%)}
.approved-moon-chapter:not(.moon-running) .approved-moon-visual *{animation-play-state:paused!important}
.approved-moon-credit{align-self:flex-end;color:#bdcfc4;font-size:10px;text-underline-offset:3px;margin-top:-12px;min-height:24px;padding:4px 0;position:relative}
@keyframes approved-moon-orbit{from{transform:rotate(-25deg) scaleX(1.13) scaleY(.8)}to{transform:rotate(335deg) scaleX(1.13) scaleY(.8)}}
@keyframes approved-moon-mist{from{transform:translateX(-4%)}to{transform:translateX(6%)}}
@media(max-width:760px){.approved-moon-host{width:104%;left:-2%;top:25%;}.approved-moon-chapter .world-chapter-copy{padding-top:250px}.approved-moon-chapter{min-height:850px;gap:18px}.approved-moon-chapter::after{background:linear-gradient(0deg,#0b1513 7%,#0b1513ed 31%,#0b151322 64%,transparent)}.approved-moon-credit{margin-top:0}.approved-moon-mist{filter:blur(14px)}}
@media(prefers-reduced-motion:reduce){.approved-moon-visual *{animation:none!important}}
