/* TabSpawn — site styles. Light "paper + spawn green" by default, dark when the OS asks. */

@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("/assets/fonts/unbounded-500.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/assets/fonts/unbounded-700.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("/assets/fonts/unbounded-800.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("/assets/fonts/sora-400.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 500; font-display: swap; src: url("/assets/fonts/sora-500.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/assets/fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("/assets/fonts/sora-700.woff2") format("woff2"); }

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe7dc;
  --card: #ffffff;
  --ink: #111318;
  --ink-2: #3b3f4a;
  --muted: #6b7080;
  --line: rgba(17, 19, 24, 0.1);
  --spawn: #31e981;
  --spawn-deep: #12a35a;
  --spawn-soft: rgba(49, 233, 129, 0.16);
  --ink-on-spawn: #0b1a12;
  --magenta: #ff3d8a;
  --blue: #3b6cff;
  --gold: #ffc53d;
  --hero: #0d0f16;
  --hero-2: #141826;
  --on-hero: #f4f1ea;
  --on-hero-2: rgba(244, 241, 234, 0.78);
  --btn-sm-bg: #111318;
  --btn-sm-fg: #f4f1ea;
  --wordmark-accent: #12a35a;
  --cat-green-a: #dbffe9; --cat-green-b: #a9f4c8;
  --cat-magenta-a: #ffe2ed; --cat-magenta-b: #ffbcd5;
  --cat-blue-a: #e1e8ff; --cat-blue-b: #bccbff;
  --cat-gold-a: #fff2cd; --cat-gold-b: #ffd98f;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(17, 19, 24, 0.1);
  --shadow-lg: 0 24px 60px rgba(17, 19, 24, 0.18);
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1117;
    --paper-2: #151925;
    --card: #181c28;
    --ink: #f1efe8;
    --ink-2: #c9c8c0;
    --muted: #8e93a3;
    --line: rgba(241, 239, 232, 0.1);
    --btn-sm-bg: #31e981;
    --btn-sm-fg: #0b1a12;
    --wordmark-accent: #31e981;
    --cat-green-a: #10381f; --cat-green-b: #1a5a33;
    --cat-magenta-a: #3a1224; --cat-magenta-b: #5c1d3a;
    --cat-blue-a: #131c3d; --cat-blue-b: #1f3070;
    --cat-gold-a: #3b2c0a; --cat-gold-b: #5e4612;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
kbd { font-family: var(--font-body); font-weight: 600; font-size: 0.85em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; background: var(--paper-2); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--spawn-deep); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--spawn); color: var(--ink-on-spawn); padding: 10px 14px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 820px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; }
@media (min-width: 720px) { .head-row { padding: 14px 24px; flex-wrap: nowrap; gap: 22px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.wordmark b { font-weight: 800; color: var(--wordmark-accent); }
.nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
@media (min-width: 720px) { .nav { order: 0; width: auto; margin-left: 6px; } }
.head-search { margin-left: auto; display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; min-width: 0; flex: 1 1 140px; max-width: 280px; transition: box-shadow 0.2s, border-color 0.2s; }
.head-search:focus-within { border-color: var(--spawn-deep); box-shadow: 0 0 0 3px var(--spawn-soft); }
.head-search input { border: 0; background: transparent; outline: 0; width: 100%; min-width: 0; font-size: 0.92rem; }
.head-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.head-search button { border: 0; background: var(--paper-2); width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.head-search button svg { width: 16px; height: 16px; }

/* ---------- buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; line-height: 1; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: var(--spawn); color: var(--ink-on-spawn); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(49, 233, 129, 0.35); }
.btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.btn-ghost:hover { border-color: currentColor; transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; background: var(--btn-sm-bg); color: var(--btn-sm-fg); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-sm:hover { transform: translateY(-1px); }

.chip { display: inline-block; background: var(--paper-2); color: var(--ink-2); font-size: 0.74rem; font-weight: 600; border-radius: 999px; padding: 4px 10px; line-height: 1.4; }
.chip-link { background: var(--spawn-soft); color: var(--spawn-deep); }
@media (prefers-color-scheme: dark) { .chip-link { color: var(--spawn); } }
.chip-link:hover { background: var(--spawn); color: var(--ink-on-spawn); }

.badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 6px 10px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.badge-instant { background: var(--spawn); color: var(--ink-on-spawn); }
.badge-byo { background: var(--gold); color: #2a1e00; }
.badge-invite { background: var(--magenta); color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--spawn-deep); }
.eyebrow svg { width: 16px; height: 16px; fill: currentColor; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--spawn); } }
.lede { font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.meta { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.small { font-size: 0.85rem; color: var(--muted); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(900px 520px at 88% 8%, rgba(49, 233, 129, 0.28), transparent 60%), radial-gradient(600px 400px at 8% 100%, rgba(59, 108, 255, 0.22), transparent 60%), var(--hero); color: var(--on-hero); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px); background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 90%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 90%); }
.hero-grid { position: relative; display: grid; gap: 36px; padding: 52px 16px 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 84px 24px 88px; } }
.hero .eyebrow { color: var(--spawn); }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.02; letter-spacing: -0.025em; margin: 16px 0 18px; }
.hl { color: var(--spawn); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.16em; background: var(--spawn); opacity: 0.35; border-radius: 4px; z-index: -1; }
.hero .lede { color: var(--on-hero-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--on-hero-2); font-size: 0.9rem; font-weight: 500; }
.hero-stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--on-hero); letter-spacing: -0.02em; }
.hero-feature { position: relative; display: block; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.4); transform: rotate(-1.5deg); transition: transform 0.35s cubic-bezier(.2,.8,.2,1); background: var(--hero-2); }
.hero-feature:hover { transform: rotate(0deg) scale(1.015); }
.hero-feature img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--spawn); color: var(--ink-on-spawn); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.feature-tag svg { width: 13px; height: 13px; fill: currentColor; }
.feature-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; background: linear-gradient(180deg, transparent, rgba(13, 15, 22, 0.92)); color: var(--on-hero); display: flex; flex-direction: column; gap: 2px; }
.feature-cap b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.feature-cap span { color: var(--on-hero-2); font-size: 0.92rem; }
@media (max-width: 899px) { .hero-feature { transform: none; } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 76px 0; } }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--hero); color: var(--on-hero); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); max-width: 56ch; }
.section-dark .section-head p { color: var(--on-hero-2); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.fchip { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s; }
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip.is-on { background: var(--btn-sm-bg); color: var(--btn-sm-fg); border-color: transparent; }
.empty { text-align: center; color: var(--muted); padding: 32px 0 0; }
.empty a { color: var(--spawn-deep); font-weight: 600; }

/* ---------- game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hero-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-cover img { transform: scale(1.045); }
.card-play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 999px; background: var(--spawn); color: var(--ink-on-spawn); display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.card-play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.card:hover .card-play, .card-cover:focus-visible .card-play { opacity: 1; transform: translateY(0); }
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.04rem; }
.card-title a:hover { color: var(--spawn-deep); }
@media (prefers-color-scheme: dark) { .card-title a:hover { color: var(--spawn); } }
.card-short { color: var(--muted); font-size: 0.93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 22px 30px; border-radius: var(--radius); color: var(--ink); min-height: 168px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; border: 1px solid var(--line); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-green { background: linear-gradient(135deg, var(--cat-green-a), var(--cat-green-b)); }
.cat-magenta { background: linear-gradient(135deg, var(--cat-magenta-a), var(--cat-magenta-b)); }
.cat-blue { background: linear-gradient(135deg, var(--cat-blue-a), var(--cat-blue-b)); }
.cat-gold { background: linear-gradient(135deg, var(--cat-gold-a), var(--cat-gold-b)); }
.cat-count { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.cat-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.cat-blurb { font-size: 0.92rem; color: var(--ink-2); max-width: 26ch; }
.cat-arrow { position: absolute; right: 18px; bottom: 18px; width: 38px; height: 38px; border-radius: 999px; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: transform 0.25s; }
.cat-arrow svg { width: 18px; height: 18px; }
.cat-card:hover .cat-arrow { transform: translateX(4px); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.why { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); }
.why-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--spawn-soft); color: var(--spawn); margin-bottom: 14px; }
.why-ic svg { width: 22px; height: 22px; fill: currentColor; }
.why h3 { font-size: 1rem; margin-bottom: 8px; }
.why p { color: var(--on-hero-2); font-size: 0.93rem; }

/* ---------- faq ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 600; font-size: 1.02rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); transition: transform 0.25s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; }
.faq-plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq details[open] .faq-plus { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--ink-2); padding: 0 0 20px; line-height: 1.65; max-width: 70ch; }

/* ---------- inner pages ---------- */
.page-head { padding: 40px 0 28px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-head { padding: 56px 0 40px; } }
.page-head h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.025em; margin: 10px 0 14px; }
.page-head-green { background: linear-gradient(135deg, var(--cat-green-a), var(--cat-green-b)); }
.page-head-magenta { background: linear-gradient(135deg, var(--cat-magenta-a), var(--cat-magenta-b)); }
.page-head-blue { background: linear-gradient(135deg, var(--cat-blue-a), var(--cat-blue-b)); }
.page-head-gold { background: linear-gradient(135deg, var(--cat-gold-a), var(--cat-gold-b)); }
.page-head-game { background: radial-gradient(800px 460px at 80% 0%, rgba(49, 233, 129, 0.22), transparent 60%), var(--hero); color: var(--on-hero); border-bottom: 0; }
.page-head-game .lede { color: var(--on-hero-2); }
.page-head-game .eyebrow { color: var(--spawn); }
.page-head-game .crumbs, .page-head-game .crumbs a { color: var(--on-hero-2); }
.page-head-game .chip { background: rgba(255, 255, 255, 0.1); color: var(--on-hero); }
.page-head-game .chip-link { background: var(--spawn-soft); color: var(--spawn); }
.page-head-game .chip-link:hover { background: var(--spawn); color: var(--ink-on-spawn); }

.crumbs ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.game-hero { display: grid; gap: 28px; margin-top: 18px; }
@media (min-width: 900px) { .game-hero { grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; } }
.game-cover { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.12); background: var(--hero-2); }
.game-cover img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.game-intro h1 { margin: 12px 0 14px; }
.game-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 26px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 20px; margin: 0; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.specs dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-hero-2); }
.specs dd { margin: 3px 0 0; font-weight: 600; font-size: 0.93rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.game-cols { display: grid; gap: 40px; }
@media (min-width: 960px) { .game-cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .side { position: sticky; top: 92px; } }
.prose h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin: 34px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.72; margin-bottom: 14px; max-width: 70ch; }
.prose a { color: var(--spawn-deep); font-weight: 600; text-decoration: underline; text-decoration-color: var(--spawn-soft); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .prose a { color: var(--spawn); } }
.prose ul { padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.prose ul li { margin-bottom: 8px; }
.prose ul.plain { list-style: none; padding: 0; }
.prose ul.plain li { padding: 10px 0; border-top: 1px solid var(--line); }
.prose ul.plain li a { text-decoration: none; }
.prose ul.plain svg { width: 12px; height: 12px; display: inline; vertical-align: middle; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 8px; }
.steps li { position: relative; padding: 0 0 14px 46px; color: var(--ink-2); line-height: 1.65; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--spawn); color: var(--ink-on-spawn); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.controls { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.controls th { text-align: left; padding: 12px 14px 12px 0; vertical-align: top; width: 38%; font-weight: 600; border-top: 1px solid var(--line); }
.controls td { padding: 12px 0; color: var(--ink-2); border-top: 1px solid var(--line); }
.controls tr:last-child th, .controls tr:last-child td { border-bottom: 1px solid var(--line); }
.tips { list-style: none; padding: 0; }
.tips li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-2); line-height: 1.65; }
.tips li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 3px; background: var(--spawn); transform: rotate(45deg); }

