/* HBG Games hub — matches main-site design system */
:root {
  --ink: #0d1117;
  --deep: #111827;
  --surface: #161d2b;
  --card: #1c2535;
  --border: #2a3649;
  --muted: #4b5e7a;
  --text: #c8d6e8;
  --light: #e8f0f8;
  --white: #f5f9ff;
  --copper: #c97d3a;
  --copper2: #e8943f;
  --teal: #2dd4bf;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

main {
  position: relative;
  z-index: 1;
  padding-top: 5.5rem;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}

.nav-logo-text span {
  color: var(--copper);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--copper);
}

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--copper);
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--copper2);
}

footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.footer-brand span {
  color: var(--copper);
}

.footer-mission {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--copper);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--copper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.games-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.games-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
}

.games-hero h1 .accent {
  color: var(--copper);
}

.games-hero p {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.games-grid-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: 100%;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  outline: none;
}

.game-card-tag {
  align-self: flex-start;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.game-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.1;
}

.game-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.game-card-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper2);
}

.games-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

@media (max-width: 768px) {
  nav {
    padding: 0.85rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .games-hero,
  .games-grid-wrap {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
