/* A dossier at the threshold; one palette throughout each selected world. */
.world-entrance[hidden]{display:none}
.world-entrance{overflow-y:auto;align-items:start;padding:24px}
.world-gate{margin:auto;min-height:0;grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr);padding-bottom:68px}
.world-half{padding:34px;justify-content:start;min-width:0}
.world-half-warm{background:#e1c592;color:#302316;border-top:7px solid #84602e}
.world-half-cool{background:repeating-linear-gradient(0deg,#122131 0 31px,#263747 32px);color:#dce6ef;border-top:7px solid #7692aa;font-family:'Courier New',monospace}
.gate-file-header{display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:2px solid currentColor;padding-bottom:17px;margin-bottom:18px}
.gate-file-header strong{font-size:clamp(22px,2.6vw,34px);letter-spacing:.1em}
.gate-file-header>span{font:12px/1.7 'Courier New',monospace;text-align:right}
.world-half .gate-kicker{color:inherit;font:12px/1.6 'Courier New',monospace;letter-spacing:.08em}
.gate-identity{display:grid;grid-template-columns:108px minmax(0,1fr);gap:20px;align-items:center;margin:24px 0}
.gate-identity img{width:108px;height:142px;object-fit:cover;object-position:center 20%;border:1px solid currentColor;padding:4px;filter:saturate(.65)}
.world-half h2{font:700 clamp(25px,3vw,42px)/1.12 Arial,sans-serif;margin:8px 0;letter-spacing:.025em}
.world-half h2 em{display:block;color:inherit;font:normal 24px/1.4 Georgia,serif;margin-top:8px}
.world-half-cool h2,.world-half-cool h2 em{font-family:'Courier New',monospace}
.gate-facts{margin:0 0 24px;border-top:1px solid currentColor}
.gate-facts>div{display:grid;grid-template-columns:115px 1fr;gap:12px;border-bottom:1px solid #887453;padding:12px 0;font-size:14px}
.gate-facts dt{font:12px/1.8 'Courier New',monospace}.gate-facts dd{margin:0}
.world-half-cool .gate-facts>div{border-color:#516476}
.world-half p{color:inherit;font-size:16px;margin-bottom:24px}
.world-half .gate-choice{margin-top:auto;font-size:14px;min-height:48px}
.gate-fiction{font:12px/1.5 'Courier New',monospace;margin-top:20px;opacity:.8}
.world-axis span{font-size:12px;letter-spacing:.1em}
.gate-complete{font-size:14px;bottom:18px;white-space:nowrap}
#choose-world{border:0;border-bottom:1px solid var(--gold);background:none;color:var(--gold);padding:0;font:inherit;cursor:pointer;text-align:left}
body.world-warm{--bg:#160e08;--panel:#24170d;--text:#f6ead7;--muted:#cbbb9f;--gold:#d5a561;--border:#695034;--side-surface:#21150c;--side-glow:#70411955;--side-shade:#100b07;--side-line:#9c7548;background:var(--bg)}
body.world-cool{--bg:#09121b;--panel:#142330;--text:#e5edf3;--muted:#afc0cf;--gold:#9ebbd1;--border:#41596d;--side-surface:#101f2d;--side-glow:#3f698555;--side-shade:#070f17;--side-line:#718fa8;background:var(--bg)}
body:is(.world-warm,.world-cool) :is(header,.section,footer){background:radial-gradient(ellipse at 15% 15%,var(--side-glow),transparent 65%),var(--side-surface);border-color:var(--border)}
body:is(.world-warm,.world-cool) :is(header,.hero,.section):after{display:none}
body:is(.world-warm,.world-cool) :is(.act,.character,.supporting-card,.cover-card,.book-synopsis,.preorder-notice,.atlas-map,.atlas-card,.dossier-link,.sound-menu){background:linear-gradient(145deg,var(--side-surface),var(--side-shade));border-color:var(--border)}
body:is(.world-warm,.world-cool) :is(.act-top,.act:nth-child(3) .act-top,.role,.file-label,.dossier-link span,.supporting-card span,.supporting-card b,.world-label,.atlas-card-kicker,.atlas-link,.cover-card h3,.synopsis-meta){color:var(--gold)!important;background:none}
body:is(.world-warm,.world-cool) .hero{background:var(--side-shade)}
body:is(.world-warm,.world-cool) .hero-backdrop{overflow:hidden}
body:is(.world-warm,.world-cool) .hero-backdrop img{position:absolute;width:200%;max-width:none;height:100%;object-fit:cover;object-position:center}
.world-warm .hero-backdrop img{left:0}
.world-cool .hero-backdrop img{right:0}
body:is(.world-warm,.world-cool) .hero:before{background:linear-gradient(0deg,var(--side-shade),transparent 85%)}
body:is(.world-warm,.world-cool) .hero-copy{background:linear-gradient(90deg,var(--side-shade),transparent);border-color:var(--gold)}
body:is(.world-warm,.world-cool) :is(.button:hover,.cover-controls button,.vote-choice,.published-cover-note,.sound-toggle,.sound-menu button:hover,.sound-menu button.suggested-sound){background:var(--panel);color:var(--text);border-color:var(--border)}
body:is(.world-warm,.world-cool) .vote-choice[aria-pressed=true]{background:var(--gold);color:var(--bg)}
body:is(.world-warm,.world-cool) .duality-legend{display:flex;justify-content:flex-start;color:var(--gold)}
.world-warm .duality-legend>:not(:first-child),.world-cool .duality-legend>:not(:last-child){display:none}
body:is(.world-warm,.world-cool) .map-pin i{border-color:var(--gold);box-shadow:none}
body:is(.world-warm,.world-cool) .map-route{border-color:var(--gold)}
@media(max-width:780px){
 .world-entrance{padding:12px}
 .world-gate{grid-template-columns:1fr;grid-template-rows:auto 46px auto;padding-bottom:64px}
 .world-half{padding:25px}
 .world-axis{grid-row:2}
 .world-axis span{font-size:12px;letter-spacing:0}
 .world-half h2{font-size:32px}
 .gate-identity{grid-template-columns:86px 1fr;gap:16px}
 .gate-identity img{width:86px;height:116px}
 .gate-file-header strong{font-size:24px}
 body:is(.world-warm,.world-cool) nav.open{background:var(--panel)}
}
@media(max-width:380px){.world-half{padding:20px 16px}.world-half h2{font-size:27px}.gate-file-header strong{font-size:20px}.gate-facts>div{grid-template-columns:95px 1fr}}
