/* Basic layout */

.rg-main {
  background: radial-gradient(circle at top, #101635 0, #050816 60%);
  color: #fff;
  min-height: 80vh;
  padding: 40px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rg-main-inner {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

.rg-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .rg-game-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cover + emulator */

.rg-cover-emulator-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 24px;
  overflow: hidden;
  background: #050816;
  box-shadow: 0 22px 60px rgba(0,0,0,.6);
}

.rg-cover-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rg-emulator-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.rg-emulator-shell.rg-state-idle {
  opacity: 0;
  pointer-events: none;
}

#rg-emulator {
  width: 100%;
  height: 100%;
}

/* Play button */

.rg-play-button {
  border: none;
  background: #1be9ff;
  color: #002b36;
  font-weight: 700;
  font-size: 20px;
  padding: 12px 40px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(27,233,255,0.7);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.rg-play-button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 60px rgba(27,233,255,0.9);
  background: #7ff5ff;
}

/* Toolbar */

.rg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rg-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
  background: rgba(255,255,255,.08);
  color: #e5e7ff;
  backdrop-filter: blur(12px);
}

.rg-btn:hover {
  background: rgba(255,255,255,.16);
}

.rg-btn-secondary {
  background: rgba(98,115,255,.2);
}

.rg-btn-fav {
  margin-left: auto;
}

/* Headings & text */

.rg-game-header {
  margin-top: 24px;
}

.rg-game-title {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 8px;
}

.rg-game-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
  font-size: 14px;
  opacity: .8;
}

.rg-game-description {
  margin-top: 24px;
  line-height: 1.7;
  font-size: 15px;
}

/* Sidebar */

.rg-game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rg-sidebar-section h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.rg-mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rg-mini-list li {
  margin-bottom: 4px;
}

.rg-mini-list a {
  color: #cbd5ff;
  text-decoration: none;
  font-size: 14px;
}

.rg-mini-list a:hover {
  text-decoration: underline;
}

/* Archive grid */

.rg-archive-header {
  margin-bottom: 24px;
}

.rg-archive-title {
  margin: 0 0 16px;
  font-size: 30px;
}

.rg-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.rg-filter-form label {
  font-size: 14px;
}

.rg-filter-form select {
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5,8,22,.8);
  color: #fff;
  padding: 4px 10px;
}

.rg-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.rg-card {
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(32,60,180,.6), rgba(5,8,22,1));
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

.rg-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rg-card-thumb {
  padding-top: 60%;
  background: #050816;
  background-size: cover;
  background-position: center;
}

.rg-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rg-card-title {
  margin: 0;
  font-size: 17px;
}

.rg-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rg-pill {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.rg-pill-secondary {
  background: rgba(126,142,255,.25);
}

.rg-card-excerpt {
  font-size: 13px;
  opacity: .8;
}

/* Ads */

.rg-ad {
  margin: 16px 0;
}

.rg-ad-sidebar {
  margin-top: 24px;
}

/* Pagination */

.rg-pagination {
  margin-top: 28px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.rg-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.rg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.9));
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.rg-pagination .page-numbers:hover {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15,23,42,0.98));
  border-color: #38bdf8;
  color: #f9fafb;
  transform: translateY(-1px);
}

.rg-pagination .page-numbers.current {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-color: #38bdf8;
  color: #020617;
  font-weight: 600;
}

.rg-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.rg-pagination .page-numbers.prev,
.rg-pagination .page-numbers.next {
  padding-inline: 18px;
}

/* Mobile */

@media (max-width: 700px) {
  .rg-main {
    padding: 24px 0 40px;
  }
}

/* Fallback pseudo-covers when there is no featured image */

