/* RTP theme (domains with site_type "rtp"). Loaded only on those domains.
   Body classes from RtpTheme: rtp-l-<layout> rtp-p-<palette> rtp-h-<header> rtp-c-<crumbs>. */

/* Palettes */
body.rtp-site { --rtp-bg: #0b1328; --rtp-bg2: #1e2d63; --rtp-panel: #141f45; --rtp-line: rgba(255,255,255,.1); --rtp-ink: #f4f6ff; --rtp-muted: #aab4d6; --rtp-hot: #22d37a; --rtp-hot2: #14a35d; --rtp-on-hot: #04140b; --rtp-mid: #f5b83d; --rtp-radius: 14px; }
body.rtp-p-violet { --rtp-bg: #120a24; --rtp-bg2: #3b1a6e; --rtp-panel: #1d1238; --rtp-hot: #b98cff; --rtp-hot2: #7c3aed; --rtp-on-hot: #13052b; }
body.rtp-p-amber { --rtp-bg: #17110a; --rtp-bg2: #5a3510; --rtp-panel: #241a10; --rtp-hot: #ffc23d; --rtp-hot2: #e08a00; --rtp-on-hot: #1f1300; --rtp-muted: #d1bf9e; }
body.rtp-p-cyan { --rtp-bg: #061a22; --rtp-bg2: #0b4a63; --rtp-panel: #0c2731; --rtp-hot: #3fe0ff; --rtp-hot2: #0891b2; --rtp-on-hot: #021419; }
body.rtp-p-rose { --rtp-bg: #1c0a12; --rtp-bg2: #6a1736; --rtp-panel: #2a111c; --rtp-hot: #ff6b9a; --rtp-hot2: #e11d48; --rtp-on-hot: #22040e; --rtp-muted: #d7a9b8; }
body.rtp-p-lime { --rtp-bg: #0e1508; --rtp-bg2: #33500f; --rtp-panel: #18220d; --rtp-hot: #c6f135; --rtp-hot2: #65a30d; --rtp-on-hot: #121a02; --rtp-muted: #bccaa3; }

body.rtp-site { background: var(--rtp-bg); color: var(--rtp-ink); --bs-body-bg: var(--rtp-bg); --bs-body-color: var(--rtp-ink); --bs-secondary-color: var(--rtp-muted); --bs-border-color: var(--rtp-line); --site-accent: var(--rtp-hot2); --bs-primary-rgb: 120, 200, 160; }
body.rtp-site a { color: var(--rtp-hot); }
body.rtp-site .text-body-secondary { color: var(--rtp-muted) !important; }
body.rtp-site .brand-card { background: var(--rtp-panel); border-color: var(--rtp-line); }
body.rtp-site .btn-primary { --bs-btn-bg: var(--rtp-hot2); --bs-btn-border-color: var(--rtp-hot2); --bs-btn-color: #fff; }
body.rtp-site .section { background: transparent; }
body.rtp-l-board { --rtp-radius: 6px; }
body[class*="rtp-l-split"] { --rtp-radius: 20px; }
body.rtp-l-tabs { --rtp-radius: 10px; }

/* Header */
.rtp-header { position: sticky; top: 0; z-index: 1030; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rtp-line); }
.rtp-header-main { display: flex; align-items: center; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
.rtp-logo { height: 38px; width: auto; max-width: 170px; object-fit: contain; }
.rtp-logo-link { text-decoration: none; }
.rtp-logo-text { font-weight: 900; color: var(--rtp-ink); }
.rtp-nav { display: flex; gap: .25rem; margin-left: auto; }
.rtp-nav a { color: var(--rtp-ink); font-weight: 700; font-size: .9rem; padding: .4rem .75rem; border-radius: 8px; text-decoration: none; }
.rtp-nav a:hover, .rtp-nav a[aria-current] { background: rgba(255,255,255,.08); color: var(--rtp-hot); }
.rtp-header-cta { display: flex; gap: .5rem; }
.rtp-mini { display: inline-block; font-weight: 800; font-size: .8rem; text-transform: uppercase; padding: .45rem .9rem; border-radius: 8px; background: var(--rtp-hot); color: var(--rtp-on-hot) !important; text-decoration: none; }
.rtp-mini-ghost { background: transparent; border: 1px solid var(--rtp-line); color: var(--rtp-ink) !important; }
.rtp-menu-toggle { display: none; }
.rtp-menu-btn { display: none; font-size: 1.6rem; cursor: pointer; margin-left: auto; color: var(--rtp-ink); }
.rtp-h-center .rtp-header-main { justify-content: center; }
.rtp-h-center .rtp-logo-link { width: 100%; text-align: center; }
.rtp-h-center .rtp-nav { margin-left: 0; }
.rtp-h-stack .rtp-topline { background: var(--rtp-hot2); color: #fff; padding: .35rem 0; }
.rtp-h-stack .rtp-topline .rtp-mini { background: #fff; color: #111 !important; padding: .25rem .7rem; }
.rtp-h-stack .rtp-topline .rtp-mini-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
@media (max-width: 991.98px) {
  .rtp-menu-btn { display: block; }
  .rtp-h-center .rtp-logo-link { width: auto; }
  .rtp-nav { display: none; width: 100%; flex-direction: column; margin-left: 0; }
  .rtp-menu-toggle:checked ~ .rtp-nav { display: flex; }
  .rtp-header-cta { display: none; }
}

/* Breadcrumbs (3 styles) */
.rtp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .5rem; padding: 0; font-size: .82rem; }
.rtp-crumbs li { display: inline-flex; align-items: center; gap: .35rem; color: var(--rtp-muted); }
.rtp-crumbs a { color: var(--rtp-hot); text-decoration: none; }
.rtp-crumbs-chevron li + li::before { content: "\203A"; color: var(--rtp-muted); font-weight: 700; }
.rtp-crumbs-slash li + li::before { content: "/"; opacity: .5; }
.rtp-crumbs-pill li { background: rgba(255,255,255,.06); border: 1px solid var(--rtp-line); border-radius: 999px; padding: .15rem .7rem; }

/* Shared blocks */
.rtp-section { background: radial-gradient(1200px 520px at 50% -8%, var(--rtp-bg2) 0, var(--rtp-bg) 62%); color: var(--rtp-ink); padding-bottom: 2rem; }
.rtp-block { padding: 1.75rem 0; }
.rtp-h1 { font-weight: 900; font-size: clamp(1.5rem, 3.6vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: .6rem; }
.rtp-h2 { font-weight: 900; font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin-bottom: 1rem; }
.rtp-kicker { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rtp-hot); background: rgba(255,255,255,.07); border-radius: 999px; padding: .3rem .8rem; }
.rtp-lede { color: var(--rtp-muted); max-width: 700px; }
.rtp-date { color: var(--rtp-hot); font-weight: 700; font-size: .9rem; }
.rtp-section a { text-decoration: none; }

.rtp-banner { padding: 1rem 0 .5rem; }
.rtp-banner-box { position: relative; border-radius: var(--rtp-radius); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; background: linear-gradient(120deg, var(--rtp-bg2), var(--rtp-panel)); border: 1px solid var(--rtp-line); }
.rtp-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rtp-banner-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.15) 70%); }
.rtp-banner-text { position: relative; z-index: 1; padding: clamp(1rem, 4vw, 2.5rem); max-width: 820px; }
.rtp-headline { padding: 2rem 0 1rem; }
.rtp-split { padding: 1.5rem 0; }

.rtp-toplist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.rtp-toplist a { display: flex; align-items: center; gap: .9rem; background: var(--rtp-panel); border: 1px solid var(--rtp-line); border-radius: var(--rtp-radius); padding: .7rem 1rem; color: var(--rtp-ink); }
.rtp-toplist-rank { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--rtp-hot); color: var(--rtp-on-hot); font-weight: 900; flex: none; }
.rtp-toplist-name { font-weight: 800; display: flex; flex-direction: column; flex: 1; }
.rtp-toplist-name small { color: var(--rtp-muted); font-weight: 500; }
.rtp-toplist-val { font-weight: 900; color: var(--rtp-hot); }

/* Strip and grid of game cards */
.rtp-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: .75rem; overflow-x: auto; padding: .25rem .1rem 1rem; scroll-snap-type: x mandatory; }
.rtp-strip-item { scroll-snap-align: start; display: block; transition: transform .15s ease; }
.rtp-strip-item:hover, .rtp-strip-item:focus-visible { transform: translateY(-3px); }
@media (min-width: 1200px) { .rtp-strip { grid-auto-columns: calc((100% - 4 * .75rem) / 5); } }
.rtp-games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 768px) { .rtp-games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .rtp-games-grid { grid-template-columns: repeat(5, 1fr); } }

.rtp-game { background: var(--rtp-panel); border: 1px solid var(--rtp-line); border-radius: var(--rtp-radius); overflow: hidden; height: 100%; color: var(--rtp-ink); }
.rtp-game-art { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: .6rem;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 85% 62%) 0, hsl(calc(var(--h) + 40) 70% 30%) 55%, hsl(calc(var(--h) + 80) 60% 14%) 100%); }
.rtp-game-initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; color: rgba(255,255,255,.22); letter-spacing: -.04em; }
.rtp-game-name { position: relative; font-weight: 800; font-size: .9rem; line-height: 1.2; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rtp-rank { position: absolute; top: .5rem; left: .5rem; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .15rem .5rem; }
.rtp-bar { position: relative; height: 26px; background: rgba(255,255,255,.08); }
.rtp-fill { position: absolute; inset: 0 auto 0 0; }
.rtp-fill.is-high { background: linear-gradient(90deg, var(--rtp-hot2), var(--rtp-hot)); }
.rtp-fill.is-mid { background: linear-gradient(90deg, #c98a12, var(--rtp-mid)); }
.rtp-text { position: relative; display: block; text-align: center; line-height: 26px; font-weight: 800; font-size: .85rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.rtp-game-provider { font-size: .75rem; color: var(--rtp-muted); padding: .4rem .6rem; text-align: center; }
.rtp-l-board .rtp-game-art { aspect-ratio: 16 / 9; }

/* Table (board layout) */
.rtp-table-wrap { overflow-x: auto; border: 1px solid var(--rtp-line); border-radius: var(--rtp-radius); }
.rtp-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.rtp-table th, .rtp-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--rtp-line); text-align: left; }
.rtp-table thead th { background: var(--rtp-panel); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rtp-muted); }
.rtp-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.03); }
.rtp-pill { display: inline-block; background: var(--rtp-hot); color: var(--rtp-on-hot); font-weight: 900; border-radius: 999px; padding: .15rem .65rem; font-size: .85rem; }

