/* ============================================================
   Game Rig — game-portal stylesheet
   App shell (sidebar + topbar), shelves, cards, content pages.
   Premium dark theme: deep #0B0D12 chrome, one electric-blue accent
   with an indigo companion, art-forward cards, line icons.
   Zero external deps. The V2 layer at the bottom of this file adds the
   stat strip, category tiles, "how it works" steps and CTA bands.
   ============================================================ */

:root {
  /* base surfaces — deep near-black chrome, layered for elevation */
  --bg: #0b0d12;
  --bg-2: #0e1118;
  --bg-glow-1: transparent;
  --bg-glow-2: transparent;
  --surface: #141824;
  --surface-2: #191e2c;
  --surface-3: #212739;
  --border: #1b202b;
  --border-soft: #141822;

  /* text — near-white on dark, stepped down for hierarchy */
  --text: #f2f4f8;
  --text-dim: #a4adc0;
  --text-faint: #6b7385;

  /* accent — one electric blue with a single adjacent indigo companion.
     Legacy --accent-2/3 references stay inside the same family (no stray hues) */
  --accent: #3b82f6;
  --accent-strong: #60a5fa;
  --accent-ink: #93c5fd;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-line: rgba(59, 130, 246, 0.30);
  --indigo: #6366f1;
  --indigo-deep: #4f46e5;
  --indigo-soft: rgba(99, 102, 241, 0.14);
  --accent-2: #3b82f6;
  --accent-2-soft: rgba(59, 130, 246, 0.12);
  --accent-3: #60a5fa;
  --accent-3-soft: rgba(96, 165, 250, 0.14);
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  /* accent surface fills — blue → indigo, one hue step apart (no rainbows) */
  --grad: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(79, 70, 229, 0.10));
  --grad-line: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0));

  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 11px;
  --radius-pill: 999px;

  /* refined modern display + clean sans body (loaded via Google Fonts) */
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 180ms;

  --sidebar-w: 264px;
  --topbar-h: 66px;
  --content-max: 1320px;

  /* shadows — deep and quiet on dark; accent glow reserved for primary CTAs */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 22px 48px -26px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 10px 30px -12px rgba(59, 130, 246, 0.55);
}

/* No light theme is wired; keep a forced data-theme="light" from ever fighting
   the dark design by pinning it to the same dark tokens. */
:root[data-theme="light"] {
  --bg: #0b0d12;
  --bg-2: #0e1118;
  --bg-glow-1: transparent;
  --bg-glow-2: transparent;
  --surface: #141824;
  --surface-2: #191e2c;
  --surface-3: #212739;
  --border: #1b202b;
  --border-soft: #141822;
  --text: #f2f4f8;
  --text-dim: #a4adc0;
  --text-faint: #6b7385;
  --accent-ink: #93c5fd;
  --shadow-2: 0 22px 48px -26px rgba(0, 0, 0, 0.85);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
/* Inline icons carry only a viewBox, so an unstyled one would balloon to the
   default 300x150 replaced-element size. Fall back to text size; every rule
   below this line has equal-or-higher specificity and still wins. */
svg:not([width]) { width: 1em; height: 1em; fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-family: var(--font-display); font-weight: 700; }
p { margin: 0 0 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(59, 130, 246, 0.32); color: #fff; }

/* thin scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--border); background-clip: content-box; }

/* ============================================================
   APP SHELL
   ============================================================ */
.layout { display: flex; min-height: 100vh; }

/* matte dark ground with a whisper of blue depth at the top (not a wash) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 520px at 50% -8%, rgba(59, 130, 246, 0.06), transparent 70%),
    var(--bg);
}

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-head {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.logo-mark svg { width: 21px; height: 21px; fill: #fff; }
.logo b { font-weight: 700; }
.logo .dot { color: var(--accent-strong); }

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px 8px;
  overscroll-behavior: contain;
}

.side-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 12px;
  margin: 6px 0 10px;
}
.side-label:not(:first-child) { margin-top: 22px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background var(--speed), color var(--speed);
  position: relative;
}
.nav-item:hover { background: var(--accent-soft); color: var(--accent-ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 3px;
  background: var(--accent);
}

.nav-ico {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: inherit;
}
.nav-ico svg { width: 19px; height: 19px; fill: currentColor; }

.nav-item .nav-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-foot {
  flex-shrink: 0;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.sidebar-foot a { font-size: 0.78rem; color: var(--text-faint); transition: color var(--speed); }
.sidebar-foot a:hover { color: var(--accent-strong); }

/* ---------- main column ---------- */
.main-col {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(16px, 3vw, 34px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border-soft);
}

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-btn svg { width: 20px; height: 20px; fill: var(--text); }

.topbar .logo-compact { display: none; }

.search-wrap { flex: 1; max-width: 560px; position: relative; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
}
.search-box:focus-within {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-box svg { width: 18px; height: 18px; fill: var(--text-faint); flex-shrink: 0; }
.search-box input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--text); font-size: 0.95rem;
}
.search-box input::placeholder { color: var(--text-faint); }

.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--speed) var(--ease), background var(--speed), border-color var(--speed), box-shadow var(--speed), filter var(--speed);
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn:hover { background: var(--surface-2); border-color: var(--accent-line); transform: translateY(-1px); }

