/* ==========================================================================
   /games page — premium dark navy + gold. Mobile-first.
   New design language for the v2 redesign (P1). No neon, no glow loops.
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: var(--b-ink, #080B12);   /* brand near-black */
  --bg-2: var(--b-navy-2, #0B1220);
  --card: var(--b-navy, #111827);
  --line: var(--b-line, #1F2A44);
  --gold: var(--b-gold, #D4AF37);
  --gold-2: var(--b-gold-lo, #B08A28);
  --white: var(--b-white, #F5F5F5);
  --mut: var(--b-mute, #94A3B8);
  --r: 14px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.gp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.gp-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,13,26,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.gp-head-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
.brand-t { font-weight: 800; letter-spacing: .12em; font-size: 13px; color: var(--gold); }
.gnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gnav a {
  padding: 9px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500;
  color: var(--mut); transition: color .15s, background .15s;
}
.gnav a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.gnav a[aria-current] { color: var(--gold); }
.gnav-cta {
  color: #14120b !important; background: linear-gradient(180deg, var(--gold), var(--gold-2)) !important;
  font-weight: 700 !important; padding: 9px 18px !important; margin-left: 8px;
  box-shadow: 0 2px 10px rgba(216,178,92,.22);
}
.burger { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.gp-hero { padding: 44px 0 10px; }
.eyebrow { color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gp-hero h1 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 800; letter-spacing: -.01em; margin: 8px 0 10px; }
.gp-hero .sub { color: var(--mut); max-width: 640px; font-size: 15.5px; }

.gsearch {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 14px; padding: 0 14px; height: 52px;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  color: var(--mut);
}
.gsearch:focus-within { border-color: var(--gold); }
.gsearch input {
  flex: 1; height: 100%; border: 0; outline: 0; background: none;
  color: var(--white); font-size: 15.5px;
}
.gsearch input::placeholder { color: var(--mut); }

.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip {
  border: 1px solid var(--line); background: var(--card); color: var(--mut);
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.gchip:hover { color: var(--white); }
.gchip.on { background: var(--gold); border-color: var(--gold); color: #14120b; }
.gcount { color: var(--mut); font-size: 13px; margin-top: 12px; }

/* ── Grid ────────────────────────────────────────────────────────────── */
.gp-grid-sec { padding: 14px 0 34px; }
.ggrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .18s ease, border-color .18s ease;
}
.gcard:hover { transform: translateY(-3px); border-color: #2b3d63; }
.gcard-media { position: relative; display: block; aspect-ratio: 16/10; background: var(--bg-2); }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; }
.gbadge {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #14120b;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 7px;
}
.gcard-body { padding: 12px 12px 14px; }
.gcard-body h3 { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcat { color: var(--mut); font-size: 12px; margin: 2px 0 10px; }
.gactions { display: grid; grid-template-columns: 1fr; gap: 7px; }
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; border-radius: 9px; font-size: 13px; font-weight: 700;
  transition: transform .12s ease, filter .15s;
}
.gbtn:active { transform: scale(.97); }
.gbtn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #14120b; }
.gbtn-gold:hover { filter: brightness(1.06); }
.gbtn-ghost { border: 1px solid var(--line); color: var(--mut); background: transparent; }
.gbtn-ghost:hover { color: var(--white); border-color: #33456e; }
.gbtn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 11px; }

.gempty { text-align: center; padding: 46px 16px; color: var(--mut); }
.gempty p { font-size: 16px; margin-bottom: 18px; }

/* ── Help band ───────────────────────────────────────────────────────── */
.gp-help { border-top: 1px solid var(--line); background: var(--bg-2); }
.gp-help-in { padding: 44px 18px; text-align: center; }
.gp-help h2 { font-size: clamp(21px, 3.4vw, 28px); font-weight: 800; }
.gp-help p { color: var(--mut); max-width: 520px; margin: 10px auto 22px; font-size: 15px; }
.gp-help-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.gp-foot { border-top: 1px solid var(--line); padding: 38px 0 26px; }
.gpf-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
.gpf-note { color: var(--mut); font-size: 13px; margin-top: 12px; max-width: 300px; }
.gpf-grid h4 { color: var(--white); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.gpf-grid nav a { display: block; color: var(--mut); font-size: 14px; padding: 5px 0; }
.gpf-grid nav a:hover { color: var(--gold); }
.gpf-bar {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  color: var(--mut); font-size: 12.5px;
}

/* ── Tablet ──────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .ggrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gcard-body h3 { font-size: 15.5px; }
  .gpf-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
}

/* ── Desktop ─────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .ggrid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .gp-hero { padding: 60px 0 14px; }
}
@media (min-width: 1180px) {
  .ggrid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .gactions { grid-template-columns: 1fr; }
}

/* ── Mobile nav ──────────────────────────────────────────────────────── */
@media (max-width: 899px) {
  .burger {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 42px; height: 42px; margin-left: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
    padding: 0 11px;
  }
  .burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: .18s; }
  .burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.on span:nth-child(2) { opacity: 0; }
  .burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav {
    position: absolute; top: 62px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
  }
  .gnav.on { display: flex; }
  .gnav a { padding: 13px 12px; font-size: 15.5px; }
  .gnav-cta { margin: 8px 0 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