.rg-cover-no-thumb {
  background: radial-gradient(circle at top, #182850 0, #050816 60%);
  color: #e5e9ff;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  text-align: center;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rg-cover-no-thumb::before {
  content: attr(data-title);
  font-size: clamp(18px, 3vw, 26px);
  margin-bottom: 10px;
  white-space: normal;
  word-break: break-word;
}

.rg-cover-no-thumb::after {
  content: 'Retro console game';
  font-size: 12px;
  opacity: .7;
}

.rg-card-no-thumb {
  background: radial-gradient(circle at top, #182850 0, #050816 60%);
  position: relative;
  color: #e5e9ff;
}

.rg-card-no-thumb::before {
  content: attr(data-title);
  position: absolute;
  inset: 12px 10px;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

/* Extra safety against horizontal scroll */
.rg-main,
.rg-main-inner,
.rg-game-layout,
.rg-archive-grid {
  box-sizing: border-box;
  max-width: 100%;
}

body {
  overflow-x: hidden;
}


/* ====== Catalog headings / sections ====== */
.rg-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 24px 0 16px;
  text-align: left;
}

/* ====== Games catalog ====== */
.rg-games-catalog-wrapper {
  margin: 32px 0;
}

.rg-games-filters {
  margin-bottom: 20px;
}

.rg-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.rg-filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.rg-filter-item label {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
}

.rg-filter-item input[type="text"],
.rg-filter-item select {
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  padding: 6px 14px;
  font-size: 14px;
}

.rg-filter-item input[type="text"]::placeholder {
  color: #6b7280;
}

.rg-filter-button {
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.rg-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rg-game-card {
  background: #020617;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.55);
  border: 1px solid rgba(148,163,184,0.3);
}

.rg-game-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.rg-game-thumb {
  position: relative;
  padding-top: 60%;
  background: #020617;
}

.rg-game-thumb-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.rg-game-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  background: radial-gradient(circle at 0 0, #38bdf8, #0f172a);
}

.rg-game-info {
  padding: 10px 12px 12px;
}

.rg-game-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.rg-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.rg-game-platform::before {
  content: "● ";
  color: #22c55e;
}

.rg-game-genre::before {
  content: "◆ ";
  color: #3b82f6;
}

.rg-games-empty {
  font-size: 14px;
  color: #9ca3af;
}

.rg-games-pagination {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rg-page-link {
  min-width: 32px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #374151;
  font-size: 13px;
  text-decoration: none;
  color: #e5e7eb;
}

.rg-page-link.rg-page-current {
  background: #22c55e;
  border-color: #22c55e;
  color: #022c22;
}

/* ====== Platforms catalog ====== */

.rg-platforms-wrapper {
  margin: 32px 0 40px;
}

.rg-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rg-platform-card {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rg-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.5);
  background: #0f172a;
}

.rg-platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 0, rgba(96,165,250,0.4), rgba(15,23,42,1));
}

.rg-platform-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rg-platform-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rg-platform-meta {
  font-size: 12px;
  color: #9ca3af;
}

.rg-platforms-empty {
  font-size: 14px;
  color: #9ca3af;
}

/* ====== Orientation overlay (only used on single game, controlled via JS) ====== */
#rg-orientation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#rg-orientation-overlay.rg-visible {
  display: flex;
}

#rg-orientation-overlay.rg-hidden,
#rg-orientation-overlay.rg-dismissed {
  display: none !important;
}

.rg-orientation-inner {
  max-width: 360px;
  width: 100%;
  background: radial-gradient(circle at 0 0, rgba(96,165,250,0.25), rgba(15,23,42,1));
  border-radius: 18px;
  padding: 24px 20px 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  text-align: center;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rg-orientation-icon {
  width: 72px;
  height: 72px;
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,0.5);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rg-orientation-icon::before,
.rg-orientation-icon::after {
  content: "";
  position: absolute;
  border-radius: 15px;
  border: 2px solid rgba(209,213,219,0.9);
}

.rg-orientation-icon::before {
  width: 32px;
  height: 52px;
  transform: rotate(0deg);
  opacity: 0.2;
}

.rg-orientation-icon::after {
  width: 52px;
  height: 32px;
  transform: rotate(0deg);
  animation: rg-orientation-rotate 1.4s ease-in-out infinite;
}

@keyframes rg-orientation-rotate {
  0% {
    transform: rotate(0deg);
    opacity: 0.2;
  }
  40% {
    transform: rotate(90deg);
    opacity: 1;
  }
  100% {
    transform: rotate(90deg);
    opacity: 1;
  }
}

.rg-orientation-inner p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
}

.rg-orientation-inner p span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #9ca3af;
}