.btn-primary {
  background: var(--grad);
  border: 0;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }

.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 12px; }

.btn-lg { padding: 13px 26px; font-size: 1rem; }

/* ---------- page container ---------- */
.page { flex: 1; padding: 0 clamp(16px, 3vw, 34px); }
.page-inner { max-width: var(--content-max); margin-inline: auto; width: 100%; }

.section { padding: 30px 0; }
.section-tight { padding: 16px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head h2 .accent-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  box-shadow: none;
}
.section-head h2 .accent-ico svg { width: 17px; height: 17px; fill: var(--accent-strong); }
.section-head h2 span.sub { font-family: var(--font-mono); color: var(--text-faint); font-weight: 500; font-size: 0.5em; letter-spacing: 0.08em; text-transform: uppercase; }
.section-link { color: var(--accent-strong); font-weight: 600; font-size: 0.9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.section-link svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; transition: transform 0.15s ease; }
.section-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-link:hover svg { transform: translateX(2px); }

.shelf-nav { display: inline-flex; gap: 6px; }
.shelf-nav button {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--text-dim);
  transition: all var(--speed);
}
.shelf-nav button:hover { border-color: var(--accent-line); color: var(--text); }
.shelf-nav svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   SPOTLIGHT HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.1);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,10,15,0.94) 0%, rgba(8,10,15,0.72) 44%, rgba(8,10,15,0.20) 100%),
    linear-gradient(0deg, rgba(8,10,15,0.90), transparent 64%);
}
.hero-inner { padding: clamp(24px, 4vw, 46px); max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(8, 10, 15, 0.5);
  border: 1px solid var(--accent-line);
  padding: 6px 14px; border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-strong);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero p {
  color: rgba(242, 244, 248, 0.88);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 16px 0 26px;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-play {
  background: var(--grad); border: 0; color: #fff;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1.02rem;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-glow);
  transition: transform var(--speed) var(--ease), filter var(--speed);
}
.hero-play svg { width: 20px; height: 20px; fill: #fff; }
.hero-play:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- category chips row ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row.scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 0.9rem;
  white-space: nowrap; scroll-snap-align: start;
  transition: all var(--speed) var(--ease);
}
.chip .chip-ico { display: inline-flex; align-items: center; }
.chip .chip-ico svg { width: 16px; height: 16px; fill: currentColor; opacity: 0.65; }
.chip:hover, .chip.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

/* ============================================================
   GAME GRID + SHELF + CARD
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 18px;
}
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}
.shelf > * { scroll-snap-align: start; }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
  -webkit-tap-highlight-color: transparent;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-2);
}
.game-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.game-card:hover .game-thumb img { transform: scale(1.07); }
.game-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 10, 15, 0.78));
  opacity: 0; transition: opacity var(--speed);
}
.game-card:hover .game-thumb::after { opacity: 1; }

.play-chip {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(0.85);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(59, 130, 246, 0.7);
  opacity: 0; z-index: 2;
  transition: opacity var(--speed), transform var(--speed) var(--ease);
}
.play-chip svg { width: 22px; height: 22px; fill: #fff; margin-left: 2px; }
.game-card:hover .play-chip, .game-card:focus-within .play-chip {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

.card-tag {
  position: absolute; top: 9px; left: 9px; z-index: 3;
  font-family: var(--font-display);
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(8, 10, 15, 0.66);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 3px 10px; border-radius: 999px;
}
.card-tag.hot { background: rgba(8, 10, 15, 0.66); border-color: rgba(251,191,36,0.55); color: var(--warn); }
.card-tag.new { background: var(--accent); border: 0; color: #fff; }

.game-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.game-title {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700; line-height: 1.24; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.48em;
}
.game-cat { font-family: var(--font-mono); color: var(--text-faint); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

.lazy-img { opacity: 0; transition: opacity 0.45s var(--ease); }
.lazy-img.loaded { opacity: 1; }

.grid.featured-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* empty state */
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.empty-state svg { width: 46px; height: 46px; fill: var(--text-faint); margin: 0 auto 14px; opacity: 0.6; }

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  margin: 26px 0;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--surface);
  min-height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ad-slot .ad-label { color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ad-slot ins { display: block; width: 100%; }
.ad-slot.filled { border-style: solid; min-height: 0; background: transparent; }

/* ad rails around the game player — clearly fenced off from Play controls
   so an ad can never be mistaken for a game button (AdSense placement policy) */
.ad-rail { position: relative; margin: 20px 0; }
.ad-rail::before {
  content: "Sponsored"; display: block; text-align: center;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
.ad-rail .ad-slot { margin: 0; }
.ad-rail-top { margin-top: 4px; }
.ad-rail-bottom { padding-top: 18px; border-top: 1px solid var(--border-soft); }
.ad-rail-inline { margin: 26px 0 4px; }
/* if there is no configured ad, keep the reserved box compact so it never
   leaves a big blank gap on the page */
.ad-rail .ad-slot:not(.filled) { min-height: 90px; }

/* ============================================================
   GAME PAGE
   ============================================================ */
.game-page { padding: 22px 0 50px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.breadcrumbs .sep { opacity: 0.5; }

.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.game-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.015em; }
.cat-line { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-strong); font-size: 0.76rem; font-weight: 700;
}
.tag.plain { background: var(--surface-2); border-color: var(--border); color: var(--text-dim); }

.player-shell { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: var(--shadow-2); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.play-cover {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background:
    radial-gradient(760px 420px at 50% 22%, rgba(37, 99, 235, 0.38), transparent 65%),
    linear-gradient(180deg, rgba(11, 13, 18, 0.62), rgba(8, 10, 15, 0.94));
  transition: background var(--speed);
}
.play-cover:hover { background: radial-gradient(760px 420px at 50% 22%, rgba(59, 130, 246, 0.48), transparent 65%), linear-gradient(180deg, rgba(11, 13, 18, 0.58), rgba(8, 10, 15, 0.92)); }
.play-cover img.cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); transition: transform 0.6s var(--ease); }
.play-cover:hover img.cover-bg { transform: scale(1.04); }
.play-btn-wrap { position: relative; text-align: center; padding: 0 20px; }
.play-btn {
  width: 92px; height: 92px; margin-inline: auto; border-radius: 50%; border: 0;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.18), 0 18px 44px -12px rgba(37, 99, 235, 0.7);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed);
}
.play-btn svg { width: 36px; height: 36px; fill: #fff; margin-left: 5px; }
.play-btn:hover { transform: scale(1.07); box-shadow: 0 0 0 16px rgba(59, 130, 246, 0.22), 0 18px 50px -10px rgba(37, 99, 235, 0.85); }
.play-cover .hint { margin-top: 18px; color: #fff; font-weight: 700; font-size: 1rem; }
.play-cover .hint small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.62); font-weight: 400; font-size: 0.82rem; }

