/* =============================================================
 * Bethplanet — Game page 2026
 * Cinematic banner + chip metadata + sticky tabs + airy cards.
 * Light theme, brand accent #860000. Scope: module 21 (Игры).
 * ============================================================= */

:root {
  --bp-g-brand: #860000;
  --bp-g-brand-soft: #fdf2f2;
  --bp-g-brand-line: #f4d4d4;
  --bp-g-brand-hover: #a30000;

  --bp-g-bg: #ffffff;
  --bp-g-surface: #fafafa;
  --bp-g-surface-2: #f5f5f7;

  --bp-g-text: #161618;
  --bp-g-text-muted: #6b6b73;
  --bp-g-text-dim: #9a9aa3;

  --bp-g-line: #ececef;
  --bp-g-line-strong: #d8d8de;

  --bp-g-success: #1f8a4c;
  --bp-g-warn: #b45309;

  --bp-g-radius-xl: 24px;
  --bp-g-radius-lg: 18px;
  --bp-g-radius-md: 14px;
  --bp-g-radius-sm: 10px;
  --bp-g-radius-pill: 999px;

  --bp-g-shadow-card: 0 1px 2px rgba(20, 20, 30, 0.04);
  --bp-g-shadow-hover: 0 8px 24px rgba(20, 20, 30, 0.08);
  --bp-g-shadow-hero: 0 16px 40px rgba(20, 20, 30, 0.12);
  --bp-g-focus-ring: 0 0 0 3px rgba(134, 0, 0, 0.18);

  --bp-g-font: "Inter", "Manrope", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial;

  --bp-g-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bp-g-dur: 200ms;

  --bp-g-tab-h: 56px;
  --bp-g-site-header-h: 50px;

  --bp-g-page-bg: #f4f4f6;
}

/* =============================================================
 * Page background reset (only for pages with .bp-game)
 * Toggled by JS via document.body.classList.add('bp-game-page')
 * ============================================================= */

body.bp-game-page {
  background-color: var(--bp-g-page-bg) !important;
  background-image: none !important;
}

/* =============================================================
 * Wrapper. We deliberately scope to .bp-game so we don't fight
 * Bootstrap rules outside of the redesigned column.
 * ============================================================= */

.bp-game {
  font-family: var(--bp-g-font);
  color: var(--bp-g-text);
  font-size: 16px;
  line-height: 1.6;
}

.bp-game h1,
.bp-game h2,
.bp-game h3 {
  font-family: inherit;
  letter-spacing: -0.01em;
}

.bp-game h2,
.bp-game h3 {
  color: var(--bp-g-text);
}

.bp-game h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 18px;
  font-size: 22px;
  font-weight: 700;
  scroll-margin-top: calc(var(--bp-g-tab-h) + 20px);
}

.bp-game h2::before {
  content: "";
  width: 6px;
  height: 22px;
  background: var(--bp-g-brand);
  border-radius: 3px;
}

.bp-game a {
  color: var(--bp-g-brand);
  transition: color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game a:hover {
  color: var(--bp-g-brand-hover);
}

/* =============================================================
 * HERO — cinematic banner
 * ============================================================= */

.bp-game-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: var(--bp-g-radius-xl);
  background: var(--bp-g-surface-2);
  box-shadow: var(--bp-g-shadow-hero);
  isolation: isolate;
}

.bp-game-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bp-game-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.bp-game-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.7) 25%,
      rgba(0, 0, 0, 0.5) 45%,
      rgba(0, 0, 0, 0.25) 65%,
      rgba(0, 0, 0, 0) 90%
    ),
    radial-gradient(
      ellipse 70% 60% at 30% 100%,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0) 70%
    );
}

.bp-game-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 28px 32px;
  color: #ffffff;
}

.bp-game-hero__moder {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 5;
}

.bp-game-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.bp-game-hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65), 0 4px 24px rgba(0, 0, 0, 0.55);
}

