:root {
  --bg: #07140f;
  --bg-elevated: #0c1f17;
  --bg-soft: #123528;
  --gold: #d4a84b;
  --gold-bright: #f0c86a;
  --gold-deep: #9a7428;
  --text: #f3ebda;
  --muted: #a8b5aa;
  --line: rgba(212, 168, 75, 0.22);
  --danger: #e35d5d;
  --radius: 14px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Manrope", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 107, 74, 0.35), transparent 55%),
    linear-gradient(180deg, #06110c 0%, var(--bg) 40%, #0a1a13 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 5vw;
  background: rgba(7, 20, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo,
.brand-mark,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}

.logo {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: #1a1205;
  box-shadow: 0 10px 30px rgba(212, 168, 75, 0.28);
}

.btn-gold:hover {
  box-shadow: 0 14px 34px rgba(212, 168, 75, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  isolation: isolate;
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  animation: bannerIn 1.1s ease both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 17, 12, 0.88) 0%, rgba(6, 17, 12, 0.55) 42%, rgba(6, 17, 12, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 17, 12, 0.15) 0%, rgba(6, 17, 12, 0.75) 100%);
}

.hero-content {
  padding: clamp(2rem, 8vw, 6rem) 5vw clamp(3rem, 10vh, 6rem);
  max-width: 720px;
  animation: rise 0.9s ease 0.15s both;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  animation: glowPulse 3.5s ease-in-out infinite;
}

.hero h1,
.section-head h1,
.auth-card h1,
.admin-top h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
}

.hero-lead,
.section-head p,
.auth-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-lead {
  margin: 1rem 0 1.75rem;
  max-width: 34ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 5vw;
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 53, 40, 0.35), rgba(7, 20, 15, 0));
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.05em;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.game-tile {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.game-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.game-visual {
  height: 160px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 70%, white), transparent 45%),
    linear-gradient(145deg, var(--accent), #06110c);
}

.game-slots {
  background-image:
    radial-gradient(circle at 20% 40%, rgba(240, 200, 106, 0.45), transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.15), transparent 35%),
    linear-gradient(145deg, #1a6b4a, #06110c);
}

.game-roulette {
  background-image:
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(212, 168, 75, 0.5) 30%, transparent 32%),
    radial-gradient(circle at 50% 50%, #8a6b1f, #2a1c05 70%);
}

.game-blackjack {
  background-image:
    linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.08) 60%, transparent 60%),
    linear-gradient(145deg, #3d5a80, #0c1622);
}

.game-poker {
  background-image:
    radial-gradient(circle at 25% 70%, rgba(240, 200, 106, 0.35), transparent 28%),
    linear-gradient(145deg, #6b2d4a, #1a0a12);
}

.game-tile h3 {
  margin: 1rem 1.1rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.game-tile p {
  margin: 0 1.1rem 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.bonus-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.bonus-strip > div {
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
}

.bonus-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

.bonus-strip span {
  color: var(--muted);
}

.center-cta {
  display: flex;
  justify-content: center;
}

.pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pay-list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.seo-text {
  max-width: 48rem;
  display: grid;
  gap: 1rem;
}

.seo-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.seo-text strong {
  color: var(--text);
  font-weight: 600;
}

.faq-list {
  max-width: 48rem;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1rem 0 0.35rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--text);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0.75rem 0 0.5rem;
  color: var(--muted);
  line-height: 1.55;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85em;
}

.auth-seo-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-seo-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-keys a {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-footer {
  padding: 2.5rem 5vw 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-disclaimer {
  max-width: 40rem;
  line-height: 1.5;
  font-size: 0.92rem;
}

.footer-disclaimer a {
  color: var(--gold);
}

.auth-footer {
  border-top: none;
  padding-top: 0;
  justify-items: center;
  text-align: center;
}

.page-hero {
  padding-top: clamp(4rem, 10vw, 6.5rem);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.04em;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.steps-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.7;
  display: grid;
  gap: 0.65rem;
}

.fine-print {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.seo-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.maintenance-bar {
  padding: 0.65rem 5vw;
  background: #5c1f1f;
  color: #f7d6d6;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero {
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(212, 168, 75, 0.18), transparent 55%),
    linear-gradient(135deg, #0a1f16, #06110c 55%, #123528);
}

.hero-banner {
  opacity: 0.92;
}

.auth-body {
  min-height: 100vh;
}

.auth-main {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 2rem 5vw 4rem;
}

.auth-card {
  width: min(100%, 440px);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(12, 31, 23, 0.92);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}

.auth-card h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.8rem;
}

.auth-card label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-card input[type="email"],
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="number"],
.auth-card select,
.settings-form input,
.settings-form select,
.banner-controls input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #08160f;
  color: var(--text);
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.auth-card input:focus,
.settings-form input:focus,
.settings-form select:focus,
.banner-controls input:focus {
  outline: 2px solid rgba(212, 168, 75, 0.45);
  border-color: var(--gold);
}

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
  grid-template-columns: none !important;
}

.check input {
  margin-top: 0.2rem;
}

.form-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.error {
  color: var(--danger);
}

.form-note.success {
  color: #7dcea0;
}

.nav-open .nav,
.nav-open .header-actions {
  display: flex;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bannerIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 24px rgba(240, 200, 106, 0.35);
  }
}

@media (max-width: 980px) {
  .games-grid,
  .pay-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .bonus-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  body.nav-open .site-header {
    flex-wrap: wrap;
  }

  body.nav-open .nav,
  body.nav-open .header-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .games-grid,
  .pay-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 85vh;
    place-items: end stretch;
  }
}