.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 15px; background: var(--surface); border-top: 1px solid var(--border-soft); }
.player-bar .meta-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.player-bar .note { color: var(--text-faint); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 6px; }
.player-bar .note svg { width: 15px; height: 15px; fill: var(--good); }
.player-bar .note.rating svg { fill: var(--warn); }
.player-tools { display: inline-flex; gap: 8px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: var(--radius-pill); padding: 8px 15px; font-size: 0.83rem; font-weight: 600;
  transition: all var(--speed);
}
.tool-btn:hover { color: var(--text); border-color: var(--accent-line); }
.tool-btn svg { width: 15px; height: 15px; fill: currentColor; }
.tool-btn.active svg { fill: var(--bad); }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; margin-top: 26px; align-items: start; }
.game-desc h2, .side-panel h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.game-desc p { color: var(--text-dim); }

.info-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; margin-top: 22px; }
.info-card h2 { margin-bottom: 10px; font-size: 1.08rem; display: flex; align-items: center; gap: 9px; }
.info-card h2 svg { width: 18px; height: 18px; fill: var(--accent-strong); flex-shrink: 0; }
.info-card p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }

/* game-page content column + feature/controls lists */
.game-content { min-width: 0; }
.game-desc { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.feature-list { display: grid; gap: 9px; margin: 4px 0 0; }
.feature-list li {
  position: relative; padding-left: 27px; color: var(--text-dim); font-size: 0.93rem; line-height: 1.5;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233b82f6' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/11px no-repeat;
}
.controls-list .k { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--accent-ink); }
.controls-note { margin-top: 12px; font-size: 0.85rem; color: var(--text-faint); font-style: italic; }

