/* RTP APIDEVEL — live dashboard */
:root {
  --rtp-bg: #060b14;
  --rtp-surface: #0f1729;
  --rtp-surface-2: #152238;
  --rtp-border: rgba(255, 255, 255, 0.07);
  --rtp-text: #eef2f8;
  --rtp-muted: #8fa3bf;
  --rtp-accent: #f0b429;
  --rtp-accent-2: #ffd666;
  --rtp-ok: #34d399;
  --rtp-warm: #fb923c;
  --rtp-low: #ef4444;
  --rtp-hot: #f87171;
  --rtp-live: #22d3ee;
  --rtp-radius: 14px;
  --rtp-max: 960px;
  --rtp-font: "Inter", system-ui, -apple-system, sans-serif;
  --rtp-gap: 16px;
  --rtp-bp-md: 540px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.rtp-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rtp-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--rtp-text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(240, 180, 41, 0.07), transparent),
    var(--rtp-bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Inline icons */
.rtp-ico {
  display: block;
  flex-shrink: 0;
  color: currentColor;
}
.rtp-ico--slot { width: 60%; height: 60%; color: var(--rtp-accent); opacity: 0.75; }
.rtp-ico--search { color: var(--rtp-muted); opacity: 0.85; }
.rtp-ico--brand { color: var(--rtp-accent); }
.rtp-section__ico { display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--rtp-warm); }

.rtp-shell {
  max-width: var(--rtp-max);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.rtp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--rtp-gap);
  background: rgba(6, 11, 20, 0.94);
  border-bottom: 1px solid var(--rtp-border);
  backdrop-filter: blur(12px);
}

.rtp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  min-width: 0;
}

.rtp-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a5f, #0f2744);
  border: 1px solid rgba(240, 180, 41, 0.35);
}

.rtp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rtp-live);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.rtp-live-pill .rtp-ico--live {
  animation: rtp-pulse 1.8s ease-in-out infinite;
}

@keyframes rtp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.rtp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rtp-muted);
  border: 1px solid var(--rtp-border);
  background: var(--rtp-surface);
  white-space: nowrap;
}

.rtp-main { flex: 1; padding-bottom: 32px; }

/* Hero */
.rtp-hero {
  margin-bottom: var(--rtp-gap);
  padding: 20px;
  border-radius: var(--rtp-radius);
  background: linear-gradient(145deg, var(--rtp-surface) 0%, var(--rtp-surface-2) 100%);
  border: 1px solid var(--rtp-border);
  position: relative;
  overflow: hidden;
}

.rtp-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.12), transparent 70%);
  pointer-events: none;
}

.rtp-hero__inner { position: relative; }
.rtp-hero h1 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.rtp-hero p { margin: 0; font-size: 0.875rem; color: var(--rtp-muted); max-width: 36em; }

/* Toolbar */
.rtp-toolbar { margin-bottom: var(--rtp-gap); }

.rtp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--rtp-surface);
  border: 1px solid var(--rtp-border);
  transition: border-color 0.15s;
}

.rtp-search:focus-within { border-color: rgba(240, 180, 41, 0.35); }

.rtp-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--rtp-text);
  font: inherit;
  outline: none;
}

.rtp-search__input::placeholder { color: var(--rtp-muted); opacity: 0.7; }

.rtp-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rtp-filter__chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rtp-muted);
  background: var(--rtp-surface);
  border: 1px solid var(--rtp-border);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rtp-filter__chip.is-active {
  color: #0b1220;
  background: linear-gradient(135deg, var(--rtp-accent), var(--rtp-accent-2));
  border-color: transparent;
  font-weight: 600;
}

.rtp-status { margin: 0 0 12px; font-size: 0.875rem; color: var(--rtp-muted); }
.rtp-status--err, .rtp-error { color: var(--rtp-hot); }

.rtp-empty {
  margin: 0 0 var(--rtp-gap);
  padding: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--rtp-muted);
  border-radius: 12px;
  background: var(--rtp-surface);
  border: 1px dashed var(--rtp-border);
}

/* Grids */
.rtp-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

@media (min-width: 540px) {
  .rtp-grid--providers { grid-template-columns: repeat(2, 1fr); }
}

/* Provider card */
.rtp-card--provider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--rtp-radius);
  background: var(--rtp-surface);
  border: 1px solid var(--rtp-border);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.rtp-card--provider:hover {
  border-color: rgba(240, 180, 41, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rtp-card__icon-wrap {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  position: relative;
}

.rtp-card__icon {
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  background: var(--rtp-surface-2);
}

.rtp-card__icon[hidden] + .rtp-card__icon--ph,
.rtp-card__icon--ph { display: flex; }

.rtp-card__icon:not([hidden]) + .rtp-card__icon--ph { display: none; }

.rtp-card__icon--ph {
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3050, #0f1f35);
}

.rtp-card__body { flex: 1; min-width: 0; }
.rtp-card__name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rtp-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--rtp-muted);
}

