/* PANZAAR website: the game's brutalist concrete look. Hard edges, heavy borders, uppercase monospace. */

:root {
  --c0: #1a1a1a;
  --c1: #2b2b2b;
  --c2: #8d8d8d;
  --c3: #d9d9d9;
  --ink: #111111;
  --white: #ffffff;
  --humans: #ff5a1f;
  --claire: #19d3ff;
  --ok: #9be564;
  --mono: ui-monospace, 'SFMono-Regular', 'DejaVu Sans Mono', 'Liberation Mono', Menlo, Consolas, monospace;
  --shadow: 8px 8px 0 #000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--c0);
  color: var(--c3);
  font: 15px/1.6 var(--mono);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b { color: var(--white); }
.c, .c b { color: var(--claire); }
h2, h3, .bar, .btn, .pill, .facts, .foot, th { text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px;
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 3px solid #000;
  backdrop-filter: blur(4px);
}
.bar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; color: var(--white); }
.bar-logo img { image-rendering: pixelated; }
.bar-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; }
.bar-nav a { text-decoration: none; color: var(--c2); }
.bar-nav a:hover { color: var(--white); }
.bar-nav .bar-cta { color: var(--ink); background: var(--humans); padding: 6px 12px; border: 2px solid #000; }
.bar-nav .bar-cta:hover { color: var(--ink); background: var(--white); }

/* ---- hero */
.hero { position: relative; overflow: hidden; border-bottom: 3px solid #000; }
.hero-art {
  position: absolute; inset: 0;
  background: url('/img/hero.jpg') center / cover no-repeat;
  image-rendering: pixelated;
}
.hero-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.75) 55%, var(--c0) 100%);
}
.hero-body { position: relative; max-width: 980px; margin: 0 auto; padding: 72px 24px 64px; text-align: center; }
.hero-h { margin: 0 0 26px; }
.hero-logo { width: min(720px, 100%); margin: 0 auto; image-rendering: pixelated; filter: drop-shadow(6px 6px 0 #000); }
.lede { max-width: 680px; margin: 0 auto 36px; font-size: 16px; color: var(--c3); text-shadow: 0 2px 0 #000; }

/* ---- download */
.dl { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 34px; text-decoration: none;
  border: 3px solid #000; box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-main { background: var(--humans); color: var(--ink); min-width: min(420px, 100%); }
.btn-main:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #000; }
.btn-main:active { transform: translate(4px, 4px); box-shadow: 4px 4px 0 #000; }
.btn-main[aria-disabled='true'] { background: var(--c1); color: var(--c2); cursor: default; transform: none; box-shadow: var(--shadow); }
.btn-k { font-weight: 900; font-size: 20px; }
.btn-s { font-size: 12px; font-weight: 700; opacity: 0.8; }
.dl-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; }
.dl-alt a { color: var(--c3); }
.dl-alt a:hover { color: var(--white); }
.status { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; background: rgba(17,17,17,0.85); border: 2px solid #000; color: var(--c3); }
.pill i { width: 9px; height: 9px; background: var(--c2); }
.pill.on i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill.off i { background: var(--humans); }
.pill-steam { color: var(--claire); }

/* ---- facts band */
.band { background: var(--c1); border-bottom: 3px solid #000; }
.facts { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { display: flex; flex-direction: column; align-items: center; padding: 22px 8px; border-right: 3px solid #000; }
.facts div:first-child { border-left: 3px solid #000; }
.facts b { font-size: 34px; font-weight: 900; color: var(--humans); line-height: 1.1; }
.facts span { font-size: 12px; color: var(--c2); font-weight: 700; }

/* ---- sections */
.wrap { max-width: 1100px; margin: 0 auto; padding: 64px 24px 8px; }
h2 { margin: 0 0 22px; font-size: 26px; font-weight: 900; color: var(--white); display: flex; align-items: center; gap: 14px; }
h2::before { content: ''; width: 14px; height: 14px; background: var(--humans); }
h3 { margin: 0 0 8px; font-size: 15px; font-weight: 900; color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid > *, .shots > * { min-width: 0; }
.card { background: var(--c1); border: 3px solid #000; box-shadow: var(--shadow); padding: 20px; }
.card p { margin: 0; }
.card.c { border-color: #000; outline: 2px solid var(--claire); outline-offset: -5px; }
.card.c h3 { color: var(--claire); }

.modes { list-style: none; margin: 0; padding: 0; border: 3px solid #000; box-shadow: var(--shadow); background: var(--c1); }
.modes li { display: grid; grid-template-columns: 300px 1fr; gap: 18px; padding: 16px 20px; border-bottom: 2px solid #000; }
.modes li:last-child { border-bottom: 0; }
.modes li b { font-weight: 900; }
.modes li.c { background: rgba(25, 211, 255, 0.07); }
.modes li span { color: var(--c3); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shots a { display: block; border: 3px solid #000; box-shadow: 5px 5px 0 #000; background: #000; overflow: hidden; }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.2s ease; }
.shots a:hover img { transform: scale(1.04); }

.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 0 0 8px; }
.steps code { display: block; margin: 8px 0 4px; padding: 8px 10px; background: var(--ink); border: 2px solid #000; color: var(--claire); font-size: 13px; overflow-x: auto; white-space: nowrap; }
.note { margin: 22px 0 0; color: var(--c2); }

.specs { width: 100%; border-collapse: collapse; border: 3px solid #000; box-shadow: var(--shadow); background: var(--c1); }
.specs th, .specs td { padding: 10px 16px; border-bottom: 2px solid #000; text-align: left; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 180px; color: var(--humans); font-size: 13px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 72px; padding: 18px 24px; border-top: 3px solid #000; background: var(--ink); color: var(--c2); font-size: 12px; font-weight: 700; }

/* ---- lightbox */
.lightbox { padding: 0; border: 3px solid #000; background: #000; max-width: min(1600px, 96vw); box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox img { width: 100%; }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 2px solid #000; background: var(--humans); color: var(--ink); font: 900 18px var(--mono); cursor: pointer; }

/* ---- small screens */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .modes li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .bar { padding: 10px 16px; }
  .bar-nav a:not(.bar-cta) { display: none; }
  .hero-body { padding: 48px 16px 44px; }
  .btn { padding: 14px 18px; }
  .btn-k { font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:first-child { border-left: 0; }
  .facts div:nth-child(2n) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 3px solid #000; }
  .wrap { padding: 48px 16px 4px; }
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .specs th { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shots img { transition: none; }
}