.fact-list { display: grid; gap: 10px; margin-top: 4px; }
.fact-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt, .fact-list .k { color: var(--text-faint); }
.fact-list .v { color: var(--text); font-weight: 600; text-align: right; }

.side-panel .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ============================================================
   BROWSE / PAGE HEADER / PAGINATION
   ============================================================ */
.page-hero { padding: 34px 0 6px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.015em; display: flex; align-items: center; gap: 12px; }
.page-hero h1 .accent-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); box-shadow: none; }
.page-hero h1 .accent-ico svg { width: 22px; height: 22px; fill: var(--accent-strong); }
.page-hero .count-pill { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 11px; }
.page-hero p { color: var(--text-dim); margin-top: 10px; max-width: 680px; }

.filter-bar { margin: 22px 0 6px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 6px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding-inline: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: 0.92rem;
  transition: all var(--speed);
}
.pager a:hover { border-color: var(--accent-line); color: var(--accent-strong); transform: translateY(-1px); }
.pager .current { background: var(--grad); border: 0; color: #fff; }
.pager .dots { background: transparent; border: 0; color: var(--text-faint); min-width: auto; padding-inline: 4px; }

/* ============================================================
   CONTENT PAGES (About / Privacy / Terms / Contact) — FIXED
   ============================================================ */
.content-page { padding: 40px 0 70px; }
.content-page .content-inner { max-width: 820px; margin-inline: auto; }
.content-page .content-inner.wide { max-width: 900px; }

.content-hero { margin-bottom: 30px; }
.content-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.015em; }
.content-hero .updated {
  display: block;
  color: var(--text-faint); font-size: 0.85rem; margin-top: 14px;
  letter-spacing: 0.01em;
}
/* safety net: any inline icon inside the meta line stays icon-sized */
.content-hero .updated svg {
  width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; margin-right: 5px;
}
.content-hero .lead { color: var(--text-dim); font-size: 1.08rem; margin-top: 16px; }

.article {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
}
.article > p:first-child { margin-top: 0; }
.article h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin: 32px 0 12px; padding-top: 26px; border-top: 1px solid var(--border-soft); }
.article h2:first-of-type { padding-top: 0; border-top: 0; margin-top: 0; }
.article h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; margin: 22px 0 8px; }
.article p, .article li { color: var(--text-dim); }
.article strong { color: var(--text); }
.article ul, .article ol { margin: 0 0 1rem 1.3rem; list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 7px; }
.article a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--accent-ink); }
.article code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 6px; padding: 1px 6px; }

/* value cards (about page) */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 6px 0 4px; }
.value-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; }
.value-card .v-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; margin-bottom: 14px; }
.value-card .v-ico svg { width: 24px; height: 24px; fill: var(--accent-strong); }
.value-card h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -0.005em; margin-bottom: 6px; }
.value-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }

