/* MadCasino FR — Archetype 6: Swiss Neo-Editorial High-Contrast Light (White + Ink Black + Hot Magenta #ff004c, 100% unique md-* classes) */
:root {
  --md-bg: #f6f6f8;
  --md-white: #ffffff;
  --md-ink: #111114;
  --md-body: #32323a;
  --md-muted: #666672;
  --md-hot: #ff004c;
  --md-hot-deep: #d90040;
  --md-violet: #7c3aed;
  --md-ok: #059669;
  --md-line: #e4e4ea;
  --md-hard: #18181e;
  --md-r: 14px;
  --md-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--md-font); background: var(--md-bg); color: var(--md-ink);
  line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--md-hot-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.md-skip {
  position: absolute; left: -9999px; top: 8px; background: var(--md-hot); color: #fff;
  padding: 8px 14px; border-radius: 8px; font-weight: 800;
}
.md-skip:focus { left: 12px; z-index: 9999; }

.md-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Crisp White Swiss Header (ideal for black MAD + magenta lightning logo) */
.md-hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--md-ink);
}
.md-hdr-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; }
.md-logo img { height: 28px; width: auto; }
.md-hbtns { display: flex; align-items: center; gap: 8px; }
.md-age {
  font-size: 11px; font-weight: 900; padding: 3px 7px; border-radius: 5px;
  background: #111114; color: #fff;
}
.md-btn-in {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 700;
  color: var(--md-ink); border: 1.5px solid var(--md-ink); background: #fff;
}
.md-btn-in:hover { background: #f1f1f5; text-decoration: none; }
.md-btn-go {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 800;
  background: var(--md-hot); color: #fff; border: 1.5px solid var(--md-hot);
}
.md-btn-go:hover { background: var(--md-hot-deep); text-decoration: none; }

.md-catbar { background: #111114; padding: 7px 0; }
.md-catnav { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.md-catnav::-webkit-scrollbar { display: none; }
.md-clink {
  white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #e4e4eb;
  padding: 4px 10px; border-radius: 6px; transition: background .14s;
}
.md-clink:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.md-clink[aria-current="page"] { background: var(--md-hot); color: #fff; font-weight: 800; }

.md-main { padding: 22px 0 48px; }
.md-crumb { font-size: 12.5px; color: var(--md-muted); margin-bottom: 14px; display: flex; gap: 7px; }
.md-crumb a { color: var(--md-muted); }

/* Primary Actions */
.md-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; border: 2px solid var(--md-ink); cursor: pointer;
  font-size: 14.5px; font-weight: 800; color: #fff; background: var(--md-hot);
  box-shadow: 3px 3px 0 var(--md-ink); transition: transform .12s, box-shadow .12s;
}
.md-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--md-ink); text-decoration: none; }
.md-cta:disabled { opacity: .92; cursor: default; transform: none; }
.md-cta-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 800;
  color: var(--md-ink); border: 2px solid var(--md-ink); background: #fff;
}
.md-cta-light:hover { background: #f1f1f5; text-decoration: none; }

/* Archetype 6 Home: Bold Neo-Editorial Dark Poster Banner + 4-Stat Brutalist Bar */
.md-poster {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--md-ink); box-shadow: 5px 5px 0 var(--md-ink);
  background: #0f0f13; color: #fff; min-height: 315px;
  display: flex; align-items: center; margin-bottom: 16px;
}
.md-poster-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.md-poster-in { position: relative; z-index: 2; padding: 30px 32px; max-width: 56%; }
.md-tag-hot {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 5px; background: var(--md-hot); color: #fff; margin-bottom: 10px;
}
.md-poster-in h1 { margin: 0 0 6px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.md-offer { font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; color: #ff4d82; line-height: 1.12; }
.md-sub { font-size: 14.5px; color: #e4e4eb; margin: 6px 0 18px; }
.md-pacts { display: flex; flex-wrap: wrap; gap: 10px; }

.md-statbar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 22px;
}
.md-stat {
  background: var(--md-white); border: 1.5px solid var(--md-ink); border-radius: 12px;
  padding: 13px 16px; box-shadow: 3px 3px 0 rgba(17, 17, 20, .08);
}
.md-stat span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--md-muted); }
.md-stat strong { font-size: 16px; color: var(--md-ink); }