/* Buttons */
.rtp-auth-row { padding: 1rem 0; }
.rtp-btn { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; border-radius: calc(var(--rtp-radius) - 4px); padding: .7rem 1.6rem; min-width: 160px; justify-content: center; transition: filter .15s ease; text-decoration: none; }
.rtp-btn:hover { filter: brightness(1.1); }
.rtp-btn-primary { background: linear-gradient(90deg, var(--rtp-hot2), var(--rtp-hot)); color: var(--rtp-on-hot) !important; }
.rtp-btn-ghost { background: transparent; border: 2px solid var(--rtp-line); color: var(--rtp-ink) !important; }

/* Providers: grid, list, chips */
.rtp-providers { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 768px) { .rtp-providers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .rtp-providers { grid-template-columns: repeat(4, 1fr); } }
.rtp-provider { display: flex; flex-direction: column; border-radius: var(--rtp-radius); overflow: hidden; border: 1px solid var(--rtp-line); transition: transform .15s ease; }
.rtp-provider:hover, .rtp-provider:focus-visible { transform: translateY(-3px); }
.rtp-provider-banner { aspect-ratio: 16 / 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .75rem; text-align: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.rtp-provider-name { font-weight: 900; font-size: clamp(1rem, 2.6vw, 1.4rem); text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.rtp-provider-count { font-size: .75rem; font-weight: 700; background: rgba(0,0,0,.3); border-radius: 999px; padding: .1rem .6rem; }
.rtp-provider-action { background: var(--rtp-hot); color: var(--rtp-on-hot); font-weight: 800; font-size: .8rem; text-align: center; padding: .55rem .5rem; }
.rtp-plist { display: grid; gap: .5rem; }
@media (min-width: 992px) { .rtp-plist { grid-template-columns: 1fr 1fr; } }
.rtp-plist-row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; background: var(--rtp-panel); border: 1px solid var(--rtp-line); border-radius: var(--rtp-radius); color: var(--rtp-ink) !important; }
.rtp-plist-dot { width: 2.4rem; height: 2.4rem; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }
.rtp-plist-name { font-weight: 900; display: flex; flex-direction: column; flex: 1; }
.rtp-plist-name small, .rtp-plist-best { color: var(--rtp-muted); font-weight: 500; font-size: .8rem; }
.rtp-plist-best strong { color: var(--rtp-hot); }
@media (max-width: 575.98px) { .rtp-plist-best { display: none; } }
.rtp-chip { border: 1px solid var(--rtp-line); border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .85rem; color: var(--rtp-ink) !important; background: rgba(255,255,255,.04); }
.rtp-chip:hover { background: var(--rtp-hot); color: var(--rtp-on-hot) !important; }

/* Footer text, FAQ, notes */
.rtp-text-box { background: rgba(255,255,255,.04); border: 1px solid var(--rtp-line); border-radius: var(--rtp-radius); padding: clamp(1rem, 3vw, 2rem); }
.rtp-text-box p { color: var(--rtp-muted); line-height: 1.75; }
.rtp-text-box .rtp-h2 { font-size: 1.15rem; margin-top: 1.2rem; }
.rtp-text-box .rtp-h2:first-child { margin-top: 0; }
.rtp-faq { display: grid; gap: .5rem; }
.rtp-faq-item { background: var(--rtp-panel); border: 1px solid var(--rtp-line); border-radius: var(--rtp-radius); padding: .8rem 1rem; }
.rtp-faq-item summary { font-weight: 800; cursor: pointer; }
.rtp-faq-item p { color: var(--rtp-muted); margin-top: .5rem; }
.rtp-note { background: rgba(255,255,255,.05); border: 1px solid var(--rtp-line); border-radius: var(--rtp-radius); padding: 1rem 1.2rem; font-size: .875rem; color: var(--rtp-muted); margin-top: 1.5rem; }
.rtp-note strong { color: var(--rtp-ink); }

/* Footer + mobile dock */
.rtp-footer { background: #000; border-top: 1px solid var(--rtp-line); padding: 2.5rem 0 1.2rem; color: var(--rtp-muted); font-size: .9rem; }
.rtp-footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .rtp-footer-grid { grid-template-columns: 2fr 1.4fr 1fr; } }
.rtp-footer-title { color: var(--rtp-ink); font-weight: 900; margin-bottom: .6rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.rtp-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; }
.rtp-footer-links a { color: var(--rtp-muted); text-decoration: none; }
.rtp-footer-links a:hover { color: var(--rtp-hot); }
.rtp-age { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--rtp-hot); color: var(--rtp-hot); font-weight: 900; font-size: .8rem; }
.rtp-footer-bottom { border-top: 1px solid var(--rtp-line); margin-top: 1.8rem; padding-top: 1rem; font-size: .8rem; text-align: center; }
.rtp-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(0,0,0,.85); backdrop-filter: blur(8px); border-top: 1px solid var(--rtp-line); }
.rtp-dock a { text-align: center; font-weight: 900; text-transform: uppercase; padding: .65rem; border-radius: 10px; text-decoration: none; }
.rtp-dock-main { background: var(--rtp-hot); color: var(--rtp-on-hot) !important; }
.rtp-dock-ghost { border: 1px solid var(--rtp-line); color: var(--rtp-ink) !important; }
@media (min-width: 992px) { .rtp-dock { display: none; } }

@media (prefers-reduced-motion: reduce) { .rtp-strip-item, .rtp-provider { transition: none; } }