/* contact form */
.form-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label { display: block; font-weight: 600; font-size: 0.86rem; margin: 16px 0 6px; }
.form-card .form-row label, .form-card > label:first-of-type { margin-top: 0; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); padding: 12px 14px;
  font-size: 0.95rem; outline: 0; transition: border-color var(--speed), box-shadow var(--speed);
}
.form-card textarea { min-height: 150px; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-card .btn { margin-top: 22px; width: 100%; }
.form-note { margin-top: 14px; font-size: 0.82rem; color: var(--text-faint); text-align: center; }

.contact-aside { display: grid; gap: 14px; }
.contact-tile { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.contact-tile .c-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; place-items: center; margin-bottom: 12px; }
.contact-tile .c-ico svg { width: 20px; height: 20px; fill: var(--accent-strong); }
.contact-tile h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.005em; margin-bottom: 4px; }
.contact-tile p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }
.contact-tile a { color: var(--accent-strong); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) 300px; gap: 24px; align-items: start; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: 56px; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--text-dim); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 54px clamp(16px, 3vw, 34px) 40px; max-width: var(--content-max); margin-inline: auto; }
.site-footer .logo { color: var(--text); }
.site-footer .logo .dot { color: var(--accent-strong); }
.site-footer .logo-mark { background: var(--grad); border: 0; box-shadow: var(--shadow-glow); }
.footer-brand p { color: var(--text-faint); font-size: 0.92rem; font-weight: 500; margin-top: 14px; max-width: 300px; line-height: 1.6; }
.footer-col h3 { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color var(--speed); }
.footer-col a:hover { color: var(--accent-strong); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 20px; text-align: center; color: var(--text-faint); font-size: 0.82rem; }

/* ============================================================
   SEARCH DROPDOWN
   ============================================================ */
#search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-2);
  overflow: hidden; z-index: 70; max-height: 440px; overflow-y: auto;
}
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; transition: background var(--speed); }
.search-result-item:hover, .search-result-item.highlight { background: var(--surface-2); }
.search-result-item img { width: 58px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg-2); }
.search-result-item .t { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.search-result-item .c { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.search-empty { padding: 20px; color: var(--text-faint); font-size: 0.9rem; text-align: center; }
.search-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-top: 1px solid var(--border-soft); font-size: 0.76rem; color: var(--text-faint); }
.search-footer a { color: var(--accent-strong); font-weight: 600; }
.kbd { font-family: var(--font-mono); font-size: 0.72rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; }

/* ============================================================
   UTILITIES + SCRIM
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(4, 6, 10, 0.62);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity var(--speed);
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   CATEGORY INTRO
   ============================================================ */
.cat-intro { margin-top: 4px; }
.cat-intro-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.cat-intro-card p { color: var(--text-dim); margin: 0; font-size: 0.96rem; line-height: 1.65; }

/* ============================================================
   EDITOR'S PICKS (home)
   ============================================================ */
.section-note { color: var(--text-faint); font-size: 0.86rem; }
.picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pick-card {
  display: flex; gap: 14px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 14px;
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
}
.pick-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.pick-thumb { position: relative; width: 108px; flex-shrink: 0; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-thumb .play-chip { width: 42px; height: 42px; }
.pick-thumb .play-chip svg { width: 17px; height: 17px; }
.pick-card:hover .play-chip { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pick-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pick-cat { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-strong); }
.pick-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.24; letter-spacing: -0.005em; }
.pick-body h3 a:hover { color: var(--accent-strong); }
.pick-body p {
  color: var(--text-dim); font-size: 0.84rem; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.btn-sm { padding: 7px 14px; font-size: 0.82rem; align-self: flex-start; margin-top: auto; }

/* ============================================================
   BLOG / GUIDES
   ============================================================ */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
}
.article-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.article-card .a-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.a-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.a-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 3px 10px;
}
.article-card h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; line-height: 1.24; letter-spacing: -0.01em; }
.article-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; margin: 0; flex: 1; }
.a-meta { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 0.78rem; margin-top: 4px; }
.a-meta .dot-sep { opacity: 0.6; }

/* blog post page */
.blog-post .content-hero .a-tags { margin-bottom: 14px; }
.blog-post .article h2:first-of-type { padding-top: 26px; border-top: 1px solid var(--border-soft); margin-top: 26px; }
.blog-post .article > p:first-of-type { font-size: 1.05rem; color: var(--text); }
.post-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ============================================================
   HOME — WHY US / FAQ / INTRO COPY
   ============================================================ */
