/* The site's one stylesheet (Website chat). The look follows the original it was forked from: near-black ground, bone text,
   one cyan accent, Space Grotesk + Space Mono + Departure Mono, hairline panels, square corners. Our own file, our own class names. */
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/space-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/space-mono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Departure Mono"; src: url(/fonts/departure-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #060606; --ink-0: #070708; --ink-2: #0b0b0d; --cell: #0c0c0f;
  --bone: #ece8e0; --text: hsla(40, 24%, 90%, .85); --dim: hsla(40, 24%, 90%, .42); --faint: hsla(40, 24%, 90%, .22);
  --hair: hsla(40, 24%, 90%, .10); --hair-2: hsla(40, 24%, 90%, .16); --wash: hsla(40, 24%, 90%, .03);
  --hi: #fff; --ac: #5ef2ff; --ok: #7fbf7f; --warn: #caa45a; --err: #c47272;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --px: "Departure Mono", "Space Mono", ui-monospace, monospace;
  --sym: "Departure Mono", "DejaVu Sans", "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif;
  --gutter: clamp(18px, 3.2vw, 52px); --nav-h: 76px; --news-h: 32px; --top: calc(var(--nav-h) + var(--news-h));
  --sb-thumb: hsla(40, 24%, 90%, .18); --sb-thumb-hover: hsla(40, 24%, 90%, .34);
}
@media (max-width: 760px) { :root { --nav-h: 64px; --news-h: 30px; } }

/* ---------- no stock scrollbars (owner rule; /root/tools/larpcheck/scrollbars.css) */
:root { color-scheme: dark; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb, rgba(140, 140, 150, .35)); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover, rgba(160, 160, 170, .6)); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb, rgba(140, 140, 150, .35)) transparent; } }
.no-sb { scrollbar-width: none; }
.no-sb::-webkit-scrollbar { display: none; }

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; min-height: 100dvh; background: var(--ink); color: var(--bone); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding-top: var(--top); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ac); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ac); outline-offset: 2px; }
code, kbd, pre { font-family: var(--mono); }
hr { border: 0; height: 1px; background: var(--hair); margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.px { font-family: var(--px); letter-spacing: .02em; }
.sym { font-family: var(--sym); font-style: normal; }
.wrap { max-width: 1440px; margin: 0 auto; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.mt { margin-top: clamp(24px, 4vh, 48px); } .mt-sm { margin-top: clamp(14px, 2.4vh, 24px); } .mt-lg { margin-top: clamp(40px, 7vh, 80px); }
.dim { color: var(--dim); } .txt { color: var(--text); } .ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); } .ac { color: var(--ac); }
.nowrap { white-space: nowrap; } .num { font-variant-numeric: tabular-nums; } .break { overflow-wrap: anywhere; word-break: break-word; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row-sb { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
[hidden] { display: none !important; }

/* ---------- type */
.display { font-family: var(--sans); font-weight: 400; line-height: .98; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.display--hero { font-size: clamp(42px, 6.4vw, 92px); }
.display--sec { font-size: clamp(30px, 4.2vw, 60px); letter-spacing: -.025em; }
.display--say { font-size: clamp(24px, 3.1vw, 44px); font-weight: 300; line-height: 1.18; letter-spacing: -.02em; text-wrap: pretty; }
.display--doc { font-size: clamp(22px, 2.3vw, 31px); line-height: 1.14; letter-spacing: -.02em; }
.body { font-weight: 300; font-size: 15px; line-height: 1.72; letter-spacing: .01em; color: var(--text); margin: 0; max-width: 52ch; }
.body--wide { max-width: 78ch; }
.mono { font-family: var(--mono); font-size: 13px; line-height: 1.6; letter-spacing: .02em; color: var(--text); }
.label { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(16px, 2.6vh, 28px); font-family: var(--px); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.eyebrow::before { content: ""; width: 18px; height: 10px; flex: none; background: repeating-linear-gradient(-45deg, currentColor 0 1.5px, transparent 1.5px 4px); }
.eyebrow b { font-weight: 400; color: var(--bone); }
.count { font-family: var(--px); font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--text); max-width: 60ch; margin: 0; }

/* ---------- buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 3.4vh, 36px); }
.btn { display: inline-flex; align-items: stretch; min-height: 44px; border: 1px solid var(--hair-2); background: transparent; font-family: var(--sans); font-size: 14px; letter-spacing: .02em; color: inherit;
  transition: background .25s ease, color .25s ease, border-color .25s ease; padding: 0; text-align: left; }
.btn > i { display: grid; place-items: center; width: 40px; border-right: 1px solid var(--hair-2); color: var(--dim); font-family: var(--sym); font-style: normal; font-size: 14px; }
.btn > span { display: inline-flex; align-items: center; padding: 10px 18px; }
.btn:hover { border-color: var(--hi); color: var(--hi); }
.btn--solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid > i { border-right-color: rgba(6, 6, 6, .18); color: rgba(6, 6, 6, .55); }
.btn--solid:hover { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.btn--sm { min-height: 34px; font-size: 13px; } .btn--sm > span { padding: 6px 12px; } .btn--sm > i { width: 32px; font-size: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.light .btn--solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.light .btn--solid > i { border-right-color: hsla(40, 24%, 90%, .2); color: hsla(40, 24%, 90%, .55); }
.light .btn--solid:hover { background: #000; border-color: #000; color: var(--hi); }
.light .btn:hover { border-color: var(--ink); color: var(--ink); }
.light .btn--solid:hover { color: var(--hi); }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.link:hover { color: var(--hi); text-decoration-color: currentColor; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--hair-2); background: transparent; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); transition: border-color .2s, color .2s, background .2s; white-space: nowrap; }
.tbtn:hover { border-color: var(--hi); color: var(--hi); }
.tbtn[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.tbtn i { font-family: var(--sym); font-style: normal; }

/* ---------- the news ticker + nav (fixed header) */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.news { height: var(--news-h); display: flex; align-items: center; background: rgba(6, 6, 6, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); overflow: hidden; position: relative; }
.news-tag { flex: none; align-self: stretch; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 var(--gutter); border-right: 1px solid var(--hair); font-family: var(--px); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone); background: var(--ink); z-index: 1; }
.news-tag::before { content: ""; width: 6px; height: 6px; background: var(--ac); box-shadow: 0 0 8px var(--ac); }
.news-track { display: flex; width: max-content; animation: roll 150s linear infinite; }
.news:hover .news-track { animation-play-state: paused; }
.news-run { display: flex; flex: none; align-items: center; }
.news-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--text); }
.news-item time { color: var(--dim); }
.news-item i { font-style: normal; color: var(--faint); }
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .news-track { animation: none; } }
@media (max-width: 760px) { .news-item { font-size: 10px; padding: 0 14px; } .news-tag { padding: 0 10px 0 var(--gutter); font-size: 10px; } }