.bp-game-hero__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.bp-game-hero__sub-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bp-game-hero__sub-item + .bp-game-hero__sub-item::before {
  content: "·";
  color: rgba(255, 255, 255, 0.5);
  margin-right: 8px;
}

/* Hero badges */
.bp-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bp-g-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--bp-g-radius-pill);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.bp-game-badge--brand {
  background: var(--bp-g-brand);
  color: #fff;
}

.bp-game-badge--early {
  background: var(--bp-g-warn);
  color: #fff;
}

.bp-game-badge--cancelled {
  background: #6b6b73;
  color: #fff;
  text-decoration: line-through;
}

/* =============================================================
 * BUY CTA (under hero or inline)
 * ============================================================= */

.bp-game-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px 22px;
  background: linear-gradient(
    135deg,
    var(--bp-g-brand) 0%,
    var(--bp-g-brand-hover) 100%
  );
  color: #fff;
  text-decoration: none;
  border-radius: var(--bp-g-radius-lg);
  box-shadow: 0 8px 24px rgba(134, 0, 0, 0.25);
  transition: transform var(--bp-g-dur) var(--bp-g-ease),
    box-shadow var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-buy:hover,
.bp-game-buy:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(134, 0, 0, 0.32);
  color: #fff;
  text-decoration: none;
}

.bp-game-buy__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.bp-game-buy__hint {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bp-game-buy__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
}

.bp-game-buy__price-old {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.6;
  text-decoration: line-through;
}

.bp-game-buy__price-new {
  font-size: 22px;
}

/* =============================================================
 * Chips block (developer / publisher / genre / platform / tags)
 * ============================================================= */

.bp-game-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--bp-g-bg);
  border: 1px solid var(--bp-g-line);
  border-radius: var(--bp-g-radius-lg);
  box-shadow: var(--bp-g-shadow-card);
}

.bp-game-chip-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-game-chip-row[hidden] {
  display: none;
}

/* Tags row spans the whole chips grid — labels fit in long lines. */
.bp-game-chip-row[data-key="tags"] {
  grid-column: 1 / -1;
}

.bp-game-chip-row__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-g-text-dim);
}

.bp-game-chip-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bp-game-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--bp-g-surface);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--bp-g-line);
  border-radius: var(--bp-g-radius-pill);
  transition: background var(--bp-g-dur) var(--bp-g-ease),
    color var(--bp-g-dur) var(--bp-g-ease),
    border-color var(--bp-g-dur) var(--bp-g-ease);
}

/* Default chip color (high specificity to beat the .bp-game a rule) */
.bp-game-chip:link,
.bp-game-chip:visited {
  color: var(--bp-g-text);
}

.bp-game-chip:hover,
.bp-game-chip:focus-visible {
  background: var(--bp-g-brand-soft);
  color: var(--bp-g-brand);
  border-color: var(--bp-g-brand-line);
  text-decoration: none;
}