.rtp-card__dot { opacity: 0.5; }

.rtp-card__rtp { flex: 0 0 auto; text-align: right; padding-left: 4px; }
.rtp-card__rtp-val {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rtp-ok);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.rtp-card__rtp-val.is-high { color: var(--rtp-ok); }
.rtp-card__rtp-val.is-mid { color: var(--rtp-warm); }
.rtp-card__rtp-val.is-low { color: var(--rtp-low); }
.rtp-card__rtp-val.is-warm { color: var(--rtp-warm); }
.rtp-card__rtp-val.is-cool { color: var(--rtp-low); }
.rtp-card__rtp-lbl {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rtp-muted);
  margin-top: 2px;
}

/* Sections */
.rtp-section {
  margin-bottom: var(--rtp-gap);
  padding: var(--rtp-gap);
  border-radius: var(--rtp-radius);
  background: var(--rtp-surface);
  border: 1px solid var(--rtp-border);
}

.rtp-section--highlight {
  background: linear-gradient(160deg, var(--rtp-surface) 0%, rgba(21, 34, 56, 0.95) 100%);
}

.rtp-section--rail { padding-bottom: 14px; }

.rtp-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.rtp-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rtp-section__hint { font-size: 0.75rem; color: var(--rtp-muted); }

/* Top gacor rail */
.rtp-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.rtp-rail__item {
  flex: 0 0 112px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--rtp-surface-2);
  border: 1px solid var(--rtp-border);
  text-align: center;
  transition: border-color 0.15s;
}

.rtp-rail__item:hover { border-color: rgba(52, 211, 153, 0.45); }

.rtp-rail__thumb-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.rtp-rail__thumb {
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: var(--rtp-surface);
}

.rtp-rail__thumb[hidden] + .rtp-rail__thumb--ph,
.rtp-rail__thumb--ph { display: flex; }
.rtp-rail__thumb:not([hidden]) + .rtp-rail__thumb--ph { display: none; }

.rtp-rail__thumb--ph {
  align-items: center;
  justify-content: center;
}

.rtp-rail__name {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rtp-rail__rtp { font-size: 0.8125rem; font-weight: 700; color: var(--rtp-ok); font-variant-numeric: tabular-nums; }
.rtp-rail__prov { font-size: 0.625rem; color: var(--rtp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Detail head */
.rtp-detail-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: var(--rtp-gap);
}

.rtp-detail-icon {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  background: var(--rtp-surface-2);
  border: 1px solid var(--rtp-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.rtp-detail-icon[hidden] { display: none; }
.rtp-detail-head__body { flex: 1; min-width: 0; }
.rtp-detail-title { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.rtp-detail-sub { margin: 6px 0 0; font-size: 0.875rem; color: var(--rtp-muted); }

.rtp-detail-cat {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rtp-accent);
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.2);
}

.rtp-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--rtp-live);
}

/* Stats */
.rtp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: var(--rtp-gap);
}

@media (min-width: 540px) {
  .rtp-stats--detail { grid-template-columns: repeat(4, 1fr); }
}

.rtp-stat {
  padding: 14px 10px;
  border-radius: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--rtp-border);
}

.rtp-stat__val {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rtp-accent);
  font-variant-numeric: tabular-nums;
}

.rtp-stat__val.is-rtp { color: var(--rtp-ok); }
.rtp-stat__val.is-high { color: var(--rtp-ok); }
.rtp-stat__val.is-hot { color: var(--rtp-ok); }
.rtp-stat__val--sm { font-size: 0.8125rem; }

.rtp-stat__lbl {
  display: block;
  margin-top: 4px;
  font-size: 0.625rem;
  color: var(--rtp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Buttons */
.rtp-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.rtp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}

.rtp-btn:active { transform: scale(0.98); }

.rtp-btn--primary {
  flex: 1;
  min-width: 140px;
  color: #0b1220;
  background: linear-gradient(135deg, var(--rtp-accent), var(--rtp-accent-2));
  box-shadow: 0 4px 20px rgba(240, 180, 41, 0.2);
}

.rtp-btn--ghost {
  color: var(--rtp-text);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--rtp-border);
}

.rtp-btn[hidden], .rtp-msg[hidden], .rtp-empty[hidden] { display: none !important; }

.rtp-msg {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--rtp-muted);
  background: rgba(0, 0, 0, 0.15);
  border: 1px dashed var(--rtp-border);
}

/* Game cards — grid 3 kolom, padding maks 5px */
.rtp-section--games {
  padding: 5px;
}

