/* Stompede's website. One stylesheet, no fonts fetched, no scripts.
   Colours are the game's UI theme (data/palette.json "ui"). */

:root {
  color-scheme: dark;
  --ground: #0b1420;
  --panel: #101b2a;
  --panel-deep: #0c1622;
  --border: #24506a;
  --button: #16283e;
  --text: #e8f4f8;
  --dim: #8aa8b8;
  --accent: #3ce8d6;
  --accent-deep: #17584f;
  --on-accent: #06232a;
  --coin: #ffce33;
  --danger: #ff5a3c;
  --shadow: #050b12;
  --radius: 12px;
  --head: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hazard: repeating-linear-gradient(-45deg, var(--coin) 0 10px, #16130a 10px 20px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ground);
  /* a faint voxel grid under everything */
  background-image:
    linear-gradient(rgba(60, 232, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 232, 214, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font: 17px/1.55 var(--body);
}

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-inline: max(18px, env(safe-area-inset-left, 0px));
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #8ff5ea; }

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); margin-top: 1.6em; }
h3 { font-size: 1.1rem; margin-top: 1.4em; }

p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
strong { color: #fff; }

/* the hazard band, as on the game's DEPLOY key */
.hazard { height: 10px; background: var(--hazard); }

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 20, 32, 0.92);
  border-bottom: 2px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.brand { display: flex; align-items: center; line-height: 0; }
.brand img { width: 150px; image-rendering: pixelated; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font: 700 0.85rem/1 var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  padding: 9px 11px;
  border: 2px solid transparent;
  border-radius: 9px;
}
.nav a:hover { color: var(--text); border-color: var(--border); }
.nav a[aria-current="page"] { color: var(--accent); border-color: var(--border); background: var(--button); }

main { padding-block: 28px 56px; }

/* panels: the game's sheets */
.panel {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--shadow);
  padding: 20px 20px 6px;
  margin-bottom: 22px;
}
.panel > :first-child { margin-top: 0; }

.label {
  display: inline-block;
  font: 800 0.75rem/1 var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coin);
  margin-bottom: 10px;
}

.lede { font-size: 1.15rem; color: var(--text); }
.dim { color: var(--dim); }
.small { font-size: 0.9rem; }

/* placeholders the owner fills in before the site goes live */
.ph {
  background: rgba(255, 90, 60, 0.18);
  border: 1px dashed var(--danger);
  border-radius: 4px;
  padding: 0 4px;
  color: #ffb4a6;
  font-weight: 600;
}

/* hero */
.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding-block: 18px 8px;
}
.hero .icon {
  width: 132px;
  height: 132px;
  border-radius: 29px;
  border: 3px solid var(--shadow);
  box-shadow: 0 6px 0 var(--shadow), 0 0 0 3px var(--border);
}
.hero .mark { width: min(560px, 92%); image-rendering: pixelated; margin-top: 6px; }
.hero .lede { max-width: 34em; margin: 0; }

/* the store keys */
.keys { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 4px; }
.key {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 10px;
  font: 800 1rem/1.1 var(--head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  border: 3px solid var(--shadow);
  box-shadow: 0 5px 0 var(--accent-deep), 0 5px 0 3px var(--shadow);
  position: relative;
  overflow: hidden;
}
.key small { display: block; font-size: 0.68rem; letter-spacing: 0.1em; opacity: 0.8; }
.key.soon { padding-left: 34px; padding-right: 34px; }
.key.soon::before, .key.soon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background: var(--hazard);
}
.key.soon::before { left: 0; }
.key.soon::after { right: 0; }
.key.later {
  color: var(--dim);
  background: var(--button);
  box-shadow: 0 5px 0 var(--shadow);
  border-color: var(--border);
}
.key svg { width: 22px; height: 22px; flex: none; }

/* screenshots */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 300px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  margin-inline: -2px;
}
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img {
  display: block;
  width: 100%;
  aspect-ratio: 648 / 1152;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid var(--shadow);
  box-shadow: 0 0 0 2px var(--border), 0 6px 0 2px var(--shadow);
  background: var(--panel-deep);
}
.shots figcaption {
  font: 700 0.8rem/1.3 var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  margin-top: 12px;
}
@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .shots.five { grid-template-columns: repeat(5, 1fr); }
}

/* the three beats of the game */
.beats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 22px; }
.beat { background: var(--panel); border: 2px solid var(--border); border-radius: var(--radius); box-shadow: 0 5px 0 var(--shadow); padding: 16px 18px; }
.beat h3 { margin: 0 0 6px; color: var(--accent); }
.beat p { margin: 0; color: var(--dim); }

/* fact sheet */
.facts { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid rgba(36, 80, 106, 0.6); }
.facts th { width: 34%; padding-right: 14px; font: 700 0.8rem/1.5 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* downloads */
.files { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 16px; }
.file {
  display: grid;
  gap: 8px;
  align-content: start;
  text-decoration: none;
  color: var(--text);
  background: var(--panel-deep);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}
.file:hover { border-color: var(--accent); color: var(--text); }
.file img { display: block; width: 100%; height: 96px; object-fit: contain; image-rendering: auto; }
.file img.px { image-rendering: pixelated; }
.file span { font: 700 0.85rem/1.3 var(--head); }
.file small { color: var(--dim); font-size: 0.78rem; }

/* FAQ */
details {
  background: var(--panel-deep);
  border: 2px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font: 800 1.02rem/1.3 var(--head);
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--coin); }
details[open] summary::before { content: "\2013"; }
details > div { padding: 0 16px 4px 16px; }

.mail {
  display: inline-block;
  font: 800 1.1rem/1.2 var(--head);
  word-break: break-all;
  padding: 12px 14px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--panel-deep);
  margin-bottom: 1em;
}

.note {
  border-left: 4px solid var(--coin);
  background: rgba(255, 206, 51, 0.07);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.2em;
}

/* footer */
.foot { border-top: 2px solid var(--border); background: var(--panel-deep); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot .wrap { padding-block: 22px 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; color: var(--dim); font-size: 0.9rem; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

.prose { max-width: 42em; }
.mark-h { margin: 0; line-height: 0; width: 100%; display: grid; justify-items: center; }

/* phones: the header stacks, the nav spans the width */
@media (max-width: 560px) {
  .top { position: static; }
  .top .wrap { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 8px; padding-block: 10px 8px; }
  .brand img { width: 128px; }
  .nav { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; gap: 4px; }
  .nav a { text-align: center; padding: 10px 2px; font-size: 0.78rem; letter-spacing: 0.04em; }
}

.files { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.file img.shot { height: auto; aspect-ratio: 648 / 1152; object-fit: cover; border-radius: 8px; }
.home .top .brand { display: none; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.panel.prose { max-width: none; }
.panel.prose > p, .panel.prose > ul, .panel.prose > ol, .panel.prose > h1, .panel.prose > h2 { max-width: 42em; }
