/* Clean editorial skin for the games overview, matching the home page. Loaded after games.css. */
:root {
  --bg: #0e0e10;
  --bg-card: #1b1b20;
  --line: rgba(236, 235, 230, 0.12);
  --line-strong: rgba(236, 235, 230, 0.24);
  --text: #ecebe6;
  --muted: #a3a29c;
  --accent: #f2c230;
  --accent-ink: #141208;
  --radius: 6px;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  display: none;
}

.container {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 0.95rem;
}

.wordmark-text {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: 1.05rem;
}

.wordmark-text span {
  color: var(--muted);
  font-weight: 500;
}

.back-btn {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 14px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-btn:hover {
  transform: none;
  color: var(--text);
  background: transparent;
  border-color: var(--text);
}

/* Page head */
.wrap {
  width: min(1160px, 100% - 40px);
  padding: 72px 0 96px;
}

.page-head {
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2 {
  text-transform: none;
  text-shadow: none;
}

.page-head h1 {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Cards */
.games-grid {
  margin-top: 0;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}

.panel::before {
  display: none;
}

.game-card {
  padding: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: none;
}

.game-card > * {
  margin-left: 20px;
  margin-right: 20px;
}

.game-art {
  margin: 0;
  height: 168px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: none;
}

.game-card:hover .game-art {
  transform: none;
}

.game-card h2 {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: 1.18rem;
  letter-spacing: -0.005em;
}

.game-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.play-btn {
  margin-top: 18px;
  margin-bottom: 20px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.play-btn:hover {
  transform: none;
  background: #ffd451;
}

@media (max-width: 520px) {
  .wordmark-text span {
    display: none;
  }

  .wrap {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
