/* Shoot to Build: the website. Chunky blocks, dusk colours, one accent. */
:root {
  --bg: #0f1218;
  --panel: #171b23;
  --panel-2: #1e232d;
  --line: #2c3340;
  --text: #e9ecf1;
  --dim: #9aa3b2;
  --accent: #f0a830;
  --accent-ink: #1a1206;
  --good: #6fd08c;
  --bad: #ef6b5e;
  --grass: #5c9b3f;
  --dirt: #7a5634;
  --stone: #5d6470;
  --radius: 4px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* The game is a dusk-lit shooter: the site stays dark, only softer. */
    --bg: #141821;
  }
}

@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.dim { color: var(--dim); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* The blocky backdrop (site.js draws it on #blocks). */
#blocks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(12, 14, 19, .9); border-bottom: 3px solid var(--accent); backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font: 700 26px/1 var(--head); color: var(--text); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a { color: var(--dim); font: 600 17px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-radius: var(--radius); white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--panel-2); text-decoration: none; }
.who { color: var(--dim); font-size: 14px; white-space: nowrap; }

/* Buttons: blocks with a lip under them */
.btn { display: inline-block; font: 700 18px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 14px 22px 12px; border: 0; border-radius: var(--radius);
  background: var(--panel-2); color: var(--text); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:active { box-shadow: inset 0 -1px 0 rgba(0,0,0,.35); transform: translateY(2px); }
.btn.go { background: var(--accent); color: var(--accent-ink); }
.btn.big { font-size: 22px; padding: 18px 30px 15px; }
.btn[disabled] { opacity: .5; cursor: default; filter: none; }

/* Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; padding: 80px 0 56px;
  background: linear-gradient(180deg, rgba(15,18,24,.15) 0%, rgba(15,18,24,.6) 60%, var(--bg) 100%), url("img/hero.jpg") center/cover; }
.hero .logo { width: min(520px, 90%); margin-bottom: 12px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.hero p.lead { font-size: 21px; max-width: 620px; color: #dfe4ec; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.price { font: 700 20px/1 var(--head); color: var(--text); }

/* Panels and grids */
.section { padding: 48px 0; }
.panel { background: rgba(23, 27, 35, .94); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel.accent { border-top: 4px solid var(--accent); }
.panel.danger { border-top: 4px solid var(--bad); }
.btn.bad { background: var(--bad); color: #1a0e0c; }
a.small { font-size: 14px; }
/* Long-form pages (privacy). */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin: .3em 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 14px; height: 14px; background: var(--accent); box-shadow: 4px 4px 0 var(--dirt); flex: none; }
.shots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shots img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* Lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rank { font: 700 22px/1 var(--head); color: var(--accent); width: 32px; }
.tag { font: 700 15px/1 var(--head); background: var(--panel-2); border: 1px solid var(--line); padding: 4px 6px 3px; border-radius: 3px; letter-spacing: .06em; }
.news h3 { margin-bottom: .2em; }
.news time { color: var(--dim); font-size: 14px; }
.news article { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news article:last-child { border-bottom: 0; }

/* Forms */
form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font: 600 14px/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
input, select { font: 16px var(--font); color: var(--text); background: #10131a; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.msg { min-height: 1.4em; font-size: 15px; }
.msg.good { color: var(--good); }
.msg.bad { color: var(--bad); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.hidden { display: none !important; }
.status-owned { color: var(--good); font-weight: 600; }

/* Maps */
.maps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.map { background: rgba(23,27,35,.94); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.map .thumb { aspect-ratio: 16/10; background: repeating-conic-gradient(var(--panel-2) 0 25%, var(--panel) 0 50%) 0 0/24px 24px; object-fit: cover; width: 100%; }
.map .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.map h3 { font-size: 20px; margin: 0; }
.map .meta { font-size: 14px; color: var(--dim); }
.map .btn { align-self: flex-start; margin-top: auto; font-size: 15px; padding: 10px 14px 8px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input { flex: 1; min-width: 180px; }

footer { padding: 32px 0 48px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); margin-top: 32px; background: rgba(12,14,19,.9); }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 640px) {
  .top .wrap { gap: 10px; }
  .brand { font-size: 20px; }
  .who { display: none; }
  .hero { min-height: 440px; padding-top: 48px; }
}
.mt { margin-top: 12px; }

/* Fixes: never wider than the screen; toolbar controls keep their size. */
html, body { overflow-x: clip; }
.top .wrap > * { min-width: 0; }
.nav { min-width: 0; }
.toolbar select { width: auto; flex: none; }
.toolbar .btn { flex: none; }
main, footer { position: relative; }
