/* "星の · 水墨"配色，和客户端 client/src/theme.rs 保持一致：宣纸底、墨色字、黛青主色、朱砂点缀，细线边框，不用阴影 */
:root {
  --bg: #f6f3eb;
  --surface: #fcfbf7;
  --soft: #ede9df;
  --ink: #1f1e1b;
  --muted: #6e6a62;
  --line: #dfd9cc;
  --green: #2e4a4e;
  --green-soft: #e3e6df;
  --seal: #a8342b;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  /* 页头高度和各节顶部的留白，锚点定位要用到 */
  --head: 64px;
  --sec-pad: 96px;
  color-scheme: light;
}
/* 明暗默认跟随系统；页头的按钮手动切换后，根元素上的 data-color-scheme 优先 */
@media (prefers-color-scheme: dark) {
  :root:not([data-color-scheme="light"]) {
    --bg: #141413;
    --surface: #1c1c1a;
    --soft: #262522;
    --ink: #e9e5db;
    --muted: #a49f94;
    --line: #34322e;
    --green: #a8c4be;
    --green-soft: #253030;
    --seal: #d5594c;
    color-scheme: dark;
  }
}
:root[data-color-scheme="dark"] {
  --bg: #141413;
  --surface: #1c1c1a;
  --soft: #262522;
  --ink: #e9e5db;
  --muted: #a49f94;
  --line: #34322e;
  --green: #a8c4be;
  --green-soft: #253030;
  --seal: #d5594c;
  color-scheme: dark;
}

/* 明暗切换的水墨过渡（见 app.js 的 toggleScheme）：新旧两套画面叠在一起，上面那层用逐帧的墨迹当蒙版。
   切到暗色时墨从按钮处洇开，切回亮色时倒着放，墨往按钮处收回去 */
html.ink-spread::view-transition-old(root),
html.ink-spread::view-transition-new(root),
html.ink-gather::view-transition-old(root),
html.ink-gather::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.ink-spread::view-transition-new(root),
html.ink-gather::view-transition-old(root) {
  z-index: 1;
  -webkit-mask: var(--ink-mask) no-repeat 0 var(--ink-first) / 100% var(--ink-sheet);
  mask: var(--ink-mask) no-repeat 0 var(--ink-first) / 100% var(--ink-sheet);
}
html.ink-gather::view-transition-new(root) { z-index: 0; }
/* steps() 里的数字是蒙版的帧数，要和 app.js 的 INK.frames 一致 */
html.ink-spread::view-transition-new(root) { animation: ink-frames 1.4s steps(84, jump-none) both; }
html.ink-gather::view-transition-old(root) { animation: ink-frames 1.2s steps(84, jump-none) reverse both; }
@keyframes ink-frames {
  from {
    -webkit-mask-position: 0 var(--ink-first);
    mask-position: 0 var(--ink-first);
  }
  to {
    -webkit-mask-position: 0 var(--ink-last);
    mask-position: 0 var(--ink-last);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.75 var(--sans);
  font-synthesis: none;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.025em; text-wrap: balance; }
/* 中文标题按分句断行，不在词中间折 */
h2 > span, h3 > span { display: inline-block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { max-width: 100%; }
svg { fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(1120px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--green); color: var(--bg); border-radius: 6px; }
.skip:focus { top: 10px; }

.dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.dot.warn { background: var(--seal); }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 2px; color: var(--green); }
.idx { font: 11px var(--mono); letter-spacing: 1.2px; color: var(--muted); }
.chip { flex: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 11px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.num { flex: none; min-width: 34px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font-size: 12px; line-height: 1.6; text-align: center; font-variant-numeric: tabular-nums; }
.num.wide { min-width: 62px; }
.num.off, .fake-slider.off { opacity: 0.5; }
.text-link { font-size: 13px; font-weight: 600; color: var(--green); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 像素贴图：始终放大到 16 的整数倍，边缘才不会糊 */
.px { display: block; image-rendering: pixelated; aspect-ratio: 1; height: auto; }
.fit { container-type: inline-size; }
.fit > .px, .fit > .checker { width: calc(var(--k, 3) * 16px); }
@supports (width: round(down, 1px, 1px)) {
  .fit > .px, .fit > .checker { width: calc(round(down, (100cqw / var(--ratio, 1) - var(--pad, 0px)) / var(--n, 1) / 16, 1px) * 16); }
}
/* 透明底的棋盘格，8 格，和贴图像素对齐 */
.checker { aspect-ratio: 1; background: repeating-conic-gradient(var(--bg) 0 25%, var(--soft) 0 50%) 0 0 / 25% 25%; }
.checker > .px { width: 100%; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 7px; font-size: 13.5px; font-weight: 650; transition: background 0.18s, transform 0.18s; }
.btn.primary { background: var(--green); color: var(--bg); }
.btn.primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn.big { min-height: 52px; padding-inline: 34px; font-size: 15px; }
.btn[aria-disabled="true"] { background: var(--soft); color: var(--muted); border: 1px dashed var(--line); cursor: default; transform: none; }
.btn[aria-disabled="true"]:hover { background: var(--soft); transform: none; }
.icon-btn { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 7px; color: var(--muted); }
.icon-btn:hover { background: var(--soft); color: var(--green); }
.seg { flex: none; min-width: 46px; min-height: 28px; padding: 2px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12.5px; }
.seg:hover { border-color: var(--green); }
.seg[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--bg); }
/* 语言切换：地球仪图标，中文涂上半球、英文涂下半球，切换时球转半圈（见 app.js 的 spinGlobes） */
.icon-btn.lang { --knock: var(--bg); }
.icon-btn.lang:hover { --knock: var(--soft); }
.globe { fill: none; }
.globe-fill { fill: currentColor; stroke: none; }
.globe-fill.down, :root[data-lang="en"] .globe-fill.up { display: none; }
:root[data-lang="en"] .globe-fill.down { display: inline; }
/* 落在涂实半球里的经线用按钮的底色画 */
.globe-lines.up, :root[data-lang="en"] .globe-lines.down { stroke: var(--knock); }
:root[data-lang="en"] .globe-lines.up { stroke: currentColor; }
/* 英文版要等脚本把文字换好再显示 */
.i18n-pending body { visibility: hidden; }

/* 滑条 */
input[type="range"] { --p: 0%; flex: 1; min-width: 0; height: 20px; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--green) var(--p), var(--soft) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--green) var(--p), var(--soft) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 1px solid var(--green); border-radius: 50%; background: var(--surface); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 1px solid var(--green); border-radius: 50%; background: var(--surface); }

