/* ============================================================
   TICKRATE — Cyber Club
   Design system: "Molten ember on gunmetal"
   Dark matte-black canvas, single ember-orange accent (#ff4300),
   system font at weight 700 only, elevation via tone shifts.
   ============================================================ */

/* ----------------------------------------------------------------
   1. Design Tokens
   ---------------------------------------------------------------- */
:root {
  /* Colors */
  --color-ember-orange: #ff4300;
  --color-ember-dim: #cc3600;
  --color-void-black: #111111;
  --color-obsidian: #181818;
  --color-charcoal: #2b2a2a;
  --color-graphite: #343434;
  --color-steel: #666666;
  --color-fog: #8d8d8d;
  --color-ash: #999999;
  --color-silver: #cacaca;
  --color-pure-white: #ffffff;
  --color-bone: #e9e6e6;

  /* Semantic roles */
  --bg-canvas: var(--color-void-black);
  --bg-card: var(--color-obsidian);
  --bg-panel: var(--color-charcoal);
  --border-structural: var(--color-graphite);
  --border-hairline: rgba(202, 202, 202, 0.14);
  --text-primary: var(--color-pure-white);
  --text-default: var(--color-silver);
  --text-muted: var(--color-ash);
  --text-faint: var(--color-fog);

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Inter, sans-serif;
  --font-weight-bold: 700;

  --text-body: 14px;
  --text-body-lg: 16px;
  --text-subheading: 20px;
  --text-heading-sm: 24px;
  --text-heading: 46px;
  --text-display: 68px;

  /* Spacing (4px base) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-60: 60px;
  --space-76: 76px;
  --space-100: 100px;
  --space-120: 120px;
  --space-128: 128px;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 100px;
  --card-padding: 20px;
  --element-gap: 20px;

  /* Border radius */
  --radius-badge: 7px;
  --radius-button: 15px;
  --radius-card: 22px;
  --radius-card-lg: 25px;
  --radius-input: 50px;
  --radius-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 180ms;
  --font-display: "Arial Black", Impact, ui-sans-serif, sans-serif;

  /* Glow system */
  --glow-sm: 0 0 8px rgba(255, 67, 0, 0.28), 0 0 24px rgba(255, 67, 0, 0.1);
  --glow-md: 0 0 14px rgba(255, 67, 0, 0.4), 0 0 40px rgba(255, 67, 0, 0.15);
  --glow-lg: 0 0 22px rgba(255, 67, 0, 0.55), 0 0 64px rgba(255, 67, 0, 0.2);
  --border-ember: rgba(255, 67, 0, 0.45);
}

/* ----------------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* offset for the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-body-lg);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-default);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* Strong UI elements keep the signature weight without flattening hierarchy. */
h1, h2, h3, h4, h5, h6,
.btn, .nav__link, .brand, .badge, .eyebrow,
.stat__value, .price-card__amount, .price-card__name {
  font-weight: var(--font-weight-bold);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-ember-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--color-ember-orange);
  color: var(--color-pure-white);
}

/* ----------------------------------------------------------------
   3. Layout primitives
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: 24px;
  min-width: 0;
}

.section {
  padding-block: clamp(56px, 9vw, var(--section-gap));
}

.section--tight {
  padding-block: clamp(40px, 6vw, 64px);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-48);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--element-gap);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ember-orange);
  margin-bottom: var(--space-16);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ember-orange);
}

/* ----------------------------------------------------------------
   4. Typography utilities
   ---------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 8.5vw, var(--text-display));
  line-height: 1;
  letter-spacing: -0.056em;
  color: var(--text-primary);
}

.heading {
  font-size: clamp(32px, 5.5vw, var(--text-heading));
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.heading-sm {
  font-size: var(--text-heading-sm);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.subheading {
  font-size: var(--text-subheading);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.lead {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.4;
  letter-spacing: -0.011em;
  color: var(--text-muted);
}

.body {
  font-size: var(--text-body-lg);
  line-height: 1.5;
  color: var(--text-default);
}

.muted {
  color: var(--text-muted);
}

.accent {
  color: var(--color-ember-orange);
}

.text-center {
  text-align: center;
}

/* ----------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 12px 22px;
  font-size: var(--text-body-lg);
  letter-spacing: -0.015em;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* Primary — the only chromatic button */
.btn--primary {
  background: var(--color-ember-orange);
  color: var(--color-pure-white);
}

.btn--primary:hover {
  background: #ff5a22;
  box-shadow: var(--glow-md);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--glow-sm);
}

/* Ghost — transparent with hairline border */
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-structural);
}

