:root {
  --bg-dark: #1a1518;
  --bg-card: #252027;
  --accent: #c9a227;
  --accent-hover: #e0b83d;
  --red: #8b2942;
  --red-dark: #6b1f33;
  --text: #e8e4e6;
  --text-muted: #a09a9e;
  --white: #fff;
  --border: rgba(201, 162, 39, 0.35);
  --font-head: "Cinzel", serif;
  --font-body: "Source Sans 3", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
}

a, button, input, textarea {
  outline: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}

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

.hide {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo img {
  width: 80px;
  height: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-head);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
}

.main-nav a:hover {
  color: var(--accent);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, var(--bg-dark) 100%), url("../images/hero-banner.png") center top / cover no-repeat;
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--white);
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 12px;
  color: var(--text);
}

.hero-text {
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 32px;
  color: var(--accent);
}

/* Game intro block */
.section-game .game-intro {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.game-intro-media {
  flex: 0 1 420px;
}

.game-intro-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.game-intro-content {
  flex: 1 1 360px;
}

.game-intro-content h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.game-intro-content p {
  margin-bottom: 12px;
  color: var(--text);
}

.game-intro-content .btn {
  margin-top: 12px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--white);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

/* Rules */
.section-rules {
  background: var(--bg-card);
}

.rules-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 1rem;
}

.section-rules h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: var(--accent);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.rule-box {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.rule-box h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.rule-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Contact form */
.contact-note {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-note a {
  color: var(--accent);
}

.contact-note a:hover {
  text-decoration: underline;
}

.form-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.form-field {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
}

.form-field::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-wrap .btn {
  width: 100%;
  margin-top: 8px;
}

/* Safe gaming block */
.safe-gaming {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}

.safe-gaming-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.safe-gaming-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
}

.safe-gaming-logos a {
  display: block;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.safe-gaming-logos a:hover {
  opacity: 0.85;
}

.safe-gaming-logos img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 2px solid var(--border);
  padding: 44px 0 28px;
  text-align: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.site-footer .footer-top {
  margin-bottom: 28px;
}

.site-footer .footer-title:first-child {
  margin-top: 0;
}

.footer-title {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--accent);
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-form {
  max-width: 400px;
  margin: 16px auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-form .form-field {
  flex: 1 1 200px;
  margin-bottom: 0;
}

.footer-form .btn {
  flex: 0 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin: 24px 0 16px;
}

.footer-links a {
  color: var(--accent);
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Age gate popup */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate-inner {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  text-align: center;
}

.age-gate-inner p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--text);
}

/* Cookie bar */
.cookie-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--bg-card);
  border-top: 2px solid var(--accent);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cookie-alert p {
  flex: 1 1 300px;
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

.cookie-alert a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-alert-close {
  flex-shrink: 0;
}

/* Inner pages (banner) */
.banner.inner-banner {
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, var(--bg-dark) 100%), url("../images/hero-banner.png") center / cover no-repeat;
  padding: 100px 0 40px;
  text-align: center;
}

.inner-banner .container {
  max-width: 800px;
}

.inner-banner h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 16px;
  color: var(--white);
}

.inner-banner .para {
  font-size: 1rem;
  color: var(--text);
}

/* Content sections (disclaimer, privacy, terms, community) */
.cookiesection {
  padding: 40px 0 60px;
  min-height: 50vh;
}

.cookiesection h2,
.cookiesection h4 {
  color: var(--accent);
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.cookiesection h4 {
  font-size: 1.05rem;
  margin-top: 20px;
}

.cookiesection p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* Game page iframe */
.game-iframe-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #000;
}

.game-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 0;
    border-left: 2px solid var(--border);
    transition: right 0.3s;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .logo img {
    width: 110px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .section-game .game-intro {
    flex-direction: column;
    gap: 24px;
  }

  .game-intro-media {
    flex: 1 1 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .footer-form {
    flex-direction: column;
  }

  .footer-form .btn {
    width: 100%;
  }

  .game-iframe-wrap iframe {
    height: 400px;
  }

  .safe-gaming-logos {
    gap: 20px 24px;
  }

  .safe-gaming-logos a,
  .safe-gaming-logos img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
  }

  .cookie-alert {
    flex-direction: column;
    text-align: center;
  }

  .cookie-alert p {
    flex: none;
  }
}
