/* 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;
}

* { 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: 96px 0; 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; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--line); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-top: 72px; }
.hero-copy { flex: 1.2 1 520px; min-width: 0; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.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; }
.hero h1 { font-size: clamp(30px, 3.5vw, 50px); line-height: 1.12; letter-spacing: 1px; }
.hero .lead { max-width: 560px; font-size: 19px; }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; max-width: 600px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--pixel); font-size: 22px; white-space: nowrap; }
.scene { flex: 1 1 520px; min-width: 0; position: relative; height: 440px; }
.scene .bot { position: absolute; width: 230px; }
.scene .b1 { left: 0; bottom: 30px; }
.scene .b2 { left: 33%; bottom: 96px; }
.scene .b3 { right: 0; bottom: 30px; }
.scene .ground { position: absolute; left: -24px; right: -24px; bottom: 0; height: 52px; background: #201c2a; border-top: 4px solid var(--line); }
.star { position: absolute; width: 8px; height: 8px; animation: twinkle 3s steps(2) infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
.scene .b2 { animation: bob 2.4s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) { .star, .scene .b2 { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 640px) { .scene { height: 300px; } .scene .bot { width: 150px; } .scene .b2 { bottom: 64px; } }

/* 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(--pixel); font-size: 13px; color: var(--violet); }
.card h3 { font-size: 20px; }
.card p { color: var(--soft); font-size: 16px; }

.chassis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.chassis figure { margin: 0; background: var(--ink); border: 2px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.chassis img { width: 144px; height: 144px; }
.chassis .name { font-family: var(--pixel); font-size: 15px; display: block; }
.chassis .count { font-size: 14px; color: var(--muted); }

.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; }
.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; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.timeline li { border-top: 4px solid var(--violet); background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.timeline li.camp { border-top-color: var(--mint); }
.timeline li.final { border-top-color: var(--coral); }
.timeline .when { font-family: var(--pixel); font-size: 13px; color: var(--muted); }
.timeline .what { font-family: var(--pixel); font-size: 17px; }
.timeline .note { font-size: 15px; color: var(--soft); }

.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; 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: 64px 0; }
}

.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; } }
