/* ===== Menace Casino — global theme ===== */
:root {
  --bg: #0d0d0f;
  --bg-2: #141418;
  --panel: #17171c;
  --panel-2: #1d1d24;
  --border: #2a2a33;
  --text: #ececf0;
  --muted: #a2a2ad;
  --gold: #f5a623;
  --gold-2: #ffd166;
  --gold-deep: #d4870f;
  --radius: 14px;
  --maxw: 1200px;
  --content: 920px;
  --header-h: 66px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: #0b0b0d;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
/* On-brand page background: dark base + amber/crimson glows + soft vignette (fixed, behind content) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(245, 166, 35, 0.10), transparent 60%),
    radial-gradient(1000px 720px at 100% -6%, rgba(150, 26, 26, 0.16), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(245, 166, 35, 0.06), transparent 62%),
    radial-gradient(1400px 1000px at 50% 40%, transparent 60%, rgba(0, 0, 0, 0.45) 100%),
    #0b0b0d;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #0f0f12;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.brand:hover { text-decoration: none; }

.primary-nav { display: none; align-items: center; gap: 6px; margin-left: 8px; }
.nav-link {
  display: inline-block; color: var(--text); font-weight: 600; font-size: 15px;
  padding: 9px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.nav-link:hover { background: var(--panel-2); color: var(--gold); text-decoration: none; }

.nav-item.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; display: none; flex-direction: column; gap: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.dropdown a { color: var(--text); padding: 9px 12px; border-radius: 7px; font-weight: 500; }
.dropdown a:hover { background: var(--panel-2); color: var(--gold); text-decoration: none; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { display: flex; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
  display: inline-block; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 10px 18px; border-radius: 9px; border: 1px solid transparent;
  text-align: center; transition: transform .05s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1205; box-shadow: 0 6px 18px rgba(245,166,35,0.25); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 14px 28px; font-size: 17px; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px; margin-left: -6px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 16px 20px 40px; overflow-y: auto; z-index: 99;
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel a:not(.btn) { color: var(--text); font-weight: 600; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.mobile-panel a:hover { color: var(--gold); text-decoration: none; }
.mobile-heading { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; margin-top: 16px; padding: 0 8px; }
.mobile-actions { display: flex; gap: 12px; margin-top: 22px; }
.mobile-actions .btn { flex: 1; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(13,13,15,0.72), rgba(13,13,15,0.95)),
    #000 center/cover no-repeat;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 20px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.05; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.hero .accent { color: var(--gold); }
.hero p.lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.hero .rating-chip { display: inline-block; background: var(--panel-2); border: 1px solid var(--border); color: var(--gold-2); font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Sections ===== */
.section { padding-top: 52px; padding-bottom: 52px; }
.section.alt { background: var(--bg-2); }
.section h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 8px; font-weight: 800; letter-spacing: -0.01em; }
.section .section-sub { color: var(--muted); margin: 0 0 26px; max-width: 720px; }

