/* StopRun — the game's own site. The facility at night: dark steel, one
   accent, the yellow of the logo and the hazard stripes. Big Shoulders for
   headings and DM Mono for labels, as in the game; DM Sans for reading. */

:root {
  --bg: #0b0f18;
  --bg-raised: #121827;
  --ink: #eef1f6;
  --ink-soft: #b3bccb;
  --ink-faint: #7d8799;
  --line: rgba(238, 241, 246, 0.12);
  --accent: #ffc83d;
  --accent-ink: #1f1600;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 18px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The hazard stripe along the top, as on the game's floors. */
body::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #11151f 12px 24px);
}

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

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

h1, h2, h3 {
  font-family: "Big Shoulders Display", "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.45em;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.label {
  display: inline-block;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* --- Top bar ---------------------------------------------------------- */

.bar { padding: 16px 0; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.bar a:hover { color: var(--accent); }
.bar .home {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.bar .home img { width: 34px; height: 34px; border-radius: 9px; }
.bar nav { display: flex; gap: 22px; }

/* --- Hero ------------------------------------------------------------- */

.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 104px); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero .logo { width: min(420px, 86%); margin: 0 0 18px -6px; }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-soft); max-width: 31em; margin-bottom: 28px; }
.hero .art img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.store small {
  display: block;
  font-family: "DM Mono", monospace;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.store svg { width: 22px; height: 22px; }
.store.soon { cursor: default; }

.ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(238, 241, 246, 0.35);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.ghost:hover { border-color: var(--ink); color: #fff; }

/* --- Sections --------------------------------------------------------- */

section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }

.intro { text-align: center; max-width: 38em; margin: 0 auto clamp(36px, 5vw, 60px); }
.intro p { color: var(--ink-soft); font-size: 1.1rem; }

/* How it plays: a phone and the words beside it, turning each row. */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.row:last-child { margin-bottom: 0; }
.row:nth-child(even) .shot { order: 2; }
.shot { display: grid; place-items: center; }
.shot img {
  width: min(280px, 72vw);
  border-radius: 30px;
  border: 7px solid #04060b;
  box-shadow: 0 0 0 1px var(--line), 0 26px 60px rgba(0, 0, 0, 0.55);
}
.row .words p { color: var(--ink-soft); font-size: 1.1rem; }

/* Six worlds. */
.worlds { background: var(--bg-raised); border-block: 1px solid var(--line); }
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.world img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.world h3 { margin-bottom: 6px; }
.world .label { margin-bottom: 4px; font-size: 0.78rem; }
.world p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* The traps, each on a lit patch of floor. */
.traps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 34px); }
.trap { text-align: center; }
.trap .pic {
  height: 190px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: radial-gradient(ellipse 55% 22% at 50% 92%, rgba(255, 200, 61, 0.16), rgba(255, 200, 61, 0) 70%);
}
.trap .pic img { max-height: 170px; width: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5)); }
.trap h3 { margin-bottom: 6px; }
.trap p { color: var(--ink-soft); font-size: 1rem; margin: 0 auto; max-width: 22em; }

/* OVERSIGHT, in its own room. */
.core { text-align: center; overflow: hidden; isolation: isolate; }
.core > img.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.core::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 15, 24, 0.7) 25%, rgba(11, 15, 24, 0.7) 75%, var(--bg) 100%);
}
.core .eye { width: min(220px, 50vw); margin: 0 auto 26px; filter: drop-shadow(0 0 40px rgba(255, 60, 60, 0.35)); }
.core .intro { margin-bottom: 0; }
.core blockquote {
  margin: 26px auto 0;
  font-family: "DM Mono", monospace;
  font-size: 0.98rem;
  color: var(--ink);
  max-width: 34em;
}

/* Medals, bolts and skins. */
.medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(22px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); }
.medals figure { margin: 0; text-align: center; width: 120px; }
.medals img { width: 84px; height: 84px; margin: 0 auto 8px; }
.medals figcaption { font-family: "DM Mono", monospace; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.lineup { margin: 0 0 clamp(28px, 4vw, 44px); }
.lineup img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.lineup figcaption { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 1rem; }

/* The plain facts, in a line. */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; padding: 0; margin: 0; list-style: none; }
.facts li {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.45rem;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}
.facts li:first-child { border-left: 0; }

/* --- Text pages (privacy, support) ------------------------------------- */

.page { padding: clamp(32px, 6vw, 64px) 0 80px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); }
.page .meta { color: var(--ink-faint); font-size: 0.95rem; margin-bottom: 28px; }
.page h2 { font-size: 1.75rem; margin-top: 1.6em; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.45em; }
.page strong { color: var(--ink); }
.summary {
  border-radius: var(--radius);
  padding: 22px 26px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.summary p:last-child { margin-bottom: 0; }
.qa { border-top: 1px solid var(--line); padding: 22px 0 6px; }
.qa h2 { margin-top: 0; font-size: 1.5rem; }

/* --- Footer ----------------------------------------------------------- */

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--ink-faint); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-soft); }

/* --- Tablets and phones ------------------------------------------------ */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .art { order: -1; }
  .world-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .bar nav { gap: 16px; }
  .bar nav a.extra { display: none; }
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .shot { order: 0; }
  .traps { grid-template-columns: repeat(2, 1fr); }
  .trap .pic { height: 140px; }
  .trap .pic img { max-height: 124px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
  .facts li { padding: 0; border-left: 0; font-size: 1.2rem; }
}

@media (max-width: 520px) {
  .world-grid { grid-template-columns: 1fr; }
}
