/* HeroByte website. Colours, type and borders follow the canvas design (the app's navy-and-gold JRPG look). */
:root {
  --bg: #0b0d12;
  --bg-2: #0e1120;
  --panel: #12152a;
  --line: #1d2140;
  --line-2: #2a2f55;
  --line-3: #4a4f75;
  --ink: #f0e2c3;
  --ink-2: #e6dabd;
  --ink-3: #d6c9a8;
  --muted: #a89878;
  --gold: #f3c64e;
  --gold-ink: #14100a;
  --blue: #447df7;
  --blue-2: #7fa4ff;
  --shadow: #0b0246;
  --green: #66cc66;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-2); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }

/* ---------- header and footer ---------- */
.site-header { border-bottom: 3px solid var(--line); background: var(--bg-2); }
.nav { padding-block: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--pixel); font-size: 20px; color: var(--gold); letter-spacing: 1px; }
.brand-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 auto; justify-content: flex-end; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links > a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav-links > a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }

.site-footer { border-top: 3px solid var(--line); }
.footer-cols { padding-block: 56px 40px; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--muted); }
.footer-brand .brand-name { font-size: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-legal { padding-bottom: 40px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--blue-2); text-transform: uppercase; }
.eyebrow.gold { color: var(--gold); }
.eyebrow.muted { color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.h1 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(22px, 3.2vw, 40px); line-height: 1.45; }
.h2 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(17px, 2.2vw, 26px); line-height: 1.5; }
.h3 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: 12px; line-height: 1.6; }
.lead { margin: 0; font-size: 19px; color: var(--ink-3); max-width: 36em; }
.sub { margin: 0; color: var(--ink-3); }
.small { font-size: 15px; }
.gold { color: var(--gold); }
.blue { color: var(--blue-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--pixel); font-size: 12px; line-height: 1.4; text-decoration: none;
  padding: 16px 20px; min-height: 48px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow);
  color: var(--ink); background: transparent; cursor: pointer;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { color: var(--gold-ink); }
.btn-blue { background: var(--blue-2); color: var(--bg); }
.btn-blue:hover { color: var(--bg); }
.btn-outline-blue { border-color: var(--blue); }
.btn-outline-gold { border-color: var(--gold); }
.btn-sm { font-size: 11px; padding: 12px 16px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- layout pieces ---------- */
.section { padding-block: 80px 40px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head.split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 320px), 100%), 1fr)); gap: var(--gap, 32px); }
.band { border-bottom: 3px solid var(--line); }
.band-dark { background: var(--bg-2); }

.card { background: var(--panel); border: 3px solid var(--line-2); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card.shadow { box-shadow: 6px 6px 0 var(--shadow); }
.card.gold { border-color: var(--gold); }
.card.blue { border-color: var(--blue); }
.card.grey { border-color: var(--line-3); }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.card p { margin: 0; color: var(--ink-3); }
.card .grow { flex: 1 1 auto; }
.card-title { display: flex; align-items: center; gap: 14px; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--line); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
.hero-inner { padding-block: 88px 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .note { margin: 0; font-size: 16px; color: var(--muted); max-width: 36em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.shot { flex: 1 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot-frame { border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow), 8px 8px 0 4px var(--blue); background: #000; }
.shot-frame img { display: block; width: 100%; }
.shot figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 8px; }

.glance { padding-block: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px 32px; font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.glance div { display: flex; gap: 12px; align-items: center; }
.glance i { width: 10px; height: 10px; flex: none; background: var(--gold); }
.glance div:nth-child(even) i { background: var(--blue); }

.feature { background: var(--panel); border: 3px solid var(--line-2); display: flex; flex-direction: column; }
.feature img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--line-2); }
.feature div { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: 12px; line-height: 1.6; color: var(--gold); }
.feature p { margin: 0; font-size: 16px; color: var(--ink-3); }

.phone-band { background: var(--panel); border: 3px solid var(--blue); box-shadow: 8px 8px 0 var(--shadow); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px); align-items: center; }
.phone-band > div:first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.phone-band p { margin: 0; color: var(--ink-3); }
.phone-shot { flex: 0 1 260px; display: flex; justify-content: center; margin-inline: auto; }
.phone-shot img { display: block; width: 240px; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--gold); padding-top: 24px; }
.steps .num { font-family: var(--pixel); font-size: 28px; color: var(--gold); }
.steps h3 { margin: 0; font-size: 20px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-3); }

