/**
 * Game review pages — extends review.css with cover art + specs grid.
 */

/* Gold accent system for game reviews (keep semantic success/error for pros/cons). */
body.game-review {
  --color-primary: var(--color-gold);
  --color-primary-hover: var(--color-gold-dark);
  --color-primary-light: var(--color-gold-light);
  --color-primary-dark: var(--color-gold-dark);
  --color-primary-soft: #ffe07a;
  --color-primary-a03: rgba(240, 196, 58, 0.03);
  --color-primary-a06: rgba(240, 196, 58, 0.06);
  --color-primary-a08: rgba(240, 196, 58, 0.08);
  --color-primary-a10: rgba(240, 196, 58, 0.1);
  --color-primary-a15: rgba(240, 196, 58, 0.15);
  --color-primary-a20: rgba(240, 196, 58, 0.2);
  --color-primary-a25: rgba(240, 196, 58, 0.25);
  --color-primary-a30: rgba(240, 196, 58, 0.3);
  --color-primary-a40: rgba(240, 196, 58, 0.4);
  --color-text-link: var(--color-gold-light);
  --color-border-focus: rgba(240, 196, 58, 0.5);
}

/* Tighter gaps: cat-bar → cover, and verdict → related */
body.game-review .games-cat-bar + section.section {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

body.game-review #verdict.review-section {
  margin-bottom: var(--spacing-lg) !important;
}

/* RTP check table — calmer shell, gold preferred row, muted gold notes */
body.game-review .game-review-rtp-table.comparison-table-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(8, 28, 20, 0.55) 0%, rgba(5, 21, 16, 0.72) 100%);
  box-shadow: none;
}

body.game-review .game-review-rtp-table.comparison-table-wrapper::before {
  background: linear-gradient(90deg, transparent, rgba(240, 196, 58, 0.55), transparent);
  opacity: 0.7;
}

body.game-review .game-review-rtp-table .highlighted-row td {
  background: linear-gradient(135deg, rgba(240, 196, 58, 0.14), rgba(240, 196, 58, 0.05)) !important;
  border-top-color: rgba(240, 196, 58, 0.22) !important;
  border-bottom-color: rgba(240, 196, 58, 0.12) !important;
  color: rgba(255, 255, 255, 0.98) !important;
}

body.game-review .game-review-rtp-table .highlighted-row td:first-child {
  border-left-color: rgba(240, 196, 58, 0.75) !important;
}

body.game-review .game-review-rtp-table .highlighted-row td:last-child {
  border-right-color: rgba(240, 196, 58, 0.28) !important;
}

body.game-review .game-review-rtp-table .highlighted-row:hover td {
  background: linear-gradient(135deg, rgba(240, 196, 58, 0.18), rgba(240, 196, 58, 0.07)) !important;
}

body.game-review .game-review-rtp-table .game-review-rtp-note,
body.game-review .game-review-rtp-table td[data-label="Editor note"] {
  color: rgba(253, 230, 138, 0.82) !important;
  font-weight: 500;
}

body.game-review .game-review-rtp-table .highlighted-row .game-review-rtp-note,
body.game-review .game-review-rtp-table .highlighted-row td[data-label="Editor note"] {
  color: rgba(253, 230, 138, 0.95) !important;
}

