/* Reelify Motion Kit docs. Dense by design: 14px prose, 28px nav rows, hairlines instead of whitespace.
   Frame: 48px header | 248px nav | content | 208px "on this page". */
@font-face { font-family: Geist; src: url(/assets/fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(/assets/fonts/IBMPlexSansArabic-500.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(/assets/fonts/IBMPlexSansArabic-700.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }
:root {
  --bg: #ffffff; --panel: #f7f7f8; --sunk: #f1f1f3; --ink: #111114; --muted: #62646e; --faint: #8b8d98; --line: #e4e4e8; --line2: #d3d4da;
  --accent: #3d5afe; --accent-soft: #eef1ff; --good: #177a4b; --good-soft: #e6f4ec; --warn: #a15c07; --warn-soft: #fbf1e2; --bad: #b3261e; --bad-soft: #fbe9e7;
  --code-bg: #f6f6f8; --sans: Geist, "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --head: 48px; --nav: 248px; --toc: 208px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e0f12; --panel: #15161a; --sunk: #1a1b20; --ink: #ececf1; --muted: #a0a2ad; --faint: #7b7d88; --line: #25262c; --line2: #33343c;
  --accent: #8ea0ff; --accent-soft: #1b2040; --good: #6fd29c; --good-soft: #13271c; --warn: #f0b05e; --warn-soft: #2e2415; --bad: #ff8a80; --bad-soft: #361a18; --code-bg: #15161a; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0e0f12; --panel: #15161a; --sunk: #1a1b20; --ink: #ececf1; --muted: #a0a2ad; --faint: #7b7d88; --line: #25262c; --line2: #33343c;
  --accent: #8ea0ff; --accent-soft: #1b2040; --good: #6fd29c; --good-soft: #13271c; --warn: #f0b05e; --warn-soft: #2e2415; --bad: #ff8a80; --bad-soft: #361a18; --code-bg: #15161a; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, pre, kbd { font-family: var(--mono); }

/* header */
.top { position: sticky; top: 0; z-index: 30; height: var(--head); display: flex; align-items: center; gap: 18px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; } .brand i { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; }
.brand i::after { content: ""; width: 9px; height: 7px; border: 1.6px solid #fff; border-radius: 2px; transform: skewY(-12deg); }
.brand span { color: var(--faint); font-weight: 450; }
.tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 5px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; background: var(--sunk); } .tabs a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.top .grow { flex: 1; }
.ver { font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.icon-btn { background: none; border: 1px solid var(--line2); border-radius: 6px; height: 28px; padding: 0 9px; font-size: 12px; color: var(--muted); } .icon-btn:hover { color: var(--ink); border-color: var(--faint); }
#menu { display: none; }

/* frame */
.frame { display: grid; grid-template-columns: var(--nav) minmax(0, 1fr); max-width: 1480px; margin: 0 auto; }
.side { position: sticky; top: var(--head); align-self: start; height: calc(100vh - var(--head)); overflow-y: auto; border-right: 1px solid var(--line); padding: 12px 10px 40px; }
.side input { width: 100%; height: 28px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg); padding: 0 9px; font-size: 13px; margin-bottom: 10px; }
.side h6 { margin: 14px 0 3px; padding: 0 8px; font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }
.side h6:first-of-type { margin-top: 10px; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side a:hover { color: var(--ink); text-decoration: none; background: var(--sunk); } .side a[aria-current="page"] { color: var(--ink); background: var(--sunk); font-weight: 550; }
.side a small { font: 10px var(--mono); color: var(--faint); }
.badge { font: 600 10px var(--mono); border-radius: 4px; padding: 1px 5px; background: var(--sunk); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.badge.fn { background: var(--warn-soft); color: var(--warn); } .badge.data { background: var(--good-soft); color: var(--good); } .badge.acc { background: var(--accent-soft); color: var(--accent); }
.main { display: grid; grid-template-columns: minmax(0, 1fr) var(--toc); gap: 36px; padding: 22px 32px 80px; min-width: 0; }
.main.full { grid-template-columns: minmax(0, 1fr); }
article { min-width: 0; max-width: 780px; } .main.full article, article.wide { max-width: none; }
.crumbs { font: 12px var(--mono); color: var(--faint); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; } .crumbs a { color: var(--muted); }
h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 6px; font-weight: 680; }
.lede { color: var(--muted); font-size: 15px; margin: 0 0 18px; max-width: 70ch; }
h2 { font-size: 19px; line-height: 1.3; margin: 30px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 15.5px; margin: 20px 0 6px; font-weight: 640; } h4 { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 16px 0 6px; }
h2 a.anchor, h3 a.anchor { color: var(--faint); margin-left: 6px; opacity: 0; font-weight: 400; } h2:hover a.anchor, h3:hover a.anchor { opacity: 1; }
p { margin: 0 0 10px; } article ul, article ol { margin: 0 0 12px; padding-left: 20px; } article li { margin: 2px 0; }
article :not(pre) > code { font-size: 12.5px; background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 0 3px; letter-spacing: -.01em; }
.toc { position: sticky; top: calc(var(--head) + 22px); align-self: start; max-height: calc(100vh - var(--head) - 40px); overflow-y: auto; font-size: 12.5px; }
.toc b { display: block; font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.toc a { display: block; padding: 3px 0 3px 10px; border-left: 1px solid var(--line); color: var(--muted); } .toc a.h3 { padding-left: 22px; }
.toc a:hover { color: var(--ink); text-decoration: none; } .toc a.on { color: var(--accent); border-left-color: var(--accent); }

/* tables, code, callouts */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--panel); padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } tr:last-child td { border-bottom: 0; }
td.n { font: 12.5px var(--mono); white-space: nowrap; } td.t { font: 12px var(--mono); color: var(--muted); } td.n b { color: var(--bad); font-weight: 600; margin-left: 2px; }
.code { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; overflow: hidden; background: var(--code-bg); }
.code header { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 6px 0 10px; border-bottom: 1px solid var(--line); font: 11px var(--mono); color: var(--faint); background: var(--panel); }
.code header button { background: none; border: 0; font: 11px var(--mono); color: var(--muted); padding: 3px 6px; border-radius: 4px; } .code header button:hover { background: var(--sunk); color: var(--ink); }
pre { margin: 0; padding: 10px 12px; overflow: auto; font-size: 12.5px; line-height: 1.6; max-height: 460px; tab-size: 2; }
.note, .warn { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: var(--panel); padding: 8px 12px; margin: 0 0 14px; font-size: 13.5px; }
.warn { border-left-color: var(--warn); background: var(--warn-soft); } .note p:last-child, .warn p:last-child { margin: 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
.pn a { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--ink); } .pn a:hover { border-color: var(--line2); text-decoration: none; background: var(--panel); }
.pn small { display: block; font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); } .pn a.next { text-align: right; grid-column: 2; }
footer.foot { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 12px; font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* live examples and players */
figure.live, .preview { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
figure.live > header, .preview > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 6px 0 10px; border-bottom: 1px solid var(--line); font: 11px var(--mono); color: var(--faint); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; } .seg button { background: none; border: 0; padding: 2px 9px; font: 11px var(--mono); color: var(--muted); } .seg button[aria-pressed="true"] { background: var(--sunk); color: var(--ink); }
.stage { padding: 14px; display: flex; justify-content: center; background: repeating-conic-gradient(var(--sunk) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.player { width: 100%; max-width: 250px; display: flex; flex-direction: column; gap: 6px; } .player.wide { max-width: 640px; } .player.square { max-width: 360px; }
.pl-screen { width: 100%; border-radius: 6px; background: #000; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, .14); }
.pl-bar { display: flex; align-items: center; gap: 8px; } .pl-bar input { flex: 1; min-width: 40px; accent-color: var(--accent); height: 14px; }
.pl-btn { background: var(--bg); border: 1px solid var(--line2); border-radius: 5px; font-size: 11.5px; padding: 1px 8px; min-width: 52px; } .pl-clock { font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
figure.live figcaption { padding: 7px 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--bg); }
figure.live pre { border-top: 1px solid var(--line); background: var(--code-bg); max-height: 320px; }

/* knobs */
.k-ctl { display: flex; flex-direction: column; gap: 3px; font-size: 13px; } .k-ctl > span { font: 600 11.5px var(--mono); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; } .k-ctl > span i { font: 400 11px var(--sans); color: var(--faint); }
.k-ctl input[type=text], .k-ctl input[type=number], .k-ctl select, .k-ctl textarea, .field { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 7px; font-size: 13px; min-height: 28px; }
.k-ctl textarea, textarea.field { font: 12px/1.5 var(--mono); resize: vertical; } .k-ctl textarea.bad { border-color: var(--bad); }
.k-range { display: flex; gap: 8px; align-items: center; } .k-range input { flex: 1; min-width: 0; accent-color: var(--accent); } .k-range output { font: 11.5px var(--mono); min-width: 40px; text-align: right; color: var(--muted); }
.btn { background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; padding: 3px 10px; font-size: 12.5px; font-weight: 500; } .btn:hover { border-color: var(--faint); } .btn:disabled { opacity: .4; cursor: default; }
.ok { color: var(--good); font-size: 12.5px; } .err { color: var(--bad); background: var(--bad-soft); border-radius: 5px; padding: 4px 8px; font: 12px/1.45 var(--mono); overflow-wrap: anywhere; }
.hint { color: var(--faint); font-size: 12.5px; margin: 0; }

/* component pages and grids */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; background: var(--bg); max-height: 560px; overflow: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0 0 16px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; min-width: 0; } .card:hover { border-color: var(--line2); background: var(--panel); text-decoration: none; }
.card b { font-size: 13.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 6px; align-items: center; } .card span { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0 0 16px; }
.kv div { padding: 9px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; } .kv b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.01em; } .kv span { font-size: 12px; color: var(--muted); }
.sw { display: inline-flex; gap: 2px; vertical-align: middle; } .sw i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line2); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 28px; align-items: center; padding: 6px 0 18px; }
.hero h1 { font-size: 34px; letter-spacing: -.025em; } .hero .lede { font-size: 15.5px; }
.cta { display: flex; gap: 8px; flex-wrap: wrap; } .cta a { border: 1px solid var(--line2); border-radius: 7px; padding: 6px 13px; font-weight: 550; font-size: 13.5px; color: var(--ink); } .cta a.pri { background: var(--ink); color: var(--bg); border-color: var(--ink); } .cta a:hover { text-decoration: none; opacity: .88; }

/* playground */
.pg-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 12px; font-size: 13px; color: var(--muted); } .pg-bar select { min-height: 28px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg); padding: 0 6px; max-width: 260px; }
.pg-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: start; } .pg-cols > * { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pick { display: flex; flex-wrap: wrap; gap: 5px; } .pick button { background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; padding: 3px 10px; font-size: 12.5px; } .pick button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.fl-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; } .fl-strip.tall { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.fl-scene { display: flex; flex-direction: column; gap: 3px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; text-align: left; min-width: 0; } .fl-scene span { font: 10.5px/1.3 var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.fl-scene[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); } .fl-pic { border-radius: 4px; background: #000; pointer-events: none; }
.fl-add { display: flex; flex-wrap: wrap; gap: 5px; } .fl-add button { background: var(--bg); border: 1px dashed var(--line2); border-radius: 999px; padding: 2px 10px; font-size: 12px; } .fl-add button:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }
.fl-panel { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; max-height: 600px; overflow: auto; } .fl-panel[hidden] { display: none; }
.fl-row { display: flex; flex-wrap: wrap; gap: 5px; } .fl-piece { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; } .fl-piece h5 { margin: 0; font-size: 14px; } .fl-piece p { margin: 0; }
.fl-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px; } .fl-swatches label { display: flex; gap: 7px; align-items: center; font-size: 12.5px; } .fl-swatches input { width: 30px; height: 24px; padding: 0; border: 1px solid var(--line2); border-radius: 5px; background: none; }
.fl-log { margin: 0; padding: 0; list-style: none; font: 11.5px/1.5 var(--mono); max-height: 200px; overflow: auto; color: var(--muted); } .fl-log li { overflow-wrap: anywhere; } .fl-log b { color: var(--accent); font-weight: 600; } .fl-log li.system b { color: var(--warn); } .fl-log li.product b { color: var(--good); }
#pg-spec { width: 100%; min-height: 480px; font: 12px/1.5 var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; white-space: pre; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } .thumbs figure { margin: 0; cursor: pointer; font: 11px var(--mono); color: var(--faint); display: flex; flex-direction: column; gap: 3px; } .thumbs .pic { border: 1px solid var(--line); border-radius: 6px; background: #000; } .thumbs figure.tall { max-width: 120px; }