/* 页头 */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 12px; height: var(--head); }
.brand, .app-name { font-size: 21px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b, .app-name b { font-weight: inherit; color: var(--seal); }
.nav { display: flex; gap: 26px; margin: 0 auto 0 34px; font-size: 14px; font-weight: 550; }
.nav a { padding: 6px 0; }
.nav a:hover { color: var(--green); }

/* 首屏 */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: end; padding: 72px 0 56px; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(34px, 5.4vw, 58px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.22; }
.lead { max-width: 34em; color: var(--muted); line-height: 1.95; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: flex; align-items: baseline; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.facts dt { flex: none; width: 3em; font-size: 12px; color: var(--muted); }
:root[data-lang="en"] .facts dt { width: 5em; }
.facts dd { font-weight: 600; }

/* 界面演示的舞台：16px 点阵 */
.stage { padding: 48px 0 28px; border-block: 1px solid var(--line); background: var(--soft) radial-gradient(var(--line) 0.9px, transparent 0.9px) 0 0 / 16px 16px; }
.stage-note { max-width: 920px; margin: 16px auto 0; font-size: 12px; color: var(--muted); text-align: center; text-wrap: balance; }

/* 客户端窗口 */
.win { max-width: 920px; margin-inline: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); overflow: hidden; }
/* 客户端没有系统标题栏，最小化和关闭按钮画在顶栏里 */
.win-ctl { display: flex; flex: none; margin-left: 4px; }
.win-ctl i { position: relative; width: 30px; height: 30px; }
.win-ctl i::before, .win-ctl .close::after { content: ""; position: absolute; left: 10px; top: 14.5px; width: 10px; border-top: 1.3px solid var(--muted); }
.win-ctl .close::before, .win-ctl .close::after { left: 8px; width: 14px; transform: rotate(45deg); }
.win-ctl .close::after { transform: rotate(-45deg); }

.app-head { display: flex; align-items: center; gap: 10px; height: 60px; padding-inline: 28px; border-bottom: 1px solid var(--line); }
.app-sub { margin-left: 6px; margin-right: auto; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { padding: 20px 28px 22px; }
.app-title { margin-top: 6px; font-size: 27px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.4; }
.app-desc { font-size: 13px; color: var(--muted); }

.prompt { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.prompt:focus-within { border-color: var(--green); box-shadow: inset 0 0 0 0.5px var(--green); }
.prompt-spark { color: var(--muted); }
.prompt:focus-within .prompt-spark { color: var(--seal); }
.prompt input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; font-size: 16px; }
.prompt input::placeholder { color: var(--muted); opacity: 1; }
.go { flex: none; min-width: 104px; height: 40px; padding-inline: 12px; border-radius: 7px; background: var(--green); color: var(--bg); font-size: 14px; font-weight: 700; transition: background 0.18s; }
.go:hover { background: var(--ink); }
.go:disabled { opacity: 0.55; cursor: default; }
.progress { height: 3px; margin: 8px 0; border-radius: 2px; }
.busy .progress { background: var(--soft); }
.progress i { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--green); }

.try { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.try > .muted { flex: none; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 2px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; line-height: 1.7; }
.chips button:hover { border-color: var(--green); background: var(--green-soft); }
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 30px; margin-top: 8px; font-size: 12px; }
.opts .gap { margin-left: 10px; }
.fake-slider { position: relative; width: var(--w); height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--green) var(--p), var(--soft) var(--p)); }
.fake-slider i { position: absolute; left: var(--p); top: 50%; width: 12px; height: 12px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); transform: translate(-50%, -50%); transition: left 0.25s; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.check::before { content: ""; width: 15px; height: 15px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
.check.on::before { background: var(--soft) linear-gradient(var(--ink), var(--ink)) center / 7px 7px no-repeat; }

.res-head { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.res-head strong { font-size: 15px; }
.res-head .muted { font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { padding: 12px 12px 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color 0.18s; }
.card.has:hover { border-color: var(--green); }
.canvas { --pad: 20px; --ratio: 1.3; display: grid; place-items: center; aspect-ratio: var(--ratio); border-radius: 7px; background: var(--soft); color: var(--line); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 38px; padding-inline: 2px; font-size: 11px; }
.card-foot a { font-size: 12px; font-weight: 700; color: var(--green); }
.card-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .canvas .checker { animation: land 0.28s steps(4) both; }
  .card:nth-child(2) .checker { animation-delay: 0.06s; }
  .card:nth-child(3) .checker { animation-delay: 0.12s; }
}
@keyframes land { from { opacity: 0; transform: translateY(8px); } }

.app-status { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 28px; border-top: 1px solid var(--line); background: var(--soft); font-size: 12px; color: var(--muted); }
.follow { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: 1.6px; color: var(--muted); white-space: nowrap; }
.follow svg { color: var(--seal); }
.app-status .follow { margin-left: auto; padding-left: 12px; }

/* 分节 */
/* 从导航跳过来时，让小标题停在页头下方 36px：各节顶部的大块留白收到页头后面，上一节也不会露出一条边 */
.sec { padding: var(--sec-pad) 0 0; scroll-margin-top: calc(36px - var(--sec-pad)); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head h2 { margin: 14px 0 12px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; letter-spacing: -0.035em; }
.sec-head p:not(.eyebrow) { color: var(--muted); }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.panel h3 { font-size: 17px; font-weight: 700; }
.panel h3 + p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* 作品墙：每个词三张 */
.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.trio { min-width: 0; }
.trio-cells { --n: 3; --pad: 6px; display: flex; justify-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color 0.18s; }
.trio:hover .trio-cells { border-color: var(--green); }
.trio figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.materials { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.materials figure { --pad: 36px; display: grid; justify-items: center; gap: 4px; padding: 16px 0 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.materials figcaption { text-align: center; line-height: 1.5; }
.materials figcaption span { display: block; font-size: 11.5px; }
.segs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
.style-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.style-row > div { --pad: 20px; display: grid; place-items: center; aspect-ratio: 1; border-radius: 7px; background: var(--soft); }
.style-ctl { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; }

.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; margin-top: 16px; }
.wall.misses { grid-template-columns: repeat(3, 1fr); }
.misses .trio-cells { background: var(--bg); }

/* 原理 */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.trace-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trace-row > div { --pad: 16px; display: grid; place-items: center; aspect-ratio: 1; border-radius: 7px; background: var(--soft); }
.trace-ctl { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; }
.pipe li { display: grid; grid-template-columns: 34px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pipe li:first-child { padding-top: 0; }
.pipe .idx { padding-top: 4px; }
.pipe h3 { font-size: 15px; font-weight: 700; }
.pipe p { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.numbers > div { padding: 20px 26px; border-right: 1px solid var(--line); }
.numbers > div:last-child { border-right: 0; }
.numbers dt { font-size: 12px; color: var(--muted); }
.numbers dd { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.4; font-variant-numeric: tabular-nums; }
.numbers small { margin-left: 5px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* 最低配置 */
.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 64px; align-items: start; }
.req .sec-head { margin-bottom: 0; }
.specs dt { width: 5.5em; }
:root[data-lang="en"] .specs dt { width: 9.5em; }

/* 下载 */
.dl { display: grid; justify-items: center; gap: 12px; padding: 60px 24px 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft) radial-gradient(var(--line) 0.9px, transparent 0.9px) 0 0 / 16px 16px; text-align: center; }
.dl h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; letter-spacing: -0.035em; }
.dl .btn { margin-top: 12px; }
.dl .btn[aria-disabled="true"] { background: var(--bg); }

/* 中文版下载的跳转小窗：推荐位、优惠码、读条 */
.guard-lock { overflow: hidden; }
.guard { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(20, 20, 19, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.22s, visibility 0.22s; }
.guard.open { opacity: 1; visibility: visible; }
.guard-card { position: relative; width: min(416px, 100%); padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transform: translateY(10px); transition: transform 0.22s; }
.guard.open .guard-card { transform: none; }
.guard-close { position: absolute; top: 8px; right: 8px; font-size: 20px; line-height: 1; }
.guard-title { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; text-align: center; }
.guard-desc { margin: 4px 0 18px; font-size: 13px; color: var(--muted); text-align: center; }
.guard-dest { color: var(--seal); }
.guard-promo { position: relative; display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); overflow: hidden; }
.guard-badge { position: absolute; top: 0; left: 50%; z-index: 1; padding: 1px 14px; border-radius: 0 0 6px 6px; background: var(--seal); color: var(--surface); font-size: 11.5px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
.guard-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 379; object-fit: cover; background: var(--soft); }
.guard-cta { display: block; padding: 6px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-align: center; transition: color 0.18s; }
.guard-promo:hover { border-color: var(--green); }
.guard-promo:hover .guard-cta { color: var(--green); }
.guard-coupon { display: flex; align-items: center; gap: 10px; margin: 12px 0 20px; padding: 10px 12px 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.guard-coupon svg { color: var(--seal); }
.guard-coupon-text { display: grid; margin-right: auto; line-height: 1.35; }
.guard-coupon-text strong { font-size: 14px; }
.guard-coupon-text small { font-size: 11.5px; color: var(--muted); }
.guard-code { padding: 3px 12px; border: 1px dashed var(--seal); border-radius: 6px; background: var(--surface); font: 700 15px/1.6 var(--mono); letter-spacing: 0.1em; user-select: all; }
.guard-copy { flex: none; min-height: 30px; padding: 2px 14px; border-radius: 6px; background: var(--green); color: var(--bg); font-size: 13px; font-weight: 700; transition: background 0.18s; }
.guard-copy:hover { background: var(--ink); }
.guard-label { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.guard-bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.guard-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--green); }
.guard-manual { display: none; margin-top: 14px; font-size: 13px; text-align: center; }
.guard-manual.show { display: block; }
.guard-manual a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.guard-toast { position: fixed; left: 50%; bottom: 40px; z-index: 61; padding: 7px 18px; border: 1px solid var(--green); border-radius: 8px; background: var(--surface); font-size: 13.5px; opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity 0.22s, transform 0.22s, visibility 0.22s; }
.guard-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.site-foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--soft); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 52px; padding-block: 12px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 44px; }
  .wall { grid-template-columns: repeat(4, 1fr); }
  .duo, .limits, .how, .req { grid-template-columns: 1fr; }
  .how, .req { gap: 32px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers > div:nth-child(2) { border-right: 0; }
  .numbers > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  :root { --head: 56px; --sec-pad: 72px; }
  .nav { display: none; }
  .brand { margin-right: auto; }
  .stage { padding-top: 28px; }
  .app-head { height: 52px; padding-inline: 14px; }
  .app-head .chip, .app-sub { display: none; }
  .app-name { margin-right: auto; }
  .app-body { padding: 16px 14px 16px; }
  .app-title { font-size: 22px; }
  .app-status { padding-inline: 14px; }
  .app-status .follow { display: none; }
  .go { min-width: 76px; }
  .prompt { padding-left: 12px; }
  .opts { display: none; }
  .cards { gap: 8px; }
  .card { padding: 8px 8px 0; }
  .canvas { --pad: 8px; --ratio: 1; }
  .card-foot { height: 34px; }
  .card-foot .idx { display: none; }
  .card-foot .act { margin-inline: auto; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trio-cells { --pad: 4px; padding: 8px; }
  .panel { padding: 20px 16px; }
  .materials figure { --pad: 20px; }
  .wall.misses { grid-template-columns: 1fr; }
  .misses .trio-cells { justify-content: space-around; }
  .numbers > div { padding: 16px 18px; }
  .numbers dd { font-size: 24px; }
  .site-foot { margin-top: 72px; }
  .guard-card { padding: 26px 16px 18px; }
  .guard-coupon { flex-wrap: wrap; }
}