.bp-game-chip__plain {
  color: var(--bp-g-text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* -------------------------------------------------------------
 * All non-tag rows render as plain inline text with `·` separators
 * instead of pills (developers, publishers, localizers, genres,
 * platforms, series, age-ratings, play-modes, languages).
 * ------------------------------------------------------------- */

.bp-game-chip-row:not([data-key="tags"]) .bp-game-chip-row__items {
  gap: 0;
  align-items: baseline;
}

.bp-game-chip-row:not([data-key="tags"]) .bp-game-chip {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.bp-game-chip-row:not([data-key="tags"]) .bp-game-chip:link,
.bp-game-chip-row:not([data-key="tags"]) .bp-game-chip:visited {
  color: var(--bp-g-text);
}

.bp-game-chip-row:not([data-key="tags"]) .bp-game-chip:hover,
.bp-game-chip-row:not([data-key="tags"]) .bp-game-chip:focus-visible {
  background: transparent;
  border: 0;
  color: var(--bp-g-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bp-game-chip-sep {
  display: inline-block;
  margin: 0 8px;
  color: var(--bp-g-text-dim);
  user-select: none;
  pointer-events: none;
}

/* Static (non-link) values like "Однопользовательский" come as plain
   text from $ENTRY_CATS$ — but if some don't have href they render as
   <span>. Make those visually identical to the link versions. */

.bp-game-chip-row:not([data-key="tags"]) span.bp-game-chip {
  color: var(--bp-g-text);
}

/* -------------------------------------------------------------
 * Tags: subtle, smaller, dim. Hide visual weight so they don't
 * compete with primary metadata.
 * ------------------------------------------------------------- */

.bp-game-chip-row[data-key="tags"] .bp-game-chip-row__items {
  gap: 4px 10px;
}

.bp-game-chip-row[data-key="tags"] .bp-game-chip {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
}

.bp-game-chip-row[data-key="tags"] .bp-game-chip:link,
.bp-game-chip-row[data-key="tags"] .bp-game-chip:visited {
  color: var(--bp-g-text-dim);
}

.bp-game-chip-row[data-key="tags"] .bp-game-chip:hover,
.bp-game-chip-row[data-key="tags"] .bp-game-chip:focus-visible {
  background: transparent;
  border: 0;
  color: var(--bp-g-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bp-game-chip-row[data-key="tags"] .bp-game-chip-row__label {
  color: var(--bp-g-text-dim);
  opacity: 0.7;
}

/* =============================================================
 * Page layout primitives (replace bootstrap container/row/col)
 * ============================================================= */

.bp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.bp-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin: 18px 0 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .bp-game-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

.bp-game-layout__main {
  min-width: 0;
}

.bp-game-layout__aside {
  min-width: 0;
}

/* =============================================================
 * Side widgets — shown ONLY on the game page (.bp-game-layout)
 * Replaces the global $GLOBAL_DRIGHTER$ that's hidden here.
 * ============================================================= */

.bp-game-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--bp-g-font);
}

.bp-game-side-card {
  background: var(--bp-g-bg);
  border: 1px solid var(--bp-g-line);
  border-radius: var(--bp-g-radius-lg);
  box-shadow: var(--bp-g-shadow-card);
  padding: 16px 18px;
  color: var(--bp-g-text);
  text-decoration: none;
  transition: border-color var(--bp-g-dur) var(--bp-g-ease),
    box-shadow var(--bp-g-dur) var(--bp-g-ease),
    transform var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-side-card--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bp-game-side-card--link:hover,
.bp-game-side-card--link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--bp-g-brand-line);
  box-shadow: var(--bp-g-shadow-hover);
  text-decoration: none;
}

.bp-game-side-card--link::after {
  content: "→";
  color: var(--bp-g-brand);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-side-card--link:hover::after {
  transform: translateX(4px);
}

.bp-game-side-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-g-text-dim);
}

.bp-game-side-card__title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--bp-g-brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.bp-game-side-card--link .bp-game-side-card__title {
  margin: 0;
}

.bp-game-side-card__hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--bp-g-text-muted);
}

/* Share buttons grid */
.bp-game-side-share {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bp-game-side-share__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 4px;
  background: var(--bp-g-surface);
  color: var(--bp-g-text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--bp-g-line);
  border-radius: var(--bp-g-radius-md);
  cursor: pointer;
  transition: background var(--bp-g-dur) var(--bp-g-ease),
    color var(--bp-g-dur) var(--bp-g-ease),
    border-color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-side-share__btn:hover,
.bp-game-side-share__btn:focus-visible {
  background: var(--bp-g-brand-soft);
  color: var(--bp-g-brand);
  border-color: var(--bp-g-brand-line);
  text-decoration: none;
  outline: none;
}

.bp-game-side-share__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bp-game-side-share__btn.is-copied {
  background: var(--bp-g-pos-soft, #ecf8f0);
  color: #1f8a4c;
  border-color: #b5e0c4;
}

/* -------- Side nav (sections of the game in sidebar) -------- */

.bp-game-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.bp-game-side-nav__item {
  display: block;
  margin: 0;
  padding: 0;
}

.bp-game-side-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: var(--bp-g-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--bp-g-radius-md);
  transition: background var(--bp-g-dur) var(--bp-g-ease),
    color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-side-nav__link:hover,
.bp-game-side-nav__link:focus-visible {
  background: var(--bp-g-surface);
  color: var(--bp-g-text);
  text-decoration: none;
}

.bp-game-side-nav__link.is-active {
  background: var(--bp-g-brand-soft);
  color: var(--bp-g-brand);
  font-weight: 600;
}

.bp-game-side-nav__icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--bp-g-text-dim);
  flex-shrink: 0;
  transition: color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-side-nav__link:hover .bp-game-side-nav__icon,
.bp-game-side-nav__link:focus-visible .bp-game-side-nav__icon {
  color: var(--bp-g-text);
}

.bp-game-side-nav__link.is-active .bp-game-side-nav__icon {
  color: var(--bp-g-brand);
}

.bp-game-side-nav__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* -------- Platforms: family groups with icons -------- */

.bp-game-chip-row[data-key="platforms"] .bp-game-chip-row__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.bp-game-platforms__group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  line-height: 1.4;
}

.bp-game-platforms__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--bp-g-text-dim);
  flex-shrink: 0;
}