@media (max-width: 1180px) { .main { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 900px) {
  .frame { grid-template-columns: minmax(0, 1fr); } #menu { display: inline-block; }
  .side { position: fixed; left: 0; top: var(--head); width: min(300px, 86vw); background: var(--bg); z-index: 25; transform: translateX(-102%); transition: transform .18s; } body.nav-open .side { transform: none; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
  .main { padding: 16px 16px 60px; } .split, .pg-cols, .hero { grid-template-columns: minmax(0, 1fr); } .tabs a { padding: 5px 7px; } .ver { display: none; } .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
/* phone: the section tabs move to a second row that scrolls sideways, so none is cut off */
@media (max-width: 900px) {
  .top { flex-wrap: wrap; height: auto; min-height: var(--head); gap: 10px; padding: 6px 12px 0; }
  .tabs { order: 5; flex: 0 0 100%; display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 6px; border-top: 1px solid var(--line); }
  .tabs::-webkit-scrollbar { display: none; }
  .side { top: 84px; height: calc(100vh - 84px); }
}

/* ---- the landing page: no side nav, bigger type, the film first ---- */
body.landing #menu { display: none !important; }
.land { max-width: 1160px; margin: 0 auto; padding: 0 24px 60px; }
.land h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.03em; font-weight: 680; margin: 0 0 10px; border: 0; padding: 0; }
.land section { margin: 0 0 84px; }
.l-hero { text-align: center; padding: 52px 0 0; margin-bottom: 30px !important; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px 3px 4px; margin: 0 0 22px; }
.eyebrow span { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 1px 8px; }
.l-hero h1 { font-size: clamp(42px, 7vw, 88px); line-height: .98; letter-spacing: -.05em; font-weight: 720; margin: 0 0 22px; text-wrap: balance; }
.l-hero h1 em { font-style: normal; color: var(--accent); }
.l-sub { font-size: clamp(16px, 1.7vw, 20px); line-height: 1.45; color: var(--muted); max-width: 660px; margin: 0 auto 26px; text-wrap: balance; }
.cta.big { justify-content: center; gap: 10px; } .cta.big a { padding: 10px 18px; font-size: 15px; border-radius: 9px; } .cta.big a.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .cta.big a.pri { color: #0e0f12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta.big a.pri { color: #0e0f12; } }
.l-film { position: relative; }
.l-film::before { content: ""; position: absolute; inset: -40px 6% auto; height: 420px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent); filter: blur(40px); z-index: -1; pointer-events: none; }
.l-screen { border: 1px solid var(--line2); border-radius: 16px; padding: 10px; background: var(--panel); box-shadow: 0 30px 80px -30px rgba(20, 24, 60, .45); }
.l-screen .player, .l-screen .player.wide { max-width: none; } .l-screen .pl-screen { border-radius: 9px; box-shadow: none; }
.l-film { max-width: 1040px; margin-left: auto !important; margin-right: auto !important; }
.l-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; margin: 0 2px 10px; }
.l-switch > div { display: flex; align-items: center; gap: 8px; } .l-switch > div > span { font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.l-switch .pick button { padding: 4px 12px; font-size: 13px; border-radius: 99px; }
.l-cap { margin: 18px 2px 12px; color: var(--muted); font-size: 15px; } .l-cap b { color: var(--ink); }
.l-records { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 10px; }
.l-records .code { margin: 0; } .l-records pre { max-height: 236px; overflow: auto; font-size: 11.5px; }
.l-records header .same, .l-records header .swap { font: 600 10.5px var(--mono); border-radius: 99px; padding: 1px 8px; }
.l-records .same { background: var(--good-soft); color: var(--good); } .l-records .swap { background: var(--accent-soft); color: var(--accent); }
.l-records .code.flash { animation: l-flash .7s ease-out; } @keyframes l-flash { from { box-shadow: 0 0 0 2px var(--accent); } to { box-shadow: 0 0 0 2px transparent; } }
.l-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.l-stats div { padding: 22px 16px; border-right: 1px solid var(--line); } .l-stats div:last-child { border-right: 0; }
.l-stats b { display: block; font-size: 44px; line-height: 1; letter-spacing: -.04em; font-weight: 700; margin-bottom: 8px; } .l-stats span { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }
.l-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 24px; margin-bottom: 18px; } .l-head h2 { grid-column: 1 / -1; } .l-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 640px; } .l-head a { font-weight: 550; }
.l-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.l-mini { display: flex; flex-direction: column; gap: 3px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 11px; background: var(--bg); transition: transform .15s, border-color .15s; }
.l-mini:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.l-mini .pic { border-radius: 7px; background: var(--sunk); margin-bottom: 6px; aspect-ratio: 1; } .l-mini > b { font-size: 14px; padding: 0 4px; } .l-mini > span { font-size: 12.5px; color: var(--muted); padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.l-two > div { border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 22px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.l-two p { margin: 0; color: var(--muted); font-size: 15px; } .l-two .hint { font-size: 12.5px; } .l-two > div > a { font-weight: 550; margin-top: auto; padding-top: 6px; } .l-two .code { margin: 0; }
.l-ask { font-size: 17px; font-weight: 550; letter-spacing: -.01em; border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; }
.l-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .l-nums div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.l-nums b { display: block; font-size: 34px; letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; } .l-nums span { font-size: 12.5px; color: var(--muted); display: block; line-height: 1.35; }
.l-end { text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: 54px 24px 40px; background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 60%); margin-bottom: 40px !important; }
.l-end h2 { font-size: clamp(28px, 4vw, 44px); } .l-end > p { color: var(--muted); font-size: 16px; margin: 0 auto 22px; max-width: 520px; }
.l-status { font-size: 12.5px !important; margin: 26px auto 0 !important; max-width: 640px !important; } .l-status b { color: var(--ink); }
.land .foot { margin-top: 0; }
@media (max-width: 900px) {
  .land { padding: 0 16px 40px; } .land section { margin-bottom: 56px; } .l-hero { padding-top: 40px; }
  .l-records, .l-two { grid-template-columns: minmax(0, 1fr); } .l-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .l-stats div { border-bottom: 1px solid var(--line); } .l-stats div:nth-child(2n) { border-right: 0; } .l-stats div:last-child { grid-column: 1 / -1; border-bottom: 0; } .l-stats b { font-size: 34px; }
  .l-head { grid-template-columns: minmax(0, 1fr); } .l-screen { padding: 6px; border-radius: 12px; } .l-film::before { display: none; }
  .cta.big a { padding: 9px 14px; font-size: 14px; } .land h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .l-mini { transition: none; } .l-records .code.flash { animation: none; } }
