/* HOME only: the game, party overlays and their corrected history keep their styles. */
.home-screen{--world-gold:#e3bc71;color:#f2efe7;background:#061b30;padding:28px clamp(20px,4vw,80px);display:none;overflow:hidden;align-content:start;}
.home-screen.is-active{display:block}.home-screen::before,.home-screen::after{display:none}
.world-backdrop{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse at 75% 30%,#214961 0,#0b263e 42%,#05182b 75%)}
.world-backdrop img{position:absolute;right:0;top:25px;width:min(100%,var(--native-width));height:auto;max-height:var(--native-height);object-fit:contain;opacity:.78;mask-image:linear-gradient(to bottom,#000 0%,#000 60%,transparent 100%);}
.world-backdrop div{position:absolute;inset:0;background:linear-gradient(90deg,#061b30 0,rgba(6,27,48,.95) 22%,rgba(6,27,48,.25) 65%),linear-gradient(0deg,#061b30 0,transparent 70%)}
.home-screen .site-header{max-width:1700px;width:100%;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:0 0 22px;border-bottom:1px solid #d5b37730;background:none;box-shadow:none;}
.home-screen .brand{color:#f4e4c6}.home-screen .brand-mark{background:transparent;color:var(--world-gold);border:1px solid #d5b37766;box-shadow:none}.home-screen .brand-name{font-family:var(--font-display);font-size:23px;font-weight:400}
.home-screen .site-nav{gap:24px}.home-screen .site-nav a{color:#e7e6df;font-size:14px}
.ambience-controls{display:flex;flex-wrap:wrap;gap:10px;max-width:360px;justify-content:flex-end;align-items:center}.ambience-controls label{display:flex;align-items:center;gap:7px;font-size:11px;color:#d0d7df}.ambience-controls select{font:inherit;font-size:12px;color:#f0ddb9;background:#102e45;border:1px solid #ccac6b66;border-radius:30px;padding:8px;max-width:155px}.ambience-controls #ambienceStatus{flex-basis:100%;text-align:right;font-size:10px;color:#c3ced9}
.home-screen .home-main{width:100%;max-width:1700px;margin:auto;display:block}.world-stage{display:grid;grid-template-columns:350px minmax(0,1fr);gap:3vw;align-items:start;min-height:0;padding:24px 0 28px}
.world-copy{position:relative;min-width:0}.world-kicker{color:var(--world-gold);font-size:10px;letter-spacing:.16em;text-transform:uppercase;margin:0 0 22px;font-weight:600}
.world-copy h1{font-family:var(--font-display);font-weight:400;font-size:clamp(50px,4.4vw,68px);line-height:1.03;letter-spacing:-.04em;margin:0 0 24px;color:#f3ede2}.world-copy h1 em{font-style:normal;color:var(--world-gold)}
.world-lead{font-size:clamp(14px,1.3vw,19px);color:#d3dce4;margin:0 0 30px}.world-actions{display:flex;gap:13px;flex-wrap:wrap}.world-primary,.world-secondary{border-radius:7px;padding:14px 24px;font-weight:600;font-size:14px;cursor:pointer;min-height:48px}.world-primary{background:linear-gradient(#efd59a,#cda256);border:1px solid #f0d5a1;color:#162a38;box-shadow:0 6px 25px #040e2040;min-width:170px;display:flex;justify-content:space-between;gap:20px}.world-secondary{background:#102d43cc;color:#f4e0b8;border:1px solid #c5a46577}.home-screen button:hover{border-color:#f0d5a1}
.home-screen button:focus-visible,.home-screen select:focus-visible,.home-screen summary:focus-visible,.home-screen a:focus-visible{outline:2px solid #f7d99a;outline-offset:5px}
#allModes{margin:20px 0 30px;font-size:13px;color:#d4dce3}summary{cursor:pointer}#allModes summary{list-style:none;display:inline-flex;gap:32px}#allModes .play-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;width:100%;min-width:0;background:#102b42;border:1px solid #c5a46555;color:#eee;padding:18px;margin:15px 0;box-shadow:none}#allModes .play-controls h2{color:#eee;font-size:19px}#allModes .mode-list{grid-template-columns:minmax(0,1fr);min-width:0;width:100%;gap:12px}#allModes .mode-option{width:100%;min-width:0;height:auto;grid-template-columns:minmax(0,1fr);background:#16394e;color:#eee;border-color:#5b6770}#allModes .mode-option strong,#allModes .mode-option span{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}#allModes .mode-option.is-active{background:#274958;border-color:#e3bc71}#allModes .mode-option span{color:#ced9df}
.daily-card{display:flex;gap:18px;border:1px solid #c6a46a55;border-radius:12px;background:linear-gradient(120deg,#173449e8,#102a40e0);padding:21px;max-width:435px;box-shadow:0 14px 35px #020f2040}.daily-symbol{font-size:50px;color:var(--world-gold);line-height:1.3}.daily-card .world-kicker{font-size:8px;margin:0 0 7px}.daily-card h2{font:400 26px var(--font-display);color:#efd9af;margin:0 0 8px}.daily-card p:not(.world-kicker){font-size:12px;line-height:1.6;color:#cfd9e2;margin:0 0 13px}.daily-card button{background:none;border:0;padding:0;color:#e9c786;font-size:12px;cursor:pointer}.daily-card button:disabled{opacity:.5;cursor:default}
.home-screen .world-carousel{margin:0;padding:0;min-width:0;text-align:center}.world-carousel>.world-kicker{margin-bottom:12px}.world-carousel>h2{font:400 23px var(--font-display);color:#efe1c8;margin:0 0 15px}
.home-screen .section-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);gap:0;align-items:end;min-width:0;touch-action:pan-y}
.world-universe{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0 0 18px;min-width:0;border:0;background:none;color:#eee;cursor:pointer}.world-scene{display:block;width:min(100%,var(--native-width));height:auto;max-height:var(--native-height);object-fit:contain;transform:none!important;filter:none!important}.world-universe.is-side{padding-bottom:22px}.world-universe.is-side .world-scene{width:min(100%,var(--native-width))}.world-universe.is-center .universe-name{border-color:#ddb36b99;background:#213d52dd;color:#f1d399}.universe-name{font-size:12px;padding:10px 9px;border:1px solid #bda57166;border-radius:7px;background:#0d2b42d9;max-width:95%;min-height:42px;display:flex;align-items:center;justify-content:center}.universe-count{font-size:9px;letter-spacing:.03em;color:#becbd5;margin-top:10px}
.carousel-controls{display:flex;gap:27px;justify-content:center;align-items:center;margin:14px 0 20px;font-size:11px;color:#b9cbd8}.carousel-controls button{border:1px solid #c4a56655;border-radius:50%;width:40px;height:40px;color:#e4c68c;background:#153247;cursor:pointer;font-size:20px}.universe-directory{font-size:12px;color:#dfc591}.universe-directory summary{display:inline-block;border-bottom:1px solid #cfac6544;padding-bottom:6px}.universe-directory>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:20px;background:#0a243be8;border-radius:10px;margin-top:12px}.universe-directory button,.universe-directory p{margin:0;padding:12px;color:#e6dfd0;font-size:12px;background:#17364b;border:1px solid #c4a56633;border-radius:6px}.universe-directory p{color:#a6b5c3}
.home-screen .game-note{color:#a2b7c9;font-size:11px;text-align:center;margin:25px 0}.home-screen .load-error{background:#501e28;color:#fff}.home-screen .resume-card,.home-screen .local-progress,.home-screen .language-lab-intro{background:#123149;color:#e4e4df;border-color:#c5a46555;margin:20px 0}.home-screen .resume-card h2,.home-screen .local-progress h2,.home-screen .language-lab-intro h3{color:#efd5a5}
.home-screen .key-numbers{background:#123149;border-color:#c5a46533;margin:50px 0;color:#e9d0a0;box-shadow:none}.home-screen .key-numbers small{color:#aebecd}.home-screen .about-section{color:#bccbd8;margin-top:70px}.home-screen .about-section h2{color:#edd9b6}.home-screen .about-belief{background:#123149;color:#cbd6df;border-color:#c5a46544}.home-screen .about-belief h3{color:#e9d0a0}.home-screen .about-closing{background:#102a40;color:#d0dbe3}.home-screen .final-cta,.home-screen .language-discovery{background:#102b41;color:#d8e0e7;border-color:#c5a46544}.home-screen .final-cta h2{color:#e9d0a0}.home-screen .hero-cta{background:#d8b16b;color:#142b3f}.home-screen .site-footer{color:#aebdcb;border-color:#c5a46533}
@media(min-width:1700px){.world-stage{gap:7vw}.world-carousel{max-width:1000px}}
@media(max-width:1100px){.home-screen .site-header{flex-wrap:wrap}.home-screen .site-nav{order:3;width:100%;justify-content:center}.world-stage{grid-template-columns:minmax(285px,.8fr) minmax(0,1.1fr);gap:22px}.world-copy h1{font-size:58px}.world-actions{gap:10px}.world-primary,.world-secondary{padding:13px 16px}.universe-name{font-size:10px}}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){.home-screen{padding:20px}.home-screen .site-header{gap:18px}.home-screen .brand-name{font-size:19px}.home-screen .site-nav{gap:22px;font-size:12px}.ambience-controls{max-width:220px;gap:6px}.ambience-controls label{font-size:9px}.ambience-controls select{max-width:119px;padding:7px;font-size:10px}.world-stage{display:flex;flex-direction:column;align-items:stretch;gap:32px;padding:24px 0 10px;min-height:0}.world-copy h1{font-size:58px}.world-copy .world-kicker{font-size:9px}.world-lead{font-size:14px}.world-actions{flex-wrap:nowrap}.world-primary,.world-secondary{font-size:12px;min-width:0;flex:1;padding:12px}.daily-card{max-width:none;padding:18px}.world-carousel>h2{font-size:22px}.home-screen .section-list{display:flex;justify-content:center}.world-universe.is-side{display:none}.world-universe.is-center{width:100%;max-width:410px}.world-scene{width:min(100%,var(--native-width));max-width:410px}.universe-name{font-size:13px}.universe-count{font-size:11px}.carousel-controls{margin-top:0}.universe-directory>div{grid-template-columns:1fr}.home-screen .key-numbers{margin-top:40px}.world-backdrop img{top:180px;right:-80px}.world-backdrop div{background:linear-gradient(0deg,#061b30,rgba(6,27,48,.45) 65%,#061b30)} }
@media(max-width:420px){.home-screen .site-header{align-items:start}.ambience-controls{max-width:155px}.ambience-controls label{width:100%;justify-content:space-between}.home-screen .site-nav{gap:18px}.world-copy h1{font-size:52px}.world-actions{gap:8px}.world-primary,.world-secondary{padding:12px 9px}.daily-symbol{font-size:38px}}
.daily-preview{width:min(90px,var(--native-width,90px));height:auto;max-height:var(--native-height,110px);object-fit:contain;align-self:center;border-radius:7px}.daily-card>div{min-width:0}@media(min-width:1101px){.world-actions{flex-direction:column;align-items:flex-start}.world-primary,.world-secondary{width:240px;justify-content:space-between}.home-screen .world-carousel{padding-top:32px}}
/* Keep the retained HOME panels on the same dark surfaces with readable copy. */
.home-screen .eyebrow,
.home-screen .about-belief-kicker,
.home-screen .about-ambition span{color:#e3bc71}
.home-screen .resume-card p:not(.eyebrow),
.home-screen .local-progress-stats small,
.home-screen .progression-summary small,
.home-screen .about-intro > p:not(.eyebrow),
.home-screen .about-belief > p:last-child,
.home-screen .about-closing > p,
.home-screen .final-cta p:not(.eyebrow),
.home-screen .language-discovery > p{color:#d0dbe5}
.home-screen .resume-actions .button-outline{background:#173a51;color:#f1ddb8;border-color:#a88c5a}
.home-screen .progression-summary > span{background:#1b3c52;border-color:#a88c5a66}
.home-screen .local-progress-stats strong,
.home-screen .progression-summary strong{color:#efd5a5}
.home-screen .local-progress-stats span{border-color:#a88c5a66}
.home-screen .about-section{background:#123149;border-color:#a88c5a55}
.home-screen .about-belief h3 em,
.home-screen .about-closing strong{color:#efd5a5}
.home-screen .about-belief-number{color:#e3bc7133}

/* HOME panels must fit the content column, including their expanded states. */
.home-screen .resume-card,.home-screen .local-progress,.home-screen .language-lab-intro,
.home-screen .key-numbers,.home-screen .about-section,.home-screen .final-cta,
.home-screen .language-discovery{width:100%;min-width:0}
.home-screen .language-lab-grid section{min-width:0;background:#edf2f5;color:#142b3f}
.home-screen .language-lab-grid h4,.home-screen .language-lab-grid p,
.home-screen .language-lab-grid strong{color:#142b3f;overflow-wrap:anywhere}
.home-screen .language-lab-lead,.home-screen .language-lab-philosophy{color:#d0dbe5}
.home-screen .language-lab-philosophy strong{color:#efd5a5}
.home-screen .universe-directory button,.home-screen .universe-directory p,
.home-screen .universe-name{min-width:0;white-space:normal;overflow-wrap:anywhere}
/* UX/UI HOME tokens and composition. Game screens deliberately keep their existing styles. */
.home-screen{
 --world-gold:#E6C47E;--home-bg:#071D2B;--home-surface:#102D3E;--home-raised:#1B3C4C;--home-paper:#FAF5EB;--home-text:#CFD7D8;--home-muted:#96ADB7;
 background:var(--home-bg);color:var(--home-text);font-family:var(--font-ui);padding:24px max(20px,calc((100vw - 1296px)/2));
}
.home-screen .home-main,.home-screen .site-header{max-width:1296px}
.home-screen .site-header{min-height:56px;padding:0 0 24px;gap:32px;position:relative;z-index:3}
.home-screen .site-header .brand-mark{display:none}
.home-screen .brand-name{font:400 28px var(--font-display);color:var(--home-paper);white-space:normal}
.home-screen .site-nav{margin-left:auto;gap:48px}
.home-screen .site-nav a{font-size:14px;color:var(--home-text);min-height:44px;display:flex;align-items:center}
.home-screen summary{list-style:none;min-height:44px;cursor:pointer;display:flex;align-items:center}
.home-screen summary::-webkit-details-marker{display:none}
.ambience-menu{position:relative;color:var(--world-gold);font-size:14px}
.ambience-menu>summary{background:var(--home-surface);border-radius:24px;padding:0 24px;gap:4px;min-width:170px;justify-content:center}
.ambience-menu .ambience-controls{position:absolute;right:0;top:52px;width:280px;max-width:calc(100vw - 40px);display:grid;padding:20px;background:var(--home-surface);border:1px solid var(--home-muted);border-radius:16px;box-shadow:0 16px 32px #0008;gap:12px}
.ambience-controls label{font-size:14px;justify-content:space-between}
.ambience-controls select{font-size:14px;min-height:44px;border-radius:10px;padding:8px;max-width:170px}
.ambience-controls #ambienceStatus{font-size:12px;text-align:left;color:var(--home-text)}
.mobile-navigation{display:none}
.world-backdrop{background:var(--home-bg)}
.world-backdrop img{top:0;right:0;opacity:1;max-width:var(--native-width);max-height:var(--native-height)}
.world-backdrop div{background:linear-gradient(90deg,#071d2bda,transparent 62%),linear-gradient(0deg,#071d2b 0%,#071d2b00 65%)}
.world-stage{display:grid;grid-template-columns:352px minmax(0,1fr);column-gap:64px;row-gap:32px;padding:56px 0 32px;align-items:start}
.world-copy{grid-column:1;grid-row:1}
.world-copy .world-kicker{font-size:12px;letter-spacing:.025em;margin-bottom:24px;line-height:1.5}
.world-copy h1{font-size:62px;line-height:1.14;letter-spacing:-.025em;color:var(--home-paper);margin-bottom:24px}
.world-lead{font-size:24px;line-height:1.4;max-width:310px;margin-bottom:32px;color:var(--home-text)}
.world-actions{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.world-primary,.world-secondary{width:100%;min-height:56px;border-radius:10px;padding:14px 20px;font-size:18px;line-height:1.35;justify-content:center;flex:none}
.world-primary{background:var(--world-gold);color:var(--home-bg);border-color:var(--world-gold);box-shadow:none;gap:12px}
.world-secondary{background:#071d2be6;color:var(--home-paper);border-color:var(--world-gold)}
#allModes{margin:12px 0 0;color:var(--world-gold);font-size:14px}
#allModes summary{gap:12px;min-height:44px}
#allModes .play-controls{background:var(--home-surface);border-radius:16px;gap:16px;margin-top:8px}
#allModes .mode-option{min-height:84px;border-radius:16px;background:var(--home-raised)}
#allModes .mode-option strong{font-size:18px;color:var(--home-paper)}
#allModes .mode-option span{font-size:14px;color:var(--home-text)}
#allModes .mode-option.is-active{border-color:var(--world-gold);background:#264b5a}
#allModes .world-secondary{font-size:14px;min-height:48px}
.home-screen .world-carousel{grid-column:2;grid-row:1 / span 3;padding:0;text-align:center}
.world-carousel>h2{font:700 12px var(--font-ui);text-transform:uppercase;letter-spacing:.025em;text-align:left;margin:0 0 48px;padding-left:40px;color:var(--world-gold)}
.home-screen .section-list{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr);align-items:end;gap:0}
.world-universe{position:relative;border:0;padding:0;background:transparent;color:var(--home-text);gap:16px}
.world-universe.is-side{padding:0 0 116px}
.world-scene{width:min(100%,var(--native-width));max-width:382px;max-height:var(--native-height);object-fit:contain;filter:none!important;transform:none!important}
.world-universe.is-center{z-index:1}
.world-universe.is-side .world-scene{width:min(100%,var(--native-width))}
.universe-name{width:100%;max-width:100%;padding:12px 8px;font-size:14px;min-height:44px;border-radius:10px;color:var(--home-text);background:var(--home-surface);border-color:#254657}
.world-universe.is-center .universe-name{font:400 24px var(--font-display);color:var(--home-paper);background:var(--home-surface);border:1px solid var(--world-gold);border-radius:16px 16px 0 0;border-bottom:0;min-height:52px;padding:14px 12px 0}
.world-universe.is-center .universe-count{background:var(--home-surface);border:1px solid var(--world-gold);border-top:0;border-radius:0 0 16px 16px;width:100%;font-size:12px;color:var(--world-gold);padding:8px 12px 24px;margin:-16px 0 0;min-height:48px}
.world-universe.is-side .universe-count{display:none}
.carousel-controls{justify-content:space-evenly;margin:32px 0 8px;gap:24px;font-size:14px;color:var(--home-muted)}
.carousel-controls button{width:48px;height:48px;min-width:48px;border-radius:10px;font-size:24px;color:var(--home-paper);background:var(--home-surface);border:1px solid #254657}
.universe-directory{font-size:14px;color:var(--world-gold)}
.universe-directory summary{display:inline-flex;padding:0;min-height:44px;border:0}
.universe-directory button,.universe-directory p{font-size:14px;line-height:1.5;min-height:48px;background:var(--home-surface);white-space:normal}
.daily-card{grid-column:1;grid-row:2;width:100%;max-width:none;background:var(--home-surface);border:1px solid #254657;border-radius:16px;padding:16px;gap:16px;box-shadow:none}
.daily-preview{width:min(92px,var(--native-width,92px));max-height:var(--native-height,110px);align-self:flex-start;border-radius:0}
.daily-card .world-kicker{font-size:12px;line-height:1.5;margin-bottom:12px;letter-spacing:0}
.daily-card h2{font:400 20px/1.3 var(--font-display);color:var(--home-paper);margin-bottom:8px}
.daily-card p:not(.world-kicker){font-size:12px;line-height:1.5}
.daily-card button{font-size:14px;font-weight:700;min-height:44px;color:var(--world-gold);text-align:left}
.home-screen .world-copy .resume-card{padding:16px;margin:16px 0 0;display:flex;flex-wrap:wrap;gap:12px;background:var(--home-surface);border:1px solid #254657;border-radius:16px}
.home-screen .resume-card[hidden]{display:none!important}
.world-copy .resume-card h2{font:400 20px var(--font-display);margin:0 0 8px}
.world-copy .resume-card p{font-size:14px;line-height:1.5;margin:0}
.world-copy .resume-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;width:100%}
.world-copy .resume-actions button{min-height:44px;font-size:14px;padding:10px;border-radius:10px;color:var(--home-paper);background:var(--home-raised);border:1px solid var(--home-muted);box-shadow:none}
.home-secondary{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;margin:16px 0 24px}
.home-secondary button,.home-secondary a{font:400 14px var(--font-ui);min-height:44px;padding:12px;border:1px solid #254657;border-radius:10px;background:var(--home-surface);color:var(--world-gold);cursor:pointer}
.home-screen .language-lab-grid section{background:var(--home-paper);color:var(--home-bg);border-radius:16px}
.home-screen .language-lab-grid h4,.home-screen .language-lab-grid p,.home-screen .language-lab-grid strong{color:var(--home-bg)}
.home-screen .local-progress,.home-screen .language-lab-intro,.home-screen .about-section,.home-screen .key-numbers,.home-screen .final-cta{background:var(--home-surface);border-radius:24px}
.home-screen .language-lab-close{min-width:44px;min-height:44px}
.home-screen button:focus-visible,.home-screen a:focus-visible,.home-screen summary:focus-visible,.home-screen select:focus-visible{outline:2px solid var(--world-gold);outline-offset:3px}
.home-screen button:hover{transform:none!important;filter:none!important}
@media(min-width:1700px){.world-stage{gap:32px 64px}.world-carousel{max-width:none}.home-screen .section-list{grid-template-columns:minmax(0,1fr) 382px minmax(0,1fr)}}
@media(max-width:1100px) and (min-width:901px){.world-stage{grid-template-columns:310px minmax(0,1fr);gap:32px}.world-copy h1{font-size:52px}.home-screen .site-nav{gap:24px}.home-screen .brand-name{font-size:24px}}
@media(max-width:900px){
 .home-screen{padding:20px}.home-screen .site-header{flex-wrap:nowrap;gap:12px;padding-bottom:20px;min-height:44px;align-items:center}
 .home-screen .site-header .brand-name{font-size:20px;white-space:nowrap}.home-screen .site-nav{display:none}
 .ambience-menu{position:absolute;right:0;top:64px;z-index:3}.ambience-menu>summary{min-width:0;padding:0 12px;font-size:12px;background:var(--home-surface)}
 .mobile-navigation{display:block;color:var(--world-gold)}.mobile-navigation>summary{font-size:30px;min-width:44px;justify-content:center}
 .mobile-navigation nav{position:absolute;right:0;top:64px;width:250px;background:var(--home-surface);border:1px solid var(--home-muted);border-radius:16px;padding:12px;display:grid;z-index:4}
 .mobile-navigation a,.mobile-navigation button{padding:12px;min-height:44px;color:var(--home-paper);background:transparent;border:0;text-align:left;font:400 16px var(--font-ui)}
 .world-stage{display:grid;grid-template-columns:minmax(0,1fr);padding:48px 0 16px;gap:24px}
 .world-copy{grid-column:1;grid-row:1}.world-copy .world-kicker{font-size:12px;margin-bottom:16px}
 .world-copy h1{font-size:36px;line-height:1.2;margin-bottom:16px;letter-spacing:0}
 .world-lead{font-size:16px;max-width:none;margin-bottom:24px;line-height:1.5}
 .world-actions{flex-direction:column;gap:12px}.world-primary,.world-secondary{font-size:18px;min-height:52px;flex:none;padding:12px}
 #allModes{margin:0}#allModes .play-controls{width:100%;margin:8px 0 16px}
 .home-screen .world-carousel{grid-column:1;grid-row:2;width:100%;padding:0;position:relative}
 .world-carousel>h2{font-size:12px;padding:0;margin:0 0 24px;text-align:left}
 .home-screen .section-list{display:flex;justify-content:center}
 .world-universe.is-side{display:none}.world-universe.is-center{max-width:none;width:100%}
 .world-universe.is-center .world-scene{width:min(260px,var(--native-width));max-height:var(--native-height)}
 .world-universe.is-center .universe-name{background:none;border:0;border-radius:0;font-size:24px;min-height:0;padding:0}
 .world-universe.is-center .universe-count{background:none;border:0;border-radius:0;color:var(--home-muted);font-size:14px;padding:0;margin:0;min-height:0}
 .carousel-controls{margin:16px 0 0;min-height:48px}
 .carousel-controls button{position:absolute;top:calc(48px + 106px);width:44px;height:44px;min-width:44px}
 #universePrevious{left:0}#universeNext{right:0}
 .universe-directory summary{font-size:14px}.universe-directory>div{grid-template-columns:1fr;padding:12px}
 .daily-card{grid-row:3;grid-column:1;padding:12px;gap:12px;align-items:center}
 .daily-preview{width:min(58px,var(--native-width,58px));align-self:center}
 .daily-card h2,.daily-card #dailyDescription{display:none}.daily-card .world-kicker{font-size:12px;margin-bottom:0}
 .daily-card button{font-size:16px}.world-backdrop img{top:0;right:0}
 .world-backdrop div{background:linear-gradient(0deg,#071d2b 0%,#071d2b44 80%)}
 .home-screen .world-copy .resume-card{padding:12px}.home-secondary{gap:12px;margin-top:16px}
}
@media(max-width:370px){.home-screen{padding:16px}.home-screen .site-header .brand-name{font-size:18px}.world-copy h1{font-size:34px}.world-universe.is-center .world-scene{width:min(236px,var(--native-width))}}
@media(prefers-reduced-motion:reduce){.home-screen *, .home-screen *::before,.home-screen *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.world-lead span{display:block}@media(max-width:900px){.world-lead span{display:inline}}
.carousel-controls button{position:relative;z-index:2}@media(max-width:900px){.carousel-controls button{position:absolute}.world-universe.is-center .world-scene{width:min(260px,calc(100% - 96px),var(--native-width))}}
.home-dialog{max-width:min(480px,calc(100vw - 40px));padding:24px;border:1px solid var(--world-gold);border-radius:24px;background:var(--home-surface);color:var(--home-paper)}.home-dialog::backdrop{background:#071d2bd9}.home-dialog h2{font:400 28px var(--font-display);color:var(--home-paper)}.home-dialog p{font-size:16px;line-height:1.5}.home-dialog>div{display:grid;gap:12px}.home-dialog button{min-height:48px;padding:12px;border:1px solid var(--world-gold);border-radius:10px;background:var(--home-raised);color:var(--home-paper)}#replaceConfirm{background:var(--world-gold);color:var(--home-bg)}
.universe-mobile-index{display:none}@media(max-width:900px){.home-screen .site-header{padding-bottom:0}.world-stage{padding-top:24px}.world-copy h1{line-height:1.1;margin-bottom:12px}.world-lead{margin-bottom:16px}.universe-selection-label{display:none}.universe-mobile-index{display:inline}.carousel-controls{height:0;min-height:0;margin:0}#universePosition{display:none}.mobile-navigation #allModes summary,.mobile-navigation .universe-directory summary{display:flex;min-height:44px;font-size:16px;color:var(--home-paper);padding:12px}.mobile-navigation nav{max-height:calc(100vh - 120px);overflow-y:auto}.mobile-navigation #allModes .world-secondary{width:100%}.mobile-navigation .universe-directory{font-size:14px}}
@media(max-width:900px){.mobile-navigation .ambience-menu{position:static}.mobile-navigation .ambience-menu>summary{border-radius:10px;justify-content:flex-start;padding:12px;font-size:14px;flex-wrap:wrap}.mobile-navigation .ambience-controls{position:static;width:100%;padding:12px;box-shadow:none;margin-top:8px}.mobile-navigation .ambience-controls select{max-width:145px}.world-backdrop img{mask-image:linear-gradient(to bottom,#000 0%,#0008 40%,transparent 100%)}}

/* A stable scene above a compact service band. Only HOME and its secondary page. */
.home-screen .world-stage{grid-template-columns:minmax(320px,.85fr) minmax(0,1.65fr);gap:32px;padding:28px 0 24px;align-items:center}
.home-screen .world-copy{grid-column:1;grid-row:1;padding:28px;background:var(--home-bg);border-radius:24px;box-shadow:0 0 56px 30px #071d2b;min-width:0;z-index:1}
.world-copy h1{font-size:clamp(42px,4.2vw,62px);overflow-wrap:normal}
.world-lead{font-size:20px;max-width:none;margin-bottom:24px}
.home-screen .world-carousel{grid-column:2;grid-row:1;position:relative;align-self:start;min-width:0}
.world-carousel>h2{display:table;color:var(--home-paper);background:#071d2bf2;border:1px solid #44606c;border-radius:12px;padding:12px 18px;margin:0 auto 16px;line-height:1.5;font-size:13px}
.world-backdrop img{top:60px;right:0;object-fit:contain;mask-image:linear-gradient(90deg,transparent,#000 30%,#000 95%,transparent);opacity:1}
.world-backdrop div{background:linear-gradient(90deg,#071d2b 0%,#071d2bcc 27%,#071d2b33 70%,#071d2b55),linear-gradient(0deg,#071d2b 0%,#071d2b00 65%,#071d2b55 100%)}
.home-screen .section-list{grid-template-columns:minmax(0,1fr) minmax(0,1.55fr) minmax(0,1fr);align-items:start;gap:8px}
.home-screen .world-universe,.home-screen .world-universe.is-side{padding:0;gap:0;overflow:visible;transform:none!important;box-shadow:none!important}
.scene-anchor{display:flex;position:relative;align-items:flex-end;justify-content:center;width:100%;height:320px;padding-bottom:16px;isolation:isolate}
.scene-anchor::before{content:"";position:absolute;bottom:8px;width:94%;height:28px;border-radius:50%;background:radial-gradient(ellipse,#040f1d99 0%,#17344788 45%,transparent 72%);z-index:-1}
.world-universe.is-side .scene-anchor{padding-bottom:34px}
.world-universe.is-side .world-scene{max-width:240px}
.home-screen .world-scene{display:block;object-fit:contain;max-height:min(300px,var(--native-height));width:min(100%,var(--native-width));height:auto;filter:none!important;transform:none!important}
.home-screen .universe-name,.home-screen .world-universe.is-center .universe-name{height:104px;min-height:104px;width:100%;padding:12px 8px;font-size:14px;line-height:1.35;background:#071d2be8;color:var(--home-paper);border:1px solid #44606c;border-radius:12px;white-space:normal;overflow-wrap:anywhere}
.home-screen .world-universe.is-center .universe-name{font:400 22px/1.25 var(--font-display);border-color:var(--world-gold);padding:8px 52px;border-bottom:0;border-radius:16px 16px 0 0}
.home-screen .world-universe.is-center .universe-count{height:44px;min-height:44px;margin:0;padding:4px 8px 14px;background:#071d2be8;color:var(--world-gold);border-color:var(--world-gold);font-size:12px;line-height:1.4}
.carousel-controls{position:static;margin:12px 0 0;height:24px;min-height:24px;justify-content:center}
.carousel-controls button{position:absolute;top:calc(60px + 320px + 21px);width:44px;height:44px;min-width:44px;border:1px solid #64727a;background:var(--home-surface);color:var(--home-paper)}
#universePrevious{left:29%}#universeNext{right:29%}#universePosition{display:inline;color:var(--home-paper);background:#071d2be8;border-radius:8px;padding:4px 12px}
.universe-mobile-index{display:none}.universe-selection-label{display:inline}
.universe-directory{margin-top:4px}.universe-directory summary{background:#071d2be8;border-radius:10px;padding:0 12px;color:var(--world-gold)}
.home-quick-access{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:16px;padding:16px;background:var(--home-surface);border:1px solid #44606c;border-radius:20px}
.home-quick-access:has(.resume-card:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(190px,.75fr)}
.home-quick-access .daily-card,.home-quick-access .resume-card{grid-column:auto;grid-row:auto;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;margin:0;border:0;background:transparent;box-shadow:none;min-width:0;border-radius:12px}
.home-quick-access .daily-card{flex-wrap:nowrap}.home-quick-access .daily-preview{width:min(64px,var(--native-width));max-height:80px;align-self:center}
.home-quick-access .daily-card h2,.home-quick-access #dailyDescription{display:none}
.home-quick-access .daily-card .world-kicker{font-size:12px;margin:0 0 4px;line-height:1.5}
.home-quick-access .daily-card button{min-height:44px;font-size:16px}
.home-quick-access .resume-card h2{font:400 20px var(--font-display);margin:0 0 8px}
.home-quick-access .resume-card p{font-size:13px;line-height:1.5;margin:0}
.home-quick-access .resume-actions{display:flex;flex-wrap:wrap;gap:8px}
.home-quick-access .resume-actions button{padding:10px;min-height:44px;background:var(--home-raised);color:var(--home-paper);border:1px solid #64727a;box-shadow:none;border-radius:10px;font-size:13px}
.home-quick-access .home-secondary{grid-column:auto;grid-row:auto;margin:0;align-content:center;justify-content:flex-start;gap:8px}
.home-secondary button,.home-secondary a{background:var(--home-bg);color:var(--world-gold);text-decoration:none}
.home-screen .home-secondary-panel{position:relative;max-width:900px;margin:24px auto 0;padding:28px;background:var(--home-surface);border:1px solid #44606c;border-radius:24px;color:var(--home-text);box-shadow:none}
.home-secondary-panel h2,.home-secondary-panel h3{font:400 28px var(--font-display);color:var(--home-paper)}
.secondary-close,.home-screen .language-lab-close{background:var(--home-raised);color:var(--home-paper);border:1px solid #64727a;border-radius:10px;min-height:44px;min-width:44px;font-size:24px}
.home-screen .local-progress.home-secondary-panel{display:block}.home-secondary-panel .progression-summary{margin:20px 0}.home-secondary-panel>div:first-of-type{padding-right:52px}
.home-screen .local-progress:not(.is-open){display:none!important}
.secondary-close{position:absolute;top:20px;right:20px;cursor:pointer}.home-screen .language-lab-pattern{background:var(--home-bg);color:var(--home-paper);border:1px solid #44606c}
.home-screen .language-lab-pattern span{color:var(--home-paper);background:var(--home-raised)}
.home-screen #languageLabStartButton{background:var(--world-gold);color:var(--home-bg);border:1px solid var(--world-gold);box-shadow:none;border-radius:10px;white-space:normal;padding:14px 20px;min-height:48px}
.home-screen .game-note{margin:16px 0;color:var(--home-text)}
.home-screen .site-footer{margin-top:24px;padding-top:20px;color:var(--home-text)}.home-screen .site-footer a{color:var(--world-gold)}.home-screen .site-footer .brand-name{font-size:18px}
.about-page .home-main{max-width:1000px}.about-page .site-header{margin-bottom:32px}.about-page .brand,.about-return{font:400 24px var(--font-display);color:var(--home-paper);text-decoration:none}.about-return{font:400 16px var(--font-ui);padding:12px;border:1px solid var(--world-gold);border-radius:10px}
.about-page .about-section{margin-top:32px}.about-page .key-numbers{margin:32px 0}.about-page .about-section h2{font:400 clamp(30px,4vw,48px) var(--font-display)}.about-page .hero-cta{background:var(--world-gold);color:var(--home-bg)}
.about-page .key-numbers article:nth-child(n){transform:none;grid-row:auto;grid-column:auto}
@media(min-width:901px){.home-screen .site-header{background:#071d2bf5;box-shadow:0 0 24px 16px #071d2bf5}}
@media(min-width:1700px){.home-screen .section-list{grid-template-columns:minmax(0,1fr) minmax(0,1.55fr) minmax(0,1fr)}}
@media(max-width:1100px) and (min-width:901px){.home-screen .world-stage{grid-template-columns:320px minmax(0,1fr);gap:16px}.home-screen .world-copy{padding:20px}.home-screen .world-universe.is-side .universe-name{font-size:12px}.home-screen .world-universe.is-center .universe-name{font-size:18px}.home-quick-access:has(.resume-card:not([hidden])){grid-template-columns:1fr 1fr}.home-quick-access:has(.resume-card:not([hidden])) .home-secondary{grid-column:1 / -1}}
@media(max-width:900px){
 .home-screen .world-stage{grid-template-columns:minmax(0,1fr);gap:24px;padding:24px 0 16px}
 .home-screen .world-copy{padding:0;box-shadow:none;border-radius:0}.world-copy h1{font-size:36px;margin-bottom:12px}.world-lead{font-size:16px;margin-bottom:16px}
 .home-screen .world-carousel{grid-column:1;grid-row:2}.world-carousel>h2{margin:0 auto 12px;font-size:12px;padding:8px 12px}
 .home-screen .section-list{display:flex}.home-screen .world-universe.is-center{width:100%;max-width:410px}.home-screen .world-universe.is-side{display:none}
 .scene-anchor{height:220px;padding-bottom:12px}.home-screen .world-universe.is-center .world-scene{width:min(260px,100%,var(--native-width));max-height:min(208px,var(--native-height))}
 .home-screen .world-universe.is-center .universe-name{height:104px;min-height:104px;padding:8px 56px;font-size:21px;line-height:1.2;background:#071d2be8;border:1px solid var(--world-gold);border-bottom:0;border-radius:16px 16px 0 0}
 .home-screen .world-universe.is-center .universe-count{height:38px;min-height:38px;font-size:12px;padding:0 8px 12px;background:#071d2be8;border:1px solid var(--world-gold);border-top:0;border-radius:0 0 16px 16px}
 .carousel-controls{height:24px;min-height:24px;margin:8px 0 0}.carousel-controls button{position:absolute;top:calc(46px + 220px + 20px)}#universePrevious{left:8px}#universeNext{right:8px}
 .home-quick-access,.home-quick-access:has(.resume-card:not([hidden])){grid-template-columns:minmax(0,1fr);gap:4px;padding:8px}
 .home-quick-access .home-secondary{border-top:1px solid #44606c;padding:12px;justify-content:flex-start}.home-secondary button,.home-secondary a{font-size:13px;padding:10px}
 .home-screen .home-secondary-panel{padding:20px;margin-top:20px}.home-secondary-panel h2,.home-secondary-panel h3{font-size:24px}.home-screen .language-lab-grid{grid-template-columns:1fr}
 .world-backdrop img{top:310px;mask-image:linear-gradient(0deg,transparent,#000 25%,#000 80%,transparent)}.world-backdrop div{background:linear-gradient(0deg,#071d2b 0%,#071d2b33 35%,#071d2b99 60%,#071d2b 80%)}
 .about-page .site-header{flex-wrap:wrap}.about-page .brand{font-size:22px}.about-page .about-section{margin-top:24px}.about-page .key-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.about-page .key-numbers article:last-child{grid-column:1 / -1;justify-self:center;width:100%}
}
