/* ───────── GUAVAMAX · 像素復古主題 ───────── */

@font-face {
  font-family: "Cubic";
  src: url("/fonts/Cubic_11.woff2") format("woff2");
  font-display: swap;
}

:root {
  --px: 4px;
  --font-pixel: "Cubic", "PingFang TC", "Noto Sans TC", monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f4ead3;
  --bg-alt: #eadcbc;
  --dot: rgba(29, 43, 83, 0.09);
  --surface: #fffaf0;
  --ink: #1d2b53;
  --ink-soft: #4b557a;
  --line: #1d2b53;
  --shadow: #1d2b53;
  --pink: #d6336c;
  --pink-soft: #ffd3e2;
  --pink-bright: #ff77a8;
  --green: #00804c;
  --green-bright: #00e436;
  --yellow: #ffec27;
  --code-bg: #1d2b53;
  --code-ink: #fff1e8;
  --selection: #ffec27;
  --arrow: #ffec27;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10131f;
    --bg-alt: #161a2b;
    --dot: rgba(255, 241, 232, 0.05);
    --surface: #1c2140;
    --ink: #fff1e8;
    --ink-soft: #b8bccf;
    --line: #6d78b8;
    --shadow: #04050a;
    --pink: #ff77a8;
    --pink-soft: #3b1f3a;
    --green: #00e436;
    --code-bg: #0a0c16;
    --selection: #7e2553;
    --arrow: #d6336c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10131f;
  --bg-alt: #161a2b;
  --dot: rgba(255, 241, 232, 0.05);
  --surface: #1c2140;
  --ink: #fff1e8;
  --ink-soft: #b8bccf;
  --line: #6d78b8;
  --shadow: #04050a;
  --pink: #ff77a8;
  --pink-soft: #3b1f3a;
  --green: #00e436;
  --code-bg: #0a0c16;
  --selection: #7e2553;
  --arrow: #d6336c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
::selection { background: var(--selection); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: var(--pink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; }
.skip-link:focus { left: 8px; background: var(--yellow); color: #1d2b53; padding: 8px 12px; }

:focus-visible { outline: 3px dashed var(--pink); outline-offset: 3px; }

/* ── 像素字型工具 ── */
.pixel, .brand-name, .nav-link, .px-btn, .tag, .section-title, .page-title, .page-kicker,
.hero-title, .hero-kicker, .press-start, .stat-bar, .slot-head, .slot-title, .post-title,
.prose h2, .toc summary, .post-end-title, .cabinet-name, .cabinet-status, .go-title,
.go-continue, .xp-label, .copy-btn, .footer-title, .admonition-title, .coin-slot, .section-more,
.post-nav-link span {
  font-family: var(--font-pixel);
  font-weight: normal;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  letter-spacing: 0.02em;
}

/* ── 按鈕：鋸齒角 ── */
.px-btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  display: inline-block;
  position: relative;
  padding: 8px 20px;
  margin: var(--px);
  font-size: 24px;
  line-height: 1.2;
  color: var(--btn-ink);
  background: var(--btn-bg);
  text-decoration: none;
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--line),
    0 var(--px) 0 0 var(--line),
    calc(var(--px) * -1) 0 0 0 var(--line),
    var(--px) 0 0 0 var(--line),
    0 calc(var(--px) * 2) 0 0 var(--shadow),
    var(--px) var(--px) 0 0 var(--shadow);
  transition: transform 60ms steps(1);
  cursor: pointer;
}
.px-btn:hover { --btn-bg: var(--yellow); --btn-ink: #1d2b53; color: var(--btn-ink); }
.px-btn:active { transform: translateY(var(--px)); box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--line), 0 var(--px) 0 0 var(--line),
    calc(var(--px) * -1) 0 0 0 var(--line), var(--px) 0 0 0 var(--line); }
.px-btn-primary { --btn-bg: var(--pink-bright); --btn-ink: #1d2b53; }

/* ── 頁首 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: var(--px) solid var(--line);
  box-shadow: 0 var(--px) 0 0 var(--shadow);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-sprite { width: 36px; height: 36px; }
.brand-sprite svg { width: 36px; height: 36px; image-rendering: pixelated; }
.brand-name { font-size: 24px; }
.brand:hover .brand-sprite { animation: hop 0.4s steps(2) 1; }

.site-nav { display: flex; gap: 4px; }
.nav-link {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 12px; color: var(--ink); text-decoration: none; line-height: 1;
}
.nav-en { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.nav-zh { font-size: 24px; }
.nav-link:hover, .nav-link.is-active { background: var(--ink); color: var(--bg); }
.nav-link:hover .nav-en, .nav-link.is-active .nav-en { color: var(--pink-bright); }

.theme-toggle {
  width: 40px; height: 40px; padding: 8px;
  border: 3px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow); cursor: pointer;
}
.theme-toggle svg { width: 100%; height: 100%; }
.theme-toggle:active { transform: translate(3px, 3px); box-shadow: none; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* ── 首頁英雄區 ── */
.hero { padding: 56px 0 32px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero-kicker { font-size: 24px; color: var(--green); margin: 0 0 12px; }
.hero-title { font-size: 48px; line-height: 1.25; margin: 0 0 20px; }
.hero-lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-actions.center { justify-content: center; }
.press-start { font-size: 24px; color: var(--pink); margin: 32px 0 0; animation: blink 1.2s steps(1) infinite; }
.hero-art { display: flex; flex-direction: column; align-items: center; }
.hero-sprite { width: min(320px, 70vw); animation: bob 1.6s steps(2) infinite; }
.hero-sprite svg { width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(8px 8px 0 var(--shadow)); }
.hero-shadow { width: 55%; height: 16px; background: var(--dot); margin-top: 16px; background: repeating-linear-gradient(90deg, var(--ink-soft) 0 8px, transparent 8px 16px); opacity: 0.25; }

.stat-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 48px 0 0; border: var(--px) solid var(--line); background: var(--surface);
  box-shadow: 6px 6px 0 var(--shadow);
}
.stat-bar > div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 20px; }
.stat-bar > div + div { border-left: var(--px) solid var(--line); }
.stat-bar dt { font-size: 12px; color: var(--ink-soft); }
.stat-bar dd { margin: 0; font-size: 36px; color: var(--pink); line-height: 1; }

/* ── 區塊 ── */
.section { padding: 48px 0; }
.section-tight { padding-top: 8px; }
.section-alt { background: var(--bg-alt); border-top: var(--px) solid var(--line); border-bottom: var(--px) solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-title { font-size: 36px; margin: 0; line-height: 1.2; }
.section-en { display: block; font-size: 12px; color: var(--green); margin-bottom: 8px; }
.section-more { font-size: 24px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.section-more:hover { color: var(--pink); }

/* ── 文章卡片：存檔欄位 ── */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.save-slot { background: var(--surface); border: var(--px) solid var(--line); box-shadow: 8px 8px 0 var(--shadow); transition: transform 80ms steps(1); }
.save-slot:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--shadow); }
.save-slot-link { display: flex; flex-direction: column; height: 100%; padding: 0 0 20px; color: var(--ink); text-decoration: none; }
.slot-head { display: flex; justify-content: space-between; padding: 8px 16px; background: var(--ink); color: var(--bg); font-size: 12px; }
.slot-exp { color: var(--yellow); }
.slot-title { font-size: 24px; line-height: 1.35; margin: 16px 16px 8px; }
.save-slot:hover .slot-title { color: var(--pink); }
.slot-desc { margin: 0 16px 12px; font-size: 15px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.slot-meta { display: flex; gap: 16px; margin: 0 16px 12px; font-size: 14px; color: var(--ink-soft); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 16px; }
.tag { font-size: 12px; padding: 4px 8px; background: var(--pink-soft); color: var(--ink); border: 2px solid var(--line); line-height: 1; }
.tags-lg { margin: 20px 0 0; }
.tags-lg .tag { font-size: 24px; padding: 6px 12px; }

/* ── 頁面標頭 ── */
.page-head { padding: 48px 0 24px; }
.page-kicker { font-size: 24px; color: var(--green); margin: 0 0 8px; }
.page-title { font-size: 48px; line-height: 1.2; margin: 0 0 16px; }
.page-lead { font-size: 18px; color: var(--ink-soft); margin: 0; max-width: 640px; }

/* ── 遊戲廳 ── */
.arcade-teaser { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.arcade-teaser p { color: var(--ink-soft); max-width: 560px; }
.coin-slot {
  width: 140px; height: 180px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: var(--ink); border: var(--px) solid var(--line); box-shadow: 8px 8px 0 var(--shadow);
  padding: 16px; position: relative; color: var(--yellow); font-size: 12px;
}
.coin-slot::before { content: ""; position: absolute; top: 40px; width: 12px; height: 56px; background: var(--yellow); box-shadow: 0 0 0 6px #7e2553; animation: blink 1.6s steps(1) infinite; }

.cabinet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.cabinet { background: var(--surface); border: var(--px) solid var(--line); box-shadow: 8px 8px 0 var(--shadow); padding: 16px; text-align: center; }
.cabinet-screen {
  aspect-ratio: 4 / 3; background: #1d2b53; border: var(--px) solid #000; display: grid; place-items: center;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 4px);
}
.cabinet-q { font-family: var(--font-pixel); font-size: 72px; color: #ff77a8; line-height: 1; animation: blink 2s steps(1) infinite; }
.cabinet-name { font-size: 24px; margin: 16px 0 4px; }
.cabinet-status { font-size: 12px; color: var(--ink-soft); margin: 0; }

/* ── 文章頁 ── */
.xp-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 8px; z-index: 30;
  background: var(--ink);
}
.xp-fill {
  height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--green-bright) 0 12px, #008751 12px 16px);
}
.xp-label { display: none; }

.post-head { padding-top: 48px; padding-bottom: 24px; }
.post-head .tags { margin: 0 0 16px; }
.post-title { font-size: 36px; line-height: 1.35; margin: 0 0 16px; }
.post-desc { font-size: 18px; color: var(--ink-soft); margin: 0 0 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-soft); padding-bottom: 24px; border-bottom: var(--px) dashed var(--line); }

.toc { margin: 8px 0 32px; background: var(--surface); border: var(--px) solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.toc summary { cursor: pointer; padding: 10px 16px; font-size: 24px; background: var(--ink); color: var(--bg); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: "▼ "; color: var(--arrow); }
.toc:not([open]) summary::before { content: "▶ "; }
.toc .toc { margin: 0; border: 0; box-shadow: none; background: none; }
.toc ul { margin: 0; padding: 12px 20px 12px 40px; font-size: 15px; line-height: 1.9; }
.toc ul ul { padding: 0 0 0 20px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--pink); text-decoration: underline; }

/* ── 內文排版 ── */
.prose { overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 {
  font-size: 24px; line-height: 1.4; margin: 2.4em 0 0.8em; padding: 8px 12px;
  background: var(--ink); color: var(--bg); position: relative;
  box-shadow: 6px 6px 0 var(--pink-bright);
}
.prose h2::before { content: "▶ "; color: var(--arrow); }
.prose h3 { font-size: 20px; line-height: 1.5; margin: 2em 0 0.6em; padding-left: 20px; position: relative; }
.prose h3::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; background: var(--pink-bright); box-shadow: 2px 2px 0 var(--shadow); }
.prose h2 + *, .prose h3 + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.6em; }
.prose li + li { margin-top: 0.35em; }
.prose ul > li::marker { content: "■  "; color: var(--pink); font-size: 0.7em; }
.prose strong { background: linear-gradient(transparent 60%, var(--pink-soft) 60%); }
.prose hr { border: 0; height: var(--px); margin: 2.5em 0; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 12px 20px; border-left: 8px solid var(--green); background: var(--surface); color: var(--ink-soft); }
.prose blockquote p:first-child { margin-top: 0; }
.prose kbd {
  font-family: var(--font-mono); font-size: 0.85em; padding: 1px 6px; background: var(--surface);
  border: 2px solid var(--line); box-shadow: 0 2px 0 var(--shadow); white-space: nowrap;
}

.prose :not(pre) > code {
  font-family: var(--font-mono); font-size: 0.88em; padding: 2px 6px;
  background: var(--pink-soft); color: var(--ink); border: 1px solid var(--line); overflow-wrap: anywhere;
}

.code-block { position: relative; margin-top: 1.1em; }
.highlight { background: var(--code-bg); color: var(--code-ink); border: var(--px) solid #000; box-shadow: 6px 6px 0 var(--shadow); }
.highlight pre {
  margin: 0; padding: 40px 18px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 14.5px; line-height: 1.7;
  background-image: linear-gradient(#29366f, #29366f); background-size: 100% 28px; background-repeat: no-repeat;
}
.highlight pre::before {
  content: ""; position: absolute; left: 14px; top: 13px; width: 8px; height: 8px;
  background: #ff004d; box-shadow: 14px 0 0 #ffa300, 28px 0 0 #00e436;
}
.copy-btn {
  position: absolute; top: 4px; right: 4px; z-index: 2; font-size: 12px; padding: 4px 10px;
  background: transparent; color: #c2c3c7; border: 2px solid #c2c3c7; cursor: pointer; line-height: 1;
}
.copy-btn:hover { background: #ffec27; color: #1d2b53; border-color: #ffec27; }
.copy-btn.is-done { background: #00e436; color: #1d2b53; border-color: #00e436; }

/* Pygments token 配色（PICO-8 色票） */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .ch, .highlight .cs { color: #8b93c4; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kc, .highlight .ow { color: #ff77a8; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sh, .highlight .se, .highlight .si, .highlight .sb { color: #ffec27; }
.highlight .nb, .highlight .bp, .highlight .nf, .highlight .fm { color: #29adff; }
.highlight .nv, .highlight .vg, .highlight .na { color: #00e436; }
.highlight .m, .highlight .mi, .highlight .mf { color: #ffa300; }
.highlight .o, .highlight .p { color: #fff1e8; }
.highlight .nt { color: #ff77a8; }
.highlight .gp { color: #00e436; user-select: none; }
.highlight .err { color: inherit; background: none; }

/* 提示框：RPG 對話框 */
.admonition {
  position: relative; padding: 16px 20px; background: var(--surface);
  border: var(--px) solid var(--line); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 6px var(--line), 6px 6px 0 var(--shadow);
}
.admonition > p { margin: 0; }
.admonition > p + p, .admonition > ul, .admonition > ol, .admonition > .code-block { margin-top: 0.6em; }
.admonition-title { display: inline-block; font-size: 12px; padding: 4px 10px; margin-bottom: 8px !important; background: var(--green); color: #fff; }
.admonition.warning .admonition-title { background: #ff004d; }
.admonition.note .admonition-title { background: #29adff; color: #1d2b53; }
.admonition.tip .admonition-title { background: var(--green); color: #fff; }
:root[data-theme="dark"] .admonition.tip .admonition-title { color: #1d2b53; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .admonition.tip .admonition-title { color: #1d2b53; } }

/* 表格 */
.table-wrap { overflow-x: auto; border: var(--px) solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
.prose th { background: var(--ink); color: var(--bg); text-align: left; font-weight: 600; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child, .prose th:first-child { white-space: nowrap; }
@media (max-width: 640px) { .prose table { min-width: 600px; font-size: 14px; } }

/* 文末 */
.post-end { margin: 56px 0 32px; padding: 24px; text-align: center; background: var(--ink); color: var(--bg); box-shadow: 8px 8px 0 var(--pink-bright); }
.post-end-title { font-size: 36px; color: var(--yellow); margin: 0 0 8px; animation: blink 1.4s steps(1) 3; }
.post-end p { margin: 0; }
.post-end a { color: var(--pink-bright); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 64px; }
.post-nav-link { padding: 16px; border: 3px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--shadow); }
.post-nav-link span { display: block; font-size: 12px; color: var(--pink); margin-bottom: 4px; }
.post-nav-link.is-next { grid-column: 2; text-align: right; }

/* ── 404 ── */
.game-over { padding: 96px 0; text-align: center; }
.go-title { font-size: 72px; line-height: 1; color: var(--pink); margin: 0 0 24px; text-shadow: 6px 6px 0 var(--shadow); }
.go-sub { color: var(--ink-soft); margin: 0 0 32px; }
.go-continue { font-size: 36px; margin: 0 0 24px; animation: blink 1s steps(1) infinite; }

/* ── 頁尾 ── */
.site-footer { margin-top: 48px; background: #1d2b53; color: #fff1e8; padding: 28px 0; border-top: var(--px) solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; }
.footer-inner p { margin: 0; }
.footer-title { font-size: 24px; margin-right: auto !important; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #fff1e8; }
.footer-links a:hover { color: #ff77a8; }
.footer-note { width: 100%; opacity: 0.7; font-size: 13px; }

/* ── 動畫 ── */
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes hop { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 響應式 ── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-sprite { width: 180px; }
  .br-wide { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 60px; gap: 8px; }
  .brand-name { display: none; }
  .nav-en { display: none; }
  .nav-link { padding: 6px 10px; }
  .hero { padding-top: 32px; }
  .hero-title { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .px-btn { font-size: 24px; padding: 8px 16px; }
  .stat-bar > div { flex-direction: column; align-items: flex-start; padding: 10px 12px; }
  .stat-bar dd { font-size: 24px; }
  .section-title { font-size: 24px; }
  .section-more { font-size: 12px; }
  .page-title { font-size: 36px; }
  .post-title { font-size: 24px; }
  .slot-grid { grid-template-columns: 1fr; }
  .arcade-teaser { grid-template-columns: 1fr; }
  .coin-slot { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.is-next { grid-column: 1; }
  .go-title { font-size: 48px; }
  .highlight pre { font-size: 13px; }
}

/* ── 文章內流程圖 ── */
.flow-compare { display: grid; gap: 20px; margin-top: 1.4em; }
.flow-card { padding: 16px; background: var(--surface); border: var(--px) solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.flow-card.is-agent { box-shadow: 6px 6px 0 var(--pink-bright); }
.flow-label { font-family: var(--font-pixel); -webkit-font-smoothing: none; font-size: 12px; color: var(--green); margin: 0 0 12px; }
.flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-node { padding: 6px 12px; border: 2px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 600; white-space: nowrap; }
.flow-node.is-brain { background: var(--pink-soft); }
.flow-node.is-hand { background: #00e436; color: #1d2b53; }
.flow-node.is-eye { background: #ffec27; color: #1d2b53; }
.flow-arrow { color: var(--pink); font-size: 12px; }
.flow-loop { margin: 10px 0 0; font-size: 14px; color: var(--pink); font-weight: 600; }
.flow-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.prose blockquote p + p { margin-top: 0.4em; }