/* colourful "why play here" feature cards */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed), border-color var(--speed);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent-line); }
.why-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 15px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.why-ico svg { width: 24px; height: 24px; fill: var(--accent-strong); }
.why-card h3 { font-family: var(--font-display); font-size: 1.16rem; font-weight: 700; margin-bottom: 6px; }
.why-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; line-height: 1.55; }

/* FAQ — native <details> accordion, zero JS */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.faq-item[open] { border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.3rem; line-height: 1;
  transition: transform var(--speed) var(--ease);
}
.faq-item[open] summary::after { content: "\2013"; transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }
.faq-item .faq-a p { margin: 0; }

/* homepage SEO intro copy band */
.home-copy {
  background: var(--grad-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.home-copy h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.home-copy p { color: var(--text-dim); margin: 0 0 0.9rem; }
.home-copy p:last-child { margin-bottom: 0; }
.home-copy strong { color: var(--text); }
.home-copy a { color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   POLICY TABLE (privacy)
   ============================================================ */
.policy-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.9rem; }
.policy-table th, .policy-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--border-soft); vertical-align: top; }
.policy-table thead th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.policy-table td { color: var(--text-dim); }
.policy-table tbody tr:nth-child(even) td { background: var(--surface-2); }

/* ============================================================
   COOKIE CONSENT BAR (GDPR / CCPA)
   ============================================================ */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 14px clamp(12px, 3vw, 26px);
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid var(--border);
  box-shadow: 0 -14px 40px -20px rgba(0, 0, 0, 0.7);
  animation: cookie-rise var(--speed) var(--ease);
}
.cookie-bar[hidden] { display: none; }
@keyframes cookie-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-inner {
  max-width: var(--content-max); margin-inline: auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; }
.cookie-ico svg { width: 22px; height: 22px; fill: var(--accent-strong); }
.cookie-text { flex: 1; min-width: 250px; margin: 0; color: var(--text-dim); font-size: 0.87rem; line-height: 1.5; }
.cookie-text a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .game-layout { grid-template-columns: 1fr; }
  .side-panel .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 250px; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--speed) var(--ease);
    box-shadow: var(--shadow-2);
  }
  .sidebar.open { transform: translateX(0); }
  .main-col { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar .logo-compact { display: inline-flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar-actions .label-hide { display: none; }
  .btn.hide-sm { display: none; }
  .hero { min-height: 300px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
  .grid.dense { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   REFINEMENTS
   ============================================================ */
/* Drop the rounded icon-badge that sat beside section/page headings
   (home, category, blog and page heroes). It read as unnecessary
   decoration; headings now stand on their own. Kept as display:none so
   the badges can be re-enabled later without re-adding any markup. */
.section-head h2 .accent-ico,
.page-hero h1 .accent-ico { display: none; }
/* Safety net: never let an icon inside a pill-shaped tag balloon to its
   intrinsic size (the tag no longer ships one, but this keeps any future
   one contained). */
.tag svg { width: 14px; height: 14px; vertical-align: -2px; }
/* If an ad rail ends up with no ad in it, hide the whole strip — including
   its "Sponsored" label and top border — so nothing looks half-built. */
.ad-rail:empty { display: none; }

/* ============================================================
   V2 DESIGN LAYER
   Everything below styles the blocks introduced with the Game Rig
   redesign: skip link, reveal-on-scroll, eyebrow headings, stat strip,
   category tiles, "how it works" steps, CTA bands, the sidebar promo
   and the back-to-top button. Kept in one block so the v2 additions
   stay easy to read (and easy to tune) as a set.
   ============================================================ */

/* ---------- accessibility: skip to content ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-glow);
  transition: transform var(--speed) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline-offset: 3px; }

/* ---------- reveal on scroll ----------
   The hidden state is applied only once app.js has flagged <html>, so with
   JavaScript disabled (or before it runs) every section stays fully visible
   and indexable — the animation is pure decoration. */
html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}
html.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ---------- eyebrow + section title ---------- */
.section-title { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.stat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  background-image: var(--sheen);
  border: 1px solid var(--border-soft);
  text-align: center;
  overflow: hidden;
  transition: transform var(--speed) var(--ease), border-color var(--speed);
}
.stat-tile::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--grad-line);
  opacity: 0.8;
}
.stat-tile:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.stat-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 4px;
}
.stat-ico svg { width: 20px; height: 20px; fill: var(--accent-strong); }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #a9c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- category tiles ---------- */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 13px;
}
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 20px 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  text-align: center;
  overflow: hidden;
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
}
.cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--speed);
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-2);
}
.cat-tile:hover::before { opacity: 1; }
.cat-tile > * { position: relative; }
.cat-tile-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background var(--speed), border-color var(--speed);
}
.cat-tile-ico svg { width: 22px; height: 22px; fill: var(--accent-strong); }
.cat-tile:hover .cat-tile-ico { background: var(--accent-soft); border-color: var(--accent-line); }
.cat-tile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.cat-tile-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- "how it works" steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  background-image: var(--sheen);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
}
.step:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.step-num {
  position: absolute;
  top: 6px; right: 16px;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(147, 197, 253, 0.09);
  pointer-events: none;
}
.step-ico {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 15px;
}
.step-ico svg { width: 23px; height: 23px; fill: var(--accent-strong); }
.step h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.55; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  border: 1px solid var(--accent-line);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.20), transparent 68%);
  pointer-events: none;
}
.cta-copy { position: relative; max-width: 560px; }
.cta-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 10px 0 8px;
}
.cta-copy p { color: var(--text-dim); margin: 0; font-size: 1rem; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sidebar promo + category counts ---------- */
.nav-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: color var(--speed);
}
.nav-item:hover .nav-count, .nav-item.active .nav-count { color: var(--accent-ink); }