@media (max-width: 768px) {
  /* Compact RTP rows — no nested tiles */
  body.game-review .game-review-rtp-table.comparison-table-wrapper {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  body.game-review .game-review-rtp-table.comparison-table-wrapper::before {
    display: none;
  }

  body.game-review .game-review-rtp-table .comparison-table tbody {
    gap: 8px;
  }

  body.game-review .game-review-rtp-table .comparison-table tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "rtp edge"
      "note note";
    column-gap: 12px;
    row-gap: 6px;
    align-items: baseline;
    padding: 12px 14px 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 31, 22, 0.55) !important;
    box-shadow: none !important;
  }

  body.game-review .game-review-rtp-table .comparison-table tbody tr.highlighted-row {
    border-color: rgba(240, 196, 58, 0.42) !important;
    background:
      linear-gradient(135deg, rgba(240, 196, 58, 0.16), rgba(240, 196, 58, 0.05)) !important;
    box-shadow: inset 3px 0 0 rgba(240, 196, 58, 0.9) !important;
  }

  body.game-review .game-review-rtp-table .comparison-table tbody tr td,
  body.game-review .game-review-rtp-table .comparison-table tbody tr td:first-child,
  body.game-review .game-review-rtp-table .comparison-table tbody tr td:last-child,
  body.game-review .game-review-rtp-table .comparison-table tbody tr td[data-label] {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0;
  }

  body.game-review .game-review-rtp-table .comparison-table td:first-child {
    grid-area: rtp;
    grid-column: auto;
    align-self: baseline;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.45rem;
    font-size: 1.22rem !important;
    font-weight: 750 !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-variant-numeric: tabular-nums;
  }

  body.game-review .game-review-rtp-table .comparison-table td:first-child::before,
  body.game-review .game-review-rtp-table .comparison-table td[data-label="RTP"]::before,
  body.game-review .game-review-rtp-table .comparison-table td[data-label="Editor note"]::before {
    display: none !important;
    content: none !important;
  }

  body.game-review .game-review-rtp-table .comparison-table tbody tr.highlighted-row td:first-child::after {
    content: "Preferred";
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(240, 196, 58, 0.4);
    background: rgba(240, 196, 58, 0.12);
    color: rgba(253, 230, 138, 0.95);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    vertical-align: middle;
  }

  body.game-review .game-review-rtp-table .comparison-table td[data-label="House edge"] {
    grid-area: edge;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.3rem;
    align-self: baseline;
    text-align: right;
    white-space: nowrap;
    font-size: 0.92rem !important;
    font-weight: 650 !important;
    line-height: 1.1;
    color: rgba(248, 250, 252, 0.9) !important;
    font-variant-numeric: tabular-nums;
  }

  body.game-review .game-review-rtp-table .comparison-table td[data-label="House edge"]::before {
    content: "House";
    display: inline !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(148, 163, 184, 0.7) !important;
    white-space: nowrap;
  }

  body.game-review .game-review-rtp-table .comparison-table td[data-label="Editor note"],
  body.game-review .game-review-rtp-table .comparison-table td.game-review-rtp-note {
    grid-area: note;
    margin-top: 0 !important;
    font-size: 0.78rem !important;
    font-weight: 450 !important;
    line-height: 1.35 !important;
    color: rgba(203, 213, 225, 0.7) !important;
  }

  body.game-review .game-review-rtp-table .highlighted-row .game-review-rtp-note,
  body.game-review .game-review-rtp-table .highlighted-row td[data-label="Editor note"] {
    color: rgba(226, 232, 240, 0.82) !important;
  }
}

/* Numbered steps — TOC-style nums, typography only (How it works, RTP check) */
body.game-review .game-review-steps {
  margin: 0 0 var(--spacing-md);
}

body.game-review .game-review-steps-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

body.game-review .game-review-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

