:root {
  --color-primary: #7b3fe4;
  --color-secondary: #c9a227;
  --color-bg: #0a0518;
  --color-surface: #13092e;
  --color-text: #e8e0ff;
  --color-text-muted: #8878aa;
  --font-heading: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius-card: 12px;
  --shadow-card: 0 4px 24px rgba(123, 63, 228, 0.25);
  --transition: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 90% 8%, rgba(123, 63, 228, 0.28), transparent 38%), var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: 0.02em; }
main { width: min(1200px, 92%); margin: 0 auto; padding: 2.4rem 0 5.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10, 5, 24, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(123, 63, 228, 0.45);
  width: 100%; padding: 0.8rem 4%; display: flex; justify-content: space-between; align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--color-text); }
.brand img { width: 34px; height: 34px; }
.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.main-nav a { color: var(--color-text-muted); font-weight: 600; transition: var(--transition); }
.main-nav a:hover { color: var(--color-secondary); }
.menu-toggle {
  display: none; border: 1px solid rgba(136, 120, 170, 0.6); background: transparent; color: var(--color-text);
  font-size: 1.4rem; border-radius: 8px; padding: 0.2rem 0.55rem; cursor: pointer;
}

.hero-carousel { position: relative; min-height: 78vh; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 3rem; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.03);
  transition: opacity 0.75s ease, transform 0.75s ease;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
}
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(10, 5, 24, 0.84), rgba(19, 9, 46, 0.38)); }
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 680px; padding: 2rem; }
.hero-content h1, .hero-content h2 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 0.7rem; }
.hero-content p { color: #d2c8ef; margin-bottom: 1.1rem; }

.btn-primary {
  display: inline-block; background: var(--color-primary); color: #fff; padding: 0.7rem 1.35rem; border-radius: 8px;
  border: none; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { background: var(--color-secondary); color: #1b1300; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(233, 224, 255, 0.5); background: rgba(10, 5, 24, 0.6); color: #fff; cursor: pointer;
}
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 5; }
.carousel-dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(232, 224, 255, 0.35); cursor: pointer; }
.carousel-dots button.active { background: var(--color-secondary); }

.section-title { margin-bottom: 1.1rem; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.promo-section { margin-bottom: 3rem; }
.magazine-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.feature-card-stack { display: grid; gap: 1rem; }
.promo-card {
  background: var(--color-surface); border: 1px solid transparent; border-radius: var(--radius-card); overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.promo-card:hover { transform: translateY(-5px); border-color: var(--color-secondary); box-shadow: 0 12px 26px rgba(201, 162, 39, 0.2); }
.promo-card img { width: 100%; height: 220px; object-fit: cover; }
.promo-card-content { padding: 1rem; }
.promo-card-content p { color: var(--color-text-muted); margin: 0.4rem 0 0.9rem; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.game-card { background: var(--color-surface); border-radius: var(--radius-card); overflow: hidden; border: 1px solid transparent; display: flex; flex-direction: column; }
.game-card:hover { border-color: var(--color-secondary); }
.game-card img { width: 100%; height: 160px; object-fit: cover; }
.game-card-content { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.65rem; }

.categories { margin: 3rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: rgba(123, 63, 228, 0.16); border: 1px solid rgba(123, 63, 228, 0.45); color: var(--color-text);
  padding: 0.45rem 0.9rem; border-radius: 999px; cursor: pointer;
}
.chip.active { background: var(--color-secondary); color: #281a00; border-color: var(--color-secondary); }

.winners-feed { margin-bottom: 3rem; }
.marquee { overflow: hidden; border: 1px solid rgba(136, 120, 170, 0.45); border-radius: 10px; background: rgba(19, 9, 46, 0.8); }
.marquee-track { display: flex; gap: 2rem; width: max-content; padding: 0.9rem 0; animation: scrollFeed 28s linear infinite; }
.win-item { white-space: nowrap; color: #d4c9ef; }
@keyframes scrollFeed { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.providers-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.provider-badge {
  background: rgba(201, 162, 39, 0.14); border: 1px solid rgba(201, 162, 39, 0.45); color: #e6cc75;
  padding: 0.42rem 0.8rem; border-radius: 999px;
}

.register-section {
  margin-top: 2.6rem; background: rgba(19, 9, 46, 0.75); border: 1px solid rgba(123, 63, 228, 0.45);
  border-radius: var(--radius-card); padding: 1.4rem;
}
.register-form { display: grid; gap: 0.7rem; margin: 1rem 0; }
.register-form input {
  width: 100%; background: #0d0722; border: 1px solid #3f2b6c; color: var(--color-text);
  border-radius: 8px; padding: 0.7rem;
}
.register-legal, .muted { color: var(--color-text-muted); font-size: 0.95rem; }
.popup { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); align-items: center; justify-content: center; z-index: 1010; }
.popup-inner { background: #13092e; border: 1px solid var(--color-secondary); border-radius: 10px; padding: 1.2rem; width: min(430px, 90%); }
.popup-inner button { margin-top: 0.9rem; background: var(--color-primary); color: #fff; border: none; padding: 0.55rem 1rem; border-radius: 8px; cursor: pointer; }

.site-footer { background: #090417; border-top: 1px solid rgba(123, 63, 228, 0.45); margin-top: 3rem; padding: 1.7rem 4%; }
.footer-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.footer-nav a { color: var(--color-text-muted); }
.rg-badges { margin: 1rem 0; display: flex; gap: 0.9rem; align-items: center; }
.rg-badges img { width: 120px; height: auto; }

.page-hero {
  min-height: 260px; border-radius: var(--radius-card); display: flex; align-items: flex-end; padding: 1.5rem; margin-bottom: 2rem;
  background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 5, 24, 0.88), rgba(123, 63, 228, 0.28)); }
.page-hero > div { position: relative; z-index: 2; }

.simple-section { background: rgba(19, 9, 46, 0.8); border: 1px solid rgba(123, 63, 228, 0.4); border-radius: var(--radius-card); padding: 1.2rem; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; margin-top: 0.7rem; }
th, td { border: 1px solid rgba(136, 120, 170, 0.5); padding: 0.55rem; text-align: left; }
th { background: rgba(123, 63, 228, 0.18); }
.leaderboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.game-page { width: min(1200px, 92%); margin: 0 auto; padding: 2.4rem 0 5.5rem; }
.game-frame-wrapper { margin-top: 1rem; border: 1px solid rgba(123, 63, 228, 0.5); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.game-legal { margin-top: 0.85rem; color: var(--color-text-muted); }
details { background: rgba(19, 9, 46, 0.75); border: 1px solid rgba(123, 63, 228, 0.4); border-radius: 10px; padding: 0.8rem; }
details + details { margin-top: 0.7rem; }
summary { cursor: pointer; font-weight: 700; }

@media (max-width: 1024px) { .hero-carousel { min-height: 66vh; } }
@media (max-width: 768px) {
  main { width: 94%; }
  .menu-toggle { display: inline-block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start;
    padding: 0.8rem 4%; background: rgba(10, 5, 24, 0.98); border-bottom: 1px solid rgba(123, 63, 228, 0.45);
  }
  .main-nav.open { display: flex; }
  .magazine-grid { grid-template-columns: 1fr; }
  .promo-card img { height: 185px; }
  .hero-content { padding: 1.2rem; }
  .footer-top { flex-direction: column; }
}
