/* ==========================================================================
   Games — Gaming catalog UI
   ========================================================================== */

.games-page {
  --game-glow: rgba(99, 102, 241, 0.35);
  --game-accent: #06b6d4;
  --game-card-radius: var(--radius-xl);
}

/* ---- Hero ---- */
.games-hero {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(6, 182, 212, 0.15), transparent 55%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(99, 102, 241, 0.18), transparent 50%),
    var(--surface-glass);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
}

.games-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.games-hero__inner {
  position: relative;
  z-index: 1;
}

.games-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: white;
  margin-bottom: var(--space-2);
  box-shadow: 0 8px 24px var(--game-glow);
}

.games-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 8px;
}

.games-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.games-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}

.games-stat strong {
  color: var(--color-text);
  font-family: var(--font-display);
}

.games-search {
  position: relative;
  max-width: 440px;
  margin-top: var(--space-3);
}

.games-search .form-input {
  padding-inline-start: 48px;
  padding-block: 14px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.games-search::before {
  content: '';
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

/* ---- Filters ---- */
.games-filters {
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
}

.games-tabs {
  margin-bottom: var(--space-2);
}

.games-filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.games-filter-form .form-input {
  min-width: 150px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

/* ---- Featured ---- */
.featured-game {
  position: relative;
  display: block;
  margin-bottom: var(--space-4);
  border-radius: var(--game-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 280px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-game:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px var(--game-glow);
  color: inherit;
}

.featured-game__bg {
  position: absolute;
  inset: 0;
}

.featured-game__bg img,
.featured-game__bg picture {
  width: 100%;
  height: 100%;
  display: block;
}

.featured-game__bg img {
  object-fit: cover;
  filter: brightness(0.55) saturate(1.1);
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.featured-game:hover .featured-game__bg img {
  transform: scale(1.06);
}

.featured-game__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.55) 45%, transparent 75%);
}

.featured-game__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: clamp(20px, 4vw, 36px);
  max-width: 620px;
}

.featured-game__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.featured-game__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.featured-game__content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.featured-game__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.featured-game__score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- Game cards ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.games-grid--compact {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--game-card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--game-glow);
  border-color: rgba(99, 102, 241, 0.25);
  color: inherit;
}

.game-card__media {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-gray-soft), rgba(6, 182, 212, 0.08));
}

.game-card__media img,
.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card__media img {
  transform: scale(1.06);
}

.game-card__media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 55%);
  pointer-events: none;
}

.game-card__score {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  z-index: 2;
}

.game-card__env-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.game-card__env-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__platform {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
}

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: var(--space-2);
}

.game-card__body .card__title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card__body .card__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.game-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

/* Badges */
.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.game-badge--shop {
  background: rgba(22, 163, 74, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.game-badge--out {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.game-badge--gamenet {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.game-badge--genre {
  background: var(--color-gray-soft);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-badges a.game-badge {
  text-decoration: none;
  transition: opacity 0.2s;
}

.game-badges a.game-badge:hover {
  opacity: 0.85;
}

/* ---- Detail layout (legacy) ---- */
.game-detail__layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-4);
}

.game-detail__sidebar {
  position: sticky;
  top: calc(var(--header-height, 72px) + 16px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.game-detail__cover-wrap {
  position: relative;
  border-radius: var(--game-card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--surface-border);
}

.game-detail__cover-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.game-detail__env-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.game-detail__env-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.game-detail__env-label {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.game-detail__intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin: var(--space-2) 0 var(--space-1);
}

.game-detail__main {
  min-width: 0;
}

/* ==========================================================================
   Game Detail — Modern Minimal
   ========================================================================== */

.game-detail--modern {
  --gd-radius: 20px;
  --gd-blur: blur(24px);
}

.game-detail--modern .breadcrumb {
  margin-bottom: var(--space-2);
  font-size: 13px;
}

/* Hero */
.gd-hero {
  position: relative;
  margin-bottom: var(--space-4);
  border-radius: var(--gd-radius);
  overflow: hidden;
  isolation: isolate;
}

.gd-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gd-hero__backdrop img,
.gd-hero__backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(28px) saturate(1.2);
  opacity: 0.55;
}

.gd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 50%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}

[data-theme="dark"] .gd-hero::after {
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.78) 55%, rgba(11, 18, 32, 0.65) 100%);
}

.gd-hero--no-cover {
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(220, 38, 38, 0.14), transparent 50%),
    linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border: 1px solid var(--surface-border);
}