body.game-review .game-review-step {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

body.game-review .game-review-step-num {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: rgba(253, 230, 138, 0.72);
  font-variant-numeric: tabular-nums;
}

body.game-review .game-review-step-text {
  min-width: 0;
}

body.game-review .game-review-rtp-outro {
  margin: var(--spacing-md) 0 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Chat widget keeps site emerald (not page gold remapping). */
body.game-review #alfa-win-chat-root,
body.game-review #alfa-win-chat-root .aw-chat {
  --color-primary: #26b86e;
  --color-primary-hover: #1fa05e;
  --color-primary-light: #4ee094;
  --color-primary-dark: #178a52;
  --color-primary-soft: #7ee0b0;
  --color-primary-a20: rgba(38, 184, 110, 0.2);
  --color-primary-a25: rgba(38, 184, 110, 0.25);
  --color-primary-a30: rgba(38, 184, 110, 0.3);
  --aw-primary: #26b86e;
  --aw-primary-light: #4ee094;
  --aw-primary-hover: #1fa05e;
}

body.game-review .review-hero-highlight-value {
  background: linear-gradient(135deg, #ffffff 30%, rgba(240, 196, 58, 0.92)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* In-this-review TOC (collapsible on mobile) */
body.game-review .game-review-toc-nav {
  padding: 0 !important;
}

body.game-review .game-review-toc {
  margin: 0;
}

body.game-review .game-review-toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  user-select: none;
}

body.game-review .game-review-toc-summary::-webkit-details-marker {
  display: none;
}

body.game-review .game-review-toc-summary-label {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

body.game-review .game-review-toc-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(253, 230, 138, 0.75);
  border-bottom: 2px solid rgba(253, 230, 138, 0.75);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

body.game-review .game-review-toc[open] .game-review-toc-chevron {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

body.game-review .game-review-toc .review-nav-links {
  padding: 0 1rem 0.85rem !important;
}

@media (min-width: 721px) {
  body.game-review .game-review-toc-summary {
    cursor: default;
    pointer-events: none;
    padding: var(--spacing-lg) var(--spacing-lg) 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0;
  }

  body.game-review .game-review-toc-chevron {
    display: none;
  }

  body.game-review .game-review-toc .review-nav-links {
    padding: 0.85rem var(--spacing-lg) var(--spacing-lg) !important;
  }
}

@media (max-width: 720px) {
  body.game-review .game-review-toc:not([open]) .review-nav-links {
    display: none;
  }

  body.game-review .game-review-toc-nav {
    border-radius: 12px !important;
  }
}

/* content-visibility / containment on .review-section clips btn gold glow */
body.game-review .review-section {
  content-visibility: visible;
  contain: none;
  overflow: visible;
}

.game-review-hero-badge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

/* Outer badge frame off — beats components.css review-hero-badge border */
body.game-review:not([class*="-hub"]):not(.faq-page):not(.legal-page):not(.rg-page) .review-hero-badge.game-review-hero-badge {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  border-radius: 0 !important;
  /* Same 800px column as review body / casino-review hero */
  max-width: 800px !important;
  width: 100% !important;
  margin-right: 0 !important;
}

.game-review-hero-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(8, 28, 20, 0.55) 0%, rgba(5, 21, 16, 0.72) 100%);
  overflow: hidden;
}

/* Specs strip: 8 facts → 4×2, denser fill vs cover height */
body.game-review .game-review-hero-badge .review-hero-highlights {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: 0;
  border-left: none !important;
  border-top: none !important;
  flex: 1 1 auto;
  align-self: stretch;
  align-content: space-evenly;
  justify-items: center;
  gap: 0.35rem 0.35rem;
  padding: 0.65rem 0.6rem;
}

body.game-review .game-review-hero-badge .review-hero-highlight {
  padding: 0.35rem 0.3rem !important;
  min-width: 0;
  width: 100%;
  gap: 0.22rem !important;
  align-items: center !important;
  text-align: center;
}

body.game-review .game-review-hero-badge .review-hero-highlight-value {
  font-size: clamp(0.82rem, 1.05vw, 1.05rem) !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: visible !important;
  display: block;
  max-width: 100%;
  text-align: center;
  word-break: normal !important;
  /* Wrap multi-word values (e.g. "Pay anywhere") instead of clipping */
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

body.game-review .game-review-hero-badge .review-hero-highlight-token {
  /* Words stay intact; wrap happens between token spans */
  white-space: nowrap;
}

body.game-review .game-review-hero-badge .review-hero-highlight-sep {
  white-space: nowrap;
}

body.game-review .game-review-hero-badge .review-hero-highlight-label {
  font-size: 0.72rem !important;
  letter-spacing: 0.07em !important;
  color: rgba(255, 255, 255, 0.56) !important;
  text-align: center;
}

@media (max-width: 900px) {
  body.game-review .game-review-hero-badge .review-hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .game-review-hero-badge {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    justify-items: stretch;
    text-align: center;
  }

  .game-review-hero-main {
    width: 100%;
  }
}

.game-review-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.game-review-cover:hover {
  box-shadow: none;
}

.game-review-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.game-review-cover-score {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.28rem 0.48rem;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(11, 18, 32, 0.92);
  color: #fde68a;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
}

.game-review-cover-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  margin: 0;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--color-gold-a50, rgba(240, 196, 58, 0.5));
  background: var(--gradient-gold, linear-gradient(135deg, #ffe07a 0%, #f0c43a 55%, #d4a017 100%));
  color: var(--color-gold-ink, #1a1408);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  pointer-events: none;
  transition: filter 0.15s ease;
}

.game-review-cover:hover .game-review-cover-cta,
.game-review-cover:focus-visible .game-review-cover-cta {
  filter: brightness(1.06);
}

.game-review-cover:focus-visible {
  outline: 2px solid rgba(240, 196, 58, 0.75);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .game-review-cover {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .game-review-cover-cta {
    min-height: 44px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }
}

.game-review-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 var(--spacing-lg);
}

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

.game-review-spec {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.game-review-spec span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.game-review-spec strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.game-review-editor-take {
  margin: var(--spacing-md, 1rem) 0 var(--spacing-lg, 1.5rem);
  padding: 0.9rem 1rem 0.95rem 1.05rem;
  border-left: 3px solid rgba(240, 196, 58, 0.75);
  border-radius: 0 10px 10px 0;
  background: rgba(240, 196, 58, 0.08);
}

.game-review-editor-take-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.92);
}

.game-review-editor-take p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.game-review-glance {
  margin: 0 0 0.85rem;
}

.game-review-glance-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.94);
}

.game-review-glance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem 0.65rem;
  padding: 0.95rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(8, 28, 20, 0.4) 0%, rgba(5, 21, 16, 0.55) 100%);
}

