/* 探索地圖's first-visit opening (solar-intro.js; solar-gate.js decides it before the page paints). */
html[data-solar] body::after { content: ""; position: fixed; inset: 0; z-index: 2147482990; background: #000; }
.solar-intro { position: fixed; z-index: 2147483000; inset: 0; height: 100dvh; overflow: hidden; background: #000; transition: opacity var(--solar-fade, .8s) ease; }
.solar-intro[data-leaving] { opacity: 0; pointer-events: none; }
.solar-intro canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.solar-intro[data-lit] canvas { opacity: 1; }
.solar-intro__labels { position: absolute; inset: 0; pointer-events: none; }
.solar-intro__label { position: absolute; top: 0; left: 0; color: rgb(255 255 255 / 80%); font-size: .76rem; letter-spacing: .08em; white-space: nowrap; text-shadow: 0 1px 6px #000; opacity: 0; transition: opacity .35s ease; will-change: transform, opacity; }
.solar-intro__caption { position: absolute; top: calc(30px + env(safe-area-inset-top)); left: 16px; right: 16px; display: grid; gap: 4px; margin: 0; color: #fff; text-align: center; pointer-events: none; animation: solar-in 2s ease .4s both; transition: opacity 1.2s ease; }
.solar-intro__caption strong { font-size: 1.15rem; font-weight: 600; letter-spacing: .2em; }
/* Wide spacing suits Chinese, Japanese and Korean; Latin letters stay close. */
html[lang="en"] .solar-intro__caption strong { letter-spacing: .02em; }
.solar-intro__caption span { color: rgb(255 255 255 / 62%); font-size: .8rem; letter-spacing: .04em; }
.solar-intro__caption[data-gone] { opacity: 0; }
.solar-intro__skip { position: absolute; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 22px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 999px; background: rgb(255 255 255 / 14%); color: #fff; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.solar-intro__skip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.solar-intro__skip:disabled { opacity: 0; transition: opacity .3s ease; }
@keyframes solar-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .solar-intro, .solar-intro canvas, .solar-intro__caption { transition: none; animation: none; } }
/* Space on 探索地圖 (space-view.js): the same black layer, turned and zoomed by hand from the globe out to the galaxy.
   Its buttons and cards are the map's dark frosted glass (community.css). */
.space-view { overflow: clip; }
.space-view[data-entering] { opacity: 0; }
.space-view canvas { opacity: 1; transition: none; cursor: grab; }
.space-view canvas:active { cursor: grabbing; }
.space-view[data-return] { background: transparent; }
.space-view .space-return-clouds { pointer-events: none; cursor: default; z-index: 2; transition: none; }
.space-view[data-return] .solar-intro__skip { z-index: 3; }
.space-glass { border: 1px solid rgb(255 255 255 / 20%); background: linear-gradient(180deg, rgb(52 58 72 / 58%), rgb(18 20 26 / 42%)); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: 0 4px 18px rgb(0 0 0 / 30%), inset 0 1px 0 rgb(255 255 255 / 16%); color: #fff; font: inherit; }
button.space-glass { cursor: pointer; }
button.space-glass:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.space-view__home { position: absolute; right: 16px; bottom: calc(30px + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.space-view__hint, .space-view__credit { position: absolute; margin: 0; color: rgb(255 255 255 / 55%); pointer-events: none; }
.space-view__hint { top: calc(84px + env(safe-area-inset-top)); left: 16px; right: 16px; text-align: center; font-size: .78rem; transition: opacity 1.2s ease; }
.space-view .solar-intro__caption[data-gone], .space-view .solar-intro__caption[data-gone] + .space-view__hint { opacity: 0; }
.space-view__credit { left: 16px; right: 16px; bottom: calc(6px + env(safe-area-inset-bottom)); font-size: .58rem; line-height: 1.35; }
.space-label--body { padding: 4px 6px; margin: -4px -6px; border: 0; background: none; color: rgb(255 255 255 / 86%); font: inherit; font-size: .76rem; letter-spacing: .08em; pointer-events: auto; cursor: pointer; }
.space-label--body:focus-visible { outline: 2px solid #fff; border-radius: 6px; }
/* The rail down the right: a small ball for each body, its name, and how many moons it has. */
.space-rail { position: absolute; right: 10px; top: calc(72px + env(safe-area-inset-top)); bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: safe center; gap: 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.space-rail::-webkit-scrollbar { display: none; }
.space-rail__item { position: relative; display: grid; justify-items: center; gap: 1px; flex: none; width: 58px; padding: 3px 0; border: 0; border-radius: 12px; background: none; color: rgb(255 255 255 / 82%); font: inherit; cursor: pointer; }
.space-rail__item:hover, .space-rail__item[aria-pressed=true] { background: rgb(255 255 255 / 12%); color: #fff; }
.space-rail__item:focus-visible { outline: 2px solid #fff; }
.space-rail__ball { width: 24px; height: 24px; border-radius: 50%; background: #333 center / cover; box-shadow: inset -5px -4px 9px rgb(0 0 0 / 55%); }
.space-rail__ball[data-kind=earth] { background: radial-gradient(circle at 35% 35%, #8fd0ff, #2f6fd6 55%, #1c3f7a); }
.space-rail__ball[data-kind=sun] { box-shadow: 0 0 10px rgb(255 190 90 / 70%); }
.space-rail__ball--icon { display: grid; place-items: center; background: none; box-shadow: none; font-size: 20px; line-height: 1; }
.space-rail__name { max-width: 56px; overflow: hidden; font-size: .62rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.space-rail__count { position: absolute; top: 0; right: 6px; min-width: 16px; padding: 1px 4px; border-radius: 999px; background: rgb(255 255 255 / 22%); font-size: .56rem; line-height: 1.3; }
.space-label--small { font-size: .66rem; color: rgb(190 240 255 / 85%); letter-spacing: .02em; }
/* A list beside the rail (spacecraft, comets, showers, constellations). */
.space-list { position: absolute; top: calc(72px + env(safe-area-inset-top)); right: 76px; width: min(260px, calc(100% - 96px)); max-height: min(60vh, calc(100% - 200px)); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
.space-list[hidden] { display: none; }
.space-list__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 14px; font-size: .86rem; }
.space-list > .space-list__item:last-child { margin-bottom: 8px; }
.space-list__item { flex: none; margin: 0 6px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.space-list__item:hover, .space-list__item:focus-visible { background: rgb(255 255 255 / 12%); outline: none; }
.space-list { overflow-y: auto; overscroll-behavior: contain; }
/* The card: small, beside the picture on a computer, a third of a phone at most; its title folds it. */
.space-card { position: absolute; top: calc(124px + env(safe-area-inset-top)); left: 16px; width: min(320px, calc(100% - 110px)); max-height: calc(100% - 250px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
.space-card[hidden] { display: none; }
.space-card__head { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; }
.space-card__fold { display: flex; flex: 1; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.space-card__fold strong { font-size: 1rem; }
.space-card__chevron::before { content: ""; display: block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .2s ease; }
.space-card.is-folded .space-card__chevron::before { transform: translateY(2px) rotate(-135deg); }
.space-card__icon { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 10%); color: #fff; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.space-card__body { display: grid; gap: 8px; padding: 0 14px 12px; overflow-y: auto; overscroll-behavior: contain; font-size: .8rem; line-height: 1.5; }
.space-card.is-folded .space-card__body { display: none; }
.space-card__body p { margin: 0; color: rgb(255 255 255 / 88%); }
.space-card__rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.space-card__rows dt { color: rgb(255 255 255 / 58%); font-size: .72rem; white-space: nowrap; }
.space-card__rows dd { margin: 0; }
.space-card__body small { color: rgb(255 255 255 / 48%); font-size: .62rem; }
/* Time: ⏪ ▶ ⏩, the speed and 今天, bottom left; the speeds open above it; the day shows at the top while time runs. */
.space-time { position: absolute; left: 16px; bottom: calc(30px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; z-index: 31; }
.space-time__button { min-width: 38px; height: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: #fff; font: inherit; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.space-time__button:hover, .space-time__button[aria-pressed=true], .space-time__button[aria-expanded=true] { background: rgb(255 255 255 / 14%); }
.space-time__button:focus-visible { outline: 2px solid #fff; }
.space-time__speed, .space-time__today { font-size: .76rem; }
.space-time__speeds { position: absolute; left: 0; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(2, auto); gap: 2px; padding: 4px; border-radius: 16px; }
.space-time__speeds[hidden] { display: none; }
.space-time__date { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 70px; right: 70px; margin: 0; color: #fff; font-size: .82rem; text-align: center; text-shadow: 0 1px 6px #000; pointer-events: none; }
.space-time__date[hidden] { display: none; }
@media (max-width: 820px) {
  .space-time { left: 8px; bottom: calc(30px + env(safe-area-inset-bottom)); }
  .space-time__button { min-width: 34px; padding: 0 6px; }
  .space-view__home { right: 8px; padding: 0 14px; font-size: .84rem; }
  .space-rail { right: 4px; width: 56px; }
  .space-list { right: 64px; width: min(250px, calc(100% - 76px)); max-height: 42dvh; }
  .space-card { top: auto; left: 8px; right: 70px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; max-height: 33dvh; }
}
.sky-label { font-size: .7rem; color: rgb(190 215 255 / 85%); }
button.sky-label { padding: 3px 5px; margin: -3px -5px; border: 0; background: none; font-family: inherit; pointer-events: auto; cursor: pointer; }
button.sky-label:focus-visible { outline: 2px solid #fff; border-radius: 6px; }
.sky-label--deep { color: rgb(255 214 236 / 88%); font-size: .66rem; }
.sky-label--star { color: rgb(255 244 214 / 80%); font-size: .66rem; }
.sky-label--here { color: #ffd43b; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .space-view, .space-view__hint { transition: none; } }
/* Top right in space: 圖層 and 回到我的位置, round glass like the map's own buttons; the 顯示 panel below them. */
.space-view__icon { position: absolute; top: calc(18px + env(safe-area-inset-top)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.space-view__locate { right: 16px; }
.space-view__layers { right: 68px; }
.space-layers { position: absolute; top: calc(70px + env(safe-area-inset-top)); right: 76px; display: grid; gap: 2px; min-width: 170px; padding: 10px 12px; border-radius: 16px; font-size: .82rem; }
.space-layers[hidden] { display: none; }
.space-layers strong { margin-bottom: 4px; font-size: .8rem; color: rgb(255 255 255 / 70%); }
.space-layers__row { display: flex; align-items: center; gap: 10px; min-height: 34px; cursor: pointer; }
.space-layers__row input { width: 18px; height: 18px; margin: 0; accent-color: #74c0fc; }
.space-view .solar-intro__caption { left: 124px; right: 124px; }
.space-view .solar-intro__skip { z-index: 1; }
.space-view .solar-intro__skip[hidden] { display: none; }
.space-view[data-film] :is(.space-rail, .space-list, .space-card, .space-time, .space-time__date, .space-view__home, .space-view__icon, .space-layers, .space-view__hint) { display: none; }
.space-view .solar-intro__caption small { display:block; max-width:760px; margin:8px auto 0; color:rgb(255 255 255 / 58%); font-size:.7rem; line-height:1.6; }
.space-view[data-universe-stage] .solar-intro__caption { pointer-events:none; }
.space-universe__sources { display:flex; flex-direction:column; gap:8px; margin-top:12px; font-size:.75rem; }
.space-universe__sources a { color:#bdd7ff; text-decoration:underline; }
/* A spacecraft's card: its model's note, 飛回 / 只看這個, and 即時觀測. */
.space-card__body .space-card__note { font-size: .7rem; color: rgb(255 255 255 / 62%); }
.space-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.space-card__action { min-height: 36px; padding: 0 14px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; background: rgb(255 255 255 / 10%); color: #fff; font: inherit; font-size: .76rem; cursor: pointer; }
.space-card__action:hover, .space-card__action[aria-pressed=true] { background: rgb(255 255 255 / 22%); }
.space-card__action:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.space-live { display: grid; gap: 6px; }
.space-live h3 { margin: 4px 0 0; font-size: .8rem; }
.space-live__pictures { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; }
.space-live__picture { flex: none; display: grid; gap: 3px; width: 120px; color: rgb(255 255 255 / 70%); font-size: .62rem; line-height: 1.3; text-decoration: none; }
.space-live__picture img { width: 120px; height: 120px; border-radius: 10px; object-fit: cover; background: #111; }
.space-live__line, .space-live__note { margin: 0; }
.space-card__body .space-live__note { color: rgb(255 255 255 / 55%); font-size: .66rem; }
.space-live__list { display: grid; gap: 3px; margin: 0; padding-left: 16px; font-size: .72rem; }
@media (max-width: 820px) {
  .space-view__locate { right: 8px; }
  .space-view__layers { right: 58px; }
  .space-layers { right: 64px; top: calc(68px + env(safe-area-inset-top)); }
  .space-view .solar-intro__caption { left: 16px; right: 112px; text-align: left; }
  /* A planet's spacecraft list sits above its card. */
  .space-list:has(~ .space-card:not([hidden])) { max-height: min(30dvh, calc(100dvh - 33dvh - 200px)); }
}

/* 運勢 in the card (fortune-panel.js): two tabs, the almanac's 宜 and 忌, and a birthday's fortune. */
.fortune { display: grid; gap: 10px; }
.fortune__tabs { display: flex; gap: 6px; }
.fortune__tab-button { min-height: 32px; padding: 0 12px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; background: none; color: #fff; font: inherit; font-size: .74rem; cursor: pointer; }
.fortune__tab-button[aria-selected=true] { background: rgb(255 255 255 / 22%); }
.fortune__tab, .fortune__result, .fortune__form { display: grid; gap: 6px; }
.fortune__big { font-weight: 600; font-size: .9rem; }
.fortune__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.fortune__chips strong { margin-right: 2px; font-size: .78rem; }
.fortune__chips span { padding: 1px 8px; border-radius: 999px; font-size: .72rem; background: rgb(255 255 255 / 12%); }
.fortune__chips--good strong { color: #8ce99a; }
.fortune__chips--bad strong { color: #ffa8a8; }
.fortune__form { grid-template-columns: 1fr auto; align-items: end; }
.fortune__field { display: grid; gap: 3px; font-size: .72rem; color: rgb(255 255 255 / 70%); }
.fortune__date { min-height: 36px; padding: 0 10px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 10px; background: rgb(255 255 255 / 8%); color: #fff; font: inherit; color-scheme: dark; }
.fortune__scores dd { color: #ffd43b; letter-spacing: .08em; }

/* ⓘ: the sources, top left like the map's own (the owner, 2026-11-15); opened, they show in a small dark panel. */
.space-view__about { position:absolute; z-index:6; top:calc(6px + env(safe-area-inset-top)); left:6px; }
.space-view__about > summary { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; list-style:none; cursor:pointer; background:rgb(255 255 255 / 88%); color:#10151c; font:700 14px/1 Georgia, serif; font-style:italic; }
.space-view__about > summary::-webkit-details-marker { display:none; }
.space-view__about > summary:focus-visible { outline:2px solid #6ea8ff; outline-offset:2px; }
.space-view__about .space-view__credit { position:absolute; top:56px; left:0; right:auto; bottom:auto; width:min(320px, calc(100vw - 32px)); padding:10px 12px; border-radius:12px; background:rgb(16 18 24 / 88%); color:rgb(255 255 255 / 82%); font-size:.72rem; line-height:1.5; pointer-events:auto; }
