:root {
  color-scheme: dark;
  --ink: #edeae1;
  --ink-2: #a9a79f;
  --ink-3: #6f6e68;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(29, 31, 30, .66);
  --glass-2: rgba(22, 24, 23, .86);
  --cream: #e9d9a8;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .9, .24, 1);
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #050606; color: var(--ink); font: 13px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
i { font-style: normal; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 1.5px solid var(--cream); outline-offset: 2px; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: radial-gradient(circle at 50% 50%, #2a2c2a 0, #101211 34%, #050606 72%); }
.frame { position: fixed; inset: 14px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 0 0 60px #020303; pointer-events: none; z-index: 1; }
#app { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#app > * { pointer-events: auto; }

/* Everything but the scene arrives after the intro has resolved. */
.top, .controls, .legend, .dock, .wordmark, .hero { transition: opacity .9s ease, transform 1s var(--ease), visibility .9s; }
body:not(.hud-in) .top { opacity: 0; transform: translateY(-14px); }
body:not(.hud-in) .controls, body:not(.hud-in) .legend { opacity: 0; transform: translateX(14px); }
body:not(.hud-in) .dock { opacity: 0; transform: translate(-50%, 24px) scale(var(--dock, 1)); }
body:not(.hud-in) .wordmark { opacity: 0; }
body:not(.hud-in) .hero { opacity: 0; transform: translateY(12px); }

.top { position: absolute; left: 34px; right: 34px; top: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: #d8d4c6; }
.brand-mark svg { width: 17px; height: 17px; stroke-width: 1.1; }
.brand-text { display: grid; line-height: 1.16; letter-spacing: .15em; font-size: 12px; font-weight: 500; }
.brand-text b { font-weight: 500; }
.brand-text i { color: var(--ink-3); }
.brand-text small { margin-top: 3px; font-size: 9.5px; letter-spacing: .04em; color: var(--ink-3); }
.nav { display: flex; padding: 3px; border-radius: 15px; background: rgba(24, 26, 25, .68); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav button { display: grid; justify-items: center; min-width: 66px; padding: 5px 12px 5px; border-radius: 12px; font-size: 12px; line-height: 1.22; color: var(--ink-2); transition: color .25s, background .25s, box-shadow .25s; }
.nav button i { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .25s; }
.nav button:hover { color: var(--ink); }
.nav button.on { color: var(--ink); background: rgba(255, 255, 255, .085); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav button.on i { color: var(--ink-2); }
.top-right { display: flex; justify-self: end; align-items: center; gap: 8px; }
.pill-link { padding: 7px 13px; border-radius: 99px; font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); background: rgba(24, 26, 25, .52); transition: color .25s, border-color .25s, background .25s; white-space: nowrap; }
.pill-link:hover { color: var(--ink); border-color: var(--line-2); }
.pill-light { color: #14150f; background: #dfdcd0; border-color: transparent; font-weight: 500; }
.pill-light:hover { color: #14150f; background: #f1eee2; border-color: transparent; }

.controls { position: absolute; right: 34px; top: 78px; display: flex; gap: 2px; padding: 3px 5px; border-radius: 99px; border: 1px solid var(--line); background: rgba(24, 26, 25, .52); }
.controls button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; font-size: 11px; color: var(--ink-2); white-space: nowrap; transition: color .2s, background .2s; }
.controls button:hover, .controls button[aria-expanded="true"], .controls button[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, .07); }
.controls svg { width: 13px; height: 13px; }
.controls i { font-size: 9px; color: var(--ink-3); }

.legend { position: absolute; right: 34px; top: 122px; width: 176px; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--line); background: rgba(24, 26, 25, .56); }
.legend h2 { font-size: 10.5px; font-weight: 400; color: var(--ink-2); margin-bottom: 6px; }
.legend h2 i { margin-left: 4px; font-size: 8.5px; color: var(--ink-3); }
.legend-row { display: flex; align-items: center; gap: 7px; width: 100%; padding: 2.5px 0; font-size: 11px; color: var(--ink-2); text-align: left; transition: color .2s; }
.legend-row:hover { color: var(--ink); }
.legend-row b { margin-left: auto; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink); }
.legend-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.legend hr { border: 0; border-top: 1px solid var(--line); margin: 7px 0; }
.legend-key { display: flex; gap: 6px; align-items: center; font-size: 10px; line-height: 1.5; color: var(--ink-3); }
.legend-key span { flex: none; width: 13px; height: 1.5px; background: #e9d9a8; box-shadow: 0 0 6px #e9d9a8; }
.legend-key em { flex: none; display: grid; place-items: center; width: 13px; font-style: normal; }
.legend-key .k-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f0e4c2; box-shadow: 0 0 7px #f0e4c2; }
.legend-key .k-grain::before { content: ""; width: 2.5px; height: 2.5px; border-radius: 50%; background: #f0e4c2; }
body.explore .legend, body.explore .controls, body.system-open .legend, body.system-open .controls { opacity: 0; visibility: hidden; transform: translateX(14px); }
body.explore .hero, body.system-open .hero { opacity: 0; visibility: hidden; transform: translateY(-10px); }

.source-pop { position: absolute; right: 34px; top: 122px; width: 304px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12px; line-height: 1.62; color: var(--ink-2); z-index: 4; animation: rise .32s var(--ease); }
.source-pop h2 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.source-pop p + p { margin-top: 7px; }
.source-pop b { font-weight: 500; color: var(--ink); }

.crumb { position: absolute; left: 34px; top: 84px; display: flex; align-items: center; gap: 7px; padding: 5px 13px 5px 6px; border-radius: 99px; border: 1px solid var(--line); background: rgba(24, 26, 25, .6); font-size: 11.5px; color: var(--ink-3); max-width: 560px; animation: rise .42s var(--ease); }
.crumb[hidden] { display: none; }
.crumb-back { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--ink-2); background: rgba(255, 255, 255, .06); transition: color .2s, background .2s; }
.crumb-back:hover { color: var(--ink); background: rgba(255, 255, 255, .12); }
.crumb-back svg { width: 12px; height: 12px; }
.crumb-item { color: var(--ink-3); white-space: nowrap; transition: color .2s; }
.crumb-item i { font-size: 9px; }
button.crumb-item:hover { color: var(--ink); }
.crumb-board { color: var(--c, var(--ink-2)); }
.crumb-entry { color: var(--ink); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb-sep { color: var(--ink-3); opacity: .6; }

/* Node labels sit in the scene and only surface around the knowledge cluster. */
.gtags, .rels, .sections { position: absolute; inset: 0; pointer-events: none !important; }
.gtag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 5px; border-radius: 5px; font-size: 11px; color: #d9d7cc; white-space: nowrap; pointer-events: auto; will-change: transform, opacity; transition: color .2s, background .2s; }
.gtag b { font-weight: 500; font-size: 10px; color: var(--c); font-variant-numeric: tabular-nums; }
.gtag:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.rel { position: absolute; left: 0; top: 0; padding: 1px 6px; border-radius: 99px; font-size: 9.5px; color: #cfc6a8; white-space: nowrap; background: rgba(10, 12, 11, .62); will-change: transform, opacity; }
.core-label { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 1px; padding: 5px 13px; border-radius: 10px; line-height: 1.25; pointer-events: auto; background: rgba(14, 16, 15, .6); border: 1px solid rgba(240, 228, 194, .24); will-change: transform, opacity; transition: border-color .25s, background .25s; }
.core-label:hover { border-color: rgba(240, 228, 194, .7); background: rgba(24, 26, 25, .82); }
.core-label b { font-size: 12.5px; font-weight: 500; color: #f1eee3; white-space: nowrap; }
.core-label span { font-size: 9.5px; color: #c6b98f; }
.hero { position: absolute; left: 44px; top: 104px; width: calc(306px * var(--u, 1)); }
.hero h1 { font-size: calc(27px * var(--u, 1)); font-weight: 500; line-height: 1.26; letter-spacing: .01em; color: #f1eee3; }
.hero p { margin-top: 10px; font-size: max(11px, calc(12.5px * var(--u, 1))); line-height: 1.72; color: #aaa89f; }
.hero button { margin-top: 12px; padding: 6px 13px; border-radius: 99px; font-size: 12px; color: #f0e4c2; border: 1px solid rgba(240, 228, 194, .42); background: rgba(240, 228, 194, .06); transition: background .25s, border-color .25s, color .25s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.hero .hero-actions button { margin-top: 0; }
.hero .hero-play { color: var(--ink-2); border-color: var(--line-2); background: none; }
.hero .hero-play i { font-size: 9px; }
body.story-on .hero, body.story-on .dock, body.story-on .legend, body.story-on .controls { opacity: 0; visibility: hidden; pointer-events: none; }
body.story-on .core-label { visibility: hidden !important; }
.story { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); width: min(600px, calc(100vw - 24px)); padding: 13px 40px 14px 18px; border-radius: 14px; border: 1px solid rgba(240, 228, 194, .34); background: rgba(16, 18, 17, .88); z-index: 4; animation: riseCentered .45s var(--ease) both; }
.story[hidden] { display: none; }
.story-steps { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--ink-3); }
.story-steps span { transition: color .3s; }
.story-steps span.done { color: var(--ink-2); }
.story-steps span.on { color: #f0e4c2; font-weight: 500; }
.story p { margin-top: 6px; min-height: 2.9em; font-size: 14px; line-height: 1.5; color: #f1eee3; }
.story button { position: absolute; right: 9px; top: 8px; width: 26px; height: 26px; border-radius: 50%; font-size: 15px; color: var(--ink-2); }
.story button:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.hero button:hover { color: #fff; background: rgba(240, 228, 194, .14); border-color: rgba(240, 228, 194, .75); }
.hero button i { margin-left: 3px; }
.gcard { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; width: 152px; min-height: 38px; padding: 7px 10px; border-radius: 9px; text-align: left; pointer-events: auto; color: var(--ink-2); background: rgba(24, 26, 25, .66); border: 1px solid var(--line); will-change: transform, opacity; transition: color .25s, border-color .25s, background .25s, box-shadow .25s; }
.gcard[hidden] { display: none; }
.gcard:hover { color: var(--ink); border-color: var(--line-2); }
.gcard.on { color: #fff; background: rgba(35, 37, 35, .92); border-color: color-mix(in srgb, var(--c) 75%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 16%, transparent); }
.gcard-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.gcard-name { flex: 1; min-width: 0; font-size: 11.5px; line-height: 1.22; white-space: nowrap; }
.gcard-name i { display: block; font-size: 8px; color: var(--ink-3); }
.gcard b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card-main { border-color: rgba(240, 228, 194, .5); box-shadow: 0 0 24px rgba(240, 228, 194, .1); }
.fan-intro { max-width: 340px; padding: 0 0 8px 20px; opacity: 0; transition: opacity .6s ease .15s; }
.fan-scroll.in .fan-intro { opacity: 1; }
.fan-intro h2 { display: flex; align-items: baseline; gap: 7px; font-size: 16px; font-weight: 500; color: #f1eee3; }
.fan-intro h2 b { font-size: 13px; font-weight: 500; color: var(--c); font-variant-numeric: tabular-nums; }
.fan-intro p { margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }
.p-lead { margin-top: 8px; font-size: 13px; line-height: 1.68; color: #cfcdc4; }
.p-outline { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: o; }
.p-outline li { counter-increment: o; display: flex; gap: 9px; padding: 5px 0; font-size: 12.5px; line-height: 1.45; color: #d4d2c8; border-top: 1px solid var(--line); }
.p-outline li::before { content: counter(o, decimal-leading-zero); flex: none; font-size: 9.5px; line-height: 1.9; color: var(--c); font-variant-numeric: tabular-nums; }
.p-cta { margin-top: 15px; padding: 12px 13px; border-radius: 12px; border: 1px solid rgba(240, 228, 194, .3); background: linear-gradient(120deg, rgba(240, 228, 194, .1), rgba(240, 228, 194, .025)); }
.p-cta p { font-size: 12px; line-height: 1.62; color: #cfcdc4; }
.p-cta a { display: inline-block; margin-top: 8px; padding: 6px 13px; border-radius: 99px; font-size: 12px; font-weight: 500; color: #14150f; background: #e8e2cc; transition: background .2s; }
.p-cta a:hover { background: #fff; }
.s-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.s-metrics div { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.s-metrics b { display: block; font-size: 20px; font-weight: 500; line-height: 1.05; color: #f0e4c2; font-variant-numeric: tabular-nums; }
.s-metrics span { display: block; margin-top: 4px; font-size: 10px; line-height: 1.3; color: var(--ink-2); }
.s-hard { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: h; }
.s-hard li { counter-increment: h; position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); }
.s-hard li::before { content: counter(h); position: absolute; left: 0; top: 9px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; color: #14150f; background: #e8e2cc; }
.s-hard b { display: block; font-size: 12.5px; font-weight: 500; color: #ece9df; }
.s-hard span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.58; color: var(--ink-2); }
.s-parts { margin-top: 8px; display: grid; gap: 5px; }
.s-parts button { display: grid; grid-template-columns: 10px 76px 1fr; align-items: baseline; gap: 6px; padding: 7px 9px; border-radius: 9px; text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: background .2s, border-color .2s; }
.s-parts button:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-2); }
.s-parts .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 7px var(--c); align-self: center; }
.s-parts b { font-size: 12px; font-weight: 500; white-space: nowrap; }
.s-parts span:last-child { font-size: 11px; line-height: 1.5; color: var(--ink-2); }
.knowledge-route, .knowledge-uses { margin-top: 13px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.route-heading { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); }
.route-steps { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.route-arrow { color: var(--ink-3); font-size: 11px; }
.route-step, .route-schema, .use-buttons button { padding: 4px 9px; border-radius: 7px; font-size: 11.5px; color: #d4d2c8; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: background .2s, border-color .2s, color .2s; }
.route-step:hover, .route-schema:hover, .use-buttons button:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: var(--line-2); }
.route-step.active, .route-schema.active, .use-buttons button[aria-pressed="true"] { color: #14150f; background: #e8e2cc; border-color: transparent; }
.route-optional { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 10.5px; color: var(--ink-3); }
.route-schema { display: block; margin-top: 7px; }
.knowledge-route p, .knowledge-uses p { margin-top: 7px; font-size: 11px; line-height: 1.55; color: var(--ink-3); }
.use-buttons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.panel[data-kind="system"] h2 { font-size: 20px; }
.s-view { margin-bottom: 16px; padding: 12px 13px; border-radius: 12px; border: 1px solid rgba(240, 228, 194, .3); background: linear-gradient(120deg, rgba(240, 228, 194, .09), rgba(240, 228, 194, .02)); }
.s-view h3 { font-size: 11px; font-weight: 400; color: #c6b98f; }
.s-view p { margin-top: 7px; font-size: 13px; line-height: 1.7; color: #e6e3d8; }

.hits { position: absolute; inset: 0; pointer-events: none !important; }
.hit { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: auto; will-change: transform; }
.hit-core { cursor: pointer; }

.cards { position: absolute; inset: 0; pointer-events: none !important; }
.card { position: absolute; left: 0; top: 0; width: 118px; padding: 8px 10px 8px; border-radius: 10px; text-align: left; pointer-events: auto; color: var(--ink); background: rgba(24, 26, 25, .74); border: 1px solid var(--line); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); will-change: transform, opacity; transition: border-color .3s, background .3s, box-shadow .3s; }
.card:hover { border-color: var(--line-2); background: rgba(38, 40, 39, .78); }
.card.on { border-color: var(--cream); background: rgba(35, 37, 35, .88); box-shadow: 0 0 22px rgba(233, 217, 168, .11), inset 0 0 18px rgba(233, 217, 168, .04); }
.card-top { display: flex; align-items: center; gap: 8px; }
.card-ic { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--c); }
.card-ic svg { width: 12px; height: 12px; stroke-width: 1.2; }
.card b { font-size: 18px; font-weight: 500; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card-name { display: block; margin-top: 6px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.card-name i { margin-left: 3px; font-size: 8px; color: var(--ink-2); opacity: .72; }
.card-sub { display: block; margin-top: 3px; font-size: 9.5px; line-height: 1.2; color: #8f8d85; white-space: nowrap; }

.fan { position: absolute; top: 0; bottom: 0; left: 0; pointer-events: none !important; will-change: transform; }
.fan[hidden] { display: none; }
.fan-scroll { position: absolute; inset: 0; overflow: hidden auto; overscroll-behavior: contain; pointer-events: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; -webkit-mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 34px), transparent); }
.fan-scroll::-webkit-scrollbar { width: 5px; }
.fan-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 9px; }
.fan-scroll.leaving { opacity: 0; transition: opacity .26s ease; pointer-events: none; }
.fan-inner { padding: 34px 0 72px; }
.fan-group { height: min(var(--row-h), 44px); display: flex; align-items: flex-end; padding: 0 0 6px 20px; font-size: 10px; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; opacity: 0; transition: opacity .55s ease .2s; }
.fan-scroll.in .fan-group { opacity: 1; }
.row { position: relative; display: block; width: 100%; height: var(--row-h); padding: 0 8px 0 20px; text-align: left; border-radius: 7px; will-change: transform, opacity; }
.row::before { content: ""; position: absolute; left: -1px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 9px var(--c), inset 0 0 0 1.6px rgba(255, 255, 255, .5); transition: transform .3s var(--ease); }
.row-in { position: absolute; left: 13px; max-width: calc(100% - 14px); top: 50%; transform: translateY(-50%); padding: 3px 7px; border-radius: 6px; border: 1px solid transparent; transition: background .25s, border-color .25s; }
.row-t { display: block; font-size: 12.5px; line-height: 1.26; color: #dedcd2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.row-m { display: block; margin-top: 2px; font-size: 9.5px; line-height: 1.2; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-m em { font-style: normal; color: var(--ink-2); }
.row:hover .row-in, .row:focus-visible .row-in { background: rgba(255, 255, 255, .055); }
.row:hover .row-t { color: #fff; }
.row:hover::before { transform: scale(1.3); }
.row.on .row-in { border-color: color-mix(in srgb, var(--c) 58%, transparent); background: color-mix(in srgb, var(--c) 11%, rgba(20, 22, 21, .7)); }
.row.on .row-t { color: #fff; }
.row.on::before { transform: scale(1.4); }
.fan-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 5px 15px; border-radius: 99px; font-size: 11px; color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); background: rgba(22, 24, 23, .7); animation: riseCentered .5s var(--ease) .55s both; }
.fan-hint[hidden] { display: none; }

.panel { position: absolute; right: 34px; top: 80px; bottom: 34px; width: 374px; display: flex; flex-direction: column; overflow: hidden auto; padding: 16px 17px 15px; border-radius: 17px; border: 1px solid var(--line); background: var(--glass-2); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); transform: translateX(34px); opacity: 0; transition: transform .58s var(--ease), opacity .42s ease; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
.panel.in { transform: none; opacity: 1; }
.panel[hidden] { display: none; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.p-board { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 8px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.p-board span { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.p-board i { font-size: 9px; color: var(--ink-3); }
.p-close { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s; }
.p-close:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.panel h2 { font-size: 19.5px; font-weight: 500; line-height: 1.32; letter-spacing: .005em; }
.p-group { margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.p-box { margin-top: 13px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.p-status { display: inline-block; padding: 1.5px 8px; border-radius: 5px; font-size: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.p-box p { margin-top: 7px; font-size: 12.5px; line-height: 1.68; color: #cfcdc4; }
.p-box p.more { color: var(--ink-2); font-size: 12px; }
.p-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.p-metric { padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.p-metric b { display: block; font-size: 23px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.p-metric span { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-2); }
.p-metric i { display: block; margin-top: 1px; font-size: 9.5px; color: var(--ink-3); }
.p-bars { margin-top: 9px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(255, 255, 255, .02) 62%); }
.p-bars h3, .p-section h3 { font-size: 11px; font-weight: 400; color: var(--ink-2); }
.p-bars h3 i, .p-section h3 i { margin-left: 4px; font-size: 9.5px; color: var(--ink-3); }
.p-bars-row { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin-top: 9px; }
.p-bars-row span { flex: 1; min-height: 2px; background: rgba(255, 255, 255, .17); border-radius: 1px; transform-origin: bottom; animation: grow .62s var(--ease) both; }
.p-bars-row span.me { background: var(--c); box-shadow: 0 0 9px var(--c); }
.p-section { margin-top: 15px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.p-chip { padding: 3.5px 9px; border-radius: 7px; font-size: 11.5px; line-height: 1.35; text-align: left; color: #d4d2c8; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); transition: color .2s, border-color .2s, background .2s; }
.p-chip:hover { color: #fff; background: rgba(255, 255, 255, .09); border-color: var(--line-2); }
.p-chip small { margin-left: 4px; font-size: 9px; color: var(--ink-3); }
.p-source { display: block; margin-top: 9px; padding: 9px 12px; border-radius: 9px; font-size: 12px; color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.p-source:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-2); }
.p-note { margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }
.p-section > p { margin-top: 7px; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }

.dock { position: absolute; left: 50%; bottom: 28px; width: min(518px, calc(100vw - 32px)); transform: translateX(-50%) scale(var(--dock, 1)); transform-origin: bottom center; z-index: 3; }
:root { --dock: clamp(.78, var(--u, 1), 1); }
body.explore .dock, body.system-open .dock { opacity: 0; visibility: hidden; transform: translate(-50%, 26px) scale(var(--dock, 1)); pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 15px; border: 1px solid var(--line); background: rgba(26, 28, 27, .68); padding: 9px 0 10px; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.stat { padding: 0 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat small { display: block; font-size: 10px; color: var(--ink-2); line-height: 1.3; white-space: nowrap; }
.stat small i { margin-left: 3px; font-size: 8.5px; color: var(--ink-3); }
.stat b { display: block; margin-top: 3px; font-size: 18.5px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.stat.hot b { color: var(--cream); }
.chips { display: flex; align-items: center; gap: 5px; margin-top: 8px; justify-content: center; white-space: nowrap; overflow: hidden; }
.chips-lead { flex: none; margin-right: 3px; font-size: 10.5px; color: var(--ink-3); }
.chip { padding: 3px 10px; border-radius: 99px; font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--line); background: rgba(24, 26, 25, .6); transition: color .2s, border-color .2s; }
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip i { color: var(--ink-3); margin-left: 3px; font-size: 9px; }
.chip.ghost { color: var(--ink-3); border-color: transparent; background: none; cursor: default; }

.wordmark { position: absolute; left: 44px; bottom: 34px; letter-spacing: .24em; pointer-events: none !important; line-height: 1.24; }
.wordmark b { display: block; font-size: 15px; font-weight: 400; color: #d8d5c8; }
.wordmark span { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: .3em; }

.tip { position: absolute; left: 0; top: 0; max-width: 260px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--glass-2); font-size: 11.5px; line-height: 1.4; pointer-events: none !important; z-index: 5; will-change: transform; }
.tip[hidden] { display: none; }
.tip small { display: block; margin-top: 2px; font-size: 9.5px; color: var(--ink-3); }
.noscript { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* Without WebGL the DOM layer keeps every board and entry available over a soft glow. */
body.no-webgl #scene { background: radial-gradient(circle at 50% 46%, #6b6a64 0, #242523 22%, #0b0c0c 48%, #050606 78%); }
body.no-webgl .row::before { box-shadow: none; }

@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; } }
@keyframes riseCentered { from { opacity: 0; transform: translate(-50%, 9px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 1240px) {
  .legend { display: none; }
  .nav button { min-width: 56px; padding: 5px 8px; }
  .nav button i { display: none; }
  .pill-back { display: none; }
  .hero { left: 34px; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .legend { display: none; }
  .stats { padding: 7px 0; }
  .stat b { font-size: 16px; }
  .chips { display: none; }
}
@media (max-width: 760px) {
  .frame, .wordmark, .legend, .nav, .controls i, .pill-back, .card-sub, .card-name i, .brand-text small, .gtags, .rels { display: none; }
  .top { left: 14px; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 12px); grid-template-columns: 1fr auto; }
  .brand-text b { display: inline; }
  .brand-mark { width: 26px; height: 26px; }
  .pill-link { padding: 6px 11px; font-size: 11px; }
  .controls { right: 14px; top: calc(env(safe-area-inset-top, 0px) + 52px); padding: 2px 3px; }
  .controls button:not(#ctl-source) { display: none; }
  .crumb { background: rgba(14, 16, 15, .9); }
  .controls button { padding: 4px 7px; font-size: 10.5px; }
  .source-pop { left: 14px; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 88px); width: auto; }
  .crumb { left: 14px; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 50px); max-width: none; font-size: 11px; }
  :root { --dock: 1; }
  .hero { left: 14px; right: 14px; top: auto; bottom: 182px; width: auto; }
  .hero h1 { font-size: 19px; }
  .hero h1 br { display: none; }
  .hero p { margin-top: 5px; font-size: 11.5px; line-height: 1.6; }
  .hero button { margin-top: 7px; padding: 5px 11px; font-size: 11.5px; }
  .sections { position: absolute; left: 0; right: 0; top: 128px; bottom: auto; inset-inline: 0; display: flex; gap: 6px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; pointer-events: auto !important; }
  .sections::-webkit-scrollbar { display: none; }
  .gcard { position: relative; flex: none; width: auto; min-height: 0; padding: 6px 9px; }
  body:not(.column-mode) .gcard { display: none; }
  .gcard-name { font-size: 11px; }
  .gcard-name i { display: none; }
  .gcard b { font-size: 12px; }
  .card { width: 84px; padding: 6px 8px; border-radius: 9px; }
  .card-ic { display: none; }
  .card b { font-size: 15px; }
  .card-name { margin-top: 3px; font-size: 10px; }
  .card.compact { width: 62px; padding: 4px 4px; text-align: center; }
  .card.compact b { display: none; }
  .card.compact .card-name { margin-top: 0; font-size: 9.5px; }
  .row-t { font-size: 13px; }
  .fan-inner { padding-top: 58px; }
  .fan-scroll { -webkit-mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 26px), transparent); }
  .fan-intro { max-width: none; padding-right: 14px; }
  .fan-inner { padding-top: 26px; }
  .s-parts button { grid-template-columns: 10px 70px 1fr; }
  .panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: 62%; border-radius: 18px; transform: translateY(40px); }
  .dock { bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); width: calc(100vw - 20px); }
  .stat { padding: 0 9px; }
  .stat small i { display: none; }
  .stat b { font-size: 16px; }
  .chips { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .chips { display: none; }
  .hero { bottom: 146px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 16.5px; }
  .hero p { font-size: 11px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .top, .controls, .legend, .dock, .wordmark, .panel { transition-duration: .01s; }
}

/* Passage to and from the run view. */
.passing .top, .passing .controls, .passing .legend, .passing .dock, .passing .wordmark, .passing .hero, .passing .crumb, .passing .orbit-layer, .passing .tip, .passing .panel, .passing .fan { opacity: 0 !important; visibility: hidden; pointer-events: none; transition: opacity .32s ease, visibility .32s; }
.orbit-layer { transition: opacity .7s ease; }
.pass-veil { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; background: #050606; }
.pass-arc { position: fixed; inset: 0; z-index: 89; width: 100%; height: 100%; pointer-events: none; opacity: 0; overflow: visible; }
.pass-arc path { fill: none; stroke: rgba(240, 228, 194, .92); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(240, 214, 150, .55)); }
.pass-arc circle { fill: #fff; opacity: 0; filter: drop-shadow(0 0 8px rgba(255, 236, 190, .95)); }
.hero .hero-play.pressed { color: #14130f; background: #f0e4c2; border-color: #f0e4c2; transition: none; }
