/* Mafia — speakeasy noir / gold */
html, body { margin: 0; padding: 0; background: #0b0705; }
body.mf-body {
  min-height: 100%; overflow-x: hidden;
  font-family: "EB Garamond", Georgia, serif;
  color: #e8cfc3; -webkit-font-smoothing: antialiased;
  background-color: #0b0705;
  background-image: linear-gradient(rgba(8,5,3,.72), rgba(8,5,3,.86)), var(--mf-bg);
  background-size: cover; background-position: center top; background-attachment: fixed;
}
* { box-sizing: border-box; }
a { color: #f59f00; text-decoration: none; }
a:hover { color: #ffd43b; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #ffd43b; outline-offset: 2px;
}

@keyframes mfMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mf-shell { min-height: 100vh; }

/* Header */
.mf-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px clamp(14px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(10,6,4,.96), rgba(10,6,4,.78));
  border-bottom: 1px solid rgba(245,159,0,.35);
  backdrop-filter: blur(6px);
}
.mf-header-row {
  display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px);
  flex-wrap: wrap; max-width: 1400px; margin: 0 auto;
}
.mf-brand {
  width: clamp(160px, 24vw, 240px); height: clamp(50px, 7.2vw, 72px);
  flex: 0 0 auto; display: flex; align-items: center;
}
.mf-logo--header {
  width: 100%; height: 100%; object-fit: contain; object-position: left center; display: block;
}
.mf-nav-slot--desktop { flex: 1 1 240px; min-width: 0; }
.mf-nav-slot--desktop .mf-main-nav {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap; font-family: Cinzel, serif; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase;
}
.mf-nav-slot--desktop .mf-nav-link { color: #e8cfc3; white-space: nowrap; }
.mf-nav-slot--desktop .mf-nav-link:hover { color: #f59f00; }
.mf-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.mf-burger {
  display: none; width: 44px; height: 44px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid rgba(245,159,0,.5);
  border-radius: 3px; cursor: pointer;
}
.mf-burger span { display: block; width: 20px; height: 2px; background: #f8e3b0; }
.mf-nav-slot--mobile {
  width: 100%; max-width: 1400px; margin: 10px auto 0;
  padding-top: 10px; border-top: 1px solid rgba(245,159,0,.25);
}
.mf-nav-slot--mobile[hidden] { display: none !important; }
.mf-nav-slot--mobile .mf-main-nav {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: Cinzel, serif; font-size: 15px;
  letter-spacing: .18em; text-transform: uppercase;
}
.mf-nav-slot--mobile .mf-nav-link {
  color: #e8cfc3; padding: 12px 0; width: 100%; text-align: center;
}
.mf-nav-slot--mobile .mf-nav-link:hover { color: #f59f00; }

/* Buttons Example 1 */
.mf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Cinzel, serif; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: background .18s ease, color .18s ease, filter .18s ease;
  text-decoration: none;
}
.mf-btn--ghost {
  font-size: 12px; padding: 11px 18px; min-height: 44px;
  color: #f0d9a8; background: transparent; border: 1px solid rgba(245,159,0,.55);
}
.mf-btn--ghost:hover { background: rgba(245,159,0,.12); color: #ffd43b; }
.mf-btn--gold {
  font-size: 12px; padding: 11px 18px; min-height: 44px; font-weight: 700;
  color: #1a0e06; background: linear-gradient(180deg, #f8d47a, #f59f00);
  border: 1px solid #f8d47a; box-shadow: 0 2px 12px rgba(245,159,0,.25);
}
.mf-btn--gold:hover { filter: brightness(1.08); color: #1a0e06; }
.mf-btn--claim {
  font-size: clamp(10px, 1.1vw, 15px); font-weight: 700; letter-spacing: .2em;
  padding: clamp(10px, 1.1vw, 16px) clamp(18px, 2.4vw, 34px); min-height: 48px;
  color: #1a0e06; background: linear-gradient(180deg, #f8d47a, #f59f00);
  border: 0; border-radius: 3px; box-shadow: 0 6px 24px rgba(245,159,0,.32);
}
.mf-btn--claim:hover { filter: brightness(1.08); color: #1a0e06; }
.mf-btn--more {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  padding: 14px 36px; min-height: 48px;
  color: #f8e3b0; background: rgba(0,0,0,.45);
  border: 1px solid rgba(245,159,0,.55);
}
.mf-btn--more:hover { background: rgba(245,159,0,.14); color: #ffd43b; }

/* Hero */
.mf-hero-wrap { max-width: 1400px; margin: 0 auto; padding: clamp(18px, 3vw, 40px) clamp(14px, 3vw, 36px) 0; }
.mf-hero {
  position: relative; border: 1px solid rgba(245,159,0,.35); border-radius: 6px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.mf-hero-img { display: block; width: 100%; height: auto; }
.mf-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,6,4,0) 40%, rgba(10,6,4,.55) 62%, rgba(10,6,4,.8) 100%);
  pointer-events: none;
}
.mf-hero-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center; gap: clamp(12px, 2vw, 24px);
  padding: 0 clamp(12px, 4vw, 64px); text-align: right;
}
.mf-hero-title {
  margin: 0; max-width: min(520px, 52%);
  font-family: Cinzel, serif; font-weight: 900;
  font-size: clamp(18px, 3.4vw, 54px); line-height: 1.1; letter-spacing: .02em;
  color: #f8e3b0; text-shadow: 0 4px 24px rgba(0,0,0,.85); text-wrap: balance;
}

/* Dividers */
.mf-divider {
  display: flex; align-items: center; gap: 12px;
  max-width: 1400px; margin: clamp(22px, 3vw, 40px) auto;
  padding: 0 clamp(14px, 3vw, 36px);
}
.mf-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,159,0,.5));
}
.mf-divider-line--rev { background: linear-gradient(90deg, rgba(245,159,0,.5), transparent); }
.mf-divider--dash .mf-divider-line {
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(245,159,0,.45) 0 1px, transparent 1px 5px);
}
.mf-divider--dash .mf-divider-line--rev {
  background: repeating-linear-gradient(90deg, rgba(245,159,0,.45) 0 1px, transparent 1px 5px);
}
.mf-divider-mark { color: #f59f00; font-size: 14px; letter-spacing: .3em; line-height: 1; }

/* Sections */
.mf-section-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 36px);
}
.mf-section-head {
  margin-bottom: 22px; padding: 0; max-width: none;
}
.mf-section-title {
  font-family: Cinzel, serif; font-weight: 900;
  font-size: clamp(22px, 2.6vw, 32px); letter-spacing: .14em;
  text-transform: uppercase; color: #f8e3b0; margin: 0;
}
.mf-section-title--center {
  text-align: center; font-size: 15px; font-weight: 700;
  letter-spacing: .32em; color: #bd8c73; margin: 0 0 18px;
}

