:root { color-scheme: dark; font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #d6d9de; background: #020306; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
button:focus-visible, summary:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #9ccdeb; outline-offset: 3px; }
#universe { position: fixed; inset: 0; outline: none; touch-action: none; }
canvas { display: block; width: 100%; height: 100%; }
.tools { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: #0b0e1480; opacity: .55; transition: opacity .25s; }
.tools:hover, .tools:focus-within { opacity: 1; }
.tools button { width: 36px; height: 36px; padding: 9px; border-radius: 8px; background: transparent; color: #cbd5df; }
.tools button:hover { background: #ffffff12; }
svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#loader { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: #020306; transition: opacity .7s, visibility .7s; }
#loader span { letter-spacing: .36em; font-size: 16px; font-weight: 300; }
#loader small { font-size: 11px; color: #76808c; }
#loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
#toast { position: fixed; bottom: 78px; left: 50%; transform: translate(-50%, 8px); opacity: 0; transition: .3s; font-size: 12px; line-height: 1.7; text-align: center; max-width: min(85vw, 470px); padding: 8px 14px; border-radius: 8px; background: #0c1019d9; pointer-events: none; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
.body-label { position: fixed; top: 0; left: 0; visibility: hidden; pointer-events: none; font-size: 10px; color: #b1bbc9; text-shadow: 0 1px 4px #000; }
dialog { width: min(360px, calc(100vw - 28px)); max-height: min(82dvh, 760px); padding: 20px; border: 1px solid #ffffff16; border-radius: 16px; background: #101319f5; color: #bcc2cc; box-shadow: 0 20px 80px #0007; overflow: auto; font-size: 12px; }
dialog::backdrop { background: #0003; }
dialog header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
h1 { font-size: 14px; font-weight: 500; margin: 0; color: #eef1f5; }
#close-settings { font-size: 24px; background: none; color: #8b929e; padding: 0 3px; }
section { padding: 14px 0; border-top: 1px solid #ffffff0c; }
.button-row { display: flex; gap: 5px; margin-bottom: 8px; }
.button-row button { flex: 1; }
dialog button, select { border-radius: 6px; padding: 8px 10px; background: #ffffff06; }
dialog button:hover { background: #ffffff10; }
dialog button.active { color: #e1ecf5; background: #698ca22e; }
.quiet { color: #777f8b; font-size: 11px; line-height: 1.7; margin: 7px 0 0; }
label { display: flex; gap: 8px; align-items: center; padding: 9px 0; }
label small { color: #6f7987; font-size: 10px; }
label input { margin-left: auto; accent-color: #8dafc4; }
.time-row { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; }
.time-row > span { font-size: 10px; color: #707a88; }
time { font-variant-numeric: tabular-nums; font-size: 11px; }
#pause-button { width: 32px; height: 32px; padding: 8px; }
#now-button { margin-left: auto; }
select { border: 1px solid #ffffff0b; font-size: 11px; }
input[type="range"] { width: 100%; accent-color: #91b1c5; }
summary { cursor: pointer; color: #a1aab5; padding: 4px 0; }
details p { color: #858f9d; line-height: 1.85; font-size: 11px; }
a { color: #94b4cc; text-decoration: none; font-size: 11px; }
@media (max-width: 600px) { .tools { right: max(10px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); } .tools button { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