.btn--ghost:hover {
  border-color: rgba(255, 67, 0, 0.5);
  color: var(--color-ember-orange);
  box-shadow: inset 0 0 0 1px rgba(255, 67, 0, 0.15);
}

/* Bone — off-white solid */
.btn--bone {
  background: var(--color-bone);
  color: var(--color-void-black);
}

.btn--bone:hover {
  background: var(--color-pure-white);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

/* ----------------------------------------------------------------
   6. Badges & pills
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-badge);
  background: var(--color-pure-white);
  color: var(--color-void-black);
}

.badge--ember {
  background: var(--color-ember-orange);
  color: var(--color-pure-white);
}

.badge--outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-structural);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 8px 16px;
  font-size: var(--text-body);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-structural);
  color: var(--text-default);
  background: var(--bg-card);
}

/* Status pill: ember dot + label + helper */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-body);
}

.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-ember-orange);
  flex-shrink: 0;
  animation: ember-pulse 2.2s ease-in-out infinite;
}

@keyframes ember-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 67, 0, 0.7); }
  50% { box-shadow: 0 0 0 5px rgba(255, 67, 0, 0); }
}

.status--off .status__dot {
  background: var(--color-steel);
}

.status--pending .status__dot {
  background: var(--color-steel);
  animation: none;
}

.status__label {
  color: var(--text-primary);
}

.status__help {
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   7. Cards
   ---------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.card:hover,
.card:focus-visible {
  border-color: var(--border-ember);
  box-shadow: var(--glow-sm), 0 6px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.card--pad-lg {
  padding: 28px;
}

.card--link {
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card--link:hover,
.card--link:focus-visible {
  border-color: var(--border-ember);
  box-shadow: var(--glow-md), 0 12px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(-5px);
  outline: none;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 67, 0, 0.12);
  color: var(--color-ember-orange);
  margin-bottom: var(--space-20);
}

.card:hover .card__icon {
  background: rgba(255, 67, 0, 0.2);
  box-shadow: 0 0 14px rgba(255, 67, 0, 0.25);
}

.card__title {
  font-size: var(--text-subheading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}

.card__text {
  font-size: var(--text-body-lg);
  line-height: 1.45;
  color: var(--text-muted);
}

/* Generic responsive grid */
.grid {
  display: grid;
  gap: var(--element-gap);
}

.grid > *,
.hero__grid > *,
.booking-layout > *,
.form-grid > * {
  min-width: 0;
}

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

/* ----------------------------------------------------------------
   8. Header / Navigation
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand__name {
  font-size: var(--text-body-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand__badge {
  margin-left: 2px;
  display: none;
}

/* The badge only appears on wide screens where the nav has room */
@media (min-width: 1280px) {
  .brand__badge { display: inline-flex; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__link {
  display: block;
  padding: 8px 11px;
  font-size: var(--text-body);
  color: var(--text-muted);
  border-radius: var(--radius-button);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.nav__link:hover {
  color: var(--color-ember-orange);
  background: rgba(255, 67, 0, 0.08);
}

.nav__link[aria-current="page"] {
  color: var(--text-primary);
  background: var(--color-obsidian);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-structural);
  color: var(--text-primary);
  place-items: center;
}

.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-full);
}

.lang-switch__btn {
  padding: 5px 7px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.lang-switch__btn:hover { color: var(--text-primary); }

.lang-switch__btn.is-active {
  color: var(--color-ember-orange);
  background: var(--color-graphite);
}

/* Mobile lang switcher lives inside the drawer */
.nav__lang-mobile { display: none; }

/* ----------------------------------------------------------------
   9. Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 120px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: var(--space-48);
}

.hero__content { max-width: 620px; }

.hero__title { margin-bottom: var(--space-24); }

.hero__sub {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: var(--space-32);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-bottom: var(--space-32);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
}

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.hero__visual svg { width: 100%; height: 100%; }

/* Subtle scanline texture on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.045) 3px,
    rgba(0, 0, 0, 0.045) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Page hero (inner pages) */
.page-hero {
  padding-block: clamp(48px, 8vw, 88px);
  border-bottom: 1px solid var(--border-hairline);
}

.page-hero__title { margin-bottom: var(--space-20); }

.page-hero__sub {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 620px;
}

/* ----------------------------------------------------------------
   10. Stats strip
   ---------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.stat {
  background: var(--bg-card);
  padding: 28px 24px;
}

.stat__value {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-8);
}

.stat__value .accent { color: var(--color-ember-orange); }

.stat__label {
  font-size: var(--text-body);
  color: var(--text-muted);
}

.stat {
  transition: background-color var(--dur) var(--ease);
  cursor: default;
}

.stat:hover {
  background: var(--color-charcoal);
}

/* ----------------------------------------------------------------
   11. Pricing
   ---------------------------------------------------------------- */
.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card--featured {
  border-color: var(--color-ember-orange);
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.price-card__name {
  font-size: var(--text-subheading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--space-20);
}

.price-card__amount {
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.price-card__unit {
  font-size: var(--text-body);
  color: var(--text-muted);
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-bottom: var(--space-24);
  flex: 1;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  font-size: var(--text-body-lg);
  color: var(--text-default);
  line-height: 1.35;
}

.feature-row__tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--color-ember-orange);
}

/* ----------------------------------------------------------------
   12. Specs & Games
   ---------------------------------------------------------------- */
.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: var(--text-body-lg);
}

.spec-row:last-child { border-bottom: none; }

.spec-row__key { color: var(--text-muted); }
.spec-row__val {
  color: var(--text-primary);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-12);
}

/* ----------------------------------------------------------------
   12a. Equipment rows + advantages
   ---------------------------------------------------------------- */
.equipment-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-48);
}