.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); background: var(--ink); border-bottom: 1px solid var(--hair); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 30px; height: 30px; image-rendering: pixelated; }
.brand-name { font-family: var(--px); font-size: 15px; letter-spacing: .04em; text-transform: lowercase; }
.brand-name em { font-style: normal; opacity: .55; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: auto; margin-left: clamp(12px, 3vw, 40px); }
.nav-links a { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; font-size: 14px; color: var(--text); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--hi); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--bone); }
.nav-links a .sym { font-size: 11px; color: var(--dim); }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.ca { display: inline-flex; align-items: stretch; height: 34px; border: 1px solid var(--hair-2); font-family: var(--mono); font-size: 11.5px; color: var(--text); max-width: 260px; }
.ca b { display: inline-flex; align-items: center; padding: 0 9px; border-right: 1px solid var(--hair-2); font-weight: 400; font-family: var(--px); font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.ca span { display: inline-flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ca button { border: 0; border-left: 1px solid var(--hair-2); background: transparent; padding: 0 10px; color: var(--dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; transition: color .2s, background .2s; }
.ca button:hover { color: var(--ink); background: var(--bone); }
.ca[data-empty="1"] span { color: var(--dim); }
.ca[data-empty="1"] button { display: none; }
.xbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--hair-2); color: var(--bone); transition: border-color .2s, color .2s; }
.xbtn:hover { border-color: var(--hi); color: var(--hi); }
.xbtn svg { width: 14px; height: 14px; fill: currentColor; }
.buy { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--bone); background: var(--bone); color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; white-space: nowrap; transition: background-color .12s steps(2), color .12s steps(2); }
.buy:hover { background: var(--hi); }
.buy--ghost { background: transparent; color: var(--bone); border-color: var(--hair-2); }
.buy--ghost:hover { background: var(--hi); color: #000; border-color: var(--hi); }
.burger { display: none; width: 34px; height: 34px; position: relative; background: none; border: 1px solid var(--hair-2); padding: 0; }
.burger i { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--bone); transition: transform .3s ease; }
.burger i:first-child { top: 12px; } .burger i:last-child { bottom: 12px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: var(--top) 0 0 0; z-index: 59; background: var(--ink); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; overflow-y: auto; overscroll-behavior: contain; }
.menu[data-open="true"] { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 24px var(--gutter); display: grid; gap: 2px; }
.menu li a { display: inline-block; font-size: clamp(30px, 8vw, 46px); letter-spacing: -.03em; line-height: 1.16; color: var(--dim); transition: color .2s; }
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--bone); }
.menu-sub { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 var(--gutter) 24px; }
.menu-sub a { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.menu-foot { margin-top: auto; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--hair); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1180px) { .nav .ca, .nav .ca-pill { display: none; } }
@media (max-width: 980px) { .nav-links, .nav .signin { display: none; } .burger { display: inline-block; } }
@media (max-width: 520px) { .nav .buy .buy-word { display: none; } .brand-name em { display: none; } }

