/* seedmyserver.com — design system "Radar" (mockup A) with the reward layer (C).
   Mobile first. No framework: one file, cached hard, no render-blocking JS. */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ChakraPetch-600.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ChakraPetch-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/IBMPlexMono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/IBMPlexMono-500.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/Manrope-var.woff2) format("woff2"); }

:root {
  --bg: #0a0d12;
  --panel: #0e131b;
  --panel-2: #121926;
  --line: #1c2430;
  --text: #e7edf5;
  --dim: #8b97a8;
  --accent: #ff5c1f;
  --accent-2: #ff8a5c;
  --blue: #1d63f2;
  --green: #3fb950;
  --yellow: #e3b341;
  --red: #f85149;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Faint radar grid only behind the hero, fading out before the content starts —
   full-page grid behind text hurt readability. */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 92, 31, .12), transparent 70%),
    linear-gradient(rgba(139, 151, 168, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 151, 168, .10) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 100%);
  mask-image: linear-gradient(#000 40%, transparent 100%);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.panel p.dim { color: #aab4c3; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 13, 18, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.logo svg { width: 28px; height: 28px; }
.logo b { color: var(--accent); }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--dim); font-weight: 600; font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.top .spacer { flex: 1; }
@media (min-width: 720px) { .nav { display: flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: transform .08s ease, background .15s ease; }
.btn:hover { color: var(--text); background: #182234; transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0a0d12; }
.btn.primary:hover { background: var(--accent-2); color: #0a0d12; }
.btn.steam { background: #171a21; border-color: #2a475e; }
.btn.steam svg { width: 20px; height: 20px; }
.btn.steam .short { display: none; }
@media (max-width: 560px) { .btn.steam .long { display: none; } .btn.steam .short { display: inline; } .btn.steam { padding: 0 12px; } }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .8rem; }

/* Panels */
.panel { background: var(--panel); box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); color: var(--dim); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--green); border-color: rgba(63, 185, 80, .4); }
.pill.seed { color: var(--accent); border-color: rgba(255, 92, 31, .4); animation: blink 1.6s ease-in-out infinite; }
.pill.soon { color: var(--yellow); border-color: rgba(227, 179, 65, .4); }
@keyframes blink { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .pill.seed { animation: none; } html { scroll-behavior: auto; } }

/* Hero */
.hero { padding: 40px 0 28px; display: grid; gap: 24px; align-items: center; }
.hero .kicker { font-family: var(--mono); color: var(--accent); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.hero .lead { font-size: 1.1rem; color: #b6c0cf; max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.2fr 1fr; padding: 64px 0 40px; } }

/* Progress ring (reward layer C) */
.ring { position: relative; width: min(280px, 70vw); aspect-ratio: 1; margin-inline: auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--accent); stroke-dasharray: 100 100; transition: stroke-dashoffset .6s ease; filter: drop-shadow(0 0 6px rgba(255, 92, 31, .6)); }
.ring .inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .num { font-family: var(--display); font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; line-height: 1; }
.ring .num small { font-size: .45em; color: var(--dim); }
.ring .lbl { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 52px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 1.1rem; }

/* Game list */
.game { display: flex; align-items: center; gap: 14px; }
.game .ico { width: 44px; height: 44px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-content: center; font-family: var(--display); font-weight: 700; color: var(--accent); }
.game .meta { flex: 1; min-width: 0; }
.game .meta b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; }
.game .meta span { color: var(--dim); font-size: .88rem; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 1.4rem; }
.stat span { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* User chip */
.user { display: flex; align-items: center; gap: 8px; }
.user img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.user span { display: none; font-weight: 600; font-size: .9rem; }
@media (min-width: 720px) { .user span { display: inline; } }

/* Empty state */
.empty { text-align: center; padding: 48px 18px; color: var(--dim); }
.empty h3 { color: var(--text); }

/* Flash */
.flash { padding: 12px 16px; border-radius: 8px; border: 1px solid; margin: 16px 0; font-weight: 600; }
.flash.ok { border-color: rgba(63, 185, 80, .5); background: rgba(63, 185, 80, .08); color: var(--green); }
.flash.err { border-color: rgba(248, 81, 73, .5); background: rgba(248, 81, 73, .08); color: var(--red); }

/* Sections */
section { padding: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
footer .spacer { flex: 1; }

/* Language switcher */
.lang { display: flex; gap: 2px; font-family: var(--mono); font-size: .75rem; }
.lang a { padding: 6px 8px; border-radius: 6px; color: var(--dim); letter-spacing: .08em; }
.lang a[aria-current="true"] { color: var(--accent); background: var(--panel-2); }

/* Volunteers */
.volunteers { border-color: rgba(29, 99, 242, .45); background: linear-gradient(135deg, rgba(29, 99, 242, .12), transparent 60%), var(--panel); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.tags span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: .78rem; color: var(--dim); }

/* Forms */
.form { display: grid; gap: 14px; max-width: 640px; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field .hint { color: var(--dim); font-size: .82rem; margin-top: 4px; }
.field .error { color: var(--red); font-size: .85rem; margin-top: 4px; }
.field.check { display: flex; align-items: center; gap: 10px; } .field.check input { width: 20px; min-height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn.danger { border-color: rgba(248, 81, 73, .5); color: var(--red); }
.btn.ghost { background: transparent; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; display: grid; gap: 12px; }
legend { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 0 6px; }

/* Server rows */
.srv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; }
.srv .meta b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; }
.srv .meta span { color: var(--dim); font-size: .85rem; }
.srv .count { font-family: var(--display); font-size: 1.5rem; text-align: right; line-height: 1; }
.srv .count small { color: var(--dim); font-size: .55em; }
.srv .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.srv .bar i { display: block; height: 100%; background: var(--accent); }
.srv .bar i.full { background: var(--green); }
.srv .tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.list { display: grid; gap: 12px; }
.card-link { display: block; }
.card-link:hover { border-color: var(--accent); color: inherit; }
.muted-row { color: var(--dim); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
code.hint { font-family: var(--mono); background: var(--bg); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: .85rem; user-select: all; }

/* Ledger tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .flagged td { background: rgba(227, 179, 65, .06); }
.warn { color: var(--yellow); font-weight: 700; }
.pill.promo { color: #0a0d12; background: var(--accent); border-color: var(--accent); }

/* Volunteer form */
.volunteer-form { margin-top: 16px; display: grid; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: .8rem; cursor: pointer; min-height: 40px; }
.check-pill:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.check-pill input { width: 16px; height: 16px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.field .error, fieldset .error { color: var(--red); font-size: .85rem; margin-top: 4px; }

/* Ledger: volunteer requests */
.stat.hot { border-color: var(--accent); color: var(--accent); }
a.stat { text-decoration: none; }
.vol .vol-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.vol .vol-msg { white-space: pre-wrap; margin: 0 0 12px; }
.vol.done { opacity: .6; }
.vol-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.vol-actions select, .vol-actions input { min-height: 36px; padding: 6px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.vol-actions input { flex: 1 1 200px; }

/* Legal pages */
.legal .panel { margin-bottom: 14px; }
.legal h3 { margin: 18px 0 6px; text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.legal h3:first-child { margin-top: 0; }
.legal p { line-height: 1.6; }
.legal .tbl td { font-size: .85rem; }

/* Cookie consent */
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 13, 18, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); transform: translateY(100%); transition: transform .25s ease; }
.cookie-banner.visible { transform: none; }
.cookie-banner-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.cookie-banner-text { flex: 1 1 320px; }
.cookie-banner-text strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; }
.cookie-banner-text p { margin: 4px 0 0; color: var(--dim); font-size: .9rem; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.cookie-overlay.visible { opacity: 1; }
.cookie-modal { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.cookie-cat { border-top: 1px solid var(--line); padding: 12px 0; }
.cookie-cat label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cookie-cat input { width: 18px; height: 18px; accent-color: var(--accent); }
.cookie-cat p { margin: 4px 0 0 28px; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .cookie-banner, .cookie-overlay { transition: none; } }

/* Seed calls: neon highlight in the main nav */
.nav a.hot { position: relative; color: var(--green); border: 1px solid rgba(63, 185, 80, .7); padding-left: 24px; box-shadow: 0 0 6px rgba(63, 185, 80, .35), inset 0 0 6px rgba(63, 185, 80, .12); animation: neon 2.4s ease-in-out infinite; }
.nav a.hot::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.6s ease-in-out infinite; }
.nav a.hot:hover, .nav a.hot[aria-current="page"] { color: #0a0d12; background: var(--green); box-shadow: 0 0 14px rgba(63, 185, 80, .7); }
.nav a.hot:hover::before, .nav a.hot[aria-current="page"]::before { background: #0a0d12; box-shadow: none; }
@keyframes neon { 50% { box-shadow: 0 0 12px rgba(63, 185, 80, .6), inset 0 0 8px rgba(63, 185, 80, .2); } }
@media (prefers-reduced-motion: reduce) { .nav a.hot, .nav a.hot::before { animation: none; } }
