.rg-game-details {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  text-align: left;
  color: #241a35;
}
.rg-game-details [hidden], #inline-player[hidden] { display: none !important; }
.rg-action-bar, .rg-game-info { background: #fff; border: 1px solid #e8e0f2; }
.rg-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 18px;
  padding: 10px 13px;
  border-radius: 15px;
  border-inline-start: 4px solid #845bd0;
}
.rg-action-game {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.rg-action-game img { flex: none; width: 35px; height: 35px; padding: 0; border-radius: 9px; object-fit: cover; }
.rg-action-game img.contain-art { object-fit: contain; }
.rg-game-actions, .rg-share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.rg-game-actions button, .rg-share-links :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #e5d9f5;
  border-radius: 9px;
  background: #f6f0fc;
  color: #4a2a86;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.rg-game-actions button:hover { background: #eee4f9; }
.rg-game-actions button[aria-pressed="true"] { background: #5c39a9; border-color: #5c39a9; color: #fff; }
.rg-game-actions button[data-vote="-1"][aria-pressed="true"] { background: #7e3564; border-color: #7e3564; }
.rg-game-actions button:disabled { opacity: .78; cursor: wait; }
.rg-game-feedback { color: #4f328d; font-size: 13px; line-height: 1.4; margin: 0; }
.rg-action-bar .rg-game-feedback { flex: 1 0 100%; }
.rg-game-feedback:empty { display: none; }

.rg-game-info {
  padding: clamp(17px, 3.5vw, 32px);
  border-radius: 22px;
  box-shadow: 0 14px 38px #2818410d;
}
.rg-game-lead { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(13px, 2vw, 24px); }
.rg-game-thumb { display: block; width: clamp(66px, 9vw, 96px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #f0eafa; }
.rg-game-thumb.contain-art { object-fit: contain; }
.rg-game-lead h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 32px;
  font-style: italic;
  font-weight: 850;
  letter-spacing: -1.5px;
  line-height: 1.03;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.rg-game-category { display: inline-flex; padding: 4px 9px; background: #ede3fa; color: #56328d; border-radius: 7px; font-size: 12px; font-weight: 750; }
.rg-game-metrics { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 9px 0 0; color: #493668; font-size: 13px; }
.rg-game-metrics div { position: relative; display: inline-flex; align-items: center; gap: 5px; padding-inline-start: 26px; }
.rg-game-metrics dd { order: 1; margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.rg-game-metrics dt { order: 2; margin: 0; text-transform: lowercase; }
.rg-game-metrics .rg-control-icon { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; }
.rg-game-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 18px 0 16px; }
.rg-game-facts div { padding: 10px 12px; border: 1px solid #eee5f7; background: #faf7fd; border-radius: 11px; }
.rg-game-facts dt { color: #625373; font-size: 12px; margin: 0 0 3px; }
.rg-game-facts dd { margin: 0; color: #241a35; font-weight: 750; overflow-wrap: anywhere; }
.rg-game-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid #eee6f5; }
.rg-game-share > strong { color: #463559; font-size: 13px; }
.rg-game-share .rg-game-feedback { flex: 1 0 100%; }
.rg-share-fallback { flex: 1 0 100%; }
.rg-share-fallback label { display: block; font-size: 13px; font-weight: 650; margin: 0 0 4px; }
.rg-share-fallback input { box-sizing: border-box; max-width: 28rem; width: 100%; padding: 8px 10px; border-radius: 7px; border: 1px solid #d9caed; font: inherit; }
.rg-game-count-note { color: #655b70; margin: 12px 0 0; font-size: 12px; }
@media (max-width: 620px) {
  .rg-action-bar { align-items: flex-start; }
  .rg-game-actions button, .rg-share-links :is(button, a) { min-height: 44px; }
  .rg-game-facts dd { font-size: 13px; }
}


#inline-player { margin-top: 20px; scroll-margin-top: 78px; }
#inline-player .inline-frame { min-height: 0; }
#inline-player .inline-frame iframe { border: 0; }
.rg-game-tags { margin: 30px 0 0; }
.rg-game-tags h2 { font-size: 17px; margin: 0 0 8px; }
.rg-game-tags .game-tags { padding: 0; margin: 0; }
.rg-game-tags .game-tags span { background: #eee8fa; color: #4f328d; font-size: 15px; font-weight: 650; line-height: 1.4; }
.rg-game-grid {
  --rg-art-ratio: 1.06;
  --rg-art-radius: 15px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 17px;
}
.rg-zone .section-heading,
.rg-more .section-heading { margin-bottom: 13px; }

.rg-game-tile, .rg-guide-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: #21192d;
  background: #fff;
  border: 1px solid #ebe4f2;
  border-radius: 15px;
  overflow: hidden;
}
.rg-game-tile:hover, .rg-guide-card:hover { border-color: #a18bd0; }
.rg-game-tile img, .rg-guide-card img { display: block; width: 100%; object-fit: cover; background: #f2ecfb; }
.rg-game-tile { border: 0; border-radius: var(--rg-art-radius); }
.rg-game-tile img { aspect-ratio: var(--rg-art-ratio); }
.rg-game-tile img.contain-art { object-fit: contain; }
.rg-guides { margin: 46px 0 0; }
.rg-guides .section-heading { margin: 0 0 15px; }
.rg-more .rg-more-title,
.rg-guides h2 { font-size: 26px; line-height: 1.3; margin: 0; }
.rg-guide-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scroll-snap-type: inline proximity;
}
.rg-guide-card { scroll-snap-align: start; }
.rg-guide-card img { aspect-ratio: 16 / 9; }
.rg-game-details :focus-visible, .rg-game-tile:focus-visible, .rg-guide-card:focus-visible {
  outline: 2px solid #6542cb;
  outline-offset: 2px;
}
@media (max-width: 960px) {
  .rg-guide-rail { grid-auto-columns: calc((100% - 28px) / 3); }
}
@media (max-width: 620px) {
  .rg-game-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .rg-guide-rail {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .rg-guides { margin-top: 32px; }
}

.rg-game-facts dt { display: flex; align-items: center; gap: 6px; }
.rg-control-icon { flex: none; width: 17px; height: 17px; }
.rg-thumb-down { transform: rotate(180deg); }
.rg-game-actions button[data-vote] { min-width: 40px; }
.rg-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.rg-guide-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.rg-guide-card:focus-within { outline: 2px solid #6542cb; outline-offset: 1px; }
.rg-guide-copy { display: flex; flex-direction: column; flex: 1; gap: 9px; padding: clamp(11px, 1.6vw, 17px); }
.rg-guide-copy h3 { margin: 0; color: #261a37; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.rg-guide-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0; color: #5d5269; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rg-guide-read { align-self: flex-start; margin-top: auto; padding: 7px 10px; border-radius: 8px; background: #f0e9fa; color: #51358a; font-size: 13px; font-weight: 750; }
.rg-guide-link:hover .rg-guide-read { background: #e6d9f6; }

.rg-share-links :is(button, a) { width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: 50%; border: none; color: #fff; }
@media (hover: hover) {
  .rg-share-links :is(button, a):hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7953bf;
  }
}
.rg-share-links .rg-social-facebook { background: #1767bb; }
.rg-share-links .rg-social-x { background: #23222b; }
.rg-share-links .rg-social-whatsapp { background: #157c50; }
.rg-share-links .rg-social-copy { background: #6242aa; }
.rg-share-links svg { width: 21px; height: 21px; }
@media (max-width: 620px) { .rg-share-links :is(button, a) { width: 44px; min-height: 44px; height: 44px; } }

.related-games.rg-zone { padding-bottom: 0; }
.related-games.rg-more { padding-top: clamp(24px, 3vw, 30px); padding-bottom: 0; }
.rg-more + .rg-guides { margin-top: clamp(26px, 3.2vw, 32px); }
@media (max-width: 1100px) {
  .rg-game-grid { --rg-art-ratio: 1.1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .rg-zone-grid .rg-game-tile:nth-child(n+5),
  .rg-more-grid .rg-game-tile:nth-child(n+9) { display: none; }
}
@media (max-width: 800px) {
  .rg-game-lead h2 { font-size: 27px; }
  .rg-more .rg-more-title, .rg-guides h2 { font-size: 22px; }
  .rg-game-grid { --rg-art-ratio: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .rg-zone-grid .rg-game-tile:nth-child(n+3),
  .rg-more-grid .rg-game-tile:nth-child(n+5) { display: none; }
}
@media (max-width: 550px) {
  .rg-game-lead h2 { font-size: 23px; letter-spacing: -1px; line-height: 1.15; }
  .rg-more .rg-more-title, .rg-guides h2 { font-size: 20px; }
  .rg-game-grid { --rg-art-radius: 12px; }
}