.note { border-radius: var(--radius); padding: 22px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--spawn); }
.note-byo { border-left-color: var(--gold); }
.note-invite { border-left-color: var(--magenta); }
.note h3 { font-size: 0.98rem; margin-bottom: 8px; }
.note p { color: var(--ink-2); font-size: 0.93rem; line-height: 1.6; margin-bottom: 16px; }
.side-block { margin-top: 26px; }
.side-block h3 { font-size: 0.98rem; margin-bottom: 12px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-list a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); transition: transform 0.2s, box-shadow 0.2s; }
.mini-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-cover { flex: none; width: 88px; border-radius: 10px; overflow: hidden; background: var(--hero-2); }
.mini-cover img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.mini-list b { display: block; font-size: 0.92rem; }
.mini-list small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- footer ---------- */
.site-foot { background: var(--hero); color: var(--on-hero); margin-top: 20px; padding: 56px 0 24px; }
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr; } }
.foot-brand p { margin-top: 14px; color: var(--on-hero-2); max-width: 46ch; font-size: 0.95rem; }
.foot-brand a:not(.brand) { color: var(--spawn); font-weight: 600; }
.site-foot .wordmark b { color: var(--spawn); }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-links h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--spawn); margin-bottom: 12px; }
.foot-links a { display: block; color: var(--on-hero-2); padding: 4px 0; font-size: 0.93rem; }
.foot-links a:hover { color: var(--on-hero); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; color: var(--on-hero-2); }

/* ---------- guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.guide-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hero-2); }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.guide-card:hover .guide-cover img { transform: scale(1.045); }
.guide-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.guide-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--spawn-deep); }
@media (prefers-color-scheme: dark) { .guide-kicker { color: var(--spawn); } }
.guide-body b { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.guide-sum { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.guide-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow); }
.guide-hero img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.byline { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.toc { background: var(--paper-2); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 26px; font-size: 0.93rem; }
.toc b { display: block; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose ol:not(.steps) { padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.read-next { list-style: none; margin: 0; padding: 0; }
.read-next li { border-top: 1px solid var(--line); }
.read-next li:last-child { border-bottom: 1px solid var(--line); }
.read-next a { display: block; padding: 10px 0; font-weight: 600; font-size: 0.92rem; line-height: 1.4; }
.read-next a:hover { color: var(--spawn-deep); }
@media (prefers-color-scheme: dark) { .read-next a:hover { color: var(--spawn); } }
.foot-links { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

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