/* OpenPixo website — the only stylesheet, shared by every page in both languages.
   Direction: docs/openpixo-site/ART-DIRECTION.md. Dark, neutral UI; the results carry the colour. */

@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2013, U+2015-2027, U+2030-203A, U+2122, U+2190-2199, U+20AC, U+2212;
}

:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --bg-2: #101217;
  --surface: #15171c;
  --surface-2: #1c1f26;
  --surface-3: #252932;
  --line: rgb(255 255 255 / 8%);
  --line-2: rgb(255 255 255 / 14%);
  --text: #f4f1ec;
  --text-2: #a8acb4;
  --text-3: #80858f;
  --ember: #ff6b2c;
  --ember-hi: #ffb48c;
  --ok: #7fd68b;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --shell: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: "Albert Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --zh: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(zh-CN) body, body:lang(zh-CN) { font-family: var(--sans), var(--zh); line-height: 1.8; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
:lang(zh-CN) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
code, kbd, pre { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(255 107 44 / 35%); }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 6%); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), border-color 200ms var(--ease);
  white-space: nowrap;
}
.btn:hover { background: rgb(255 255 255 / 12%); }
.btn:active { transform: scale(0.98); }
.btn-ember { background: var(--ember); border-color: var(--ember); color: #160800; }
.btn-ember:hover { background: #ff7f47; }
.btn-light { background: var(--text); border-color: var(--text); color: #111; }
.btn-light:hover { background: #fff; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgb(12 13 16 / 55%); color: var(--text-2);
  font-size: 13px; font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.chip.is-now::before { background: var(--ok); box-shadow: 0 0 0 3px rgb(127 214 139 / 20%); }
.chip.is-next::before { background: var(--ember); box-shadow: 0 0 0 3px rgb(255 107 44 / 22%); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgb(255 255 255 / 7%); color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.tag.is-next { color: var(--ember-hi); background: rgb(255 107 44 / 12%); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgb(11 12 15 / 72%);
  backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-in { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; height: 62px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; flex: none; background: var(--ember);
  clip-path: polygon(0 0, 66% 0, 66% 28%, 100% 28%, 100% 100%, 36% 100%, 36% 72%, 0 72%);
}
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav a:hover { color: var(--text); background: rgb(255 255 255 / 6%); }
.nav a[aria-current="page"] { color: var(--text); }
.top-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { padding: 6px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.lang:hover { color: var(--text); background: rgb(255 255 255 / 6%); }
@media (max-width: 860px) {
  .nav { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 128px 0; }
.section-tight { padding: 88px 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--ember-hi); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
:lang(zh-CN) .kicker { letter-spacing: 0.12em; }
.head { max-width: 760px; display: grid; gap: 18px; margin-bottom: 56px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.035em; }
:lang(zh-CN) .head h2 { letter-spacing: 0; }
.head p { color: var(--text-2); font-size: 18px; max-width: 640px; }
.fineprint { color: var(--text-3); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 12px 12px 0; }
.hero-card {
  position: relative; isolation: isolate; border-radius: var(--radius-xl);
  padding: 104px 24px 0; display: flex; flex-direction: column; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; background: #31455f; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 58% 44% at 50% 27%, rgb(6 8 14 / 74%), rgb(6 8 14 / 30%) 62%, transparent 82%),
    linear-gradient(180deg, rgb(6 8 14 / 45%) 0%, rgb(6 8 14 / 0%) 40%, rgb(6 8 14 / 0%) 70%, rgb(11 12 15 / 70%) 100%);
}
.hero-copy { display: grid; justify-items: center; gap: 22px; text-align: center; max-width: 900px; }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 88px); letter-spacing: -0.045em; line-height: 1.0; font-weight: 700;
  text-shadow: 0 2px 30px rgb(0 0 0 / 35%);
}
:lang(zh-CN) .hero h1 { letter-spacing: -0.01em; line-height: 1.12; font-size: clamp(38px, 5.8vw, 76px); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: rgb(244 241 236 / 90%); max-width: 680px; text-shadow: 0 1px 18px rgb(0 0 0 / 50%); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-meta { text-shadow: 0 1px 12px rgb(0 0 0 / 80%); font-weight: 500; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: rgb(244 241 236 / 78%); font-size: 13.5px; }
.hero-meta span::before { content: "✓"; margin-right: 6px; color: var(--ok); }
.hero-stage { position: relative; width: min(100%, 1180px); margin-top: 64px; margin-bottom: -120px; }
.hero + .showcase { padding-top: 200px; }

/* ---------- App window (recreation of the OpenPixo game workspace) ---------- */
.appwin {
  --aw-bg: #111318; --aw-panel: #16181e; --aw-line: rgb(255 255 255 / 8%);
  position: relative; border-radius: 14px; overflow: hidden; background: var(--aw-bg);
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 40px 120px -20px rgb(0 0 0 / 70%), 0 0 0 1px rgb(0 0 0 / 40%);
  font-size: 13px; line-height: 1.45; text-align: left; color: #e7e4df;
}
.aw-bar { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px; background: #0d0f13; border-bottom: 1px solid var(--aw-line); color: var(--text-2); font-size: 12.5px; }
.aw-bar .brand-mark { width: 14px; height: 14px; }
.aw-bar b { color: var(--text); font-weight: 600; }
.aw-ctl { margin-left: auto; display: flex; height: 100%; }
.aw-ctl i { width: 44px; display: grid; place-items: center; color: var(--text-3); font-style: normal; font-size: 13px; }
.aw-body { display: grid; grid-template-columns: 330px 1fr; height: 590px; }
.aw-chat { display: flex; flex-direction: column; border-right: 1px solid var(--aw-line); background: var(--aw-bg); min-width: 0; }
.aw-chat-head { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--aw-line); font-weight: 600; }
.aw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.aw-chat-head small { margin-left: auto; color: var(--text-3); font-weight: 500; }
.aw-log { flex: 1; overflow: hidden; padding: 14px; display: grid; align-content: start; gap: 12px; }
.aw-user { justify-self: end; max-width: 88%; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: var(--surface-3); }
.aw-agent { color: #d9d6d1; }
.aw-exec { border: 1px solid var(--aw-line); border-radius: 10px; background: var(--aw-panel); overflow: hidden; }
.aw-exec-head { display: flex; justify-content: space-between; padding: 7px 10px; color: var(--text-3); font-size: 12px; border-bottom: 1px solid var(--aw-line); }
.aw-exec ol { list-style: none; margin: 0; padding: 4px 0; }
.aw-exec li { display: flex; gap: 8px; align-items: baseline; padding: 4px 10px; font-family: var(--mono); font-size: 11.5px; color: #c9c6c0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-exec li::before { content: "✓"; color: var(--ok); font-family: var(--sans); }
.aw-exec li em { font-style: normal; color: var(--ok); margin-left: auto; padding-left: 8px; }
.aw-exec li em.del { color: #f08a7e; margin-left: 4px; padding-left: 0; }
.aw-composer { margin: 0 12px 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 10px 10px 12px; display: flex; align-items: flex-end; gap: 8px; color: var(--text-3); background: var(--aw-panel); }
.aw-composer span { flex: 1; padding-bottom: 4px; }
.aw-send { width: 28px; height: 28px; border-radius: 8px; background: var(--ember); display: grid; place-items: center; color: #1a0a00; font-weight: 700; }
.aw-work { display: flex; flex-direction: column; min-width: 0; background: #0f1115; }
.aw-tabs { height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--aw-line); }
.aw-tabs span { padding: 5px 11px; border-radius: 8px; color: var(--text-3); font-weight: 500; }
.aw-tabs span.on { background: var(--surface-3); color: var(--text); }
.aw-tabs small { margin-left: auto; color: var(--text-3); }
.aw-studio { flex: 1; display: grid; grid-template-columns: 150px 1fr; min-height: 0; }
.aw-rail { border-right: 1px solid var(--aw-line); padding: 12px 8px; display: grid; align-content: start; gap: 2px; color: var(--text-2); }
.aw-rail span { padding: 5px 8px; border-radius: 7px; }
.aw-rail span.on { background: rgb(255 255 255 / 7%); color: var(--text); }
.aw-rail h4 { margin: 14px 8px 4px; font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
:lang(zh-CN) .aw-rail h4 { text-transform: none; }
.aw-run { padding: 16px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; overflow: hidden; }
.aw-run h3 { font-size: 16px; letter-spacing: -0.01em; }
.aw-run > p { color: var(--text-3); font-size: 12.5px; }
.aw-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-fields span { padding: 4px 9px; border: 1px solid var(--aw-line); border-radius: 7px; background: var(--aw-panel); color: var(--text-2); font-size: 12px; }
.aw-fields b { color: var(--text); font-weight: 600; }
.aw-status { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.aw-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.aw-cands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aw-cand { border: 1px solid var(--aw-line); border-radius: 10px; background: var(--aw-panel); padding: 8px; display: grid; gap: 7px; }
.aw-cand.sel { border-color: rgb(255 107 44 / 70%); box-shadow: 0 0 0 1px rgb(255 107 44 / 40%); }
.aw-cand header { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; }
.aw-check { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 10px; }
.sel .aw-check { background: var(--ember); border-color: var(--ember); color: #1a0a00; }
.aw-cand header small { margin-left: auto; color: var(--text-3); }
.aw-sheet { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background-color: #1a1d23; background-image: conic-gradient(#20242b 25%, #181b20 0 50%, #20242b 0 75%, #181b20 0); background-size: 16px 16px; }
.aw-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.aw-cand ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 11.5px; color: var(--ok); }
.aw-cand ul li::before { content: "✓ "; }
.aw-actions { display: flex; gap: 8px; align-items: center; }
.aw-btn { padding: 6px 12px; border-radius: 8px; background: var(--ember); color: #1a0a00; font-weight: 600; font-size: 12.5px; }
.aw-btn.ghost { background: rgb(255 255 255 / 7%); color: var(--text-2); }
.aw-float {
  position: absolute; right: -42px; bottom: 78px; width: 196px; border-radius: 16px; padding: 12px;
  background: rgb(18 20 26 / 82%); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 70%); display: grid; gap: 8px; font-size: 12px; color: var(--text-2);
}
.aw-float b { color: var(--text); font-weight: 600; }
.aw-float .sprite-stage { height: 150px; border-radius: 10px; }
@media (max-width: 1100px) { .aw-float { right: 12px; bottom: 12px; } }
@media (max-width: 900px) {
  .aw-body { grid-template-columns: 1fr; height: auto; }
  .aw-chat { display: none; }
  .aw-studio { grid-template-columns: 1fr; }
  .aw-rail { display: none; }
  .aw-float { display: none; }
}

/* ---------- Sprite animation (CSS steps over a keyed sprite sheet) ---------- */
.sprite {
  /* --size is the cell height; cells of a cols x rows grid on a square sheet are (rows/cols) times as wide. */
  --cols: 6; --rows: 8; --row: 0; --size: 96px; --dur: 0.72s;
  --cw: calc(var(--size) * var(--rows) / var(--cols));
  width: var(--cw); height: var(--size);
  background-repeat: no-repeat;
  background-size: calc(var(--cw) * var(--cols)) calc(var(--size) * var(--rows));
  background-position: 0 calc(var(--size) * var(--row) * -1);
  image-rendering: pixelated;
  animation: sprite-walk var(--dur) steps(var(--cols)) infinite;
}
@keyframes sprite-walk { from { background-position-x: 0; } to { background-position-x: calc(var(--cw) * var(--cols) * -1); } }
.sprite-kaia { background-image: url("assets/assets-ready/walk-kaia-sheet.webp"); }
.sprite-knight { --cols: 4; background-image: url("assets/assets-ready/walk-knight-sheet.webp"); --dur: 0.6s; }
.sprite-stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: #23281f url("assets/assets-ready/tile-cobble.webp") 0 0 / 48px 48px repeat;
  image-rendering: pixelated;
}
.sprite-stage::before { content: ""; position: absolute; inset: 0; background: rgb(14 16 20 / 38%); }
.sprite-stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 30%, rgb(10 11 14 / 80%)); pointer-events: none; }
.sprite-stage .sprite { position: relative; z-index: 1; }
/* Cycle a single sprite through its eight facing rows. */
.sprite.cycle { animation: sprite-walk var(--dur) steps(var(--cols)) infinite, sprite-turn 8s steps(8) infinite; }
@keyframes sprite-turn { from { background-position-y: 0; } to { background-position-y: calc(var(--size) * var(--rows) * -1); } }

/* VFX flipbook: a 4x4 sheet played with two stepped animations. */
.vfx {
  --size: 150px; --dur: 1.1s; width: var(--size); height: var(--size);
  background-repeat: no-repeat; background-size: calc(var(--size) * 4) calc(var(--size) * 4);
  mix-blend-mode: screen;
  animation: vfx-x calc(var(--dur) / 4) steps(4) infinite, vfx-y var(--dur) steps(4) infinite;
}
@keyframes vfx-x { from { background-position-x: 0; } to { background-position-x: calc(var(--size) * -4); } }
@keyframes vfx-y { from { background-position-y: 0; } to { background-position-y: calc(var(--size) * -4); } }
.vfx-fire { background-image: url("assets/assets-ready/vfx-fire-sheet.webp"); }
.vfx-ice { background-image: url("assets/assets-ready/vfx-ice-sheet.webp"); animation-delay: -0.4s; }
.vfx-magic { background-image: url("assets/assets-ready/vfx-magic-sheet.webp"); --dur: 1.4s; animation-delay: -0.8s; }

/* ---------- Results marquee ---------- */
.showcase { padding: 168px 0 40px; overflow: hidden; }
.showcase .head { margin-bottom: 40px; }
.marquee { display: grid; gap: 12px; }
.mq-row { overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-row::-webkit-scrollbar { display: none; }
.mq-track { display: flex; gap: 12px; width: max-content; padding-inline: 12px; }
.tile {
  position: relative; margin: 0; height: 280px; flex: none; border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line);
}
.tile img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform 600ms var(--ease); }
.tile.sq img { aspect-ratio: 1; }
.tile.pt img { aspect-ratio: 2 / 3; }
.tile.ls img { aspect-ratio: 3 / 2; }
.tile.wd img { aspect-ratio: 16 / 9; }
.tile figcaption {
  position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text);
  background: rgb(10 11 14 / 62%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tile figcaption span { color: var(--text-3); font-weight: 500; }
.tile:hover img { transform: scale(1.04); }
.motion .mq-row { overflow: hidden; }
.motion .mq-track { animation: marquee var(--mq-dur, 90s) linear infinite; }
.motion .mq-row.rev .mq-track { animation-direction: reverse; }
.motion .mq-row:hover .mq-track { animation-play-state: paused; }
.mq-dup { display: none; }
.motion .mq-dup { display: contents; }
@keyframes marquee { to { transform: translateX(-50%); } }
.showcase-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }

/* ---------- Scroll story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.story-nav { position: sticky; top: 120px; display: grid; gap: 28px; }
.story-nav h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.035em; }
:lang(zh-CN) .story-nav h2 { letter-spacing: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps a {
  display: grid; grid-template-columns: 36px 1fr; gap: 0 12px; padding: 16px 18px; border-radius: 18px; text-decoration: none;
  color: var(--text-3); transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.steps a::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; padding-top: 4px; }
.steps strong { font-size: 19px; font-weight: 600; color: inherit; }
.steps span { grid-column: 2; color: var(--text-2); font-size: 15px; display: grid; grid-template-rows: 1fr; transition: grid-template-rows 300ms var(--ease), opacity 300ms var(--ease); }
.steps span > i { font-style: normal; overflow: hidden; padding-top: 6px; }
.steps a:hover { color: var(--text-2); }
.steps a.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.js .steps a:not(.on) span { grid-template-rows: 0fr; opacity: 0; }
.story-panels { display: grid; gap: 28px; }
.panel { min-height: 76vh; display: grid; align-content: center; gap: 18px; }
.panel-head { display: none; gap: 8px; }
.panel-head h3 { font-size: 24px; }
.panel-head p { color: var(--text-2); }
.panel-card { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.panel-frame { position: relative; isolation: isolate; border-radius: 26px; padding: clamp(16px, 4vw, 44px); overflow: hidden; background: #1a1d24 var(--art) center / cover no-repeat; }
.panel-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 10 14 / 18%), rgb(8 10 14 / 46%)); }
.panel-frame > .panel-card { box-shadow: 0 30px 80px -24px rgb(0 0 0 / 80%); border-color: rgb(255 255 255 / 12%); background: rgb(21 23 28 / 94%); }
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 40px; }
  .story-nav { position: static; }
  .steps { display: none; }
  .panel { min-height: 0; }
  .panel-head { display: grid; }
}

/* Panel contents */
.pc-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.pc-bar b { color: var(--text); font-weight: 600; }
.pc-bar .tag { margin-left: auto; }
.tree { display: grid; grid-template-columns: 240px 1fr; min-height: 380px; }
.tree ul { list-style: none; margin: 0; padding: 14px 10px; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); display: grid; align-content: start; gap: 2px; }
.tree li { padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree li.d::before { content: "▸ "; color: var(--text-3); }
.tree li.in { padding-left: 24px; }
.tree li.in2 { padding-left: 40px; }
.tree li.on { background: rgb(255 255 255 / 7%); color: var(--text); }
.tree-grid { padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.tree-grid figure { margin: 0; display: grid; gap: 6px; font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.tree-grid .thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.tree-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tree-grid .thumb.contain img { object-fit: contain; padding: 8px; }
.tree-grid .thumb.px img { image-rendering: pixelated; }
.chatlog { padding: 18px; display: grid; gap: 14px; font-size: 14px; }
.chatlog .aw-user { max-width: 82%; }
.diff { border-radius: 12px; border: 1px solid var(--line); background: #0e1014; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; overflow: hidden; }
.diff header { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text-3); font-family: var(--sans); font-size: 12.5px; }
.diff pre { margin: 0; padding: 10px 0; overflow-x: auto; }
.diff code { display: block; padding: 0 12px; white-space: pre; color: #cfccc6; }
.diff .add { background: rgb(127 214 139 / 9%); color: #b9ecc0; }
.diff .add::before { content: "+ "; color: var(--ok); }
.diff .ctx::before { content: "  "; }
.cands { padding: 16px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.cand { border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); padding: 10px; display: grid; gap: 10px; align-content: start; }
.cand.sel { border-color: rgb(255 107 44 / 65%); }
.cand-img { border-radius: 10px; overflow: hidden; background-color: #1a1d23; background-image: conic-gradient(#22262d 25%, #191c21 0 50%, #22262d 0 75%, #191c21 0); background-size: 18px 18px; }
.cand-img img { width: 100%; height: auto; }
.cand-img.px img { image-rendering: pixelated; }
.cand ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; color: var(--ok); font-family: var(--mono); }
.cand ul li::before { content: "✓ "; }
.cand header { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.term { padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #d5d2cc; background: #0c0d11; overflow-x: auto; }
.term .c { color: var(--text-3); }
.term .p { color: var(--ember-hi); }
.term .ok { color: var(--ok); }
.verify-sum { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.verify-sum div { padding: 16px 20px; display: grid; gap: 4px; }
.verify-sum div + div { border-left: 1px solid var(--line); }
.verify-sum b { font-size: 22px; font-weight: 650; }
.verify-sum span { color: var(--text-3); font-size: 13px; }
@media (max-width: 640px) {
  .tree { grid-template-columns: 1fr; }
  .tree ul { display: none; }
  .cands { grid-template-columns: 1fr; }
  .verify-sum { grid-template-columns: 1fr; }
  .verify-sum div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Recipe bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.card-x {
  position: relative; grid-column: span 4; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; isolation: isolate;
}
.card-x.w5 { grid-column: span 5; }
.card-x.w6 { grid-column: span 6; }
.card-x.w7 { grid-column: span 7; }
.card-x.w8 { grid-column: span 8; }
.card-x.w12 { grid-column: span 12; }
.cx-media { position: relative; flex: 1; min-height: 220px; display: grid; place-items: center; overflow: hidden; }
.cx-body { padding: 18px 20px 20px; display: grid; gap: 6px; border-top: 1px solid var(--line); background: var(--surface); }
.cx-body h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cx-body p { color: var(--text-2); font-size: 14.5px; }
.cx-body code { color: var(--text-3); font-size: 12px; }
.walk-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 36px); }
.walk-stage { z-index: 1; }
.walk-stage .sprite { --size: clamp(76px, 8.4vw, 128px); }
.walk-stage .sprite-knight { --size: clamp(66px, 7vw, 104px); }
.vfx-stage { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: space-evenly; }
.vfx-stage .vfx { --size: clamp(104px, 12vw, 190px); }
.turn-media img { width: 92%; height: auto; }
.cross { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.cross img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; transition: opacity 500ms var(--ease); }
.cross img + img { opacity: 0; }
.card-x:hover .cross img:first-child { opacity: 0; }
.card-x:hover .cross img + img { opacity: 1; }
.nine { position: absolute; inset: 0; display: grid; place-items: center; }
.nine-box {
  width: 46%; height: 52%; border-style: solid; border-width: 34px;
  border-image: url("assets/assets-ready/ui-wood.webp") 64 fill / 34px / 0 stretch;
  display: grid; place-items: center; color: #3b2615; font-weight: 700; font-size: 14px;
  animation: nine 5s var(--ease) infinite alternate;
}
@keyframes nine { 0% { width: 34%; height: 40%; } 50% { width: 70%; height: 46%; } 100% { width: 52%; height: 72%; } }
.swatches { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.swatch { position: relative; background-repeat: repeat; animation: drift 30s linear infinite; }
.swatch span { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-family: var(--mono); padding: 2px 8px; border-radius: 999px; background: rgb(10 11 14 / 70%); color: var(--text-2); }
.swatch.px { image-rendering: pixelated; }
@keyframes drift { to { background-position: 512px 256px; } }
.plx { position: absolute; inset: 0; background: linear-gradient(180deg, #2a2f52 0%, #6d5b86 46%, #e19a7c 100%); overflow: hidden; }
.plx i { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; animation: scroll-x var(--d) linear infinite; }
.plx i:nth-child(1) { height: 70%; background-image: url("assets/assets-ready/plx-far.webp"); background-size: auto 100%; --d: 90s; opacity: 0.9; }
.plx i:nth-child(2) { height: 66%; background-image: url("assets/assets-ready/plx-mid.webp"); background-size: auto 100%; --d: 50s; }
.plx i:nth-child(3) { height: 74%; bottom: -4%; background-image: url("assets/assets-ready/plx-near.webp"); background-size: auto 100%; --d: 26s; }
@keyframes scroll-x { to { background-position-x: -1400px; } }
.sky { position: absolute; inset: 0; background: url("assets/assets-ready/sky-sunset.webp") 0 50% / auto 140% repeat-x; animation: pan 80s linear infinite; }
@keyframes pan { to { background-position-x: -1600px; } }
.cx-swap { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
@media (max-width: 1000px) {
  .card-x, .card-x.w5, .card-x.w7, .card-x.w8 { grid-column: span 6; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .card-x, .card-x.w5, .card-x.w6, .card-x.w7, .card-x.w8, .card-x.w12 { grid-column: auto; min-height: 300px; }
}
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; color: var(--text-3); font-size: 14px; }
.also .tag { font-weight: 500; }
.also a { margin-left: auto; }

/* ---------- pixo asset ops ---------- */
.ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ba { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); --pos: 50%; }
.ba-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ba-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-view .after { clip-path: inset(0 0 0 var(--pos)); }
.ba-view.keyed .after { object-fit: cover; background-color: #1a1d23; background-image: conic-gradient(#262a32 25%, #1b1e24 0 50%, #262a32 0 75%, #1b1e24 0); background-size: 22px 22px; }
.ba-view .px { image-rendering: pixelated; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgb(0 0 0 / 50%); pointer-events: none; }
.ba-line::after { content: "⟷"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 15px; }
.ba-label { position: absolute; top: 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgb(10 11 14 / 70%); }
.ba-label.l { left: 12px; }
.ba-label.r { right: 12px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba figcaption { padding: 16px 20px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.ba figcaption code { color: var(--ember-hi); font-size: 13px; }
.ba figcaption span { color: var(--text-2); font-size: 14px; }
.cli {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #0c0d11;
}
.cli .term { background: transparent; }
.palette { border-left: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.palette p { color: var(--text-2); font-size: 14px; }
.palette ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.palette li { aspect-ratio: 1; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%); }
.palette img { border-radius: 10px; width: 100%; height: auto; image-rendering: pixelated; }
@media (max-width: 860px) {
  .ops { grid-template-columns: 1fr; }
  .cli { grid-template-columns: 1fr; }
  .palette { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Engines / agents strip ---------- */
.strip { border-block: 1px solid var(--line); padding: 44px 0; }
.strip-in { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: center; }
.strip-in p { color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
:lang(zh-CN) .strip-in p { letter-spacing: 0.1em; }
.marks { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: baseline; }
.marks span { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; color: var(--text-2); }
.marks span small { margin-left: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ember-hi); vertical-align: 4px; }
@media (max-width: 720px) { .strip-in { grid-template-columns: 1fr; } .marks span { font-size: 20px; } }

/* ---------- Store teaser ---------- */
.store { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; }
.store .head { margin: 0; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.item { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.item-media { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-media.contain img { object-fit: contain; padding: 14px; }
.item-media.px img { image-rendering: pixelated; }
.item-media.word { font-family: var(--mono); color: var(--text-2); font-size: 13px; padding: 16px; text-align: left; place-items: start; background: linear-gradient(160deg, #1d2029, #14161b); }
.item-body { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.item-body b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.item-meta { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12.5px; }
.item-meta .free { color: var(--ok); font-weight: 600; }
.item.locked { border-style: dashed; background: transparent; }
.item.locked .item-media { background: repeating-linear-gradient(135deg, rgb(255 255 255 / 3%) 0 10px, transparent 10px 20px); color: var(--ember-hi); font-weight: 600; font-size: 14px; }
@media (max-width: 960px) { .store { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Local-first band ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trust article { border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 28px; display: grid; gap: 10px; align-content: start; background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.trust h3 { font-size: 20px; }
.trust p { color: var(--text-2); font-size: 15px; }
.trust .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 107 44 / 12%); color: var(--ember-hi); font-size: 18px; margin-bottom: 6px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.faq .head { margin: 0; align-content: start; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 300; color: var(--text-3); transition: rotate 200ms var(--ease); }
.qa details[open] summary::after { rotate: 45deg; }
.qa .a { padding: 0 0 24px; color: var(--text-2); display: grid; gap: 12px; max-width: 720px; }
.qa pre { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; color: var(--text); }
.qa a { color: var(--ember-hi); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Closing CTA ---------- */
.finale { padding: 0 12px 12px; }
.finale-card { position: relative; isolation: isolate; border-radius: var(--radius-xl); overflow: hidden; min-height: 620px; display: grid; align-items: center; padding: 64px clamp(24px, 6vw, 88px); background: #2f6aa8; }
.finale-card picture, .finale-card picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.finale-card picture img { object-position: 70% 50%; }
.finale-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 12 22 / 82%) 0%, rgb(8 12 22 / 55%) 38%, transparent 64%); }
.finale-copy { max-width: 560px; display: grid; gap: 20px; justify-items: start; }
.finale-copy h2 { font-size: clamp(36px, 4.8vw, 64px); letter-spacing: -0.04em; }
:lang(zh-CN) .finale-copy h2 { letter-spacing: 0; }
.finale-copy p { color: rgb(244 241 236 / 85%); font-size: 17px; }
.finale-copy .hero-cta { justify-content: flex-start; }
@media (max-width: 720px) { .finale-card { min-height: 560px; align-items: end; } .finale-card::before { background: linear-gradient(0deg, rgb(8 12 22 / 92%) 0%, rgb(8 12 22 / 60%) 45%, transparent 75%); } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 0; color: var(--text-2); font-size: 14px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand p { color: var(--text-3); }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 32px; }
.foot-nav div { display: grid; gap: 10px; align-content: start; }
.foot-h { color: var(--text); font-weight: 600; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Text pages (privacy, support, drafts, generated pages) ---------- */
.page main { position: relative; }
.page main::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgb(255 140 70 / 13%), transparent 70%), radial-gradient(ellipse 40% 80% at 80% 0%, rgb(90 140 255 / 10%), transparent 70%);
}
.doc { width: min(100% - 2 * var(--gutter), 760px); margin: 0 auto; padding: 88px 0 120px; }
.wide .doc { width: min(100% - 2 * var(--gutter), 1180px); }
.doc .doc-kicker { color: var(--ember-hi); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; margin-bottom: 18px; }
:lang(zh-CN) .doc h1 { letter-spacing: 0; }
.doc .doc-lead { font-size: 19px; color: var(--text-2); max-width: 680px; }
.doc .doc-meta { margin-top: 16px; color: var(--text-3); font-size: 14px; }
.doc h2 { font-size: 26px; margin: 56px 0 14px; letter-spacing: -0.02em; }
.doc h3 { font-size: 19px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--ember-hi); text-underline-offset: 3px; }
.doc strong { color: var(--text); }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 0.86em; }
.doc pre { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
.doc pre code { padding: 0; background: none; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
.doc-summary { margin-top: 40px; padding: 24px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.doc-summary h2 { margin-top: 0; font-size: 20px; }
.draft-banner { display: grid; gap: 4px; margin-bottom: 32px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgb(255 107 44 / 40%); background: rgb(255 107 44 / 9%); color: var(--ember-hi); font-size: 14px; }
.draft-banner strong { color: var(--text); }
.planned { color: var(--ember-hi); font-size: 0.85em; font-weight: 600; }
mark.todo { background: rgb(255 107 44 / 16%); color: var(--ember-hi); padding: 0 6px; border-radius: 6px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--text-2); }
.doc-nav a:hover { color: var(--text); }

/* Generated pages: download, changelog, recipes, store */
.dl-status { margin-top: 40px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; justify-items: start; }
.dl-status h2 { margin: 0; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.specs div { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.specs dt { color: var(--text-3); font-size: 13px; }
.specs dd { margin: 4px 0 0; font-weight: 600; color: var(--text); }
.release { padding: 20px 0; border-bottom: 1px solid var(--line); }
.release h3 { margin-top: 0; }
.download-list { list-style: none; padding: 0; }
.download-list code { word-break: break-all; }
.notes h2 { font-size: 22px; }
.group { margin-top: 64px; }
.group-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.group-head h2 { margin: 0; }
.group-head span { color: var(--text-3); font-family: var(--mono); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 18px; display: grid; gap: 8px; align-content: start; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.card:hover { border-color: var(--line-2); }
.card h3 { margin: 4px 0 0; font-size: 17px; }
.card p { font-size: 14.5px; margin: 0; }
.card > img { width: calc(100% + 36px); height: auto; max-width: none; margin: -18px -18px 6px; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.card.has-media { padding-top: 18px; }
.label { justify-self: start; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 2px 8px; border-radius: 6px; background: rgb(255 255 255 / 6%); }
.note { color: var(--text-3); font-size: 13.5px; }
.note b { color: var(--ok); }
.gallery-note { margin-top: 20px; color: var(--text-3); font-size: 13px; }

/* ---------- Motion preferences ---------- */
@media (max-width: 640px) {
  .tile { height: 200px; border-radius: 14px; }
  .aw-bar > span:not(.aw-ctl) { display: none; }
  .hero-card { padding-top: 72px; }
  .section { padding: 88px 0; }
  .showcase { padding-top: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Checkout result pages use a minimal footer. */
.foot-min { margin-top: 0; padding-top: 0; border-top: 0; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
