/*
 * Per-game pages (/games and /games/<slug>).
 *
 * These pages exist for two reasons. The obvious one is that a visitor who
 * hears about one game should land on a page about that game rather than on
 * the studio home page. The less obvious one is that Google's OAuth branding
 * review rejected Truck Masters India in August 2026 with "your home page does
 * not explain the purpose of your app" and "the app name configured for your
 * OAuth consent screen does not match the app name on your home page". Both
 * complaints were fair: every project pointed at highbrowinteractive.com, which
 * is a studio page listing seven titles, so no game had a page of its own.
 *
 * That is why the h1 on each page is the game's name EXACTLY as it appears in
 * the Google Auth Platform console, and why the first paragraph says plainly
 * what the app is. Change either and the verification breaks again.
 *
 * Palette and fonts are the site's own: black, white, #d9d9d9 grey, #4abf2c
 * green, Rajdhani for headings, Open Sans for body.
 */

:root {
  --g-bg: #000000;
  --g-panel: #1c1c1c;
  --g-deep: #05140a;
  --g-text: #ffffff;
  --g-muted: #d9d9d9;
  --g-dim: #939393;
  --g-green: #4abf2c;
  --g-green-bright: #30ff5d;
  --g-amber: #ffae00;
}

.game-page {
  background: var(--g-bg);
  color: var(--g-text);
  font-family: 'Open Sans', sans-serif;
}

/* ---------- hero ---------- */

.game-hero {
  position: relative;
  padding: 190px 0 70px;
  overflow: hidden;
}

.game-hero::after {
  /* Keeps the hero art from fighting the text on top of it. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 45%, #000 100%);
  z-index: 1;
}

.game-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.game-hero-inner {
  position: relative;
  z-index: 2;
}

.game-hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 26px;
  object-fit: cover;
  margin-bottom: 22px;
}

.game-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 15px;
  font-weight: 600;
  color: var(--g-green-bright);
  margin-bottom: 6px;
}

/*
 * The h1. Must read exactly as the OAuth consent screen app name.
 * Not text-transform: uppercase — a reviewer comparing strings should see the
 * real casing in the markup, not a CSS illusion of it.
 */
.game-title-h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.game-lede {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--g-muted);
  max-width: 720px;
  margin-bottom: 26px;
}

/* ---------- store buttons + stats ---------- */

.game-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.game-stores img {
  width: 62px;
  height: 62px;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-family: 'Rajdhani', sans-serif;
}

.game-stat-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--g-green-bright);
  line-height: 1.1;
}

.game-stat-label {
  font-family: 'Open Sans', sans-serif;
  font-size: .78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--g-dim);
}

/* ---------- body sections ---------- */

.game-section {
  padding: 62px 0;
}

.game-section--panel {
  background: var(--g-panel);
}

.game-h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 26px;
}

.game-body p {
  color: var(--g-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.game-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.game-features li {
  background: var(--g-deep);
  border-left: 3px solid var(--g-green);
  border-radius: 8px;
  padding: 20px 22px;
  color: var(--g-muted);
  line-height: 1.65;
}

.game-features strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  color: var(--g-text);
  margin-bottom: 6px;
}

/* ---------- account / sign-in note ---------- */

/*
 * The OAuth reviewer reads this. It states what the Google sign-in in the game
 * is actually for, which is the question the consent screen raises and the
 * studio page never answered.
 */
.game-account {
  background: var(--g-deep);
  border: 1px solid rgba(74, 191, 44, .35);
  border-radius: 12px;
  padding: 26px 28px;
}

.game-account h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.game-account p {
  color: var(--g-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.game-account a {
  color: var(--g-green-bright);
}

/* ---------- hub grid (/games) ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--g-panel);
  border-radius: 14px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: border-color .18s ease, transform .18s ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: var(--g-green);
  transform: translateY(-4px);
  color: inherit;
}

.game-card img {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 16px;
}

.game-card h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.game-card p {
  color: var(--g-dim);
  font-size: .93rem;
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}

.game-card span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--g-green-bright);
}

/* ---------- other games strip ---------- */

.game-more {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.game-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--g-panel);
  border-radius: 10px;
  padding: 12px 18px;
  color: var(--g-muted);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}

.game-more a:hover,
.game-more a:focus-visible {
  background: var(--g-deep);
  color: var(--g-green-bright);
}

.game-more img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .game-hero {
    padding: 150px 0 50px;
  }

  .game-hero-icon {
    width: 96px;
    height: 96px;
  }

  .game-section {
    padding: 44px 0;
  }
}

/*
 * The site ships no prefers-reduced-motion handling anywhere else, but the
 * looping hero video is the one element here that genuinely moves on its own.
 */
@media (prefers-reduced-motion: reduce) {
  .game-card {
    transition: none;
  }

  .game-card:hover {
    transform: none;
  }
}