.gd-hero--no-cover::after {
  display: none;
}

.gd-hero--no-cover .gd-hero__inner {
  grid-template-columns: 1fr;
}

.gd-hero--no-cover .gd-hero__poster {
  display: none;
}

.gd-hero--no-cover::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  top: -80px;
  inset-inline-end: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.gd-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 260px);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
}

.gd-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
}

.gd-hero__excerpt {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
  max-width: 58ch;
  margin: 0 0 var(--space-3);
}

.gd-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-2);
}

.gd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.gd-chip--muted {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

a.gd-chip--muted:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.gd-chip--success {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #86efac !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.gd-chip--danger {
  background: rgba(248, 113, 113, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(248, 113, 113, 0.25) !important;
}

.gd-chip--accent {
  background: rgba(6, 182, 212, 0.18) !important;
  color: #67e8f9 !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

.gd-hero__poster {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  display: block;
  width: 100%;
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  aspect-ratio: 3/4;
}

.gd-hero__poster img,
.gd-hero__poster-img,
.gd-hero__poster picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gd-hero__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-2);
}

.gd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gd-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gd-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  margin: 0;
}

/* Meta pills */
.gd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.gd-meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.gd-meta__item dt {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.gd-meta__item dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* Score — minimal in hero */
.game-detail--modern .game-score {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: var(--space-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--gd-blur);
}

.game-detail--modern .game-score__ring {
  width: 52px;
  height: 52px;
  padding: 3px;
}

.game-detail--modern .game-score__ring-inner {
  background: rgba(15, 23, 42, 0.6);
}

.game-detail--modern .game-score__value {
  font-size: 1rem;
  color: #fbbf24;
}

.game-detail--modern .game-score__value span {
  color: rgba(255, 255, 255, 0.45);
}

.game-detail--modern .game-score__title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.game-detail--modern .game-score__verdict {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.game-detail--modern .game-score .text-muted {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Body layout */
.gd-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.gd-aside {
  position: sticky;
  top: calc(var(--header-height, 72px) + 20px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.gd-main {
  min-width: 0;
}

/* Buy box — glass minimal */
.game-detail--modern .game-buy-box {
  padding: var(--space-3);
  border-radius: var(--gd-radius);
  background: var(--surface-glass);
  backdrop-filter: var(--gd-blur);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
}

.game-detail--modern .game-buy-box--available {
  border-color: rgba(34, 197, 94, 0.25);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, var(--surface-glass) 35%);
}

.game-detail--modern .game-buy-box__amount {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.game-detail--modern .game-buy-box__actions .btn--primary {
  border-radius: 12px;
  font-weight: 600;
}

/* Environment */
.gd-env {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid var(--surface-border);
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  display: block;
  width: 100%;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
}

.gd-env__img,
.gd-env picture {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gd-env__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 12px;
}

/* Sections */
.gd-section {
  margin-bottom: var(--space-4);
}

.gd-section__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  padding-bottom: 0;
  border: none;
  color: var(--color-text);
}

/* Trailer */
.gd-trailer__embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--gd-radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.gd-trailer__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* TOC */
.gd-toc {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: 14px;
  background: var(--color-gray-soft);
  border: 1px solid var(--color-border);
}

.gd-toc__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  color: var(--color-text);
}

.gd-toc__summary::-webkit-details-marker {
  display: none;
}

.gd-toc__list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gd-toc__item a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.gd-toc__item a:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--color-primary);
}

.gd-toc__item--h3 a {
  padding-inline-start: 22px;
  font-size: 12px;
}

/* Article body */
.gd-article {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--gd-radius);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  line-height: 1.8;
  font-size: 15px;
}

.gd-article h2,
.gd-article h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin-top: 1.6em;
}

.gd-article h2:first-child,
.gd-article h3:first-child {
  margin-top: 0;
}

.gd-article img {
  border-radius: 12px;
}