.bp-game-platforms__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.bp-game-platforms__name {
  font-weight: 600;
  color: var(--bp-g-text);
}

.bp-game-platforms__gens {
  color: var(--bp-g-text-muted);
}

.bp-game-platforms__gens a {
  color: inherit;
  text-decoration: none;
  transition: color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-platforms__gens a:hover,
.bp-game-platforms__gens a:focus-visible {
  color: var(--bp-g-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bp-game-platforms__sep {
  color: var(--bp-g-text-dim);
  user-select: none;
  pointer-events: none;
  margin: 0 4px;
}

/* =============================================================
 * Breadcrumb (replace bootstrap .breadcrumb)
 * ============================================================= */

.bp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 18px 0 6px;
  list-style: none;
  font-family: var(--bp-g-font);
  font-size: 13px;
  color: var(--bp-g-text-muted);
}

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

.bp-breadcrumb__item:not(:last-child)::after {
  content: "›";
  color: var(--bp-g-text-dim);
  font-size: 14px;
  line-height: 1;
}

.bp-breadcrumb__item a {
  color: var(--bp-g-text-muted);
  text-decoration: none;
  transition: color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-breadcrumb__item a:hover,
.bp-breadcrumb__item a:focus-visible {
  color: var(--bp-g-brand);
  text-decoration: none;
}

.bp-breadcrumb__item.is-current {
  color: var(--bp-g-text);
  font-weight: 600;
}

/* =============================================================
 * Section strip — module navigation (Об игре / Новости / ...)
 * Replaces bootstrap nav.nav-pills.nav-justified.
 * ============================================================= */

.bp-section-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bp-g-line);
  box-shadow: none;
  list-style: none;
  font-family: var(--bp-g-font);
}

.bp-section-strip__item {
  display: block;
  margin: 0;
  padding: 0;
}

.bp-section-strip__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 8px 10px;
  background: transparent;
  color: var(--bp-g-text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  transition: color var(--bp-g-dur) var(--bp-g-ease),
    border-color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-section-strip__link:hover,
.bp-section-strip__link:focus-visible {
  background: transparent;
  color: var(--bp-g-text);
  border-color: var(--bp-g-line-strong);
  text-decoration: none;
  outline: none;
}

.bp-section-strip__link.is-active,
.bp-section-strip__link.is-active:hover,
.bp-section-strip__link.is-active:focus-visible {
  background: transparent;
  color: var(--bp-g-brand);
  border-color: var(--bp-g-brand);
  font-weight: 600;
}

.bp-section-strip__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--bp-g-text-dim);
  transition: color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-section-strip__link:hover .bp-section-strip__icon,
.bp-section-strip__link:focus-visible .bp-section-strip__icon {
  color: var(--bp-g-text);
}

.bp-section-strip__link.is-active .bp-section-strip__icon {
  color: var(--bp-g-brand);
}

.bp-section-strip__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* =============================================================
 * Sticky in-page tab bar
 * ============================================================= */

.bp-game-tabs {
  position: sticky;
  top: var(--bp-g-site-header-h);
  z-index: 20;
  margin: 24px -20px 22px;
  padding: 0 20px;
  background: var(--bp-g-page-bg);
  border-bottom: 1px solid var(--bp-g-line);
}

.bp-game-tabs__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bp-game-tabs__list::-webkit-scrollbar {
  display: none;
}

.bp-game-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  background: transparent;
  color: var(--bp-g-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--bp-g-dur) var(--bp-g-ease),
    border-color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-tab:hover,
.bp-game-tab:focus-visible {
  background: transparent;
  color: var(--bp-g-text);
  border-color: var(--bp-g-line-strong);
  text-decoration: none;
}

.bp-game-tab.is-active {
  background: transparent;
  color: var(--bp-g-brand);
  border-color: var(--bp-g-brand);
  font-weight: 600;
}

.bp-game-tab__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* =============================================================
 * About text block
 * ============================================================= */

.bp-game-about {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bp-g-text);
}