/* glitch on hover (nav names, door names) */
.gl { position: relative; display: inline-block; }
a:hover .gl, button:hover .gl { animation: gl-jit .5s step-end 1; }
@keyframes gl-jit { 0% { transform: translate(0); text-shadow: none; } 20% { transform: translate(-1px, 0); text-shadow: 1px 0 var(--ac), -1px 0 rgba(255,255,255,.4); } 40% { transform: translate(1px, 0); text-shadow: -1px 0 var(--ac); } 60% { transform: translate(0, -1px); text-shadow: none; } 80% { transform: translate(1px, 1px); text-shadow: 1px 0 rgba(255,255,255,.5); } 100% { transform: none; text-shadow: none; } }
@media (prefers-reduced-motion: reduce) { a:hover .gl, button:hover .gl { animation: none; } }

/* ---------- sections */
.sec { position: relative; z-index: 1; border-top: 1px solid var(--hair); padding: clamp(48px, 9vh, 120px) var(--gutter); }
.sec--flush { padding-left: 0; padding-right: 0; }
.sec--tight { padding-top: clamp(32px, 6vh, 72px); padding-bottom: clamp(32px, 6vh, 72px); }
.sec--first { border-top: 0; }
.light { background: var(--bone); color: var(--ink); --text: rgba(6, 6, 6, .78); --dim: rgba(6, 6, 6, .48); --faint: rgba(6, 6, 6, .25); --hair: rgba(6, 6, 6, .12); --hair-2: rgba(6, 6, 6, .2); --wash: rgba(6, 6, 6, .04); --sb-thumb: rgba(6,6,6,.25); }
.light ::selection { background: var(--ink); color: var(--bone); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vh, 48px); }
.sec-head .body { margin-top: 14px; }
.page-head { padding: clamp(48px, 10vh, 120px) var(--gutter) clamp(32px, 6vh, 64px); border-bottom: 1px solid var(--hair); position: relative; overflow: hidden; isolation: isolate; }
.page-head .lead { margin-top: clamp(16px, 2.6vh, 26px); }
.page-head .btns { margin-top: clamp(18px, 3vh, 30px); }

