.shell { position:relative; overflow-x:clip; background:linear-gradient(180deg,var(--bg) 0%,var(--bg) 44%,var(--bg-mid) 80%,var(--bg-deep) 100%); color:var(--text); }
.shell::after { content:""; position:absolute; inset:auto 0 0; height:110px; z-index:6; pointer-events:none; background:linear-gradient(180deg,var(--bg-deep-0),var(--bg-deep-40) 50%,var(--bg-deep)); }
.hero-copy { position:relative; z-index:5; display:flex; flex-direction:column; align-items:center; text-align:center; padding-top:36px; }
.hero-title { margin:18px 0 0; font-size:clamp(34px,3.4vw,46px); }
.grad { color:var(--glow-b); background:linear-gradient(100deg,var(--glow-a-soft),var(--glow-b) 68%,var(--glow-core)); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:var(--clear); }
.badge,.tag { display:inline-flex; align-items:center; gap:9px; min-height:28px; padding:4px 13px 4px 11px; max-width:100%; overflow-wrap:anywhere; border-radius:var(--r-pill); border:1px solid var(--white-08); background:var(--white-03); color:var(--text-muted); font-size:13px; line-height:1.35; }
.badge-dot,.state i { width:7px; height:7px; border-radius:var(--r-dot); }
.badge-dot { background:var(--glow-b); box-shadow:0 0 0 3px var(--glow-b-18),0 0 10px var(--glow-b-60); animation:breathe 2.4s ease-in-out 3; }
@keyframes breathe { 50% { opacity:.45; transform:scale(.8); } }
.cta { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:22px; }
.lede { margin:18px 0 0; max-width:720px; font-size:16px; line-height:26px; color:var(--text-muted); }
.lede strong { color:var(--text); font-weight:500; }
.platforms,.tags { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.platforms { margin-top:18px; }
.platforms a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:32px; padding:4px 13px 4px 11px; border-radius:var(--r-pill); border:1px solid var(--white-08); font-size:13px; line-height:1; color:var(--text-muted); transition:color var(--ease),border-color var(--ease),background-color var(--ease); }
.platforms svg { width:14px; height:14px; display:block; }
.platforms a:hover { color:var(--text); border-color:var(--white-16); background:var(--white-03); }
.stage { position:relative; margin-top:6px; height:616px; pointer-events:none; user-select:none; }
.field { position:absolute; z-index:1; left:50%; top:136px; width:1180px; height:620px; transform:translate(-50%,-50%); background:radial-gradient(ellipse 50% 50% at 50% 50%,var(--glow-core-70),var(--glow-b-55) 9%,var(--glow-a-55) 26%,var(--glow-a-18) 50%,var(--clear) 70%); }
.field--wide { top:330px; width:1900px; height:940px; background:radial-gradient(ellipse 50% 50% at 50% 40%,var(--glow-a-18),var(--glow-a-08) 42%,var(--clear) 70%); }
.stars { position:absolute; z-index:2; left:50%; top:0; width:820px; height:150px; transform:translateX(-50%); fill:var(--star); }
.stars .o1 { opacity:.35; }
.stars .o2 { opacity:.6; }
.cat { position:absolute; z-index:4; filter:drop-shadow(0 0 8px var(--white-60)) drop-shadow(0 0 26px var(--glow-b-60)); }
.cat svg { display:block; width:100%; height:auto; color:var(--white); }
.cat-eye { fill:var(--bg); }
.cat--l { left:calc(50% - 236px); top:30px; width:86px; transform:rotate(-10deg); }
.cat--r { left:calc(50% + 140px); top:12px; width:76px; transform:rotate(9deg); }
.cat--c { left:calc(50% - 26px); top:72px; width:62px; transform:rotate(-4deg); }
.cat-float { animation:cat-float 6s ease-in-out infinite; }
.cat--r .cat-float { animation-delay:-2s; }
.cat--c .cat-float { animation-delay:-4s; }
@keyframes cat-float { 50% { transform:translateY(-7px); } }
.frame { position:absolute; z-index:3; left:4%; right:4%; top:136px; height:480px; padding:10px; border-radius:var(--r-window); border:1px solid var(--glow-b-35); background:linear-gradient(180deg,var(--glow-b-30),var(--glow-a-35) 22%,var(--glow-a-18) 60%,var(--glow-a-08)); color:var(--text); box-shadow:0 -24px 90px -10px var(--glow-a-55),0 40px 120px var(--ink-70),inset 0 1px 0 var(--white-30); }
.frame::before,.feature-panel::before { content:""; position:absolute; top:-1px; left:16%; right:16%; height:1px; background:linear-gradient(90deg,var(--clear),var(--glow-b) 25%,var(--glow-core) 50%,var(--glow-b) 75%,var(--clear)); pointer-events:none; }
.frame::after { content:""; position:absolute; top:-22px; left:30%; right:30%; height:44px; border-radius:var(--r-dot); background:radial-gradient(ellipse at center,var(--glow-core-70),var(--clear) 70%); filter:blur(10px); pointer-events:none; }
.win { position:relative; height:100%; display:grid; grid-template-rows:38px minmax(0,1fr); border-radius:var(--r-inner); overflow:hidden; background:var(--bg-panel); color:var(--text); border:1px solid var(--white-06); box-shadow:0 18px 50px var(--ink-60); }
.win-bar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding-inline:16px; min-height:38px; background:var(--bg-chrome); color:var(--text-muted); border-bottom:1px solid var(--white-05); }
.lights { display:flex; gap:8px; }
.lights i { display:block; width:11px; height:11px; border-radius:var(--r-dot); opacity:.85; }
.l-r { background:var(--error); }
.l-y { background:var(--warn); }
.l-g { background:var(--success); }
.win-title { font:12px var(--font-mono); letter-spacing:.02em; }
.win-meta { justify-self:end; font:11px var(--font-mono); }
.win-body { display:grid; grid-template-columns:52px 480px minmax(0,1fr); min-height:0; }
.activity { display:flex; flex-direction:column; align-items:center; gap:20px; padding-top:16px; background:var(--bg-chrome); color:var(--text-muted); border-right:1px solid var(--white-05); }
.activity span { position:relative; width:100%; display:flex; justify-content:center; }
.activity svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.activity .on { color:var(--text); }
.activity .on::before { content:""; position:absolute; inset:-4px auto -4px 0; width:2px; border-radius:var(--r-line); background:var(--glow-b); }
.log,.code-pane { display:grid; grid-template-rows:34px minmax(0,1fr); min-width:0; }
.log { border-right:1px solid var(--white-05); }
.pane-head { display:flex; align-items:center; justify-content:space-between; padding-inline:20px; border-bottom:1px solid var(--white-05); font:11px var(--font-mono); letter-spacing:.06em; color:var(--text-muted); }
.state { display:inline-flex; align-items:center; gap:7px; letter-spacing:0; }
.state i { background:var(--success); box-shadow:0 0 8px var(--success-50); }
.log pre { padding:12px 20px; font-size:12px; line-height:22px; background:var(--bg-panel); color:var(--text-muted); border-radius:0; }
.editor-tabs { display:flex; background:var(--bg-chrome); color:var(--text-muted); border-bottom:1px solid var(--white-05); }
.editor-tab { position:relative; display:flex; align-items:center; gap:7px; padding-inline:16px; white-space:nowrap; font:12px var(--font-mono); border-right:1px solid var(--white-05); }
.editor-tab.on { background:var(--bg-panel); color:var(--text); }
.editor-tab.on::after { content:""; position:absolute; inset:auto 12px 0; height:2px; border-radius:var(--r-line); background:var(--accent); }
pre.lines { padding:10px 0; font:13px/21px var(--font-mono); background:var(--bg-panel); color:var(--syn-str); border-radius:0; counter-reset:editor-line; }
.lines .ln { display:block; counter-increment:editor-line; }
.lines .ln::before { content:counter(editor-line); display:inline-block; width:52px; padding-right:18px; text-align:right; color:var(--text-muted); }
pre .k { color:var(--syn-key); }
pre .n,pre .lv { color:var(--syn-scalar); }
pre .t { color:var(--syn-type); }
.cursor { display:inline-block; width:8px; height:16px; margin-left:2px; vertical-align:-3px; background:var(--accent); box-shadow:0 0 8px var(--accent-40); animation:blink 1s step-end 1.2s 4 both; }
@keyframes blink { 50% { opacity:0; } }
.stage .ln { animation:line-in .42s cubic-bezier(.2,.7,.2,1) both; }
.stage .ln:nth-child(2) { animation-delay:.09s; }
.stage .ln:nth-child(3) { animation-delay:.16s; }
.stage .ln:nth-child(4) { animation-delay:.23s; }
.stage .ln:nth-child(5) { animation-delay:.30s; }
.stage .ln:nth-child(6) { animation-delay:.37s; }
.stage .ln:nth-child(7) { animation-delay:.44s; }
.stage .ln:nth-child(8) { animation-delay:.51s; }
.stage .ln:nth-child(9) { animation-delay:.58s; }
.stage .ln:nth-child(10) { animation-delay:.65s; }
@keyframes line-in { from { opacity:0; transform:translateY(6px); } }
.facts { padding-block:34px 30px; }
.facts-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; row-gap:12px; padding:0; font:13px/20px var(--font-mono); }
.facts-row div { display:flex; align-items:baseline; gap:10px; padding-inline:28px; }
.facts-row div + div { border-left:1px solid var(--white-08); }
.facts-row dt { color:var(--text-muted); }
.features { padding-block:64px 120px; text-align:center; }
.seg { display:inline-flex; flex-wrap:wrap; justify-content:center; gap:4px; padding:6px; border-radius:var(--r-pill); border:1px solid var(--white-12); background:var(--white-02); color:var(--text-muted); }
.seg [role="tab"] { position:relative; min-height:44px; padding:6px 24px; border:1px solid var(--clear); border-radius:var(--r-pill); background:var(--clear); color:var(--text-muted); font-size:15px; transition:color var(--ease),background-color var(--ease); }
.seg [role="tab"]:hover { color:var(--text); }
.seg [aria-selected="true"] { background:var(--bg-panel-2); border-color:var(--white-16); color:var(--text); }
.seg [aria-selected="true"]::after { content:""; position:absolute; left:calc(50% - 2px); bottom:5px; width:4px; height:4px; border-radius:var(--r-dot); background:var(--accent); }
.seg [aria-selected="true"]::before { content:""; position:absolute; inset:auto 14px 2px; height:1px; background:var(--accent); transform:scaleX(0); transform-origin:left; }
.tabs-playing .seg [aria-selected="true"]::before { animation:tab-progress var(--tab-period,9s) linear forwards; }
@keyframes tab-progress { to { transform:scaleX(1); } }
.seg-note { margin:24px auto; max-width:640px; color:var(--text-muted); }
.feature-panel { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); align-items:center; gap:24px; text-align:start; animation:panel-in .28s ease both; }
.feature-panel .win { height:auto; grid-template-rows:auto auto; }
@keyframes panel-in { from { opacity:.35; } }
.toc,.toc-tabs { display:flex; flex-wrap:wrap; gap:8px; padding:10px; border:1px solid var(--border); border-radius:var(--r-panel); background:var(--bg-chrome); color:var(--text); }
.toc--sticky { position:sticky; top:12px; z-index:5; }
.toc--static { position:static; }
.toc a,.toc-tabs a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:6px 14px; border-radius:var(--r-pill); }
.toc a:hover,.toc-tabs a:hover { background:var(--bg-panel-2); color:var(--text); }
.faq-item { padding:0 18px; margin-block:12px; border:1px solid var(--border); border-radius:var(--r-panel); background:var(--bg-panel); color:var(--text); }
.faq-item summary { padding-block:14px; min-height:44px; }
.faq-item p { color:var(--text-muted); }
.term-card dt { font-size:20px; margin-bottom:8px; }
.term-card dd,.post-card p,.download-card p { color:var(--text-muted); }
.post-card a:hover { text-decoration:underline; text-underline-offset:.2em; }
.post-card time,.revision { font:13px var(--font-mono); color:var(--text-muted); }
.download-card .tags,.post-card .tags { justify-content:flex-start; }
.app-head { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.app-icon { width:56px; height:56px; }
[data-rev]:empty { display:none; }
.badge--lead { border-color:var(--white-30); color:var(--text); }
.badge--recommended { background:var(--bg-panel-2); color:var(--text); }
.badge--archived { border-style:dashed; color:var(--text-muted); }
.callout { margin:20px 0; padding:16px 20px; border:1px solid var(--border); border-inline-start:3px solid var(--white-40); border-radius:var(--r-inner); background:var(--bg-panel); color:var(--text); }
.callout > :last-child { margin-bottom:0; }
.download-endcap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; }
.dl-fab { position:fixed; z-index:10; inset-inline-end:max(var(--gutter),env(safe-area-inset-right)); bottom:max(18px,env(safe-area-inset-bottom)); max-width:calc(100% - 2 * var(--gutter)); }
.has-dl-fab .site-footer { padding-bottom:86px; }
.table-wrap,.prose table,.wrap table { max-width:100%; min-width:0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.prose table,.wrap table { display:block; }
.table-wrap table { display:table; width:100%; }
.data-table,.prose table,.wrap table { border-collapse:collapse; }
.data-table :is(th,td),.prose table :is(th,td),.wrap table :is(th,td) { min-width:7em; padding:10px 14px; border-bottom:1px solid var(--border); text-align:start; vertical-align:top; word-break:normal; overflow-wrap:normal; }
.data-table th,.prose th,.wrap th { background:var(--bg-panel-2); color:var(--text); }
.swatches { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,128px),1fr)); gap:12px; list-style:none; padding:0; }
.swatches li { padding:8px; background:var(--bg-panel); color:var(--text); border:1px solid var(--border); border-radius:var(--r-inner); }
.swatches li::before { content:""; display:block; height:32px; margin-bottom:6px; background:var(--sample); border:1px solid var(--white-12); border-radius:var(--r-pill); }
[data-swatch="bg"]{--sample:var(--bg)}
[data-swatch="bg-mid"]{--sample:var(--bg-mid)}
[data-swatch="bg-deep"]{--sample:var(--bg-deep)}
[data-swatch="bg-deep-0"]{--sample:var(--bg-deep-0)}
[data-swatch="bg-deep-40"]{--sample:var(--bg-deep-40)}
[data-swatch="bg-panel"]{--sample:var(--bg-panel)}
[data-swatch="bg-panel-2"]{--sample:var(--bg-panel-2)}
[data-swatch="bg-chrome"]{--sample:var(--bg-chrome)}
[data-swatch="border"]{--sample:var(--border)}
[data-swatch="accent"]{--sample:var(--accent)}
[data-swatch="accent-hover"]{--sample:var(--accent-hover)}
[data-swatch="accent-dark"]{--sample:var(--accent-dark)}
[data-swatch="accent-ink"]{--sample:var(--accent-ink)}
[data-swatch="accent-25"]{--sample:var(--accent-25)}
[data-swatch="accent-40"]{--sample:var(--accent-40)}
[data-swatch="glow-a"]{--sample:var(--glow-a)}
[data-swatch="glow-a-soft"]{--sample:var(--glow-a-soft)}
[data-swatch="glow-b"]{--sample:var(--glow-b)}
[data-swatch="glow-core"]{--sample:var(--glow-core)}
[data-swatch="glow-core-70"]{--sample:var(--glow-core-70)}
[data-swatch="glow-a-08"]{--sample:var(--glow-a-08)}
[data-swatch="glow-a-18"]{--sample:var(--glow-a-18)}
[data-swatch="glow-a-35"]{--sample:var(--glow-a-35)}
[data-swatch="glow-a-55"]{--sample:var(--glow-a-55)}
[data-swatch="glow-b-18"]{--sample:var(--glow-b-18)}
[data-swatch="glow-b-30"]{--sample:var(--glow-b-30)}
[data-swatch="glow-b-35"]{--sample:var(--glow-b-35)}
[data-swatch="glow-b-55"]{--sample:var(--glow-b-55)}
[data-swatch="glow-b-60"]{--sample:var(--glow-b-60)}
[data-swatch="text"]{--sample:var(--text)}
[data-swatch="text-dim"]{--sample:var(--text-dim)}
[data-swatch="text-muted"]{--sample:var(--text-muted)}
[data-swatch="text-faint"]{--sample:var(--text-faint)}
[data-swatch="success"]{--sample:var(--success)}
[data-swatch="success-50"]{--sample:var(--success-50)}
[data-swatch="warn"]{--sample:var(--warn)}
[data-swatch="error"]{--sample:var(--error)}
[data-swatch="white"]{--sample:var(--white)}
[data-swatch="star"]{--sample:var(--star)}
[data-swatch="white-02"]{--sample:var(--white-02)}
[data-swatch="white-03"]{--sample:var(--white-03)}
[data-swatch="white-05"]{--sample:var(--white-05)}
[data-swatch="white-06"]{--sample:var(--white-06)}
[data-swatch="white-08"]{--sample:var(--white-08)}
[data-swatch="white-12"]{--sample:var(--white-12)}
[data-swatch="white-16"]{--sample:var(--white-16)}
[data-swatch="white-30"]{--sample:var(--white-30)}
[data-swatch="white-40"]{--sample:var(--white-40)}
[data-swatch="white-60"]{--sample:var(--white-60)}
[data-swatch="ink-60"]{--sample:var(--ink-60)}
[data-swatch="ink-70"]{--sample:var(--ink-70)}
[data-swatch="syn-key"]{--sample:var(--syn-key)}
[data-swatch="syn-scalar"]{--sample:var(--syn-scalar)}
[data-swatch="syn-str"]{--sample:var(--syn-str)}
[data-swatch="syn-type"]{--sample:var(--syn-type)}
[data-swatch="syn-punct"]{--sample:var(--syn-punct)}
[data-swatch="syn-comment"]{--sample:var(--syn-comment)}
[data-swatch="clear"]{--sample:var(--clear)}
@media(max-width:1120px) { .win-body { grid-template-columns:48px 400px minmax(0,1fr); } }
@media(max-width:880px) {
  .win-body,.feature-panel { grid-template-columns:minmax(0,1fr); }
  .activity,.log { display:none; }
  .frame { left:0; right:0; }
  .cat--l { left:calc(50% - min(170px,42vw)); }
  .cat--r { left:calc(50% + min(80px,21vw)); }
  .seg { border-radius:var(--r-panel); }
}
@media(max-width:768px) { .hero-title { font-size:clamp(24px,5vw,30px); } }
@media(max-width:560px) {
  .cta { flex-direction:column; align-items:stretch; width:100%; max-width:320px; }
  .facts-row div { padding-inline:14px; }
  .editor-tab { padding-inline:6px; font-size:10px; }
  .lines .ln::before { width:30px; padding-right:8px; }
  pre.lines { font-size:11px; }
  .win-meta { display:none; }
  .seg [role="tab"] { padding-inline:12px; }
  .toc--sticky { position:static; }
}