#rg-orientation-gotit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ====== Mobile adjustments around emulator on single game ====== */
@media (max-width: 768px) {
  .single-retro_game .rg-cover-emulator-wrapper {
    padding-top: 75%;
  }

  .rg-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rg-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rg-section-title {
    text-align: center;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .rg-games-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .rg-platform-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Hide toolbar buttons (Fullscreen / Random game / Favorite) for now */
.rg-toolbar {
  display: none;
}







/* Landscape game layout optimizations on mobile */
@media (max-width: 768px) {
  body.rg-landscape-game.single-retro_game .rg-main-inner {
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }

  body.rg-landscape-game.single-retro_game .rg-game-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.rg-landscape-game.single-retro_game .rg-game-sidebar {
    display: none;
  }

  body.rg-landscape-game.single-retro_game .rg-cover-emulator-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }
}



/* Homepage overview shortcode */

.rg-overview {
  max-width: 1200px;
  margin: 48px auto 72px;
  padding: 0 16px;
}

.rg-overview-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  padding: 22px 20px 24px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #1d4ed8, #020617);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.rg-overview-hero-text {
  flex: 1 1 260px;
  min-width: 0;
}

.rg-overview-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #f9fafb;
}

.rg-overview-subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #e5e7eb;
  max-width: 520px;
}

.rg-overview-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #0b1120;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.9);
  transition: transform .08s ease, box-shadow .1s ease, filter .1s ease;
}

.rg-overview-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.95);
}

.rg-overview-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
  min-width: 160px;
}

.rg-overview-stat {
  text-align: right;
}

.rg-overview-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #f9fafb;
}

.rg-overview-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #cbd5f5;
}

.rg-overview-section {
  margin-top: 28px;
}

.rg-overview-section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
}

.rg-overview-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.rg-overview-platform-card {
  display: block;
  padding: 12px 14px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  transition: transform .08s ease, box-shadow .1s ease, border-color .1s ease;
}

.rg-overview-platform-card:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
}

.rg-overview-platform-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rg-overview-platform-meta {
  font-size: 12px;
  color: #9ca3af;
}

.rg-overview-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.rg-overview-game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.85);
  transition: transform .08s ease, box-shadow .1s ease, border-color .1s ease;
}

.rg-overview-game-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.95);
}

.rg-overview-game-thumb {
  position: relative;
  width: 100%;
  padding-top: 133%; /* unify cover aspect ratio */
  overflow: hidden;
}

.rg-overview-game-body {
  padding: 10px 12px 6px;
}

.rg-overview-game-body-top {
  padding-top: 12px;
}

.rg-overview-game-title {
  font-size: 16px;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 6px;
  text-align: left;
}

.rg-overview-game-meta {
  font-size: 11px;
  color: #9ca3af;
}

.rg-overview-game-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 12px;
  font-size: 13px;
  color: #cbd5f5;
}

.rg-overview-game-platform-icon {
  font-size: 18px;
  line-height: 1;
}

.rg-overview-game-platform {
  font-size: 13px;
}

.rg-overview-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rg-overview-genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  transition: background .1s ease, border-color .1s ease, transform .08s ease;
}

.rg-overview-genre-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.rg-overview-genre-count {
  font-size: 11px;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .rg-overview {
    margin: 32px auto 56px;
  }

  .rg-overview-hero {
    padding: 18px 16px 20px;
  }

  .rg-overview-title {
    font-size: 22px;
  }

  .rg-overview-hero-meta {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    align-items: flex-end;
  }

  .rg-overview-stat {
    text-align: left;
  }
}



/* Overview shortcode */
.rg-overview {
  max-width: 1120px;
  margin: 40px auto;
  padding: 24px 20px 28px;
  border-radius: 24px;
  background: radial-gradient(circle at top left,#1e293b,#020617);
  color: #e5e7eb;
  box-shadow: 0 24px 60px rgba(15,23,42,0.85);
}
.rg-overview-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.rg-overview-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f9fafb;
}
.rg-overview-subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: #cbd5f5;
}
.rg-overview-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.rg-overview-counter {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.6);
}
.rg-overview-counter-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
}
.rg-overview-counter-value {
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
}
.rg-overview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg,#38bdf8,#6366f1);
  color: #0b1120;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(56,189,248,0.5);
}
.rg-overview-hero-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.rg-overview-hero-chip {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.6);
}

.rg-overview-section {
  margin-top: 16px;
}
.rg-overview-section-head h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
}

