body.rg-body { margin: 0; font-family: var(--rh-font, system-ui, sans-serif); }
.rg-page, .rg-game-card {
  --rg-accent: #b5a2ff;
  --rg-line: #53487c;
  --rg-soft: #25213a;
}
[data-theme="fantasy"] { --rg-accent: #ffd097; --rg-line: #886450; --rg-soft: #33231f; }
[data-theme="retro-city"] { --rg-accent: #ffbc88; --rg-line: #875a52; --rg-soft: #38252c; }
[data-theme="classic"] { --rg-accent: #e3d29a; --rg-line: #746d4f; --rg-soft: #2d2b22; }
[data-theme="esports"] { --rg-accent: #ffc074; --rg-line: #8f6649; --rg-soft: #30251f; }
[data-theme="voxel"] { --rg-accent: #bdfb98; --rg-line: #587b52; --rg-soft: #253426; }
[data-theme="roleplay"] { --rg-accent: #f6b5ff; --rg-line: #78598d; --rg-soft: #30223e; }
.rg-page { --rg-bg: #0d101a; background: var(--rg-bg); color: #f6f5fc; }
.rg-page *, .rg-page *::before, .rg-page *::after { box-sizing: border-box; }
.rg-page :is(h1,h2,h3,p,ul) { margin: 0; }
.rg-page a { color: inherit; text-decoration: none; }
.rg-page [id] { scroll-margin-top: 125px; }
.rg-page a:focus-visible { outline: 2px solid var(--rg-accent); outline-offset: 4px; }
.rg-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--rg-line); background: #121221; }
.rg-hero-art, .rg-mosaic, .rg-hero::after { position: absolute; inset: 0; }
.rg-hero-art, .rg-mosaic { z-index: -2; }
.rg-hero-art img, .rg-mosaic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rg-hero-art img { object-position: center 52%; }
.rg-hero::after { content: ""; z-index: -1; background: linear-gradient(90deg,#0c0e19fa 10%,#0d101ad9 30%,#0d101a55 65%,#0d101a12),linear-gradient(0deg,#0d101ac9,transparent 50%); }
.rg-mosaic { display: grid; grid-template-columns: 1fr 1fr 1.15fr; left: 30%; transform: skewX(-11deg) translateX(5%); }
.rg-mosaic img { transform: skewX(11deg) scale(1.25); object-position: 65% center; }
.rg-mosaic img:nth-child(1) { clip-path: polygon(0 0,92% 0,72% 100%,0 100%); }
.rg-mosaic img:nth-child(2) { clip-path: polygon(12% 0,92% 0,72% 100%,0 100%); }
.rg-mosaic img:nth-child(3) { clip-path: polygon(12% 0,100% 0,100% 100%,0 100%); }
.rg-hero-content { display: grid; align-content: center; min-height: clamp(465px,42vw,600px); padding-block: 58px; }
.rg-kicker, .rg-breadcrumb {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px;
  padding: 6px 9px; border: 1px solid var(--rg-line); border-radius: 6px; background: #111321ed;
  color: #e9e3f2; font-size: 12px; font-weight: 750;
}
.rg-kicker svg, .rg-breadcrumb [aria-current] { color: var(--rg-accent); }
.rg-breadcrumb a:hover { text-decoration: underline; }
.rg-page h1 { margin-block: 15px; max-width: 11ch; font-size: clamp(46px,7vw,104px); line-height: .91; letter-spacing: -.074em; font-weight: 800; }
.rg-page[data-theme="hub"] h1 { max-width: 14ch; font-size: clamp(41px,5.9vw,83px); }
.rg-page h1 span { display: block; color: var(--rg-accent); }
.rg-lead { max-width: 48ch; color: #e4e2eb; font-size: clamp(15px,1.5vw,19px); line-height: 1.55; }
.rg-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rg-page .rg-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 12px; min-height: 44px; border: 1px solid var(--rg-line); border-radius: 7px; background: #171a2a; font-size: 13px; font-weight: 800; }
.rg-page .rg-primary { background: var(--rg-accent); border-color: var(--rg-accent); color: #171423; }
.rg-page .rg-button:hover { border-color: var(--rg-accent); filter: brightness(1.12); }

.rg-block { padding-block: clamp(34px,5vw,70px); }
.rg-heading { margin-bottom: 18px; }
.rg-heading h2 { font-size: clamp(28px,3.8vw,49px); line-height: 1.05; font-weight: 800; letter-spacing: -.054em; text-wrap: balance; }
.rg-heading p { margin-top: 7px; font-size: 14px; color: #ccd0df; }
.rg-game-grid, .rg-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.rg-game-card { position: relative; isolation: isolate; min-height: 220px; overflow: hidden; border: 1px solid var(--rg-line); border-radius: 13px; background: var(--rg-soft); display: grid; align-items: end; }
.rg-game-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; transition: transform .28s ease; }
.rg-game-card::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(0deg,#090b15fa 5%,#0b0e19a0 42%,#0d101a00 80%); }
.rg-game-card:hover { border-color: var(--rg-accent); }
.rg-game-card:hover img { transform: scale(1.04); }
.rg-game-card > div { padding: 14px; }
.rg-game-card > div > span { padding: 3px 5px; border-radius: 4px; color: var(--rg-accent); background: #101421e8; font-size: 11px; font-weight: 800; }
.rg-game-card h3 { margin-block: 5px 2px; font-size: clamp(24px,3vw,42px); font-weight: 800; letter-spacing: -.06em; line-height: 1.05; }
.rg-game-card p { color: #eee8f6; font-size: 13px; }
.rg-card-port {
  display: inline-block; margin-block: 4px 6px; padding: 3px 6px;
  border: 1px solid var(--rg-line); border-radius: 4px; background: #111625;
  color: var(--rg-accent); font: 750 11px/1.2 ui-monospace, Monaco, Consolas, monospace;
}

.rg-page .rg-port-note { margin-top: 12px; color: #bfc7db; font-size: 12px; }

.rg-infra { background: #141729; padding-block: 22px; border-block: 1px solid #3d425c; }
.rg-features a { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 4px 9px; border: 1px solid #465073; border-radius: 8px; background: #1c2238; padding: 11px; }
.rg-features a:hover { border-color: var(--rg-accent); }
.rg-features svg { grid-row: span 2; color: var(--rg-accent); }
.rg-features strong { font-size: 14px; }
.rg-features small { grid-column: 2; color: #c3c8dc; font-size: 12px; }
.rg-features .rh-arrow { grid-row: 1; grid-column: 3; }
.rg-other .rg-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; flex-wrap: wrap; }
.rg-other .rg-heading a { color: var(--rg-accent); font-size: 13px; }
.rg-related { display: flex; flex-wrap: wrap; gap: 7px; }
.rg-related a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border: 1px solid #454b68; border-radius: 7px; background: #1b1f33; font-size: 13px; font-weight: 800; }
.rg-related a:hover { border-color: var(--rg-accent); }
.rg-related img { object-fit: cover; border-radius: 4px; }
@media (max-width: 780px) {
  .rg-game-grid, .rg-features { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rg-page [id] { scroll-margin-top: 85px; }
}
@media (max-width: 580px) {
  .rg-hero-content { min-height: 440px; align-content: end; padding-block: 55px 35px; }
  .rg-hero-art img { object-position: 72% center; }
  .rg-hero::after { background: linear-gradient(0deg,#0d101afb 5%,#0d101ada 47%,#0d101a24 100%); }
  .rg-mosaic { left: 0; }
  .rg-game-grid { gap: 8px; }
  .rg-game-card { min-height: 162px; }
  .rg-game-card > div { padding: 8px; }
  .rg-game-card > div > span { font-size: 9px; }
  .rg-game-card h3 { font-size: clamp(19px,6vw,27px); }
  .rg-game-card p { font-size: 11px; }
  .rg-card-port { font-size: 10px; }
  .rg-features { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) { .rg-game-card img { transition: none; } }