/* ---------- grids, cards, stats, cells */
.grid4, .grid3, .grid2, .stats { display: grid; }
.grid4, .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid4 > *, .grid3 > *, .grid2 > *, .stats > * { border-right: 1px solid var(--hair); min-width: 0; }
.grid4 > :nth-child(4n), .grid3 > :nth-child(3n), .grid2 > :nth-child(2n), .stats > :nth-child(4n) { border-right: 0; }
.grid4 > :nth-child(n+5), .grid3 > :nth-child(n+4), .grid2 > :nth-child(n+3), .stats > :nth-child(n+5) { border-top: 1px solid var(--hair); }
.bordered { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.card { padding: clamp(24px, 4vh, 44px) clamp(16px, 2vw, 32px); position: relative; }
.card .fig { height: clamp(96px, 15vh, 160px); margin-bottom: clamp(20px, 3vh, 36px); background-image: radial-gradient(var(--hair-2) 1px, transparent 1px); background-size: 9px 9px; display: grid; place-items: center; font-family: var(--sym); font-size: 34px; color: var(--bone); }
.card .fig img { max-height: 100%; width: auto; image-rendering: pixelated; }
.card h3 { margin: 0 0 12px; font-family: var(--mono); font-weight: 400; font-size: 16px; letter-spacing: .01em; color: inherit; }
.card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); }
.card .btns { margin-top: 18px; }
a.card { transition: background .25s; } a.card:hover { background: var(--wash); }
.card--tight { padding: clamp(18px, 2.6vh, 28px) clamp(16px, 1.8vw, 26px); }
.stat { position: relative; padding: clamp(24px, 4vh, 44px) clamp(16px, 2vw, 32px); }
.stat::after { content: ""; position: absolute; top: 14px; right: 16px; width: 11px; height: 11px; border-top: 1px solid var(--hair-2); border-right: 1px solid var(--hair-2); }
.stat b { display: block; font-weight: 300; font-size: clamp(28px, 3.4vw, 54px); letter-spacing: -.025em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat b.long { font-size: clamp(16px, 1.5vw, 22px); letter-spacing: 0; font-family: var(--mono); line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.stat p { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--text); max-width: 26ch; letter-spacing: .04em; text-transform: uppercase; }
.cells { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cells--1 { grid-template-columns: minmax(0, 1fr); }
.cell { position: relative; min-width: 0; padding: clamp(18px, 3vh, 30px) clamp(16px, 1.9vw, 28px); box-shadow: 0 0 0 1px var(--hair); }
.cell--span { grid-column: 1 / -1; }
.cell--tick::after { content: ""; position: absolute; top: 12px; right: 14px; width: 10px; height: 10px; border-top: 1px solid var(--hair-2); border-right: 1px solid var(--hair-2); }
.fig-n { display: block; margin: 10px 0 0; font-weight: 300; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fig-sub { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 260px), 100%), 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.auto > * { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-width: 0; }
.auto--wide { --min: 340px; } .auto--tight { --min: 180px; }
@media (max-width: 1000px) {
  .grid4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 > *, .stats > * { border-right: 1px solid var(--hair); border-top: 0; }
  .grid4 > :nth-child(2n), .stats > :nth-child(2n) { border-right: 0; }
  .grid4 > :nth-child(n+3), .stats > :nth-child(n+3) { border-top: 1px solid var(--hair); }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .grid3 > * { border-right: 0 !important; } .grid3 > * + * { border-top: 1px solid var(--hair); }
  .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cells--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .grid4, .stats, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid4 > *, .stats > *, .grid2 > * { border-right: 0 !important; } .grid4 > * + *, .stats > * + *, .grid2 > * + * { border-top: 1px solid var(--hair); }
  .cells, .cells--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- rows (product list) */
.rows { border-top: 1px solid var(--hair); }
.rowi { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) auto auto; align-items: center; gap: clamp(12px, 2vw, 28px); padding: clamp(18px, 3vh, 32px) var(--gutter); border-bottom: 1px solid var(--hair); transition: background .25s ease; }
a.rowi:hover { background: var(--wash); }
.rowi h3 { margin: 0; font-weight: 400; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.01em; }
.rowi .mono { font-size: 12.5px; max-width: 64ch; }
.rowi .arr { font-family: var(--sym); font-size: 18px; color: var(--dim); transition: color .2s, transform .2s; }
a.rowi:hover .arr { color: var(--hi); transform: translate(2px, -2px); }
@media (max-width: 760px) { .rowi { grid-template-columns: 1fr auto; row-gap: 8px; } .rowi .mono { grid-column: 1 / -1; grid-row: 2; } .rowi .arr { display: none; } }

/* ---------- status chips (the honest legend) + pills */
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair-2); padding: 3px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; line-height: 1.4; }
.pill::before { content: ""; width: 5px; height: 5px; background: currentColor; opacity: .9; }
.pill--plain::before { display: none; }
.pill--ok, .st-live { border-color: rgba(127, 191, 127, .45); color: var(--ok); }
.pill--warn, .st-configure { border-color: rgba(202, 164, 90, .45); color: var(--warn); }
.pill--err { border-color: rgba(196, 114, 114, .45); color: var(--err); }
.pill--ac { border-color: rgba(94, 242, 255, .45); color: var(--ac); }
.st-gated { border-color: hsla(40, 24%, 90%, .4); color: var(--bone); }
.st-planned { color: var(--dim); }
.st-planned::before { background: transparent; border: 1px solid currentColor; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legend > div { display: flex; gap: 10px; align-items: baseline; max-width: 40ch; }
.legend p { margin: 0; font-size: 13px; color: var(--text); }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--ac); box-shadow: 0 0 10px var(--ac); animation: blink 2.4s steps(2) infinite; }
.live-dot.off { background: var(--dim); box-shadow: none; animation: none; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- panels, flags, kv, tables, code */
.panel { border: 1px solid var(--hair-2); padding: clamp(18px, 3vh, 30px) clamp(16px, 2.2vw, 30px); background: var(--ink-0); }
.panel--ok { border-color: rgba(127, 191, 127, .4); background: rgba(127, 191, 127, .05); }
.panel--warn { border-color: rgba(202, 164, 90, .4); background: rgba(202, 164, 90, .05); }
.panel--err { border-color: rgba(196, 114, 114, .4); background: rgba(196, 114, 114, .05); }
.panel h3 { margin: 0 0 10px; font-family: var(--mono); font-weight: 400; font-size: 15px; letter-spacing: .01em; }
.panel p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); }
.panel p + p { margin-top: 10px; }
.flag { border: 1px solid var(--hair-2); border-left-width: 2px; padding: 14px 18px; background: var(--wash); }
.flag strong { display: block; margin: 0 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.flag p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.flag--ok { border-left-color: var(--ok); } .flag--ok strong { color: var(--ok); }
.flag--warn { border-left-color: var(--warn); } .flag--warn strong { color: var(--warn); }
.flag--err { border-left-color: var(--err); } .flag--err strong { color: var(--err); }
.flag--ac { border-left-color: var(--ac); } .flag--ac strong { color: var(--ac); }
.kv { border-top: 1px solid var(--hair); }
.kvr { display: flex; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.kvr > .label { width: 190px; flex: none; }
.kvr > :last-child { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 640px) { .kvr { flex-direction: column; gap: 4px; } .kvr > .label { width: auto; } }
.tablewrap { overflow-x: auto; border: 1px solid var(--hair); }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th { padding: 11px 14px; border-bottom: 1px solid var(--hair-2); font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.table td.mono, .table td .mono { font-size: 12px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--wash); }
.table .r { text-align: right; } .table .c { text-align: center; }
.code { position: relative; margin: 0; padding: 18px 20px; border: 1px solid var(--hair-2); background: var(--ink-2); font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--text); overflow-x: auto; white-space: pre; tab-size: 2; }
.code .k { color: var(--ac); } .code .s { color: #d9cfae; } .code .c { color: var(--dim); }
.code-wrap { position: relative; }
.code-wrap .copy { position: absolute; top: 8px; right: 8px; }
.light .code { background: #e2ddd2; color: rgba(6, 6, 6, .85); } .light .code .k { color: #0a6a74; } .light .code .s { color: #6b4f12; }
.inl { font-family: var(--mono); font-size: .88em; padding: 1px 5px; border: 1px solid var(--hair-2); overflow-wrap: anywhere; }
.hash { font-family: var(--mono); font-size: 12px; color: var(--text); overflow-wrap: anywhere; word-break: break-all; }

/* ---------- forms */
.field { display: block; }
.field > span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.field > small { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }
.input, .select, .area { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--hair-2); background: rgba(0, 0, 0, .35); padding: 10px 13px; font-family: var(--mono); font-size: 13px; color: inherit; outline: none; border-radius: 0; transition: border-color .2s ease; }
.area { min-height: 120px; resize: vertical; line-height: 1.6; }
.input::placeholder, .area::placeholder { color: var(--dim); }
.input:focus, .select:focus, .area:focus { border-color: var(--bone); }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--ink-2); color: var(--bone); }
.form { display: grid; gap: 16px; }
.form2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.check input { accent-color: var(--bone); }
.note { font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.out { margin-top: 18px; }

/* ---------- lists, legal / docs prose */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; font-size: 14px; line-height: 1.7; color: var(--text); }
.list li::before { content: ""; flex: none; margin-top: 12px; width: 12px; height: 1px; background: currentColor; opacity: .55; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ticks li { font-family: var(--mono); font-size: 12px; color: var(--text); letter-spacing: .02em; }
.ticks li::before { content: "✓ "; color: var(--ok); font-family: var(--sym); }
.prose { max-width: 72ch; }
.prose h2 { font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin: clamp(36px, 6vh, 60px) 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--mono); font-weight: 400; font-size: 15px; margin: 28px 0 10px; color: var(--bone); }
.prose p, .prose li { font-size: 15px; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 500; color: var(--bone); }
.prose code { font-family: var(--mono); font-size: .86em; padding: 1px 5px; border: 1px solid var(--hair-2); overflow-wrap: anywhere; }
.prose .code { margin: 8px 0 20px; }
.prose .table { margin: 8px 0 20px; }
.prose .flag, .prose .panel { margin: 18px 0; }
.prose section + section { margin-top: clamp(30px, 5vh, 54px); padding-top: clamp(30px, 5vh, 54px); border-top: 1px solid var(--hair); }

