:root {
  color-scheme: dark;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --bg: #101210; --card: #181b17; --line: #2d342b; --text: #f4f5ed;
  --muted: #a3aa9d; --dim: #838b80; --accent: #e2fb87;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--text); font-size: 1rem; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .38; cursor: default; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #101210; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon.small { width: 16px; height: 16px; }
.wrap { width: min(1312px, calc(100% - 112px)); margin-inline: auto; }
section[id] { scroll-margin-top: 90px; }
.topbar { position: sticky; top: 0; z-index: 9; background: #101210f5; border-bottom: 1px solid #252a24; backdrop-filter: blur(14px); }
.topbar-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 71px; gap: 20px; }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand-mark { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; color: #243015; background: var(--accent); }
.brand-mark .icon { width: 23px; height: 23px; }
.brand-text { display: grid; gap: 1px; white-space: nowrap; }
.brand-text strong { font-size: 1.025rem; font-weight: 750; line-height: 1.25; letter-spacing: .12em; }
.brand-text small { font: 500 .68rem/1.2 var(--mono); letter-spacing: .11em; color: var(--dim); }
.main-nav { position: absolute; height: 100%; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; }
.main-nav a { position: relative; display: flex; align-items: center; white-space: nowrap; font-size: .875rem; color: var(--muted); padding: 0 3px; }
.main-nav a:hover, .main-nav a.current { color: var(--accent); }
.main-nav a.current::after { content: ""; position: absolute; bottom: -1px; width: 100%; left: 0; height: 2px; background: var(--accent); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.action { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; font-size: .875rem; font-weight: 600; white-space: nowrap; background: transparent; transition: background .18s, border-color .18s, color .18s; }
.action:hover { background: #242b20; border-color: #5d6e46; color: var(--accent); }
.action.subdued { color: #d4d8cb; }
.action.subdued:hover { color: var(--accent); }
.action kbd { font: .74rem/1 var(--mono); color: #a4ab98; border: 1px solid #363d32; padding: 3px 5px; border-radius: 4px; margin-left: 3px; }
.compare-top { border-color: #4a5436; color: var(--accent); background: #22291b; }
.count { min-width: 1.2rem; height: 1.2rem; padding-inline: 4px; border-radius: 12px; display: grid; place-items: center; color: #1a2111; background: var(--accent); font: 600 .72rem var(--mono); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 355px); column-gap: 25px; align-items: end; padding-block: 43px 27px; }
.eyebrow { color: var(--accent); display: flex; align-items: center; gap: 8px; font-size: .81rem; font-weight: 650; letter-spacing: .14em; }
.intro h1 { font-weight: 800; font-size: clamp(2.75rem, 4.5vw, 4.6rem); line-height: 1.22; letter-spacing: -.045em; margin-top: 7px; }
.intro h1 span { color: var(--accent); }
.intro-copy { color: #b3bbad; line-height: 1.75; letter-spacing: .025em; padding-bottom: 3px; max-width: 24rem; }
.instrument { background: #171a15; border: 1px solid #343c31; border-radius: 15px; overflow: hidden; }
.view { --view-tint: #86a6d1; min-height: 442px; position: relative; isolation: isolate; background: radial-gradient(ellipse at 40% 49%, color-mix(in srgb, var(--view-tint) 14%, #101310) 0, #0b100e 47%, #080c0b 85%); }
.stars, .view-grid, .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars { pointer-events: none; }
.view-grid { opacity: .62; pointer-events: none; background-image: linear-gradient(#9faf9210 1px, transparent 1px), linear-gradient(90deg,#9faf9210 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse at 46% 48%, #000 35%, transparent 98%); }
.view-top { position: absolute; left: 22px; right: 22px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #a0ada3; pointer-events: none; }
.view-top { top: 18px; }
.viewport-label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; }
.viewport-label .icon { color: var(--accent); }
.view-top output { font: 500 .83rem var(--mono); padding: 6px 8px; border: 1px solid #364434; border-radius: 5px; background: #10190fd9; color: #c0d0b7; }
output sup { font-size: .78em; }
.scene { outline-offset: -5px; width: calc(100% - clamp(240px, 25%, 305px)); }
.orbital-ring { pointer-events: none; position: absolute; left: 47%; top: 49%; width: min(67%, 560px); height: 53%; border-radius: 50%; border: 1px solid #9db6a32c; transform: translate(-50%, -50%) rotate(-15deg); }
.ring-inner { width: min(53%, 445px); height: 40%; border-color: #a4bfa626; border-style: dashed; }
.grid-cross { position: absolute; color: #a4bba568; font: 400 15px var(--mono); pointer-events: none; }
.cross-one { left: 28%; top: 22%; }.cross-two { left: 76%; top: 32%; }.cross-three { left: 62%; top: 79%; }
.scene-items { position: absolute; inset: 0; pointer-events: none; }
.visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.object-panel { position: absolute; z-index: 3; right: 23px; top: 50%; transform: translateY(-50%); width: clamp(213px, 22.5%, 280px); background: #171d17f2; border: 1px solid #3c493a; border-radius: 10px; padding: 19px 21px 20px; box-shadow: 0 14px 35px #0005; }
.panel-category { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: .77rem; font-weight: 550; letter-spacing: .105em; }
.panel-category > span:first-child { border: 1px solid currentColor; width: 7px; height: 7px; border-radius: 50%; }
.object-title { margin: 7px 0 17px; }
.object-title h2 { font-size: clamp(1.5rem, 2.35vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.21; overflow-wrap: anywhere; }
.object-title > span { display: inline-block; color: #a5ada0; font: 500 .72rem/1.2 var(--mono); letter-spacing: .12em; margin-top: 4px; }
.dimension-label { color: #aeb9a9; font-size: .82rem; }
.object-size { color: var(--accent); font: 500 clamp(1.4rem, 2.05vw, 2.05rem)/1.2 var(--mono); margin-top: 2px; letter-spacing: -.045em; }
.object-size span { font-family: var(--mono), "Noto Sans TC"; font-size: .58em; color: #c8d5b1; letter-spacing: 0; }
.object-description { color: #bac3b7; margin-top: 13px; font-size: .9rem; line-height: 1.66; }
.object-action { margin-top: 15px; width: 100%; color: var(--accent); background: #20291a; border-color: #495638; }
.object-action:hover, .object-action[aria-pressed="true"] { color: #252d17; background: var(--accent); border-color: var(--accent); }

.scale-controls { border-top: 1px solid #313b2e; padding: 14px 19px 12px; background: #171a15; }
.scale-main { display: flex; gap: 11px; align-items: center; }
.scale-end { display: flex; align-items: center; gap: 5px; color: #afb7a7; font-size: .78rem; white-space: nowrap; }
.end-dot { width: 5px; height: 5px; background: #9da695; border-radius: 50%; }
.step { height: 32px; width: 32px; display: inline-grid; place-items: center; background: #20241e; border: 1px solid #3a4237; color: #c3cbbc; border-radius: 6px; flex: none; padding: 0; }
.step:hover:not(:disabled) { background: #2d3824; color: var(--accent); border-color: #5c6c48; }
.step.reset { margin-left: 5px; }
.ruler { align-self: stretch; display: flex; align-items: center; position: relative; flex: 1; min-width: 42px; }
.ruler::before { content: ""; height: 28px; left: 8px; right: 8px; position: absolute; background: repeating-linear-gradient(90deg, #a5b99b38 0px, #a5b99b38 1px, transparent 1px, transparent 13px) bottom center / 100% 7px no-repeat; pointer-events: none; }
.ruler input { --position: 68%; appearance: none; width: 100%; margin: 0; background: transparent; height: 30px; cursor: ew-resize; position: relative; }
.ruler input::-webkit-slider-runnable-track { height: 4px; border-radius: 7px; background: linear-gradient(90deg, #aabe75 0, #dcf58a var(--position), #4b5446 var(--position), #4b5446 100%); }
.ruler input::-moz-range-track { height: 4px; border-radius: 7px; background: linear-gradient(90deg, #aabe75 0, #dcf58a var(--position), #4b5446 var(--position), #4b5446 100%); }
.ruler input::-webkit-slider-thumb { appearance: none; height: 17px; width: 17px; margin-top: -6.5px; background: var(--accent); border: 3px solid #28331d; box-shadow: 0 0 0 1px var(--accent), 0 0 14px #e2fb8750; border-radius: 50%; }
.ruler input::-moz-range-thumb { height: 12px; width: 12px; background: var(--accent); border: 3px solid #28331d; box-shadow: 0 0 0 1px var(--accent), 0 0 14px #e2fb8750; border-radius: 50%; }
.scale-jumps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding-top: 9px; }
.scale-jumps button { background: transparent; color: #aab4a5; min-height: 31px; padding: 4px 3px; white-space: nowrap; border: 1px solid transparent; border-radius: 6px; font-size: .8rem; }
.scale-jumps button:hover, .scale-jumps button[aria-pressed="true"] { background: #252d20; border-color: #3a4630; color: var(--accent); }
.tour-bar { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 11px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-name { color: var(--accent); font-weight: 600; font-size: .88rem; }
.tour-progress { color: var(--muted); margin-left: 12px; font-size: .8rem; }
.tour-actions { display: flex; gap: 5px; }
.tour-actions button { background: #232b1f; border: 1px solid #3a4630; padding: 4px 8px; border-radius: 5px; color: #dbe7cd; min-height: 34px; font-size: .8rem; }

.journeys, .atlas { margin-top: 62px; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 9px 20px; margin-bottom: 19px; }
.section-head h2 { margin-top: 5px; font-size: clamp(1.75rem, 2.9vw, 2.5rem); font-weight: 800; letter-spacing: -.034em; }
.section-head > p { color: var(--muted); padding-bottom: 3px; font-size: .95rem; }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.journey { border: 1px solid #363e33; display: flex; flex-direction: column; align-items: start; text-align: left; min-width: 0; min-height: 242px; overflow: hidden; position: relative; isolation: isolate; background: radial-gradient(ellipse at 80% 30%, color-mix(in srgb, var(--journey-tint) 19%, #141c16), #151a15 65%); border-radius: 11px; padding: 117px 19px 18px; }
.journey img { position: absolute; max-width: 78%; height: 146px; object-fit: contain; right: 6px; top: -9px; z-index: -2; transition: transform .3s; }
.journey::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#141a15 21%,#141a1560 55%,transparent 84%); z-index: -1; }
.journey:hover { border-color: color-mix(in srgb, var(--journey-tint) 58%, #2e352d); }
.journey:hover img { transform: scale(1.12) translate(-4px, 3px); }
.journey strong { font-weight: 750; font-size: 1.21rem; }
.journey p { color: #b7c0b3; font-size: .9rem; line-height: 1.6; margin: 5px 0 13px; }
.journey > span { color: var(--journey-tint); font-weight: 600; font-size: .83rem; margin-top: auto; }

.atlas { padding-bottom: 58px; }
.atlas-tools { display: flex; gap: 10px 18px; justify-content: space-between; align-items: start; flex-wrap: wrap; margin-bottom: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border-radius: 7px; background: #1a1f18; border: 1px solid #30392c; color: #bdc5b7; font-size: .83rem; padding: 7px 9px; min-height: 36px; }
.filters button[aria-pressed="true"], .filters button:hover { border-color: #829358; color: var(--accent); background: #293222; }
.field { display: flex; align-items: center; gap: 8px; border: 1px solid #465040; border-radius: 7px; background: #101510; color: var(--muted); padding-inline: 10px; min-height: 38px; }
.field:focus-within { outline: 1px solid var(--accent); outline-offset: 1px; }
.field input { border: none; background: none; color: var(--text); outline: none; min-width: 0; flex: 1; width: 100%; padding: 7px 0; }
.field input::placeholder { color: #939d90; }
.atlas-field { width: min(100%, 234px); font-size: .89rem; }
.atlas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.atlas-chip { display: grid; grid-template-columns: 51px minmax(0,1fr); align-items: center; gap: 10px; text-align: start; padding: 11px; width: 100%; min-height: 72px; border-radius: 8px; border: 1px solid #303a2f; background: #181d17; }
.atlas-chip:hover { border-color: #667750; background: #212b1d; }
.atlas-chip .visual, .search-option .visual { display: grid; place-items: center; width: 43px; height: 43px; }
.atlas-chip .text, .search-option .text { display: grid; gap: 3px; min-width: 0; }
.atlas-chip .name, .search-option .name { color: #e7ebdf; font-size: .88rem; font-weight: 650; }
.atlas-chip .detail, .search-option .detail { color: #a8b5a2; font: 400 .75rem/1.3 var(--mono), "Noto Sans TC", sans-serif; }
.more { margin: 15px auto 0; display: flex; min-width: 155px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 17px 5px; }
footer { border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 24px 30px; gap: 16px; }
.foot-inner p { color: var(--muted); font-size: .81rem; margin-top: 5px; }
.foot-brand { font-size: 1rem; font-weight: 700; }
.foot-brand span { font: 500 .7rem var(--mono); letter-spacing: .09em; margin-left: 6px; color: var(--muted); }

.figure { width: 78%; height: 78%; display: block; position: relative; color: var(--figure-tint); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, currentColor 82%, white), currentColor 36%, color-mix(in srgb, currentColor 42%, #0c0e12) 70%, #141917); border-radius: 50%; box-shadow: inset -3px -4px 14px #0004, 0 0 12px color-mix(in srgb,currentColor 35%, transparent); }
.figure::before, .figure::after { content: ""; display: block; position: absolute; }
.figure.atom, .figure.orbit { background: none; border: 1px solid color-mix(in srgb,currentColor 37%, transparent); box-shadow: none; }
.figure.atom::before, .figure.orbit::before { width: 100%; height: 39%; top: 30%; transform: rotate(-32deg); border: 1px solid currentColor; border-radius: 50%; box-shadow: 0 0 6px color-mix(in srgb,currentColor 40%, transparent); }
.figure.atom::after, .figure.orbit::after { inset: 41%; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.figure.molecule { width: 45%; height: 45%; transform: translateY(-12%); }
.figure.molecule::before, .figure.molecule::after { border-radius: 50%; width: 65%; height: 65%; top: 63%; background: inherit; }
.figure.molecule::before { left: -36%; }.figure.molecule::after { right: -36%; }
.figure.bacteria { width: 77%; height: 36%; transform: rotate(-26deg); border-radius: 45% / 65%; background: repeating-linear-gradient(130deg,#0000,#0000 5%,#262c2b2d 6%,#0000 7%), radial-gradient(ellipse at 44% 22%, currentColor 8%,#465259 85%); }
.figure.strand { width: 15%; transform: rotate(36deg); border-radius: 50% 40%; }
.figure.stone { border-radius: 40% 44% 38% 30%; transform: rotate(-19deg); background: radial-gradient(ellipse at 24% 16%, currentColor, #585340 64%,#242827); }
.figure.tower, .figure.person, .figure.station { border-radius: 0; box-shadow: none; }
.figure.tower { width: 43%; height: 90%; clip-path: polygon(47% 0,53% 0,55% 15%,65% 15%,65% 22%,77% 22%,71% 32%,80% 32%,74% 42%,84% 42%,78% 52%,88% 52%,82% 63%,94% 63%,89% 73%,99% 73%,91% 83%,96% 83%,100% 100%,0 100%,4% 83%,9% 83%,1% 73%,11% 73%,6% 63%,18% 63%,12% 52%,22% 52%,16% 42%,26% 42%,20% 32%,29% 32%,23% 22%,35% 22%,35% 15%,45% 15%); }
.figure.person { width: 51%; height: 87%; clip-path: polygon(43% 0,57% 0,64% 9%,60% 17%,55% 20%,68% 25%,78% 36%,96% 64%,87% 67%,65% 43%,64% 62%,70% 98%,56% 100%,50% 70%,44% 100%,30% 98%,36% 62%,35% 43%,13% 67%,4% 64%,22% 36%,32% 25%,45% 20%,40% 17%,36% 9%); }
.figure.station { width: 90%; height: 50%; clip-path: polygon(0 45%,100% 45%,100% 54%,0 54%,0 45%,6% 45%,6% 12%,21% 12%,21% 91%,6% 91%,6% 45%,29% 45%,29% 12%,44% 12%,44% 91%,29% 91%,29% 45%,55% 45%,55% 12%,70% 12%,70% 91%,55% 91%,55% 45%,79% 45%,79% 12%,94% 12%,94% 91%,79% 91%,79% 45%); background: repeating-linear-gradient(0deg,#6b81ae 0 8%,#d7e3fa 9% 11%); }
.figure.light { width: 76%; height: 76%; border: 0; filter: drop-shadow(0 0 8px currentColor); background: radial-gradient(circle, white 1%,currentColor 18%,transparent 67%); box-shadow: none; }
.figure.light::before, .figure.light::after { left: 10%; width: 80%; top: 47%; height: 6%; border-radius: 100%; background: currentColor; }
.figure.light::after { transform: rotate(90deg); }
.figure.galaxy { border-radius: 50%; height: 45%; transform: rotate(-30deg); background: repeating-radial-gradient(ellipse,currentColor, #ffffffa0 3%, #77689180 10%, #9c95e450 17%,#171e2600 30%); box-shadow: none; }
.figure.web { background: repeating-conic-gradient(from 12deg at 42% 47%,transparent 0 7deg,#a2affda0 9deg 10deg,transparent 14deg 33deg), radial-gradient(circle,#e7ddfd 3%,#5f4a8c 21%,#2e1e48 63%,#171b24); }
.figure.cell { border-radius: 52% 40% 48% 38%; }
.figure.cell::before { inset: 32% 26% 28% 37%; border-radius: 50%; background: #3c3e5399; }

.dialog { width: min(560px, calc(100% - 28px)); max-height: min(720px, 92dvh); overflow: auto; color: var(--text); border: 1px solid #47543f; background: #181e17; border-radius: 14px; padding: clamp(14px, 3.4vw, 25px); box-shadow: 0 18px 100px #0009; }
.dialog.wide { width: min(710px, calc(100% - 28px)); }
.dialog::backdrop { background: #070a08bd; backdrop-filter: blur(6px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.dialog-head h2 { font-size: 1.37rem; }
.dialog-field { min-height: 45px; margin-bottom: 10px; }
.search-results { max-height: min(445px, 58vh); overflow: auto; display: grid; gap: 5px; }
.search-option { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; min-height: 58px; align-items: center; text-align: start; border: 1px solid #313b30; border-radius: 6px; background: #1d241c; padding: 6px 9px; width: 100%; }
.search-option:hover { border-color: #758559; background: #293423; }
.search-option > .size { font: 500 .75rem var(--mono), "Noto Sans TC", sans-serif; color: var(--accent); }
.compare-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.compare-fields label { display: grid; gap: 5px; color: var(--muted); font-size: .86rem; }
.compare-fields select { appearance: none; width: 100%; border-radius: 6px; border: 1px solid #496043; color: #eef2e7; background: #101710 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23c8d1bf' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 7px center; padding: 8px 28px 8px 8px; font-size: .88rem; }
.compare-note { min-height: 73px; border-radius: 8px; line-height: 1.7; color: #cad2c6; margin-top: 13px; padding: 11px 13px; background: #242f21; border: 1px solid #3b4c34; }
.compare-note strong { color: var(--accent); }
.compare-specimens { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.compare-specimen { display: grid; gap: 4px; text-align: center; color: var(--muted); border: 1px solid #313d2d; border-radius: 8px; padding: 9px 5px 12px; font-size: .85rem; }
.compare-specimen strong { color: var(--text); }
.compare-specimen .visual { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 5px; }
.compare-axis { position: relative; height: 12px; background: linear-gradient(90deg,#5f646e,#b5d077); margin-top: 32px; border-radius: 20px; }
.compare-axis .marker { position: absolute; left: var(--ratio); bottom: 0; color: #171d11; font: 600 .75rem/1 var(--mono); background: var(--accent); border-radius: 4px; padding: 4px; transform: translateX(-50%); }
.compare-axis .marker:nth-child(2) { bottom: 13px; background: #c4d9fb; }
.axis-labels { display: flex; justify-content: space-between; color: var(--muted); font: .75rem/1 var(--mono); margin: 7px 0 3px; }
.axis-explanation { color: var(--muted); margin-top: 9px; font-size: .79rem; }
.sources-copy { color: #c6d0c2; line-height: 1.7; }
.sources-copy p + p { margin-top: 9px; }
.source-list { margin: 14px 0 2px; padding-left: 23px; }
.source-list a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); font-size: .9rem; }
.notice { position: fixed; z-index: 10; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 9px 16px; background: var(--accent); color: #202916; font-size: .9rem; font-weight: 650; border-radius: 7px; box-shadow: 0 10px 34px #0007; white-space: nowrap; }

@media (max-width: 1199px) { .wrap { width: calc(100% - 72px); } }
@media (max-width: 930px) {
  .wrap { width: calc(100% - 40px); }
  .main-nav { gap: 15px; }
  .intro { padding-block: 34px 23px; }
  .atlas-grid { grid-template-columns: repeat(3, 1fr); }
  .object-panel { padding: 15px 14px; }
}
@media (max-width: 720px) {
  section[id] { scroll-margin-top: 110px; }
  .wrap { width: calc(100% - 28px); }
  .topbar-inner { flex-wrap: wrap; min-height: 0; gap: 0; padding-top: 10px; }
  .main-nav { order: 3; position: static; transform: none; width: 100%; height: 39px; justify-content: center; gap: min(7vw, 30px); margin-top: 6px; }
  .main-nav a { font-size: .82rem; padding-inline: 2px; }
  .top-actions { gap: 6px; }
  .top-actions .action { min-height: 35px; font-size: .8rem; padding-inline: 7px; }
  .top-actions kbd { display: none; }
  .top-actions .icon { width: 16px; height: 16px; }
  .intro { grid-template-columns: 1fr; gap: 9px; padding: 23px 1px 16px; }
  .intro h1 { font-size: clamp(1.85rem, 7.6vw, 3.15rem); }
  .intro-copy { font-size: .88rem; line-height: 1.6; }
  .view { padding-top: 289px; min-height: 0; }
  .view-grid, .stars { height: 304px; }
  .scene { width: 100%; height: 289px; }
  .view-top { top: 10px; left: 11px; right: 11px; }
  .view-top output { padding: 3px 5px; font-size: .72rem; }
  .object-panel { position: relative; inset: auto; width: auto; transform: none; margin: 0 9px 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; column-gap: 7px; padding: 11px; }
  .object-title { grid-column: 1; grid-row: 2 / span 2; margin: 3px 0 0; }
  .object-title h2 { font-size: 1.35rem; }
  .object-title > span { margin-top: 1px; }
  .dimension-label { grid-column: 2; grid-row: 1; text-align: end; font-size: .74rem; }
  .object-size { grid-column: 2; grid-row: 2; font-size: 1.30rem; text-align: end; }
  .object-description { grid-column: 1/-1; margin-top: 5px; font-size: .83rem; }
  .object-action { grid-column: 1/-1; margin-top: 9px; min-height: 36px; }
  .scale-controls { padding: 9px; }
  .scale-main { gap: 6px; }
  .scale-end { display: none; }
  .step.reset { margin-left: 0; }
  .scale-jumps { grid-template-columns: repeat(4, minmax(0,1fr)); padding-top: 4px; gap: 2px; }
  .scale-jumps button { font-size: .75rem; min-height: 33px; }
  .journeys, .atlas { margin-top: 40px; }
  .journey-grid { gap: 8px; }
  .journey { padding: 100px 10px 12px; min-height: 205px; }
  .journey img { height: 123px; max-width: 95%; right: 0; }
  .journey strong { font-size: 1rem; }
  .journey p { font-size: .82rem; }
  .section-head { margin-bottom: 12px; }
  .section-head > p { font-size: .85rem; }
  .foot-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey { min-height: 139px; padding: 16px 35% 13px 13px; }
  .journey img { height: 100%; width: 50%; max-width: none; top: 0; }
  .journey::after { background: linear-gradient(90deg,#141a15 33%,#141a1580 64%,transparent 100%); }
  .atlas-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .atlas-chip { gap: 5px; grid-template-columns: 35px minmax(0,1fr); padding: 7px; min-height: 59px; }
  .atlas-chip .visual { width: 33px; height: 33px; }
  .atlas-chip .name { font-size: .77rem; }
  .atlas-chip .detail { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }



.scene { overflow: hidden; touch-action: pan-y; user-select: none; }
.scene-items { z-index: 1; }
.scale-mode { color: #c6d4b9; font-size: .71rem; font-weight: 550; letter-spacing: .075em; line-height: 1; border-left: 1px solid #4f604e; padding-left: 8px; margin-left: 2px; }
.scale-object { appearance: none; display: block; position: absolute; left: var(--x); top: var(--y); width: max(24px, var(--w)); height: max(24px, var(--h)); transform: translate(-50%, -50%); margin: 0; padding: 0; border: 0; background: transparent; opacity: var(--alpha); pointer-events: auto; z-index: 1; }
.scale-object[aria-pressed="true"] { z-index: 2; }
.scale-object.partial { z-index: 0; pointer-events: none; }
.scale-object.partial .scene-tag { display: none; }
.scale-ink { width: var(--w); height: var(--h); position: absolute; display: block; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; color: var(--figure-tint); }
.scale-ink img, .scale-ink canvas { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.scale-object:hover:not(.partial) .scale-ink { filter: brightness(1.14) drop-shadow(0 0 11px color-mix(in srgb, var(--figure-tint) 32%, transparent)); }
.scale-object .scene-tag { position: absolute; z-index: 3; top: calc(50% + var(--h) / 2 + 6px); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 3px; width: max-content; max-width: 145px; min-width: 0; color: #e5e9df; font-size: .82rem; white-space: normal; background: #101713e8; border: 1px solid #3d483c; border-radius: 5px; padding: 4px 8px; line-height: 1.25; }
.scene-tag small { display: block; color: #a7b1a5; font: 400 .7rem/1.1 var(--mono); white-space: nowrap; }
.scale-object[aria-pressed="true"] .scene-tag { color: var(--accent); border-color: #a9c4629b; background: #1d2819ed; font-weight: 650; }
.scale-object:hover:not(.partial) .scene-tag { border-color: var(--accent); }
.scale-object:focus-visible { outline-offset: 2px; border-radius: 5px; }
.scale-object[data-scene="earth"] .scale-ink img { filter: drop-shadow(0 0 20px #9acaca23); }

.scale-figure.figure { width: 100%; height: 100%; transform: none; display: block; }
.scale-figure.bacteria { border-radius: 45% / 65%; }
.scale-figure.strand { border-radius: 20% 18%; background: linear-gradient(0deg, #ba987c, #774f36 53%, #c0976e); }
.scale-figure.galaxy { border-radius: 56%; }
.scale-figure.paper { border-radius: 0; background: linear-gradient(140deg,#f5f7e6,#a4b5ad); box-shadow: 0 0 8px #d7f0e730; }
.scale-figure.island { border-radius: 0; box-shadow: none; clip-path: polygon(82% 0,98% 6%,87% 16%,81% 22%,80% 35%,72% 45%,76% 57%,65% 64%,55% 74%,43% 84%,28% 94%,12% 98%,13% 89%,3% 80%,9% 73%,10% 60%,19% 47%,24% 36%,33% 29%,36% 20%,48% 12%,63% 9%); }
.scale-figure.bus { border-radius: 12% 14% 7% 6%; background: linear-gradient(0deg,#8897a1 0 15%,#c98b26 15% 26%,#eac057 26% 50%,#2d4247 50% 79%,#f7ca68 79%); box-shadow: none; }
.scale-figure.bus::after { left: 13%; right: 14%; height: 28%; bottom: 0; background: radial-gradient(circle at 10% 70%,#18232a 0 30%,transparent 34%) left center / 25% 100% no-repeat, radial-gradient(circle at 89% 70%,#18232a 0 30%,transparent 34%) right center / 25% 100% no-repeat; }
.scale-figure.pollen { background: radial-gradient(circle at 31% 30%,#f8e8b3 2%,#c6a345 42%,#62421e 88%); border: 1px dashed #e6c779; }
.scale-figure.nebula { background: radial-gradient(ellipse at 37% 45%,#f3bfdb 0, #954d917b 25%,transparent 58%),radial-gradient(ellipse at 58% 50%,#b3a2ddbf 5%,#4b4e7a52 47%,transparent 69%); box-shadow: none; }
.scale-figure.light { filter: none; }
.interval-ink { position: absolute; top: 50%; left: 0; width: 100%; height: 9px; transform: translateY(-50%); border: solid #b3bff1; border-width: 0 1px; background: linear-gradient(90deg,#7f9cd5,#d5dbf8) center / 100% 1px no-repeat; }
.radius-ink { display: block; position: absolute; inset: 0; outline: 1px dashed color-mix(in srgb,currentColor 72%, transparent); outline-offset: -1px; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb,currentColor 57%, transparent), transparent 68%); }
.radius-ink::after { content:""; position: absolute; left: 50%; right: 0; top: 50%; height: 1px; background: currentColor; }
.radius-ink i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; transform: translate(-50%, -50%); border-radius: 50%; background: #faffea; }
.scale-helix { display: flex; position: absolute; inset: 0; flex-direction: column; justify-content: space-between; }
.scale-helix i { display: block; position: relative; min-width: 12%; height: 10%; background: linear-gradient(90deg,#84e2a4,#3b9cbe 53%,#65b8ff); border-radius: 50px; box-shadow: inset 0 -1px 0 #263d74,0 0 4px #92bcff4c; }

.scene-hud { position: absolute; bottom: 13px; left: 17px; right: 12px; z-index: 2; display:flex; justify-content:space-between; align-items:end; gap:12px; color:#bac7b9; pointer-events: none; }
.zoom-hint { display: flex; align-items: center; gap: 6px; font-size: .76rem; letter-spacing:.03em; }
.hint-touch { display: none; }
.scene-bar { display: grid; justify-items: end; gap: 4px; font: 500 .76rem/1.1 var(--mono), "Noto Sans TC", sans-serif; color: #e5edd8; text-align: end; }
.scene-bar i { display: block; width: var(--bar-width, 60px); height:7px; border: solid var(--accent); border-width: 0 1px 1px; }
.scene-empty { position: absolute; z-index: 2; left: 50%; top:50%; transform: translate(-50%,-50%); width: max-content; max-width: calc(100% - 33px); padding: 14px; border: 1px solid #485444; border-radius: 8px; background: #141b15ed; text-align: center; }
.scene-empty p { color: #dde8da; font-size: .92rem; }
.gap-choices { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.gap-jump.action { min-height: 30px; font-size: .74rem; padding: 4px 7px; color: var(--accent); }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-pointer { display: none; } }
@media (max-width: 720px) {
  .scale-mode { font-size: .66rem; padding-left: 6px; margin-left: 0; }
  .scale-object .scene-tag { max-width: 100px; padding: 3px 5px; font-size: .73rem; line-height: 1.17; }
  .scale-object .scene-tag small { font-size: .65rem; }
  .scene-hud { bottom: 9px; left: 11px; right: 10px; }
  .zoom-hint { font-size: .71rem; }
  .zoom-hint .icon { width: 13px; height: 13px; }
  .scene-bar { font-size: .7rem; }
}



.viewport-label { display: flex; align-items: center; gap: 7px; }
.figure.snow { clip-path: polygon(46% 0,54% 0,54% 43%,94% 20%,98% 26%,58% 50%,98% 74%,94% 80%,54% 57%,54% 100%,46% 100%,46% 57%,6% 80%,2% 74%,42% 50%,2% 26%,6% 20%,46% 43%); background: #d8eaff; box-shadow: none; }
.figure.disc { background: conic-gradient(from 20deg,#909fa5,#c2d3d0,#8ba6e3,#eddbc3,#7a96a7,#acced6,#909fa5); }
.figure.disc::after { inset: 44%; background: #121917; border-radius: 50%; }
.figure.giraffe { clip-path: polygon(68% 7%,75% 0,84% 0,92% 11%,83% 18%,69% 20%,57% 58%,55% 98%,47% 98%,47% 67%,26% 67%,21% 100%,14% 100%,15% 63%,7% 58%,9% 50%,24% 47%,43% 48%,61% 13%); background: radial-gradient(circle at 45% 42%,#704119 20%,transparent 25%) 0 0/18% 20%,#dca75c; }
.figure.wheel { border: 2px solid #bdced1; background: repeating-conic-gradient(#b4c9cd 0 2deg,#141b1b00 2deg 20deg); box-shadow: none; }
.figure.wheel::after { left: 48%; top: 50%; bottom: 0; width: 4%; background: #b4c9cd; }
.figure.mountain { clip-path: polygon(0 98%,21% 72%,30% 60%,39% 52%,49% 8%,55% 0,66% 34%,78% 58%,86% 68%,100% 98%); border-radius: 0; background: linear-gradient(158deg,#f0ece0 17%,#aab5b5 32%,#43545b 64%,#282f33 87%); box-shadow: none; }
.object-source {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  color: #c3d4b3;
  font-size: .82rem;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.object-source:hover { color: var(--accent); }
@media (max-width: 720px) {
  .object-source { grid-column: 1 / -1; margin-top: 6px; }
}

@media (min-width: 721px) {
  .view-top { right: calc(clamp(240px, 25%, 305px) + 12px); }
}