/* Providers */
.mf-prov-marquee {
  overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mf-prov-track {
  display: flex; width: max-content;
  animation: mfMarquee 70s linear infinite;
}
.mf-prov {
  flex: 0 0 auto; width: 130px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px; opacity: .72;
}
.mf-prov-img, .mf-pay-img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  filter: brightness(0) saturate(100%) invert(63%) sepia(98%) saturate(1352%) hue-rotate(2deg) brightness(95%) contrast(101%);
}

/* Games */
#games { padding: clamp(28px, 4vw, 48px) 0 0; }
.mf-games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.mf-game { display: flex; flex-direction: column; gap: 8px; }
.mf-game.is-hidden { display: none !important; }
.mf-game-card {
  position: relative; display: block; border: 1px solid #a46c52; border-radius: 6px;
  padding: 5px; background: linear-gradient(160deg, rgba(245,159,0,.16), rgba(0,0,0,.5));
  box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: transform .2s ease;
  overflow: hidden;
}
.mf-game-card:hover { transform: translateY(-4px); }
.mf-game-card img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px;
}
.mf-game-frame {
  position: absolute; inset: 5px; border: 1px solid rgba(248,227,176,.35);
  border-radius: 4px; pointer-events: none; z-index: 2;
}
.mf-corner {
  position: absolute; width: 10px; height: 10px; z-index: 3; pointer-events: none;
}
.mf-corner--tl { top: 9px; left: 9px; border-top: 1px solid #f59f00; border-left: 1px solid #f59f00; }
.mf-corner--tr { top: 9px; right: 9px; border-top: 1px solid #f59f00; border-right: 1px solid #f59f00; }
.mf-corner--bl { bottom: 9px; left: 9px; border-bottom: 1px solid #f59f00; border-left: 1px solid #f59f00; }
.mf-corner--br { bottom: 9px; right: 9px; border-bottom: 1px solid #f59f00; border-right: 1px solid #f59f00; }
.mf-game-likes {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: "Special Elite", monospace; font-size: 14px; color: #bd8c73;
}
.mf-more-wrap { display: flex; justify-content: center; margin-top: clamp(22px, 3vw, 36px); }

/* Content */
.mf-prose-section { padding: clamp(28px, 4vw, 48px) clamp(14px, 3vw, 36px); }
.mf-prose-section--solo { padding-top: clamp(28px, 4vw, 48px); }
.mf-article {
  max-width: 1000px; margin: 0 auto;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: #ddc9bd;
}
.mf-content .main_container,
.mf-content .main_left,
.mf-content .main_right {
  display: block !important; width: 100% !important; max-width: none !important;
  float: none !important; margin: 0 !important; padding: 0 !important;
}
.mf-solo-title {
  font-family: Cinzel, serif; font-weight: 900;
  font-size: clamp(22px, 2.8vw, 34px); letter-spacing: .1em;
  text-transform: uppercase; color: #f8e3b0; margin: 0 0 18px; text-align: center;
}
.mf-rules-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.mf-rules-title {
  margin: 0; font-family: Cinzel, serif; font-weight: 900;
  font-size: clamp(22px, 2.8vw, 34px); letter-spacing: .1em;
  text-transform: uppercase; color: #f8e3b0;
}
.mf-rules-ornament {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px;
}
.mf-rules-line {
  width: min(120px, 22vw); height: 1px;
  background: linear-gradient(90deg, transparent, #f59f00);
}
.mf-rules-line--rev { background: linear-gradient(90deg, #f59f00, transparent); }
.mf-rules-mark { color: #f59f00; font-size: 14px; line-height: 1; }

/* CMS section titles = mock h3 ledger style */
.mf-content h1 {
  font-family: Cinzel, serif; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: #f8e3b0; margin: 0 0 14px; text-align: center;
  font-size: clamp(22px, 2.8vw, 34px);
}
.mf-content h2,
.mf-content h3 {
  font-family: Cinzel, serif; font-weight: 700;
  font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .12em;
  text-transform: uppercase; color: #f0d9a8; text-align: left;
  margin: 36px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,159,0,.3);
}
.mf-content p { margin: 0 0 20px; color: #ddc9bd; }
.mf-content a { color: #f59f00; }
.mf-content b, .mf-content strong { color: #f8e3b0; font-weight: 600; }

/* Lists — suit markers; block flow so <b> stays inline with text */
.mf-content ul {
  list-style: none !important; margin: 0 0 28px; padding: 0 !important;
}
.mf-content ul > li {
  position: relative;
  display: block;
  font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: #ddc9bd;
  padding: 0 0 0 1.5em !important; margin: 0 0 12px !important;
  background: none !important; border: 0 !important;
}
.mf-content ul > li::before {
  content: "\2660"; position: absolute; left: 0; top: 0.15em;
  color: #f59f00; line-height: 1.4; font-size: 16px;
  width: 1.2em; text-align: center;
}
.mf-content ul > li:nth-child(4n+2)::before { content: "\2666"; color: #c92a2a; }
.mf-content ul > li:nth-child(4n+3)::before { content: "\2665"; color: #c92a2a; }
.mf-content ul > li:nth-child(4n+4)::before { content: "\2663"; color: #f59f00; }
.mf-content ul > li b,
.mf-content ul > li strong,
.mf-content ol > li b,
.mf-content ol > li strong {
  display: inline !important; font-weight: 600; color: #f8e3b0;
}

.mf-content ol {
  list-style: none !important; margin: 0 0 28px; padding: 0 !important;
  counter-reset: mf-step;
}
.mf-content ol > li {
  position: relative;
  display: block;
  font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: #ddc9bd;
  counter-increment: mf-step;
  padding: 0 0 0 50px !important; margin: 0 0 16px !important;
}
.mf-content ol > li::before { content: none; }
.mf-content ol > li > .mf-step {
  position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  transform: rotate(45deg);
  border: 1px solid #f59f00; color: #f8e3b0;
  font-family: Cinzel, serif; font-size: 13px; line-height: 1;
  background: rgba(245,159,0,.06);
}
.mf-content ol > li > .mf-step > span { transform: rotate(-45deg); display: block; }

/* Quote — cream ledger card */
.mf-content blockquote {
  margin: 28px 0; position: relative;
  background: linear-gradient(180deg, rgba(232,207,195,.95), rgba(212,175,156,.9));
  color: #33150e; padding: 28px 26px 22px;
  border: 1px solid #74392a; box-shadow: 0 14px 40px rgba(0,0,0,.5);
  transform: rotate(-.5deg); font-style: normal;
  font-family: "Special Elite", monospace;
  font-size: clamp(17px, 2vw, 22px); line-height: 1.55;
}
.mf-content blockquote::before {
  content: "\201C";
  position: absolute; top: -6px; left: 14px;
  font-family: Cinzel, serif; font-size: 76px; line-height: 1;
  color: rgba(116,57,42,.35);
}
.mf-content blockquote p {
  margin: 0; color: #33150e;
  font-family: "Special Elite", monospace;
  font-size: clamp(17px, 2vw, 22px); line-height: 1.55;
}
.mf-content blockquote footer,
.mf-content blockquote cite {
  display: block; margin-top: 16px;
  font-family: Cinzel, serif; font-size: 13px; font-style: normal;
  letter-spacing: .2em; text-transform: uppercase; color: #74392a;
}

/* Ledger tables */
.mf-content .mf-table-wrap {
  overflow-x: auto; margin: 0 0 28px;
  border: 1px solid rgba(164,108,82,.7);
  -webkit-overflow-scrolling: touch;
}
.mf-content table {
  width: 100%; border-collapse: collapse !important;
  border: 0 !important; border-spacing: 0 !important;
  font-size: clamp(14px, 1.4vw, 18px);
  background: rgba(0,0,0,.35); margin: 0;
}
.mf-content table th {
  text-align: left; padding: 12px 16px;
  font-family: Cinzel, serif; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: #f8e3b0;
  border: 0 !important; border-bottom: 1px solid rgba(245,159,0,.5) !important;
  background: linear-gradient(180deg, rgba(245,159,0,.18), rgba(0,0,0,.2));
}
.mf-content table td {
  padding: 12px 16px; color: #e8cfc3;
  border: 0 !important; border-bottom: 1px solid rgba(164,108,82,.35) !important;
  font-family: "Special Elite", monospace;
}
.mf-content table tr:nth-child(even) td { background: rgba(245,159,0,.05); }
.mf-content table tr:last-child td { border-bottom: 0 !important; }
.mf-content-cta { margin-top: 28px; display: flex; justify-content: center; }

/* FAQ accordion from CMS light blocks */
.mf-faq { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 0; }
.mf-faq-item {
  border: 1px solid rgba(164,108,82,.6); background: rgba(0,0,0,.4); overflow: hidden;
}
.mf-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; text-align: left; padding: 16px 18px; min-height: 52px;
  background: transparent; border: 0; cursor: pointer;
  font-family: Cinzel, serif; font-size: 16px; letter-spacing: .06em; color: #f8e3b0;
}
.mf-faq-q:hover { background: rgba(245,159,0,.06); }
.mf-faq-sign { color: #f59f00; font-size: 14px; flex: 0 0 auto; }
.mf-faq-a { padding: 0 18px 18px; font-size: 16px; line-height: 1.7; color: #ddc9bd; }
.mf-faq-a[hidden] { display: none !important; }

/* Native details in CMS content */
.mf-content details {
  border: 1px solid rgba(164,108,82,.6); background: rgba(0,0,0,.4);
  padding: 16px; margin: 0 0 12px;
}
.mf-content summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: Cinzel, serif; font-size: 16px; letter-spacing: .06em; color: #f8e3b0;
  cursor: pointer; list-style: none;
}
.mf-content summary::-webkit-details-marker { display: none; }

@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Winners */
#winners { padding: 0 0 clamp(36px, 5vw, 64px); }
.mf-winners-scroller {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 4px clamp(14px, 3vw, 36px) 18px;
  scroll-snap-type: x mandatory;
}
.mf-win {
  flex: 0 0 200px; scroll-snap-align: start;
  border: 1px solid rgba(164,108,82,.8);
  background: linear-gradient(180deg, rgba(20,12,8,.9), rgba(8,5,3,.95));
  padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.mf-win-frame {
  border: 1px solid rgba(245,159,0,.4); overflow: hidden;
  aspect-ratio: 2 / 3; background: #120c06;
}
.mf-win-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-win-nick {
  margin-top: 12px; font-family: "Special Elite", monospace;
  font-size: 13px; letter-spacing: .06em; color: #e8cfc3;
}
.mf-win-amt {
  margin-top: 2px; font-family: Cinzel, serif; font-weight: 700;
  font-size: 18px; color: #f59f00;
}

/* Footer */
.mf-footer {
  border-top: 1px solid rgba(245,159,0,.35);
  background: linear-gradient(180deg, rgba(8,5,3,.6), rgba(8,5,3,.95));
  padding: clamp(28px, 4vw, 52px) clamp(14px, 3vw, 36px) 28px;
}
.mf-footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.mf-nav-slot--footer .mf-footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 11px clamp(18px, 4vw, 36px);
  font-family: Cinzel, serif; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase;
}
.mf-footer-link { color: #e8cfc3; }
.mf-footer-link:hover { color: #f59f00; }
.mf-pay-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.mf-pay { width: 64px; height: 28px; flex: 0 0 auto; opacity: .7; }
.mf-footer-brand {
  width: clamp(170px, 34vw, 220px); height: clamp(52px, 10vw, 66px);
  display: flex; align-items: center; justify-content: center;
}
.mf-logo--footer {
  width: 100%; height: 100%; max-width: 220px; max-height: 66px;
  object-fit: contain; display: block; opacity: .85;
}
.mf-rg {
  margin: 0; max-width: 620px; text-align: center;
  font-size: 12.5px; line-height: 1.7; color: #a46c52;
}

@media (prefers-reduced-motion: reduce) {
  .mf-prov-track { animation: none !important; }
}

@media (max-width: 1100px) {
  .mf-games-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .mf-nav-slot--desktop { display: none !important; }
  .mf-burger { display: flex; }
  .mf-header-row { justify-content: space-between; }
  .mf-brand { width: 150px; height: 48px; }
  .mf-hero-inner {
    align-items: center; text-align: center;
    background: linear-gradient(180deg, transparent 20%, rgba(10,6,4,.88) 55%);
    justify-content: flex-end; padding-bottom: 28px;
  }
  .mf-hero-title { max-width: 92%; }
  .mf-btn--claim { width: min(100%, 320px); }
  .mf-hero-shade {
    background: linear-gradient(180deg, transparent 30%, rgba(10,6,4,.75) 100%);
  }
  .mf-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mf-win { flex: 0 0 160px; }
}

@media (max-width: 520px) {
  .mf-brand { width: 120px; height: 42px; }
  .mf-btn--ghost, .mf-btn--gold { padding: 10px 12px; font-size: 11px; }
  .mf-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