/* ---------- docs layout */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100dvh - var(--top)); }
.docs-side { position: sticky; top: var(--top); align-self: start; max-height: calc(100dvh - var(--top)); overflow-y: auto; border-right: 1px solid var(--hair); padding: 28px 0 40px; }
.docs-side h4 { margin: 20px 0 8px; padding: 0 22px; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.docs-side h4:first-child { margin-top: 0; }
.docs-side a { display: block; padding: 6px 22px; font-size: 14px; color: var(--text); border-left: 1px solid transparent; transition: color .2s, border-color .2s; }
.docs-side a:hover { color: var(--hi); }
.docs-side a[aria-current="page"] { color: var(--bone); border-left-color: var(--bone); background: var(--wash); }
.docs-main { padding: clamp(32px, 6vh, 64px) clamp(20px, 4vw, 72px) 80px; min-width: 0; }
.docs-main .prose { max-width: 80ch; }
.docs-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--hair); max-width: 80ch; }
.docs-pager a { display: block; padding: 12px 16px; border: 1px solid var(--hair-2); min-width: 0; transition: border-color .2s; }
.docs-pager a:hover { border-color: var(--bone); }
.docs-pager small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--hair); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 0 4px; overflow: visible; } .docs-side h4 { display: none; } .docs-side a { padding: 6px 12px; font-size: 13px; border-left: 0; } }

/* ---------- footer */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--hair); padding: clamp(40px, 7vh, 88px) var(--gutter) clamp(24px, 4vh, 40px); display: grid; gap: clamp(28px, 5vh, 56px); background: var(--ink); }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.foot-brand .brand-name { font-size: 18px; }
.foot-brand p { margin: 14px 0 0; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; max-width: 18ch; }
.foot-brand .row { margin-top: 18px; }
.foot h4 { margin: 0 0 16px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot li a { font-size: 14px; color: var(--text); transition: color .2s ease; }
.foot li a:hover { color: var(--hi); }
.foot-base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: clamp(18px, 3vh, 28px); border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .04em; }
.foot-word { font-family: var(--px); font-size: clamp(56px, 13vw, 210px); line-height: .8; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--hair-2); text-transform: lowercase; white-space: nowrap; overflow: hidden; user-select: none; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } .foot-cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- hero art */
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .42; image-rendering: pixelated; }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 6, .7), rgba(6, 6, 6, .25) 40%, rgba(6, 6, 6, .96)), radial-gradient(60% 60% at 50% 55%, rgba(6, 6, 6, .75), transparent 75%); }
.page-head .sky img { opacity: .28; }
.pic { position: relative; overflow: hidden; border: 1px solid var(--hair); background: var(--ink-2); }
.pic img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: contrast(1.02); }
.pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 6, 6, .55)); pointer-events: none; }
.pic figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-family: var(--px); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- reveal on scroll (one gentle rise) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
.wait { display: inline-block; height: .9em; width: 4.5em; background: var(--hair-2); animation: pulse 1.6s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- toast + drawer (receipts) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 90; padding: 10px 16px; background: var(--bone); color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--err); color: #fff; }
.shade { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.shade.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(560px, 100vw); background: var(--ink-0); border-left: 1px solid var(--hair-2); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-body > * + * { margin-top: 18px; }
.checks { display: grid; gap: 1px; }
.checkrow { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--hair); align-items: start; }
.checkrow i { font-style: normal; font-family: var(--sym); font-size: 14px; line-height: 1.4; }
.checkrow b { display: block; font-weight: 400; font-size: 14px; }
.checkrow small { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); line-height: 1.5; }
.checkrow.y i { color: var(--ok); } .checkrow.n i { color: var(--err); } .checkrow.u i { color: var(--warn); } .checkrow.w i { color: var(--dim); }

