:root {
  --font-family: "Montserrat", sans-serif;
  --primary: #ffd700;
  --primary-dark: #e6c200;
  --bg-primary: #1a0a2e;
  --bg-secondary: #251047;
  --bg-card: #2d1454;
  --text-primary: #ffffff;
  --text-secondary: #c9b8e8;
  --border-color: rgba(255, 255, 255, 0.12);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ffb347);
  color: #1a0a2e;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary-dark), #ff9f1a);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 10, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: 1rem;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.5rem;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
}

.header-cta {
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 10, 46, 0.92), rgba(26, 10, 46, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-bonus {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 2rem;
  max-width: 680px;
}

.section {
  padding: 3.5rem 0;
}

.section.alt,
.games-section.alt {
  background: var(--bg-secondary);
}

.section-title {
  margin: 0 0 1.75rem;
  font-size: 1.75rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #120622;
}

.game-card__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.game-card__name {
  padding: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  overflow: hidden;
}

.provider-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.75rem;
  background: transparent;
}

.provider-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.content-body h2,
.content-body h3 {
  color: var(--primary);
}

.content-body p {
  color: var(--text-secondary);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.25rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding-bottom: 1rem;
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border-color);
  background: #120622;
  margin-top: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding: 2.75rem 0 2rem;
}

.footer-brand {
  min-width: 0;
}

.footer-logo img {
  max-height: 42px;
  width: auto;
}

.footer-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.footer-col-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-contact-link::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--primary);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.footer-contact-link--support::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 1a9 9 0 0 0-9 9v7c0 1.66 1.34 3 3 3h1v-8H5v-2a7 7 0 0 1 14 0v2h-2v8h1c1.66 0 3-1.34 3-3v-7a9 9 0 0 0-9-9z'/%3E%3C/svg%3E");
}

.footer-contact-link--info::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

.footer-payments {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 1.5rem 0;
}

.footer-payments-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.footer-payments-viewport {
  overflow: hidden;
}

.footer-payments-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  transition: transform 0.25s ease;
  will-change: transform;
}

.footer-payment-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.footer-payment-item img {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.footer-payments-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.footer-payments-nav:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.35);
}

.footer-payments-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.footer-bottom {
  padding: 1.25rem 0 1.75rem;
}

.footer-bottom-inner {
  display: block;
}

.footer-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 1rem;
}

.popup-overlay[hidden] {
  display: none !important;
}

.popup-modal {
  position: relative;
  width: min(100%, 480px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
}

.popup-body {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.popup-cta {
  width: 100%;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    padding-top: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