.rg-overview-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap: 10px;
}
.rg-overview-platform-card {
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg,rgba(15,23,42,0.95),rgba(30,64,175,0.9));
  text-decoration: none;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rg-overview-platform-name {
  font-size: 14px;
  font-weight: 600;
}
.rg-overview-platform-count {
  font-size: 11px;
  color: #cbd5f5;
}

.rg-overview-games {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 12px;
}
.rg-overview-game-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.5);
  text-decoration: none;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
}
.rg-overview-game-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rg-overview-game-body {
  padding: 10px 12px 6px;
}

.rg-overview-game-body-top {
  padding-top: 12px;
}
.rg-overview-game-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
.rg-overview-game-platform {
  font-size: 11px;
  color: #9ca3af;
}

.rg-overview-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rg-overview-genre-pill {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 11px;
  color: #e5e7eb;
}
.rg-overview-genre-count {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(30,64,175,0.9);
}

@media (max-width: 768px) {
  .rg-overview {
    margin: 24px 12px 32px;
    padding: 18px 14px 22px;
  }
  .rg-overview-hero {
    flex-direction: column;
  }
  .rg-overview-hero-right {
    align-items: flex-start;
  }
}


/* Random game block */
.rg-overview-random-card {
  margin-top: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.3));
  border: 1px solid rgba(125, 211, 252, 0.7);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.9);
}

.rg-overview-random-inner {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: #e5e7eb;
}

.rg-overview-random-thumb img {
  display: block;
  width: 140px;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
}

.rg-overview-random-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rg-overview-random-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e0f2fe;
}

.rg-overview-random-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.rg-overview-random-platform {
  font-size: 12px;
  color: #bfdbfe;
}

.rg-overview-random-cta {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(191, 219, 254, 0.8);
}

/* SEO block */
.rg-overview-seo {
  margin-top: 20px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.rg-overview-seo-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
}

.rg-overview-seo-text {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5f5;
}

.rg-overview-seo-text p {
  margin: 0 0 8px;
}

@media (max-width: 768px) {
  .rg-overview-random-inner {
    flex-direction: column;
  }
  .rg-overview-random-thumb img {
    width: 100%;
    border-radius: 16px 16px 0 0;
  }
}


/* Overview random game widget */
.rg-overview-random {
  margin-top: 16px;
}
.rg-overview-random-card {
  margin-top: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.32));
  border: 1px solid rgba(125, 211, 252, 0.7);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.9);
}
.rg-overview-random-inner {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: #e5e7eb;
}
.rg-overview-random-thumb img {
  display: block;
  width: 140px;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
}
.rg-overview-random-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rg-overview-random-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e0f2fe;
}
.rg-overview-random-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.rg-overview-random-platform {
  font-size: 12px;
  color: #bfdbfe;
}
.rg-overview-random-cta {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(191, 219, 254, 0.8);
}

/* Overview SEO block */
.rg-overview-seo {
  margin-top: 20px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.6);
}
.rg-overview-seo-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
}
.rg-overview-seo-text {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5f5;
}
.rg-overview-seo-text p {
  margin: 0 0 8px;
}

@media (max-width: 768px) {
  .rg-overview-random-inner {
    flex-direction: column;
  }
  .rg-overview-random-thumb img {
    width: 100%;
    border-radius: 16px 16px 0 0;
  }
}


.rg-overview-counter-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.rg-overview-counter-link:hover .rg-overview-counter-label,
.rg-overview-counter-link:hover .rg-overview-counter-value {
  color: #e0f2fe;
}


/* More games from same platform */
.rg-more-platform {
  margin-top: 32px;
}

.rg-more-platform h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.rg-more-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.rg-more-platform-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: transform 0.08s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.rg-more-platform-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.9);
}

.rg-more-platform-thumb {
  position: relative;
  width: 100%;
  padding-top: 133%;
  overflow: hidden;
}

.rg-more-platform-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rg-more-platform-body {
  padding: 8px 12px 12px;
}

.rg-more-platform-title {
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
}

.rg-more-platform-meta {
  font-size: 11px;
  color: #cbd5f5;
}


/* Game FAQ block under description */
.rg-game-faq {
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.98));
}

.rg-game-faq-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.rg-game-faq-item + .rg-game-faq-item {
  margin-top: 8px;
}

.rg-game-faq-q {
  font-weight: 600;
  font-size: 13px;
}

.rg-game-faq-a {
  font-size: 13px;
  color: #e5e7eb;
}
