:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #4a4a4a;
  --muted: #8c8c8c;
  --faint: #c4c4c4;
  --line: #ebebeb;
  --wash: #f4f4f4;
  --wash-2: #e8e8e8;
  --term: #111111;
  --term-ink: #ededed;
  --term-muted: #7f7f7f;
  --term-tok: #333333;
  --native: #2563eb;
  --people: #d9480f;
  --people-wash: color-mix(in srgb, var(--people) 14%, var(--bg));
  --roleplay: var(--ink-2);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w: 1080px;
  --gutter: 32px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0b; --ink: #f0f0f0; --ink-2: #b3b3b3; --muted: #7a7a7a; --faint: #4a4a4a;
    --line: #1f1f1f; --wash: #151515; --wash-2: #232323;
    --term: #1b1b1b; --term-ink: #ececec; --term-muted: #767676; --term-tok: #3a3a3a;
    --native: #4c8dff; --people: #ff8a3d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0b; --ink: #f0f0f0; --ink-2: #b3b3b3; --muted: #7a7a7a; --faint: #4a4a4a;
  --line: #1f1f1f; --wash: #151515; --wash-2: #232323;
  --term: #1b1b1b; --term-ink: #ececec; --term-muted: #767676; --term-tok: #3a3a3a;
  --native: #4c8dff; --people: #ff8a3d;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; border-radius: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: calc(var(--w) + 2 * var(--gutter)); margin: 0 auto; padding-right: var(--gutter); padding-left: var(--gutter); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar { display: flex; align-items: center; gap: 32px; height: 52px; }