/* Subpage Header */
.md-subhead {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr); gap: 22px;
  align-items: center; background: var(--md-white); border: 1.5px solid var(--md-ink);
  box-shadow: 4px 4px 0 rgba(17, 17, 20, .09); border-radius: var(--md-r); padding: 24px; margin-bottom: 20px;
}
.md-subhead.md-simple { grid-template-columns: 1fr; }
.md-subhead h1 { margin: 0 0 8px; font-size: clamp(24px, 2.7vw, 32px); line-height: 1.16; }
.md-subhead p { margin: 0 0 16px; color: var(--md-body); font-size: 15px; }
.md-subart img { border-radius: 11px; border: 1.5px solid var(--md-ink); width: 100%; }
.md-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--md-muted); margin-top: 14px; }
.md-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Filterable Game Showcase */
.md-lobby {
  background: var(--md-white); border: 1.5px solid var(--md-ink);
  border-radius: var(--md-r); padding: 20px; margin-bottom: 22px;
}
.md-lobby-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.md-lobby-hd h2 { margin: 0; font-size: 20px; }
.md-lobby-hd p { margin: 2px 0 0; font-size: 13.5px; color: var(--md-muted); }
.md-fbar { display: flex; flex-wrap: wrap; gap: 6px; }
.md-fbar button {
  padding: 6px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 800;
  border: 1.5px solid var(--md-ink); background: #fff; color: var(--md-ink); cursor: pointer;
}
.md-fbar button.md-sel { background: var(--md-hot); color: #fff; border-color: var(--md-hot); }

.md-ggrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.md-gcard { background: #fafafa; border: 1.5px solid var(--md-line); border-radius: 12px; overflow: hidden; transition: transform .14s, border-color .14s; }
.md-gcard:hover { transform: translateY(-2px); border-color: var(--md-ink); }
.md-gart { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #111114; }
.md-gart img { width: 100%; height: 100%; object-fit: cover; }
.md-gov {
  position: absolute; inset: 0; background: rgba(17, 17, 20, .82);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  opacity: 0; transition: opacity .15s; padding: 10px;
}
.md-gcard:hover .md-gov, .md-gcard:focus-within .md-gov { opacity: 1; }
.md-gbtn { width: 100%; padding: 7px 10px; border-radius: 8px; border: 0; font-size: 12px; font-weight: 800; cursor: pointer; background: var(--md-hot); color: #fff; }
.md-gbtn.md-demo { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.md-gbtn:disabled { opacity: .92; cursor: default; }
.md-gtxt { padding: 8px 9px; }
.md-gtxt strong { display: block; font-size: 12.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--md-ink); }
.md-gtxt small { font-size: 11px; color: var(--md-muted); }

/* Calculator & KYC */
.md-calc, .md-kyc {
  background: var(--md-white); border: 1.5px solid var(--md-ink); border-left: 6px solid var(--md-hot);
  border-radius: var(--md-r); padding: 20px 22px; margin-bottom: 22px;
}
.md-calc h2, .md-kyc h2 { margin: 0 0 6px; font-size: 19px; }
.md-calc-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(170px, .7fr); gap: 16px; margin: 14px 0; align-items: center; }
.md-calc-row label { display: block; font-size: 13px; font-weight: 700; color: var(--md-ink); margin-bottom: 6px; }
.md-calc-row input[type="range"] { width: 100%; accent-color: var(--md-hot); }
.md-calc-row select { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1.5px solid var(--md-ink); background: #fff; font-size: 13.5px; font-weight: 600; }
.md-calc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.md-cbox { background: #fafafa; border: 1.5px solid var(--md-line); border-radius: 10px; padding: 10px 12px; }
.md-cbox span { display: block; font-size: 11.5px; color: var(--md-muted); }
.md-cbox strong { font-size: 18px; color: var(--md-hot-deep); }

.md-kyc-list { display: grid; gap: 8px; margin: 12px 0; }
.md-kyc-list label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: #fafafa; border: 1px solid var(--md-line); font-size: 14px; cursor: pointer; }
.md-kyc-list input { width: 17px; height: 17px; accent-color: var(--md-hot); }
.md-kyc-out { font-size: 13.5px; font-weight: 800; color: var(--md-hot-deep); }
.md-kyc-out.md-ok { color: var(--md-ok); }

/* Editorial Article + Collapsed TOC */
.md-toc { background: var(--md-white); border: 1.5px solid var(--md-ink); border-radius: 11px; padding: 11px 16px; margin-bottom: 18px; }
.md-toc summary { cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--md-ink); }
.md-toc-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.md-toc-links a { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 7px; background: #f4f4f7; border: 1px solid var(--md-line); color: var(--md-ink); }
.md-toc-links a:hover { border-color: var(--md-hot); color: var(--md-hot-deep); text-decoration: none; }

.md-prose { background: var(--md-white); border: 1.5px solid var(--md-ink); border-radius: var(--md-r); padding: 28px 32px; margin-bottom: 22px; }
.md-prose section { margin-bottom: 30px; }
.md-prose section:last-child { margin-bottom: 0; }
.md-prose h2 { margin: 0 0 12px; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.24; padding-bottom: 8px; border-bottom: 2px solid var(--md-line); }
.md-prose p { margin: 0 0 13px; color: var(--md-body); }

.md-tbl { overflow-x: auto; margin: 14px 0; border-radius: 10px; border: 1.5px solid var(--md-ink); }
.md-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-tbl th { text-align: left; padding: 11px 13px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: #111114; color: #fff; }
.md-tbl td { padding: 10px 13px; border-bottom: 1px solid var(--md-line); color: var(--md-body); }
.md-tbl tr:last-child td { border-bottom: 0; }

.md-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin: 18px 0; padding: 16px 20px; border-radius: 12px; background: #fff0f4; border: 1.5px solid var(--md-hot);
}
.md-strip strong { display: block; font-size: 16px; color: var(--md-ink); }
.md-strip p { margin: 2px 0 0; font-size: 13.5px; color: var(--md-body); }

.md-steps { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.md-step { display: flex; gap: 12px; padding: 14px; border-radius: 11px; background: #fafafa; border: 1.5px solid var(--md-line); }
.md-sn { flex: 0 0 28px; height: 28px; border-radius: 7px; background: var(--md-hot); color: #fff; font-weight: 900; font-size: 13.5px; display: grid; place-items: center; }
.md-step strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.md-step p { margin: 0; font-size: 13.5px; }

.md-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.md-pc-col { padding: 16px; border-radius: 11px; background: #fafafa; border: 1.5px solid var(--md-line); }
.md-pc-col h3 { margin: 0 0 9px; font-size: 15px; }
.md-pc-col.md-pro h3 { color: var(--md-ok); }
.md-pc-col.md-con h3 { color: var(--md-hot-deep); }
.md-pc-col ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--md-body); }

.md-faq { display: grid; gap: 9px; }
.md-faq details { background: #fafafa; border: 1.5px solid var(--md-line); border-radius: 10px; padding: 12px 15px; }
.md-faq summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--md-ink); }
.md-faq details p { margin: 8px 0 0; font-size: 14px; }

.md-author { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 15px 18px; border-radius: 11px; background: #fafafa; border: 1.5px solid var(--md-line); }
.md-ava { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--md-hot); color: #fff; font-weight: 900; display: grid; place-items: center; }
.md-arole { font-size: 12.5px; color: var(--md-hot-deep); font-weight: 700; }
.md-author p { margin: 4px 0 0; font-size: 13.5px; }

/* Reviews */
.md-revs { background: var(--md-white); border: 1.5px solid var(--md-ink); border-radius: var(--md-r); padding: 22px 24px; }
.md-rev-grid { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.md-rev-card { background: #fafafa; border: 1.5px solid var(--md-line); border-radius: 11px; padding: 14px; }
.md-stars { color: var(--md-hot); font-size: 14px; }
.md-rev-card h3 { margin: 6px 0 5px; font-size: 15px; }
.md-rev-card p { margin: 0; font-size: 13.5px; color: var(--md-body); }
.md-rform { display: grid; gap: 10px; background: #fafafa; border: 1.5px solid var(--md-line); border-radius: 11px; padding: 16px; }
.md-rrow { display: grid; grid-template-columns: 1fr 180px; gap: 10px; }
.md-rform input, .md-rform select, .md-rform textarea { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1.5px solid var(--md-line); background: #fff; font-family: inherit; font-size: 14px; }
.md-rform textarea { min-height: 74px; resize: vertical; }
.md-rout { font-size: 13px; color: var(--md-ok); font-weight: 700; }

/* Dark High-Contrast Footer with White Pill for Logo */
.md-foot { background: #111114; color: #d4d4dc; padding: 32px 0 42px; }
.md-foot-col { display: grid; gap: 16px; }
.md-foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.md-logo-pill { display: inline-flex; background: #fff; padding: 6px 12px; border-radius: 8px; }
.md-logo-pill img { height: 24px; width: auto; }
.md-socs { display: flex; gap: 8px; }
.md-soc { width: 38px; height: 38px; border-radius: 10px; background: #1f1f26; border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; cursor: pointer; }
.md-flinks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.md-flinks a { color: #d4d4dc; }
.md-flinks a:hover { color: #ff4d82; }
.md-pays { display: flex; flex-wrap: wrap; gap: 8px; }
.md-pay { background: #1f1f26; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: 6px 10px; display: inline-flex; align-items: center; }
.md-pay img { height: 18px; width: auto; }
.md-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.md-badges a { display: inline-flex; align-items: center; transition: transform .14s; }
.md-badges a:hover { transform: translateY(-1px); }
.md-badges img { height: 24px; width: auto; }
.md-help { font-size: 13px; color: #a1a1aa; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.md-help a { color: #ff4d82; }
.md-help ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* Mobile Dock & Drawer */
.md-dock, .md-bg, .md-drawer { display: none; }

@media (max-width: 960px) {
  .md-catbar { display: none; }
  .md-poster { min-height: 225px; }
  .md-poster-in { max-width: 78%; padding: 18px; }
  .md-statbar { grid-template-columns: repeat(2, 1fr); }
  .md-subhead { grid-template-columns: 1fr; padding: 16px; }
  .md-ggrid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .md-gcard { flex: 0 0 132px; scroll-snap-align: start; }
  .md-calc-row, .md-steps, .md-pc, .md-rev-grid, .md-rrow { grid-template-columns: 1fr; }
  .md-calc-out { grid-template-columns: repeat(2, 1fr); }
  .md-prose { padding: 18px 16px; }
  .md-foot { padding: 26px 0 92px; }

  .md-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: #111114; border-top: 2px solid var(--md-hot);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .md-dbtn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 700; color: #a1a1aa; background: none; border: 0; cursor: pointer; padding: 4px 2px;
  }
  .md-dbtn svg { width: 20px; height: 20px; }
  .md-dbtn[aria-current="page"] { color: #ff4d82; }
  .md-dfab {
    width: 38px; height: 38px; border-radius: 50%; margin-top: -16px;
    background: var(--md-hot); color: #fff; display: grid; place-items: center;
  }
  .md-bg { position: fixed; inset: 0; z-index: 70; background: rgba(17, 17, 20, .65); }
  .md-bg.md-on { display: block; }
  .md-drawer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    max-height: 78vh; overflow-y: auto; background: #fff;
    border-top: 2px solid var(--md-ink); border-radius: 18px 18px 0 0; padding: 16px 16px 28px;
  }
  .md-drawer.md-on { display: block; }
  .md-dhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--md-line); }
  .md-dlinks { display: grid; gap: 6px; }
  .md-dlinks a { padding: 8px 10px; border-radius: 8px; background: #f4f4f7; color: var(--md-ink); font-weight: 700; font-size: 14px; }
}