.bp-game-about p {
  margin: 0 0 14px;
}

.bp-game-about a {
  text-decoration: none;
  border-bottom: 1px solid var(--bp-g-brand-line);
}

.bp-game-about a:hover {
  border-bottom-color: var(--bp-g-brand);
}

.bp-game-about img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bp-g-radius-md);
}

.bp-game-about blockquote {
  margin: 14px 0;
  padding: 14px 18px;
  background: var(--bp-g-surface);
  border-left: 3px solid var(--bp-g-brand);
  border-radius: 0 var(--bp-g-radius-sm) var(--bp-g-radius-sm) 0;
  color: var(--bp-g-text-muted);
  font-style: italic;
}

/* Brief / release date highlight block */

.bp-game-brief {
  margin: 0 0 22px;
  padding: 18px 22px;
  background: var(--bp-g-surface);
  border: 1px solid var(--bp-g-line);
  border-radius: var(--bp-g-radius-lg);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bp-g-text);
}

/* =============================================================
 * Screenshots gallery
 * ============================================================= */

.bp-game-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.bp-game-shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bp-g-surface-2);
  border-radius: var(--bp-g-radius-md);
  cursor: zoom-in;
  transition: transform var(--bp-g-dur) var(--bp-g-ease),
    box-shadow var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms var(--bp-g-ease);
}

.bp-game-shot:hover {
  transform: translateY(-2px);
  box-shadow: var(--bp-g-shadow-hover);
}

.bp-game-shot:hover img {
  transform: scale(1.04);
}

.bp-game-shot:focus-visible {
  outline: none;
  box-shadow: var(--bp-g-focus-ring);
}

/* Equal-size grid: keep this modifier as no-op for backwards compat. */
.bp-game-shot--featured {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 16 / 9;
}

@media (max-width: 700px) {
  .bp-game-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Gallery CTA (full gallery link) */

.bp-game-shots-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 18px;
  background: var(--bp-g-bg);
  color: var(--bp-g-brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--bp-g-brand-line);
  border-radius: var(--bp-g-radius-pill);
  transition: background var(--bp-g-dur) var(--bp-g-ease),
    color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-shots-cta:hover {
  background: var(--bp-g-brand);
  color: #fff;
  text-decoration: none;
}

/* =============================================================
 * Trailer
 * ============================================================= */

.bp-game-trailer {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--bp-g-radius-lg);
  background: #000;
  box-shadow: var(--bp-g-shadow-card);
}

.bp-game-trailer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================================
 * System requirements (tabs)
 * ============================================================= */

.bp-game-sys {
  background: var(--bp-g-bg);
  border: 1px solid var(--bp-g-line);
  border-radius: var(--bp-g-radius-lg);
  box-shadow: var(--bp-g-shadow-card);
  overflow: hidden;
}

.bp-game-sys__tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bp-g-surface);
  border-bottom: 1px solid var(--bp-g-line);
}