.rtp-section__head--compact {
  margin-bottom: 5px;
  padding: 0 0 5px;
}

.rtp-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.rtp-game-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  border-radius: 10px;
  background: var(--rtp-surface-2);
  border: 1px solid var(--rtp-border);
  transition: border-color 0.15s;
  min-width: 0;
}

.rtp-game-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.rtp-games-grid .rtp-game-card {
  cursor: pointer;
}

.rtp-games-grid .rtp-game-card:focus-visible {
  outline: 2px solid var(--rtp-accent);
  outline-offset: 2px;
}

.rtp-game-card__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--rtp-surface);
}

.rtp-game-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--rtp-surface);
}

.rtp-game-card__thumb-wrap .rtp-game-card__thumb--ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rtp-game-card__thumb:not([hidden]) + .rtp-game-card__thumb--ph { display: none; }

/* Shimmer placeholders */
.rtp-card__icon--ph,
.rtp-rail__thumb--ph,
.rtp-game-card__thumb--ph,
.rtp-related__icon--ph {
  background: linear-gradient(90deg, var(--rtp-surface-2) 0%, #1e3354 50%, var(--rtp-surface-2) 100%);
  background-size: 200% 100%;
  animation: rtp-shimmer 1.4s ease-in-out infinite;
}

@keyframes rtp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.rtp-game-card__body { flex: 1; min-width: 0; padding: 0; }
.rtp-game-card__name {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rtp-game-card__rtp {
  margin: 4px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.rtp-game-card .rtp-gauge { margin-top: 4px; }

.rtp-games-grid .rtp-game-card__pola,
.rtp-games-grid .rtp-game-card .rtp-hours { display: none !important; }
.rtp-games-more { margin-top: 5px; }

/* Game modal */
.rtp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rtp-modal[hidden] { display: none !important; }

.rtp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.82);
  backdrop-filter: blur(6px);
}

.rtp-modal__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: min(92vh, 640px);
  overflow-y: auto;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--rtp-surface) 0%, var(--rtp-surface-2) 100%);
  border: 1px solid var(--rtp-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  padding: 5px;
}

.rtp-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  color: var(--rtp-muted);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.rtp-modal__close:hover { color: var(--rtp-text); background: rgba(0, 0, 0, 0.5); }

.rtp-game-card--modal {
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  border: none;
  background: transparent;
  cursor: default;
}

.rtp-game-card__thumb-wrap--modal {
  max-width: 200px;
  margin: 0 auto;
  width: 56%;
}

.rtp-game-card__name--modal {
  font-size: 1.125rem;
  margin: 8px 0 6px;
  text-align: center;
  -webkit-line-clamp: unset;
  display: block;
}

.rtp-gauge--modal { height: 10px; margin-top: 8px; border-radius: 5px; }
.rtp-gauge--modal .rtp-gauge__fill { border-radius: 5px; }

.rtp-game-card__rtp--modal {
  margin-top: 10px;
  text-align: center;
  font-size: 1.35rem;
}

.rtp-game-card__rtp--modal .rtp-badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  margin-left: 6px;
}

.rtp-modal__meta {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--rtp-border);
}

.rtp-modal__meta dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rtp-muted);
}

.rtp-modal__meta dd {
  margin: 2px 0 10px;
  font-size: 0.875rem;
  color: var(--rtp-text);
}

.rtp-modal__meta dd:last-child { margin-bottom: 0; }

.rtp-hours--modal { margin-top: 12px; padding: 0 5px 5px; }

.rtp-hours__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rtp-text);
}

.rtp-hours__chart--modal { height: 72px; margin-top: 0; }

.rtp-hours__now {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--rtp-live);
  text-align: center;
}

body.rtp-modal-open { overflow: hidden; }

.rtp-flash { animation: rtp-flash 0.6s ease; }
@keyframes rtp-flash {
  0% { color: var(--rtp-live); }
  100% { color: inherit; }
}

/* Gauge + efek listrik */
.rtp-gauge {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: visible;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.rtp-gauge__fill {
  position: relative;
  height: 100%;
  min-width: 4px;
  border-radius: 3px;
  transition: width 0.4s ease;
  overflow: hidden;
}

.rtp-gauge__fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.15) 65%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: rtp-electric-flow 2.2s linear infinite;
  pointer-events: none;
}

.rtp-gauge__fill::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -1px;
  width: 3px;
  height: calc(100% + 6px);
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #fff 45%, transparent);
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 8px currentColor);
  animation: rtp-electric-spark 1.1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rtp-electric-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes rtp-electric-spark {
  0%, 100% { opacity: 0.35; transform: scaleY(0.75); }
  45% { opacity: 1; transform: scaleY(1.15); }
  55% { opacity: 0.6; transform: scaleY(0.9); }
}