.side-promo {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 20px 0 8px;
  padding: 14px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--accent-line);
  transition: border-color var(--speed), transform var(--speed) var(--ease);
}
.side-promo:hover { transform: translateY(-2px); border-color: var(--accent); }
.side-promo-ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.side-promo-ico svg { width: 17px; height: 17px; fill: var(--accent-strong); }
.side-promo-text { font-size: 0.78rem; line-height: 1.45; color: var(--text-dim); }
.side-promo-text b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.87rem;
  color: var(--text);
  margin-bottom: 2px;
}

/* ---------- search "/" hint ---------- */
.search-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 6px;
  line-height: 1.5;
  flex-shrink: 0;
}
.search-box:focus-within .search-hint { opacity: 0; }

/* ---------- blog card "read" affordance ---------- */
.a-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--speed) var(--ease);
}
.a-more svg { width: 14px; height: 14px; fill: currentColor; }
.article-card:hover .a-more { transform: translateX(3px); }

/* ---------- footer fine print ---------- */
.footer-bottom p { margin: 0; }
.footer-bottom .footer-fine {
  margin: 7px auto 0;
  font-size: 0.76rem;
  color: var(--text-faint);
  opacity: 0.82;
  max-width: 760px;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 75;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--speed), transform var(--speed) var(--ease), border-color var(--speed);
}
.to-top svg { width: 20px; height: 20px; fill: var(--text-dim); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent-line); }
.to-top:hover svg { fill: var(--accent-strong); }
/* keep it clear of the cookie bar while that is on screen */
body.cookie-open .to-top { bottom: 108px; }

/* ---------- small polish on existing blocks ---------- */
.hero { box-shadow: var(--shadow-2); }
.hero-inner { position: relative; }
.game-card { background-image: var(--sheen); }
.faq-item summary:hover { color: var(--accent-ink); }
.home-copy { position: relative; overflow: hidden; }
.home-copy::before {
  content: "";
  position: absolute;
  inset: auto auto -50% -8%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
  pointer-events: none;
}
.home-copy > * { position: relative; }

/* ---------- v2 responsive ---------- */
@media (max-width: 860px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-actions .btn { flex: 1; }
}
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-tile { padding: 16px 10px 14px; }
  .stat-value { font-size: 1.55rem; }
  .cat-tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .step-num { font-size: 2.8rem; }
  .search-hint { display: none; }
  .to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1 !important; transform: none !important; }
}
