:root {
  --body-bg: #151128;
  --surface: #0a0813;
  --surface-border: #322547;
  --slide-bg: #1d0f2a;
  --filter-bg: #470a30;
  --filter-active: #894bc8;
  --accent: linear-gradient(to right, #ba166e 0%, #661181 100%);
  --accent-hover: linear-gradient(to right, #d61a7f 0%, #7b159b 100%);
  --text: #edeff6;
  --muted: #9b93b3;
  --low: linear-gradient(to right, #c81313, #d64646);
  --medium: linear-gradient(to right, #fcdc8f, #f2d064);
  --high: linear-gradient(to right, #31a13b, #62c88d);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; max-width: 100%; overflow-x: hidden;
  background: var(--body-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }

/* Header */
.rtp-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
}
.rtp-header-left {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center;
}
.rtp-header-right {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
}
.rtp-brand {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; max-width: calc(100% - 140px);
}
.rtp-logo { height: 38px; width: auto; max-width: 190px; object-fit: contain; }
.rtp-logo-text { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 0.5px; }
.rtp-clock { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.rtp-main { max-width: 1180px; margin: 0 auto; padding: 14px 16px; width: 100%; }
.games-list-container, .provider-slide, .banner-carousel { max-width: 100%; }
.rtp-footer { text-align: center; color: var(--muted); font-size: 11px; padding: 20px 16px 90px; }

/* Banner carousel */
.banner-carousel {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  margin-bottom: 14px;
}
.banner-track {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-areas: "slide";
  aspect-ratio: 1920 / 613;
}
@supports not (aspect-ratio: 1) {
  .banner-track {
    height: 0;
    padding-top: 31.927%;
  }
  .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}
.banner-slide {
  grid-area: slide;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-slide.active { opacity: 1; pointer-events: auto; }
.banner-slide a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  z-index: 5;
}
.banner-arrow:hover { background: rgba(0,0,0,0.7); }
.banner-arrow.prev { left: 10px; }
.banner-arrow.next { right: 10px; }
.banner-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 5; pointer-events: auto;
}
.banner-dots .dot {
  width: 7px; height: 7px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.45); padding: 0; cursor: pointer;
  transition: all .2s ease;
}
.banner-dots .dot.active { background: #fff; width: 18px; border-radius: 4px; }

/* Provider slider */
.provider-slide {
  display: flex; align-items: stretch;
  background: var(--slide-bg);
  border: 2px solid var(--surface-border);
  border-radius: 30px; overflow: hidden;
}
.slide-arrow {
  flex-shrink: 0; width: 42px; border: none; background: transparent;
  color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer;
}
.slide-arrow:hover { background: rgba(255,255,255,0.05); color: #fff; }
.provider-track {
  flex: 1; display: flex; gap: 4px;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
  padding: 6px 4px;
}
.provider-track::-webkit-scrollbar { display: none; }
.provider-item {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  height: 94px; min-width: 125px; max-width: 155px; padding: 10px 14px;
  border-radius: 22px;
  color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap;
  text-decoration: none; opacity: .72;
  transition: all .15s ease;
}
.provider-item img { height: 46px; width: auto; max-width: 115px; object-fit: contain; }
.provider-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 800; line-height: 1.15; letter-spacing: .3px; }
.provider-name.only { font-size: 14px; }
.provider-item:hover { opacity: 1; background: rgba(255,255,255,0.08); color: #fff; }
.provider-item.active { opacity: 1; color: #fff; background: var(--accent); }

/* Games container */
.games-list-container {
  margin-top: 14px;
  background: var(--surface);
  border: 2px solid var(--surface-border);
  border-radius: 30px;
  padding: 12px 14px 18px;
}
.vendor-name {
  padding: 8px 0 6px;
  font-size: 20px; text-align: center; text-transform: uppercase;
  letter-spacing: 8px; font-weight: 700; color: #fff;
}
.filter-section {
  display: flex; align-items: center; gap: 10px;
  padding: 5px; margin-top: 10px;
  border-radius: 30px; background: var(--filter-bg);
}
.category-filter { display: flex; flex-wrap: wrap; flex: 1; padding: 0 4px; }
.category-filter-link {
  border: none; background: transparent; color: #fff;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
  padding: 9px 14px; border-radius: 30px; cursor: pointer;
}
.category-filter-link.active, .category-filter-link:hover { background: var(--filter-active); }
.filter-section input[type="search"] {
  width: 230px; height: 36px; padding: 0 18px;
  border-radius: 30px; border: 2px solid var(--filter-active);
  background: #1a0b22; color: #fff; font-size: 13px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.filter-section input::placeholder { color: var(--muted); }
.rtp-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding: 10px 8px 0; }
.rtp-meta strong { color: #fff; }

/* Game grid: semua kartu persegi, ukuran seragam */
.game-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px; margin-top: 12px;
}
.game-item { min-width: 0; max-width: 100%; }
.wrapper-container {
  position: relative; width: 100%; height: 0; padding-top: 100%;
  border-radius: 22px; overflow: hidden; background: #000;
}
.wrapper-container img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.game-name {
  padding: 6px 4px 0;
  font-size: 12px; font-weight: 600; text-align: center; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Hover: Play Now overlay */
.wrapper-container { cursor: pointer; }
.play-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,0,15,0.78);
  opacity: 0; transition: opacity .2s ease;
  border: none; padding: 0; cursor: pointer; width: 100%; height: 100%;
}
.play-now {
  padding: 10px 22px; border-radius: 22px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .5px;
  transform: translateY(6px); transition: transform .2s ease;
}
.wrapper-container:hover .play-overlay { opacity: 1; }
.wrapper-container:hover .play-now { transform: translateY(0); }
.wrapper-container:hover .rtp-container { opacity: 0; }

/* RTP bar: jelas, kontras tinggi, dan beranimasi kilau mengalir */
@keyframes rtp-shimmer {
  0% { transform: translateX(-150%); }
  55%, 100% { transform: translateX(250%); }
}

.rtp-container {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(8, 8, 14, 0.75) 0%, rgba(4, 4, 8, 0.95) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; line-height: 1; pointer-events: none;
  transition: opacity .2s ease;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.35);
}
.rtp-title { font-size: 10px; font-weight: 800; letter-spacing: .6px; color: rgba(255, 255, 255, 0.85); flex-shrink: 0; }
.rtp-progress {
  flex: 1; min-width: 0;
  height: 11px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  border-radius: 50px; overflow: hidden;
  position: relative;
}
.rtp-progress-bar {
  height: 100%; border-radius: 50px;
  position: relative; overflow: hidden;
  min-width: 6px;
  transition: width .7s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.rtp-progress-bar::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  animation: rtp-shimmer 2.2s ease-in-out infinite;
  border-radius: inherit; pointer-events: none;
}
.game-item:nth-child(2n) .rtp-progress-bar::after { animation-delay: -0.7s; }
.game-item:nth-child(3n) .rtp-progress-bar::after { animation-delay: -1.4s; }

.rtp-progress-bar[data-rtp="low"]    { background: var(--low); box-shadow: 0 0 8px rgba(200, 19, 19, 0.65); }
.rtp-progress-bar[data-rtp="medium"] { background: var(--medium); box-shadow: 0 0 8px rgba(242, 208, 100, 0.65); }
.rtp-progress-bar[data-rtp="high"]   { background: var(--high); box-shadow: 0 0 8px rgba(49, 161, 59, 0.65); }
.rtp-percentage {
  min-width: 48px; text-align: right;
  font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  flex-shrink: 0;
}

.top-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 3px 8px; border-radius: 20px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
}
.fav-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 3px 8px; border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.load-state { display: flex; justify-content: center; align-items: center; min-height: 36px; color: var(--muted); padding: 10px 0 0; }
.loader { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--filter-active); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#sentinel { height: 1px; }

/* Floating contact */
.floating-contact { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 30; }
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform .15s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-wa { background: #25d366; }
.float-tg { background: #229ed9; }

/* ===== Modal Game Information ===== */
body.modal-open { overflow: hidden; }
.game-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.game-modal[hidden] { display: none; }
.game-modal-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); }
.game-modal-dialog {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px);
  overflow-y: auto; background: var(--surface); border: 2px solid var(--surface-border);
  border-radius: 22px; padding: 18px; color: var(--text);
  animation: gm-in .18s ease;
}
@keyframes gm-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.game-modal-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 1;
}
.game-modal-close:hover { background: rgba(255,255,255,0.18); }
[hidden] { display: none !important; }
.gm-head { display: flex; gap: 14px; align-items: flex-start; }
.gm-thumb { position: relative; flex-shrink: 0; width: 120px; height: 120px; border-radius: 16px; overflow: hidden; background: #000; }
.gm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-title { min-width: 0; flex: 1; padding-right: 26px; }
.gm-provider { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.gm-title h3 { margin: 2px 0 6px; font-size: 17px; line-height: 1.25; color: #fff; }
.gm-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.gm-cats span { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.08); color: var(--muted); }
.gm-rtp-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.gm-rtp-row strong { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.gm-rtp .rtp-progress { height: 13px; margin-top: 4px; }
.gm-rtp .rtp-progress-bar { height: 100%; }
.gm-rtp-note { font-size: 10px; color: var(--muted); margin-top: 4px; }
.gm-section { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--surface-border); }
.gm-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: #fff; margin-bottom: 8px; }
.gm-pattern-name { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.gm-hours { display: flex; width: 100%; }
.gm-hour {
  width: 100%;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 12px; background: var(--slide-bg); border: 1px solid var(--surface-border);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.gm-hour.now {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(21, 128, 61, 0.25));
  border-color: rgba(34, 197, 94, 0.5);
}
.gm-hour.upcoming {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--surface-border);
}
.gm-hour-time { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.gm-hour-badge {
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.gm-hour-badge.badge-now {
  background: #16a34a; color: #fff; box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.gm-hour-badge.badge-upcoming {
  background: rgba(255, 255, 255, 0.1); color: var(--muted); border: 1px solid var(--surface-border);
}
.gm-legend { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--surface-border); font-size: 10px; line-height: 1.6; color: var(--muted); text-align: center; }

/* Pola Main: kartu langkah */
.pm-steps { display: flex; flex-direction: column; gap: 8px; }
.pm-step {
  display: flex; align-items: stretch; gap: 12px; padding: 10px 12px;
  background: var(--slide-bg); border: 1px solid var(--surface-border); border-radius: 12px;
  border-left: 3px solid var(--filter-active);
}
.pm-step.pm-manual { border-left-color: #f59e0b; }
.pm-num {
  flex: 0 0 26px; width: 26px; height: 26px; align-self: center; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800;
}
.pm-main { flex: 1; min-width: 0; }
.pm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.pm-mode { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.pm-spins { font-size: 20px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pm-chip {
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.pm-chip.on { background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .45); color: #86efac; }
.pm-chip.off { background: rgba(255, 255, 255, .04); border-color: var(--surface-border); color: var(--muted); }
.pm-chip.dc.on { background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .5); color: #fcd34d; }
.pm-text { font-size: 12px; line-height: 1.5; }
.pm-empty { padding: 14px; text-align: center; font-size: 12px; color: var(--muted); background: var(--slide-bg); border-radius: 12px; }
.gm-play {
  display: flex; align-items: center; justify-content: center; margin-top: 16px;
  height: 44px; border-radius: 22px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 800; letter-spacing: 1px; text-decoration: none;
}
.gm-play:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
  .game-modal { padding: 0; align-items: flex-end; }
  .game-modal-dialog { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; border-bottom: none; padding: 14px 12px 18px; }
  .gm-thumb { width: 88px; height: 88px; border-radius: 12px; }
  .gm-title h3 { font-size: 15px; }
  .gm-rtp-row strong { font-size: 17px; }
  .gm-hours { gap: 6px; }
  .gm-hour { font-size: 11px; padding: 8px 4px; }
}

/* Responsive */
@media (max-width: 1024px) {
  .game-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .rtp-header { height: 52px; padding: 0 12px; }
  .rtp-header-left { left: 12px; }
  .rtp-header-right { right: 12px; }
  .rtp-logo { height: 32px; max-width: 150px; }
  .rtp-brand { max-width: calc(100% - 100px); }
  .rtp-logo-text { font-size: 16px; }
  .rtp-main { padding: 8px; }
  .banner-carousel { border-radius: 14px; margin-bottom: 8px; }
  .banner-track { aspect-ratio: 1920 / 613; padding-top: 0; }
  .banner-arrow { display: none; }
  .banner-dots { bottom: 5px; gap: 4px; }
  .banner-dots .dot { width: 5px; height: 5px; }
  .banner-dots .dot.active { width: 14px; }
  .provider-slide { border-radius: 18px; }
  .slide-arrow { width: 34px; font-size: 24px; }
  .provider-item { height: 82px; min-width: 110px; max-width: 135px; padding: 8px 10px; border-radius: 16px; gap: 5px; }
  .provider-item img { height: 38px; max-width: 96px; }
  .provider-name { font-size: 11px; font-weight: 800; }
  .games-list-container { margin-top: 8px; border-radius: 14px; padding: 8px 8px 12px; }
  .vendor-name { font-size: 15px; letter-spacing: 3px; padding: 6px 0 2px; }
  .filter-section { flex-direction: column; align-items: stretch; gap: 6px; border-radius: 14px; padding: 6px; }
  .category-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0; gap: 2px; }
  .category-filter::-webkit-scrollbar { display: none; }
  .category-filter-link { flex-shrink: 0; padding: 7px 11px; font-size: 10px; }
  .filter-section input[type="search"] { width: 100%; height: 34px; }
  .rtp-meta { padding: 8px 4px 0; font-size: 10px; }
  .game-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
  .wrapper-container { border-radius: 12px; }
  .wrapper-container:hover img { transform: none; }
  .wrapper-container:hover .rtp-container { opacity: 1; }
  .wrapper-container:hover .play-overlay { opacity: 0; }
  .rtp-container { padding: 6px 8px; gap: 4px; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
  .rtp-title { display: block; font-size: 9px; }
  .rtp-progress { height: 9px; }
  .rtp-progress-bar { height: 100%; }
  .rtp-percentage { min-width: 42px; font-size: 11px; }
  .top-badge { top: 5px; left: 5px; padding: 2px 6px; font-size: 9px; }
  .game-name { font-size: 11px; padding: 4px 2px 0; }
  .floating-contact { right: 10px; bottom: 10px; gap: 8px; }
  .float-btn { width: 44px; height: 44px; }
  .float-btn svg { width: 22px; height: 22px; }
  .rtp-footer { padding-bottom: 110px; }
}
@media (max-width: 380px) {
  .game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tombol coba lagi saat gagal memuat game */
.retry-btn {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--accent); background: transparent;
  color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer;
}
.retry-btn:hover { background: var(--accent); color: #fff; }

/* Anti-copy (aktif hanya di domain instance): tanpa seleksi teks/gambar, tidak bisa dicetak */
.shielded { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.shielded input, .shielded textarea { -webkit-user-select: text; user-select: text; }
.shielded img { -webkit-user-drag: none; user-drag: none; pointer-events: auto; }
@media print { .shielded * { display: none !important; } }
html.dt-open body * { visibility: hidden !important; }
html.dt-open body::before {
  content: "Tutup Developer Tools untuk melanjutkan"; visibility: visible !important;
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff; font: 700 16px/1.4 sans-serif; text-align: center; padding: 24px;
}

/* Game FAVORIT: gambar berputar (flip koin), cincin emas berputar, badge berdenyut */
@property --fav-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes fav-ring { to { --fav-angle: 360deg; } }
@keyframes fav-flip { 0%, 62% { transform: rotateY(0deg); } 82%, 100% { transform: rotateY(360deg); } }
@keyframes fav-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes fav-shine { 0%, 70% { opacity: 0; transform: translateX(-120%) skewX(-20deg); } 85% { opacity: .9; } 100% { opacity: 0; transform: translateX(220%) skewX(-20deg); } }

.game-item.is-fav .wrapper-container { overflow: visible; background: transparent; perspective: 700px; }
.game-item.is-fav .wrapper-container::before {
  content: ""; position: absolute; inset: -3px; z-index: 0; border-radius: 25px;
  background: conic-gradient(from var(--fav-angle), #f59e0b, #fff3b0, #f59e0b, #b45309, #f59e0b);
  box-shadow: 0 0 14px rgba(245, 158, 11, .55);
  animation: fav-ring 3.2s linear infinite;
}
.game-item.is-fav .wrapper-container img { z-index: 1; border-radius: 22px; animation: fav-flip 6s ease-in-out infinite; }
.game-item.is-fav .wrapper-container::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: 2; pointer-events: none; border-radius: 22px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: fav-shine 6s ease-in-out infinite;
}
.game-item.is-fav .play-overlay { z-index: 3; border-radius: 22px; }
.game-item.is-fav .rtp-container { z-index: 3; }
.game-item.is-fav .fav-badge { animation: fav-pulse 1.6s ease-in-out infinite; z-index: 4; }
.game-item.is-fav:nth-child(3n+2) .wrapper-container img, .game-item.is-fav:nth-child(3n+2) .wrapper-container::after { animation-delay: -2s; }
.game-item.is-fav:nth-child(3n) .wrapper-container img, .game-item.is-fav:nth-child(3n) .wrapper-container::after { animation-delay: -4s; }
.game-item.is-fav:hover .wrapper-container img { animation-play-state: paused; }
@media (max-width: 640px) { .game-item.is-fav .wrapper-container::before, .game-item.is-fav .wrapper-container img, .game-item.is-fav .play-overlay, .game-item.is-fav .wrapper-container::after { border-radius: 12px; } .game-item.is-fav .wrapper-container::before { border-radius: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .game-item.is-fav .wrapper-container::before, .game-item.is-fav .wrapper-container img,
  .game-item.is-fav .wrapper-container::after, .game-item.is-fav .fav-badge,
  .rtp-progress-bar::after { animation: none !important; }
}

/* Tombol aksi atas (LOGIN & DAFTAR di atas provider list) */
.action-buttons-top {
  display: flex; gap: 10px; margin-top: 14px; margin-bottom: 14px;
}
.btn-action-primary, .btn-action-secondary {
  flex: 1; text-align: center; padding: 13px; border-radius: 14px; font-weight: 800; font-size: 15px; letter-spacing: 1px;
  text-decoration: none; display: block; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform .1s, filter .2s;
}
.btn-action-primary:active, .btn-action-secondary:active { transform: scale(0.97); }
.btn-action-primary { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); }
.btn-action-secondary { background: linear-gradient(135deg, #1e293b, #0f172a); color: #f8fafc; border: 1px solid var(--surface-border); }
.btn-action-primary:hover, .btn-action-secondary:hover { filter: brightness(1.15); color: #fff; }

/* Judul banner di pojok bawah */
.banner-title-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 75%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 768px) {
  .banner-title-tag {
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    padding: 3px 8px;
    max-width: 80%;
  }
}

/* Tombol dashboard kecil di header */
.btn-login-small {
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); color: #fff;
  font-size: 11px; font-weight: 700; text-decoration: none; border: 1px solid rgba(255,255,255,0.15);
}
.btn-login-small:hover { background: rgba(255,255,255,0.2); }

/* Pencarian global: badge nama provider */
.game-provider-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
