/* ClankBots Outpost website — Ink Violet look (matches the logo and the bots). */
:root {
  --ink: #0f0e12;
  --panel: #18151f;
  --line: #2e2840;
  --text: #f7f5fa;
  --soft: #c9c3d6;
  --muted: #b3adc0;
  --violet: #ae86ff;
  --violet-deep: #7a52e0;
  --violet-pale: #dccbff;
  --mint: #5ce5a2;
  --coral: #ff7b6e;
  --coral-pale: #ffc0b8;
  --steel: #5e5970;
  --pixel: 'Silkscreen', monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sky: #0d0c11;      /* the scenes' deepest sky */
  --magenta: #ff5cc8;
  --amber: #ffd25a;
  --k: 4;              /* scene pixel scale: whole numbers only, so the pixel art stays crisp */
}
@media (max-width: 1199px) { :root { --k: 3; } }
@media (max-width: 799px) { :root { --k: 2; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
.px { image-rendering: pixelated; }
a { color: var(--violet); }
a:hover { color: var(--violet-pale); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--pixel); margin: 0; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.band { background: var(--panel); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.section { padding-block: 96px; display: flex; flex-direction: column; gap: 40px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.kicker { font-family: var(--pixel); font-size: 13px; letter-spacing: 2px; color: var(--mint); }
.h2 { font-size: clamp(28px, 3.4vw, 40px); }
.lead { color: var(--soft); }
.soft { color: var(--soft); }

/* nav */
.site-header { border-bottom: 2px solid var(--line); background: var(--ink); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.nav .logo img { height: 44px; width: auto; display: block; }
.nav .links { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-family: var(--pixel); font-size: 14px; letter-spacing: 1px; }
.nav .links a { color: var(--text); text-decoration: none; padding: 12px 0; border-bottom: 3px solid transparent; }
.nav .links a:hover { color: var(--mint); }
.nav .links a[aria-current="page"] { color: var(--mint); border-bottom-color: var(--mint); }

/* buttons */
.btn { display: inline-block; font-family: var(--pixel); font-size: 16px; letter-spacing: 1px; text-decoration: none; padding: 14px 22px; border: 2px solid var(--ink); cursor: pointer; min-height: 44px; transition: transform .08s, box-shadow .08s; }
.btn-primary { background: var(--mint); color: var(--ink); box-shadow: 5px 5px 0 var(--violet-deep); }
.btn-primary:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--violet-deep); }
.btn-primary:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--violet-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--violet); }
.btn-ghost:hover { color: var(--text); background: #201a30; }
.btn-sm { font-size: 14px; padding: 10px 16px; }
.btn[disabled], .btn.is-off { background: var(--steel); box-shadow: 4px 4px 0 #2a2438; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }

.star { position: absolute; width: 8px; height: 8px; animation: twinkle 3s steps(2) infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
.tag { align-self: flex-start; font-family: var(--pixel); font-size: 13px; letter-spacing: 2px; color: var(--mint); border: 2px solid var(--mint); padding: 6px 12px; }
@media (prefers-reduced-motion: reduce) { .star { animation: none; } html { scroll-behavior: auto; } }

/* scenes: 400×225 pixel art, full bleed, scaled by --k */
.stage { position: relative; overflow: hidden; background: var(--sky); border-bottom: 2px solid var(--line); }
.stage .scene-img { display: block; position: relative; left: 50%; width: calc(400px * var(--k)); max-width: none; height: calc(225px * var(--k)); transform: translateX(-50%); image-rendering: pixelated; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; /* faint scanlines, one per scene pixel */
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--k) * 1px - 1px), rgb(0 0 0 / .18) calc(var(--k) * 1px - 1px) calc(var(--k) * 1px)); }
.stage .lead, .stage p { text-shadow: 0 1px 0 var(--sky), 0 0 12px var(--sky), 0 0 24px var(--sky); }

/* hero: the Outpost at night; the empty top of the sky is trimmed so the HUD shows above the fold */
.hero .scene-img { margin-top: calc(var(--k) * -20px); }
.hero .overlay { position: absolute; inset: 0; z-index: 1; }
.hero .overlay .wrap { height: 100%; display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-top: calc(var(--k) * 6px); }
.hero h1 { font-size: calc(var(--k) * 14px); line-height: 1.05; letter-spacing: 0; -webkit-font-smoothing: none; }
.hero h1 .l1 { display: block; color: var(--soft); }
.hero h1 .l2 { display: block; color: var(--mint); text-shadow: 0 0 calc(var(--k) * 6px) rgb(92 229 162 / .35); }
.hero .lead { max-width: 470px; margin-top: 18px; color: var(--soft); font-size: 17px; }
.hero .row { margin-top: 22px; justify-content: flex-end; }
.hud { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--k) * 30px); z-index: 1; display: flex; align-items: center; }
.hud .wrap { width: 100%; display: flex; gap: 12px 40px; flex-wrap: wrap; align-items: center; }
.stats { margin: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dd { margin: 0; font-family: var(--pixel); font-size: 24px; font-variant-numeric: tabular-nums; }
.stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.chip { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--mint); border: 1px solid rgb(92 229 162 / .5); padding: 6px 10px; }
.chip i { display: inline-block; width: 8px; height: 8px; background: var(--mint); margin-right: 8px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* the one entrance: the headline boots up line by line, like the bots */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l1, .hero h1 .l2 { clip-path: inset(0 0 0 100%); animation: boot .7s steps(10) forwards; }
  .hero h1 .l1 { clip-path: inset(0 100% 0 0); animation-delay: .15s; }
  .hero h1 .l2 { clip-path: inset(0 100% 0 0); animation-delay: .95s; }
  .hero .lead, .hero .row, .hud { opacity: 0; animation: show .01s 1.7s forwards; }
}
@keyframes boot { to { clip-path: inset(0 0 0 0); } }
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chip i { animation: none; } }