.game-review-glance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  text-align: center;
}

.game-review-glance-value {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.game-review-glance-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.25;
}

.game-review-bet-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

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

  .game-review-glance-item:last-child {
    grid-column: 1 / -1;
  }
}

.game-review-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: 1.35rem;
  margin: 0.25rem 0 var(--spacing-lg);
}

@media (max-width: 720px) {
  .game-review-feature-grid {
    grid-template-columns: 1fr;
    row-gap: 1.15rem;
  }
}

.game-review-feature {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.game-review-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.game-review-feature p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36em;
}

.game-review-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0.15rem 0 var(--spacing-lg);
}

@media (max-width: 720px) {
  .game-review-variants {
    grid-template-columns: 1fr;
  }
}

.game-review-variant {
  padding: 1rem 1.1rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(8, 28, 20, 0.4) 0%, rgba(5, 21, 16, 0.55) 100%);
}

.game-review-variant-head {
  margin-bottom: 0.85rem;
}

.game-review-variant-title {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  text-transform: none;
}

.game-review-variant-title:hover,
.game-review-variant-title:focus-visible {
  color: var(--color-primary-light, #f0c43a);
  outline: none;
}

.game-review-variant-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  text-transform: none;
}

.game-review-variant-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-review-variant-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  text-align: center;
}

.game-review-variant-stat-value {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.game-review-variant-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.2;
}

@media (max-width: 560px) {
  .game-review-variant-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.75rem;
  }
}

/* Where to Play — hub-style casino cards (logo + bonus + CTAs only) */
.game-review-play-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0.35rem 0 var(--spacing-lg);
}

@media (min-width: 720px) {
  .game-review-play-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.game-review-play-card.casino-card {
  min-height: 0 !important;
  gap: 12px !important;
  padding: 16px 14px 14px !important;
  align-items: center !important;
  text-align: center;
}

.game-review-play-card .casino-card-header {
  margin-bottom: 0 !important;
  min-height: 44px;
  width: 100%;
  justify-content: center !important;
}

.game-review-play-card .casino-card-name {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
}

.game-review-play-card .casino-card-logo-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.game-review-play-card .casino-card-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-decoration: none;
  border-radius: 6px;
}

.game-review-play-card .casino-card-logo-link:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.55);
  outline-offset: 3px;
}

.game-review-play-card .casino-card-logo {
  height: 40px !important;
  max-width: 180px !important;
  margin-inline: auto;
}

.game-review-play-card .game-review-play-bonus.casino-card-bonus {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.2rem !important;
  margin: 0 !important;
  width: 100%;
  text-align: center;
}

.game-review-play-card .game-review-play-bonus .bonus-value {
  display: block !important;
  font-size: 1.28rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em;
  line-height: 1.15 !important;
  color: #fde68a !important;
}

.game-review-play-card .game-review-play-bonus .bonus-label {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: rgba(148, 163, 184, 0.68) !important;
  order: 0;
}

.game-review-play-card .game-review-play-bonus .bonus-label::before,
.game-review-play-card .game-review-play-bonus .bonus-label::after {
  display: none !important;
  content: none !important;
}

.game-review-play-card .casino-card-footer {
  margin-top: 2px !important;
  width: 100%;
}

/* Review | Play in one row (mobile + desktop) */
.game-review-play-card .casino-card-actions {
  display: grid !important;
  grid-template-columns: 1fr 1.15fr !important;
  gap: 8px !important;
  text-align: center;
}