.rtp-gauge__fill--tinggi,
.rtp-gauge__fill--gacor {
  color: #6ee7b7;
  background: linear-gradient(90deg, #059669, #34d399 55%, #6ee7b7);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.12);
}

.rtp-gauge__fill--sedang,
.rtp-gauge__fill--hangat {
  color: #fdba74;
  background: linear-gradient(90deg, #c2410c, #fb923c 55%, #fdba74);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.1);
}

.rtp-gauge__fill--rendah,
.rtp-gauge__fill--dingin {
  color: #fca5a5;
  background: linear-gradient(90deg, #b91c1c, #ef4444 55%, #f87171);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.08);
}

.rtp-gauge--modal { overflow: hidden; }

/* Badges */
.rtp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.rtp-badge--tinggi,
.rtp-badge--gacor { color: #052e1a; background: var(--rtp-ok); }
.rtp-badge--sedang,
.rtp-badge--hangat { color: #431407; background: var(--rtp-warm); }
.rtp-badge--rendah,
.rtp-badge--dingin { color: #450a0a; background: var(--rtp-low); }

/* Jam gacor */
.rtp-hours { margin-top: 10px; }

.rtp-hours summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--rtp-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.rtp-hours summary::-webkit-details-marker { display: none; }

.rtp-hours__chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 48px;
  margin-top: 10px;
  padding: 4px 0;
}

.rtp-hours__bar {
  flex: 1;
  min-width: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--rtp-ok), rgba(52, 211, 153, 0.3));
  align-self: flex-end;
}

.rtp-hours__bar.is-now {
  background: linear-gradient(180deg, var(--rtp-accent), rgba(240, 180, 41, 0.4));
  box-shadow: 0 0 6px rgba(240, 180, 41, 0.5);
}

.rtp-games-empty { margin: 0; font-size: 0.875rem; color: var(--rtp-muted); text-align: center; padding: 16px; }
.rtp-games-more { width: 100%; margin-top: 12px; }

/* Prose & related */
.rtp-prose { font-size: 0.875rem; line-height: 1.65; color: var(--rtp-muted); }
.rtp-prose p { margin: 0 0 0.75em; }

.rtp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rtp-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--rtp-muted);
  background: var(--rtp-surface-2);
  border: 1px solid var(--rtp-border);
}

.rtp-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.rtp-related__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 12px;
  text-align: center;
  background: var(--rtp-surface-2);
  border: 1px solid var(--rtp-border);
  transition: border-color 0.15s;
}

.rtp-related__item:hover { border-color: rgba(240, 180, 41, 0.3); }

.rtp-related__icon-wrap { width: 48px; height: 48px; }

.rtp-related__icon {
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.rtp-related__icon[hidden] + .rtp-related__icon--ph,
.rtp-related__icon--ph { display: flex; }
.rtp-related__icon:not([hidden]) + .rtp-related__icon--ph { display: none; }

.rtp-related__icon--ph {
  align-items: center;
  justify-content: center;
}

.rtp-related__name { font-size: 0.8125rem; font-weight: 600; line-height: 1.25; }
.rtp-related__rtp { font-size: 0.75rem; color: var(--rtp-ok); font-weight: 600; }

/* Toast */
.rtp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rtp-text);
  background: var(--rtp-surface-2);
  border: 1px solid var(--rtp-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 100;
  pointer-events: none;
}

.rtp-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
.rtp-footer {
  margin-top: auto;
  padding: 24px var(--rtp-gap) 32px;
  border-top: 1px solid var(--rtp-border);
}

.rtp-footer__brand { margin: 0 0 12px; font-size: 0.875rem; font-weight: 600; }
.rtp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.rtp-footer__links a { font-size: 0.8125rem; color: var(--rtp-muted); }
.rtp-footer__links a:hover { color: var(--rtp-text); }
.rtp-footer__note { margin: 0; font-size: 0.75rem; color: var(--rtp-muted); opacity: 0.8; }

/* Info pages */
.rtp-info-title { margin: 0 0 16px; font-size: 1.35rem; font-weight: 700; }
.rtp-info-body { font-size: 0.9375rem; line-height: 1.65; color: var(--rtp-muted); }
.rtp-info-body h2 { color: var(--rtp-text); font-size: 1.1rem; margin: 1.5em 0 0.5em; }
.rtp-info-body ul { margin: 0 0 1em; padding-left: 1.25em; }
.rtp-info-body a { color: var(--rtp-accent); }

@media (max-width: 359px) {
  .rtp-card--provider { flex-wrap: wrap; }
  .rtp-card__rtp { flex: 1 0 100%; text-align: left; padding-top: 8px; border-top: 1px solid var(--rtp-border); margin-top: 4px; }
}