/* Kessler Rock */
.lore .readout { position: absolute; z-index: 1; right: max(24px, calc(50% - 600px + 24px)); bottom: calc(var(--k) * 10px); width: min(470px, calc(100% - 48px)); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.lore .readout::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6; background-repeat: no-repeat;
  background-image: linear-gradient(var(--soft), var(--soft)), linear-gradient(var(--soft), var(--soft)), linear-gradient(var(--soft), var(--soft)), linear-gradient(var(--soft), var(--soft)),
                    linear-gradient(var(--soft), var(--soft)), linear-gradient(var(--soft), var(--soft)), linear-gradient(var(--soft), var(--soft)), linear-gradient(var(--soft), var(--soft));
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; }
.lore h2 { font-size: 40px; }
.lore .meta { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.lore .meta s { color: #8a8499; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.lore .meta b { color: var(--mint); font-weight: 600; }
.lore p { color: var(--soft); font-size: 16px; }

/* 800–1199 px (3×): only the headline and buttons fit in the sky; the intro moves under the scene with the HUD */
.lead-under { display: none; }
@media (max-width: 1199px) {
  .hero .overlay .wrap { padding-top: calc(var(--k) * 8px); }
  .hero .overlay .lead { display: none; }
  .hud { position: static; height: auto; padding: 24px 0 32px; }
  .hud .lead-under { display: block; flex-basis: 100%; max-width: 640px; text-align: left; }
  .hero::after { bottom: auto; height: calc(205px * var(--k)); }
}
@media (max-width: 799px) {
  /* phone: the scene on top, the words under it */
  .hero .overlay { position: static; }
  .hero .overlay .wrap { align-items: flex-start; text-align: left; padding-top: 28px; padding-bottom: 8px; }
  .hero .overlay .lead { display: block; }
  .hud .lead-under { display: none; }
  .hero .row { justify-content: flex-start; }
  .hud { padding: 20px 0 28px; }
  .chip { margin-left: 0; }
}
@media (max-width: 799px) {
  .hero h1 { font-size: 32px; }
  .lore::after { bottom: auto; height: calc(225px * var(--k)); }
  .lore .readout { position: relative; right: auto; bottom: auto; width: auto; margin: 0 16px 32px; }
  .lore h2 { font-size: 32px; }
}

/* cards + grids */
.grid { display: grid; gap: 20px; }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 2px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.band .card { background: var(--ink); }
.card .num { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--violet); }
.card h3 { font-size: 20px; }
.grid-steps .card { box-shadow: 4px 4px 0 #0a090d; transition: transform .12s steps(2), border-color .12s; }
.grid-steps .card:hover { transform: translate(-2px, -2px); border-color: var(--violet-deep); }
.card p { color: var(--soft); font-size: 16px; }

.chassis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chassis figure { margin: 0; background: var(--ink); border: 2px solid var(--line); border-top: 4px solid var(--rc, var(--steel)); display: flex; flex-direction: column; text-align: left; transition: transform .12s steps(2); }
.chassis figure:nth-child(1) { --tier: 1; } .chassis figure:nth-child(2) { --tier: 2; } .chassis figure:nth-child(3) { --tier: 3; }
.chassis figure:nth-child(4) { --tier: 4; --rc: var(--violet); } .chassis figure:nth-child(5) { --tier: 5; --rc: #7ff7ff; }
.chassis figure:nth-child(6) { --tier: 6; --rc: var(--amber); } .chassis figure:nth-child(7) { --tier: 7; --rc: var(--magenta); }
.chassis .pad { display: flex; justify-content: center; padding: 18px 12px 6px; background: radial-gradient(60% 40% at 50% 92%, color-mix(in srgb, var(--rc, var(--steel)) 22%, transparent), transparent 70%); }
.chassis img { width: 144px; height: 144px; transition: transform .2s steps(2); }
.chassis figure:hover { transform: translateY(-4px); border-color: var(--rc, var(--soft)); }
.chassis figure:hover img { transform: translateY(-4px); }
.chassis figcaption { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.chassis .name { font-family: var(--pixel); font-size: 15px; display: block; }
.chassis .count { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chassis .rarity { display: block; height: 8px; margin-top: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 calc(100% / 7 - 2px), transparent calc(100% / 7 - 2px) calc(100% / 7)); }
.chassis .rarity i { display: block; height: 100%; width: calc(100% / 7 * var(--tier)); background: repeating-linear-gradient(90deg, var(--rc, var(--soft)) 0 calc(100% / var(--tier) - 2px), transparent calc(100% / var(--tier) - 2px) calc(100% / var(--tier))); }
@media (prefers-reduced-motion: reduce) { .chassis figure, .chassis img { transition: none; } }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.gauges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gauges figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gauges img { width: 100%; max-width: 160px; }
.gauges figcaption { font-family: var(--pixel); font-size: 12px; color: var(--muted); text-align: center; }
.art { margin: 0; }
.art img { display: block; width: 100%; height: auto; border: 2px solid var(--line); background: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cards figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cards img { width: 100%; max-width: 240px; image-rendering: pixelated; }
.cards figcaption { font-family: var(--pixel); font-size: 12px; color: var(--muted); text-align: center; }
.list { margin: 0; padding-left: 20px; color: var(--soft); display: flex; flex-direction: column; gap: 4px; }

.slot h3 { font-size: 18px; }
.slot.optic h3 { color: var(--violet); }
.slot.drill h3 { color: var(--mint); }
.slot.shield h3 { color: var(--coral); }
.scroll-x { overflow-x: auto; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(11, minmax(88px, 1fr)); gap: 8px; min-width: 1000px; }
.tiers li { background: var(--ink); border: 2px solid var(--line); padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tiers .pic { height: 110px; display: flex; align-items: center; }
.tiers img { max-height: 110px; max-width: 72px; }
.tiers .t { font-family: var(--pixel); font-size: 13px; }
.tiers .m { font-size: 12px; color: var(--muted); line-height: 1.3; }

.quest { background: var(--panel); border: 2px solid var(--line); padding: 22px 24px 8px; max-width: 900px; }
.quest-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.quest-head .day { color: var(--mint); font-variant-numeric: tabular-nums; }
.quest-bar { height: 10px; margin: 10px 0 8px; border: 2px solid var(--line); background: var(--ink); }
.quest-bar i { display: block; width: 0; height: 100%; background: var(--mint); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 2px 20px; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 12px; height: 12px; border: 2px solid var(--qc, var(--violet)); background: var(--panel); }
.timeline li::after { content: ''; position: absolute; left: 11px; top: 37px; bottom: -21px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.camp { --qc: var(--mint); }
.timeline li.final { --qc: var(--coral); }
.timeline li.now { --qc: var(--mint); border-top: none; }
.timeline li.now::before { background: var(--mint); box-shadow: 0 0 0 4px rgb(92 229 162 / .2); animation: blink 1.2s steps(2) infinite; }
.timeline .when { font-family: var(--mono); font-size: 13px; color: var(--muted); grid-row: span 2; padding-top: 2px; }
.timeline li.now .when { color: var(--mint); }
.timeline .what { font-family: var(--pixel); font-size: 17px; }
.timeline .note { font-size: 15px; color: var(--soft); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } .timeline .when { grid-row: auto; } .quest { padding: 18px 16px 4px; } }
@media (prefers-reduced-motion: reduce) { .timeline li.now::before { animation: none; } }

.split-bar { display: flex; height: 44px; border: 2px solid var(--ink); }
.split-bar span { display: block; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legend li { display: flex; gap: 12px; align-items: baseline; }
.legend b { font-family: var(--pixel); font-weight: 400; min-width: 44px; }

.trust h3 { font-size: 16px; color: var(--violet); }
.trust p { color: var(--soft); font-size: 16px; }

.faq { max-width: 860px; }
details { border: 2px solid var(--line); background: var(--ink); padding: 18px 20px; }
summary { cursor: pointer; font-family: var(--pixel); font-size: 16px; min-height: 28px; }
details p { margin-top: 12px; color: var(--soft); }

.site-footer { border-top: 2px solid var(--line); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer img { height: 36px; width: auto; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-footer .note { flex-basis: 100%; font-size: 14px; color: var(--muted); }

/* page heads */
.page { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.page-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.page-head .intro { flex: 1 1 520px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; }
.page-head .lead { font-size: 19px; max-width: 620px; }

/* status + forms */
.status { flex: 0 1 360px; background: var(--panel); border: 2px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.status .top { display: flex; justify-content: space-between; font-family: var(--pixel); font-size: 14px; gap: 12px; }
.meter { height: 14px; background: var(--ink); border: 2px solid var(--line); }
.meter > span { display: block; height: 100%; background: var(--mint); transition: width .3s; }
.status p { font-size: 15px; color: var(--soft); }
input[type="text"] { min-height: 44px; width: 100%; font-family: ui-monospace, monospace; font-size: 15px; background: var(--ink); color: var(--text); border: 2px solid var(--line); padding: 10px 12px; }
input[type="text"]:focus { border-color: var(--violet); outline: none; }
.hint { font-size: 14px; color: var(--muted); }
.alert { font-size: 15px; color: var(--coral-pale); }
.ok { color: var(--mint); }

/* whitelist */
.wl { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.game { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 10px; margin: 0 auto; }
.frame { width: 100%; max-width: 400px; aspect-ratio: 9 / 16; max-height: 78vh; background: #0d0b14; border: 4px solid var(--line); box-shadow: 6px 6px 0 #201a30; }
.frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.screen { position: relative; aspect-ratio: 16 / 10; background: #120c1b; border: 4px solid var(--line); overflow: hidden; }
.screen .rock { position: absolute; background: var(--steel); border: 4px solid #2a2438; }
.screen .cell { position: absolute; width: 14px; height: 14px; background: var(--mint); border: 3px solid var(--ink); }
.screen .pilot { position: absolute; left: 12%; top: 30%; width: 22%; animation: bob 2s steps(2) infinite; }
.screen .hud { position: absolute; left: 16px; top: 12px; font-family: var(--pixel); font-size: 14px; }
.screen .cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(15, 14, 18, .55); text-align: center; padding: 16px; }
.screen .cover span { font-size: 15px; color: #dcd8e6; }
.claim { flex: 1 1 380px; min-width: 0; background: var(--panel); border: 2px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.claim h2 { font-size: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps .n { flex: 0 0 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-family: var(--pixel); background: var(--violet); color: var(--ink); }
.steps li.done .n { background: var(--mint); }
.steps .body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.steps .body span { font-size: 15px; color: var(--soft); }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.days li { border: 2px solid var(--line); background: var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.days li b { font-family: var(--pixel); font-weight: 400; font-size: 14px; }
.days li span { font-size: 14px; color: var(--soft); }
.days li.past span { color: var(--muted); }
.days li.today { border-color: var(--mint); background: var(--panel); }
.days li.today span { color: var(--mint); }

/* mint */
.crates { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; background: var(--panel); border: 2px solid var(--line); padding: 40px 16px 0; min-height: 360px; position: relative; }
.crates img { width: 46%; max-width: 260px; }
.crates img + img { margin-left: -6%; }
.mint-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.check { background: var(--panel); border: 2px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.check .row input { flex: 1 1 260px; min-width: 0; width: auto; }

/* manual */
.manual { padding-top: 48px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.toc { flex: 1 1 240px; min-width: 0; max-width: 280px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }
.toc .kicker { padding-bottom: 8px; }
.toc [data-toc] { display: flex; flex-direction: column; gap: 4px; }
.toc button { text-align: left; min-height: 44px; font-family: var(--sans); font-size: 16px; cursor: pointer; padding: 10px 14px; border: none; border-left: 4px solid transparent; background: transparent; color: var(--soft); }
.toc button:hover { color: var(--text); }
.toc button[aria-current="page"] { border-left-color: var(--mint); background: var(--panel); color: var(--text); }
.chapter { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.chapter h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.chapter p { color: #dcd8e6; }
.chapter .num { font-family: var(--pixel); font-size: 13px; letter-spacing: 2px; color: var(--muted); }
.table { overflow-x: auto; border: 2px solid var(--line); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
caption { text-align: left; padding: 12px 16px; font-family: var(--pixel); font-size: 14px; color: var(--muted); background: var(--panel); }
thead tr { background: var(--panel); }
th[scope="col"] { text-align: left; padding: 12px 16px; font-family: var(--pixel); font-size: 13px; font-weight: 400; color: var(--violet); }
tbody tr { border-top: 2px solid var(--line); }
th[scope="row"] { text-align: left; padding: 14px 16px; }
td { padding: 14px 16px; color: #dcd8e6; }
.tip { background: var(--panel); border: 2px solid var(--mint); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.tip img { width: 72px; flex: 0 0 72px; }
.tip p { font-size: 16px; }
.todo { color: var(--muted) !important; border: 2px dashed var(--line); padding: 24px; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--line); padding-top: 20px; }
@media (max-width: 760px) {
  .manual { gap: 24px; }
  .toc { position: static; max-width: none; flex-basis: 100%; }
  .toc [data-toc] { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
  .toc button { white-space: nowrap; border-left: none; border-bottom: 4px solid transparent; }
  .toc button[aria-current="page"] { border-bottom-color: var(--mint); }
}

@media (max-width: 640px) {
  .site-header { position: static; }
  .nav { gap: 4px 16px; }
  .nav > .btn { display: none; }
  .nav .links { gap: 0 16px; font-size: 13px; }
  .nav .links a { padding: 10px 0; }
  .section { padding-block: 64px; }
}

.steps li.blocked .n { background: var(--coral); }
.onlist { border: 2px solid var(--mint); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.onlist .big { font-family: var(--pixel); font-size: 18px; color: var(--mint); }
code { font-family: ui-monospace, monospace; color: #7ff7ff; word-break: break-all; }
.confirm { border: 2px solid var(--violet); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.linkbtn { background: none; border: none; color: var(--violet); cursor: pointer; font: inherit; font-size: 14px; padding: 0; text-decoration: underline; min-height: 0; }

.chapter .h3 { font-size: 20px; margin-top: 8px; }
.chapter .list { color: #dcd8e6; gap: 8px; }
.chapter .list strong { color: var(--text); }
.chapter .hint { font-size: 14px; color: var(--muted); }
.terms { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; border: 2px solid var(--line); }
.terms dt { font-family: var(--pixel); font-size: 14px; padding: 12px 16px; border-top: 2px solid var(--line); background: var(--panel); }
.terms dd { margin: 0; padding: 12px 16px; border-top: 2px solid var(--line); color: #dcd8e6; }
.terms dt:first-of-type, .terms dd:first-of-type { border-top: none; }
@media (max-width: 560px) { .terms { grid-template-columns: 1fr; } .terms dd { border-top: none; padding-top: 0; } }
