:root { color-scheme: dark; --bg: #091916; --ink: #e3e7d9; --muted: #8fa59b; --line: #90ba9f25; --u: #91dcd9; --v: #edc994; font-family: "Avenir Next", "PingFang SC", "Microsoft Yahei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
header { height: 76px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
a { color: inherit; text-decoration: none; }
.brand { font-size: 11px; letter-spacing: .18em; }.brand span { font-size: 15px; letter-spacing: .1em; margin-left: 16px; } nav { display: flex; align-items: center; gap: 22px; font-size: 12px; }
button, select, input { font: inherit; color: inherit; }button, select { background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 8px 11px; font-size: 12px; cursor: pointer; }button:hover { background: #a8c8aa13; border-color: #93b59b70; }button:disabled { opacity: .38; cursor: default; }button[aria-pressed="true"] { border-color: var(--v); background: #edc99418; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--v); outline-offset: 4px; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: calc(100vh - 76px); }.stage { position: sticky; top: 0; height: calc(100vh - 76px); min-height: 580px; overflow: hidden; background: radial-gradient(ellipse at 45% 55%, #18392b, #0a1a18 70%); }#garden { width: 100%; height: 100%; display: block; touch-action: none; }
.intro { position: absolute; top: 34px; left: 36px; z-index: 1; pointer-events: none; }.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .19em; color: var(--muted); margin: 0 0 13px; } h1 { font-family: "Songti SC", "STSong", Georgia, serif; font-size: clamp(30px, 3.3vw, 52px); font-weight: 400; letter-spacing: .06em; margin: 0 0 14px; }.intro > p:last-child { color: var(--muted); font-size: 12px; letter-spacing: .025em; }
.scene-tools { position: absolute; right: 22px; top: 28px; display: flex; gap: 7px; }.scene-tools button { background: #0b1c19a8; }.scene-footer { position: absolute; bottom: 28px; left: 36px; right: 22px; padding-top: 17px; border-top: 1px solid var(--line); pointer-events: none; }.scene-footer div { display: flex; align-items: center; gap: 12px; font-size: 12px; }.scene-footer strong { font-weight: 500; }.scene-footer span:last-child { color: var(--muted); }.scene-footer p { font-size: 11px; color: var(--muted); margin-bottom: 0; }.status-dot { width: 5px; height: 5px; background: var(--v); border-radius: 50%; box-shadow: 0 0 10px #edc99480; }
.panel { padding: 28px 26px; border-left: 1px solid var(--line); background: #0c1e1a; }.panel section + section { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 21px; } h2 { font-size: 14px; font-weight: 500; margin: 0 0 13px; }.quiet, .footnote { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 10px 0 0; }.footnote { font-size: 10px; padding-top: 16px; }.presets, .add-rules { display: flex; gap: 7px; }.presets button { flex: 1; }.presets button.active { color: var(--v); border-color: #edc99466; }.section-title { display: flex; justify-content: space-between; align-items: start; }.section-title button { padding: 3px 6px; font-size: 10px; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }legend { font-size: 14px; font-weight: 600; }legend small { color: var(--muted); font-size: 10px; font-weight: 400; margin-left: 12px; }.player-u { color: var(--u); }.player-v { color: var(--v); }fieldset label { display: grid; grid-template-columns: 24px 1fr 37px; align-items: center; gap: 9px; margin-top: 6px; font-size: 11px; }input[type="range"] { width: 100%; margin: 6px 0; accent-color: var(--v); height: 14px; }.player-u input { accent-color: var(--u); }output { font-variant-numeric: tabular-nums; font-size: 11px; text-align: right; }#operators { padding: 0; margin: 14px 0; list-style: none; }#operators li { display: grid; grid-template-columns: 56px minmax(0, 1fr) 34px 23px 23px; align-items: center; gap: 5px; font-size: 11px; margin: 9px 0; }#operators button { padding: 3px; }#operators:empty::after { content: "B = [u v]"; color: var(--muted); font-family: monospace; font-size: 12px; }
.math { background: #06141070; padding: 13px 15px; border-radius: 5px; }.math code { font-size: 11px; color: var(--muted); }.math pre { margin: 9px 0; color: #c5dfce; font-size: 13px; line-height: 1.65; font-variant-numeric: tabular-nums; }.math p { display: flex; gap: 12px; font-size: 11px; margin: 0; }.math p span { color: var(--muted); }.math p output { margin-right: 8px; }
.title-label { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }.title-label input { background: #06141070; border: 1px solid var(--line); padding: 9px; min-width: 0; flex: 1; font-size: 12px; border-radius: 4px; }.ready { display: flex; gap: 7px; margin-top: 12px; }.ready button:last-child { margin-left: auto; color: var(--v); }.notice { font-size: 11px; line-height: 1.7; color: var(--v); min-height: 19px; margin: 8px 0; }.library-label { display: grid; gap: 7px; font-size: 10px; color: var(--muted); }select { width: 100%; min-width: 0; }select option { background: #0c1e1a; }.file-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }.file-actions button { font-size: 10px; }.timeline { position: absolute; left: 24px; right: 24px; bottom: 112px; padding: 13px; background: #091916eb; border: 1px solid #edc99455; border-radius: 7px; display: flex; align-items: center; gap: 12px; }.timeline[hidden] { display: none; }.timeline strong { font-size: 11px; font-weight: 500; white-space: nowrap; }.timeline input { flex: 1; }.timeline button { white-space: nowrap; }.playing .inputs, .playing .rules, .playing .start, .playing .ready { opacity: .5; }
@media (max-width: 1020px) { header { padding: 0 20px; }.intro { left: 22px; top: 65px; }main { grid-template-columns: minmax(0, 1fr) 310px; }.panel { padding: 24px 18px; }.scene-footer { left: 22px; }.scene-tools { top: 20px; }.timeline { flex-wrap: wrap; }.timeline input { min-width: 90px; } }
@media (max-width: 720px) { header { height: 62px; padding: 0 15px; }.brand { font-size: 9px; letter-spacing: .1em; }.brand span { display: none; }nav { gap: 12px; }main { display: flex; flex-direction: column; }.stage { position: relative; height: 70vh; min-height: 480px; }.panel { border-left: 0; border-top: 1px solid var(--line); padding: 26px 24px; }.intro { top: 28px; max-width: 70%; }.intro p:last-child { max-width: 225px; line-height: 1.7; }.scene-tools { top: 20px; right: 12px; flex-direction: column; }.scene-tools button { padding: 6px; font-size: 10px; }.scene-footer { bottom: 22px; }.timeline { bottom: 112px; left: 14px; right: 14px; }.timeline strong { width: 100%; }.timeline button { padding: 5px; font-size: 10px; } }