/* Pros / Cons — minimal */
.game-detail--modern .game-pros,
.game-detail--modern .game-cons {
  padding: var(--space-3);
  border-radius: 14px;
  background: var(--surface-glass);
  border: 1px solid var(--color-border);
}

.game-detail--modern .game-pros {
  border-color: rgba(34, 197, 94, 0.2);
}

.game-detail--modern .game-cons {
  border-color: rgba(248, 113, 113, 0.15);
}

.game-detail--modern .game-pros h3,
.game-detail--modern .game-cons h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.game-detail--modern .game-pros li,
.game-detail--modern .game-cons li {
  padding: 6px 0;
  padding-inline-start: 20px;
  font-size: 13px;
  border-bottom-color: var(--color-border);
}

/* Gallery */
.gd-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gd-gallery__item {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-gray-soft);
  cursor: zoom-in;
  display: block;
  width: 100%;
  text-align: inherit;
  font: inherit;
  color: inherit;
  position: relative;
}

.gd-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gd-gallery__item:hover::after,
.gd-gallery__item:focus-visible::after {
  opacity: 1;
}

.gd-gallery__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.gd-lightbox-trigger {
  cursor: zoom-in;
}

.gd-lightbox-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.gd-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.gd-gallery__item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gd-gallery__item:hover .gd-gallery__img {
  transform: scale(1.04);
}

.gd-gallery__item figcaption {
  display: none;
}

/* Image lightbox */
body.img-lightbox-open {
  overflow: hidden;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.img-lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.img-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.img-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-lightbox--open .img-lightbox__panel {
  transform: scale(1) translateY(0);
}

.img-lightbox__figure {
  margin: 0;
  width: 100%;
  max-height: calc(92vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.img-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: #0f172a;
  cursor: zoom-out;
}

.img-lightbox__caption {
  margin: 0;
  max-width: 720px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
}

.img-lightbox__close,
.img-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.img-lightbox__close:hover,
.img-lightbox__nav:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(255, 255, 255, 0.28);
}

.img-lightbox__close:focus-visible,
.img-lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.img-lightbox__close {
  top: 0;
  inset-inline-end: 0;
  transform: translateY(calc(-100% - 12px));
}

.img-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.img-lightbox__nav--prev {
  inset-inline-start: -56px;
}

.img-lightbox__nav--next {
  inset-inline-end: -56px;
}

.img-lightbox__counter {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  transform: translateY(calc(-100% - 12px));
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .img-lightbox__nav--prev {
    inset-inline-start: 8px;
  }

  .img-lightbox__nav--next {
    inset-inline-end: 8px;
  }

  .img-lightbox__close {
    top: 8px;
    inset-inline-end: 8px;
    transform: none;
  }

  .img-lightbox__counter {
    top: 8px;
    inset-inline-start: 8px;
    transform: none;
  }

  .img-lightbox__img {
    border-radius: 12px;
    max-height: calc(92vh - 48px);
  }
}

/* FAQ */
.gd-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gd-faq__item {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--surface-glass);
  overflow: hidden;
  transition: border-color 0.2s;
}

.gd-faq__item[open] {
  border-color: rgba(99, 102, 241, 0.25);
}

.gd-faq__item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gd-faq__item summary::-webkit-details-marker {
  display: none;
}

.gd-faq__item summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.gd-faq__item[open] summary::after {
  content: '−';
}

.gd-faq__item p {
  padding: 0 18px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Internal links */
.gd-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}

.gd-links__label {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gd-links a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-gray-soft);
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.gd-links a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-primary);
}

/* Related */
.gd-related {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.gd-related__head {
  margin-bottom: var(--space-3);
}

.game-card--minimal {
  border-radius: 16px;
  box-shadow: none;
}

.game-card--minimal:hover {
  transform: translateY(-4px);
}

.game-card--minimal .card__title {
  font-size: 14px !important;
}

/* Score ring */
.game-score {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.game-score__ring {
  --score: 8;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(
    var(--color-primary) calc(var(--score) * 10 * 1%),
    var(--color-border) 0
  );
}

.game-score__ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-score__value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.game-score__value span {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.game-score__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.game-score__verdict {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

/* Facts grid */
.game-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.game-facts__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--color-white);
}

.game-facts__item dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.game-facts__item dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* Buy box */
.game-buy-box {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.game-buy-box--available {
  border-color: rgba(22, 163, 74, 0.25);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.06) 0%, var(--color-white) 40%);
}

.game-buy-box__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success);
}

