/* =========================================================
 * GeekPress Game Theme — main.css
 * Cyberpunk / neon, deep navy + cyan + magenta.
 * ========================================================= */

:root {
  --bg: #0a0f1e;
  --bg2: #060b18;
  --surface: #111728;
  --elev: #182238;
  --cyan: #2fe6ff;
  --cyan-dim: #1d8fa5;
  --magenta: #ff3bb0;
  --magenta-dim: #b8267e;
  --lime: #b6ff3b;
  --cream: #e8eefb;
  --muted: #6e7a99;
  --border: rgba(47, 230, 255, 0.25);
  --border-soft: rgba(47, 230, 255, 0.10);
  /* Single theme face used everywhere (topbar, body, footer, and
     piped into --geekui-font-* for the plugin's GeekPress surfaces
     via geekui-vars.css). */
  --display: "Rajdhani", "Bahnschrift", system-ui, sans-serif;
  --sans: "Rajdhani", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
[data-theme="light"] {
  --bg: #eaf0fa;
  --bg2: #dee5f3;
  --surface: #ffffff;
  --elev: #f4f7fc;
  --cyan: #006c80;
  --magenta: #b8267e;
  --lime: #4a7a1f;
  --cream: #0f1626;
  --muted: #5d6783;
  --border: rgba(0, 108, 128, 0.32);
  --border-soft: rgba(15, 22, 38, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(47,230,255,0.06), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255,59,176,0.05), transparent 55%),
    var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--magenta); }
button { font-family: inherit; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; }

/* ============ TOPBAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
/* Push the sticky topbar below the WP admin bar so it isn't clipped
   when scrolling. WP gives <html> .admin-bar when the bar is shown,
   and the bar itself is 32px on desktop / 46px on small screens. */
.admin-bar .topbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .topbar { top: 46px; }
}
/* Mobile drawer panel is position:fixed (top:0) — also clear the
   admin bar. Desktop panel is position:absolute under .topbar so
   it inherits the topbar's offset and needs no override. */
@media (max-width: 900px) {
  .admin-bar .menu-panel { top: 32px; height: calc(100dvh - 32px); }
}
@media screen and (max-width: 782px) {
  .admin-bar .menu-panel { top: 46px; height: calc(100dvh - 46px); }
}
[data-theme="light"] .topbar { background: rgba(234, 240, 250, 0.92); }
.topbar-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand em { color: var(--magenta); font-style: normal; }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; color: var(--cyan); }
.brand-mark svg { width: 100%; height: 100%; display: block; }

.topbar-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.topbar-search .gpg-search {
  width: 100%;
  max-width: 520px;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ============ HAMBURGER / MENU PANEL ============ */
.menu-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: grid; place-items: center;
  border-radius: 2px;
  padding: 0;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
  flex-shrink: 0;
}
.menu-toggle:hover,
.menu-toggle.open {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(47,230,255,0.20);
}
.menu-toggle-lines {
  width: 18px; height: 14px;
  position: relative;
  display: block;
}
.menu-toggle-lines span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle-lines span:nth-child(1) { top: 0; }
.menu-toggle-lines span:nth-child(2) { top: 6px; }
.menu-toggle-lines span:nth-child(3) { top: 12px; }
.menu-toggle.open .menu-toggle-lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle.open .menu-toggle-lines span:nth-child(2) { opacity: 0; }
.menu-toggle.open .menu-toggle-lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
  z-index: 48;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s ease, visibility 0s;
}
.menu-overlay[hidden] { display: none; }

.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45),
              0 0 30px rgba(47, 230, 255, 0.06) inset;
  padding: 24px 0 28px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .25s ease, opacity .22s ease, visibility 0s linear .25s;
  z-index: 49;
}
.menu-panel.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .28s ease, opacity .22s ease, visibility 0s;
}
[data-theme="light"] .menu-panel {
  background: rgba(234, 240, 250, 0.97);
  box-shadow: 0 20px 50px rgba(24, 32, 44, 0.18),
              0 0 30px rgba(0, 108, 128, 0.06) inset;
}
.menu-panel-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}
.menu-close {
  display: none;
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  border-radius: 2px;
  padding: 0;
  place-items: center;
  transition: color .2s, border-color .2s;
}
.menu-close:hover { color: var(--cyan); border-color: var(--cyan); }
.menu-close svg { display: block; }

.menu-nav {
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.menu-nav > a,
.menu-nav .nav-menu {
  list-style: none; padding: 0; margin: 0;
}
.menu-nav,
.menu-nav .nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.menu-nav,
.menu-nav .nav-menu,
.menu-nav .nav-menu li {
  list-style: none !important;
  list-style-type: none !important;
}
.menu-nav .nav-menu li::marker,
.menu-nav .nav-menu li::before { content: '' !important; display: none !important; }
.menu-nav .nav-menu li { display: block; }
.menu-nav a,
.menu-nav .nav-menu li a {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
  opacity: 0.78;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: opacity .15s ease, color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.menu-nav a:hover,
.menu-nav .nav-menu li a:hover,
.menu-nav a.active,
.menu-nav .current-menu-item > a {
  opacity: 1;
  color: var(--cyan);
  border-color: var(--border);
  background: rgba(47, 230, 255, 0.06);
  box-shadow: 0 0 16px rgba(47, 230, 255, 0.08) inset;
}

body.menu-open { overflow: hidden; }
.signin {
  color: var(--cream);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}
.signin:hover { border-color: var(--cyan); color: var(--cyan); }
.signin-prim { background: var(--magenta); color: #fff; border-color: var(--magenta); box-shadow: 0 0 16px rgba(255,59,176,0.4); }
.signin-prim:hover { background: var(--cyan); border-color: var(--cyan); color: #0a0f1e; box-shadow: 0 0 16px rgba(47,230,255,0.5); }

.theme-toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: grid; place-items: center;
  border-radius: 2px;
}
.theme-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

/* ============ GLOBAL SEARCH ============ */
.global-search {
  max-width: 1400px; margin: 24px auto 0;
  padding: 0 28px;
  position: relative;
}
.gs-form {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 30px rgba(47,230,255,0.05), inset 0 0 0 1px rgba(47,230,255,0.04);
  position: relative;
}
.gs-form input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: var(--cream);
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 14px;
}
.gs-form input::placeholder { color: var(--muted); }
.gs-btn {
  background: var(--magenta);
  color: #fff;
  border: none;
  padding: 0 24px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s;
}
.gs-btn:hover { background: var(--cyan); color: #0a0f1e; }

/* Live search dropdown */
.live-search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  z-index: 100;
}
.live-search-results .ls-item {
  display: flex; gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid var(--border-soft);
}
.live-search-results .ls-item:last-child { border-bottom: none; }
.live-search-results .ls-item:hover { background: var(--elev); }
.ls-item .ls-thumb {
  width: 38px; height: 56px;
  background-size: cover; background-position: center;
  background-color: var(--elev);
  flex-shrink: 0; border-radius: 2px;
}
.ls-item .ls-title { font-family: var(--display); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-size: 13px; color: var(--cyan); }
.ls-item .ls-meta { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 2px; }
.ls-empty { padding: 14px; color: var(--muted); font-size: 12px; text-align: center; }

/* ============ PAGE WRAPPER ============ */
.page {
  max-width: 1400px;
  margin: 28px auto 0;
  padding: 0 28px 80px;
}

/* ============ HERO HEAD (archive/list) ============ */
.hero-head {
  margin-bottom: 24px;
  position: relative;
}
.hero-head.center { text-align: center; }
.hero-title {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin: 0;
  line-height: 1;
  display: flex; align-items: center; gap: 18px;
  text-shadow: 0 0 24px rgba(47,230,255,0.15);
}
.hero-head.center .hero-title { display: inline-flex; justify-content: center; width: 100%; }
.hero-title .dim { color: var(--muted); }
.hero-title em { color: var(--cream); font-style: normal; }
.hero-rule {
  margin-top: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 60%);
  width: 280px;
  max-width: 100%;
  position: relative;
}
.hero-rule::after {
  content: ""; position: absolute;
  left: 280px; top: -3px;
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}
.hero-rule.rainbow {
  background: linear-gradient(90deg, #2fe6ff 0%, #b6ff3b 30%, #ff3bb0 60%, #2fe6ff 100%);
  width: 100%;
  height: 3px;
  border-radius: 2px;
}
.hero-rule.rainbow::after { display: none; }
.hero-sub { margin-top: 12px; color: var(--cream); opacity: 0.85; font-size: 14px; }
.hero-sub strong { color: var(--cyan); font-family: var(--display); letter-spacing: 0.04em; font-weight: 700; }
.hero-sub.small { font-size: 12px; opacity: 0.7; }
.hero-sub-desc { margin-top: 8px; color: var(--cream); opacity: 0.7; max-width: 600px; }

.hex-icon {
  display: inline-block;
  width: 28px; height: 28px;
  color: var(--cyan);
}
.hex-icon svg { width: 100%; height: 100%; }
.hex-icon.big { width: 44px; height: 44px; }

/* ============ GAME HEADER (single) ============ */
.game-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px; flex-wrap: wrap;
}
.gh-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin: 0;
  line-height: 1;
}
.gh-meta {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.gh-meta .date { color: var(--cyan); }
.gh-meta .sep { margin: 0 8px; color: var(--border); }
.gh-meta .full { color: var(--lime); }
.gh-studio { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gh-studio a { color: var(--cyan); }

/* ============ HERO GRID (cover / player / ratings) ============ */
.hero-grid {
  display: grid;
  grid-template-columns: 142px 1fr 250px;
  gap: 14px;
}
.cover {
  width: 142px; aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
}
.cover img.gpg-cover-img,
.cover .wp-post-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-art, .cover-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 25%, rgba(47,230,255,0.2), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(255,59,176,0.2), transparent 55%),
    linear-gradient(160deg, #1e3a72 0%, #142850 50%, #0a1430 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px;
  position: relative;
  color: var(--cream);
}
.cover-art::before, .cover-art::after {
  content: ""; position: absolute;
  width: 16px; height: 16px;
  border: 1.5px solid var(--cyan);
  opacity: 0.7;
}
.cover-art::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.cover-art::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.cover-tag { font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; color: var(--cyan); text-transform: uppercase; }
.cover-title {
  font-family: var(--display);
  font-size: 16px; line-height: 1;
  color: var(--cream); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cover-title em { display: block; font-style: italic; color: var(--cyan); font-size: 12px; margin-top: 4px; font-weight: 500; letter-spacing: 0.06em; text-transform: none; }
.cover-foot { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: var(--cream); display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid rgba(47,230,255,0.3); opacity: 0.8; }

/* Player */
.player {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex; flex-direction: column;
}
.player-main {
  aspect-ratio: 16/9;
  background:
    linear-gradient(180deg, rgba(10,15,30,0.4) 0%, rgba(10,15,30,0.85) 100%),
    radial-gradient(ellipse at center, #2a4f7a 0%, #1a3050 30%, #0a1530 70%, #050a1a 100%);
  background-size: cover; background-position: center;
  position: relative;
  display: grid; place-items: center;
  cursor: pointer;
}
.player-main::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, transparent 99%, rgba(47,230,255,0.05) 100%),
    linear-gradient(0deg, transparent 0%, transparent 99%, rgba(47,230,255,0.05) 100%);
  background-size: 24px 24px;
}
.player-title {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.player-title strong { display: block; font-size: 22px; letter-spacing: 0.06em; font-weight: 700; }
.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--magenta);
  border: none;
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 2;
  box-shadow: 0 0 30px rgba(255,59,176,0.6), 0 0 60px rgba(255,59,176,0.3);
}
.player-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; }
.pthumb {
  aspect-ratio: 16/9;
  border-radius: 3px;
  background-size: cover; background-position: center;
  background-color: #1a1f30;
  position: relative; cursor: pointer; overflow: hidden;
  transition: transform 0.15s;
}
.pthumb:hover { transform: translateY(-2px); }
.pthumb-label { position: absolute; bottom: 6px; left: 8px; font-family: var(--display); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cream); text-shadow: 0 1px 2px rgba(0,0,0,0.6); font-weight: 600; z-index: 2; }
.pthumb-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; background: rgba(255,59,176,0.85); border-radius: 50%; display: grid; place-items: center; color: #fff; z-index: 2; font-size: 10px; }