/* ---------- the chat box (home + /chat) */
.box { border: 1px solid var(--hair-2); background: rgba(9, 9, 11, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s; }
.box:focus-within { border-color: hsla(40, 24%, 90%, .38); }
.box-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.tiers { display: inline-flex; border: 1px solid var(--hair-2); }
.tiers button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; background: transparent; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--dim); transition: color .2s, background .2s; }
.tiers button + button { border-left: 1px solid var(--hair-2); }
.tiers button:hover { color: var(--bone); }
.tiers button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.tiers button .short { display: none; }
@media (max-width: 520px) { .tiers button .full { display: none; } .tiers button .short { display: inline; } }
.model-pick { max-width: 260px; height: 32px; min-height: 32px; padding: 4px 30px 4px 10px; font-size: 11.5px; background-position: calc(100% - 15px) 13px, calc(100% - 10px) 13px; }
.box textarea { display: block; width: 100%; min-height: 96px; max-height: 40vh; resize: none; border: 0; outline: none; background: transparent; padding: 16px 16px 8px; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--bone); }
.box textarea::placeholder { color: var(--dim); }
.box-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px 16px; flex-wrap: wrap; }
.box-hint { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .02em; }
.box-hint kbd { font-family: var(--sym); font-size: 11px; padding: 0 4px; border: 1px solid var(--hair-2); margin-right: 3px; }
.send { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid var(--bone); background: var(--bone); color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; transition: background .2s; }
.send:hover { background: var(--hi); }
.send i { font-family: var(--sym); font-style: normal; }
.send[disabled] { opacity: .4; cursor: not-allowed; }
.box-note { padding: 9px 16px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--dim); }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.starters button, .starters a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--hair-2); background: rgba(6, 6, 6, .6); font-size: 13.5px; color: var(--text); transition: border-color .2s, color .2s; }
.starters button:hover, .starters a:hover { border-color: var(--hi); color: var(--hi); }
.starters i { font-family: var(--sym); font-style: normal; color: var(--dim); font-size: 13px; }

/* ---------- hero (home) */
.hero { position: relative; z-index: 1; min-height: calc(100dvh - var(--top)); display: grid; align-content: center; padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(56px, 9vh, 110px); overflow: hidden; isolation: isolate; }
.hero-inner { width: min(780px, 100%); margin: 0 auto; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: clamp(22px, 4vh, 40px); }
.hero .ticks { margin-top: 18px; }
.cue { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(28px, 5vh, 56px); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.cue:hover { color: var(--bone); }
.cue i { font-family: var(--sym); font-style: normal; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

/* ---------- what-is (01 — 03) */
.whatis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--hair); }
.whatis + .whatis { border-top: 1px solid var(--hair); }
.whatis-text { padding: clamp(36px, 7vh, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.whatis-text .body { margin-top: 18px; }
.whatis-pic { position: relative; border-left: 1px solid var(--hair); min-height: 360px; overflow: hidden; background: var(--ink-2); }
.whatis-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: .9; transition: transform 6s ease; }
.whatis:hover .whatis-pic img { transform: scale(1.03); }
.whatis--flip .whatis-pic { order: -1; border-left: 0; border-right: 1px solid var(--hair); }
@media (max-width: 860px) { .whatis { grid-template-columns: minmax(0, 1fr); } .whatis-pic, .whatis--flip .whatis-pic { order: -1; border: 0; border-bottom: 1px solid var(--hair); min-height: 240px; } }
.ladder { display: grid; gap: 1px; margin-top: 22px; }
.ladder > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 14px; box-shadow: 0 0 0 1px var(--hair); }
.ladder b { font-weight: 400; font-family: var(--mono); font-size: 13px; }
.ladder p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.55; }
@media (max-width: 520px) { .ladder > div { grid-template-columns: 1fr auto; } .ladder p { grid-column: 1 / -1; } }

