:root {
  --color-primary: #6b0020;
  --color-secondary: #c9a227;
  --color-bg: #1a0008;
  --color-surface: #2a000e;
  --color-text: #f5f0e8;
  --color-text-muted: #a08070;
  --font-heading: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius-card: 16px;
  --shadow-card: 0 6px 28px rgba(107, 0, 32, 0.35);
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 162, 39, 0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(107, 0, 32, 0.2), transparent 45%),
    var(--color-bg);
  line-height: 1.6;
}

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

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

main {
  padding-top: 84px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1.2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 0, 8, 0.96);
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav-toggle {
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--color-text);
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 22px;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 4%;
  top: 78px;
  background: #22000b;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 10px;
  padding: 14px;
}

.nav-menu a:hover {
  color: var(--color-secondary);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text);
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: #1a0008;
}

.btn-secondary {
  border: 1px solid rgba(201, 162, 39, 0.6);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.15);
}

.hero-fullscreen {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  background: url("../images/hero.webp") center / cover no-repeat;
  overflow: hidden;
}

.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 0, 8, 0.65);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 92%);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-content p {
  color: #eadfcd;
  margin-bottom: 1.6rem;
}

.particle-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -10%;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.9);
  opacity: 0;
  animation-name: float-up;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes float-up {
  0% { transform: translateY(0); opacity: 0; }
  45% { opacity: 0.6; }
  100% { transform: translateY(-120vh); opacity: 0; }
}

section {
  padding: 62px 0;
}

.promo-grid,
.games-grid,
.providers-grid,
.bonus-grid,
.info-grid,
.faq-grid {
  display: grid;
  gap: 20px;
}

.promo-grid,
.games-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--color-secondary);
  box-shadow: 0 12px 32px rgba(107, 0, 32, 0.45);
}

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

.card-content {
  padding: 16px;
  border-bottom: 4px solid rgba(201, 162, 39, 0.8);
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(201, 162, 39, 0.08);
}

.winners-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.winners-wrapper {
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  background: #23000c;
  padding: 12px;
}

.winner-item {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.12);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.providers-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.provider-badge {
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  padding: 14px;
  background: #22000c;
}

.register-form {
  display: grid;
  gap: 12px;
  max-width: 500px;
}

.register-form input {
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: #190007;
  color: var(--color-text);
}

.register-legal,
.muted {
  color: var(--color-text-muted);
  margin-top: 12px;
}

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.popup-inner {
  width: min(420px, 92%);
  background: #2a000e;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 14px;
  padding: 22px;
}

.site-footer {
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(20, 0, 6, 0.98);
  padding: 44px 0 32px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 16px 0;
}

.rg-badges {
  display: flex;
  gap: 12px;
  margin: 14px 0;
}

.rg-badges img {
  height: 34px;
  width: auto;
}

.footer-small {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.top-hero-small {
  min-height: 46vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(rgba(26, 0, 8, 0.72), rgba(26, 0, 8, 0.72)), url("../images/promo-1.webp") center / cover no-repeat;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.filter-pill {
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(201, 162, 39, 0.08);
}

.game-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}

.game-frame-wrapper {
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 14px;
  overflow: hidden;
  background: #160006;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

th, td {
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 12px;
  text-align: left;
}

th {
  background: rgba(201, 162, 39, 0.12);
}

.legal-content h2 {
  margin: 22px 0 8px;
  font-family: var(--font-heading);
}

.legal-content p,
.legal-content li {
  color: #f0e4d4;
}

.legal-content ul {
  padding-left: 18px;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 10px;
}

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

  .nav-menu {
    display: flex;
    align-items: center;
    position: static;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