/* Ratings panel */
.rate-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(17,23,40,0.5);
}
.scores-row { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.score { display: flex; flex-direction: column; gap: 4px; }
.score .row { display: flex; align-items: baseline; gap: 4px; }
.score .star { color: var(--cyan); font-size: 16px; }
.score .v { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--cyan); line-height: 1; }
.score .d { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.score .lbl { font-family: var(--display); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.rate-lbl { font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.rate-lbl::before { content: "★"; color: var(--magenta); }
.stars-input { display: flex; gap: 2px; font-size: 18px; user-select: none; }
.stars-input .s { color: var(--magenta); cursor: pointer; }
.stars-input .s.empty { color: var(--muted); opacity: 0.4; }
.stars-input:hover .s { color: var(--magenta); opacity: 1; }
.stars-input:hover .s.empty + .s.empty,
.stars-input:hover .s + .s.empty { /* keep simple — JS toggles state */ }

.pill-row { display: flex; flex-direction: column; gap: 4px; }
.pill-link { font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); text-decoration: none; display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.pill-link:hover { color: var(--cyan); }
.pill-link::before { content: "✎"; color: var(--magenta); }
.pill-link.list::before { content: "+"; color: var(--cyan); }

.status-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 4px; }
.status-btn {
  border: 1px solid var(--border-soft);
  background: transparent;
  border-radius: 2px;
  color: var(--cream);
  cursor: pointer;
  padding: 8px 4px;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.status-btn svg { color: var(--cyan); }
.status-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.status-btn.active { background: var(--lime); color: #0a0f1e; border-color: var(--lime); }
.status-btn.active svg { color: #0a0f1e; }
.status-btn .cnt { font-family: var(--mono); font-size: 9px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.status-btn.active .cnt { color: rgba(10,15,30,0.7); }

/* ============ TAG ROWS ============ */
.tag-rows {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  gap: 14px;
}
.tag-group {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  background: rgba(17,23,40,0.3);
}
.tag-group-title {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.tag-group-title::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--cyan); transform: rotate(45deg); flex-shrink: 0; }
.tag-group.magenta .tag-group-title { color: var(--magenta); }
.tag-group.magenta .tag-group-title::before { border-color: var(--magenta); }
.tag-group.lime .tag-group-title { color: var(--lime); }
.tag-group.lime .tag-group-title::before { border-color: var(--lime); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  background: var(--elev);
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border-soft);
}
.tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============ TABS ============ */
.tabs {
  margin: 24px 0 0;
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.tab {
  background: none; border: none;
  color: var(--cream);
  opacity: 0.6;
  padding: 12px 0;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; gap: 6px;
}
.tab:hover { opacity: 1; }
.tab.active { opacity: 1; color: var(--cyan); }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.tab .ct { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; }

/* ============ MAIN GRID (single page) ============ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  margin-top: 24px;
}

.section {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: rgba(17,23,40,0.4);
  margin-bottom: 20px;
  overflow: hidden;
}
.section-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(24,34,56,0.5);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; justify-content: space-between;
}
.section-head::before { content: "▸"; color: var(--magenta); margin-right: 8px; }
.section-head .more { color: var(--muted); font-size: 10px; }
.section-body { padding: 16px; }
.section-body p { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--cream); opacity: 0.9; margin: 0 0 1em; }
.section-body p:last-child { margin-bottom: 0; }

/* Recommendations carousel */
.rec-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rec-card { text-decoration: none; color: var(--cream); display: block; transition: transform 0.15s; }
.rec-card:hover { transform: translateY(-2px); }
.rec-poster {
  aspect-ratio: 3/4;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--elev);
  position: relative;
  margin-bottom: 8px;
}
.rec-poster img { width: 100%; height: 100%; object-fit: cover; }
.rec-art { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 12px; background: linear-gradient(135deg, #2a4f7a, #0a1530); }
.rec-art .t { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: 0.04em; font-size: 16px; color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.rec-title { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin: 0; }
.rec-year { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 2px; }

/* Gallery */
.game-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gtile {
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-color: var(--elev);
  border-radius: 3px;
  cursor: zoom-in;
  position: relative; overflow: hidden;
  transition: transform 0.2s;
  border: 1px solid var(--border-soft);
}
.gtile:hover { transform: scale(1.02); border-color: var(--cyan); }
.gtile .gnum {
  position: absolute; bottom: 6px; left: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(232,238,251,0.85);
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Videos grid */
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.vid-card {
  aspect-ratio: 16/9;
  border-radius: 3px;
  background-size: cover; background-position: center;
  background-color: var(--elev);
  position: relative; cursor: pointer;
  border: 1px solid var(--border-soft);
}
.vid-card:hover { border-color: var(--magenta); }
.vid-label { position: absolute; bottom: 8px; left: 10px; font-family: var(--display); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cream); text-shadow: 0 1px 2px rgba(0,0,0,0.6); font-weight: 600; }

/* ============ SIDEBAR INFO CARDS ============ */
.single-sidebar { display: flex; flex-direction: column; }
.info-card {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: rgba(17,23,40,0.4);
  margin-bottom: 16px;
  overflow: hidden;
}
.info-card h3 {
  padding: 8px 14px;
  margin: 0;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(24,34,56,0.5);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; gap: 6px;
}
.info-card h3::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--cyan); transform: rotate(45deg); flex-shrink: 0; }
.info-body { padding: 8px 14px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.info-list .web {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 6px 0;
  display: flex; align-items: center; gap: 6px;
}
.info-list .web::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.info-list .web:hover { color: var(--cyan); }

.release-list { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.release-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  gap: 12px;
}
.release-row:last-child { border-bottom: none; }
.release-row .plat { font-family: var(--display); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }
.release-row .plat .reg { color: var(--muted); display: block; font-size: 9px; margin-top: 1px; }
.release-row .date { font-family: var(--mono); font-size: 10px; color: var(--cyan); white-space: nowrap; }
.read-more { display: block; text-align: right; margin-top: 8px; font-family: var(--display); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta); }
.read-more:hover { color: var(--cyan); }

.dev-row {
  display: grid; grid-template-columns: 110px 1fr;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline; gap: 8px;
}
.dev-row:last-child { border-bottom: none; }
.dev-row dt { font-family: var(--display); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dev-row dd { margin: 0; font-family: var(--display); font-size: 11px; color: var(--cyan); letter-spacing: 0.05em; }

/* Language table */
.lang-table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: 10px; letter-spacing: 0.08em; }
.lang-table th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--border-soft); color: var(--muted); text-transform: uppercase; font-size: 9px; font-weight: 600; }
.lang-table td { padding: 5px 4px; border-bottom: 1px solid var(--border-soft); }
.lang-table tr:last-child td { border-bottom: none; }
.lang-table .check { color: var(--lime); text-align: center; }
.lang-table .dash { color: var(--muted); text-align: center; }

/* Age rating squares */
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px 0; }
.age {
  aspect-ratio: 1;
  border-radius: 3px;
  display: grid; place-items: center;
  text-align: center;
  border: 1px solid var(--border-soft);
  font-family: var(--display);
  font-weight: 700;
  background: var(--elev);
  position: relative; overflow: hidden;
}
.age .agencyTop { position: absolute; top: 4px; left: 0; right: 0; font-size: 7px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.age .grade { font-size: 22px; letter-spacing: 0.02em; color: var(--cream); }
.age .agencyBot { position: absolute; bottom: 4px; left: 0; right: 0; font-size: 7px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.age.red { background: linear-gradient(135deg, #c1162e, #7a0a1c); }
.age.red .grade, .age.red .agencyTop, .age.red .agencyBot { color: #fff; }
.age.green { background: linear-gradient(135deg, #1f8a3a, #0c4a1c); }
.age.green .grade, .age.green .agencyTop, .age.green .agencyBot { color: #fff; }
.age.black { background: #0a0a0a; }
.age.black .grade { color: #fff; }

/* ============ FILTER BAR ============ */
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 0.8fr 0.8fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 28px;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-family: var(--display); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.filter-field input, .filter-field select {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  color: var(--cream);
  border-radius: 2px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  width: 100%;
}
.filter-field input:focus, .filter-field select:focus { border-color: var(--cyan); }
.filter-field select { appearance: none; cursor: pointer; }
.cta-btn {
  background: var(--magenta);
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 16px rgba(255,59,176,0.3);
}
.cta-btn:hover { background: var(--cyan); color: #0a0f1e; box-shadow: 0 0 20px rgba(47,230,255,0.4); }

/* ============ GAMES GRID (archive) ============ */
.gpg-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
}
.game-card { text-decoration: none; color: var(--cream); display: block; transition: transform 0.15s; }
.game-card:hover { transform: translateY(-3px); }
.game-card-cover {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
}
.game-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-card-score {
  position: absolute; top: 8px; right: 8px;
  background: rgba(10,15,30,0.85);
  border: 1px solid var(--cyan);
  border-radius: 2px;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  font-weight: 700;
}
.game-card-info { padding: 12px 4px; }
.game-card-title { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 4px; color: var(--cyan); line-height: 1.1; }
.game-card-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.empty-state { text-align: center; padding: 80px 32px; }
.empty-state h2 { font-family: var(--display); font-size: 28px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cream); }

/* ============ PLATFORMS GRID ============ */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.platform-card {
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.platform-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.platform-logo {
  width: 100%; height: 140px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--elev) 0%, var(--surface) 100%);
  padding: 16px;
}
.platform-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.platform-no-logo {
  width: 90px; height: 70px;
  border: 1.5px solid var(--cyan);
  display: grid; place-items: center;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.08em;
}
.platform-info {
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.platform-info h3 { font-family: var(--display); font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; color: var(--cream); }
.platform-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.platform-meta .lbl { font-family: var(--display); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.platform-meta .val { font-family: var(--display); font-size: 12px; color: var(--cyan); letter-spacing: 0.04em; }
.platform-info .caret {
  position: absolute;
  right: 14px; bottom: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--bg);
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 700;
}

/* ============ DEVELOPERS A-Z ============ */
.developers-shell {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 24px;
  background: var(--surface);
  margin-top: 16px;
  position: relative;
}
.developers-shell::before, .developers-shell::after {
  content: ""; position: absolute;
  width: 16px; height: 16px;
  border: 1.5px solid var(--cyan);
  opacity: 0.6;
}
.developers-shell::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.developers-shell::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.dev-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}
.dev-head-left { display: flex; align-items: center; gap: 16px; }
.dev-title { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin: 0; }
.dev-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.dev-totals {
  border: 1px solid var(--cyan);
  padding: 10px 22px;
  border-radius: 2px;
  text-align: center;
  background: rgba(47,230,255,0.05);
}
.dev-totals-label { font-family: var(--display); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dev-totals-num { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--cyan); letter-spacing: 0.04em; line-height: 1; margin-top: 4px; }

.dev-row-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.dev-row-block:last-child { border-bottom: none; }
.dev-letter {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
  border: 1.5px solid var(--cyan);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(47,230,255,0.05);
}
.dev-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 14px;
}
.dev-link { font-family: var(--display); font-size: 13px; letter-spacing: 0.05em; color: var(--cream); text-decoration: none; padding: 3px 0; }
.dev-link:hover { color: var(--cyan); }

/* ============ LIST PAGE ============ */
.list-head {
  margin-bottom: 28px;
}
.back-link { display: inline-block; margin-bottom: 12px; font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); opacity: 0.7; }
.back-link:hover { opacity: 1; color: var(--cyan); }
.list-meta { font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.list-meta .sep { margin: 0 8px; color: var(--border); }
.list-intro {
  border-left: 2px solid var(--cyan);
  padding: 8px 16px;
  background: rgba(47,230,255,0.04);
  font-family: var(--sans); font-size: 14px;
  color: var(--cream); opacity: 0.9;
  margin-bottom: 28px;
}

/* List archive */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.list-card {
  --accent: var(--cyan);
  display: flex; flex-direction: column;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.15s, transform 0.15s;
}
.list-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.list-card-stack { display: flex; gap: 4px; padding: 12px; aspect-ratio: 2/1; align-items: stretch; }
.list-card-thumb { flex: 1; background-size: cover; background-position: center; background-color: var(--elev); border-radius: 2px; min-width: 0; }
.list-card-thumb.empty { background: linear-gradient(135deg, var(--elev), var(--bg2)); }
.list-card-info { padding: 12px 16px 16px; border-top: 1px solid var(--border-soft); }
.list-card-info h3 { font-family: var(--display); font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.list-card-info .meta { font-family: var(--mono); font-size: 10px; color: var(--muted); }

/* ============ DEFAULT BLOG ============ */
.post-list { display: flex; flex-direction: column; gap: 20px; max-width: 1000px; margin: 0 auto; }
.post-card { display: grid; grid-template-columns: 240px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 4px; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px 22px; }
.post-card-title { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 6px 0; }
.post-card-title a { color: var(--cyan); }
.post-card-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.post-card-excerpt { font-size: 13px; opacity: 0.9; }
.post-card-more { color: var(--magenta); font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.single-post-thumb { margin: 24px auto; max-width: 1100px; }
.single-post-thumb img { border-radius: 4px; }
.post-meta-line { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.post-content { font-size: 15px; line-height: 1.7; max-width: 720px; margin: 24px auto; }
.post-content p { margin: 0 0 1em; }

/* ============ 404 ============ */
.err-num {
  font-family: var(--display);
  font-size: 96px;
  font-weight: 700;
  color: var(--magenta);
  letter-spacing: 0.06em;
  text-shadow: 0 0 30px rgba(255,59,176,0.4);
  line-height: 1;
}
.not-found-search { margin-top: 18px; display: flex; gap: 8px; justify-content: center; max-width: 480px; margin-left: auto; margin-right: auto; }
.not-found-search input { flex: 1; background: var(--surface); border: 1px solid var(--border-soft); color: var(--cream); border-radius: 2px; padding: 11px 14px; font-family: var(--sans); font-size: 13px; }

/* ============ COMMENTS ============ */
.comments-area { max-width: 720px; }
.comments-title { font-family: var(--display); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-body { padding: 14px; border: 1px solid var(--border-soft); border-radius: 3px; margin-bottom: 10px; background: var(--surface); }
.comment-author { font-family: var(--display); font-weight: 600; color: var(--cyan); letter-spacing: 0.04em; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--cream);
  padding: 10px 12px;
  font-family: var(--sans);
  border-radius: 2px;
  outline: none;
}
.comment-form label { display: block; font-family: var(--display); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 80px;
  padding: 40px 28px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer-cols {
  max-width: 1400px; margin: 0 auto 32px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; text-align: left;
}
.footer-col h4 { font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.footer-bottom .b { font-family: var(--display); font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.footer-bottom .b em { color: var(--magenta); font-style: normal; }
.footer-bottom .copy { margin-top: 12px; font-size: 11px; opacity: 0.7; }
.footer-nav { display: flex; gap: 18px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.footer-nav ul,
.footer-nav .menu {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.footer-nav li,
.footer-nav .menu li { list-style: none !important; }
.footer-nav li::marker,
.footer-nav .menu li::marker { content: '' !important; }
.footer-nav a {
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--cyan); }

/* ============ LIGHTBOX & VIDEO MODAL ============ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 8, 18, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 80vh; border-radius: 3px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); object-fit: contain; }
.lightbox-close, .vid-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  cursor: pointer; font-size: 16px;
  display: grid; place-items: center;
  z-index: 2;
}
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--cyan); color: var(--cyan); cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-caption { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }

.vid-modal {
  position: fixed; inset: 0;
  background: rgba(5,8,18,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.vid-modal.open { display: flex; }
.vid-frame { width: min(900px, 90vw); aspect-ratio: 16/9; background: #000; border: 1px solid var(--cyan); border-radius: 4px; overflow: hidden; }
.vid-frame iframe { width: 100%; height: 100%; border: 0; }

/* ============ PAGINATION ============ */
.gpg-pagination {
  margin-top: 48px;
  display: flex; justify-content: center; gap: 4px;
}
.gpg-pagination .page-numbers {
  min-width: 36px; height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  display: grid; place-items: center;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--display);
  font-size: 13px;
  padding: 0 10px;
  letter-spacing: 0.04em;
}
.gpg-pagination .page-numbers.current,
.gpg-pagination .page-numbers:hover { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }

/* ============ SPECIAL HOMEPAGE (front-page.php widget grid) ============ */
.gpg-home { padding-bottom: 60px; --gpg-home-gap: 20px; }
.gpg-home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gpg-home-gap);
  align-items: stretch;
}
.gpg-home-widget {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(17, 23, 40, 0.45);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 20px 22px;
}
[data-theme="light"] .gpg-home-widget {
  background: rgba(255, 255, 255, 0.55);
}
.gpg-home-widget-title {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.gpg-home-widget-body { flex: 1 1 auto; min-width: 0; }
.gpg-home-placeholder {
  padding: 28px 18px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  background: rgba(47, 230, 255, 0.03);
}
/* Content widget (text/HTML/shortcode) */
.gpg-home-content { color: var(--cream); line-height: 1.6; }
.gpg-home-content p:first-child { margin-top: 0; }
.gpg-home-content p:last-child  { margin-bottom: 0; }
.gpg-home-content a            { color: var(--cyan); }
.gpg-home-content img          { max-width: 100%; height: auto; border-radius: 4px; }
/* AdSense widget — fill the column; ad rendering is fully controlled
   by AdSense itself, we just centre it and reset weird outer margins. */
.gpg-home-adsense { display: flex; justify-content: center; align-items: center; min-height: 90px; }
.gpg-home-adsense ins { max-width: 100%; }

/* Recently Released widget
   ── Grid view: 5-col poster cards (2:3 covers, title + date underneath)
   ── List view: vertical rows with small poster + title + date — stays
      readable when the widget is in a narrow (1/3, 1/4) column. */
.gpg-recent-released { display: grid; gap: 14px; }
.gpg-recent-released--grid { grid-template-columns: repeat(5, 1fr); }
.gpg-recent-released--list {
  grid-template-columns: 1fr;
  gap: 8px;
}
.gpg-recent-released--list .gpg-rr-card {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: rgba(47, 230, 255, 0.03);
}
.gpg-recent-released--list .gpg-rr-card:hover {
  border-color: var(--border);
  transform: none;
}
.gpg-recent-released--list .gpg-rr-poster {
  flex: 0 0 44px;
  width: 44px;
  height: 64px;
  aspect-ratio: auto;
  border-radius: 3px;
}
.gpg-recent-released--list .gpg-rr-noposter { font-size: 8px; }
.gpg-recent-released--list .gpg-rr-meta { flex: 1 1 auto; min-width: 0; }
.gpg-recent-released--list .gpg-rr-title { font-size: 13px; }
.gpg-recent-released--list .gpg-rr-date  { font-size: 10px; }

/* ─────────────────────────────────────────────────────────────────────
   Global widget placement (Show on all pages → top/bottom/sidebar).
   Top/bottom inject via the_content filter — wrap in card chrome that
   matches the homepage widget shell. Sidebar is a fixed floating
   panel anchored to the right edge, hidden on phones to avoid covering
   the article body.
   ───────────────────────────────────────────────────────────────── */
.gpg-home-widget--global {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
/* Header / footer bands — full-bleed strip across the page, content
   inside is clamped to a comfortable reading width like the rest of
   the site. Sits outside `the_content`, so it doesn't need the inner
   card chrome the inline placements use. */
.gpg-global-band {
  background: var(--surface-soft, rgba(255, 255, 255, 0.02));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.gpg-global-band--header { border-top: 0; }
.gpg-global-band--footer { border-bottom: 0; }
/* The site-footer ships with margin-top: 80px to separate it from
   page content. When the footer-above band is present it sits flush
   between </main> and <footer>, so kill that gap. */
.gpg-global-band--footer + .site-footer,
.gpg-global-band--footer + footer.site-footer { margin-top: 0; }
.gpg-global-band-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px;
}
.gpg-global-band .gpg-home-widget--global {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.gpg-global-band .gpg-home-widget--global:last-child { margin-bottom: 0; }
.gpg-home-widget--global .gpg-home-widget-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.gpg-global-sidebar {
  position: fixed;
  top: 96px;                 /* sits under the sticky topbar */
  right: 18px;
  width: 300px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 14px;
  background: rgba(8, 14, 22, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;               /* under topbar (100) and modals (1000+) */
}
.gpg-global-sidebar .gpg-home-widget--global {
  margin: 0 0 12px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.gpg-global-sidebar .gpg-home-widget--global:last-child { margin-bottom: 0; }
.gpg-global-sidebar .gpg-home-widget-title { font-size: 14px; margin-bottom: 10px; }
/* Slider hits the panel edge — shrink to fit */
.gpg-global-sidebar .gpg-recent-visited .gpg-rr-card,
.gpg-global-sidebar .gpg-recent-visited .gpg-rr-poster { width: 110px; flex-basis: 110px; }
.gpg-global-sidebar .gpg-recent-visited .gpg-rr-poster { height: 165px; }
.gpg-global-sidebar .gpg-rv-nav { top: 84px; width: 32px; height: 32px; }
@media (max-width: 980px) {
  .gpg-global-sidebar { display: none; }
}
/* WP admin-bar adds 32px (mobile 46px) — push the panel down */
.admin-bar .gpg-global-sidebar { top: 128px; }
@media (max-width: 782px) {
  .admin-bar .gpg-global-sidebar { top: 142px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Recently Reviewed — IGDB-style review cards. Each card pairs the
   reviewed game's cover (left, full-height) with a body that shows
   the game title + (year), a clamped excerpt of the review body,
   and a footer with the reviewer's avatar, date and star score.
   Grid view = 2-column on desktop, 1-col on narrow. List = 1-col rows.
   ───────────────────────────────────────────────────────────────── */
.gpg-reviews--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}
.gpg-reviews--list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gpg-review-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.gpg-review-card:hover {
  border-color: var(--cyan);
  background: rgba(47, 230, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(47, 230, 255, 0.30) inset,
    0 8px 22px rgba(47, 230, 255, 0.18);
}
.gpg-review-poster {
  flex: 0 0 130px;
  width: 130px;
  background: var(--surface) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  position: relative;
}
.gpg-review-noposter {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gpg-review-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  gap: 8px;
}
.gpg-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.gpg-review-game {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--magenta, #e040fb);
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.gpg-review-game:hover { color: var(--cyan); }
.gpg-review-game .gpg-review-year { color: var(--muted); font-weight: 600; }
.gpg-review-text {
  flex: 1 1 auto;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.85;
  text-decoration: none !important;
  /* Multi-line clamp with a fade at the bottom edge so long reviews
     bleed out instead of cutting hard mid-word. */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}
.gpg-review-text::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1.6em;
  /* Fade towards the card surface so the gradient blends in both
     light and dark themes (was a hardcoded dark rgba which painted
     a grey bar over light-mode card backgrounds). */
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}
.gpg-review-card:hover .gpg-review-text { color: var(--cream); }
.gpg-review-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  margin-top: 2px;
}
.gpg-review-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 24px;
}
.gpg-review-avatar--ph { background: var(--surface); }
.gpg-review-user {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--magenta, #e040fb);
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.gpg-review-user:hover { color: var(--cyan); }
.gpg-review-spacer { flex: 1 1 auto; }
.gpg-review-date { font-size: 11px; }
.gpg-review-rate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.gpg-review-rate--exceptional { color: #e040fb; }
.gpg-review-rate--great       { color: #52d45a; }
.gpg-review-rate--good        { color: #7ed957; }
.gpg-review-rate--mixed       { color: #f0c040; }
.gpg-review-rate--poor        { color: #f07040; }
.gpg-review-rate--muted       { color: var(--muted); }
@media (max-width: 700px) {
  .gpg-reviews--grid { grid-template-columns: 1fr; }
  .gpg-review-poster { flex-basis: 100px; width: 100px; }
  .gpg-review-card { min-height: 180px; }
  .gpg-review-text { -webkit-line-clamp: 4; }
}

/* ─────────────────────────────────────────────────────────────────────
   Latest Critics — asymmetric mosaic of game critic reviews. Each
   card uses the linked game's backdrop image (artwork → background →
   screenshot fallback) with the title + gameplay tag on top-left and
   a metacritic-style percentage chip pinned to the bottom-right.
   Row 1 = 3 small landscape cards. The 4th card becomes the hero:
   col-span 2 + row-span 2 so it dominates row 2. Cards 5-6 stack to
   its right as 2 small cards. Counts ≠ 6 still render — the grid
   gracefully wraps to extra rows. Mobile collapses to 2 cols.
   ───────────────────────────────────────────────────────────────── */
.gpg-critics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gpg-critic-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--cream) !important;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 200px;
}
.gpg-critic-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(47, 230, 255, 0.30) inset,
    0 12px 26px rgba(47, 230, 255, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.55);
}
.gpg-critic-card--hero {
  grid-column: span 2;
  grid-row: span 2;
}
.gpg-critic-bg {
  position: absolute;
  inset: 0;
  background: var(--surface) center / cover no-repeat;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.gpg-critic-card:hover .gpg-critic-bg {
  transform: scale(1.04);
  filter: brightness(1.04) saturate(1.08);
}
/* Dark veil so title text stays readable on bright backdrops */
.gpg-critic-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.0) 30%, rgba(0, 0, 0, 0.0) 50%, rgba(0, 0, 0, 0.70) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}
.gpg-critic-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.gpg-critic-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gpg-critic-card--hero .gpg-critic-title {
  font-size: 28px;
}
.gpg-critic-tag {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.gpg-critic-card--hero .gpg-critic-tag { font-size: 13px; }
.gpg-critic-score {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--cream);
}
.gpg-critic-card--hero .gpg-critic-score {
  font-size: 28px;
  padding: 8px 14px;
  bottom: 18px;
  right: 18px;
}
.gpg-critic-score--exceptional { color: #e040fb; border-color: rgba(224, 64, 251, 0.40); }
.gpg-critic-score--great       { color: #52d45a; border-color: rgba(82, 212, 90, 0.40); }
.gpg-critic-score--good        { color: #7ed957; border-color: rgba(126, 217, 87, 0.35); }
.gpg-critic-score--mixed       { color: #f0c040; border-color: rgba(240, 192, 64, 0.40); }
.gpg-critic-score--poor        { color: #f07040; border-color: rgba(240, 112, 64, 0.40); }
.gpg-critic-score--muted       { color: var(--muted); }
@media (max-width: 980px) {
  .gpg-critics { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  /* Hero card stays 2-cols × 2-rows but the grid is only 2 cols now,
     so it just becomes the full-width header card. */
  .gpg-critic-card--hero { grid-column: span 2; grid-row: span 2; }
  .gpg-critic-card--hero .gpg-critic-title { font-size: 24px; }
  .gpg-critic-card--hero .gpg-critic-score { font-size: 24px; }
}
@media (max-width: 560px) {
  .gpg-critics { grid-template-columns: 1fr; grid-auto-rows: 160px; }
  .gpg-critic-card--hero { grid-column: 1; grid-row: span 2; min-height: 320px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Latest News — auto-fill grid of editorial cards. Each card shows
   a thumbnail (16:9), a 2-line title and a date+author subline. A
   small tag chip overlays the thumbnail (game title for critic items,
   "Post" for blog entries) so admins can see source mix at a glance.
   List view collapses to horizontal rows for sidebar/narrow widgets.
   ───────────────────────────────────────────────────────────────── */
.gpg-news--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gpg-news--list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gpg-news-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--cream) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.gpg-news-card:hover {
  border-color: var(--cyan);
  background: rgba(47, 230, 255, 0.06);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(47, 230, 255, 0.35) inset,
    0 10px 24px rgba(47, 230, 255, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.55);
}
.gpg-news-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface) center / cover no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-size 0.35s ease, filter 0.25s ease;
}
.gpg-news-card:hover .gpg-news-img {
  background-size: 106% auto;
  filter: brightness(1.06) saturate(1.08);
}
.gpg-news-noimg {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gpg-news-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpg-news-tag--critic { color: var(--cyan); border-color: rgba(47, 230, 255, 0.40); }
.gpg-news-tag--post   { color: #f0c040;    border-color: rgba(240, 192, 64, 0.40); }
.gpg-news-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}
.gpg-news-title {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--cream);
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.gpg-news-card:hover .gpg-news-title { color: var(--cyan); }
.gpg-news-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
/* List view — image left, meta right */
.gpg-news--list .gpg-news-card {
  flex-direction: row;
  align-items: stretch;
}
.gpg-news--list .gpg-news-img {
  flex: 0 0 130px;
  width: 130px;
  aspect-ratio: 16 / 10;
}
.gpg-news--list .gpg-news-meta { flex: 1 1 auto; min-width: 0; padding: 10px 14px; }
.gpg-news--list .gpg-news-title { font-size: 12px; }
.gpg-news--list .gpg-news-tag { bottom: 6px; left: 6px; font-size: 9px; padding: 2px 6px; }
@media (max-width: 700px) {
  .gpg-news--grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .gpg-news--list .gpg-news-img { flex-basis: 100px; width: 100px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Last Added Lists — auto-fill card grid of user-curated lists.
   Each card has a 16:10 cover hero + body (name + summary excerpt +
   author chip). Adapts to widget width via auto-fill minmax.
   ───────────────────────────────────────────────────────────────── */
.gpg-ll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gpg-ll-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--cream) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.gpg-ll-card:hover {
  border-color: var(--cyan);
  background: rgba(47, 230, 255, 0.06);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(47, 230, 255, 0.30) inset,
    0 10px 24px rgba(47, 230, 255, 0.22);
}
.gpg-ll-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-size 0.35s ease, filter 0.25s ease;
}
.gpg-ll-card:hover .gpg-ll-cover {
  background-size: 106% auto;
  filter: brightness(1.05) saturate(1.06);
}
/* Strip variant — mirrors /lists ListCard.jsx (`.gxl-card-posters`).
   4-col grid of 2:3 poster panes with a darken-to-bottom shade and
   subtle dividers. Uses <img> tags so DevTools can show 404s. */
.gpg-ll-cover--strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: auto;          /* let the 2:3 panes set the height */
}
.gpg-ll-cover--strip .gpg-ll-cover-pane {
  position: relative;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.gpg-ll-cover--strip .gpg-ll-cover-pane:last-child { border-right: 0; }
.gpg-ll-cover--strip .gpg-ll-cover-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease, transform 0.35s ease;
}
.gpg-ll-cover--strip .gpg-ll-cover-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
}
.gpg-ll-card:hover .gpg-ll-cover--strip .gpg-ll-cover-pane img {
  filter: brightness(1.06) saturate(1.06);
}
.gpg-ll-nocover {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gpg-ll-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1 1 auto;
  min-width: 0;
}
.gpg-ll-name {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--cream);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.gpg-ll-card:hover .gpg-ll-name { color: var(--cyan); }
.gpg-ll-sum {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(231, 238, 247, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gpg-ll-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--muted);
}
.gpg-ll-author {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--magenta, #e040fb);
}
@media (max-width: 700px) {
  .gpg-ll-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .gpg-ll-name { font-size: 13px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Release Countdown — 2×2 grid of upcoming games. Each card has a
   backdrop image with a dark gradient overlay; the title + release
   date sit top-left and a live "days / hours / minutes" digit row
   spans the bottom. JS engine (main.js) updates digits every second
   from a `data-gpg-countdown` ISO timestamp on the card.
   ───────────────────────────────────────────────────────────────── */
.gpg-rc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gpg-rc-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--cream) !important;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.gpg-rc-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(47, 230, 255, 0.30) inset,
    0 12px 26px rgba(47, 230, 255, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.55);
}
.gpg-rc-bg {
  position: absolute;
  inset: 0;
  background: var(--surface) center / cover no-repeat;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.gpg-rc-card:hover .gpg-rc-bg {
  transform: scale(1.04);
  filter: brightness(1.05) saturate(1.06);
}
.gpg-rc-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.20) 50%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}
.gpg-rc-meta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  pointer-events: none;
}
.gpg-rc-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  /* 1-line ellipsis (title sits next to date) */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gpg-rc-date {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}

/* Countdown digit row: DAYS | HOURS | MINUTES, each unit is a stack
   of 2-3 glassy digit panels with a small label underneath. Matches
   the screenshot style — frosted-glass tiles on the bottom of each
   card. */
.gpg-rc-timer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
}
.gpg-rc-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gpg-rc-digits {
  display: inline-flex;
  gap: 2px;
}
.gpg-rc-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gpg-rc-label {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.gpg-rc-sep {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 36px;
  padding-bottom: 14px;
}
@media (max-width: 900px) {
  .gpg-rc-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gpg-rc-title { font-size: 19px; }
  .gpg-rc-digit { width: 24px; height: 32px; font-size: 22px; }
  .gpg-rc-sep { font-size: 24px; padding-bottom: 13px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Hero Banner — full-width cinematic slider. Each slide uses the
   game's cover as a heavily blurred, darkened backdrop and lays the
   poster + title block on top. Prev/next chevrons + dot pagination,
   optional autoplay driven by main.js.
   ───────────────────────────────────────────────────────────────── */
.gpg-hero {
  position: relative;
  width: 100%;
  /* Slightly taller than before so the trailer can grow without
     squeezing the poster or content beside it. */
  height: clamp(360px, 52vh, 600px);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.gpg-hero-track { position: absolute; inset: 0; }
.gpg-hero-slide {
  position: absolute;
  inset: 0;
  background: var(--surface) center / cover no-repeat;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 40px 56px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}
.gpg-hero-slide.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }
/* Darken + blur the cover background so the title block reads on
   any cover. We layer the blur on a pseudo-element so the underlying
   background-image keeps its crisp clip but the visible bg blurs. */
.gpg-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  /* Light blur — keeps the artwork legible while still softening
     the edges enough that the title block stays readable. */
  filter: blur(6px) saturate(1.05);
  transform: scale(1.03);                  /* hide blur edge bleeding */
  z-index: 0;
}
.gpg-hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Soft side-vignette only — the middle is almost transparent so
     the cover art comes through, edges keep just enough dim for the
     prev/next chevrons + side text to stay legible. */
  background: linear-gradient(120deg, rgba(2, 8, 16, 0.55) 0%, rgba(2, 8, 16, 0.12) 50%, rgba(2, 8, 16, 0.55) 100%);
  z-index: 1;
}
.gpg-hero-poster {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 2 / 3;
  background: var(--surface) center / cover no-repeat;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(47, 230, 255, 0.20);
  position: relative;
  z-index: 2;
}
/* Trailer slot — sits to the right of the content block. Only
   rendered when the admin enabled trailer mode AND the game has an
   attached YouTube/Vimeo video. Slide is layout-flex, so the trailer
   gets its own column without crowding the poster + content.
   Sized to grow when there's room: at desktop widths it occupies
   ~46% of the hero, far more present than the old 360px box. */
.gpg-hero-trailer {
  flex: 1 1 540px;
  max-width: 640px;
  min-width: 360px;
  align-self: center;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(47, 230, 255, 0.22),
    0 0 60px rgba(47, 230, 255, 0.10);
  position: relative;
  z-index: 2;
  background: #000;
}
.gpg-hero-trailer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* The iframe still autoplays muted, but the absolute <a> overlay
     above it captures all clicks (YouTube's own UI is suppressed). */
  pointer-events: none;
}
/* Click overlay — routes clicks to the gp_video single page while the
   video keeps autoplaying behind it. Reveals a soft gradient + play
   chip + caption on hover so the click target is discoverable. */
.gpg-hero-trailer-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 16px;
  color: var(--cream);
  text-decoration: none !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.30) 35%, rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.gpg-hero-trailer:hover .gpg-hero-trailer-link,
.gpg-hero-trailer-link:focus-visible {
  opacity: 1;
}
.gpg-hero-trailer-play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--cyan);
  color: #06121d;
  box-shadow: 0 6px 16px rgba(47, 230, 255, 0.45);
  transition: transform 0.18s ease;
}
.gpg-hero-trailer-link:hover .gpg-hero-trailer-play { transform: scale(1.06); }
.gpg-hero-trailer-cap {
  /* Push the caption to the right edge of the trailer — play chip
     stays on the left, label hugs the right corner. */
  margin-left: auto;
  text-align: right;
  min-width: 0;
  max-width: 60%;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Tighter content lane when a trailer is on screen — the trailer
   becomes the visual anchor, content sits as supporting copy. */
.gpg-hero-slide.has-trailer .gpg-hero-content { max-width: 340px; flex: 0 1 auto; }
.gpg-hero-slide.has-trailer .gpg-hero-poster   { width: 180px; }
.gpg-hero-slide.has-trailer .gpg-hero-title    { font-size: clamp(22px, 2.6vw, 36px); }
.gpg-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 600px;
  color: var(--cream);
}
.gpg-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.gpg-hero-meta .gpg-hero-tag,
.gpg-hero-meta .gpg-hero-year { opacity: 0.9; }
.gpg-hero-meta .gpg-hero-rate {
  color: #52d45a;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.gpg-hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--cream);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}
.gpg-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #06121d !important;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 6px 18px rgba(47, 230, 255, 0.35);
}
.gpg-hero-cta:hover {
  transform: translateY(-1px);
  background: #6cf2ff;
  box-shadow: 0 10px 22px rgba(47, 230, 255, 0.45);
}
/* Nav arrows — float over the hero, hide on first/last via JS */
.gpg-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.55);
  backdrop-filter: blur(6px);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.gpg-hero-nav:hover { background: var(--cyan); color: #06121d; border-color: var(--cyan); }
.gpg-hero-nav--prev { left: 16px; }
.gpg-hero-nav--next { right: 16px; }
.gpg-hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.gpg-hero-dot {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.3s ease;
}
.gpg-hero-dot.is-active { background: var(--cyan); width: 36px; }
.gpg-hero-dot:hover { background: rgba(255, 255, 255, 0.50); }
@media (max-width: 1180px) {
  .gpg-hero-trailer { flex-basis: 440px; min-width: 320px; }
  .gpg-hero-slide.has-trailer .gpg-hero-content { max-width: 280px; }
  .gpg-hero-slide.has-trailer .gpg-hero-poster { width: 160px; }
}
@media (max-width: 980px) {
  /* Trailer becomes the headline — drop the poster when space is
     tight so the video stays generously sized. */
  .gpg-hero-slide.has-trailer .gpg-hero-poster { display: none; }
  .gpg-hero-trailer { flex-basis: 460px; }
  .gpg-hero-slide.has-trailer .gpg-hero-content { max-width: 320px; }
}
@media (max-width: 780px) {
  .gpg-hero { height: auto; min-height: 360px; }
  .gpg-hero-slide { flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; justify-content: flex-end; }
  .gpg-hero-poster { width: 130px; }
  .gpg-hero-slide.has-trailer .gpg-hero-poster { display: none; }
  .gpg-hero-nav { width: 36px; height: 36px; }
  .gpg-hero-trailer { flex-basis: auto; width: 100%; min-width: 0; max-width: 100%; }
  .gpg-hero-slide.has-trailer .gpg-hero-content { max-width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────────
   New Arrivals — flat grid version of the same IGDB-style card used
   by Recently Visited. Auto-fill keeps the cards around 150-170 px
   wide so a full-width widget shows 7-9 covers per row instead of
   stretching just 5 across the page.
   ───────────────────────────────────────────────────────────────── */
.gpg-la-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.gpg-la-grid .gpg-rr-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--cream) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.gpg-la-grid .gpg-rr-card:hover {
  border-color: var(--cyan);
  background: rgba(47, 230, 255, 0.06);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(47, 230, 255, 0.35) inset,
    0 10px 24px rgba(47, 230, 255, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.55);
}
.gpg-la-grid .gpg-rr-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 0;
  border-radius: 0;
  background: var(--surface) center / cover no-repeat;
  position: relative;
  overflow: hidden;
  transition: background-size 0.35s ease, filter 0.25s ease;
}
.gpg-la-grid .gpg-rr-card:hover .gpg-rr-poster {
  background-size: 106% auto;
  filter: brightness(1.06) saturate(1.08);
}
.gpg-la-grid .gpg-rr-meta {
  padding: 10px 12px 12px;
  gap: 6px;
  display: flex;
  flex-direction: column;
}
.gpg-la-grid .gpg-rr-title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.gpg-la-grid .gpg-rr-card:hover .gpg-rr-title { color: var(--cyan); }
.gpg-la-grid .gpg-rr-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  font-size: 10px;
}
.gpg-la-grid .gpg-rr-genre {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}
.gpg-la-grid .gpg-rr-rating {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}
.gpg-la-grid .gpg-rr-rating .gpg-rr-star { font-size: 12px; line-height: 1; }
.gpg-la-grid .gpg-rr-rating .gpg-rr-star--empty { color: rgba(255, 255, 255, 0.25); }
@media (max-width: 700px) {
  .gpg-la-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Recently Visited — horizontal slider with prev/next arrow buttons
   (no scrollbar). Catalog-style cards: fixed 140×210 poster, rating
   chip overlaid on the bottom-left, centered title underneath.
   Outer wrapper anchors the absolute-positioned nav arrows.
   ───────────────────────────────────────────────────────────────── */
.gpg-rv-slider {
  position: relative;
}
.gpg-recent-visited {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  /* Generous vertical gutter so the hover cyan glow (28px blur) has
     room inside the track's clip rect without being shaved at the top
     or bleeding into the section title above. */
  padding: 18px 2px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
/* Hide the scrollbar — slider is driven by the arrow buttons */
.gpg-recent-visited::-webkit-scrollbar { display: none; height: 0; width: 0; }
.gpg-recent-visited { scrollbar-width: none; -ms-overflow-style: none; }

/* Arrow buttons — float over the track, slightly hanging off the edge */
.gpg-rv-nav {
  position: absolute;
  top: 101px;               /* center on 200px poster (18 + 100 - 18 = 100, +1px border) */
  z-index: 5;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.85);
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease, opacity 0.18s ease;
}
.gpg-rv-nav:hover {
  color: #0a141e;
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.gpg-rv-nav[hidden] { display: none; }
.gpg-rv-nav--prev { left: -14px; }
.gpg-rv-nav--next { right: -14px; }
@media (max-width: 700px) {
  .gpg-rv-nav { top: 84px; width: 32px; height: 32px; }   /* 18 + 165/2 - 16 */
  .gpg-rv-nav--prev { left: -6px; }
  .gpg-rv-nav--next { right: -6px; }
}
/* IGDB-style card — solid surface chrome, poster on top, meta in
   a padded footer (title + genre/rating row). No transform on hover;
   the whole card lights up via border + shadow instead so the track's
   overflow clip doesn't shave the lift. */
.gpg-recent-visited .gpg-rr-card {
  flex: 0 0 152px;
  width: 152px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--cream) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.gpg-recent-visited .gpg-rr-card:hover {
  border-color: var(--cyan);
  background: rgba(47, 230, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(47, 230, 255, 0.35) inset,
    0 6px 18px rgba(47, 230, 255, 0.22);
}
.gpg-recent-visited .gpg-rr-poster {
  width: 100%;
  height: 200px;                 /* IGDB-ish square-tall cover */
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--surface) center / cover no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: background-size 0.35s ease, filter 0.25s ease;
}
.gpg-recent-visited .gpg-rr-card:hover .gpg-rr-poster {
  background-size: 106% auto;
  filter: brightness(1.06) saturate(1.08);
}
.gpg-recent-visited .gpg-rr-meta {
  padding: 10px 10px 12px;
  gap: 6px;
}
.gpg-recent-visited .gpg-rr-title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.gpg-recent-visited .gpg-rr-card:hover .gpg-rr-title { color: var(--cyan); }
.gpg-recent-visited .gpg-rr-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  font-size: 10px;
}
.gpg-recent-visited .gpg-rr-genre {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}
.gpg-recent-visited .gpg-rr-rating {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}
.gpg-recent-visited .gpg-rr-rating .gpg-rr-star { font-size: 12px; line-height: 1; }
.gpg-recent-visited .gpg-rr-rating .gpg-rr-star--empty { color: rgba(255, 255, 255, 0.25); }
@media (max-width: 700px) {
  .gpg-recent-visited .gpg-rr-card { flex: 0 0 124px; width: 124px; }
  .gpg-recent-visited .gpg-rr-poster { height: 165px; }
}

/* Rating + genre row (used by Recently Visited cards) */
.gpg-rr-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.gpg-rr-genre {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpg-rr-rating {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.gpg-rr-rating .gpg-rr-star { font-size: 13px; line-height: 1; }
.gpg-rr-rating--exceptional { color: #e040fb; }
.gpg-rr-rating--great       { color: #52d45a; }
.gpg-rr-rating--good        { color: #7ed957; }
.gpg-rr-rating--mixed       { color: #f0c040; }
.gpg-rr-rating--poor        { color: #f07040; }
.gpg-rr-rating--muted       { color: var(--muted); }
/* List view squeezes the rating row */
.gpg-recent-released--list .gpg-rr-rate-row { gap: 6px; }
.gpg-recent-released--list .gpg-rr-genre   { font-size: 10px; }
.gpg-recent-released--list .gpg-rr-rating  { font-size: 11px; }
.gpg-rr-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none !important;
  color: var(--cream) !important;
  transition: transform 0.15s, opacity 0.15s;
}
.gpg-rr-card:hover { transform: translateY(-3px); }
.gpg-rr-card:hover .gpg-rr-title { color: var(--cyan); }
.gpg-rr-poster {
  aspect-ratio: 2 / 3;
  background: var(--surface) center / cover no-repeat;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gpg-rr-noposter {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gpg-rr-meta { display: flex; flex-direction: column; gap: 2px; }
.gpg-rr-title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.gpg-rr-date {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) { .gpg-recent-released--grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .gpg-recent-released--grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px) { .gpg-recent-released--grid { grid-template-columns: repeat(2, 1fr); } }
/* On narrow viewports every widget collapses to full width so the
   layout never produces tiny squished columns on phones. */
@media (max-width: 700px) {
  .gpg-home-widget {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 130px 1fr; }
  .rate-panel { grid-column: 1 / -1; }
  .main-grid { grid-template-columns: 1fr; }
  .tag-rows { grid-template-columns: 1fr; }
  .filter-card { grid-template-columns: 1fr 1fr; }
  .rec-row { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .age-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  /* ── Mobile drawer (menu panel slides from the LEFT) ─────────── */
  .menu-panel {
    position: fixed;
    top: 0; left: 0; right: auto; bottom: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh; height: 100dvh;
    padding: 60px 22px 32px;
    overflow-y: auto;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    opacity: 1;
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    box-shadow: 22px 0 40px rgba(0, 0, 0, 0.45);
  }
  .menu-panel.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s ease, visibility 0s;
  }
  .menu-panel-inner { padding: 0; }
  .menu-close { display: grid; }
  .menu-nav,
  .menu-nav .nav-menu {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .menu-nav .nav-menu li,
  .menu-nav .nav-menu li a,
  .menu-nav > a {
    width: 100%;
  }
  .menu-nav a,
  .menu-nav .nav-menu li a { display: block; }
}
@media (max-width: 700px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .topbar-search {
    order: 3;
    flex-basis: 100%;
    justify-content: stretch;
  }
  .topbar-search .gpg-search { max-width: none; }
  .topbar-actions { margin-left: auto; }
  .global-search { padding: 0 18px; }
  .page { padding: 0 18px 60px; }
  .hero-title { font-size: 28px; }
  .gh-title { font-size: 26px; }
  .hero-grid { grid-template-columns: 1fr; }
  .cover { width: 100%; max-width: 200px; margin: 0 auto; }
  .filter-card { grid-template-columns: 1fr; }
  .rec-row { grid-template-columns: repeat(2, 1fr); }
  .game-gallery { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .gpg-games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-row-block { grid-template-columns: 56px 1fr; gap: 16px; }
  .dev-list { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .tabs { gap: 16px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tab { white-space: nowrap; font-size: 11px; }
  .dev-totals-num { font-size: 20px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Author page — custom IGDB-style profile.
   Hero with marquee + avatar + tabs, 6-stat row, 2-col main/side
   layout with recently rated grid + recent reviews list, sidebar
   rating breakdown bar chart + member info card.
   ───────────────────────────────────────────────────────────────── */
.gpg-author {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 16px;
}
.gpg-author-hero {
  position: relative;
  margin: 0 -16px 22px;
  padding: 22px 26px 18px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.85) 0%, rgba(58, 31, 110, 0.92) 70%, var(--surface) 100%);
  overflow: hidden;
}
/* Top-rated game cover variant — show the chosen artwork with a
   subtle dark vignette for legibility. Marquee is suppressed since
   the cover art already does the visual storytelling. */
.gpg-author-hero.has-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.gpg-author-hero.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 60%, var(--surface) 100%);
  z-index: 1;
}
.gpg-author-hero.has-bg .gpg-author-marquee { display: none; }
.gpg-author-hero.has-bg .gpg-author-hero-row {
  position: relative;
  z-index: 2;
  margin-top: 0;          /* no marquee = no extra top spacing */
}
.gpg-author-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 28px;
  padding: 18px 26px 0;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}
.gpg-author-hero-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.gpg-author-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  background: var(--surface);
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}
.gpg-author-username {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.gpg-author-tabs {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.gpg-author-tabs a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease;
}
.gpg-author-tabs a:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }
.gpg-author-tabs a.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-bottom: 2px solid var(--cyan);
  border-radius: 6px 6px 0 0;
}

/* Stats row */
.gpg-author-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.gpg-author-stat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
}
.gpg-author-stat-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
}
.gpg-author-stat-label {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 2-col layout */
.gpg-author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.gpg-author-block { margin-bottom: 28px; }
.gpg-author-h2 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin: 0 0 14px;
  text-transform: none;
}
.gpg-author-empty {
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--border-soft);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Recently rated grid */
.gpg-author-rated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.gpg-author-rated-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--cream) !important;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.gpg-author-rated-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(47, 230, 255, 0.20);
}
.gpg-author-rated-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--surface) center / cover no-repeat;
}
.gpg-author-rated-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px;
}
.gpg-author-rated-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.gpg-author-rated-score {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 800;
}
.gpg-author-rated-score--exceptional { color: #e040fb; }
.gpg-author-rated-score--great       { color: #52d45a; }
.gpg-author-rated-score--good        { color: #7ed957; }
.gpg-author-rated-score--mixed       { color: #f0c040; }
.gpg-author-rated-score--poor        { color: #f07040; }
.gpg-author-rated-score--muted       { color: var(--muted); }

/* Recent reviews */
.gpg-author-reviews { display: flex; flex-direction: column; gap: 12px; }
.gpg-author-review-card {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px;
}
.gpg-author-review-poster {
  flex: 0 0 92px;
  width: 92px;
  height: 138px;
  background: var(--surface) center / cover no-repeat;
  border-radius: 6px;
}
.gpg-author-review-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gpg-author-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gpg-author-review-game {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--magenta, #e040fb);
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.gpg-author-review-game:hover { color: var(--cyan); }
.gpg-author-review-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(231, 238, 247, 0.85);
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gpg-author-review-card:hover .gpg-author-review-text { color: var(--cream); }
.gpg-author-review-foot {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
}

/* Sidebar cards */
.gpg-author-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.gpg-author-card-title {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 12px;
}

/* Rating breakdown */
.gpg-author-breakdown { display: flex; flex-direction: column; gap: 5px; }
.gpg-author-bd-row {
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  align-items: center;
  gap: 8px;
}
.gpg-author-bd-key {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}
.gpg-author-bd-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.gpg-author-bd-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.gpg-author-bd-fill--exceptional { background: #e040fb; }
.gpg-author-bd-fill--great       { background: #52d45a; }
.gpg-author-bd-fill--good        { background: #7ed957; }
.gpg-author-bd-fill--mixed       { background: #f0c040; }
.gpg-author-bd-fill--poor        { background: #f07040; }
.gpg-author-bd-fill--muted       { background: var(--muted); }
.gpg-author-bd-cnt {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.gpg-author-bd-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Badges grid — earned circles glow with tier ring colour, locked
   ones grey out + soft blur. Tiers come from admin registry:
     normal=green, rare=blue, epic=purple, legendary=orange. */
/* Each criteria gets its own row with a small label on the left */
.gpg-author-badge-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.gpg-author-badge-row:first-of-type { border-top: 0; padding-top: 4px; }
.gpg-author-badge-row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 3px solid var(--accent, #2fe6ff);
}
@media (max-width: 720px) {
  .gpg-author-badge-row { grid-template-columns: 1fr; gap: 8px; }
}

.gpg-author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
}
.gpg-author-badge {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid #9aa1ab;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: help;
}
.gpg-author-badge img { width: 100%; height: 100%; object-fit: cover; }
.gpg-author-badge-icon { font-size: 42px; line-height: 1; color: #fff; }
.gpg-author-badge.is-earned[data-tier="normal"]    { border-color: #22c55e; box-shadow: 0 0 26px rgba(34, 197, 94, 0.40); }
.gpg-author-badge.is-earned[data-tier="rare"]      { border-color: #3b82f6; box-shadow: 0 0 26px rgba(59, 130, 246, 0.45); }
.gpg-author-badge.is-earned[data-tier="epic"]      { border-color: #a855f7; box-shadow: 0 0 26px rgba(168, 85, 247, 0.50); }
.gpg-author-badge.is-earned[data-tier="legendary"] { border-color: #f97316; box-shadow: 0 0 32px rgba(249, 115, 22, 0.55); }
.gpg-author-badge.is-earned:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.10) saturate(1.10);
}
.gpg-author-badge.is-locked {
  border-color: rgba(255, 255, 255, 0.18);
  filter: grayscale(1) brightness(0.55) blur(0.5px);
  opacity: 0.7;
}
.gpg-author-badge.is-locked:hover { opacity: 0.95; filter: grayscale(1) brightness(0.7); }
.gpg-author-badges-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* Tab panes — only one visible at a time (JS toggles `hidden`) */
.gpg-author-pane { display: block; }
.gpg-author-pane[hidden] { display: none; }

/* Lists pane — author's own published lists, 4-poster collage card */
.gpg-author-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gpg-author-list-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--cream) !important;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.gpg-author-list-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(47, 230, 255, 0.20);
}
.gpg-author-list-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.35);
}
.gpg-author-list-pane {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.4);
}
.gpg-author-list-pane:last-child { border-right: 0; }
.gpg-author-list-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gpg-author-list-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gpg-author-list-name {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpg-author-list-sum {
  font-size: 12px;
  color: rgba(231, 238, 247, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Contributions tab — Score card + Leaderboard + Rules ── */
.gpg-author-score-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(47, 230, 255, 0.10) 0%, rgba(224, 64, 251, 0.10) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}
.gpg-author-score-total {
  text-align: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}
.gpg-author-score-num {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 4px 12px rgba(47, 230, 255, 0.30);
}
.gpg-author-score-label {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.gpg-author-score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gpg-author-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 13px;
}
.gpg-author-score-key {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.gpg-author-score-val {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
}
.gpg-author-score-val small { font-size: 11px; opacity: 0.7; }
.gpg-author-score-val strong { color: var(--cream); font-size: 14px; font-weight: 700; }

/* Leaderboard window */
.gpg-author-lb {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
}
.gpg-author-lb-row {
  display: grid;
  grid-template-columns: 90px 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none !important;
  color: var(--cream) !important;
  transition: background 0.15s ease;
}
.gpg-author-lb-row:last-child { border-bottom: 0; }
.gpg-author-lb-row:hover { background: rgba(255, 255, 255, 0.04); }
.gpg-author-lb-row.is-self {
  background: rgba(47, 230, 255, 0.10);
  border-left: 3px solid var(--cyan);
  padding-left: 15px;
}
.gpg-author-lb-row.is-self:hover { background: rgba(47, 230, 255, 0.16); }
.gpg-author-lb-rank {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.gpg-author-lb-row.is-self .gpg-author-lb-rank { color: var(--cyan); }
.gpg-author-lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: inline-flex;
}
.gpg-author-lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gpg-author-lb-name {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--magenta, #e040fb);
  text-decoration: underline;
  text-decoration-color: rgba(224, 64, 251, 0.35);
  text-underline-offset: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpg-author-lb-row:hover .gpg-author-lb-name { color: var(--cyan); }
.gpg-author-lb-row.is-self .gpg-author-lb-name { color: var(--cyan); }
.gpg-author-lb-score {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--cream);
}
.gpg-author-lb-total {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Scoring rules cards */
.gpg-author-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gpg-author-rule {
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.gpg-author-rule strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 4px;
}
@media (max-width: 700px) {
  .gpg-author-score-card { grid-template-columns: 1fr; }
  .gpg-author-lb-row { grid-template-columns: 80px 32px 1fr auto; gap: 10px; padding: 10px 12px; }
  .gpg-author-rules { grid-template-columns: 1fr; }
}

/* Member info card */
.gpg-author-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
}
.gpg-author-meta-key { color: var(--muted); }
.gpg-author-meta-val { color: var(--cream); font-weight: 600; }

@media (max-width: 980px) {
  .gpg-author-layout { grid-template-columns: 1fr; }
  .gpg-author-stats  { grid-template-columns: repeat(3, 1fr); }
  .gpg-author-tabs   { margin-left: 0; }
  .gpg-author-marquee { font-size: 36px; }
  .gpg-author-hero-row { margin-top: 40px; }
}
@media (max-width: 560px) {
  .gpg-author-stats { grid-template-columns: repeat(2, 1fr); }
  .gpg-author-review-card { flex-direction: column; }
  .gpg-author-review-poster { width: 100%; height: 180px; flex-basis: auto; }
}

/* ─────────────────────────────────────────────────────────────────────
   Recently Released (list view) — keep the cards inside the widget.
   The track was `1fr` (= minmax(auto, 1fr)), so it could not shrink below
   the card's min-content width. `.gpg-rr-title` is nowrap, and with the
   default `min-width: auto` its min-content is the full, unwrapped title —
   a long game name pushed the track past the column and the cards spilled
   out over the panel's right border. minmax(0, …) plus min-width: 0 down
   the flex chain lets the title ellipsize instead. */
.gpg-recent-released--list { grid-template-columns: minmax(0, 1fr); }
.gpg-recent-released .gpg-rr-card,
.gpg-recent-released .gpg-rr-meta,
.gpg-recent-released .gpg-rr-title { min-width: 0; }
