:root {
  color-scheme: dark;
  --bg: #0d0e11;
  --surface: #181a20;
  --surface-2: #20232b;
  --text: #f4f4f1;
  --muted: #a9adb8;
  --border: #33373f;
  --red: #e4261b;
  --red-dark: #8f120b;
  --yellow: #ffd21f;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", system-ui, sans-serif;
  --cut: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  /* subtle carbon weave */
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 0 2px, transparent 2px 6px);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--yellow); }
a:focus-visible, .game-card:focus-within {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Checkered flag strip */
.checker {
  height: 16px;
  flex: none;
  background: conic-gradient(#f4f4f1 25%, #101114 0 50%, #f4f4f1 0 75%, #101114 0) 0 0 / 16px 16px;
}

/* Header */
.site-header { background: #08090b; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--red); }

main { flex: 1; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: linear-gradient(180deg, #16181d 0%, transparent 100%);
}
/* speed lines */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -20%;
  background-image:
    linear-gradient(90deg, transparent 0 55%, rgba(228, 38, 27, 0.55) 55% 85%, transparent 85%),
    linear-gradient(90deg, transparent 0 20%, rgba(255, 255, 255, 0.16) 20% 45%, transparent 45%),
    linear-gradient(90deg, transparent 0 65%, rgba(255, 210, 31, 0.4) 65% 80%, transparent 80%),
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.1) 10% 50%, transparent 50%);
  background-size: 900px 3px, 700px 2px, 1100px 2px, 800px 1px;
  background-position: 0 22%, 0 48%, 0 71%, 0 88%;
  background-repeat: repeat-x;
  transform: skewY(-8deg);
  /* keep the streaks to the right, clear of the text */
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 45%, #000 80%);
  opacity: 0.8;
  animation: streak 5s linear infinite;
  pointer-events: none;
}
@keyframes streak {
  to { background-position: -900px 22%, -1400px 48%, -1100px 71%, -800px 88%; }
}
.hero .wrap { position: relative; }

.lights { display: flex; gap: 8px; margin: 0 0 22px; }
.lights span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(228, 38, 27, 0.9), inset 0 -3px 0 rgba(0, 0, 0, 0.3);
  animation: light 4s steps(1) infinite;
}
.lights span:nth-child(2) { animation-delay: 0.4s; }
.lights span:nth-child(3) { animation-delay: 0.8s; }
.lights span:nth-child(4) { animation-delay: 1.2s; }
.lights span:nth-child(5) { animation-delay: 1.6s; }
@keyframes light {
  0% { background: #3a1513; box-shadow: none; }
  10%, 100% { background: var(--red); box-shadow: 0 0 12px rgba(228, 38, 27, 0.9); }
}

.tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 14px;
  background: var(--yellow);
  color: #14120a;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: skewX(-12deg);
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.7rem, 9vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--red-dark);
  text-wrap: balance;
}
.hero h1 em { font-style: inherit; color: var(--red); text-shadow: 4px 4px 0 #000; }
.hero .lead { margin: 0; max-width: 34em; color: var(--muted); font-size: 1.15rem; }

/* Section title with racing stripes */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 26px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 14px;
  background: repeating-linear-gradient(-60deg, var(--red) 0 10px, transparent 10px 20px);
  opacity: 0.85;
}

/* Games grid */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 0 0 80px;
  padding: 0;
  list-style: none;
  counter-reset: grid;
}
.game {
  counter-increment: grid;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.game:hover, .game:focus-within {
  transform: translateY(-6px);
  filter: drop-shadow(0 10px 18px rgba(228, 38, 27, 0.55));
}
.game-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 22px;
  background: var(--border);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.game:hover .game-card, .game:focus-within .game-card { background: var(--red); }
/* inner fill, leaving a 3px "border" of the card background */
.game-card::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
/* grid position badge: P1, P2, ... */
.game-card::after {
  content: "P" counter(grid);
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 2px 12px 2px 16px;
  background: var(--yellow);
  color: #14120a;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
.game-card > * { position: relative; }
/* wide store banner, bleeding to the card's inner edge (card padding minus the 3px border) */
.game-banner {
  display: block;
  width: calc(100% + 38px);
  max-width: none;
  height: auto;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  margin: -21px -19px 4px;
  border-bottom: 3px solid #000;
}
.game h3 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.game p { margin: 0; color: var(--muted); font-size: 0.98rem; flex: 1; }

/* Arcade button */
.button {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--red-dark), 0 5px 0 2px #000;
  font-size: 0.86rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.1s ease;
}
.button:hover { background: #ff3a2e; }
.button.alt {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 5px 0 #0a0b0d, 0 5px 0 2px #000;
}
.button.alt:hover { background: #2c303a; color: var(--yellow); }
.button.alt:active { box-shadow: 0 1px 0 #0a0b0d, 0 1px 0 2px #000; }
.stores { display: flex; flex-wrap: wrap; gap: 14px 12px; padding-bottom: 6px; }
.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--red-dark), 0 1px 0 2px #000;
}

/* Long-form pages (privacy, 404) — calmer, built for reading */
.doc { max-width: 740px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--red-dark);
}
.doc .updated { margin: 0 0 36px; color: var(--muted); font-size: 0.95rem; }
.doc h2 {
  margin: 40px 0 10px;
  padding-left: 12px;
  border-left: 5px solid var(--red);
  color: var(--yellow);
  font-size: 1.25rem;
  line-height: 1.3;
}
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .button { margin-top: 12px; }

/* Footer */
.site-footer { background: #08090b; color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--yellow); }
.site-footer nav { display: flex; gap: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .lights span { animation: none; }
  .game, .button { transition: none; }
  .game:hover, .game:focus-within { transform: none; }
}
