:root {
  --bg-page: #07040f;
  --bg-theme: rgba(18, 8, 36, 0.88);
  --text: #f7f2ff;
  --text-dark: #0a0a0a;
  --accent: #b56bff;
  --accent-mid: #8b3dff;
  --accent-deep: #6d28d9;
  --accent-dark: #3b0764;
  --accent-light: #d8b4fe;
  --neon: #c084fc;
  --neon-cyan: #67e8f9;
  --gold: #fde047;
  --cyan: #22d3ee;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Rajdhani", "Segoe UI", sans-serif;
  --font-display: "Orbitron", "Rajdhani", sans-serif;
  --nav-h: 4.4rem;
  --glow: 0 0 18px rgba(168, 85, 247, 0.45);
  --glow-strong: 0 0 28px rgba(168, 85, 247, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse at 15% -10%, rgba(168, 85, 247, 0.42), transparent 42%),
    radial-gradient(ellipse at 90% 8%, rgba(34, 211, 238, 0.12), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(109, 40, 217, 0.28), transparent 45%),
    linear-gradient(165deg, #16082a 0%, #07040f 48%, #1e0b3a 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 1.25rem);
  letter-spacing: 0.01em;
}

body.no-site-link {
  padding-bottom: 1.25rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(1100px, 94%);
  margin: 0 auto;
}

/* —— Top sticky header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(12, 5, 24, 0.94), rgba(12, 5, 24, 0.78));
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(192, 132, 252, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #e9d5ff, var(--accent), var(--accent-dark));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #fff 10%, #e9d5ff 45%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  opacity: 0.85;
  text-transform: uppercase;
}

.logo img {
  width: min(19rem, 70vw);
  display: block;
  margin: 1rem auto;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.45));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.logo-block a:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.7));
}

.provider-btn img {
  width: auto;
  height: 2.2rem;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .provider-btn img {
    height: 1.35rem;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.nav-desktop a:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.18);
}

.nav-desktop a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(59, 7, 100, 0.65));
  box-shadow: inset 0 0 0 1px rgba(216, 180, 254, 0.35), 0 0 16px rgba(168, 85, 247, 0.25);
}

.nav-desktop a.nav-cta {
  background: linear-gradient(135deg, #c084fc, #7c3aed 55%, #4c1d95);
  color: #fff;
  box-shadow: var(--glow);
  margin-left: 0.25rem;
}

.nav-desktop a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-strong);
}

.hamburger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(192, 132, 252, 0.55);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.55), rgba(59, 7, 100, 0.9));
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  box-shadow: var(--glow);
}

.hamburger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.9rem;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
}

.nav-mobile.is-open {
  display: grid;
  gap: 0.35rem;
}

.nav-mobile a {
  display: block;
  padding: 0.8rem 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.18);
}

/* —— Logo hero —— */
.logo-block {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.logo-block .brand-hero {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
  animation: glow 1.2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 2px #fff, 0 0 4px var(--accent), 0 0 8px var(--accent);
  }
  to {
    text-shadow: 0 0 4px #fff, 0 0 10px #c084fc, 0 0 16px #c084fc;
  }
}

.logo-tag {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* —— Slider + marquee —— */
.slider-wrapper {
  position: relative;
  background: linear-gradient(180deg, #120826, #0a0414);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(192, 132, 252, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.18);
}

.slider-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(216, 180, 254, 0.7), transparent 40%, rgba(103, 232, 249, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.running-text {
  background: linear-gradient(90deg, #3b0764, #7c3aed, #c084fc, #22d3ee, #7c3aed, #3b0764);
  background-size: 220% 100%;
  animation: purple-shift 7s linear infinite;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 2.2vw, 0.86rem);
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

@keyframes purple-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.running-text .marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

.hero-slider {
  position: relative;
  aspect-ratio: 16 / 7;
  background: #110820;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  display: block;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease;
}

.hero-slide.is-active img {
  transform: scale(1.08);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(7, 4, 15, 0.75));
  z-index: 1;
  pointer-events: none;
}

.slider-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.slider-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  transition: width 0.25s, background 0.25s, box-shadow 0.25s;
}

.slider-dots button.is-active {
  width: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #c084fc, #67e8f9);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.7);
}

/* —— CTA —— */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1rem 0 0.85rem;
}

.login-btn,
.register-btn {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1.05rem 1.1rem;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: none;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  animation: none;
}

.login-btn {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 45%, #1e1b4b 100%);
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.register-btn {
  background: linear-gradient(135deg, #f0abfc 0%, #a855f7 35%, #7c3aed 70%, #4c1d95 100%);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.login-btn .btn-label,
.register-btn .btn-label {
  position: relative;
  z-index: 1;
}

.btn-glow {
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}

@keyframes shine {
  0%, 55% { left: -60%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

.login-btn:hover,
.register-btn:hover {
  transform: translateY(-2px) scale(1.015);
  color: #fff;
  filter: brightness(1.08);
}

.register-btn:hover {
  box-shadow: 0 12px 34px rgba(168, 85, 247, 0.75), 0 0 24px rgba(192, 132, 252, 0.4);
}

/* —— Provider strip —— */
.providers {
  margin: 0.35rem 0 1rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: rgba(18, 8, 36, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: inset 0 0 24px rgba(124, 58, 237, 0.12);
}

.provider-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.provider-nav-btn {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 3.5rem;
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  background: linear-gradient(160deg, #8b5cf6, #4c1d95);
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.provider-nav-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--glow);
}

.provider-pages {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 3.5rem;
}

.provider-page {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.provider-page.is-active {
  display: grid;
}

.provider-btn {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  padding: 0.4rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.85), rgba(30, 10, 60, 0.95));
  border: 1px solid rgba(192, 132, 252, 0.25);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.provider-btn:hover,
.provider-btn.is-active {
  border-color: rgba(103, 232, 249, 0.7);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.95), rgba(49, 16, 97, 0.98));
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.provider-btn span {
  font-size: clamp(0.55rem, 1.6vw, 0.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
}

/* —— RTP section —— */
.bg-theme {
  background:
    linear-gradient(180deg, rgba(36, 14, 70, 0.55), rgba(14, 6, 28, 0.9)),
    var(--bg-theme);
  padding: 1rem 0.75rem 1.35rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rtp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.rtp-meta h6 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.rtp-meta .timer {
  color: var(--gold);
}

.title-game {
  margin: 0.55rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.rating-line {
  margin: 0 0 0.95rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.stars {
  color: #ffc107;
  letter-spacing: 0.05em;
}

.stars .dim {
  color: rgba(255, 255, 255, 0.45);
}

.rtp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.rtp-load-more {
  text-align: center;
  padding: 1rem 0.5rem 0.25rem;
  min-height: 3rem;
}

.rtp-sentinel {
  height: 1px;
  width: 100%;
}

.rtp-load-status {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
}

.rtp-load-more.is-loading .rtp-load-status::after {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.45rem;
  border: 2px solid rgba(168, 85, 247, 0.35);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: -0.15rem;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.rtp-load-more.is-done .rtp-load-status {
  opacity: 0.55;
}

.rtp-card {
  background: linear-gradient(160deg, #c084fc 0%, #a855f7 35%, #7c3aed 70%, #5b21b6 100%);
  padding: 0.55rem;
  border-radius: 12px;
  position: relative;
  animation: bounce-in 0.55s ease both;
  box-shadow: 0 6px 18px rgba(76, 29, 149, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hot-badge {
  position: absolute;
  top: 0.35rem;
  left: 0.4rem;
  z-index: 3;
  background: linear-gradient(135deg, #ff3b3b, #ff9800);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.rtp-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  align-items: stretch;
}

.place-img-rtp {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: inset 1px 0 4px 2px #131313;
  background: #111;
  min-height: 100%;
}

.rtp-card-img {
  width: 100%;
  height: 100%;
  min-height: 9rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  width: min(8.5rem, 78%);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #f0abfc, #a855f7 50%, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(168, 85, 247, 0.45);
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
}

.btn-play:hover {
  background: linear-gradient(135deg, #67e8f9, #a855f7);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.45);
}

.pola-wrapper {
  background: #0a0a0a;
  padding: 0.7rem 0.55rem;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.icon-providers {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.7rem;
  z-index: 2;
}

.icon-providers img {
  width: 100%;
  height: auto;
}

.pola-wrapper h4 {
  margin: 0;
  font-size: 0.82rem;
  text-align: left;
  padding-right: 1.8rem;
}

.pola-wrapper h4 .icon {
  color: var(--gold);
}

.pola-wrapper hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0.45rem 0;
}

.pola-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pola-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.12rem 0;
  font-size: 0.72rem;
  font-weight: 600;
}

.pola-label {
  text-align: left;
  white-space: nowrap;
}

.pola-icons {
  display: inline-flex;
  gap: 0.2rem;
  flex-shrink: 0;
}

.pola-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  border: 1.5px solid currentColor;
}

.pola-icon--check {
  color: #1b9e3e;
  background: rgba(40, 167, 69, 0.15);
}

.pola-icon--x {
  color: #e53935;
  background: rgba(220, 53, 69, 0.12);
}

.pola-warning {
  text-align: center;
  padding: 0.35rem 0.15rem 0.45rem;
  min-height: 3.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.pola-warning-title {
  margin: 0;
  color: #ff2d2d;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.25;
}

.pola-warning-text {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.3;
}

.jam-gacor {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.jam-icon {
  color: var(--gold);
  font-size: 0.75rem;
}

.game-name {
  display: none;
}

.table-pola {
  display: none;
}

.percent {
  height: 19px;
  margin-top: 0.55rem;
  display: flex;
  overflow: hidden;
  background: #e9ecef;
  border-radius: var(--radius);
  position: relative;
}

.percent-txt {
  z-index: 2;
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #000;
}

.percent-bar {
  height: 100%;
  width: 0;
  transition: width 0.7s ease;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: stripes 1s linear infinite;
}

.percent-bar.good {
  background-color: #ffc107;
}

.percent-bar.great {
  background-color: #28a745;
}

.percent-bar.bad {
  background-color: #dc3545;
}

@keyframes stripes {
  from {
    background-position: 1rem 0;
  }
  to {
    background-position: 0 0;
  }
}

/* —— Fireworks —— */
.fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.site-header,
.container,
.nav-bottom,
.btn-up,
.popup-overlay {
  position: relative;
  z-index: 10;
}

.site-header {
  position: sticky;
  z-index: 40;
}

.nav-bottom {
  position: fixed;
  z-index: 45;
}

.btn-up {
  position: fixed;
  z-index: 44;
}

.popup-overlay {
  position: fixed;
  z-index: 60;
}

a.login-btn,
a.register-btn,
a.btn-play,
a.item-nav-bottom {
  text-decoration: none;
}

a.login-btn,
a.register-btn {
  display: block;
}

a.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

a.item-nav-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* —— Bottom nav —— */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: transparent;
  border-top: none;
  pointer-events: none;
}

.nav-bottom-inner {
  pointer-events: auto;
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
  padding: 0.4rem 0.35rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 12, 54, 0.95), rgba(10, 4, 22, 0.98));
  border: 1px solid rgba(192, 132, 252, 0.4);
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(124, 58, 237, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.item-nav-bottom {
  position: relative;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  text-align: center;
  font-size: 0.68rem;
  padding: 0.35rem 0.15rem 0.4rem;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 16px;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.item-nav-bottom:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.16);
}

.item-nav-bottom.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.35), rgba(76, 29, 149, 0.25));
  box-shadow: inset 0 0 0 1px rgba(216, 180, 254, 0.3);
}

.item-nav-bottom.is-active::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c084fc, #67e8f9);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
}

.nav-ico {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  margin: 0.15rem auto 0.2rem;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.35));
}

.nav-txt {
  display: block;
}

.item-nav-bottom--cta {
  transform: translateY(-0.55rem);
}

.item-nav-bottom--cta .nav-cta-ring {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin: -0.15rem auto 0.15rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0abfc, #a855f7, #4c1d95);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.55), 0 0 18px rgba(168, 85, 247, 0.4);
}

.item-nav-bottom--cta .nav-ico {
  margin: 0;
  font-size: 1.2rem;
}

.item-nav-bottom--cta .nav-txt {
  color: #e9d5ff;
  font-family: var(--font-display);
  font-size: 0.62rem;
}

.item-nav-bottom--cta:hover {
  background: transparent;
  transform: translateY(-0.7rem);
}

.item-nav-bottom--cta:hover .nav-cta-ring {
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.75), 0 0 24px rgba(103, 232, 249, 0.35);
}

/* —— Back to top —— */
.btn-up {
  position: fixed;
  right: 0.85rem;
  bottom: calc(var(--nav-h) + 0.85rem);
  z-index: 44;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(216, 180, 254, 0.45);
  border-radius: 14px;
  background: linear-gradient(145deg, #a855f7, #4c1d95);
  color: #fff;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--glow);
}

.btn-up.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-up:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

/* —— Popup —— */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  padding: 1rem;
}

.popup-overlay.is-open {
  display: flex;
}

.popup-overlay[hidden] {
  display: none !important;
}

.popup-overlay.is-closing {
  display: flex;
  animation: fade-out 0.55s ease forwards;
}

.popup-box {
  width: min(500px, 92%);
  border-radius: 16px;
  overflow: hidden;
  animation: swirl-in 0.55s ease both;
  box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 20px 60px rgba(0, 0, 0, 0.55), var(--glow);
}

.popup-overlay.is-closing .popup-box {
  animation: swirl-out 0.55s ease both;
}

.popup-box img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.popup-box button {
  width: 100%;
  padding: 0.95rem;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #67e8f9);
  color: #120826;
  text-transform: uppercase;
}

@keyframes swirl-in {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes swirl-out {
  from {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
  to {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  opacity: 0.8;
}

/* —— Responsive —— */
@media (max-width: 992px) {
  .rtp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rtp-card-body {
    grid-template-columns: 1fr;
  }

  .rtp-card-img {
    min-height: 7.5rem;
    aspect-ratio: 1;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-slider {
    aspect-ratio: 16 / 9;
  }

  .provider-btn span {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .title-game {
    font-size: 1.05rem;
  }

  .item-nav-bottom {
    font-size: 0.58rem;
  }

  .nav-bottom-inner {
    border-radius: 18px;
    padding: 0.3rem 0.2rem;
  }

  .item-nav-bottom--cta .nav-cta-ring {
    width: 2.4rem;
    height: 2.4rem;
  }

  .btn-play {
    font-size: 0.55rem;
  }

  .pola-wrapper {
    padding: 0.5rem 0.4rem;
  }

  .cta-row {
    gap: 0.55rem;
  }

  .login-btn,
  .register-btn {
    padding: 0.9rem 0.7rem;
    font-size: 0.78rem;
  }
}