.bp-game-sys__tab {
  flex: 1 1 0;
  padding: 10px 16px;
  background: transparent;
  color: var(--bp-g-text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  border-radius: var(--bp-g-radius-md);
  cursor: pointer;
  transition: background var(--bp-g-dur) var(--bp-g-ease),
    color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-sys__tab:hover {
  color: var(--bp-g-text);
}

.bp-game-sys__tab.is-active {
  background: var(--bp-g-bg);
  color: var(--bp-g-text);
  box-shadow: var(--bp-g-shadow-card);
}

.bp-game-sys__panel {
  display: none;
  padding: 20px 24px;
}

.bp-game-sys__panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.bp-game-sys__row {
  display: grid;
  grid-template-columns: 28px minmax(120px, 180px) 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--bp-g-line);
}

.bp-game-sys__row:last-child {
  border-bottom: 0;
}

.bp-game-sys__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--bp-g-brand);
}

.bp-game-sys__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.bp-game-sys__key {
  font-size: 13px;
  font-weight: 600;
  color: var(--bp-g-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bp-game-sys__val {
  font-size: 15px;
  color: var(--bp-g-text);
  word-break: break-word;
}

@media (max-width: 600px) {
  .bp-game-sys__row {
    grid-template-columns: 28px 1fr;
  }

  .bp-game-sys__key {
    grid-column: 2;
    margin-bottom: -8px;
  }

  .bp-game-sys__val {
    grid-column: 2;
  }
}

/* =============================================================
 * DLC cards
 * ============================================================= */

.bp-game-dlc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.bp-game-dlc__card {
  display: block;
  background: var(--bp-g-bg);
  border: 1px solid var(--bp-g-line);
  border-radius: var(--bp-g-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--bp-g-text);
  box-shadow: var(--bp-g-shadow-card);
  transition: transform var(--bp-g-dur) var(--bp-g-ease),
    box-shadow var(--bp-g-dur) var(--bp-g-ease),
    border-color var(--bp-g-dur) var(--bp-g-ease);
}

.bp-game-dlc__card:hover,
.bp-game-dlc__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--bp-g-shadow-hover);
  border-color: var(--bp-g-brand-line);
  text-decoration: none;
}

.bp-game-dlc__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bp-g-surface-2);
}

.bp-game-dlc__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bp-g-text);
}

/* =============================================================
 * Section title link / anchor offset for sticky
 * ============================================================= */

#about,
#screenshots,
#trailer,
#system-requirements,
#dlc,
#date {
  scroll-margin-top: calc(var(--bp-g-tab-h) + 20px);
}

/* =============================================================
 * Cancelled / placeholder hero (no image)
 * ============================================================= */

.bp-game-hero--noimg {
  background: linear-gradient(
    135deg,
    var(--bp-g-brand) 0%,
    #5d0000 100%
  );
}

.bp-game-hero--noimg .bp-game-hero__shade {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* =============================================================
 * Reduced motion
 * ============================================================= */

@media (prefers-reduced-motion: reduce) {
  .bp-game-buy,
  .bp-game-shot,
  .bp-game-shot img,
  .bp-game-dlc__card,
  .bp-game-chip,
  .bp-game-tab {
    transition: none;
  }

  .bp-game-buy:hover,
  .bp-game-shot:hover,
  .bp-game-dlc__card:hover {
    transform: none;
  }
}

/* =============================================================
 * Comments wrapper on the game page
 * (Strip legacy .article-style background/border so the comment
 *  cards from /assets/css/comments.css breathe in the open layout.)
 * ============================================================= */

.bp-game-comments {
  margin-top: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.bp-game-comments h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--bp-g-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--bp-g-text);
  letter-spacing: -0.01em;
}

.bp-game-comments h2::before {
  content: "";
  width: 6px;
  height: 22px;
  background: var(--bp-g-brand);
  border-radius: 3px;
}

/* =============================================================
 * Hide legacy markup we still feed to JS
 * ============================================================= */

.bp-game-cats-source,
.bp-game-tags-source {
  display: none !important;
}