.brand { font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.toplink { margin-left: auto; color: var(--muted); font: 12px var(--mono); text-decoration: none; }
.toplink:hover { color: var(--ink); }
.progress { height: 1px; background: var(--ink); transform-origin: 0 0; transform: scaleX(0); }

/* Type */
.kicker { margin: 0 0 20px; color: var(--muted); font: 12px/1.4 var(--mono); letter-spacing: .02em; }
h1 { max-width: 12em; margin: 0; font-size: clamp(44px, 7.4vw, 88px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.lede { max-width: 36em; margin: 24px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.lede + .lede { margin-top: 12px; }
.post > p, .post > ul { max-width: 36em; margin: 24px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.post > ul { padding-left: 20px; }
.post li + li { margin-top: 8px; }
.post > p b, .post [data-fill], .lede [data-fill] { color: var(--ink); font-weight: 500; }
.post > p a { color: var(--ink); }
.lede em { color: var(--muted); }
.post > p code, .lede code { padding: 2px 6px; background: var(--wash); color: var(--ink); font: .8em var(--mono); white-space: nowrap; }

figure { margin: 56px 0 72px; }
.cap { max-width: 44em; margin: 16px 0 0; color: var(--muted); font: 12px/1.6 var(--mono); }
.cap b { color: var(--ink); font-weight: 500; }
.label { color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* Hero */
.hero { padding: 120px 0 40px; }
.hero .lede { font-size: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.cta .btn { gap: 10px; padding: 14px 20px; font-size: 13.5px; text-decoration: none; }
.cta svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cta .go { width: 12px; height: 12px; margin-left: 2px; opacity: .5; transition: transform .15s, opacity .15s; }
.cta .btn:hover .go { opacity: 1; transform: translateY(2px); }
.hero-demo { display: flex; flex-direction: column; align-items: flex-end; max-width: 620px; min-height: 180px; margin: 64px 0 0 auto; }
.hero-demo .bubble { max-width: 100%; min-height: 50px; }
.hero-demo .who { margin-top: 10px; }

/* Buttons and choices */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 5px 9px; border: 0; background: var(--wash); color: var(--ink-2); font: 11.5px/1.4 var(--mono); cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { background: var(--wash-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pick { position: relative; display: inline-flex; gap: 1px; }
.pick.on > .chip { background: var(--ink); color: var(--bg); }
.chip.more { display: inline-flex; align-items: center; padding: 5px 7px; }
.chip.more svg { transition: transform .15s; }
.chip.more[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu { position: absolute; z-index: 15; top: calc(100% + 4px); left: 0; display: grid; grid-template-columns: max-content auto; gap: 6px 16px; align-items: center; padding: 12px 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--wash-2), 0 12px 32px rgb(0 0 0 / .12); white-space: nowrap; }
.menu[hidden] { display: none; }
.menu .sizes { display: flex; gap: 4px; }
.menu .chip[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.seg { display: none; }
.tabs { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; padding: 0 0 6px; border: 0; background: none; color: var(--muted); font: 12px/1.4 var(--mono); cursor: pointer; box-shadow: inset 0 -1px 0 transparent; transition: color .15s, box-shadow .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; background: var(--ink); color: var(--bg); font: 13px/1 var(--mono); cursor: pointer; }
.btn:hover { opacity: .85; }
.btn.ghost { background: var(--wash); color: var(--ink); }
.btn.ghost:hover { background: var(--wash-2); opacity: 1; }
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }

/* Chat and text panes */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2px; }
.pane { min-width: 0; padding: 22px 24px 26px; background: var(--wash); }
.pane.term { background: var(--term); color: var(--term-ink); }
.pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 25px; margin-bottom: 18px; }
.which svg, .seg svg { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pane.term .label { color: var(--term-muted); }
.bubbles { display: flex; flex-direction: column; gap: 10px; }
.bubble { align-self: flex-start; max-width: 86%; padding: 10px 14px; background: var(--bg); font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; transition: opacity .2s; }
.bubble.user { align-self: flex-end; background: var(--ink); color: var(--bg); }
.bubble.gen { min-width: 2.4em; min-height: 1.45em; }
.who { align-self: flex-end; color: var(--muted); font: 11px/1.4 var(--mono); }
.raw { margin: 0; font: 12.5px/1.8 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.raw .tok { padding: 2px 4px; margin: 0 1px; background: var(--term-tok); color: var(--term-ink); font-size: 11.5px; white-space: nowrap; }
.raw .role { color: var(--term-muted); }
.raw .m { transition: opacity .2s; }
.focusing [data-m]:not(.on) { opacity: .28; }
.focusing .tok, .focusing .role { opacity: .5; }
.cursor { display: inline-block; width: .6em; height: 1.15em; margin-left: 1px; background: currentColor; vertical-align: -.2em; animation: blink 1.1s steps(1) infinite; }
.bubble .cursor { height: 1.05em; }
@keyframes blink { 50% { opacity: 0; } }
.under { margin: 16px 0 12px; }

/* Settings comparison */
.modes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px; }
.raw .note { color: var(--term-muted); }
.raw .role.here { color: var(--term-ink); }

/* Charts */
svg { display: block; overflow: visible; font-family: var(--sans); }
svg text { fill: var(--ink-2); font-size: 12px; pointer-events: none; }
svg .tick { fill: var(--muted); font: 10.5px var(--mono); font-variant-numeric: tabular-nums; }
svg .name { fill: var(--ink); font-size: 13px; }
svg .name.sm { font-size: 12px; }
svg .note { fill: var(--muted); font: 10.5px var(--mono); }
svg .grid { stroke: var(--line); }
svg .axis { stroke: var(--faint); }
svg .ref { stroke: var(--ink-2); }
svg .refband { fill: var(--people-wash); }
svg .ci { stroke-width: 1.5; opacity: .3; }
svg .ci.native { stroke: var(--native); opacity: .4; }
svg .ci.roleplay { stroke: var(--roleplay); }
svg .ci.user { stroke: var(--ink); }
svg .dot { fill: var(--ink); stroke: var(--bg); stroke-width: 2; }
svg .dot.native, svg .bar.native { fill: var(--native); }
svg .dot.roleplay, svg .bar.roleplay { fill: var(--roleplay); }
svg .dot.user { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
svg text.native { fill: var(--native); }
svg text.people { fill: var(--people); }
svg .whisker.people { stroke: var(--people); }
svg .hit { fill: transparent; cursor: default; }
svg .rowg:hover .hit, svg .rowg.on .hit { fill: var(--wash); }
svg .bar { fill: var(--ink); }
svg .bar.track { fill: var(--wash-2); }
svg .whisker { stroke: var(--ink-2); stroke-width: 1.5; }
svg .err { fill: none; stroke-width: 1.5; }
svg .err.native { stroke: var(--native); }
svg .err.roleplay { stroke: var(--roleplay); }
svg .err.in { stroke: var(--bg); }
svg .band:hover { fill: var(--wash-2); }
svg .blk { fill: var(--faint); }
svg .blk.b { fill: var(--wash-2); }
svg .blk.top { fill: var(--ink); }
svg .rowg.native { --c: var(--native); }
svg .rowg.people { --c: var(--people); }
svg :is(.native, .people) .blk { fill: color-mix(in srgb, var(--c) 45%, var(--bg)); }
svg :is(.native, .people) .blk.b { fill: color-mix(in srgb, var(--c) 22%, var(--bg)); }
svg :is(.native, .people) .blk.top { fill: var(--c); }
svg .cover { fill: transparent; }
svg .inseg { fill: var(--bg); font-size: 12px; font-weight: 500; }
svg .name.strong { font-weight: 600; }
.avg { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 24px; align-items: center; }
.avg .name { font-size: 15px; }
.avg .track { height: 32px; background: var(--wash); }
.avg .track i { display: flex; align-items: center; height: 100%; padding-left: 10px; background: var(--ink); color: var(--bg); }
.avg .track i.native { background: var(--native); }
.avg .track i.people { background: var(--people); }
.avg .track i.roleplay { background: var(--roleplay); }
.avg b { font-size: 17px; font-style: normal; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deep { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deep:first-child { margin-top: 0; }
.deep > summary { display: flex; align-items: center; gap: 14px; padding: 18px 0; font-weight: 500; list-style: none; cursor: pointer; }
.deep > summary::-webkit-details-marker { display: none; }
.deep > summary i { display: grid; flex: none; place-items: center; width: 26px; height: 26px; background: var(--wash); transition: background .15s; }
.deep > summary:hover i { background: var(--wash-2); }
.deep > summary .v { transform-origin: center; transition: transform .2s; }
.deep[open] > summary .v { transform: scaleY(0); }
.deep-body { padding: 16px 0 40px; }
.prose { max-width: 38em; margin: 0 0 32px; color: var(--ink-2); text-wrap: pretty; }
.multiples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.mult { min-width: 0; padding: 16px 16px 8px; background: var(--wash); }
.mult .label { display: block; margin-bottom: 14px; color: var(--ink); }
svg .clickable { cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span[hidden] { display: none; }
.legend i { display: inline-block; flex: none; width: 10px; height: 10px; }
.legend i.native { background: var(--native); }
.legend i.roleplay { background: var(--roleplay); }
.legend i.line { width: 14px; height: 1.5px; background: var(--ink-2); }
.legend i.band { width: 14px; background: var(--people-wash); }
.showall { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 20px; border: 0; background: var(--wash); color: var(--ink); font: 12px/1 var(--mono); letter-spacing: .02em; cursor: pointer; transition: background .15s; }
.showall:hover { background: var(--wash-2); }
.showall svg { transition: transform .15s; }
.showall[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Game page: the page is the screen, and the chat scrolls inside it */
body.play { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.play main { flex: 1; min-height: 0; overflow-y: auto; }
.play .topbar { max-width: 860px; }
.g-wrap { max-width: 860px; padding-top: 20px; padding-bottom: 20px; }
.g-start { padding-top: 10vh; }
.g-start h1 { font-size: clamp(40px, 6vw, 64px); }
.g-start .btn { margin-top: 32px; padding: 14px 28px; font-size: 13.5px; }
.g-start .cap { margin-top: 24px; }
.g-round { display: flex; flex-direction: column; height: 100%; }
.g-round .g-ctx { display: flex; flex-direction: column; flex: 1 1 0; min-height: 140px; overflow-y: auto; overscroll-behavior: contain; }
.g-round .g-ctx .bubbles { margin-top: auto; }
.g-dock { flex: none; }
.g-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.g-progress { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.g-steps { display: flex; gap: 3px; }
.g-steps i { width: 22px; height: 3px; background: var(--wash-2); }
.g-steps i.done { background: var(--ink); }
.g-steps i.now { background: var(--muted); }
.g-score { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.g-score b { color: var(--ink); font-weight: 500; }
.g-ctx { padding: 22px 24px; background: var(--wash); }
.g-ctx > .label { display: block; margin-bottom: 16px; }
.g-ctx .bubbles { gap: 8px; }
.g-ctx .bubble.slot { min-width: 3.2em; background: none; color: var(--ink-2); text-align: center; outline: 1.5px dashed var(--ink-2); outline-offset: -1.5px; }
.g-ctx .bubble { font-size: 14px; }
.g-ctx .bubble.long { position: relative; max-height: 9.5em; overflow: hidden; cursor: pointer; }
.g-ctx .bubble.long::after { content: "more"; position: absolute; right: 0; bottom: 0; left: 0; padding: 18px 14px 6px; background: linear-gradient(transparent, var(--bg) 60%); color: var(--muted); font: 11px var(--mono); text-align: right; }
.g-ctx .bubble.user.long::after { background: linear-gradient(transparent, var(--ink) 60%); }
.g-q { margin: 20px 0 0; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.g-sub { margin: 4px 0 16px; color: var(--ink-2); font-size: 15px; }
.g-opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px; }
.g-opt { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 100px; padding: 18px 20px 20px; border: 0; background: var(--wash); text-align: left; cursor: pointer; transition: background .15s, color .15s, opacity .2s; }
.g-opt:hover:not(:disabled) { background: var(--wash-2); }
.g-opt .label { display: flex; justify-content: space-between; gap: 12px; }
.g-opt .txt { font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.g-opt:disabled { cursor: default; }
.g-opt.ai { background: var(--ink); color: var(--bg); }
.g-opt.human { background: var(--people-wash); }
.g-opt:disabled .label { color: inherit; }
.g-opt .tag { display: inline-flex; align-items: center; gap: 8px; }
.g-opt:disabled .tag { font: 500 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.g-opt svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.g-opt.picked { padding-right: 80px; }
.g-opt .verdict { position: absolute; top: 50%; right: 22px; width: 36px; height: 36px; stroke-width: 2.5; transform: translateY(-50%); }
.g-opt:is(:hover, :focus-visible):not(:disabled) .mark::after { content: "This is the AI"; color: var(--ink); }
.g-out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.g-out:empty { display: none; }
.g-out p { max-width: 40em; margin: 0; color: var(--ink-2); font-size: 15px; }
.g-out p b { color: var(--ink); font-weight: 500; }
.g-end { padding: 40px 32px; background: var(--wash); }
.g-end .vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; max-width: 520px; margin: 28px 0; }
.g-end .vs div { padding: 18px 20px; background: var(--bg); }
.g-end .vs b { display: block; font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.g-end .vs span { display: block; margin-top: 10px; }
.g-end h4 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.recap { display: grid; grid-template-columns: 64px repeat(8, 18px); gap: 6px; align-items: center; margin: -8px 0 32px; }
.recap i { width: 18px; height: 18px; box-shadow: inset 0 0 0 1.5px var(--faint); }
.recap i.hit { background: var(--ink); box-shadow: none; }
.recap i.half { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.recap .n { color: var(--muted); font: 10px var(--mono); text-align: center; }
.g-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.g-actions .btn { text-decoration: none; }
.g-actions .btn.ghost { background: var(--bg); }

/* Chat page: the game's layout, with a composer docked below the chat */
.c-top { justify-content: flex-end; }
.c-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; color: var(--ink-2); font: 12px/1.5 var(--mono); }
.c-status:empty { display: none; }
.bubble.boot { display: flex; flex-direction: column; gap: 9px; width: 240px; padding: 12px 14px 13px; font: 12px/1.4 var(--mono); }
.bubble.boot i { height: 3px; background: color-mix(in srgb, currentColor 22%, transparent); }
.bubble.boot i::after { content: ""; display: block; height: 100%; background: currentColor; transform-origin: 0 0; animation: boot var(--t) linear forwards; }
@keyframes boot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.c-form { display: flex; gap: 2px; margin-top: 12px; }
.c-form textarea { flex: 1; min-width: 0; max-height: 40vh; padding: 15px 16px; border: 0; border-radius: 0; background: var(--wash); color: var(--ink); font: 15px/1.45 var(--sans); resize: none; }
.c-form textarea::placeholder { color: var(--muted); }
.c-form textarea:focus-visible { outline-offset: -2px; }
.c-form .btn { padding: 0 22px; }
.c-form .btn:disabled { opacity: .35; cursor: default; }

/* Waffle */
.waffle { display: grid; grid-template-columns: repeat(50, minmax(0, 1fr)); gap: 2px; }
.waffle button { aspect-ratio: 1; padding: 0; border: 0; background: var(--c); cursor: pointer; }
.waffle button:hover, .waffle button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.waffle button.hidden { background: repeating-linear-gradient(45deg, var(--wash-2) 0 2px, var(--bg) 2px 4px); cursor: default; }
.ramp { display: flex; align-items: center; gap: 2px; color: var(--muted); font: 11px var(--mono); }
.ramp i { width: 14px; height: 14px; background: var(--c); }
.ramp span { margin: 0 8px; }
.detail { min-height: 220px; margin-top: 28px; padding: 22px 24px; background: var(--wash); }
.detail .real { margin: 14px 0 0; font-size: 17px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail > :first-child { margin-top: 0; }
.detail ul { display: grid; gap: 2px; margin: 18px 0 0; padding: 0; list-style: none; }
.detail li { padding: 10px 14px; background: var(--bg); font-size: 14px; line-height: 1.45; }
.detail .none { margin-top: 14px; color: var(--muted); font-size: 14px; }
.opens li { display: grid; grid-template-columns: 44px minmax(0, 13em) minmax(0, 1fr); gap: 16px; }
.opens :is(.s, .m) { font: 12px/1.6 var(--mono); }
.opens .t { white-space: pre-wrap; overflow-wrap: anywhere; }
.case .label { display: flex; align-items: center; gap: 6px; }
.case .label svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.case .msg { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.case .prev .msg { max-width: 52em; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.case .human { margin-top: 18px; padding: 14px 16px 16px; background: var(--people-wash); }
.case .human .label { color: var(--people); }
.case .human .msg { font-size: 17px; line-height: 1.45; }
.case .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-top: 32px; }
.case ul { margin-top: 12px; }
.case li { padding: 12px 16px 14px; }
.case li .label { color: var(--set); }
.case li .s { margin-left: auto; color: var(--muted); font: 12px/1.6 var(--mono); }
.case li .msg { font-size: 15px; line-height: 1.45; }
.case .tab .n { margin-left: 6px; color: var(--muted); }
.case .tab svg { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.case .tab:disabled { color: var(--faint); box-shadow: none; cursor: default; }
.case .tab:disabled .n { color: inherit; }

/* Footer */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; margin-top: 120px; padding-top: 48px; padding-bottom: 72px; }
.foot pre { margin: 0; padding: 18px 22px; overflow-x: auto; background: var(--term); color: var(--term-ink); font: 12.5px/1.8 var(--mono); }
.foot .links { display: flex; flex-direction: column; gap: 10px; padding-top: 36px; font-size: 14px; }
.foot .links a { color: var(--ink-2); }
.foot .links a:hover { color: var(--ink); }

#tip { position: fixed; z-index: 30; max-width: 300px; padding: 10px 12px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.45; pointer-events: none; opacity: 0; transition: opacity .12s; }
#tip b { font-weight: 600; }
#tip .r { display: flex; justify-content: space-between; gap: 18px; color: color-mix(in srgb, var(--bg) 70%, var(--ink)); font: 11.5px/1.7 var(--mono); }
#tip .r b { color: var(--bg); font-weight: 500; }
#tip .q { margin-top: 6px; color: color-mix(in srgb, var(--bg) 80%, var(--ink)); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .hero { padding: 72px 0 24px; }
  figure { margin: 40px 0 56px; }
  .lede, .hero .lede, .post > p, .post > ul { font-size: 17px; }
  .split, .modes { grid-template-columns: minmax(0, 1fr); }
  .waffle { grid-template-columns: repeat(25, minmax(0, 1fr)); }
  .multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .seg .tab { padding: 11px 8px; background: var(--wash-2); color: var(--ink-2); text-align: center; box-shadow: none; }
  .seg .tab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
  .split > .pane:not(.shown), .split .which, .pane.see .pane-head { display: none; }
  .pane, .g-ctx { padding: 18px 16px 20px; }
  .hero-demo { margin-top: 48px; min-height: 220px; }
  .cta { display: grid; }
  .cta .go { margin-left: auto; }
  .g-opts { grid-template-columns: minmax(0, 1fr); }
  .g-opt { min-height: 0; gap: 8px; padding: 14px 16px 16px; }
  .g-opt .txt { font-size: 14px; }
  .g-steps { display: none; }
  .g-wrap { padding-top: 12px; padding-bottom: 12px; }
  .g-start { display: flex; flex-direction: column; justify-content: center; min-height: 100%; text-align: center; }
  .g-start h1, .g-start .lede { margin-right: auto; margin-left: auto; }
  .g-start .btn { justify-content: center; width: 100%; }
  .g-q { margin-top: 14px; font-size: 17px; }
  .g-sub { margin-bottom: 10px; font-size: 14px; }
  .g-end { padding: 28px 20px; }
  .bubble { font-size: 14px; }
  .opens li { grid-template-columns: 44px minmax(0, 1fr); }
  .opens .t { grid-column: 1 / -1; }
  .detail.case { padding: 18px 16px 20px; }
  .case .tabs { display: grid; flex: 1 1 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .case .tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; background: var(--wash-2); color: var(--ink-2); box-shadow: none; }
  .case .tab svg { width: 16px; height: 16px; margin: 0; }
  .case .tab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
  .case .tab .n { margin: 0; color: inherit; opacity: .7; }
  .case .tab:disabled { background: none; outline: 1px solid var(--wash-2); outline-offset: -1px; }
  .case li { padding: 10px 12px 12px; }
  .foot { grid-template-columns: minmax(0, 1fr); margin-top: 112px; }
  .foot .links { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
}