/* ---------- chat app (/chat, /characters/<slug>) */
.app { display: grid; grid-template-columns: 280px minmax(0, 1fr); height: calc(100dvh - var(--top)); }
.side { border-right: 1px solid var(--hair); display: flex; flex-direction: column; min-height: 0; background: var(--ink-0); }
.side-top { padding: 14px; border-bottom: 1px solid var(--hair); display: grid; gap: 8px; }
.side-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.side-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 14px; border: 0; background: transparent; text-align: left; font-size: 13.5px; color: var(--text); border-left: 2px solid transparent; transition: background .15s, color .15s; }
.side-item:hover { background: var(--wash); color: var(--bone); }
.side-item[aria-current="true"] { border-left-color: var(--bone); background: var(--wash); color: var(--bone); }
.side-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item small { font-family: var(--mono); font-size: 10px; color: var(--dim); flex: none; }
.side-item .x { opacity: 0; font-family: var(--sym); color: var(--dim); padding: 0 2px; }
.side-item:hover .x { opacity: 1; }
.side-item .x:hover { color: var(--err); }
.side-group { padding: 12px 14px 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.side-foot { border-top: 1px solid var(--hair); padding: 12px 14px; display: grid; gap: 8px; }
.side-foot p { margin: 0; font-size: 11.5px; color: var(--dim); line-height: 1.5; }
.main { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
.main-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; min-height: 54px; }
.thread { flex: 1; overflow-y: auto; padding: 24px clamp(14px, 4vw, 48px) 32px; scroll-behavior: smooth; }
.thread-in { max-width: 780px; margin: 0 auto; display: grid; gap: 22px; }
.msg { display: grid; gap: 8px; }
.msg-who { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.msg-who img { width: 20px; height: 20px; object-fit: cover; image-rendering: pixelated; }
.msg-body { font-size: 15.5px; line-height: 1.72; color: var(--bone); overflow-wrap: anywhere; }
.msg--user .msg-body { background: var(--cell); border: 1px solid var(--hair); padding: 12px 15px; white-space: pre-wrap; }
.msg-body p { margin: 0 0 12px; } .msg-body p:last-child { margin-bottom: 0; }
.msg-body pre { margin: 10px 0; padding: 14px 16px; background: var(--ink-2); border: 1px solid var(--hair-2); overflow-x: auto; font-size: 12.5px; line-height: 1.6; white-space: pre; }
.msg-body code { font-family: var(--mono); font-size: .88em; }
.msg-body :not(pre) > code { padding: 1px 5px; border: 1px solid var(--hair-2); background: var(--ink-2); }
.msg-body ul, .msg-body ol { margin: 0 0 12px; padding-left: 22px; }
.msg-body h1, .msg-body h2, .msg-body h3, .msg-body h4 { font-weight: 500; font-size: 1.05em; margin: 16px 0 8px; }
.msg-body a { text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.msg-body blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--hair-2); color: var(--text); }
.msg-body table { border-collapse: collapse; margin: 8px 0 12px; font-size: 13px; } .msg-body td, .msg-body th { border: 1px solid var(--hair-2); padding: 5px 9px; }
.msg-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rchip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; border: 1px solid var(--hair-2); background: transparent; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--dim); transition: border-color .2s, color .2s; }
.rchip:hover { border-color: var(--bone); color: var(--bone); }
.rchip i { font-family: var(--sym); font-style: normal; }
.rchip.y { color: var(--ok); border-color: rgba(127, 191, 127, .4); }
.rchip.n { color: var(--err); border-color: rgba(196, 114, 114, .4); }
.rchip.u { color: var(--warn); border-color: rgba(202, 164, 90, .4); }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--bone); vertical-align: -2px; animation: blink 1s steps(2) infinite; margin-left: 2px; }
.msg-err { border: 1px solid rgba(196, 114, 114, .4); background: rgba(196, 114, 114, .06); padding: 10px 14px; font-size: 13.5px; color: var(--text); }
.composer { border-top: 1px solid var(--hair); padding: 14px clamp(14px, 4vw, 48px) 16px; background: var(--ink); }
.composer .box { max-width: 780px; margin: 0 auto; }
.composer .box textarea { min-height: 56px; font-size: 15.5px; padding: 13px 15px 6px; }
.empty { max-width: 780px; margin: clamp(20px, 8vh, 90px) auto 0; text-align: left; }
.empty h2 { font-weight: 400; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.025em; line-height: 1.05; margin: 0 0 14px; }
.diff ins { text-decoration: none; background: rgba(127, 191, 127, .18); color: var(--bone); }
.diff del { text-decoration: line-through; text-decoration-color: rgba(196, 114, 114, .7); background: rgba(196, 114, 114, .12); color: var(--dim); }
.replay { border: 1px solid var(--hair-2); background: var(--ink-0); }
.replay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.replay-cols { display: grid; grid-template-columns: 1fr 1fr; }
.replay-cols > div { padding: 14px; min-width: 0; font-size: 14px; line-height: 1.65; }
.replay-cols > div + div { border-left: 1px solid var(--hair); }
@media (max-width: 720px) { .replay-cols { grid-template-columns: 1fr; } .replay-cols > div + div { border-left: 0; border-top: 1px solid var(--hair); } }
.side-toggle { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: var(--top); bottom: 0; left: 0; width: min(300px, 86vw); z-index: 70; transform: translateX(-100%); transition: transform .3s ease; }
  .side.on { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  .side-toggle { display: inline-flex; }
}

