/* Pixel Tanks site: static, no cookies, no external requests (fonts and scripts would send visitors' IPs away). */
:root {
  --bg: #16141f;
  --panel: #221f30;
  --line: #34304a;
  --text: #ece9f4;
  --muted: #a7a2ba;
  --accent: #f4d25c;
  --link: #8fd0ff;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4ee;
    --panel: #ffffff;
    --line: #dcd7c8;
    --text: #1d1b26;
    --muted: #5e5a6c;
    --accent: #9a6a00;
    --link: #1f5f9e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
img.pixel { image-rendering: pixelated; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
header.top a.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
header.top img { width: 32px; height: 32px; }

main { padding: 32px 0 48px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* The top of the main page: a battle (hero.js) under the game's dimming. Dark in both themes, like the game. */
.hero { position: relative; overflow: hidden; background: #16141f; color: #ece9f4; text-align: center; padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; }
.hero canvas.on { opacity: 1; }
.hero .wrap { position: relative; text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, .8); }
.hero .logo { width: 368px; max-width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
.hero h1 { margin-top: 20px; }
.hero .lead { font-size: 18px; color: #d6d2e4; max-width: 620px; margin: 0 auto; }
.hero .muted { color: #b9b4cc; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 24px 0 12px; }
.store {
  display: inline-block; padding: 10px 16px; border: 1px solid #4a4566; border-radius: 8px;
  background: rgba(22, 20, 31, .82); color: #d6d2e4; font-weight: 600; text-decoration: none;
}

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.modes figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.modes img { width: 100%; height: auto; display: block; }
.modes figcaption { padding: 10px 14px 12px; font-size: 15px; }
.modes b { display: block; color: var(--accent); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 0; list-style: none; margin: 24px 0; }
.features li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0; }
.features b { display: block; color: var(--accent); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 6px; display: block; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }

.legal h2 { border-top: 1px solid var(--line); padding-top: 20px; }
table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
th { background: var(--panel); }
.table-scroll { overflow-x: auto; }
code { font-family: var(--mono); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
