:root {
  --ink: #e7e2d3;
  --muted: #a9ad9e;
  --faint: #747c6f;
  --bg: #0c110d;
  --bg-2: #111812;
  --panel: rgba(23, 31, 24, .88);
  --panel-2: rgba(29, 39, 30, .92);
  --line: rgba(222, 211, 170, .13);
  --line-strong: rgba(222, 211, 170, .25);
  --moss: #8fa56f;
  --moss-bright: #b5c98f;
  --gold: #c7a66b;
  --ember: #cb7b55;
  --red: #c56e66;
  --blue: #83a7ad;
  --purple: #9b8ab8;
  --shadow: 0 18px 60px rgba(0, 0, 0, .28);
  --radius: 18px;
  --radius-small: 11px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: #0c110d;
  font: 15px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code { padding: .08rem .35rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.035); font-size: .9em; }
::selection { background: rgba(181, 201, 143, .25); }

.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: 92px 0; position: relative; }
.ambient { display: none; }
.ambient-one { width: 440px; height: 440px; background: #5e7a4f; right: -180px; top: 160px; }
.ambient-two { width: 360px; height: 360px; background: #7b633e; left: -160px; bottom: 10%; }

.skip-link { position: fixed; left: 14px; top: -60px; z-index: 200; background: var(--ink); color: #111; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 14px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header {
  width: min(1260px, calc(100% - 28px));
  margin: 14px auto 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101611;
  position: relative;
  z-index: 50;
  box-shadow: none;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1.1; }
.brand strong { font: 600 17px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 5px; text-transform: uppercase; letter-spacing: .12em; }
.brand-mark { width: 31px; height: 31px; position: relative; display: inline-block; flex: 0 0 auto; transform: rotate(-13deg); }
.brand-mark span { position: absolute; border-radius: 50%; background: var(--moss-bright); box-shadow: 0 0 12px rgba(181,201,143,.2); }
.brand-mark span:nth-child(1) { width: 8px; height: 8px; left: 3px; top: 13px; }
.brand-mark span:nth-child(2) { width: 10px; height: 10px; left: 11px; top: 10px; }
.brand-mark span:nth-child(3) { width: 12px; height: 12px; left: 20px; top: 7px; }
.brand-mark span:nth-child(4) { width: 3px; height: 13px; left: 15px; top: 19px; border-radius: 4px; transform: rotate(35deg); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: #c8cbbf; text-decoration: none; font-size: 13px; padding: 9px 11px; border-radius: 9px; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); background: rgba(255,255,255,.055); outline: none; }
.nav-toggle { display: none; border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 9px; padding: 8px 11px; }

.hero { min-height: 720px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 78px; align-items: center; padding: 95px 0 70px; }
.eyebrow { margin: 0 0 12px; color: var(--moss-bright); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero h1, .doc-hero h1 { margin: 0; font: 600 clamp(42px, 5.3vw, 76px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.hero h1 span { color: #c5b181; }
.hero-lede { max-width: 710px; color: #b9bdaf; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; margin: 25px 0 0; }
.hero-actions, .download-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: #b8c991; color: #11170f; border-color: #b8c991; }
.button-primary:hover { background: #cad8aa; }
.button-secondary { background: rgba(255,255,255,.035); color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { background: rgba(255,255,255,.065); }
.button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.button.full { width: 100%; }
.release-line { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.release-line strong { color: var(--ink); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9fbd79; box-shadow: 0 0 0 5px rgba(159,189,121,.1); }
.launch-chip { display: inline-flex; gap: 10px; align-items: center; margin-top: 16px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; background: rgba(255,255,255,.025); }
.launch-chip strong { color: #d8cba9; font-weight: 600; }

.trail-card { border: 1px solid var(--line-strong); border-radius: 24px; padding: 18px; background: linear-gradient(145deg, rgba(29,38,28,.92), rgba(16,22,17,.94)); box-shadow: none; transform: none; }
.trail-card-top { display: flex; justify-content: space-between; color: #7f8979; font-size: 9px; letter-spacing: .14em; padding: 2px 5px 12px; }
.map-grid { min-height: 430px; border-radius: 16px; position: relative; overflow: hidden; background-color: #121a13; background-image: linear-gradient(rgba(191,205,170,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(191,205,170,.045) 1px, transparent 1px); background-size: 32px 32px; }
.map-grid::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 75% 22%, rgba(193,164,107,.12), transparent 22%), radial-gradient(circle at 23% 70%, rgba(126,153,99,.12), transparent 25%); pointer-events:none; }
.map-grid svg { position:absolute; inset: 38px 20px 20px; width: calc(100% - 40px); height: calc(100% - 60px); overflow: visible; }
.route-shadow { fill: none; stroke: rgba(0,0,0,.45); stroke-width: 10; stroke-linecap: round; }
.route { fill: none; stroke: #c3ad75; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 2 10; }
.route-points circle { fill: #a9c27f; stroke: #162115; stroke-width: 4; }
.map-note { position:absolute; z-index:2; display:grid; gap:2px; padding:8px 10px; border-radius:8px; border:1px solid rgba(231,226,211,.12); background:rgba(9,13,10,.82); box-shadow:0 7px 20px rgba(0,0,0,.2); font-size:10px; }
.map-note span { color: var(--muted); }
.note-one { left: 17%; bottom: 24%; }
.note-two { left: 49%; top: 31%; }
.note-three { right: 8%; top: 16%; }
.trail-card > p { margin: 13px 5px 3px; color: var(--muted); font: 500 13px Georgia, "Times New Roman", serif; text-align: center; }

.proof-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.proof-grid { display:grid; grid-template-columns: repeat(4,1fr); }
.proof-grid > div { padding: 25px 24px; border-right: 1px solid var(--line); }
.proof-grid > div:first-child { padding-left: 0; }
.proof-grid > div:last-child { border-right:0; }
.proof-grid strong, .proof-grid span { display:block; }
.proof-grid strong { font: 600 15px Georgia, "Times New Roman", serif; }
.proof-grid span { color: var(--muted); font-size: 12px; margin-top: 5px; }

.section-heading { max-width: 820px; margin-bottom: 38px; }
.section-heading.compact { max-width: 670px; }
.section-heading h2, .split-heading h2, .download-layout h2, .current-build-card h2, .upload-card h2, .compliance-layout h2 { margin:0; font:600 clamp(29px,3vw,44px)/1.15 Cinzel,serif; letter-spacing:-.02em; }
.section-heading > p:last-child, .split-heading > p, .section-copy { color:var(--muted); font-size:16px; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.feature-card, .issue-card { min-height: 218px; border:1px solid var(--line); border-radius:var(--radius); background:#121913; padding:24px; transition:border-color .18s ease, transform .18s ease; }
.feature-card:hover, .issue-card:hover { border-color:var(--line-strong); transform:translateY(-2px); }
.feature-card > span { display:inline-flex; color:var(--gold); font-size:10px; letter-spacing:.12em; }
.feature-card h3, .issue-card h3 { margin:35px 0 8px; font:600 19px Cinzel,serif; }
.feature-card p, .issue-card p { color:var(--muted); margin:0; font-size:13px; }

.current-build-section { padding-top: 15px; }
.current-build-card { border:1px solid rgba(199,166,107,.25); border-radius:var(--radius); background:#151a13; padding:32px; display:grid; grid-template-columns:1fr auto; gap:30px; align-items:center; }
.current-build-card h2 { font-size:30px; }
.current-build-card p:not(.eyebrow) { color:var(--muted); margin-bottom:0; max-width:800px; }
.build-actions { display:grid; gap:12px; justify-items:start; min-width:190px; }
.text-link { color:#d3c293; text-decoration:none; font-weight:600; font-size:13px; }
.text-link:hover { text-decoration:underline; }

.download-section, .roadmap-section, .compliance-section { background:rgba(255,255,255,.018); border-block:1px solid var(--line); }
.download-layout, .compliance-layout { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:64px; }
.panel { border:1px solid var(--line); border-radius:var(--radius); background:#171f18; box-shadow:none; }
.panel-title { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.panel-title h3, .board-toolbar h3 { margin:2px 0 0; font:600 21px Cinzel,serif; }
.tiny-label { color:var(--moss); font-size:9px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.mode-pill { border:1px solid var(--line-strong); color:#c7c9bd; background:rgba(255,255,255,.035); border-radius:999px; padding:5px 9px; font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.install-steps { padding:25px; }
.number-steps { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:20px; }
.number-steps li { display:grid; grid-template-columns:35px 1fr; gap:14px; align-items:start; }
.number-steps > li > span { display:flex; width:30px; height:30px; align-items:center; justify-content:center; border:1px solid var(--line-strong); border-radius:50%; color:var(--gold); font:600 12px Cinzel,serif; }
.number-steps strong { display:block; }
.number-steps p { color:var(--muted); font-size:12px; margin:3px 0 0; }
.fine-print, .form-help { color:var(--faint); font-size:11px; }

.story-preview { display:grid; grid-template-columns:300px 1fr; gap:14px; }
.character-card, .story-feed { border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.02); padding:28px; }
.character-emblem { width:68px; height:68px; border-radius:50%; margin:26px 0 18px; display:grid; place-items:center; border:1px solid var(--line-strong); background:radial-gradient(circle,#2c3b2a,#182119); color:#c6b782; font:600 19px Cinzel,serif; }
.character-card h3 { margin:0; font:600 23px Cinzel,serif; }
.character-card > p { color:var(--muted); margin-top:4px; }
.character-card dl { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:25px 0 18px; }
.character-card dl div { padding:10px; background:rgba(255,255,255,.025); border-radius:9px; }
.character-card dt { color:var(--faint); font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.character-card dd { margin:1px 0 0; font:600 18px Cinzel,serif; }
.story-feed { padding:15px 28px; }
.story-feed article { display:grid; grid-template-columns:62px 14px 1fr; gap:13px; padding:21px 0; position:relative; }
.story-feed article:not(:last-child)::after { content:""; width:1px; background:var(--line-strong); position:absolute; left:82px; top:38px; bottom:-22px; }
.story-feed time { color:var(--faint); font-size:10px; padding-top:2px; }
.story-dot { width:9px; height:9px; border-radius:50%; background:var(--moss-bright); box-shadow:0 0 0 4px #192118; margin-top:5px; z-index:1; }
.story-dot.death { background:var(--red); }
.story-feed span { color:var(--moss); font-size:9px; text-transform:uppercase; letter-spacing:.1em; }
.story-feed h3 { font:600 16px Cinzel,serif; margin:3px 0 3px; }
.story-feed p { color:var(--muted); margin:0; font-size:12px; }

.campfire-section { background:#101611; border-block:1px solid var(--line); }
.split-heading { display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:end; margin-bottom:25px; }
.split-heading > p { margin:0; }
.campfire-alert { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 16px; margin-bottom:16px; border:1px solid rgba(203,123,85,.2); background:rgba(203,123,85,.05); border-radius:11px; color:#c7b8a9; font-size:11px; }
.campfire-alert a { color:#dbc196; text-decoration:none; white-space:nowrap; }
.campfire-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; border:1px solid var(--line); border-radius:13px; overflow:hidden; background:var(--line); margin-bottom:14px; }
.campfire-stats > div { background:#111712; padding:15px 17px; }
.campfire-stats strong { display:block; font:600 22px Cinzel,serif; }
.campfire-stats span { color:var(--faint); font-size:9px; text-transform:uppercase; letter-spacing:.09em; }
.campfire-layout { display:grid; grid-template-columns:390px 1fr; gap:14px; align-items:start; }
.composer, .board { padding:23px; }
.composer { position:sticky; top:96px; }
form { display:grid; gap:13px; margin-top:20px; }
label { color:#c9cbbb; font-size:11px; display:grid; gap:6px; }
input, textarea, select { width:100%; color:var(--ink); background:#0e140f; border:1px solid var(--line-strong); border-radius:9px; padding:10px 11px; outline:none; }
input:focus, textarea:focus, select:focus { border-color:rgba(181,201,143,.55); box-shadow:0 0 0 3px rgba(181,201,143,.08); }
textarea { resize:vertical; min-height:100px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.checkbox-row { display:grid; grid-template-columns:18px 1fr; gap:10px; align-items:start; color:var(--muted); line-height:1.45; }
.checkbox-row input { width:15px; height:15px; margin-top:3px; accent-color:#a9bd7e; }
.report-helper { border:1px solid var(--line); border-radius:9px; padding:10px 12px; }
.report-helper summary { cursor:pointer; color:#c8cabd; font-size:11px; }
.report-helper ul { color:var(--muted); padding-left:17px; font-size:11px; }
.text-button { appearance:none; border:0; background:none; color:#d0bc89; padding:0; font:600 11px Inter,sans-serif; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.board-toolbar { display:flex; justify-content:space-between; align-items:end; gap:20px; }
.search-field { width:min(290px,44%); }
.search-field input { padding:9px 11px; }
.filter-row { display:flex; gap:10px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:18px 0 14px; }
.filters { display:flex; flex-wrap:wrap; gap:5px; }
.filter { border:1px solid transparent; background:transparent; color:var(--muted); border-radius:999px; padding:6px 9px; font-size:10px; cursor:pointer; }
.filter:hover, .filter.active { color:var(--ink); border-color:var(--line); background:rgba(255,255,255,.035); }
#post-sort { width:auto; min-width:150px; padding:7px 9px; font-size:10px; }
.post-list { display:grid; }
.post { padding:20px 4px; border-bottom:1px solid var(--line); cursor:pointer; outline:none; }
.post:hover h4, .post:focus-visible h4 { color:#d9c797; }
.post-meta, .post-stats { display:flex; align-items:center; gap:7px; flex-wrap:wrap; color:var(--faint); font-size:9px; }
.post h4 { font:600 16px Cinzel,serif; margin:7px 0 5px; transition:color .15s ease; }
.post > p { color:var(--muted); margin:0; font-size:12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.post-stats { margin-top:10px; justify-content:space-between; }
.tag { display:inline-flex; border-radius:999px; padding:3px 7px; border:1px solid var(--line); text-transform:uppercase; font-weight:700; letter-spacing:.07em; font-size:8px; }
.tag-bug { color:#d79185; border-color:rgba(197,110,102,.25); background:rgba(197,110,102,.06); }
.tag-feedback { color:#93b6bb; border-color:rgba(131,167,173,.25); background:rgba(131,167,173,.06); }
.tag-idea { color:#b2a1cc; border-color:rgba(155,138,184,.25); background:rgba(155,138,184,.06); }
.tag-question { color:#cfb879; border-color:rgba(199,166,107,.25); background:rgba(199,166,107,.06); }
.severity-high { color:#dfa37e; }
.severity-game-breaking { color:#e18178; font-weight:700; }
.empty-state { color:var(--muted); text-align:center; padding:55px 20px; }
.board-footer { display:flex; justify-content:space-between; gap:12px; padding-top:14px; color:var(--faint); font-size:10px; }
.board-footer a { color:var(--muted); text-decoration:none; }

.issue-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.issue-card { min-height:190px; }
.issue-card > div { display:flex; justify-content:space-between; gap:10px; }
.issue-status { font-size:8px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; border-radius:999px; padding:4px 7px; border:1px solid var(--line); }
.issue-status.investigating { color:#d8ae79; background:rgba(199,166,107,.05); }
.issue-status.watching { color:#8fb8bd; background:rgba(131,167,173,.05); }
.issue-status.planned { color:#b5a5ca; background:rgba(155,138,184,.05); }
.issue-status.fixed { color:#a8c685; background:rgba(143,165,111,.06); }
.issue-id { color:var(--faint); font-size:9px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-link { margin:20px 0 0; }

.roadmap-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; }
.roadmap-list { display:grid; gap:11px; }
.roadmap-item { display:grid; grid-template-columns:65px 1fr; gap:14px; padding:19px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.018); }
.roadmap-item > span { color:var(--gold); font-size:9px; text-transform:uppercase; letter-spacing:.09em; padding-top:3px; }
.roadmap-item h3 { margin:0 0 4px; font:600 16px Cinzel,serif; }
.roadmap-item p { color:var(--muted); margin:0; font-size:12px; }
.roadmap-item.current { border-color:rgba(143,165,111,.3); }
.roadmap-item.locked { opacity:.68; }
.progress { height:3px; background:rgba(255,255,255,.05); border-radius:99px; overflow:hidden; margin-top:12px; }
.progress i { display:block; height:100%; background:#9fb779; border-radius:99px; }

.chronicle-layout { display:grid; grid-template-columns:.75fr 1.25fr; gap:80px; }
.timeline { border-left:1px solid var(--line-strong); padding-left:28px; display:grid; gap:10px; }
.timeline article { display:grid; grid-template-columns:90px 1fr; gap:16px; position:relative; padding:14px 0; }
.timeline article::before { content:""; position:absolute; width:7px; height:7px; border-radius:50%; left:-32px; top:22px; background:var(--moss-bright); box-shadow:0 0 0 5px #101610; }
.timeline > article > span { color:var(--gold); font:600 10px Cinzel,serif; }
.timeline h3 { margin:0; font:600 16px Cinzel,serif; }
.timeline p { color:var(--muted); margin:4px 0 0; font-size:12px; }

.upload-card { display:grid; grid-template-columns:70px 1fr auto; gap:25px; align-items:center; padding:33px; border:1px solid rgba(155,138,184,.25); border-radius:var(--radius); background:#15151a; }
.upload-lock { width:56px; height:56px; border-radius:50%; display:grid; place-items:center; border:1px solid var(--line-strong); color:#c1b0d5; font-size:20px; }
.upload-card p:not(.eyebrow) { color:var(--muted); max-width:820px; }
.guardrail-row { display:flex; gap:6px; flex-wrap:wrap; }
.guardrail-row span { font-size:9px; color:#b7b2c0; border:1px solid var(--line); border-radius:999px; padding:4px 7px; }

.compliance-layout { align-items:center; }
.compliance-list { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.compliance-list > div { border:1px solid var(--line); border-radius:11px; padding:15px; }
.compliance-list strong, .compliance-list span { display:block; }
.compliance-list strong { font-size:12px; }
.compliance-list span { color:var(--muted); font-size:10px; margin-top:3px; }
.compliance-links { margin-top:25px; }
.compliance-links a { color:#d2c093; text-decoration:none; font-weight:600; font-size:12px; }

.faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.faq-grid details { border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.018); padding:14px 16px; }
.faq-grid summary { cursor:pointer; font-weight:600; font-size:13px; }
.faq-grid p { color:var(--muted); font-size:12px; margin-bottom:3px; }
.manifesto { text-align:center; padding-top:35px; }
.manifesto blockquote { margin:9px auto 4px; max-width:850px; font:600 clamp(25px,4vw,43px)/1.3 Cinzel,serif; color:#d5c7a2; }
.manifesto > p:last-child { color:var(--muted); }

footer { border-top:1px solid var(--line); margin-top:50px; background:#090e0a; }
.footer-grid { padding:35px 0; display:grid; grid-template-columns:1.1fr 1.2fr; gap:22px; align-items:start; }
.footer-nav { display:flex; flex-wrap:wrap; gap:13px 20px; justify-content:flex-end; }
.footer-nav a { color:var(--muted); font-size:11px; text-decoration:none; }
.legal-copy { grid-column:1 / -1; border-top:1px solid var(--line); padding-top:17px; margin:0; color:#666e62; font-size:9px; }
.footer-meta { margin:0; color:#596058; font-size:9px; }

/* Dialog */
dialog { width:min(720px,calc(100% - 28px)); max-height:88vh; border:1px solid var(--line-strong); border-radius:16px; color:var(--ink); background:#111812; box-shadow:0 24px 100px rgba(0,0,0,.55); padding:0; }
dialog::backdrop { background:rgba(4,7,5,.86); }
.dialog-close { position:sticky; float:right; top:12px; right:12px; z-index:3; width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:#151d16; color:var(--muted); cursor:pointer; font-size:20px; }
.dialog-inner { padding:31px; }
.dialog-type { margin-bottom:8px; }
.dialog-inner > h3 { margin:0 45px 14px 0; font:600 26px Cinzel,serif; }
.dialog-body { color:#c0c4b5; white-space:pre-wrap; }
.dialog-meta { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0; padding:12px 0; border-block:1px solid var(--line); color:var(--faint); font-size:9px; }
.dialog-actions { display:flex; gap:10px; align-items:center; margin-bottom:18px; }
.reply-section h4 { font:600 15px Cinzel,serif; }
.reply-list { display:grid; gap:8px; }
.reply { border:1px solid var(--line); border-radius:10px; padding:12px; background:rgba(255,255,255,.02); }
.reply p { margin:0; color:#bfc2b6; white-space:pre-wrap; font-size:12px; }
.reply time { color:var(--faint); font-size:9px; }
.reply-form { display:grid; grid-template-columns:1fr auto; align-items:start; gap:9px; margin-top:13px; }
.reply-form textarea { grid-column:1/-1; }
.reply-form .form-help { margin:7px 0 0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%,18px); opacity:0; pointer-events:none; z-index:100; border:1px solid var(--line-strong); background:#182019; color:var(--ink); border-radius:10px; padding:10px 13px; box-shadow:0 10px 35px rgba(0,0,0,.35); transition:.18s ease; font-size:11px; }
.toast.show { opacity:1; transform:translate(-50%,0); }

/* Documentation / secondary pages */
.doc-shell { width:var(--wrap); margin:0 auto; padding:60px 0 80px; }
.back-home { display:inline-flex; margin:5px 0 40px; color:var(--muted); text-decoration:none; font-size:11px; }
.doc-hero { max-width:920px; padding-bottom:50px; border-bottom:1px solid var(--line); }
.doc-hero h1 { font-size:clamp(42px,5vw,68px); }
.doc-hero .hero-lede { max-width:780px; }
.doc-grid { display:grid; grid-template-columns:220px 1fr; gap:70px; padding-top:45px; }
.doc-nav { position:sticky; top:105px; align-self:start; display:grid; gap:4px; }
.doc-nav a { color:var(--muted); text-decoration:none; font-size:11px; padding:6px 9px; border-left:2px solid transparent; }
.doc-nav a:hover { color:var(--ink); border-left-color:var(--moss); }
.doc-content { max-width:830px; }
.doc-content section, .doc-content > article { padding:0 0 58px; margin:0 0 48px; border-bottom:1px solid var(--line); scroll-margin-top:110px; }
.doc-content h2 { margin:0 0 13px; font:600 28px/1.2 Cinzel,serif; }
.doc-content h3 { margin:27px 0 7px; font:600 17px Cinzel,serif; }
.doc-content p, .doc-content li { color:#b3b8aa; }
.doc-content a { color:#d4c294; }
.doc-content ol, .doc-content ul { padding-left:20px; }
.callout { margin:18px 0; border-left:3px solid #9eb478; background:rgba(143,165,111,.055); padding:13px 16px; }
.callout.warning { border-left-color:var(--ember); background:rgba(203,123,85,.055); }
.callout p { margin:0; }
table { width:100%; border-collapse:collapse; margin:18px 0; border:1px solid var(--line); }
th,td { text-align:left; padding:10px; border-bottom:1px solid var(--line); color:#b5baac; font-size:11px; vertical-align:top; }
th { color:var(--ink); background:rgba(255,255,255,.025); }
.changelog-entry header { display:flex; justify-content:space-between; gap:15px; align-items:start; }
.changelog-entry h2 { font-size:31px; }
.status-table { display:grid; gap:9px; }
.status-row { display:grid; grid-template-columns:115px 1fr auto; gap:14px; align-items:start; border:1px solid var(--line); border-radius:11px; padding:15px; background:rgba(255,255,255,.017); }
.status-row h3 { margin:0; font-size:14px; }
.status-row p { margin:4px 0 0; font-size:11px; }
.status-badge { display:inline-flex; align-items:center; justify-content:center; font-size:8px; border:1px solid var(--line); padding:4px 7px; border-radius:999px; white-space:nowrap; text-transform:uppercase; letter-spacing:.07em; }
.status-good { color:#a8c685; }
.status-watch { color:#d6b37d; }
.status-gated { color:#b5a5ca; }
.guideline-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.guideline-card { border:1px solid var(--line); border-radius:11px; padding:16px; background:rgba(255,255,255,.017); }
.guideline-card h3 { margin:0 0 5px; }
.guideline-card p { margin:0; font-size:11px; }
.flow { display:grid; gap:8px; counter-reset:flow; margin:20px 0; }
.flow > div { display:grid; grid-template-columns:36px 1fr; gap:13px; border:1px solid var(--line); border-radius:11px; padding:14px; }
.flow > div::before { counter-increment:flow; content:counter(flow); width:28px; height:28px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:50%; color:var(--gold); font:600 10px Cinzel,serif; }
.flow strong { display:block; }
.flow span { color:var(--muted); font-size:11px; }
.locked-demo { padding:30px; border:1px dashed rgba(155,138,184,.35); border-radius:14px; background:rgba(155,138,184,.035); text-align:center; }
.locked-demo strong { display:block; font:600 22px Cinzel,serif; margin-bottom:8px; }
.locked-demo p { max-width:610px; margin:0 auto; }
.policy-link-list { display:grid; gap:8px; }
.policy-link-list a { display:flex; justify-content:space-between; gap:15px; border:1px solid var(--line); border-radius:10px; padding:12px 14px; text-decoration:none; }
.policy-link-list a span { color:var(--muted); font-size:10px; }

@media (max-width: 920px) {
  .site-header { align-items:center; }
  .nav-toggle { display:inline-flex; }
  .site-nav { display:none; position:absolute; top:72px; right:0; width:min(310px,calc(100vw - 28px)); padding:9px; flex-direction:column; align-items:stretch; border:1px solid var(--line); border-radius:12px; background:#111812; box-shadow:var(--shadow); }
  .site-nav.open { display:flex; }
  .site-nav a { padding:10px 12px; }
  .hero { grid-template-columns:1fr; min-height:auto; gap:45px; padding-top:80px; }
  .trail-card { max-width:680px; transform:none; }
  .proof-grid { grid-template-columns:1fr 1fr; }
  .proof-grid > div { border-bottom:1px solid var(--line); }
  .feature-grid { grid-template-columns:1fr 1fr; }
  .download-layout, .compliance-layout, .roadmap-layout, .chronicle-layout { grid-template-columns:1fr; gap:35px; }
  .campfire-layout { grid-template-columns:1fr; }
  .composer { position:static; }
  .story-preview { grid-template-columns:1fr; }
  .character-card { display:grid; grid-template-columns:auto 1fr; column-gap:20px; }
  .character-card .tiny-label, .character-card dl, .character-card .text-link { grid-column:1 / -1; }
  .character-emblem { margin:17px 0 0; }
  .character-card > h3 { margin-top:19px; }
  .character-card > p { grid-column:2; }
  .upload-card { grid-template-columns:60px 1fr; }
  .upload-card > .button { grid-column:1/-1; justify-self:start; }
  .doc-grid { grid-template-columns:1fr; gap:30px; }
  .doc-nav { position:static; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--line); padding-bottom:20px; }
}

@media (max-width: 650px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .site-header { width:calc(100% - 18px); margin-top:9px; top:7px; }
  .brand small { display:none; }
  .section { padding:68px 0; }
  .hero { padding-top:63px; }
  .hero h1 { font-size:40px; }
  .map-grid { min-height:330px; }
  .proof-grid, .feature-grid, .issue-grid, .faq-grid, .compliance-list, .guideline-grid { grid-template-columns:1fr; }
  .proof-grid > div { padding-left:0; border-right:0; }
  .split-heading, .current-build-card { grid-template-columns:1fr; gap:18px; }
  .campfire-stats { grid-template-columns:1fr 1fr; }
  .campfire-alert { align-items:flex-start; flex-direction:column; }
  .form-row { grid-template-columns:1fr; }
  .board-toolbar, .filter-row { align-items:stretch; flex-direction:column; }
  .search-field { width:100%; }
  #post-sort { width:100%; }
  .upload-card { grid-template-columns:1fr; }
  .upload-lock { width:48px; height:48px; }
  .story-feed { padding-inline:15px; }
  .story-feed article { grid-template-columns:50px 12px 1fr; }
  .story-feed article:not(:last-child)::after { left:67px; }
  .timeline article { grid-template-columns:1fr; gap:3px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-nav { justify-content:flex-start; }
  .doc-nav { grid-template-columns:1fr 1fr; }
  .status-row { grid-template-columns:1fr; }
  .reply-form { grid-template-columns:1fr; }
}

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

/* Hardened deploy helpers: remove the need for inline style attributes. */
.not-found-shell { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.doc-content-spaced { padding-top: 45px; }
.progress-90 i { width: 90%; }
.progress-45 i { width: 45%; }
.progress-15 i { width: 15%; }
.progress-0 i { width: 0%; }


/* Ant Trail medallion identity — static, local, and intentionally cheap to paint. */
.brand-emblem { width:44px; height:44px; flex:0 0 auto; object-fit:contain; display:block; }
.footer-brand .brand-emblem { width:48px; height:48px; }
.hero-wordmark { display:block; width:min(560px,100%); height:auto; margin:0 0 26px; object-fit:contain; }
.feature-card { position:relative; overflow:hidden; }
.feature-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; min-height:112px; }
.feature-card-top > span { display:inline-flex; color:var(--gold); font-size:10px; letter-spacing:.12em; padding-top:7px; }
.feature-medallion { width:112px; height:112px; object-fit:contain; flex:0 0 auto; }
.feature-card h3 { margin:17px 0 8px; }
.section-heading-with-medallion { display:flex; align-items:center; gap:20px; }
.section-heading-with-medallion > div { min-width:0; }
.section-medallion { width:122px; height:122px; object-fit:contain; flex:0 0 auto; }
.doc-hero { position:relative; padding-right:150px; min-height:150px; }
.doc-hero-medallion { position:absolute; right:0; top:0; width:128px; height:128px; object-fit:contain; }

@media (max-width: 760px) {
  .hero-wordmark { width:min(470px,96%); margin-bottom:22px; }
  .section-heading-with-medallion { align-items:flex-start; }
  .section-medallion { width:90px; height:90px; }
  .doc-hero { padding-right:0; padding-top:104px; }
  .doc-hero-medallion { width:88px; height:88px; left:0; right:auto; top:0; }
}

@media (max-width: 650px) {
  .brand-emblem { width:38px; height:38px; }
  .feature-card-top { min-height:94px; }
  .feature-medallion { width:94px; height:94px; }
  .section-heading-with-medallion { gap:13px; }
  .section-medallion { width:74px; height:74px; }
}


/* FAST4: account identity + Campfire gates. No blur/backdrop effects. */
.nav-download { border:1px solid rgba(199,166,107,.28); }
.nav-account { border:1px solid var(--line); }
.nav-account.is-verified { border-color:rgba(181,201,143,.35); color:#dce8c5; }
.download-layout-clean { align-items:stretch; }
.account-purpose { padding:26px; }
.account-purpose p { color:var(--muted); font-size:13px; }
.account-purpose-links { display:flex; flex-wrap:wrap; gap:16px; margin-top:22px; }
.auth-gate, .reply-auth-gate { border:1px solid var(--line); border-radius:12px; padding:18px; background:#121913; }
.auth-gate { margin-top:22px; }
.auth-gate strong { font:600 16px Georgia,"Times New Roman",serif; }
.auth-gate p, .reply-auth-gate p { color:var(--muted); font-size:12px; }
.reply-auth-gate { margin-top:14px; }
.reply-byline { color:var(--faint); font-size:9px; margin-bottom:5px; }
.account-shell { max-width:1180px; }
.account-hero { max-width:920px; }
.account-grid, .account-status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:28px; }
.account-card { padding:26px; }
.account-card h2 { margin:0 0 12px; font:600 25px/1.15 Georgia,"Times New Roman",serif; }
.account-card form { display:grid; gap:12px; }
.account-card label { display:grid; gap:6px; color:#c8cbbf; font-size:11px; }
.account-card input { width:100%; border:1px solid var(--line); border-radius:9px; background:#0d130f; color:var(--ink); padding:10px 11px; }
.account-card input:focus { outline:1px solid rgba(181,201,143,.45); border-color:rgba(181,201,143,.45); }
.account-banner { margin:32px 0 0; border:1px solid rgba(199,166,107,.3); border-radius:14px; padding:20px; background:#17180f; }
.account-banner p { margin-bottom:0; color:var(--muted); }
.account-single { max-width:620px; margin-top:28px; }
.account-secondary-action { margin-top:14px; }
.account-facts { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:22px 0; }
.account-facts div { padding:11px; border:1px solid var(--line); border-radius:9px; background:#111712; }
.account-facts dt { color:var(--faint); font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.account-facts dd { margin:3px 0 0; font-size:12px; overflow-wrap:anywhere; }
.mode-pill.verified { color:#cfe0ad; border-color:rgba(181,201,143,.35); }
.form-help.success { color:#a9c886; }
.form-help.error { color:#d99186; }
.captcha-slot { min-height:0; }
.account-safety-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin-top:34px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--line); }
.account-safety-strip>div { background:#101611; padding:18px; }
.account-safety-strip strong,.account-safety-strip span { display:block; }
.account-safety-strip strong { font:600 13px Georgia,"Times New Roman",serif; }
.account-safety-strip span { color:var(--muted); font-size:10px; margin-top:4px; }
.privacy-short { max-width:850px; }
.compact-privacy { padding-bottom:32px; }
@media(max-width:820px){.account-grid,.account-status-grid{grid-template-columns:1fr}.account-safety-strip{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.account-safety-strip{grid-template-columns:1fr}}

.account-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}


/* FAST5 changelog: newest-first, compact public history using native details/summary. */
.changelog-shell { max-width:1180px; }
.changelog-hero { max-width:960px; }
.changelog-jump { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:24px 0 8px; padding:12px 0 18px; border-bottom:1px solid var(--line); }
.changelog-jump a { text-decoration:none; color:#d4c294; border:1px solid var(--line); border-radius:999px; padding:7px 11px; font-size:11px; }
.changelog-jump a:hover, .changelog-jump a:focus-visible { border-color:var(--line-strong); color:var(--ink); outline:none; }
.changelog-jump span { margin-left:auto; color:var(--faint); font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.changelog-content { max-width:900px; padding-top:34px; }
.release-era { margin:0 0 56px; scroll-margin-top:24px; }
.era-heading { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:18px; }
.era-heading h2, .era-fold summary h2 { margin:0; font:600 clamp(25px,3vw,36px)/1.2 Georgia,"Times New Roman",serif; }
.era-heading p:not(.eyebrow), .era-fold summary p:not(.eyebrow) { margin:8px 0 0; color:var(--muted); max-width:720px; font-size:13px; }
.release-card { border:1px solid var(--line); border-radius:14px; background:#111812; padding:19px 20px; margin:0 0 10px; }
.release-card.latest-release { border-color:rgba(199,166,107,.42); background:#151a13; }
.release-card header { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.release-card h3 { margin:2px 0 0; font:600 18px/1.25 Georgia,"Times New Roman",serif; }
.release-version { margin:0; color:var(--gold); font-size:12px; font-weight:800; letter-spacing:.08em; }
.release-card ul { margin:13px 0 0; padding-left:19px; }
.release-card li { color:#b3b8aa; margin:4px 0; font-size:13px; }
.release-link { margin:14px 0 0; font-size:12px; }
.release-fold-list { display:grid; gap:7px; }
.release-fold, .era-fold { border:1px solid var(--line); border-radius:12px; background:#111812; overflow:hidden; }
.release-fold summary, .era-fold > summary { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 16px; }
.release-fold summary::-webkit-details-marker, .era-fold > summary::-webkit-details-marker { display:none; }
.release-fold summary:hover, .release-fold summary:focus-visible, .era-fold > summary:hover, .era-fold > summary:focus-visible { background:rgba(255,255,255,.025); outline:none; }
.release-fold summary > span:first-child { display:flex; align-items:baseline; gap:12px; min-width:0; }
.release-fold summary strong { color:var(--gold); font-size:12px; letter-spacing:.05em; white-space:nowrap; }
.release-fold summary em { color:#c4c8bc; font-style:normal; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fold-caret { color:var(--gold); font-size:18px; line-height:1; transition:transform .14s ease; }
.release-fold[open] .fold-caret, .era-fold[open] > summary .fold-caret { transform:rotate(45deg); }
.release-fold > div { border-top:1px solid var(--line); padding:11px 16px 13px; }
.release-fold ul { margin:0; padding-left:18px; }
.release-fold li { color:#aeb4a6; font-size:12px; margin:4px 0; }
.era-fold > summary { padding:18px 20px; align-items:flex-start; }
.era-fold > summary > div { min-width:0; }
.early-history { border-top:1px solid var(--line); padding:8px 20px 20px; }
.early-history h3 { margin:24px 0 8px; color:#d2c49e; font:600 14px Georgia,"Times New Roman",serif; }
.early-release { display:grid; grid-template-columns:78px 1fr; gap:13px; padding:8px 0; border-bottom:1px solid rgba(222,211,170,.075); }
.early-release strong { color:var(--gold); font-size:11px; }
.early-release span { color:#aeb4a6; font-size:11px; }
.changelog-rule { margin-top:4px; }
@media (max-width:650px) {
  .changelog-jump span { width:100%; margin:4px 0 0; }
  .era-heading { display:block; }
  .era-heading .mode-pill { margin-top:10px; }
  .release-card { padding:16px; }
  .release-fold summary > span:first-child { display:grid; gap:2px; }
  .release-fold summary em { white-space:normal; }
  .early-release { grid-template-columns:1fr; gap:2px; }
}


/* Campfire abuse reporting. */
.post-actions,.reply-actions{display:flex;align-items:center;gap:10px;margin-top:10px}
.report-action{font-size:10px;color:var(--faint)}
.report-action:hover,.report-action:focus-visible{color:var(--ink)}
.report-form{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#0e140f}
.report-form label{display:grid;gap:6px;color:#c8cbbf;font-size:10px}
.report-form select,.report-form textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#0b110d;color:var(--ink);padding:9px 10px}
.report-form textarea{resize:vertical}
.report-form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}


/* Account deletion requires explicit re-authentication and confirmation. */
.account-danger{margin-top:14px;border-color:rgba(190,105,92,.34);max-width:760px}
.account-danger h2{color:#ead3ce}
.account-danger p{color:var(--muted);font-size:12px}
.button-danger{border:1px solid rgba(190,105,92,.55);background:#3a1e1b;color:#f1d7d1}
.button-danger:hover,.button-danger:focus-visible{background:#4a2521;border-color:rgba(214,125,111,.75);outline:none}
.button-danger:disabled{opacity:.55;cursor:not-allowed}