.game-buy-box__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.game-buy-box__amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.game-buy-box__amount small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.game-buy-box__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-2);
}

.game-buy-box__actions .btn--primary {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

.game-buy-box__unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: var(--space-2) 0;
}

.game-buy-box__unavailable-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-soft);
  color: var(--color-text-muted);
}

.game-buy-box__gamenet {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Pros / Cons */
.game-pros-cons__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.game-pros,
.game-cons {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.game-pros {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), transparent);
  border-color: rgba(22, 163, 74, 0.2);
}

.game-cons {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), transparent);
  border-color: rgba(220, 38, 38, 0.15);
}

.game-pros h3,
.game-cons h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin: 0 0 12px;
}

.game-pros h3 { color: var(--color-success); }
.game-cons h3 { color: var(--color-error); }

.game-pros ul,
.game-cons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-pros li,
.game-cons li {
  position: relative;
  padding: 8px 0;
  padding-inline-start: 24px;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-border);
}

.game-pros li:last-child,
.game-cons li:last-child {
  border-bottom: none;
}

.game-pros li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-success);
  font-weight: 700;
}

.game-cons li::before {
  content: '✗';
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-error);
  font-weight: 700;
}

/* Trailer */
.game-trailer {
  margin: var(--space-4) 0;
}

.game-trailer__embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--game-card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--surface-border);
  background: #000;
}

.game-trailer__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery */
.game-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.game-gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
}

.game-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-gallery__item:hover img {
  transform: scale(1.05);
}

.game-gallery__item figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 12px;
}

/* FAQ */
.game-faq .faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.game-faq .faq-item[open] {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.game-faq .faq-item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.game-faq .faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.game-faq .faq-item[open] summary::after {
  content: '−';
}

.game-faq .faq-item p {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Internal links */
.game-internal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-gray-soft);
  border: 1px solid var(--color-border);
  font-size: 14px;
}

.game-internal-links__label {
  font-weight: 700;
  color: var(--color-text-muted);
}

.game-internal-links a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
}

.game-internal-links a:hover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.06);
}

/* Genre hub */
.games-seo-hub {
  padding: var(--space-4);
  border-radius: var(--game-card-radius);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
}

.games-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.games-hub-chip {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.games-hub-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 4px 16px var(--game-glow);
  transform: translateY(-2px);
}

.game-detail__content {
  max-width: none;
}

.game-updated {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--color-gray-soft);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Shop PDP → game guide link */
.game-guide-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: var(--space-2) 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.game-guide-link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px var(--game-glow);
  transform: translateY(-2px);
  color: inherit;
}

.game-guide-link__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
}

.game-guide-link strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.game-guide-link p {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Section titles in games */
.game-detail .section__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: var(--space-2);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-gray-soft);
}

@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid--compact { grid-template-columns: repeat(2, 1fr); }
  .game-detail__layout { grid-template-columns: 1fr; }
  .game-detail__sidebar { position: static; }
  .gd-hero__inner { grid-template-columns: 1fr; }
  .gd-hero__poster { display: none; }
  .gd-layout { grid-template-columns: 1fr; }
  .gd-aside { position: static; order: -1; }
}

@media (max-width: 767px) {
  .games-grid,
  .games-grid--compact { grid-template-columns: 1fr; }
  .game-facts { grid-template-columns: 1fr; }
  .game-pros-cons__grid { grid-template-columns: 1fr; }
  .game-gallery__grid { grid-template-columns: 1fr; }
  .gd-gallery__grid { grid-template-columns: 1fr; }
  .gd-meta { gap: 6px; }
  .gd-meta__item { padding: 6px 10px; }
  .gd-hero__inner { padding: 24px 20px; }
  .games-hero__stats { gap: 8px; }
  .games-stat { font-size: 12px; padding: 6px 10px; }
}