.game-review-play-card .casino-card-actions .btn,
.game-review-play-card .casino-card-actions .btn-secondary,
.game-review-play-card .casino-card-actions .btn-primary {
  width: 100%;
  min-height: 38px !important;
  padding: 0 12px !important;
  font-size: 0.8125rem !important;
}

@media (min-width: 720px) {
  .game-review-play-card.casino-card {
    gap: 12px !important;
    padding: 16px 12px 14px !important;
  }

  .game-review-play-card .casino-card-header {
    min-height: 40px;
  }

  .game-review-play-card .casino-card-logo {
    height: 36px !important;
    max-width: 160px !important;
  }

  .game-review-play-card .game-review-play-bonus .bonus-value {
    font-size: 1.14rem !important;
  }

  .game-review-play-card .game-review-play-bonus .bonus-label {
    font-size: 0.68rem !important;
    color: rgba(148, 163, 184, 0.62) !important;
  }

  .game-review-play-card .casino-card-actions {
    gap: 6px !important;
  }

  .game-review-play-card .casino-card-actions .btn,
  .game-review-play-card .casino-card-actions .btn-secondary,
  .game-review-play-card .casino-card-actions .btn-primary {
    min-height: 34px !important;
    padding: 0 8px !important;
    font-size: 0.75rem !important;
  }
}

.game-review-play-card .casino-card-actions .btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none !important;
}

.game-review-play-card .casino-card-actions .btn-secondary:hover,
.game-review-play-card .casino-card-actions .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}

/* Related games — same rail as homepage popular-games */
.section--popular-games.section--related-games,
.section--related-games {
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(55% 45% at 12% 100%, rgba(38, 184, 110, 0.07), transparent 60%),
    var(--color-bg-primary);
}

/* Same horizontal gutters as FAQ / hero / TOC (.container) */
.section--related-games > .container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--spacing-lg);
}

@media (max-width: 768px) {
  .section--related-games > .container {
    padding-inline: var(--spacing-md);
  }
}

.section--related-games .section-title {
  text-align: left;
  margin-bottom: 1.35rem;
  /* Match review column above (Verdict / Overview) */
  max-width: 800px;
}

.section--related-games .section-title h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.section--related-games .section-title p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
}

.section--related-games .popular-games-rail {
  margin: 0;
  /* Same right edge as the 800px review column above */
  max-width: 800px;
  width: 100%;
}

.section--related-games .popular-games-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: none;
  overflow-anchor: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: grab;
  /* Side inset comes from .container — keep rail flush to content box */
  padding-inline: 0;
  mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}

.section--related-games .popular-games-viewport::-webkit-scrollbar {
  display: none;
}

.section--related-games .popular-games-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.section--related-games .popular-games-viewport.is-dragging a {
  pointer-events: none;
}

.section--related-games .popular-games-track {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  display: flex;
  width: max-content;
  gap: 0.85rem;
}

.section--related-games .popular-games-track > li {
  flex: 0 0 auto;
  width: clamp(7.25rem, 14vw, 8.75rem);
}

.section--related-games .popular-game {
  display: block;
  text-decoration: none;
  color: inherit;
}

.section--related-games .popular-game__media {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section--related-games .popular-game img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  background: var(--color-bg-card);
}

.section--related-games .popular-game__score {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.22rem 0.4rem;
  border-radius: 7px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(11, 18, 32, 0.92);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.section--related-games .popular-game:hover .popular-game__media,
.section--related-games .popular-game:focus-visible .popular-game__media {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.section--related-games .popular-game:focus-visible {
  outline: none;
}

.section--related-games .popular-game:focus-visible .popular-game__media {
  outline: 2px solid rgba(240, 196, 58, 0.75);
  outline-offset: 3px;
}

.section--related-games .popular-games-cta {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
  max-width: 800px;
}

.section--related-games .popular-games-cta .btn {
  width: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .section--related-games {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }

  .section--related-games .popular-games-track {
    gap: 0.7rem;
  }

  .section--related-games .popular-games-track > li {
    width: 6.5rem;
  }
}

.game-card-review-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-light);
  text-decoration: none;
}

.game-card-review-link:hover {
  text-decoration: underline;
}

.game-card-title-link {
  color: inherit;
  text-decoration: none;
}

.game-card-title-link:hover {
  color: var(--color-primary-light);
}