/* ===== Prose (article content) ===== */
.prose { max-width: var(--content); margin: 0 auto; }
.prose h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.01em; }
.prose h2 { font-size: clamp(21px, 3vw, 28px); margin: 40px 0 12px; font-weight: 800; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; font-weight: 700; }
.prose p { margin: 0 0 16px; color: #d7d7de; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: #d7d7de; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose a:not(.btn) { color: var(--gold); font-weight: 600; }
.prose a.btn { text-decoration: none; }
.prose a.btn:hover { text-decoration: none; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.lead-note { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 16px; color: var(--muted); font-size: 15px; }

/* ===== Tables (scrollable) ===== */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 22px; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 15px; }
thead th { background: var(--panel-2); text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
td strong, th { color: var(--text); }

/* ===== Cards / game grids ===== */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: var(--content); margin-left: auto; margin-right: auto; }
.game-card {
  display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: transform .12s ease, border-color .12s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; }
.game-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.game-card .cap { padding: 10px 12px; font-weight: 600; font-size: 14px; color: var(--text); }

/* Feature cards (why choose, perks) */
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; color: var(--gold); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Page hero: a BACKGROUND image with the page heading/intro overlaid in the empty (left) zone.
   Background images (bg-*) are used as CSS backgrounds — never as a bare <img>. */
.page-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background-color: var(--bg); background-size: cover; background-position: center right; background-repeat: no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,13,15,0.96) 0%, rgba(13,13,15,0.82) 42%, rgba(13,13,15,0.4) 100%);
}
.page-hero > .container { position: relative; padding-top: 52px; padding-bottom: 44px; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { font-size: clamp(27px, 4.6vw, 40px); line-height: 1.1; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.hero-copy p { color: #d7d7de; margin: 0 0 12px; }

/* Promo band: a promo underlay (coins / empty-zone art) shown as a background with an
   overlaid heading + CTA in the empty zone. NEVER a bare <img>. */
.promo-band {
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 14px;
  background-size: cover; background-position: center right; background-repeat: no-repeat;
  min-height: 200px; display: flex; align-items: center; padding: 30px 34px; margin: 8px 0 24px;
}
.promo-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,13,15,0.95) 0%, rgba(13,13,15,0.72) 46%, rgba(13,13,15,0.2) 100%);
}
.promo-band .promo-copy { position: relative; max-width: 62%; }
.promo-band h3 { margin: 0 0 6px; font-size: clamp(19px, 2.6vw, 25px); font-weight: 800; }
.promo-band p { margin: 0 0 15px; color: var(--muted); }

/* Promo cards: promo art as a card background with overlaid label + CTA (grid). */
.promo-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: var(--content); margin-left: auto; margin-right: auto; }
.promo-card {
  position: relative; display: flex; align-items: flex-end; min-height: 200px;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center; padding: 20px;
}
.promo-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,13,15,0.94) 0%, rgba(13,13,15,0.35) 62%, rgba(13,13,15,0.05) 100%);
}
.promo-card:hover { border-color: var(--gold); text-decoration: none; }
.promo-card .promo-cc { position: relative; width: 100%; }
.promo-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.promo-card p { margin: 0 0 12px; color: #c9c9d2; font-size: 14px; }

/* Finished banner creatives (text already baked in, no empty zone) — shown as a linked image. */
.banner-full { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin: 0 0 22px; }
.banner-full img { width: 100%; display: block; }

@media (max-width: 600px) {
  .promo-band .promo-copy { max-width: 100%; }
  .promo-band { background-position: center; }
}

/* CTA strip */
.cta-strip { background: linear-gradient(135deg, #241a06, #0d0d0f); border: 1px solid var(--border); border-radius: 16px; padding: 34px 26px; text-align: center; max-width: var(--content); margin-left: auto; margin-right: auto; }
.cta-strip h2 { margin: 0 0 10px; }
.cta-strip p { color: var(--muted); margin: 0 0 20px; }

/* FAQ */
.faq { max-width: var(--content); margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin: 0 0 10px; background: var(--panel); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; color: var(--gold); font-weight: 700; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: #0a0a0c; border-top: 1px solid var(--border); margin-top: 20px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 46px 20px 30px; display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-brand img { height: 26px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 0 0 10px; max-width: 320px; }
.footer-contact a { color: var(--gold); }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: #cfcfd6; font-size: 14px; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }

.rg-bar { max-width: var(--maxw); margin: 0 auto; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--border); }
.age-badge { flex: none; background: var(--gold); color: #1a1205; font-weight: 800; border-radius: 7px; padding: 4px 9px; font-size: 14px; }
.rg-bar p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.rg-bar a { color: var(--gold); }
.footer-legal { border-top: 1px solid var(--border); }
.footer-legal p { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px; color: #6f6f7a; font-size: 12.5px; }

/* ===== Utilities ===== */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .nav-actions .btn-ghost { display: none; }
}
@media (min-width: 1024px) {
  .burger { display: none; }
  .mobile-panel { display: none !important; }
  .primary-nav { display: flex; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-inner { padding: 46px 20px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
