/* RTP promo layout — mobile-first */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #f0883e;
  --accent-dim: #c45c1a;
  --cta-login: #238636;
  --cta-daftar: #1f6feb;
  --danger: #f85149;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 5.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}

.logo img {
  display: block;
  width: auto;
  height: 4.5rem;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.provider-tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.provider-tabs__scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.provider-tabs__scroll::-webkit-scrollbar {
  display: none;
}

.provider-tabs__scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.provider-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
}

.provider-tabs__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.provider-tabs__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.provider-tabs__btn.is-active {
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--accent) 100%);
  border-color: var(--accent);
  color: #fff;
}

.provider-tabs__btn.is-active:hover {
  color: #fff;
  filter: brightness(1.05);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
  text-align: center;
}

.hero h1,
.hero h2 {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero--info {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
}

.jackpot-banner {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
}

.jackpot-banner__gif {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto;
}

.carousel-wrap {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
}

.carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.carousel__track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.carousel__slide:nth-child(1) {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d1f3d 100%);
}

.carousel__slide:nth-child(2) {
  background: linear-gradient(135deg, #1f2d1a 0%, #1a2d3d 100%);
}

.carousel__slide:nth-child(3) {
  background: linear-gradient(135deg, #2d1a1a 0%, #1e2d2d 100%);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.75);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel__btn:hover {
  background: rgba(240, 136, 62, 0.35);
}

.carousel__btn--prev {
  left: 0.5rem;
}

.carousel__btn--next {
  right: 0.5rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1.25rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn--login {
  background: var(--cta-login);
}

.btn--daftar {
  background: var(--cta-daftar);
}

.update-rtp {
  text-align: center;
  padding: 0.5rem 1.25rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.update-rtp strong {
  color: var(--accent);
}

.provider-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  letter-spacing: 0.04em;
}

.provider-title__logo {
  display: block;
  width: auto;
  max-width: min(240px, 72vw);
  max-height: 56px;
  margin: 0 auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.provider-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.games-search {
  max-width: 1100px;
  margin: 0 auto 0.9rem;
  padding: 0 1.25rem;
}

.games-search__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.games-search__control {
  position: relative;
}

.games-search__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121821;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-size: 0.84rem;
  outline: none;
}

.games-search__input::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

.games-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(240, 136, 62, 0.2);
}

.games-search__clear {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0e141c;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.games-search__clear:hover {
  color: var(--text);
  border-color: var(--accent);
}

.games-search__empty {
  max-width: 1100px;
  margin: -0.35rem auto 1.35rem;
  padding: 0 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.rtp-card.is-filter-hidden {
  display: none !important;
}

.cards-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.rtp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rtp-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  flex-shrink: 0;
  padding: 0.35rem;
  object-fit: contain;
  object-position: center;
  background: #0f141b;
  border-bottom: 1px solid var(--border);
}

.rtp-card__body {
  padding: 0.65rem 0.75rem 0.85rem;
}

.rtp-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.rtp-card__like {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.rtp-card__pola-label {
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
}

.rtp-card__pola {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0.15rem 0 0.35rem;
  min-height: 2.2em;
}

.rtp-card__rule {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 0.35rem 0;
}

.rtp-card__rtp {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: #3fb950;
  font-variant-numeric: tabular-nums;
}

.rtp-value {
  line-height: 1;
}

.rtp-card__progress {
  position: relative;
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(139, 148, 158, 0.25);
  border: 1px solid rgba(139, 148, 158, 0.35);
}

.rtp-card__progress-fill {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ea043 0%, #3fb950 55%, #56d364 100%);
  transition: width 0.85s ease;
}

.rtp-card__progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 85%
  );
  transform: translateX(-110%);
  animation: rtpProgressShimmer 1.6s linear infinite;
}

@keyframes rtpProgressShimmer {
  to {
    transform: translateX(110%);
  }
}

.rtp-card__play {
  display: block;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.bottom-daftar-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
}

.bottom-daftar-banner__link {
  display: block;
  margin: 0 auto;
  width: fit-content;
  line-height: 0;
}

.bottom-daftar-banner__gif {
  display: block;
  width: min(500px, 100%);
  height: auto;
}

.site-footer {
  position: relative;
  background:
    radial-gradient(circle at top center, rgba(240, 136, 62, 0.14), transparent 55%),
    linear-gradient(180deg, #121821 0%, #0e141c 100%);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.25rem 1.8rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(720px, 92%);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.85;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 0.4rem 0;
}

.site-footer__brand {
  margin: 0 auto;
  width: fit-content;
  padding: 0.18rem 0.7rem;
  border: 1px solid rgba(240, 136, 62, 0.38);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(240, 136, 62, 0.08);
  text-transform: uppercase;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-top: 0.8rem;
}

.site-footer__nav a {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.72rem;
  border: 1px solid rgba(139, 148, 158, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.site-footer__nav a:hover {
  color: var(--accent);
  border-color: rgba(240, 136, 62, 0.55);
  background: rgba(240, 136, 62, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-footer__note {
  margin: 0.9rem auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer__copy {
  margin: 0.7rem 0 0;
  font-size: 0.74rem;
  color: #76808b;
}

.sticky-footer-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.45rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(22, 27, 34, 0.92) 0%, rgba(14, 20, 28, 0.98) 100%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.sticky-footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.12rem;
  min-height: 2.4rem;
  border-radius: 8px;
  color: #081018;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, #f4f7ff 0%, #dfe7ff 100%);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.sticky-footer-nav a:hover {
  color: #050b11;
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  text-decoration: none;
  transform: translateY(-1px);
}

.sticky-footer-nav a:nth-child(1) {
  background: linear-gradient(180deg, #f9e7ba 0%, #f2c96f 100%);
}

.sticky-footer-nav a:nth-child(2) {
  background: linear-gradient(180deg, #c6f9d9 0%, #76de9f 100%);
}

.sticky-footer-nav a:nth-child(3) {
  background: linear-gradient(180deg, #cde6ff 0%, #84bfff 100%);
}

.sticky-footer-nav a:nth-child(4) {
  background: linear-gradient(180deg, #ffd2da 0%, #ff8ea2 100%);
}

.sticky-footer-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.sticky-footer-nav__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: calc(4.2rem + env(safe-area-inset-bottom));
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  z-index: 35;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  filter: brightness(1.08);
}

.floating-win-btn {
  position: fixed;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.6rem;
  min-height: 3.2rem;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffb347 0%, #ff5a00 50%, #ff2f5b 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 3px rgba(255, 138, 0, 0.25),
    0 12px 26px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  animation: floatingWinPulse 1.6s ease-in-out infinite;
}

.floating-win-btn:hover {
  color: #fff;
  filter: brightness(1.12) saturate(1.12);
  transform: translateY(-50%) scale(1.03);
  text-decoration: none;
}

@keyframes floatingWinPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(255, 138, 0, 0.25),
      0 12px 26px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(255, 138, 0, 0.18),
      0 0 22px rgba(255, 90, 0, 0.45),
      0 14px 30px rgba(0, 0, 0, 0.5);
  }
}

/* Hub / stub pages */
.page-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem;
}

.page-narrow h1 {
  font-size: 1.5rem;
  margin-top: 0;
}

.provider-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.provider-links li {
  margin-bottom: 0.5rem;
}

.provider-links a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}

.provider-links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.stub-note {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  .carousel__slide {
    min-height: 200px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .floating-win-btn {
    left: 0.5rem;
    top: auto;
    bottom: calc(4.3rem + env(safe-area-inset-bottom));
    transform: none;
    min-width: 8.1rem;
    min-height: 2.85rem;
    padding: 0.68rem 0.72rem;
    border-radius: 12px;
    font-size: 0.74rem;
    line-height: 1.15;
    letter-spacing: 0.04em;
  }

  .floating-win-btn:hover {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-win-btn {
    animation: none;
  }

  .floating-win-btn:hover {
    transform: none;
  }
}
