*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #09090b;
  --panel: #f7f3e8;
  --panel-dark: #242424;
  --ink: #171717;
  --muted: #6b6259;
  --border: #111111;
  --red: #d83a2e;
  --yellow: #f7c948;
  --link: #1659c7;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(216, 58, 46, 0.18), transparent 22rem),
    linear-gradient(180deg, #18181b 0%, #0a0a0a 100%);
}

.back-bar {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

.back-link {
  color: #cbd5e1;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 0.4rem;
  text-decoration: none;
}

.back-link:hover {
  color: white;
}

.game-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-header {
  color: white;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.eyebrow {
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.25rem, 9vw, 5rem);
  line-height: 0.95;
  margin-bottom: 0.7rem;
}

.intro {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 620px;
}

.incident-list {
  display: grid;
  gap: 1rem;
}

.incident-card {
  background: var(--panel);
  border: 4px solid var(--border);
  border-radius: 0.35rem;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.incident-card__stripe {
  background: repeating-linear-gradient(
    45deg,
    var(--yellow) 0 16px,
    var(--border) 16px 32px
  );
  border-bottom: 4px solid var(--border);
  height: 18px;
}

.incident-card__body {
  padding: clamp(1rem, 4vw, 1.4rem);
}

.incident-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  justify-content: center;
  line-height: 1.05;
  margin-bottom: 0.95rem;
  text-align: center;
}

.incident-title__prefix {
  color: var(--muted);
  font-size: clamp(1.05rem, 4vw, 1.55rem);
  font-weight: 900;
  text-transform: uppercase;
}

.incident-title__name {
  color: var(--ink);
  font-size: clamp(1.55rem, 7vw, 3rem);
  font-weight: 950;
}

.digits {
  align-items: center;
  background: var(--panel-dark);
  border: 4px solid var(--border);
  border-radius: 0.25rem;
  display: flex;
  gap: clamp(0.2rem, 1.2vw, 0.45rem);
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
  padding: clamp(0.5rem, 2vw, 0.8rem);
}

.digit {
  align-items: center;
  background: linear-gradient(180deg, #171717 0%, #050505 50%, #1f1f1f 51%, #0b0b0b 100%);
  border: 2px solid #000;
  border-radius: 0.2rem;
  color: #f8fafc;
  display: flex;
  font-size: clamp(2.35rem, 11vw, 5.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  height: clamp(3.2rem, 14vw, 7.4rem);
  justify-content: center;
  line-height: 1;
  min-width: clamp(2rem, 9vw, 4.7rem);
  position: relative;
  text-shadow: 0 2px 0 #000;
}

.digit::after {
  background: rgba(255, 255, 255, 0.08);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
}

.last-line {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.last-line strong {
  color: var(--ink);
  font-weight: 900;
}

.last-line a {
  color: var(--link);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.source-note {
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 1.25rem;
  text-align: center;
}

@media (max-width: 520px) {
  .game-shell {
    padding-inline: 0.8rem;
  }

  .incident-card {
    border-width: 3px;
  }

  .digits {
    border-width: 3px;
  }
}