.equipment-row + .equipment-row {
  margin-top: var(--space-32);
}

.equipment-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-structural);
}

@media (max-width: 900px) {
  .equipment-row { grid-template-columns: 1fr; }
  .equipment-row__media { order: -1; }
}

.advantages {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: var(--space-48);
}

.advantages__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-structural);
}

.advantages__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-top: var(--space-24);
}

@media (max-width: 900px) {
  .advantages { grid-template-columns: 1fr; }
  .advantages__media { order: -1; }
}

/* ----------------------------------------------------------------
   12b. Game Cards (large banner cards)
   ---------------------------------------------------------------- */
.game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-20);
}

.game-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-structural);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--border-ember);
  box-shadow: var(--glow-md), 0 16px 48px rgba(0, 0, 0, 0.55);
  outline: none;
}

.game-card__banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 78% 18%, hsl(var(--game-hue) 70% 35% / 0.55), transparent 58%),
    linear-gradient(145deg, hsl(var(--game-hue) 45% 12%), #080808);
}

.game-card__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.82), rgba(17,17,17,0.08) 70%);
  pointer-events: none;
}

.game-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.game-card__abbr {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 90px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.game-card__genre-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-badge);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  z-index: 2;
}

.game-card:hover .game-card__genre-badge {
  color: var(--color-ember-orange);
  border-color: var(--border-ember);
}

.game-card__info {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--border-hairline);
}

.game-card__name {
  font-size: var(--text-subheading);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color var(--dur) var(--ease);
}

.game-card:hover .game-card__name {
  color: var(--color-ember-orange);
}

