:root{--bg: #0e1420;--panel: #141c2b;--surface: #1c2635;--hairline: #26324a;--line: #3a4a68;--faint: #7a8699;--muted: #c7cfda;--ink: #f2f5f8;--accent: #00e676;--accent-deep: #00a85d;--accent-ink: #0e1420;--warn: #ffb020;--info: #00c2ff;--ease-out: cubic-bezier(.23, 1, .32, 1);--ease-in-out: cubic-bezier(.77, 0, .175, 1);--font-sans: "IBM Plex Sans", system-ui, sans-serif;--font-mono: "IBM Plex Mono", ui-monospace, monospace}*{margin:0;padding:0;box-sizing:border-box}a{color:inherit}.cursor{display:inline-block;width:.55em;height:1.05em;margin-left:.12em;background:var(--accent);vertical-align:-.17em;animation:blink 1.05s steps(1) infinite}.cursor.solid{animation:none}@keyframes blink{50%{opacity:0}}html,body{height:100%}body{background:var(--bg);color:var(--ink);font-family:var(--font-sans);font-size:1rem;line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior-y:auto}.ch{white-space:pre}.stage{position:relative;height:100vh;height:100dvh;overflow:hidden;touch-action:manipulation;display:grid;grid-template-rows:auto minmax(0,auto);align-content:center;gap:clamp(14px,6vh,68px);padding:max(clamp(14px,3.5vh,40px),env(safe-area-inset-top)) clamp(18px,4vw,56px) max(clamp(34px,6vh,56px),env(safe-area-inset-bottom))}.top{text-align:center}.brand{display:inline-block;font-family:var(--font-mono);font-weight:700;font-size:1.15rem;letter-spacing:-.01em;line-height:1.2}.ask{margin-top:clamp(4px,1.2vh,12px);font-family:var(--font-mono);font-weight:500;font-size:clamp(1.02rem,.72rem + 1.45vw,1.8rem);letter-spacing:-.01em;line-height:1.25}.ask .ps{font-weight:500;color:var(--accent);margin-right:.6em}.branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto minmax(0,auto) auto;column-gap:0;row-gap:clamp(8px,2.4vh,26px);width:100%;max-width:1320px;margin-inline:auto;min-height:0}.branch{grid-row:span 3;display:grid;grid-template-rows:subgrid;min-height:0;min-width:0;padding:clamp(8px,2vh,22px) clamp(14px,2.4vw,34px);text-decoration:none;border-left:1px solid var(--hairline);border-radius:2px;transition:opacity .22s var(--ease-out),border-color .6s var(--ease-out)}.branch:first-child,.pre .branch{border-left-color:transparent}.branch:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:6px}.b-head{display:block;font-family:var(--font-mono);font-weight:600;font-size:clamp(1rem,.78rem + .8vw,1.4rem);letter-spacing:-.01em;line-height:1.25;white-space:nowrap}.b-key{font-weight:400;font-size:.72em;color:var(--accent-deep);margin-right:.7em;vertical-align:.08em}.b-scene{display:block;min-height:0;min-width:0;aspect-ratio:8 / 5}.b-scene svg{display:block;width:100%;height:100%;overflow:visible;transition:transform .26s var(--ease-out)}.b-line{display:block;max-width:31ch;color:var(--muted);font-size:clamp(.9rem,.82rem + .3vw,1.06rem);line-height:1.45;text-wrap:pretty;transition:color .22s var(--ease-out)}.hint{position:absolute;left:0;right:0;bottom:max(clamp(10px,2.2vh,22px),env(safe-area-inset-bottom));text-align:center;font-family:var(--font-mono);font-size:.74rem;letter-spacing:.06em;color:var(--faint)}.is-rest #ask-c{visibility:hidden}.is-rest .branch{cursor:pointer}.stage:not(.is-rest) .branch{pointer-events:none}@media(hover:hover)and (pointer:fine){.is-rest .branches:has(.branch:hover) .branch:not(:hover){opacity:.36}.is-rest .branch:hover .b-scene svg{transform:scale(1.07)}.is-rest .branch:hover .b-line{color:var(--ink)}}.is-rest .branches:has(.branch:focus-visible) .branch:not(:focus-visible){opacity:.36}.is-rest .branch:focus-visible .b-scene svg{transform:scale(1.07)}.is-rest .branch:focus-visible .b-line{color:var(--ink)}.is-rest .branch:active .b-scene svg{transform:scale(1.03)}.scene *{transition:stroke .42s var(--ease-out),fill .42s var(--ease-out)}.scene .lk,.scene .wall{fill:none;stroke:var(--line);stroke-width:1.5}.scene .ring{fill:var(--bg);stroke:var(--line);stroke-width:1.5}.scene .dotc,.scene .sub{fill:var(--faint)}.scene .lb{font-family:var(--font-mono);font-weight:500;font-size:9.5px;letter-spacing:.07em;fill:var(--faint);text-anchor:middle}.scene .route{fill:none;stroke:none}.scene .par,.scene .close,.scene .check{fill:none;stroke:var(--accent);stroke-width:1.5}.scene .check{stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.scene .pain{fill:var(--accent)}.scene .alert{fill:var(--warn);opacity:0}.scene .halo{fill:currentColor;opacity:.16}.scene .core{fill:currentColor}.scene .pkt,.scene .tok{color:var(--accent);opacity:0}.scene .probe{fill:var(--faint);opacity:0}.scene.sat .lk.satl{stroke:var(--warn)}.scene.sat .pain{fill:var(--warn)}.scene.solved .nd .ring,.scene.solved .ring.corp,.scene .st.on .ring,.scene.solved .st .ring{stroke:var(--accent-deep)}.scene.solved .nd .dotc,.scene.solved .dotc.corp,.scene .st.on .dotc,.scene.solved .st .dotc,.scene.solved .sub{fill:var(--accent)}.scene.solved .wall{stroke:var(--accent)}.scene .tk line{stroke:var(--line);stroke-width:1.5}.scene .tk circle{fill:var(--bg);stroke:var(--line);stroke-width:1.5}.scene .tk .lb{fill:var(--faint)}.scene .tk.amber line{stroke:var(--warn)}.scene .tk.amber circle{fill:var(--warn);stroke:var(--warn)}.scene .tk.amber .lb{fill:var(--warn)}.scene .tk.shut line,.scene.solved .tk line{stroke:var(--hairline)}.scene .tk.shut circle,.scene.solved .tk circle{stroke:var(--hairline)}.scene .tk.shut .lb,.scene.solved .tk .lb{fill:#4d5a70}.scene .tk.amber.shut circle,.scene.solved .tk.amber circle{fill:var(--accent);stroke:var(--accent)}.fly{position:absolute;left:0;top:0;pointer-events:none}.fly i{position:absolute;left:0;top:0;background:var(--accent);visibility:hidden;will-change:transform}.take{position:fixed;inset:0;z-index:10;visibility:hidden;overflow:hidden}.take-fill{position:absolute;background:var(--accent);will-change:transform}.take-ps{position:absolute;inset:0;display:grid;place-content:center;grid-auto-flow:column;align-items:center;visibility:hidden;font-family:var(--font-mono);font-weight:500;font-size:clamp(1.15rem,.9rem + 2vw,2.3rem);color:var(--accent)}.take-ps b{font-weight:500}@media(max-width:760px)and (orientation:portrait){.stage{grid-template-rows:auto minmax(0,1fr);align-content:stretch;gap:clamp(8px,2vh,18px)}.branches{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));row-gap:0}.branch{grid-row:auto;grid-template-rows:auto minmax(0,1fr) auto;row-gap:clamp(4px,1vh,10px);min-height:44px;padding:clamp(8px,1.6vh,16px) 2px;border-left:0;border-top:1px solid var(--hairline)}.branch:first-child,.pre .branch{border-top-color:transparent}.b-scene{aspect-ratio:auto}.b-scene svg{width:auto;max-width:100%;aspect-ratio:8 / 5;transform-origin:0 50%}.b-line{max-width:none;font-size:clamp(.84rem,.6rem + 1.1vw,.98rem);line-height:1.38}.scene .lb{font-size:11px}}@media(max-height:520px){.hint{display:none}.b-line{font-size:.84rem;line-height:1.3}}@media(max-height:400px){.b-line{display:none}.stage{gap:6px}}@media(max-width:760px)and (orientation:portrait)and (max-height:600px){.b-line{display:none}}@media(prefers-reduced-motion:reduce){.cursor{animation:none}.branch,.b-scene svg,.b-line,.scene *{transition:none}.is-rest .branch:hover .b-scene svg,.is-rest .branch:focus-visible .b-scene svg{transform:none}}.nojs{position:fixed;inset:0;display:grid;place-content:center;gap:16px;text-align:center;font-family:var(--font-mono);background:var(--bg)}.nojs a{color:var(--accent)}
