/* The homepage World stage: the Atlas view, the Universe view and the toggle between them. */
.world-stage.atlas-on .sfi-parallax-universe,.world-stage.atlas-on .sfi-parallax-depth-control{display:none!important}
.atlas{--premium-a:#ff5fd2;--premium-b:#a66bff;--premium-c:#4f9bff;--premium-d:#8ff3ff;position:absolute;z-index:6;inset:var(--views-top,118px) 22px 58px 22px;display:grid;grid-template-columns:minmax(250px,306px) minmax(0,1fr);gap:22px;min-height:0;color:#eef3f8;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.atlas [hidden]{display:none!important}

/* Index */
.atlas-index{display:flex;flex-direction:column;min-height:0;border-radius:18px;background:linear-gradient(160deg,rgb(18 32 46 / .72),rgb(4 9 15 / .78));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .14),0 24px 60px rgb(0 0 0 / .4);backdrop-filter:blur(14px)}
/* Find */
.atlas-search{position:relative;flex:none;display:flex;align-items:center;gap:9px;margin:12px 12px 6px;padding:0 10px 0 13px;height:42px;border-radius:13px;background:linear-gradient(180deg,rgb(255 255 255 / .09),rgb(255 255 255 / .04));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .16),inset 0 1px rgb(255 255 255 / .1);cursor:text;transition:box-shadow .25s ease,background .25s ease}
.atlas-search::before{position:absolute;inset:-1px;z-index:-1;border-radius:14px;background:linear-gradient(90deg,#8ff3ff,#4f9bff,#a66bff,#ff5fd2);content:"";filter:blur(9px);opacity:0;transition:opacity .3s ease}
.atlas-search:focus-within{background:rgb(6 14 22 / .92);box-shadow:inset 0 0 0 1.5px rgb(143 243 255 / .85)}
.atlas-search:focus-within::before{opacity:.55}
.atlas-search svg{flex:none;width:17px;height:17px;fill:none;stroke:#8fd8f5;stroke-width:1.8;stroke-linecap:round}
.atlas-find{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:none;color:#fff;font:400 15px/1 Georgia,"Times New Roman",serif;letter-spacing:.01em}
.atlas-find::placeholder{color:#93a4b5;font-style:italic}
.atlas-tally{flex:none;color:#8fd8f5;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.atlas-key{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:rgb(255 255 255 / .07);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .16);color:#a9b8c7;font:500 12px/1 ui-monospace,Menlo,monospace}
.atlas-search:focus-within .atlas-key,.atlas-search[data-filled] .atlas-key{display:none}
.atlas-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 8px 16px;scrollbar-width:thin;scrollbar-color:rgb(255 255 255 / .22) transparent;-webkit-mask:linear-gradient(#000 0,#000 calc(100% - 26px),transparent);mask:linear-gradient(#000 0,#000 calc(100% - 26px),transparent)}
.atlas-subject{position:sticky;top:0;z-index:1;display:flex;align-items:baseline;justify-content:space-between;margin:0;padding:13px 8px 6px;background:#0b1620;color:#8fd8f5;font-size:10.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.atlas-subject i{color:#6f8193;font-style:normal;letter-spacing:.04em}
.atlas-row{display:flex;align-items:center;gap:11px;width:100%;padding:7px 10px;border:0;border-radius:9px;background:none;color:#dfe8f0;font:inherit;text-align:left;cursor:pointer}
.atlas-row-thumb{flex:none;display:grid;place-items:center;width:40px;height:26px;overflow:hidden;border-radius:6px;background:#0a1826;box-shadow:0 0 0 1px rgb(225 244 252 / .28);color:#9edff5;font:400 10px Georgia,serif}.atlas-row-thumb img{width:100%;height:100%;object-fit:cover}.atlas-row[data-access=premium] .atlas-row-thumb{box-shadow:0 0 0 1.5px rgb(190 130 255 / .85)}
.atlas-row-title{flex:1;min-width:0;overflow:hidden;font-family:Georgia,"Times New Roman",serif;font-size:16.5px;letter-spacing:.01em;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.atlas-row-mark{flex:none;width:9px;height:9px;overflow:hidden;background:linear-gradient(135deg,var(--premium-a),var(--premium-c));clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);color:transparent;font-size:0}
.atlas-row:focus-visible{outline:2px solid #8ff3ff;outline-offset:-2px}
.atlas-row[aria-selected=true]{background:linear-gradient(90deg,rgb(143 216 245 / .2),rgb(143 216 245 / .05));box-shadow:inset 2px 0 #8fd8f5;color:#fff}
.atlas-row[data-access=premium][aria-selected=true]{background:linear-gradient(90deg,rgb(255 95 210 / .24),rgb(79 155 255 / .1));box-shadow:inset 2px 0 var(--premium-a)}
.atlas-empty{margin:18px;color:#8fa0b2;font-size:13px}

/* Stage */
.atlas-stage{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;min-width:0;min-height:0}
.atlas-screen{position:relative;display:block;overflow:hidden;min-height:0;border:1px solid rgb(225 244 252 / .34);border-radius:20px;background:#02070c;box-shadow:0 34px 90px rgb(0 0 0 / .58);color:inherit;text-decoration:none;--premium-frame:3px}
.atlas-screen[data-access=premium]{border-color:transparent;box-shadow:0 34px 90px rgb(0 0 0 / .58),0 0 60px rgb(170 110 255 / .3)}
.atlas-symbol,.atlas-poster,.atlas-film,.atlas-veil{position:absolute;inset:0;width:100%;height:100%}
.atlas-symbol{display:grid;place-items:center;background:linear-gradient(color-mix(in srgb,var(--world-accent) 5%,transparent) 1px,transparent 1px) 0 0/30px 30px,linear-gradient(90deg,color-mix(in srgb,var(--world-accent) 5%,transparent) 1px,transparent 1px) 0 0/30px 30px,radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--world-accent) 16%,transparent),transparent 48%),#02070c;color:color-mix(in srgb,var(--world-accent) 82%,white);font:300 clamp(48px,7vw,96px)/1 Georgia,serif;opacity:.8}
.atlas-poster,.atlas-film{object-fit:cover}
.atlas-film{opacity:0;transition:opacity .5s ease}
.atlas-screen.has-film .atlas-film{opacity:1}
.atlas-veil{background:linear-gradient(to bottom,transparent 38%,rgb(0 3 7 / .3) 60%,rgb(0 3 7 / .94) 100%),linear-gradient(90deg,rgb(0 3 7 / .5),transparent 55%)}
.atlas-screen[data-access=premium] .atlas-veil{background:linear-gradient(to bottom,transparent 36%,rgb(26 8 54 / .4) 60%,rgb(22 6 48 / .95) 100%),radial-gradient(ellipse at 50% 122%,rgb(170 110 255 / .5),transparent 60%),linear-gradient(90deg,rgb(8 2 20 / .5),transparent 55%)}
.atlas-copy{position:absolute;z-index:9;right:230px;bottom:24px;left:28px;display:grid;justify-items:start;gap:7px}
.atlas-tags{display:flex;align-items:center;gap:9px}
.atlas-tag{color:#8fd8f5;font-size:10.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;text-shadow:0 2px 10px #000}
.atlas .sfi-parallax-premium-badge{margin:0;font-size:10px}
.atlas-title{color:rgb(249 253 255 / .97);font:400 clamp(30px,3.4vw,50px)/1 Georgia,"Times New Roman",serif;letter-spacing:.012em;text-shadow:0 3px 18px rgb(0 0 0 / .88)}
.atlas-screen[data-access=premium] .atlas-title{background:linear-gradient(100deg,#fff 10%,#f3e9ff 55%,#b9d4ff);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 3px 10px rgb(0 0 0 / .85))}
.atlas-subtitle{color:rgb(206 235 247 / .72);font-size:11.5px;font-weight:520;letter-spacing:.12em;text-transform:uppercase;text-shadow:0 2px 12px #000}
.atlas-screen[data-access=premium] .atlas-subtitle{color:rgb(226 208 255 / .85)}
.atlas-description{display:-webkit-box;max-width:60ch;overflow:hidden;color:#c9d5e0;font-size:13.5px;line-height:1.45;text-shadow:0 2px 10px #000;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.atlas-facts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin-top:5px}
.atlas-fact{color:#eaf3f8;font-size:12px;letter-spacing:.03em;text-shadow:0 2px 10px #000}
.atlas-level{display:flex;align-items:center;gap:9px;color:#aebccb;font-size:9.5px;font-weight:600;letter-spacing:.15em;text-transform:uppercase;text-shadow:0 2px 10px #000}
.atlas-level b{position:relative;width:96px;height:4px;border-radius:99px;background:linear-gradient(90deg,#8fd8f5,#a66bff,#ff5fd2)}
.atlas-level i{position:absolute;top:50%;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #05090d,0 0 10px #fff;transform:translate(-50%,-50%);transition:left .6s cubic-bezier(.2,.8,.2,1)}
.atlas-enter{position:absolute;z-index:9;right:24px;bottom:26px;overflow:hidden;padding:15px 30px;border-radius:999px;background:linear-gradient(180deg,#fff,#d9f1ff);box-shadow:0 0 0 1px rgb(255 255 255 / .7),0 0 30px rgb(143 216 245 / .55),0 10px 30px rgb(0 0 0 / .5);color:#04101a;font:400 18px/1 Georgia,"Times New Roman",serif;letter-spacing:.02em;transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease}
.atlas-enter::after{position:absolute;top:0;bottom:0;left:-40%;width:36%;background:linear-gradient(100deg,transparent,rgb(255 255 255 / .75),transparent);content:"";transform:skewX(-18deg);animation:atlas-enter-sheen 4.5s cubic-bezier(.4,0,.2,1) infinite}
.atlas-screen[data-access=premium] .atlas-enter{background:linear-gradient(90deg,var(--premium-a),var(--premium-b) 52%,var(--premium-c));box-shadow:0 0 0 1px rgb(255 255 255 / .35),0 0 32px rgb(170 110 255 / .7),0 10px 30px rgb(0 0 0 / .5);color:#fff}
.atlas-screen[data-access=premium] .atlas-enter::after{background:linear-gradient(100deg,transparent,rgb(255 255 255 / .4),transparent)}
.atlas-screen:hover .atlas-enter,.atlas-screen:focus-visible .atlas-enter{transform:scale(1.05);box-shadow:0 0 0 1px #fff,0 0 48px rgb(143 216 245 / .9),0 12px 34px rgb(0 0 0 / .5)}
.atlas-screen[data-access=premium]:hover .atlas-enter{box-shadow:0 0 0 1px rgb(255 255 255 / .6),0 0 50px rgb(190 120 255 / .95),0 12px 34px rgb(0 0 0 / .5)}
@keyframes atlas-enter-sheen{0%,60%{left:-40%}100%{left:120%}}
@media(prefers-reduced-motion:reduce){.atlas-enter::after{display:none}}
.atlas-screen:focus-visible{outline:2px solid #8ff3ff;outline-offset:3px}

/* The rest of the subject: a filmstrip that fills the width */
.atlas-more{display:grid;gap:8px;min-width:0;padding:10px 12px 12px;border-radius:18px;background:linear-gradient(160deg,rgb(18 32 46 / .62),rgb(4 9 15 / .7));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .13);backdrop-filter:blur(14px)}
.atlas-more-bar{display:flex;align-items:baseline;gap:11px;padding:0 4px}
.atlas-more-head{font:400 18px/1 Georgia,"Times New Roman",serif;letter-spacing:.01em}
.atlas-more-count{color:#8fd8f5;font-size:10px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.atlas-place{margin-left:auto;color:#8fa0b2;font-size:11px;letter-spacing:.1em;font-variant-numeric:tabular-nums}
.atlas-pause{align-self:center;min-width:58px;padding:5px 12px;border:0;border-radius:999px;background:rgb(255 255 255 / .07);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .16);color:#dfe8f0;font:500 11px/1.2 inherit;cursor:pointer}
.atlas-pause:hover{background:rgb(255 255 255 / .14)}
.atlas-strip{display:flex;gap:9px;min-width:0;height:78px}
.atlas-card{position:relative;flex:1 1 0;min-width:0;overflow:hidden;padding:0;border:0;border-radius:11px;background:#02070c;color:#fff;font:inherit;cursor:pointer;filter:saturate(.75) brightness(.72);transition:flex-grow .5s cubic-bezier(.2,.8,.2,1),filter .35s ease}
.atlas-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.atlas-card-symbol{position:absolute;inset:0;display:grid;place-items:center;color:#9edff5;font:300 20px Georgia,serif;opacity:.7}
.atlas-card::after{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to bottom,transparent 25%,rgb(0 3 7 / .9));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .2);content:""}
.atlas-card-title{position:absolute;z-index:1;right:10px;bottom:9px;left:10px;overflow:hidden;font:400 13px/1.15 Georgia,serif;text-align:left;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 2px 8px #000}
.atlas-card:hover{filter:none}.atlas-card:hover img{transform:scale(1.06)}
.atlas-card[data-current]{flex-grow:1.7;filter:none}
.atlas-card[data-current]::after{box-shadow:inset 0 0 0 1.5px #8fd8f5,inset 0 0 22px rgb(143 216 245 / .3)}
.atlas-card[data-access=premium]::after{background:linear-gradient(to bottom,transparent 25%,rgb(22 6 48 / .94));box-shadow:inset 0 0 0 1px rgb(190 130 255 / .6)}
.atlas-card[data-access=premium][data-current]::after{box-shadow:inset 0 0 0 1.5px var(--premium-a),inset 0 0 22px rgb(170 110 255 / .45)}
.atlas-card-time{position:absolute;z-index:2;right:0;bottom:0;left:0;height:3px;background:linear-gradient(90deg,#8ff3ff,#4f9bff,#a66bff,#ff5fd2);transform:scaleX(0);transform-origin:left}
.atlas[data-playing] .atlas-card[data-current] .atlas-card-time{animation:atlas-time var(--atlas-step,5s) linear forwards}
@keyframes atlas-time{to{transform:scaleX(1)}}

/* Arrival: the new World rises out of the last one */
.atlas-back{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.atlas-screen{box-shadow:0 34px 90px rgb(0 0 0 / .58),0 0 110px color-mix(in srgb,var(--world-accent,#9edff5) 16%,transparent);transition:box-shadow .8s ease}
.atlas-screen.is-arriving .atlas-poster{animation:atlas-arrive .9s cubic-bezier(.2,.8,.2,1) both}
.atlas-screen.is-arriving .atlas-copy>*{animation:atlas-rise .7s cubic-bezier(.2,.8,.2,1) both}
.atlas-screen.is-arriving .atlas-copy>:nth-child(2){animation-delay:.07s}.atlas-screen.is-arriving .atlas-copy>:nth-child(3){animation-delay:.13s}.atlas-screen.is-arriving .atlas-copy>:nth-child(4){animation-delay:.19s}.atlas-screen.is-arriving .atlas-copy>:nth-child(5){animation-delay:.25s}
@keyframes atlas-arrive{from{opacity:0;transform:scale(1.06)}to{opacity:1;transform:none}}
@keyframes atlas-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.atlas-screen.is-arriving .atlas-poster,.atlas-screen.is-arriving .atlas-copy>*{animation:none}}

/* Narrow: find and a row of Worlds above, the stage beneath */
.world-stage[data-size=narrow] .atlas{inset:104px 12px 14px 12px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px}
.world-stage[data-size=narrow] .atlas-index{background:none;box-shadow:none;backdrop-filter:none}
.world-stage[data-size=narrow] .atlas-search{margin:0 0 8px}
.world-stage[data-size=narrow] .atlas-list{display:flex;flex:none;gap:6px;overflow-x:auto;overflow-y:hidden;padding:2px;-webkit-mask:none;mask:none;scrollbar-width:none}
.world-stage[data-size=narrow] .atlas-list::-webkit-scrollbar{display:none}
.world-stage[data-size=narrow] .atlas-group{display:contents}
.world-stage[data-size=narrow] .atlas-subject{display:none}
.world-stage[data-size=narrow] .atlas-row{flex:none;width:auto;padding:5px 12px 5px 6px;border-radius:999px;background:rgb(255 255 255 / .06);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .12)}
.world-stage[data-size=narrow] .atlas-row[aria-selected=true]{box-shadow:inset 0 0 0 1.5px #8fd8f5}
.world-stage[data-size=narrow] .atlas-row[data-access=premium][aria-selected=true]{box-shadow:inset 0 0 0 1.5px var(--premium-a)}
.world-stage[data-size=narrow] .atlas-row-title{font-size:14px}
.world-stage[data-size=narrow] .atlas-row-thumb{width:32px;height:22px;border-radius:999px}
.world-stage[data-size=narrow] .atlas-more{display:none}
.world-stage[data-size=narrow] .atlas-stage{grid-template-rows:minmax(0,1fr)}
.world-stage[data-size=narrow] .atlas-copy{right:16px;bottom:66px;left:16px}
.world-stage[data-size=narrow] .atlas-title{font-size:28px}
.world-stage[data-size=narrow] .atlas-description{display:none}
.world-stage[data-size=narrow] .atlas-enter{right:auto;left:16px;bottom:16px;padding:10px 20px}
@media(prefers-reduced-motion:reduce){.atlas-film{display:none}}
.atlas .atlas-find,.atlas .atlas-find:focus,.atlas .atlas-find:focus-visible{border:0!important;outline:0!important;box-shadow:none!important;background:none!important}
.atlas-screen>.sfi-parallax-premium-sheen{display:none}

/* Toggle and Universe frame */
.world-view-toggle{position:absolute;z-index:20;top:32px;left:50%;display:flex;gap:2px;padding:4px;border-radius:999px;background:rgb(8 16 24 / .88);box-shadow:inset 0 0 0 1px rgb(225 244 252 / .18),0 10px 30px rgb(0 0 0 / .4);backdrop-filter:blur(12px);transform:translateX(-50%)}
.world-view-toggle button{min-width:86px;padding:8px 16px;border:0;border-radius:999px;background:none;color:#b9c6d3;font:500 12.5px/1 Inter,system-ui,sans-serif;letter-spacing:.04em;cursor:pointer;transition:background .25s ease,color .25s ease}
.world-view-toggle button:hover{color:#fff}
.world-view-toggle button[aria-pressed=true]{background:linear-gradient(90deg,#8fd8f5,#b9a3ff);color:#06101a}
.world-view-toggle button:focus-visible{outline:2px solid #8ff3ff;outline-offset:2px}
/* The starscape fills the whole stage; the header and the toggle sit on top of it. */
.world-universe{position:absolute;z-index:1;inset:0;width:100%;height:100%;border:0;background:#000}
.world-universe[hidden]{display:none}
.world-stage[data-size=narrow] .world-view-toggle{top:64px}
.world-stage[data-size=narrow] .world-view-toggle button{min-width:74px;padding:7px 12px}
.world-stage[data-size=narrow] .atlas-level{display:none}
.world-stage[data-size=narrow] .atlas-enter{font-size:15px}
/* Premium in the index: a thin line around the picture and lavender text. */
.atlas-row[data-access=premium] .atlas-row-thumb{box-shadow:0 0 0 1px rgb(214 170 255 / .6)}
.atlas-row[data-access=premium] .atlas-row-title{color:#f0e4ff;filter:drop-shadow(0 0 2px rgba(238,200,255,.75)) drop-shadow(0 0 7px rgba(190,110,255,.85))}

/* A World opened: its details stand beside the preview. Only Enter the World goes in. */
.atlas-screen{cursor:pointer}
.atlas-enter{text-decoration:none;cursor:pointer}
.atlas[data-open] .atlas-stage{grid-template-columns:minmax(0,1fr) minmax(300px,348px);column-gap:12px}
.atlas[data-open] .atlas-detail{grid-column:2;grid-row:1 / span 2}
.atlas[data-open] .atlas-screen,.atlas[data-open] .atlas-more{grid-column:1}
.atlas[data-open] .atlas-copy{right:22px;bottom:84px}
.atlas[data-open] .atlas-title{font-size:clamp(24px,2.3vw,34px)}
.atlas[data-open] .atlas-description,.atlas[data-open] .atlas-facts{display:none}
.atlas[data-open] .atlas-enter{right:22px;bottom:22px;left:22px;text-align:center}
.atlas-detail{display:flex;flex-direction:column;gap:14px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px 18px;border-radius:18px;background:linear-gradient(160deg,rgb(18 32 46 / .78),rgb(4 9 15 / .84));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .14),0 24px 60px rgb(0 0 0 / .4);backdrop-filter:blur(14px);scrollbar-width:thin;scrollbar-color:rgb(255 255 255 / .22) transparent;animation:atlas-detail-in .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes atlas-detail-in{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
.atlas-detail-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.atlas-detail-kind,.atlas-detail-head{margin:0;color:#8fd8f5;font-size:10.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.atlas-detail-close,.atlas-detail-more{padding:7px 14px;border:0;border-radius:999px;background:rgb(255 255 255 / .07);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .16);color:#dfe8f0;font:500 11.5px/1.2 inherit;text-decoration:none;cursor:pointer}
.atlas-detail-close:hover,.atlas-detail-more:hover{background:rgb(255 255 255 / .14)}
.atlas-detail-more{justify-self:start;display:inline-block}
.atlas-detail-note{margin:0;color:#d5e0ea;font-size:13.5px;line-height:1.5}
.atlas-detail-group{display:grid;gap:9px;padding-top:13px;border-top:1px solid rgb(255 255 255 / .09)}
.atlas-detail-aside{margin:0;color:#8fa0b2;font-size:12px}
.atlas-meter{position:relative;height:6px;margin:4px 7px 0;border-radius:99px;background:linear-gradient(90deg,#8fd8f5,#a66bff,#ff5fd2)}
.atlas-meter i{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #05090d,0 0 14px #fff;transform:translate(-50%,-50%)}
.atlas-meter-ends{display:flex;justify-content:space-between;color:#8fa0b2;font-size:9.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.atlas-detail-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.atlas-detail-facts div{display:grid;gap:3px;padding:10px 12px;border-radius:11px;background:rgb(255 255 255 / .04);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .1)}
.atlas-detail-facts span{color:#8fa0b2;font-size:9.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.atlas-detail-facts strong{color:#fff;font:300 22px/1.1 Inter,system-ui,sans-serif}
.atlas-lessons{list-style:none;display:grid;margin:0;padding:0;counter-reset:lesson}
.atlas-lessons li{counter-increment:lesson;display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:baseline;gap:8px;padding:7px 0;border-top:1px solid rgb(255 255 255 / .07);color:#dbe7ee;font-size:12.5px}
.atlas-lessons li:first-child{border-top:0}
.atlas-lessons li::before{content:counter(lesson,decimal-leading-zero);color:#8fa0b2;font-size:10px}
.atlas-lessons b{font-weight:400}.atlas-lessons span{color:#8fa0b2;font-size:11px;white-space:nowrap}
.atlas-equation{overflow-x:auto;color:#fff;font-size:17px;padding:2px 0}
.atlas-chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.atlas-chips li{padding:6px 11px;border-radius:999px;background:rgb(255 255 255 / .05);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .12);color:#dbe7ee;font-size:12px}
.atlas-courses{display:grid;gap:6px}
.atlas-courses a{display:grid;gap:4px;padding:10px 12px;border-radius:11px;background:rgb(255 255 255 / .04);box-shadow:inset 0 0 0 1px rgb(255 255 255 / .1);color:#eaf3f8;text-decoration:none}
.atlas-courses a:hover{box-shadow:inset 0 0 0 1px rgb(172 205 221 / .6)}
.atlas-courses b{font:400 15px/1.25 Georgia,"Times New Roman",serif}.atlas-courses span{color:#8fa0b2;font-size:11.5px;line-height:1.4}
.world-stage[data-size=narrow] .atlas[data-open] .atlas-stage{grid-template-columns:minmax(0,1fr)}
.world-stage[data-size=narrow] .atlas-stage{position:relative}
.world-stage[data-size=narrow] .atlas[data-open] .atlas-detail{position:absolute;z-index:12;right:0;bottom:0;left:0;max-height:64%;grid-column:auto;grid-row:auto}
.world-stage[data-size=narrow] .atlas[data-open] .atlas-enter{left:16px;right:16px;bottom:auto;top:16px}
@media(prefers-reduced-motion:reduce){.atlas-detail{animation:none}}
/* The same Free or Premium tag as the Universe view's button */
.atlas-enter{display:inline-flex;align-items:center;justify-content:center;gap:12px}
.atlas-enter i{padding:4px 9px;border-radius:999px;background:rgb(4 16 26 / .1);font:600 9.5px/1 Inter,system-ui,sans-serif;font-style:normal;letter-spacing:.16em;text-transform:uppercase}
.atlas-screen[data-access=premium] .atlas-enter i{background:rgb(255 255 255 / .2)}
.atlas[data-open] .atlas-enter{display:flex}

/* The dock along the bottom of the World stage: AdamAI, AI Calc, AI Math Tutor. */
.world-dock{position:absolute;z-index:21;right:18px;bottom:10px;display:flex;align-items:stretch;gap:8px;height:48px}
.world-stage .world-dock .world-dock-adam{position:relative;inset:auto;display:inline-flex;align-items:center;gap:12px;height:48px;min-width:300px;padding:0 24px 0 20px;border-radius:999px;font-size:16px;box-shadow:0 0 0 1px rgb(255 255 255 / .3),0 0 34px rgb(170 110 255 / .65),0 10px 30px rgb(0 0 0 / .5);transform:none}
.world-dock-adam .account-flow-label{font-size:16px;font-weight:650;letter-spacing:.01em}
.world-dock-note{position:relative;z-index:1;color:rgb(255 255 255 / .86);font-size:12.5px;font-weight:400;white-space:nowrap}
.world-dock-tool{display:grid;align-content:center;gap:2px;min-width:132px;padding:0 18px;border-radius:999px;background:rgb(8 16 24 / .86);box-shadow:inset 0 0 0 1px rgb(225 244 252 / .2),0 10px 30px rgb(0 0 0 / .4);backdrop-filter:blur(12px);color:#fff;text-decoration:none;transition:box-shadow .25s ease,transform .25s ease}
.world-dock-tool b{font-size:13.5px;font-weight:600;letter-spacing:.01em}
.world-dock-tool span{color:#9fb1c2;font-size:10.5px;letter-spacing:.03em}
.world-dock-tool:hover{transform:translateY(-1px)}
.world-dock-tool.is-calc:hover{box-shadow:inset 0 0 0 1px #5fe0d0,0 0 26px rgb(60 210 190 / .45)}
.world-dock-tool.is-tutor:hover{box-shadow:inset 0 0 0 1px #c79bf2,0 0 26px rgb(170 110 255 / .5)}
/* With the dock present the two cards in the corner of the side panel are not needed on wide screens. */
.world-stage[data-size=narrow] .world-dock{display:none}
.world-stage .world-dock-source{visibility:hidden!important;pointer-events:none!important}
.world-stage .world-dock .world-dock-adam{border:0;cursor:pointer;overflow:hidden;color:#fff}
.world-stage[data-size=narrow] .world-dock-source{visibility:visible!important;pointer-events:auto!important}

/* AdamAI, AI Calc and AI Math Tutor among the Worlds */
.atlas-screen[data-tool=adamai] .atlas-poster{animation:atlas-adam 14s ease-in-out infinite alternate}
@keyframes atlas-adam{from{transform:scale(1.02)}to{transform:scale(1.14) rotate(1.5deg)}}
.atlas-screen[data-tool]:not([data-tool=""]) .atlas-enter{background:linear-gradient(90deg,#ff5fd2,#a66bff 52%,#4f9bff);box-shadow:0 0 0 1px rgb(255 255 255 / .35),0 0 32px rgb(170 110 255 / .7),0 10px 30px rgb(0 0 0 / .5);color:#fff}
/* The dock: AdamAI takes the width */
.world-dock{left:300px}
.world-stage .world-dock .world-dock-adam{flex:1;justify-content:flex-start;min-width:0}
.world-stage .world-dock .world-dock-note{overflow:hidden;text-overflow:ellipsis}
.world-stage[data-world-view=universe] .world-dock{left:210px}

/* The AdamAI bar: slimmer, and clear of the bottom edge */
.world-dock{bottom:14px;height:36px}
.world-stage .world-dock .world-dock-adam{height:36px;padding:0 20px 0 18px;font-size:14px}
.world-dock-adam .account-flow-label{font-size:14.5px}
.world-dock-note{font-size:12px}
.world-stage .world-dock .world-dock-adam{height:36px!important;min-height:0!important}
/* The AdamAI bar is as wide as its words, at the right of the stage */
.world-stage .world-dock,.world-stage[data-world-view=universe] .world-dock{left:auto}
.world-stage .world-dock .world-dock-adam{flex:none}
/* Ask AdamAI: the homepage's own button, thicker and wider, inside the strip that was already empty beneath the views.
   The selector repeats the homepage's own specificity pattern so these sizes take effect. */
html :is(#world-views-specificity,.world-stage.atlas-on>[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]){bottom:11px;left:calc(50% + 138px);right:auto;transform:translateX(-50%);display:inline-flex;align-items:center;gap:11px;height:36px!important;min-height:36px!important;padding:0 22px 0 18px!important;border-radius:999px;box-shadow:0 0 0 1px rgb(255 255 255 / .3),0 0 30px rgb(170 110 255 / .6),0 8px 24px rgb(0 0 0 / .5)!important;opacity:1}
.world-stage.atlas-on>[data-sfi-header-floating-adamai] .account-flow-label{font-size:15px;font-weight:650;letter-spacing:.01em}
.world-adam-note{position:relative;z-index:1;color:rgb(255 255 255 / .88);font-size:12.5px;font-weight:400;white-space:nowrap}

/* Teaching Intelligence cards: where each is found and what each plan includes */
.atlas-points{list-style:none;display:grid;gap:7px;margin:0;padding:0}
.atlas-points li{position:relative;padding-left:16px;color:#dbe7ee;font-size:13px;line-height:1.45}
.atlas-points li::before{position:absolute;top:.55em;left:2px;width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,#ff5fd2,#4f9bff);content:""}
.atlas-plan-rows{display:grid;margin:0}
.atlas-plan-rows div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid rgb(255 255 255 / .07)}
.atlas-plan-rows div:first-child{border-top:0}
.atlas-plan-rows dt{color:#fff;font:400 14px/1.2 Georgia,"Times New Roman",serif}
.atlas-plan-rows dd{margin:0;color:#aebccb;font-size:12px;text-align:right}

/* ---------- Screen sizes ----------
   The stage reports its own width as data-size (wide: 1000 and up, mid: 760 to 999, narrow: below 760) and where
   the header ends as --views-top; world-views.js measures both. Everything below follows from those two. */
.world-stage.atlas-on .world-view-toggle{top:var(--toggle-top,32px);left:var(--toggle-left,50%)}
.world-stage[data-size=narrow] .world-view-toggle{top:var(--toggle-top,64px)}
.world-stage[data-size=narrow] .atlas{inset:var(--views-top,104px) 12px 14px 12px}
/* Narrow: the stage is one screen tall, not the height of the old grid */

.world-stage[data-size=narrow].atlas-on .sfi-parallax-scene{position:static;height:auto;min-height:0;transform:none;pointer-events:none}
.world-stage[data-size=narrow].atlas-on .sfi-parallax-header{position:relative;z-index:4;pointer-events:none}
/* Mid: a slimmer index, and a World's details open over the preview instead of beside it */
.world-stage[data-size=mid] .atlas{grid-template-columns:minmax(206px,232px) minmax(0,1fr);gap:14px;inset:var(--views-top,118px) 16px 58px 16px}
.world-stage[data-size=mid] .atlas-row-title{font-size:15px}
.world-stage[data-size=mid] .atlas-description{-webkit-line-clamp:1}
.world-stage[data-size=mid] .atlas-copy{right:20px;bottom:74px}
.world-stage[data-size=mid] .atlas-enter{right:auto;left:22px;bottom:18px;padding:11px 22px;font-size:16px}
.world-stage[data-size=mid] .atlas-title{font-size:clamp(26px,3.6cqw,38px)}
.world-stage[data-size=mid] .atlas[data-open] .atlas-stage{grid-template-columns:minmax(0,1fr);position:relative}
.world-stage[data-size=mid] .atlas[data-open] .atlas-detail{position:absolute;z-index:12;top:0;right:0;bottom:0;width:min(340px,62%);grid-column:auto;grid-row:auto}
.world-stage[data-size=mid] .atlas[data-open] .atlas-copy{right:calc(min(340px,62%) + 16px)}
.world-stage[data-size=mid] .atlas[data-open] .atlas-enter{right:auto;left:22px}
.world-stage[data-size=mid] .atlas-strip{height:64px}
/* Ask AdamAI below wide: the two words only, at the right */
.world-stage[data-size=narrow].atlas-on .world-adam-note{display:none}
html :is(#world-views-specificity,.world-stage[data-size=narrow].atlas-on>[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]){left:auto;right:16px;transform:none;white-space:nowrap}

/* The Premium frame must cover a tall preview as well as a wide one */
.atlas-screen .sfi-parallax-premium-ring i{width:max(130%,240cqh,1200px)}
/* The World's name heads its details wherever the details cover the preview */
.atlas-detail-title{display:none;margin:-4px 0 0;color:#fff;font:400 26px/1.08 Georgia,"Times New Roman",serif;letter-spacing:.012em}
.world-stage[data-size=narrow] .atlas-detail-title{display:block}
.world-stage[data-size=narrow] .atlas[data-open] .atlas-copy{display:none}
.world-stage[data-size=narrow] .atlas[data-open] .atlas-detail{max-height:66%;border-radius:18px 18px 14px 14px}

.world-stage[data-size=narrow] .atlas{bottom:var(--views-bottom,14px)}

/* Mid-size stages keep the full Ask AdamAI button, centred on the column beside the slimmer list */
html :is(#world-views-specificity,.world-stage[data-size=mid].atlas-on>[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]):is(#world-views-specificity,[data-sfi-header-floating-adamai]){left:calc(50% + 116px);white-space:nowrap}
.world-stage.atlas-on>[data-sfi-header-floating-adamai]{white-space:nowrap}

/* ================= Narrow stages (iPhone, iPad upright): Atlas redesigned =================
   Every World is visible as a tile with its picture and name, grouped by subject. One short banner
   shows the current World. Choosing a tile raises a sheet with the details and Enter the World. */
.atlas-detail-enter,.atlas-detail-sub{display:none}
.world-stage[data-size=narrow] .atlas{display:flex;flex-direction:column;gap:10px}
.world-stage[data-size=narrow] .atlas-index{display:contents}
.world-stage[data-size=narrow] .atlas-search{order:1;margin:0;flex:none}
.world-stage[data-size=narrow] .atlas-stage{order:2;flex:none;display:block;position:static}
.world-stage[data-size=narrow] .atlas-list{order:3;display:block;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:0 2px 8px;gap:0;-webkit-mask:none;mask:none}
.world-stage[data-size=narrow] .atlas-empty{order:4}
.world-stage[data-size=narrow] .atlas-screen{height:clamp(132px,22svh,190px);border-radius:16px}
.world-stage[data-size=narrow] .atlas-copy{right:132px;bottom:14px;left:16px;gap:4px}
.world-stage[data-size=narrow] .atlas-title{font-size:22px;line-height:1.05}
.world-stage[data-size=narrow] .atlas-subtitle{font-size:9.5px;letter-spacing:.1em}
.world-stage[data-size=narrow] .atlas-description,.world-stage[data-size=narrow] .atlas-facts,.world-stage[data-size=narrow] .atlas-more{display:none}
.world-stage[data-size=narrow] .atlas-enter{top:auto;right:12px;bottom:12px;left:auto;padding:9px 15px;font-size:14px;gap:0}
.world-stage[data-size=narrow] .atlas-enter i{display:none}
.world-stage[data-size=narrow] .atlas-enter span{font-size:0}.world-stage[data-size=narrow] .atlas-enter span::after{content:"Enter";font-size:14px}
.world-stage[data-size=narrow] .atlas[data-open] .atlas-copy{display:grid}
.world-stage[data-size=narrow] .atlas[data-open] .atlas-enter{top:auto;left:auto;right:12px;bottom:12px;display:inline-flex}
/* the tiles */
.world-stage[data-size=narrow] .atlas-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:6px}
.world-stage[data-size=narrow] .atlas-subject{grid-column:1 / -1;display:flex;position:static;padding:10px 2px 0;background:none;font-size:10.5px}
.world-stage[data-size=narrow] .atlas-row{position:relative;display:block;width:auto;aspect-ratio:16/9.4;padding:0;overflow:hidden;border-radius:12px;background:#02070c;box-shadow:inset 0 0 0 1px rgb(225 244 252 / .2)}
.world-stage[data-size=narrow] .atlas-row-thumb{position:absolute;inset:0;width:100%;height:100%;border-radius:0;box-shadow:none;font-size:20px}
.world-stage[data-size=narrow] .atlas-row::after{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to bottom,transparent 34%,rgb(0 3 7 / .92));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .2);content:"";pointer-events:none}
.world-stage[data-size=narrow] .atlas-row-title{position:absolute;z-index:1;right:9px;bottom:7px;left:9px;display:-webkit-box;overflow:hidden;font-size:14px;line-height:1.12;white-space:normal;text-shadow:0 2px 8px #000;-webkit-box-orient:vertical;-webkit-line-clamp:2;filter:none}
.world-stage[data-size=narrow] .atlas-row[data-access=premium] .atlas-row-title{color:#fff;filter:none;right:22px}
.world-stage[data-size=narrow] .atlas-row-mark{position:absolute;z-index:1;right:9px;bottom:10px;width:10px;height:10px}
.world-stage[data-size=narrow] .atlas-row[data-access=premium] .atlas-row-thumb{box-shadow:none}
.world-stage[data-size=narrow] .atlas-row[data-access=premium]::after{background:linear-gradient(to bottom,transparent 34%,rgb(22 6 48 / .94));box-shadow:inset 0 0 0 1px rgb(200 150 255 / .6)}
.world-stage[data-size=narrow] .atlas-row[aria-selected=true]{background:#02070c;box-shadow:none}
.world-stage[data-size=narrow] .atlas-row[aria-selected=true]::after{box-shadow:inset 0 0 0 2px #8fd8f5}
.world-stage[data-size=narrow] .atlas-row[data-access=premium][aria-selected=true]{box-shadow:none}
.world-stage[data-size=narrow] .atlas-row[data-access=premium][aria-selected=true]::after{box-shadow:inset 0 0 0 2px var(--premium-a)}
/* iPad upright: three tiles across, scrolling inside the stage */
@media(min-width:701px){.world-stage[data-size=narrow] .atlas-group{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* the sheet */
.world-stage[data-size=narrow] .atlas-detail-enter{display:flex;align-items:center;justify-content:center;height:48px;border-radius:999px;background:linear-gradient(180deg,#fff,#d9f1ff);box-shadow:0 0 0 1px rgb(255 255 255 / .7),0 0 26px rgb(143 216 245 / .5);color:#04101a;font:400 18px/1 Georgia,"Times New Roman",serif;letter-spacing:.02em;text-decoration:none;flex:none}
.world-stage[data-size=narrow] .atlas-detail-enter[data-access=premium]{background:linear-gradient(90deg,var(--premium-a),var(--premium-b) 52%,var(--premium-c));box-shadow:0 0 0 1px rgb(255 255 255 / .35),0 0 28px rgb(170 110 255 / .65);color:#fff}
.world-stage[data-size=narrow] .atlas-detail-sub{display:block;margin:-8px 0 0;color:#aebccb;font-size:11px;font-weight:520;letter-spacing:.1em;text-transform:uppercase}
.world-stage[data-size=narrow] .atlas[data-open] .atlas-detail{position:absolute;z-index:30;top:auto;right:0;bottom:0;left:0;width:auto;max-height:78%;border-radius:20px 20px 14px 14px;box-shadow:inset 0 0 0 1px rgb(225 244 252 / .2),0 -24px 70px rgb(0 0 0 / .75);background:linear-gradient(160deg,rgb(18 32 46 / .97),rgb(4 9 15 / .98))}
/* iPhone: the page itself scrolls through the tiles; the sheet stays above the bottom bar */
@media(max-width:700px){
 .world-stage[data-size=narrow].atlas-on{height:auto!important;min-height:0!important}
 .world-stage[data-size=narrow].atlas-on .sfi-world-parallax{position:absolute;inset:0 0 auto 0;height:auto!important}
 .world-stage[data-size=narrow] .atlas{position:relative;inset:auto;margin:var(--views-top,150px) 12px 22px}
 .world-stage[data-size=narrow] .atlas-list{flex:none;overflow:visible}
 .world-stage[data-size=narrow] .atlas[data-open] .atlas-detail{position:fixed;right:8px;bottom:calc(66px + env(safe-area-inset-bottom));left:8px;max-height:min(70svh,560px)}
}

/* ---- Narrow stages, both views: one design. A picture at the head, then every World as a tile. ----
   Atlas: the picture is the current World. Universe: the picture is the Universe itself, live; choosing a tile
   flies it to that World, and choosing a World in it opens that World's sheet. */
.world-stage[data-size=narrow] .world-universe{order:0;position:relative;inset:auto;z-index:6;flex:none;width:100%;height:clamp(230px,36svh,340px);border-radius:16px;box-shadow:inset 0 0 0 1px rgb(225 244 252 / .2),0 18px 40px rgb(0 0 0 / .6)}
.world-stage[data-size=narrow] .atlas-stage{order:0}
.world-stage[data-size=narrow] .atlas-search{order:1}
.world-stage[data-size=narrow][data-world-view] .atlas-screen{display:none}
@media(max-width:700px){
 /* iPhone: the Universe stays in view while the page scrolls through the Worlds beneath it */
 .world-stage[data-size=narrow] .world-universe{position:sticky;top:calc(58px + env(safe-area-inset-top))}
}

@media(max-width:700px){.world-stage[data-size=narrow] .atlas{margin-top:calc(var(--views-top,150px) - 6px)}}

/* ================= Universe on narrow stages (iPhone, iPad upright) =================
   One screen. The Universe above; beneath it the whole list of Worlds, small and compact, all visible at once.
   Choosing a World replaces the list with that World's card; "All Worlds" brings the list back. */
.world-stage[data-size=narrow][data-world-view]{--panel:404px}
@media(max-width:700px){
 .world-stage[data-size=narrow][data-world-view].atlas-on{height:max(calc(var(--views-top,134px) + 610px),calc(100svh - 112px))!important}
 .world-stage[data-size=narrow][data-world-view] .atlas{position:absolute;inset:var(--views-top,134px) 10px 8px;margin:0}
}
.world-stage[data-size=narrow][data-world-view] .atlas{gap:8px}
.world-stage[data-size=narrow][data-world-view] .world-universe{position:relative;top:auto;flex:1 1 0;height:auto;min-height:170px}
.world-stage[data-size=narrow][data-world-view] .atlas-search{display:none}
.world-stage[data-size=narrow][data-world-view] .atlas-stage{flex:none}
/* the list: two columns of names */
.world-stage[data-size=narrow][data-world-view] .atlas-list{flex:none;display:block;height:var(--panel);columns:2;column-gap:12px;column-fill:auto;overflow:hidden;padding:8px 10px;border-radius:16px;background:linear-gradient(160deg,rgb(18 32 46 / .8),rgb(4 9 15 / .86));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .14)}
.world-stage[data-size=narrow][data-world-view] .atlas-group{display:contents}
.world-stage[data-size=narrow][data-world-view] .atlas-subject{display:flex;position:static;break-after:avoid;margin:0;padding:5px 2px 2px;background:none;font-size:8.5px;letter-spacing:.16em}
.world-stage[data-size=narrow][data-world-view] .atlas-subject:first-child{padding-top:0}
.world-stage[data-size=narrow][data-world-view] .atlas-subject i{display:none}
.world-stage[data-size=narrow][data-world-view] .atlas-row{display:flex;align-items:center;gap:6px;width:100%;aspect-ratio:auto;height:17.6px;padding:0 3px;overflow:visible;border-radius:5px;background:none;box-shadow:none;break-inside:avoid}
.world-stage[data-size=narrow][data-world-view] .atlas-row::after{display:none}
.world-stage[data-size=narrow][data-world-view] .atlas-row-thumb{position:static;flex:none;width:19px;height:12.5px;border-radius:2.5px;box-shadow:0 0 0 1px rgb(225 244 252 / .25);font-size:7px}
.world-stage[data-size=narrow][data-world-view] .atlas-row[data-access=premium] .atlas-row-thumb{box-shadow:0 0 0 1px rgb(214 170 255 / .7)}
.world-stage[data-size=narrow][data-world-view] .atlas-row-title{position:static;display:block;flex:1;min-width:0;overflow:hidden;font-size:12.5px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;text-shadow:none}
.world-stage[data-size=narrow][data-world-view] .atlas-row[data-access=premium] .atlas-row-title{right:auto;color:#e6d8ff}
.world-stage[data-size=narrow][data-world-view] .atlas-row-mark{position:static;width:7px;height:7px}
.world-stage[data-size=narrow][data-world-view] .atlas-row[aria-selected=true]{background:rgb(143 216 245 / .16);box-shadow:none}
/* a World chosen: its card takes the list's place */
.world-stage[data-size=narrow][data-world-view] .atlas[data-open] .atlas-list{display:none}
.world-stage[data-size=narrow][data-world-view] .atlas[data-open] .atlas-detail{position:relative;inset:auto;z-index:1;width:auto;height:var(--panel);max-height:none;padding:12px 14px 14px;gap:11px;border-radius:16px;box-shadow:inset 0 0 0 1px rgb(225 244 252 / .16);animation:none}
.world-stage[data-size=narrow][data-world-view] .atlas-detail-title{font-size:23px}
.world-stage[data-size=narrow][data-world-view] .atlas-detail-enter{height:44px}
/* iPad upright has more width: three columns, roomier lines */
@media(min-width:701px){
 .world-stage[data-size=narrow][data-world-view]{--panel:330px}
 .world-stage[data-size=narrow][data-world-view] .atlas-list{columns:3}
 .world-stage[data-size=narrow][data-world-view] .atlas-row{height:21px}
 .world-stage[data-size=narrow][data-world-view] .atlas-row-title{font-size:13.5px}
 .world-stage[data-size=narrow][data-world-view] .atlas-subject{font-size:9.5px;padding-top:7px}
}

/* ================= Universe on narrow stages, final form =================
   The starscape fills the whole stage to every edge, with the header over it. A small glass list of Worlds sits
   at the bottom, one column, scrolling. Choosing a World swaps the list for its card; "All Worlds" swaps back. */
.world-stage[data-size=narrow][data-world-view]{--panel:clamp(168px,25svh,226px);--card:clamp(300px,47svh,430px)}
@media(max-width:700px){
 .world-stage[data-size=narrow][data-world-view].atlas-on{height:max(600px,calc(100svh - 112px))!important}
 .world-stage[data-size=narrow][data-world-view].atlas-on .sfi-world-parallax{position:absolute;inset:0;height:100%!important}
}
.world-stage[data-size=narrow][data-world-view] .world-universe{position:absolute;top:0;inset:0;z-index:1;flex:none;width:100%;height:100%;min-height:0;border-radius:0;box-shadow:none}
.world-stage[data-size=narrow][data-world-view] .atlas{position:absolute;inset:auto 10px 8px 10px;margin:0;display:block}
.world-stage[data-size=narrow][data-world-view] .atlas-list{display:block;height:var(--panel);columns:auto;overflow-x:hidden;overflow-y:auto;padding:4px 8px 8px;border-radius:16px;background:linear-gradient(160deg,rgb(14 26 38 / .72),rgb(4 9 15 / .8));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .16),0 18px 40px rgb(0 0 0 / .5);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);scrollbar-width:thin;scrollbar-color:rgb(255 255 255 / .25) transparent}
.world-stage[data-size=narrow][data-world-view] .atlas-group{display:block}
.world-stage[data-size=narrow][data-world-view] .atlas-subject{position:sticky;top:-4px;z-index:1;padding:9px 4px 4px;background:linear-gradient(rgb(9 17 25 / .96) 78%,transparent);font-size:9.5px}
.world-stage[data-size=narrow][data-world-view] .atlas-subject i{display:inline}
.world-stage[data-size=narrow][data-world-view] .atlas-row{height:34px;gap:10px;padding:0 6px;border-radius:9px}
.world-stage[data-size=narrow][data-world-view] .atlas-row-thumb{width:36px;height:23px;border-radius:5px;font-size:9px}
.world-stage[data-size=narrow][data-world-view] .atlas-row-title{font-size:15px}
.world-stage[data-size=narrow][data-world-view] .atlas-row-mark{width:9px;height:9px}
.world-stage[data-size=narrow][data-world-view] .atlas[data-open] .atlas-detail{height:var(--card);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);background:linear-gradient(160deg,rgb(14 26 38 / .84),rgb(4 9 15 / .9));box-shadow:inset 0 0 0 1px rgb(225 244 252 / .16),0 18px 40px rgb(0 0 0 / .5)}
@media(min-width:701px){
 .world-stage[data-size=narrow][data-world-view] .atlas-list{columns:auto}
 .world-stage[data-size=narrow][data-world-view] .atlas-row{height:36px}
 .world-stage[data-size=narrow][data-world-view] .atlas-row-title{font-size:15.5px}
 .world-stage[data-size=narrow][data-world-view] .atlas{inset:auto 12px var(--views-bottom,58px) 12px}
}

/* ---- The list and the card trading places (narrow Universe) ---- */
.world-stage[data-size=narrow][data-world-view] .atlas-list{transition:opacity .19s ease,transform .19s cubic-bezier(.4,0,1,1),filter .19s ease;transform-origin:50% 100%}
.world-stage[data-size=narrow][data-world-view] .atlas.is-list-leaving .atlas-list{opacity:0;transform:translateY(14px) scale(.965);filter:blur(3px)}
.world-stage[data-size=narrow][data-world-view] .atlas.is-list-returning .atlas-list{animation:atlas-list-return .5s cubic-bezier(.2,.8,.2,1) both}
.world-stage[data-size=narrow][data-world-view] .atlas[data-open] .atlas-detail.is-arriving{overflow:hidden;animation:atlas-card-grow .62s cubic-bezier(.2,.9,.2,1) both}
.world-stage[data-size=narrow][data-world-view] .atlas[data-open] .atlas-detail.is-arriving>*{animation:atlas-card-part .55s cubic-bezier(.2,.8,.2,1) both}
.world-stage[data-size=narrow][data-world-view] .atlas-detail.is-arriving>:nth-child(1){animation-delay:.12s}
.world-stage[data-size=narrow][data-world-view] .atlas-detail.is-arriving>:nth-child(2){animation-delay:.17s}
.world-stage[data-size=narrow][data-world-view] .atlas-detail.is-arriving>:nth-child(3){animation-delay:.22s}
.world-stage[data-size=narrow][data-world-view] .atlas-detail.is-arriving>:nth-child(4){animation-delay:.28s}
.world-stage[data-size=narrow][data-world-view] .atlas-detail.is-arriving>:nth-child(5){animation-delay:.34s}
.world-stage[data-size=narrow][data-world-view] .atlas-detail.is-arriving>:nth-child(n+6){animation-delay:.4s}
.world-stage[data-size=narrow][data-world-view] .atlas[data-open] .atlas-detail.is-leaving{overflow:hidden;animation:atlas-card-shrink .23s cubic-bezier(.4,0,1,1) both}
/* a line of light crosses the top edge as the card arrives */
.world-stage[data-size=narrow][data-world-view] .atlas-detail::before{position:absolute;z-index:2;top:0;right:18px;left:18px;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#8ff3ff,#a66bff,#ff5fd2,transparent);content:"";opacity:0;transform:scaleX(.1);pointer-events:none}
.world-stage[data-size=narrow][data-world-view] .atlas-detail.is-arriving::before{animation:atlas-card-light .95s cubic-bezier(.2,.8,.2,1) .05s both}
@keyframes atlas-card-grow{from{height:var(--panel);opacity:0;transform:translateY(10px)}55%{opacity:1}to{height:var(--card);opacity:1;transform:none}}
@keyframes atlas-card-shrink{from{height:var(--card);opacity:1}to{height:var(--panel);opacity:0;transform:translateY(8px)}}
@keyframes atlas-card-part{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes atlas-card-light{0%{opacity:0;transform:scaleX(.1)}35%{opacity:1}100%{opacity:0;transform:scaleX(1)}}
@keyframes atlas-list-return{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}

/* The card opens out of the chosen row and closes back into it (narrow Universe). Motion is driven from world-views.js. */
.world-stage[data-size=narrow][data-world-view] .atlas{min-height:var(--panel)}
.world-stage[data-size=narrow][data-world-view] .atlas[data-open] .atlas-detail,
.world-stage[data-size=narrow][data-world-view] .atlas.is-swapping .atlas-detail{position:absolute;top:auto;right:0;bottom:0;left:0;z-index:5;height:var(--card);will-change:clip-path}
.world-stage[data-size=narrow][data-world-view] .atlas.is-swapping .atlas-list{display:block!important}
.world-stage[data-size=narrow][data-world-view] .atlas.is-swapping .atlas-detail{overflow:hidden}
.atlas-scan{position:absolute;z-index:6;top:0;right:0;left:0;height:2px;background:linear-gradient(90deg,transparent,#8ff3ff 18%,#a66bff 50%,#ff5fd2 82%,transparent);box-shadow:0 0 16px 3px rgb(166 107 255 / .75),0 10px 34px 10px rgb(143 243 255 / .2);opacity:0;pointer-events:none}

/* ================= Atlas on narrow stages: the same design as the Universe =================
   The current World's moving picture fills the whole stage to every edge, with its name over it. The small list
   sits at the bottom with Find a World above it; choosing a World opens its card out of its row, as in the Universe. */
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen{position:absolute;inset:0;z-index:1;width:auto;height:100%;border:0;border-radius:0;box-shadow:none;cursor:default}
.world-stage[data-size=narrow][data-world-view=universe] .sfi-world-parallax>.atlas-screen{display:none}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .atlas-veil{background:linear-gradient(to bottom,rgb(0 3 7 / .82) 0,rgb(0 3 7 / .3) 24%,transparent 40%,rgb(0 3 7 / .5) 62%,rgb(0 3 7 / .96) 100%)}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen[data-access=premium] .atlas-veil{background:linear-gradient(to bottom,rgb(0 3 7 / .82) 0,rgb(0 3 7 / .3) 24%,transparent 40%,rgb(26 8 54 / .5) 62%,rgb(18 5 40 / .97) 100%)}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .sfi-parallax-premium-ring{display:none}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .atlas-copy{right:108px;bottom:calc(var(--panel) + 66px);left:18px;gap:5px;transition:opacity .3s ease}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .atlas-title{font-size:30px;line-height:1.04}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .atlas-subtitle{font-size:10px}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .atlas-facts{display:flex;margin-top:2px}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .atlas-level{display:none}
.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .atlas-enter{top:auto;left:auto;right:14px;bottom:calc(var(--panel) + 68px);padding:10px 17px;transition:opacity .3s ease}
.world-stage[data-size=narrow][data-open] .sfi-world-parallax>.atlas-screen .atlas-copy,.world-stage[data-size=narrow][data-open] .sfi-world-parallax>.atlas-screen .atlas-enter{opacity:0;pointer-events:none}
.world-stage[data-size=narrow][data-world-view=atlas] .atlas-search{display:flex;height:38px;margin:0 0 6px;border-radius:12px;background:linear-gradient(160deg,rgb(14 26 38 / .78),rgb(4 9 15 / .84));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.world-stage[data-size=narrow][data-world-view=atlas] .atlas[data-open] .atlas-search{visibility:hidden}
@media(min-width:701px){.world-stage[data-size=narrow] .sfi-world-parallax>.atlas-screen .atlas-title{font-size:36px}}

.atlas-detail-close{flex:none;white-space:nowrap}
.atlas-detail-kind{min-width:0}
.world-stage[data-size=narrow][data-world-view=atlas] .sfi-world-parallax>.atlas-screen{display:block}

/* A quiet text link to the public Library, beneath the tool cards */
.library-link{flex:none;margin:8px 0 0;padding:0 2px;font:400 11.5px/1.4 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.01em;text-align:right}
.library-link a{color:#8494a4;text-decoration:none;border-bottom:1px solid rgb(132 148 164 / .35)}
.library-link a:hover,.library-link a:focus-visible{color:#c9d6e2;border-bottom-color:rgb(201 214 226 / .6)}

/* The old parallax scene still holds the page header; it must not catch clicks meant for the Universe or the Atlas. */
.world-stage.atlas-on .sfi-parallax-scene,.world-stage.atlas-on .sfi-parallax-header{pointer-events:none!important}
.world-stage.atlas-on .sfi-parallax-header a,.world-stage.atlas-on .sfi-parallax-header button{pointer-events:auto!important}
@media(min-width:901px){.library-link{margin:12px 0 -11px}}

/* The Universe and Atlas replace the World Parallax cards on the homepage. The cards are hidden from the first paint,
   not only after world-views.js mounts, so a slow load never shows them for a moment. */
.world-stage .sfi-parallax-universe,.world-stage .sfi-parallax-depth-control{visibility:hidden!important}
/* The list panel sits the same distance from the sides as from the bottom */
.world-stage[data-size=narrow][data-world-view] .atlas{inset:auto 8px 8px 8px}
@media(min-width:701px){.world-stage[data-size=narrow][data-world-view] .atlas{inset:auto 12px 12px 12px}}

/* Sharp previews fade in over the small ones */
.atlas-film-hd{opacity:0;transition:opacity .4s ease}
.atlas-screen.has-sharp .atlas-film-hd{opacity:1}
@media(prefers-reduced-motion:reduce){.atlas-film-hd{display:none}}
