﻿:root {
  --bg: #f5f7fb;
  --ink: #011d38;
  --muted: #586778;
  --paper: #ffffff;
  --line: #d8e0ea;
  --accent: #c30101;
  --accent-dark: #8f0101;
  --sun: #f4b63f;
  --blue: #2f6fab;
  --teal: #148f91;
  --shadow: 0 18px 45px rgba(1, 29, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, rgba(195, 1, 1, 0.045) 0 1px, transparent 1px 84px);
  background-position: left top;
  background-size: 84px 84px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 0;
  display: grid;
  align-items: end;
  padding: 34px 0 24px;
  text-align: center;
}

.hero .site-shell {
  display: grid;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-logo {
  display: block;
  width: min(330px, 78vw);
  height: auto;
  margin: 0 0 18px;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 16px 0 0;
  color: #31465a;
  font-size: 1.1rem;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(1, 29, 56, 0.08);
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.field-game-types {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.game-type-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.game-type-option {
  display: inline-flex;
  cursor: pointer;
}

.game-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.game-type-option span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(1, 29, 56, 0.18);
  border-radius: 999px;
  background: #f5f8fc;
  color: var(--ink);
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 900;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.game-type-option:hover span {
  border-color: rgba(195, 1, 1, 0.42);
  transform: translateY(-1px);
}

.game-type-option input:focus-visible + span {
  outline: 3px solid rgba(195, 1, 1, 0.14);
  outline-offset: 2px;
}

.game-type-option input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(195, 1, 1, 0.18);
}

input:not([type="checkbox"]),
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  padding: 9px 11px;
}

input:not([type="checkbox"]):focus,
select:focus {
  outline: 3px solid rgba(195, 1, 1, 0.14);
  border-color: var(--accent);
}

.reset-filters {
  min-height: 32px;
  border: 1px solid rgba(195, 1, 1, 0.28);
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 5px 10px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.reset-filters:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(195, 1, 1, 0.08);
  transform: translateY(-1px);
}

.reset-filters:focus-visible {
  outline: 3px solid rgba(195, 1, 1, 0.14);
  outline-offset: 2px;
}

.reset-filters:disabled {
  border-color: var(--line);
  color: rgba(77, 97, 118, 0.58);
  cursor: default;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 14px;
}

.results-bar h2 {
  margin: 0;
  font-size: 1.4rem;
}

.count {
  color: var(--muted);
  font-weight: 700;
}

.results-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}

.game-card {
  display: grid;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(1, 29, 56, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(195, 1, 1, 0.36);
  box-shadow: 0 14px 28px rgba(1, 29, 56, 0.13);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.game-id,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.game-id {
  background: rgba(1, 29, 56, 0.1);
  color: var(--ink);
}

.pill {
  background: rgba(195, 1, 1, 0.1);
  color: var(--accent-dark);
}

.game-card h3 {
  margin: 28px 0 8px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.game-card p {
  margin: 0;
  color: #42566a;
}

.card-alt-title {
  color: var(--muted);
  font-weight: 700;
}

.card-tagline {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-self: end;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.meta span {
  display: inline-flex;
  align-items: center;
}

.meta span + span::before {
  content: "";
  width: 1px;
  height: 0.95em;
  margin: 0 8px;
  background: rgba(88, 103, 120, 0.38);
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px 0 0;
}

.nav-logo {
  width: min(230px, 58vw);
  height: auto;
}

.detail-home-link {
  grid-column: 2;
  display: inline-flex;
  justify-self: center;
}

.back-link {
  justify-self: start;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.detail {
  padding: 42px 0 72px;
}

.detail-copy {
  max-width: 780px;
  margin: 0 auto;
}

.detail-summary {
  color: #31465a;
  font-size: 1.18rem;
}

.alt-title,
.tagline {
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 800;
}

.alt-title {
  color: var(--muted);
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.section-title {
  margin: 28px 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--accent);
}

.rich-text {
  display: grid;
  gap: 12px;
}

.rich-text p {
  margin: 0;
}

.rich-text strong {
  color: var(--ink);
  font-weight: 900;
}

.variants {
  display: grid;
  gap: 12px;
}

.variant {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 14px;
}

.variant h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.variant p {
  margin: 0;
}

.variant .rich-text {
  gap: 8px;
}

.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.video-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 10px 28px rgba(1, 29, 56, 0.12);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .filters,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .stat-list,
  .videos {
    grid-template-columns: 1fr;
  }

  .detail-nav {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .detail-home-link {
    grid-column: auto;
    justify-self: center;
    order: 1;
  }

  .back-link {
    grid-column: auto;
    justify-self: start;
    order: 2;
  }
}