.game-card__desc {
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Game banner gradients — each uses a radial glow in the game's signature color */
.game-card__banner--cs2      { background: radial-gradient(ellipse at 80% 20%, rgba(70,140,55,0.45) 0%, transparent 65%), linear-gradient(145deg, #0a1408 0%, #060d04 100%); }
.game-card__banner--valorant { background: radial-gradient(ellipse at 80% 20%, rgba(220,50,70,0.45) 0%, transparent 65%), linear-gradient(145deg, #150508 0%, #0a0204 100%); }
.game-card__banner--dota2    { background: radial-gradient(ellipse at 80% 20%, rgba(180,40,40,0.45) 0%, transparent 65%), linear-gradient(145deg, #120406 0%, #080202 100%); }
.game-card__banner--lol      { background: radial-gradient(ellipse at 80% 20%, rgba(200,155,60,0.45) 0%, transparent 65%), linear-gradient(145deg, #0e0e04 0%, #070704 100%); }
.game-card__banner--fortnite { background: radial-gradient(ellipse at 80% 20%, rgba(130,80,200,0.45) 0%, transparent 65%), linear-gradient(145deg, #100a1e 0%, #080510 100%); }
.game-card__banner--gta      { background: radial-gradient(ellipse at 80% 20%, rgba(255,153,0,0.45) 0%, transparent 65%), linear-gradient(145deg, #120e02 0%, #080502 100%); }
.game-card__banner--minecraft{ background: radial-gradient(ellipse at 80% 20%, rgba(90,170,55,0.45) 0%, transparent 65%), linear-gradient(145deg, #081408 0%, #040c04 100%); }
.game-card__banner--roblox   { background: radial-gradient(ellipse at 80% 20%, rgba(220,50,50,0.45) 0%, transparent 65%), linear-gradient(145deg, #150404 0%, #0c0202 100%); }
.game-card__banner--apex     { background: radial-gradient(ellipse at 80% 20%, rgba(204,40,40,0.45) 0%, transparent 65%), linear-gradient(145deg, #100a0a 0%, #080404 100%); }
.game-card__banner--pubg     { background: radial-gradient(ellipse at 80% 20%, rgba(196,160,0,0.45) 0%, transparent 65%), linear-gradient(145deg, #120e02 0%, #080602 100%); }
.game-card__banner--warzone  { background: radial-gradient(ellipse at 80% 20%, rgba(50,110,50,0.45) 0%, transparent 65%), linear-gradient(145deg, #080e06 0%, #040804 100%); }
.game-card__banner--marvel   { background: radial-gradient(ellipse at 80% 20%, rgba(190,0,90,0.45) 0%, transparent 65%), linear-gradient(145deg, #12020e 0%, #080108 100%); }
.game-card__banner--ow2      { background: radial-gradient(ellipse at 80% 20%, rgba(249,158,26,0.45) 0%, transparent 65%), linear-gradient(145deg, #120d02 0%, #080602 100%); }
.game-card__banner--r6       { background: radial-gradient(ellipse at 80% 20%, rgba(0,130,200,0.45) 0%, transparent 65%), linear-gradient(145deg, #020c14 0%, #020810 100%); }
.game-card__banner--rl       { background: radial-gradient(ellipse at 80% 20%, rgba(0,70,220,0.45) 0%, transparent 65%), linear-gradient(145deg, #020814 0%, #020610 100%); }
.game-card__banner--finals   { background: radial-gradient(ellipse at 80% 20%, rgba(255,67,0,0.55) 0%, transparent 65%), linear-gradient(145deg, #1a0500 0%, #100400 100%); }
.game-card__banner--rust     { background: radial-gradient(ellipse at 80% 20%, rgba(184,90,0,0.45) 0%, transparent 65%), linear-gradient(145deg, #120800 0%, #0c0500 100%); }
.game-card__banner--poe      { background: radial-gradient(ellipse at 80% 20%, rgba(136,0,204,0.45) 0%, transparent 65%), linear-gradient(145deg, #0c0214 0%, #06010c 100%); }
.game-card__banner--fc26     { background: radial-gradient(ellipse at 80% 20%, rgba(0,170,70,0.45) 0%, transparent 65%), linear-gradient(145deg, #021202 0%, #020c02 100%); }
.game-card__banner--tekken   { background: radial-gradient(ellipse at 80% 20%, rgba(204,0,85,0.45) 0%, transparent 65%), linear-gradient(145deg, #120212 0%, #080108 100%); }
.game-card__banner--forza    { background: radial-gradient(ellipse at 80% 20%, rgba(0,100,255,0.45) 0%, transparent 65%), linear-gradient(145deg, #020a1a 0%, #020814 100%); }
.game-card__banner--lethal   { background: radial-gradient(ellipse at 80% 20%, rgba(100,100,100,0.35) 0%, transparent 65%), linear-gradient(145deg, #080808 0%, #050505 100%); }
.game-card__banner--phasmo   { background: radial-gradient(ellipse at 80% 20%, rgba(100,50,200,0.45) 0%, transparent 65%), linear-gradient(145deg, #0a0514 0%, #07030d 100%); }
.game-card__banner--l4d2     { background: radial-gradient(ellipse at 80% 20%, rgba(204,34,0,0.45) 0%, transparent 65%), linear-gradient(145deg, #140200 0%, #0c0100 100%); }

@media (max-width: 720px) {
  .game-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .game-card {
    min-width: 0;
    border-color: var(--border-structural);
    background: var(--bg-card);
  }
  .game-card__banner { height: 120px; }
  .game-card__info { padding: 14px; }
  .game-card__name {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 480px) {
  .game-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card__banner { height: 104px; }
  .game-card__genre-badge {
    top: 7px;
    right: 7px;
    padding: 3px 7px;
    font-size: 9px;
  }
  .game-card__desc { font-size: 12px; }
}

.game-tag {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: 14px 16px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border-structural);
  background: var(--bg-card);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.game-tag:hover {
  border-color: var(--border-ember);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

.game-tag__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--color-graphite);
  color: var(--color-pure-white);
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.game-tag__name {
  font-size: var(--text-body-lg);
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.game-tag__genre {
  font-size: 11px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   13. Tournaments
   ---------------------------------------------------------------- */
.tour-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-24);
}

.tour-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-button);
  background: var(--color-void-black);
  border: 1px solid var(--border-structural);
  flex-shrink: 0;
}

.tour-date__day {
  font-size: 26px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.tour-date__month {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.tour-card__body { min-width: 0; }

.tour-card__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: 6px;
}

.tour-card__game-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-button);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-void-black);
}

.tour-card__title {
  font-size: var(--text-subheading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.tour-card__title-row .tour-card__title { margin-bottom: 0; }

.tour-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  font-size: var(--text-body);
  color: var(--text-muted);
}

.tour-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tour-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-12);
  flex-shrink: 0;
}

.tour-prize {
  font-size: var(--text-subheading);
  color: var(--color-ember-orange);
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------
   14. Forms / Booking
   ---------------------------------------------------------------- */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: var(--space-32);
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-20);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.field--full { grid-column: 1 / -1; }

.field__label {
  font-size: var(--text-body);
  color: var(--text-muted);
}

.field__label .req { color: var(--color-ember-orange); }

.form-consent {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.form-consent a {
  color: var(--text-default);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-consent a:hover {
  color: var(--color-ember-orange);
}

.privacy-content {
  max-width: 780px;
}

.privacy-content h2 {
  margin-top: var(--space-32);
  margin-bottom: var(--space-8);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: var(--text-default);
  font-weight: 500;
  line-height: 1.65;
}

.privacy-content a {
  color: var(--color-ember-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--color-void-black);
  border: 1px solid var(--border-structural);
  color: var(--text-primary);
  font-size: var(--text-body-lg);
  padding: 13px 18px;
  border-radius: var(--radius-input);
  transition: border-color var(--dur) var(--ease);
}

.textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 110px;
  line-height: 1.4;
}

.input::placeholder,
.textarea::placeholder { color: var(--color-steel); }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--color-steel); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-ember-orange);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238d8d8d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.select option { background: var(--color-obsidian); }

/* Validation */
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea {
  border-color: var(--color-ember-orange);
}

.field__error {
  font-size: 12px;
  color: var(--color-ember-orange);
  min-height: 14px;
  display: none;
}

.field[data-invalid="true"] .field__error { display: block; }

/* Submit feedback */
.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--space-12);
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: var(--color-void-black);
  border: 1px solid var(--color-ember-orange);
}

.form-status.is-visible { display: flex; }

/* Error state reuses the panel but drops the success checkmark */
.form-status.is-error .form-status__icon { display: none; }

.form-status__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-ember-orange);
}

.form-status__title { color: var(--text-primary); margin-bottom: 2px; }
.form-status__text { font-size: var(--text-body); color: var(--text-muted); }

.aside-card { display: flex; flex-direction: column; gap: var(--space-16); }

.info-row {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
}

.info-row__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-ember-orange);
  margin-top: 2px;
}

.info-row__label { font-size: 12px; color: var(--text-faint); margin-bottom: 2px; }
.info-row__value { font-size: var(--text-body-lg); color: var(--text-primary); }

/* ----------------------------------------------------------------
   15. CTA band
   ---------------------------------------------------------------- */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-card-lg);
  padding: clamp(32px, 6vw, 60px);
  text-align: center;
}

.cta-band__title { margin-bottom: var(--space-16); }
.cta-band__sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-32);
  line-height: 1.4;
}
.cta-band__actions {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-band {
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cta-band:hover {
  border-color: rgba(255, 67, 0, 0.3);
  box-shadow: 0 0 40px rgba(255, 67, 0, 0.06);
}

/* ----------------------------------------------------------------
   16. Footer
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-hairline);
  margin-top: var(--space-40);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-40);
  padding-block: var(--space-56);
}

.footer-brand__text {
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: 1.5;
  margin-top: var(--space-16);
  max-width: 280px;
}

.footer-col__title {
  font-size: var(--text-body);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-16);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.footer-col__links a,
.footer-col__links span {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.footer-col__links a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding-block: var(--space-24);
  border-top: 1px solid var(--border-hairline);
  font-size: var(--text-body);
  color: var(--text-faint);
}

.socials { display: flex; gap: var(--space-12); }

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-structural);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.socials a:hover { color: var(--color-ember-orange); border-color: var(--border-ember); box-shadow: var(--glow-sm); }
.socials svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------------
   17. Responsive
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin-inline: auto; }
  .booking-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-32); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Navigation collapses to a drawer below the desktop width so it never overflows */
@media (max-width: 1100px) {
  .nav__links,
  .nav__actions .btn,
  .nav__actions .lang-switch { display: none; }

  .nav__toggle { display: grid; }

  /* Mobile drawer */
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-obsidian);
    border-bottom: 1px solid var(--border-structural);
    padding: var(--space-16) 24px var(--space-24);
    gap: var(--space-8);
  }

  .nav__links.is-open .nav__link {
    width: 100%;
    font-size: var(--text-body-lg);
    padding: 12px 14px;
  }

  .nav__links.is-open .nav__cta {
    margin-top: var(--space-12);
  }

  .nav__lang-mobile { display: block; margin-top: var(--space-12); }
}

@media (max-width: 720px) {
  .container { padding-inline: 20px; }

  .hero {
    padding-block: 48px 56px;
  }

  .hero__grid {
    gap: var(--space-32);
  }

  .hero__content {
    order: 1;
  }

  .hero__visual {
    order: 2;
    width: min(100%, 260px);
    margin-inline: auto;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .stats,
  .form-grid { grid-template-columns: 1fr; }

  .stats { border-radius: var(--radius-card); }

  .tour-card { grid-template-columns: auto 1fr; }
  .tour-card__side {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-16);
    border-top: 1px solid var(--border-hairline);
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .card--pad-lg {
    padding: 22px;
  }
}

/* Mobile CTA + lang switcher live inside the drawer (shown via the 1100px block) */
.nav__cta-mobile { display: none; }

@media (max-width: 1100px) {
  .nav__links.is-open .nav__cta-mobile {
    display: flex;
    width: 100%;
  }
}

/* Very small phones: stack CTA buttons full-width and let long labels wrap */
@media (max-width: 480px) {
  .cta-band__actions { flex-direction: column; }
  .cta-band__actions .btn { width: 100%; white-space: normal; }
  .hero__cta .btn { white-space: normal; }

  .platform-switch { gap: 4px; }
  .platform-switch__btn {
    padding: 10px 6px;
    font-size: var(--text-body);
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .spec-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .spec-row__val {
    text-align: left;
  }
}

/* ----------------------------------------------------------------
   18. Floor plan (club map)
   ---------------------------------------------------------------- */
.floorplan__frame {
  background: var(--bg-card);
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-card);
  padding: clamp(16px, 3vw, 28px);
}

.floorplan__canvas {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.floorplan svg {
  width: 100%;
  min-width: 520px;
  height: auto;
  display: block;
}

.fp-room { fill: var(--color-void-black); stroke: var(--border-structural); stroke-width: 1.5; }
.fp-sub-room { fill: #151515; stroke: var(--border-structural); stroke-width: 1.5; }
.fp-divider { fill: none; stroke: rgba(202, 202, 202, 0.22); stroke-width: 1.5; }
.fp-seat { fill: var(--color-graphite); stroke: rgba(202, 202, 202, 0.35); stroke-width: 1; }
.fp-seat--vip { fill: var(--color-ember-orange); stroke: none; }
.fp-screen { fill: var(--color-ember-orange); }
.fp-accent { fill: var(--color-ember-orange); }
.fp-accent-stroke { fill: none; stroke: var(--color-ember-orange); stroke-width: 2; stroke-linecap: round; }
.fp-zonefill { fill: rgba(202, 202, 202, 0.03); stroke: rgba(202, 202, 202, 0.12); stroke-width: 1; stroke-dasharray: 4 4; }
.fp-label { fill: var(--color-silver); font-family: var(--font-sans); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.fp-tag { fill: var(--color-ash); font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.02em; }

.floorplan__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-20);
  margin-top: var(--space-24);
}

.fp-leg {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-body);
  color: var(--text-muted);
}

.fp-leg__dot { width: 14px; height: 14px; border-radius: 5px; flex-shrink: 0; }
.fp-leg__dot--std { background: var(--color-graphite); border: 1px solid rgba(202, 202, 202, 0.35); }
.fp-leg__dot--vip { background: var(--color-ember-orange); }
.fp-leg__dot--ps { background: var(--color-ember-orange); opacity: 0.55; }
.fp-leg__dot--svc { background: var(--color-void-black); border: 1px solid var(--border-structural); }

@media (max-width: 560px) {
  .fp-label { font-size: 16px; }
  .fp-tag { font-size: 13px; }
}

/* ----------------------------------------------------------------
   19. Hero — lightweight 3D (no dependencies)
   ---------------------------------------------------------------- */
.hero__visual {
  perspective: 1100px;
  animation: heroFloat 7s ease-in-out infinite;
}

.hero__visual svg {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ----------------------------------------------------------------
   20. Gallery (About page)
   ---------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--element-gap);
}

.gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-structural);
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.gallery__item:hover img { transform: scale(1.05); }

.gallery__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-size: var(--text-body);
  color: var(--color-pure-white);
  background: linear-gradient(to top, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0));
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   21. Motion preferences
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero__visual { animation: none; }
  .hero__visual svg { transform: none !important; }
}

/* ----------------------------------------------------------------
   22. Genre filter
   ---------------------------------------------------------------- */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  margin-bottom: var(--space-32);
}

.platform-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  align-self: center;
  padding: 5px;
  border: 1px solid var(--border-structural);
  border-radius: var(--radius-button);
  background: var(--bg-card);
}

.platform-switch__btn {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 11px;
  color: var(--text-muted);
  font-size: var(--text-body-lg);
  font-weight: 700;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.platform-switch__btn:hover {
  color: var(--text-primary);
}

.platform-switch__btn.is-active {
  color: var(--text-primary);
  background: var(--color-ember-orange);
  box-shadow: var(--glow-sm);
}

.genre-filter {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: 0;
}
.genre-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-structural);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.genre-btn:hover {
  color: var(--color-ember-orange);
  border-color: var(--color-ember-orange);
  transform: translateY(-1px);
}
.genre-btn:focus-visible {
  outline: 2px solid var(--color-ember-orange);
  outline-offset: 3px;
}
.genre-btn.is-active {
  background: var(--color-ember-orange);
  border-color: var(--color-ember-orange);
  color: #fff;
  box-shadow: var(--glow-sm);
}
.game-card.is-hidden {
  display: none;
}
@media (max-width: 640px) {
  .genre-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .genre-filter::-webkit-scrollbar { display: none; }
}

/* ----------------------------------------------------------------
   23. Hero title ember flicker
   ---------------------------------------------------------------- */
@keyframes ember-flicker {
  0%, 78%, 100% { text-shadow: none; }
  80% { text-shadow: 0 0 24px rgba(255,67,0,0.5), 0 0 60px rgba(255,67,0,0.2); }
  81% { text-shadow: none; }
  83% { text-shadow: 0 0 48px rgba(255,67,0,0.9), 0 0 100px rgba(255,67,0,0.4); }
  85% { text-shadow: 0 0 12px rgba(255,67,0,0.3); }
  86% { text-shadow: none; }
}
.hero__title {
  animation: ember-flicker 10s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   24. Animated section-head scan divider
   ---------------------------------------------------------------- */
@keyframes scan-sweep {
  from { left: -30%; }
  to   { left: 130%; }
}
.section-head {
  position: relative;
  overflow: hidden;
  padding-bottom: 2px;
}
.section-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -30%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-ember-orange), transparent);
  animation: scan-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   25. Game card entrance animation
   ---------------------------------------------------------------- */
@keyframes card-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.game-card-grid .game-card {
  animation: card-rise 0.4s ease both;
}
.game-card-grid .game-card:nth-child(1)  { animation-delay: 0.03s; }
.game-card-grid .game-card:nth-child(2)  { animation-delay: 0.06s; }
.game-card-grid .game-card:nth-child(3)  { animation-delay: 0.09s; }
.game-card-grid .game-card:nth-child(4)  { animation-delay: 0.12s; }
.game-card-grid .game-card:nth-child(5)  { animation-delay: 0.15s; }
.game-card-grid .game-card:nth-child(6)  { animation-delay: 0.18s; }
.game-card-grid .game-card:nth-child(7)  { animation-delay: 0.21s; }
.game-card-grid .game-card:nth-child(8)  { animation-delay: 0.24s; }
.game-card-grid .game-card:nth-child(9)  { animation-delay: 0.27s; }
.game-card-grid .game-card:nth-child(10) { animation-delay: 0.30s; }
.game-card-grid .game-card:nth-child(11) { animation-delay: 0.33s; }
.game-card-grid .game-card:nth-child(12) { animation-delay: 0.36s; }

/* ----------------------------------------------------------------
   26. Steam CDN banner images
   These override the CSS-gradient-only banners for Steam titles.
   Gradient overlay ensures text/abbr remain legible.
   ---------------------------------------------------------------- */
.game-card__banner--cs2 {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/03a206e08f392171.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--dota2 {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/29b851f3374b5184.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--apex {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/b09a9b60a4863a82.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--pubg {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/d15d67c6bc29052b.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--rl {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/8675fced21818394.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--finals {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/bb31bb408ac880ca.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--rust {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/8984136d40cdacd3.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--poe {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/ac2906d86ddb0383.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--tekken {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/f1d104672d716701.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--forza {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/f53f24d178067a6a.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--lethal {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/efb47d41d5cac036.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--phasmo {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/5c650ad1e52d5d60.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--l4d2 {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/a497cabf93d0789a.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--r6 {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/6605ae8beb4b9113.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--gta {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/a48e5dfa48dc8669.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--ow2 {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/32d27ad646a43ee5.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--marvel {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/44b7e77543839a5c.jpg');
  background-size: auto, cover;
  background-position: center, center;
}

/* ----------------------------------------------------------------
   27. Official key-art banners for non-Steam titles
   Riot/Epic/EA/Roblox CDN images for games without a Steam page.
   ---------------------------------------------------------------- */
.game-card__banner--lol {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/4d77f385d5c6ddec.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--fortnite {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/fortnite.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--roblox {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/f84c09bef87503b7.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--warzone {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/5b259277b699794f.webp');
  background-size: auto, cover;
  background-position: center, center;
}
.game-card__banner--fc26 {
  background-image:
    linear-gradient(to top, #111 0%, rgba(17,17,17,0.55) 50%, rgba(17,17,17,0.1) 100%),
    url('/assets/media/c80117eebbe906fe.jpg');
  background-size: auto, cover;
  background-position: center, center;
}
/* Valorant and Minecraft only publish square logo marks (no wide key art),
   so the logo sits centered over the existing signature-color gradient. */
.game-card__banner--valorant {
  background-image: url('/assets/media/26b92c3c5d298f76.png'),
    radial-gradient(ellipse at 80% 20%, rgba(220,50,70,0.45) 0%, transparent 65%), linear-gradient(145deg, #150508 0%, #0a0204 100%);
  background-size: 72px auto, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
}
.game-card__banner--minecraft {
  background-image: url('/assets/media/9ed6bc62b5dcd0f2.svg'),
    radial-gradient(ellipse at 80% 20%, rgba(90,170,55,0.45) 0%, transparent 65%), linear-gradient(145deg, #081408 0%, #040c04 100%);
  background-size: 72px auto, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
}

/* ----------------------------------------------------------------
   28. Hero background video
   Muted ambient loop behind the hero content; sits below the
   existing scanline overlay (z-index 1) and container (z-index 2).
   Hidden on touch/small viewports and reduced-motion to save data.
   ---------------------------------------------------------------- */
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(1.2) brightness(1.05);
  z-index: 0;
  pointer-events: none;
}

.hero__bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.25) 0%, rgba(17,17,17,0.55) 55%, #111 100%);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 719px), (prefers-reduced-motion: reduce) {
  .hero__bg-video { display: none; }
}

/* ----------------------------------------------------------------
   29. Hero ember particles — rising sparks, pure CSS
   ---------------------------------------------------------------- */
.hero__embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero__embers span {
  position: absolute;
  bottom: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-ember-orange);
  box-shadow: 0 0 6px 1px rgba(255, 67, 0, 0.75);
  opacity: 0;
  animation: ember-rise linear infinite;
}

@keyframes ember-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.35; }
  100% { transform: translate(var(--drift, 20px), -440px); opacity: 0; }
}

.hero__embers span:nth-child(1)  { left: 4%;  width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 0s;    --drift: 18px; }
.hero__embers span:nth-child(2)  { left: 11%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 1.4s;  --drift: -26px; }
.hero__embers span:nth-child(3)  { left: 19%; width: 2px; height: 2px; animation-duration: 8s;  animation-delay: 3.1s;  --drift: 12px; }
.hero__embers span:nth-child(4)  { left: 27%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 0.6s;  --drift: -16px; }
.hero__embers span:nth-child(5)  { left: 35%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 4.2s;  --drift: 22px; }
.hero__embers span:nth-child(6)  { left: 43%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 2.3s;  --drift: -20px; }
.hero__embers span:nth-child(7)  { left: 52%; width: 2px; height: 2px; animation-duration: 9s;  animation-delay: 5.5s;  --drift: 14px; }
.hero__embers span:nth-child(8)  { left: 60%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 1.1s;  --drift: -18px; }
.hero__embers span:nth-child(9)  { left: 68%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 3.8s;  --drift: 24px; }
.hero__embers span:nth-child(10) { left: 76%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 0.2s;  --drift: -14px; }
.hero__embers span:nth-child(11) { left: 84%; width: 2px; height: 2px; animation-duration: 8s;  animation-delay: 2.9s;  --drift: 16px; }
.hero__embers span:nth-child(12) { left: 92%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 4.7s;  --drift: -22px; }

@media (prefers-reduced-motion: reduce) {
  .hero__embers { display: none; }
}
