/* ===== MAGIUS CASINO — SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Cinzel+Decorative:wght@400;700;900&display=swap');

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

:root {
  --bg-deep:        #16040A;
  --bg-dark:        #21070C;
  --bg-card:        #2a0d13;
  --bg-card2:       #320f16;
  --border-gold:    #c9943a;
  --border-gold2:   #f0c060;
  --gold:           #e8b84b;
  --gold-light:     #f5d47a;
  --gold-dark:      #9e6a1a;
  --crimson:        #8b1a2a;
  --crimson-light:  #c0263d;
  --text-primary:   #f2e4c0;
  --text-muted:     #9a8070;
  --text-gold:      #e8b84b;
  --font-display:   'Cinzel Decorative', serif;
  --font-body:      'Roboto Condensed', sans-serif;
  --ref-link:       https://ons.lynmonkel.com/?mid=80157_2086589;
  --transition:     0.25s ease;
  --radius:         8px;
  --radius-lg:      14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(139,26,42,0.18) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9943a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(22,4,10,0.98) 80%, transparent);
  border-bottom: 1px solid rgba(201,148,58,0.25);
  backdrop-filter: blur(10px);
  padding: 0 32px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo { display: flex; align-items: center; }
.header-logo img { height: 48px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition);
}
.header-nav a:hover, .header-nav a.active { color: var(--gold); }
.header-nav a:hover::after, .header-nav a.active::after { transform: translateX(-50%) scaleX(1); }

.header-actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201,148,58,0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn-primary {
  background: linear-gradient(135deg, #d4882a 0%, #f0b84a 50%, #c97828 100%);
  color: #1a0505;
  box-shadow: 0 2px 12px rgba(232,184,75,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e89a30 0%, #f7c860 50%, #d98830 100%);
  box-shadow: 0 4px 20px rgba(232,184,75,0.55);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 14px 38px;
  font-size: 16px;
  letter-spacing: 1.2px;
  border-radius: 10px;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 32px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(139,26,42,0.30) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(201,148,58,0.10) 0%, transparent 60%),
    linear-gradient(160deg, #1a040b 0%, #21070C 60%, #160409 100%);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 48px,
    rgba(201,148,58,0.03) 48px,
    rgba(201,148,58,0.03) 50px
  );
}
.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,148,58,0.15);
  border: 1px solid rgba(201,148,58,0.35);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(232,184,75,0.4), 0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 18px;
  max-width: 700px;
}
.hero-text {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0.9;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Decorative cards behind hero */
.hero-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 12px;
  opacity: 0.15;
  pointer-events: none;
}
.hero-deco-card {
  width: 80px;
  height: 120px;
  border: 2px solid var(--border-gold);
  border-radius: 8px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.hero-deco-card:nth-child(2) { transform: rotate(8deg) translateY(-12px); }
.hero-deco-card:nth-child(3) { transform: rotate(-6deg) translateY(8px); }

/* ── SECTION WRAPPER ── */
section { padding: 72px 32px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(232,184,75,0.2);
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 48px;
}
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 14px 0 32px;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(201,148,58,0.18);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { border-color: rgba(201,148,58,0.5); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-title { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ── GAMES GRID ── */
.games-section { background: linear-gradient(to bottom, var(--bg-deep), var(--bg-dark)); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.game-card {
  background: var(--bg-card2);
  border: 1px solid rgba(201,148,58,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.game-card:hover { border-color: var(--border-gold); transform: scale(1.03); box-shadow: 0 6px 24px rgba(201,148,58,0.25); }
.game-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, rgba(50,15,22,0.9), rgba(22,4,10,0.9));
  position: relative;
  overflow: hidden;
}
.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6));
}
.game-name {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── PROMO BANNER ── */
.promo-banner {
  background: linear-gradient(135deg, var(--crimson) 0%, #6e1020 50%, var(--bg-dark) 100%);
  border-top: 1px solid rgba(201,148,58,0.2);
  border-bottom: 1px solid rgba(201,148,58,0.2);
  padding: 56px 32px;
  text-align: center;
}
.promo-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 40px);
  color: var(--gold);
  margin-bottom: 12px;
}
.promo-banner p { font-size: 16px; color: var(--text-primary); max-width: 500px; margin: 0 auto 28px; opacity: 0.85; }

/* ── SEO TEXT ── */
.seo-section {
  background: var(--bg-dark);
  border-top: 1px solid rgba(201,148,58,0.12);
  border-bottom: 1px solid rgba(201,148,58,0.12);
}
.seo-content { max-width: 860px; }
.seo-content h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--gold);
  margin-bottom: 14px;
  margin-top: 36px;
  font-weight: 700;
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.seo-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.seo-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.seo-content a:hover { color: var(--gold-light); }

/* ── FAQ ── */
.faq-section { background: var(--bg-deep); }
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(201,148,58,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(201,148,58,0.4); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-icon { font-size: 18px; color: var(--gold); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(201,148,58,0.1);
}
.faq-item.open .faq-answer { display: block; }

/* ── FOOTER ── */
footer {
  background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(201,148,58,0.2);
  padding: 56px 32px 28px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,148,58,0.12);
}
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 240px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.age-badge {
  background: rgba(201,148,58,0.15);
  border: 1px solid rgba(201,148,58,0.3);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 0 16px; }
  .header-inner { height: 60px; }
  .header-nav a { padding: 6px 10px; font-size: 12px; }
  .header-actions .btn { padding: 8px 14px; font-size: 12px; }
  section { padding: 48px 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 16px; }
  .hero-deco { display: none; }
}
@media (max-width: 480px) {
  .header-logo img { height: 36px; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-lg { padding: 12px 28px; font-size: 14px; }
}