.video-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.video-card:hover { color: var(--ink); }
.thumb { position: relative; border: 3px solid var(--line-2); background: #000; }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.7; }
.thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-box { width: 60px; height: 60px; background: var(--gold); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); display: flex; align-items: center; justify-content: center; }
.thumb .badge { position: absolute; right: 8px; bottom: 8px; font-family: var(--mono); font-size: 12px; background: var(--bg); color: var(--ink); padding: 2px 8px; }
.video-card .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.video-card .title { font-size: 18px; font-weight: 600; line-height: 1.4; }
.video-card:hover .title { color: var(--gold); }

.faq { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 48px; }
.faq div { border-top: 2px solid var(--line); padding-block: 22px; display: flex; flex-direction: column; gap: 8px; }
.faq dt { font-weight: 600; font-size: 18px; }
.faq dd { margin: 0; color: var(--ink-3); font-size: 16px; }

.cta-band { border-top: 3px solid var(--line); background: var(--bg-2); }
.cta-band .wrap { padding-block: 88px; display: flex; flex-direction: column; gap: 40px; }
.cta-band .h2 { color: var(--gold); text-align: center; }

/* ---------- help center ---------- */
.page { padding-block: 40px 96px; display: flex; flex-direction: column; gap: 32px; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs span:last-child { color: var(--ink); }
.help-hero { padding-block: 72px 64px; display: flex; flex-direction: column; gap: 24px; }
.search { display: flex; flex-direction: column; gap: 10px; max-width: 760px; padding-top: 8px; }
.search label { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.search-box { display: flex; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); background: var(--panel); }
.search-box input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; padding: 16px 18px; font: inherit; font-size: 18px; color: var(--ink); }
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus-visible { outline-offset: -4px; }
.results { max-width: 760px; display: flex; flex-direction: column; background: var(--panel); border: 3px solid var(--line-2); }
.results[hidden] { display: none; }
.results a { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; border-top: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.results a:first-child { border-top: 0; }
.results a:hover .r-title { color: var(--gold); }
.r-title { font-weight: 600; }
.r-where { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.r-text { font-size: 15px; color: var(--ink-3); }
.results p { margin: 0; padding: 14px 20px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips a { font-size: 15px; color: var(--ink); text-decoration: none; border: 2px solid var(--line-2); padding: 8px 14px; }
.chips a:hover { border-color: var(--gold); color: var(--gold); }

.qs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.qs li { display: flex; gap: 14px; align-items: baseline; font-size: 16px; color: var(--ink-2); }
.qs li span:first-child { font-family: var(--pixel); font-size: 10px; flex: none; width: 18px; }
.fixes { margin: 0; padding: 0; list-style: none; background: var(--panel); border: 3px solid var(--gold); box-shadow: 6px 6px 0 var(--shadow); }
.fixes li { border-top: 2px solid var(--line); padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.fixes li:first-child { border-top: 0; }
.fixes a { font-weight: 600; color: var(--ink); text-decoration: none; }
.fixes a:hover { color: var(--gold); }
.fixes span { font-size: 15px; color: var(--ink-3); }

.path ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.path li { border-top: 2px solid var(--line); }
.path li a { display: flex; gap: 16px; align-items: center; padding: 12px 0; color: var(--ink); text-decoration: none; }
.path li a:hover { color: var(--gold); }
.path .n { font-family: var(--pixel); font-size: 11px; width: 24px; flex: none; }
.path .t { flex: 1 1 auto; }
.path-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

.tabs { display: flex; border: 3px solid var(--line-2); }
.tabs button { font-family: var(--mono); font-size: 14px; min-height: 48px; padding: 0 20px; border: 0; cursor: pointer; background: transparent; color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.topic { background: var(--panel); border: 3px solid var(--line-2); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.topic[hidden] { display: none; }
.topic-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aud { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; border: 2px solid currentColor; padding: 2px 8px; flex: none; }
.aud-everyone { color: var(--ink-3); }
.aud-player { color: var(--blue-2); }
.aud-dm { color: var(--gold); }
.topic ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.topic li { border-top: 2px solid var(--line); }
.topic li a { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; color: var(--ink-2); text-decoration: none; font-size: 16px; }
.topic li a:hover { color: var(--gold); }
.topic .kind { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; letter-spacing: 1px; }

.terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.terms div { border-top: 3px solid var(--gold); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.terms dt { font-family: var(--pixel); font-size: 12px; color: var(--gold); }
.terms dd { margin: 0; color: var(--ink-3); font-size: 16px; }

/* ---------- lessons and articles ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-box { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--ink-3); border: 2px solid var(--line-3); padding: 2px 10px; }
.tag-box.dm { color: var(--gold); border-color: var(--gold); }
.tag-box.player { color: var(--blue-2); border-color: var(--blue-2); }
.tag-box.everyone { color: var(--ink-3); border-color: var(--ink-3); }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.intro h1 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.5; }
.with-aside { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.with-aside > :first-child { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.panel { background: var(--panel); border: 3px solid var(--line-2); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel.gold { border-color: var(--gold); }
.panel.blue { border-color: var(--blue-2); }
.panel-title { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: 12px; line-height: 1.6; }
.panel p { margin: 0; font-size: 15px; color: var(--ink-3); }
.toc { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; font-size: 15px; }
.toc li { border-top: 2px solid var(--line); }
.toc a { display: block; padding: 8px 0; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--gold); }

.player { border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); }
.screen { position: relative; background: #000; }
.chapters { background: var(--panel); border-top: 3px solid var(--line-2); padding: 18px 16px 14px; }
.chapters h2 { margin: 0 0 10px; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.chapters ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 6px; }
.chapters button { width: 100%; min-height: 48px; text-align: left; display: flex; gap: 12px; align-items: center; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 15px; background: transparent; color: var(--ink-2); border: 2px solid var(--line-2); }
.chapters button span:first-child { font-family: var(--pixel); font-size: 10px; flex: none; }
.chapters button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.screen video, .screen iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.chapters button .at { margin-left: auto; flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chapters button[aria-current="true"] .at { color: inherit; }
.step-head .seek { margin-left: auto; flex: none; min-height: 44px; padding: 6px 12px; cursor: pointer; font-family: var(--mono); font-size: 13px; background: transparent; color: var(--ink-2); border: 2px solid var(--line-2); }
.step-head .seek:hover { color: var(--gold); border-color: var(--gold); }
.lesson-group { margin: 32px 0 16px; }
.lesson-group:first-of-type { margin-top: 0; }
.path .kind { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }
.path a[aria-current="page"] { font-weight: 600; color: var(--gold); }
.path.blue a[aria-current="page"] { color: var(--blue-2); }
.video-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 12px 8%; border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--ink); }
.video-start[aria-busy] { cursor: progress; }
.video-start.cannot { cursor: default; }
.video-start.cannot .play-box { display: none; }
.video-start[hidden] { display: none; }
.video-start .play-box { width: clamp(44px, 9vw, 72px); height: clamp(44px, 9vw, 72px); }
.video-start:hover .play-box, .video-start:focus-visible .play-box { background: var(--ink); }
.video-status:empty { display: none; }
.video-status { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); max-width: calc(100% - 24px); text-align: center; pointer-events: none; font-family: var(--pixel); font-size: clamp(9px, 1.3vw, 12px); line-height: 1.6; background: var(--bg); color: var(--gold); border: 2px solid var(--gold); padding: 8px 12px; }
.chapters-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; }
.chapters-head h2 { margin: 0; }
.chapters-head a, .video-alt a { font-family: var(--mono); font-size: 13px; }
.video-alt { margin: 18px 0 0; }

.written-head { display: flex; flex-direction: column; gap: 8px; }
.written-head h2 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: 16px; line-height: 1.6; }
.written-head p { margin: 0; color: var(--muted); font-size: 15px; }
.step { display: flex; flex-direction: column; gap: 16px; border-top: 3px solid var(--line); padding-top: 28px; }
.step-head { display: flex; gap: 18px; align-items: baseline; }
.step-head .num { font-family: var(--pixel); font-size: 20px; flex: none; }
.step-head h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.35; }
.step p { margin: 0; color: var(--ink-3); }
.step .phone { color: var(--muted); font-size: 15px; }
.step .note { border-left: 3px solid var(--gold); padding-left: 12px; font-size: 15px; }
.step .note b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 1px; padding-right: 8px; color: var(--gold); }
.step .phone b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 1px; padding-right: 8px; }
.step figure, .prose figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.step figure img, .prose figure img { display: block; width: 100%; border: 3px solid var(--line-2); }
.step figcaption, .prose figcaption { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.callout { background: var(--panel); border: 3px solid var(--line-2); padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.callout > b { font-family: var(--pixel); font-weight: 400; font-size: 11px; line-height: 1.6; }
.callout p { margin: 0; color: var(--ink-2); }
.callout ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.callout.green { border-color: var(--green); } .callout.green > b { color: var(--green); }
.callout.gold { border-color: var(--gold); } .callout.gold > b { color: var(--gold); }
.callout.blue { border-color: var(--blue); } .callout.blue > b { color: var(--blue-2); }

.keys { border-collapse: collapse; font-size: 14px; width: 100%; }
.keys thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); text-align: left; font-weight: 500; padding: 0 8px 8px 0; }
.keys tbody tr { border-top: 2px solid var(--line); }
.keys tbody th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 10px 8px 10px 0; }
.keys td { padding: 10px 8px 10px 0; }
kbd { font-family: var(--mono); font-size: 12px; border: 2px solid var(--line-3); border-bottom-width: 4px; padding: 1px 6px; white-space: nowrap; }

.lesson-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.lesson-nav a { text-decoration: none; color: var(--ink); border: 3px solid var(--line-2); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.lesson-nav a.next { text-align: right; box-shadow: 5px 5px 0 var(--shadow); }
.lesson-nav a.next.dm { border-color: var(--gold); }
.lesson-nav a.next.player { border-color: var(--blue-2); }
.lesson-nav span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.lesson-nav span:last-child { font-weight: 600; }
.lesson-nav a:hover span:last-child { color: var(--gold); }

.article-section { display: flex; flex-direction: column; gap: 18px; border-top: 3px solid var(--line); padding-top: 32px; }
.article-section:first-child { border-top: 0; padding-top: 0; }
.article-section h2 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: 16px; line-height: 1.6; }
.article-section p { margin: 0; color: var(--ink-3); }
.article-section ul { margin: 0; padding-left: 22px; color: var(--ink-3); display: flex; flex-direction: column; gap: 10px; }
.article-section strong { color: var(--ink); }
.qa { margin: 0; display: flex; flex-direction: column; background: var(--panel); border: 3px solid var(--gold); box-shadow: 6px 6px 0 var(--shadow); }
.qa div { border-top: 2px solid var(--line); padding: 18px 24px; display: flex; flex-direction: column; gap: 6px; }
.qa div:first-child { border-top: 0; }
.qa dt { font-weight: 600; }
.qa dd { margin: 0; font-size: 16px; color: var(--ink-3); }

/* ---------- rendered user guides ---------- */
.prose { display: block; max-width: 820px; }
.prose > * + * { margin-top: 18px; }
.prose h1 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.5; }
.prose h2 { margin-top: 56px; padding-top: 28px; border-top: 3px solid var(--line); font-family: var(--pixel); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--gold); }
.prose h3 { margin-top: 36px; font-size: 21px; font-weight: 600; line-height: 1.35; }
.prose h4 { margin-top: 28px; font-size: 18px; font-weight: 600; }
.prose p, .prose li { color: var(--ink-3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--panel); border: 1px solid var(--line-2); padding: 1px 5px; }
.prose pre { background: var(--panel); border: 3px solid var(--line-2); padding: 16px; overflow-x: auto; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose blockquote { margin-inline: 0; background: var(--panel); border: 3px solid var(--blue); padding: 4px 22px; }
.prose hr { border: 0; border-top: 3px dashed var(--line-2); margin-block: 40px; }
.prose img { border: 3px solid var(--line-2); }
.table-box { overflow-x: auto; border: 3px solid var(--line-2); }
.table-box table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-box th, .table-box td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 2px solid var(--line); color: var(--ink-3); }
.table-box th { background: var(--panel); color: var(--ink); font-weight: 600; border-top: 0; }
.table-box td img { min-width: 220px; }
.prose :target { scroll-margin-top: 24px; }
.prose h2:target, .prose h3:target, .prose h4:target { color: var(--gold); text-decoration: underline 3px; text-underline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}