/* ---------- character cards */
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.char { display: flex; flex-direction: column; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); transition: background .25s; min-width: 0; }
.char:hover { background: var(--wash); }
.char-pic { aspect-ratio: 1 / 1; background: var(--ink-2); overflow: hidden; border-bottom: 1px solid var(--hair); position: relative; }
.char-pic img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .6s ease; }
.char:hover .char-pic img { transform: scale(1.04); }
.char-pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--px); font-size: 64px; color: var(--hair-2); background-image: radial-gradient(var(--hair) 1px, transparent 1px); background-size: 9px 9px; }
.char-body { padding: 16px 16px 18px; display: grid; gap: 6px; }
.char-body h3 { margin: 0; font-weight: 400; font-size: 18px; letter-spacing: -.01em; }
.char-body p { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.55; }
.char-body small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- studio */
.studio { display: grid; grid-template-columns: 380px minmax(0, 1fr); min-height: calc(100dvh - var(--top)); }
.studio-ctl { border-right: 1px solid var(--hair); padding: 24px var(--gutter) 32px; display: grid; gap: 16px; align-content: start; }
.studio-out { padding: 24px var(--gutter) 48px; min-width: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1px; }
.shot { box-shadow: 0 0 0 1px var(--hair); background: var(--ink-2); display: flex; flex-direction: column; min-width: 0; }
.shot-img { aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center; background: #000; }
.shot-img img { width: 100%; height: 100%; object-fit: contain; }
.shot-meta { padding: 10px 12px 12px; display: grid; gap: 8px; }
.shot-meta p { margin: 0; font-size: 12.5px; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--hair-2); }
.sizes button { height: 40px; border: 0; background: transparent; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.sizes button + button { border-left: 1px solid var(--hair-2); }
.sizes button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
@media (max-width: 900px) { .studio { grid-template-columns: minmax(0, 1fr); } .studio-ctl { border-right: 0; border-bottom: 1px solid var(--hair); } }

/* ---------- tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hair); overflow-x: auto; }
.tabs button, .tabs a { flex: none; height: 46px; padding: 0 18px; border: 0; background: transparent; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; display: inline-flex; align-items: center; }
.tabs button:hover, .tabs a:hover { color: var(--bone); }
.tabs button[aria-selected="true"], .tabs a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--bone); }

/* ---------- bars (usage) */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.bars i { flex: 1; min-width: 3px; background: hsla(40, 24%, 90%, .5); position: relative; transition: background .2s; }
.bars i:hover { background: var(--ac); }
.meter { display: flex; gap: 2px; margin-top: 8px; }
.meter i { height: 8px; flex: 1; background: var(--hair); }
.meter i.on { background: hsla(40, 24%, 90%, .6); }

/* ---------- 404 */
.lost { min-height: calc(100dvh - var(--top)); display: grid; align-content: center; padding: 60px var(--gutter); position: relative; overflow: hidden; isolation: isolate; }
.lost .code-n { font-family: var(--px); font-size: clamp(90px, 22vw, 300px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--hair-2); }

/* ---------- the CA slot in the header (the launch kit's markup + ids: t-ca, t-ca-btn, t-ca-text, t-ca-copy, t-ca-pump, t-ca-chart) */
.is-hidden { display: none !important; }
.ca-pill { display: inline-flex; align-items: stretch; height: 34px; border: 1px solid var(--hair-2); max-width: 330px; min-width: 0; }
.ca-pill.is-live { border-color: hsla(40, 24%, 90%, .38); }
.ca-lab { display: inline-flex; align-items: center; padding: 0 9px; border-right: 1px solid var(--hair-2); font-weight: 400; font-family: var(--px); font-size: 11px; letter-spacing: .08em; color: var(--dim); white-space: nowrap; }
.ca-addr { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; border: 0; background: transparent; font-family: var(--mono); font-size: 11.5px; color: var(--text); cursor: copy; user-select: text; -webkit-user-select: text; transition: color .2s, background .2s; }
.ca-addr:disabled { cursor: default; color: var(--dim); }
.ca-addr:not(:disabled):hover { color: var(--hi); background: var(--wash); }
.ca-addr > span { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy { flex: none; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; background: var(--bone); color: var(--ink); }
.ca-link { display: inline-flex; align-items: center; padding: 0 9px; border-left: 1px solid var(--hair-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--dim); white-space: nowrap; transition: color .2s, background .2s; }
.ca-link:hover { color: var(--ink); background: var(--bone); }
@media (max-width: 1180px) { .nav .ca-pill { display: none; } }
.brand-mark { width: 32px; height: 32px; flex: none; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--hair-2); background: #000; }
.brand-mark img { width: 54px; height: 54px; max-width: none; image-rendering: pixelated; }
.foot-brand .brand-mark { width: 40px; height: 40px; } .foot-brand .brand-mark img { width: 68px; height: 68px; }
