.world-toc{box-sizing:border-box;position:fixed;width:196px;right:max(20px,calc((100vw - 1940px)/2));top:110px;z-index:1004;max-height:calc(100dvh - 140px);overflow:auto;overscroll-behavior:contain;padding:18px 14px;background:var(--paper,#f6f7f0);color:var(--ink,#263a30);border:1px solid var(--line,#d4ddcf);border-radius:10px;box-shadow:0 6px 24px #173b2f0a}.world-toc-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.world-toc-heading h2{font:600 14px/1.5 Georgia,"Songti SC",serif;letter-spacing:.08em;margin:0}.world-toc nav ol{list-style:none;margin:0;padding:0}.world-toc nav li{margin:3px 0}.world-toc nav ol ol{margin-left:12px}.world-toc nav a{display:block;font:13px/1.6 system-ui,"Microsoft YaHei",sans-serif;padding:8px 9px;color:var(--muted,#596e61);text-decoration:none;border-left:2px solid transparent;border-radius:0 4px 4px 0;overflow-wrap:anywhere}.world-toc nav ol ol a{font-size:12px}.world-toc nav a:hover{color:var(--green,#20483a);background:#dce8dd55}.world-toc nav a[aria-current=location]{border-left-color:var(--green,#20483a);color:var(--green,#20483a);background:#dce8dd99;font-weight:600}.world-toc-toggle,#worldTocClose,.world-toc-backdrop{display:none}#top,#systems,#orrery,#sky,#skyCanvas,#phenomenonTabs,#surface,#worldMap{scroll-margin-top:28px}
@media(min-width:1100px){main{box-sizing:border-box;width:calc(100% - 272px);max-width:1708px;margin-left:max(24px,calc((100vw - 1940px)/2));margin-right:auto}}
@media(max-width:1099px){.world-toc{display:none;inset:auto 16px calc(88px + env(safe-area-inset-bottom,0px)) auto;width:min(300px,calc(100vw - 32px));max-height:min(65dvh,520px);padding:18px;background:var(--paper,#f6f7f0);box-shadow:0 10px 36px #102f2940}.world-toc[data-open=true]{display:block}.world-toc-heading h2{font-size:17px}.world-toc nav a{font-size:14px;min-height:44px;display:flex;align-items:center}.world-toc nav ol ol a{font-size:13px}.world-toc-toggle{position:fixed;right:18px;bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:1005;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:54px;height:54px;min-height:54px;padding:0;border:1px solid #a9c2af;border-radius:50%;background:var(--green,#20483a);color:#f5f7ee;box-shadow:0 4px 18px #102f2940;font:12px/1.4 system-ui;touch-action:manipulation}.world-toc-toggle span:first-child{font-size:19px}.world-toc-toggle:hover{background:#315e4b;color:#fff}#worldTocClose{display:block;width:40px;height:40px;min-height:40px;padding:0;font-size:24px;border:0;color:inherit}.world-toc-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:1003;background:#102f293b}body.world-toc-open{overflow:hidden}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
