/* 5777betcom.com CSS-only differentiation layer.
   HTML content and structure remain protected by site-differentiator. */

body[data-site-diff-page] {
  --sd-pink: #db2777;
  --sd-blue: #2563eb;
  --sd-ink: #1f2937;
  --sd-muted: #64748b;
  --sd-line: rgba(96, 165, 250, 0.22);
  --sd-pink-line: rgba(219, 39, 119, 0.22);
  --sd-panel: rgba(255, 255, 255, 0.88);
  --sd-soft: linear-gradient(135deg, rgba(244, 114, 182, 0.09), rgba(96, 165, 250, 0.1));
  width: 100%;
  overflow-x: clip;
}

html:has(body[data-site-diff-page]) {
  overflow-x: clip;
}

body[data-site-diff-page] .card-theme,
body[data-site-diff-page] .content-box,
body[data-site-diff-page] .accordion-item {
  box-shadow: 0 14px 36px rgba(61, 88, 145, 0.1);
}

/* Home: signal tiles, process rail, quote panels */
body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card) {
  counter-reset: sd-home-feature;
}

body[data-site-diff-page="home"] .feature-card {
  counter-increment: sd-home-feature;
  position: relative;
  min-height: 220px;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 8px 28px 8px 28px;
  background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(239,246,255,.86));
}

body[data-site-diff-page="home"] .feature-card::after {
  content: counter(sd-home-feature, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(37, 99, 235, 0.2);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-inline: 0;
}

body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card)::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--sd-pink), var(--sd-blue));
  opacity: .28;
}

body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"] {
  position: relative;
  z-index: 1;
  width: auto;
  padding: 0;
}

body[data-site-diff-page="home"] .step-card {
  min-height: 270px;
  border: 1px solid var(--sd-pink-line);
  border-radius: 28px 8px 28px 8px;
  background: rgba(255,255,255,.94);
}

body[data-site-diff-page="home"] .row:has(> .col-12:nth-child(3) > .testimonial-card) > .col-12:nth-child(even) .testimonial-card {
  transform: translateY(18px);
}

body[data-site-diff-page="home"] .testimonial-card {
  border-left: 5px solid var(--sd-pink);
  border-radius: 4px 24px 24px 4px;
  background: linear-gradient(90deg, rgba(244,114,182,.08), #fff 32%);
}

/* About: compact media ledger and framed reading panels */
body[data-site-diff-page="about-us"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) .feature-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  min-height: 0;
  padding: 22px;
  text-align: left !important;
  border: 0;
  border-bottom: 1px solid var(--sd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-site-diff-page="about-us"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) .feature-card .icon-box {
  grid-row: 1 / span 2;
  margin: 0 !important;
}

body[data-site-diff-page="about-us"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) .feature-card p {
  margin: 0;
}

/* The two long editorial cards reuse .feature-card in the source HTML but
   must not inherit the compact icon-ledger grid above. */
body[data-site-diff-page="about-us"] .row:has(> .col-lg-6:nth-child(2) > .feature-card) .feature-card {
  display: block;
  height: auto;
  min-height: 0;
  padding: 34px 36px;
  text-align: left !important;
  border: 1px solid var(--sd-line);
  border-left: 6px solid var(--sd-pink);
  border-radius: 6px 28px 28px 6px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.72));
  box-shadow: var(--sd-shadow);
}

body[data-site-diff-page="about-us"] .row:has(> .col-lg-6:nth-child(2) > .feature-card) .feature-card .icon-box {
  margin-bottom: 20px !important;
}

body[data-site-diff-page="about-us"] .content-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 26px 6px 26px 6px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.78));
}

body[data-site-diff-page="about-us"] .content-box::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 140px;
  height: 140px;
  border: 20px solid rgba(244,114,182,.08);
  border-radius: 50%;
}

body[data-site-diff-page="about-us"] .info-card {
  transform: translateY(16px);
  border-left: 6px solid var(--sd-blue);
  border-radius: 6px 28px 28px 6px;
}

/* Promotions: one-wide/two-compact showcase and coupon strips */
body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(3) > .promo-card) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-inline: 0;
}

body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(3) > .promo-card) > [class*="col-"] {
  width: auto;
  padding: 0;
}

body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(3) > .promo-card) > [class*="col-"]:first-child {
  grid-column: 1 / -1;
}

body[data-site-diff-page="current-promotions"] .promo-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--sd-pink-line);
  border-radius: 24px 24px 8px 24px;
  background: linear-gradient(135deg, rgba(253,242,248,.96), rgba(239,246,255,.92));
}

body[data-site-diff-page="current-promotions"] .promo-card::before,
body[data-site-diff-page="current-promotions"] .promo-card::after {
  content: "";
  position: absolute;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}

body[data-site-diff-page="current-promotions"] .promo-card::before { top: 30%; }
body[data-site-diff-page="current-promotions"] .promo-card::after { bottom: 30%; }

body[data-site-diff-page="current-promotions"] .feature-card {
  min-height: 0;
  padding: 22px;
  border: 0;
  border-left: 4px solid var(--sd-blue);
  border-radius: 4px 18px 18px 4px;
}

body[data-site-diff-page="current-promotions"] .tip-card {
  border: 1px dashed rgba(219,39,119,.34);
  border-radius: 18px 4px 18px 4px;
  background: rgba(255,255,255,.82);
}

/* FAQ: indexed categories and compact accordion rows */
body[data-site-diff-page="faq"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
  counter-reset: sd-faq;
}

body[data-site-diff-page="faq"] .feature-card {
  counter-increment: sd-faq;
  position: relative;
  min-height: 190px;
  padding-top: 54px;
  border: 1px solid var(--sd-line);
  border-radius: 12px 26px;
}

body[data-site-diff-page="faq"] .feature-card::before {
  content: counter(sd-faq, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 20px;
  color: var(--sd-pink);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
}

body[data-site-diff-page="faq"] .accordion-item {
  margin-bottom: 12px;
  overflow: hidden;
  border: 0;
  border-left: 5px solid rgba(37,99,235,.55);
  border-radius: 4px 18px 18px 4px !important;
  background: rgba(255,255,255,.88);
}

body[data-site-diff-page="faq"] .content-box {
  border: 1px solid var(--sd-pink-line);
  border-radius: 28px 8px;
  background: var(--sd-soft);
}

/* Shared game-page reading panels */
body[data-site-diff-page="pirate-fishing"] .content-box,
body[data-site-diff-page="lottery"] .content-box,
body[data-site-diff-page="fortune-gems-2"] .content-box,
body[data-site-diff-page="monster-hi-lo"] .content-box,
body[data-site-diff-page="jackpot-bingo"] .content-box,
body[data-site-diff-page="multiple-bets"] .content-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  box-shadow: 0 16px 42px rgba(61,88,145,.09);
}

/* Pirate Fishing: balanced 3-column ocean bento and indexed tips */
body[data-site-diff-page="pirate-fishing"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-inline: 0;
}

body[data-site-diff-page="pirate-fishing"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"] {
  width: auto;
  padding: 0;
}

body[data-site-diff-page="pirate-fishing"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:first-child,
body[data-site-diff-page="pirate-fishing"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:last-child {
  grid-column: span 2;
}

body[data-site-diff-page="pirate-fishing"] .feature-card {
  min-height: 210px;
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 28px 8px 28px 8px;
  background: linear-gradient(145deg, rgba(239,246,255,.96), rgba(255,255,255,.88));
}

body[data-site-diff-page="pirate-fishing"] .row:has(> .col-12:nth-child(3) > .tip-card) {
  counter-reset: sd-pirate-tip;
}

body[data-site-diff-page="pirate-fishing"] .tip-card {
  counter-increment: sd-pirate-tip;
  position: relative;
  min-height: 0;
  padding: 22px 22px 22px 72px;
  border: 0;
  border-left: 3px solid rgba(37,99,235,.45);
  border-radius: 0 20px 20px 0;
}

body[data-site-diff-page="pirate-fishing"] .tip-card::before {
  content: counter(sd-pirate-tip);
  position: absolute;
  left: 18px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--sd-blue), #38bdf8);
  font-weight: 800;
}

body[data-site-diff-page="pirate-fishing"] .content-box::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 46px;
  height: 46px;
  border: 8px solid rgba(56,189,248,.11);
  border-radius: 50%;
}

/* Lottery: numbered draw ledger and result slips */
body[data-site-diff-page="lottery"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
  counter-reset: sd-draw;
}

body[data-site-diff-page="lottery"] .feature-card {
  counter-increment: sd-draw;
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  min-height: 0;
  padding: 22px;
  border: 0;
  border-bottom: 1px solid var(--sd-pink-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-site-diff-page="lottery"] .feature-card .icon-box {
  grid-row: 1 / span 2;
  margin: 0 !important;
}

body[data-site-diff-page="lottery"] .feature-card::after {
  content: counter(sd-draw, decimal-leading-zero);
  position: absolute;
  right: 12px;
  color: rgba(219,39,119,.16);
  font-size: 1.5rem;
  font-weight: 900;
}

body[data-site-diff-page="lottery"] .tip-card {
  border: 1px solid rgba(219,39,119,.2);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(253,242,248,.95), #fff 55%);
  box-shadow: 7px 7px 0 rgba(96,165,250,.09);
}

body[data-site-diff-page="lottery"] .content-box {
  border-radius: 8px 28px;
  background: repeating-linear-gradient(0deg, rgba(96,165,250,.04) 0 1px, transparent 1px 28px), #fff;
}

/* Fortune Gems 2: faceted cards and gem-marker tips */
body[data-site-diff-page="fortune-gems-2"] .feature-card {
  min-height: 215px;
  border: 1px solid rgba(219,39,119,.2);
  border-radius: 30px 6px 30px 6px;
  background: linear-gradient(135deg, rgba(253,242,248,.98), rgba(239,246,255,.9));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

body[data-site-diff-page="fortune-gems-2"] .tip-card {
  position: relative;
  min-height: 0;
  padding-left: 72px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-site-diff-page="fortune-gems-2"] .tip-card::before {
  content: "◆";
  position: absolute;
  left: 22px;
  top: 28px;
  color: var(--sd-pink);
  font-size: 1.25rem;
  filter: drop-shadow(0 4px 8px rgba(219,39,119,.24));
}

body[data-site-diff-page="fortune-gems-2"] .content-box {
  border-radius: 28px 6px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

/* Monster Hi-Lo: alternating level cards */
body[data-site-diff-page="monster-hi-lo"] .feature-card {
  min-height: 205px;
  border: 0;
  border-left: 6px solid var(--sd-pink);
  border-radius: 4px 24px 24px 4px;
  background: linear-gradient(90deg, rgba(253,242,248,.92), #fff 40%);
}

body[data-site-diff-page="monster-hi-lo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(even) .feature-card {
  border-left: 0;
  border-right: 6px solid var(--sd-blue);
  border-radius: 24px 4px 4px 24px;
  background: linear-gradient(270deg, rgba(239,246,255,.94), #fff 40%);
}

body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:nth-child(odd) .tip-card {
  transform: translateX(-12px);
}

body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:nth-child(even) .tip-card {
  transform: translateX(12px);
}

body[data-site-diff-page="monster-hi-lo"] .tip-card {
  border-radius: 20px 6px;
}

body[data-site-diff-page="monster-hi-lo"] .content-box {
  border-radius: 6px 30px;
  background: linear-gradient(120deg, rgba(253,242,248,.8) 0 50%, rgba(239,246,255,.82) 50% 100%);
}

/* Jackpot Bingo: joined ribbon and ticket cards */
body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
  gap: 0;
  margin-inline: 0;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 24px;
}

body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"] {
  padding: 0;
}

body[data-site-diff-page="jackpot-bingo"] .feature-card {
  min-height: 220px;
  border: 0;
  border-right: 1px dashed rgba(37,99,235,.2);
  border-radius: 0;
  background: rgba(255,255,255,.86);
  box-shadow: none;
}

body[data-site-diff-page="jackpot-bingo"] .tip-card {
  position: relative;
  border: 2px dashed rgba(219,39,119,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
}

body[data-site-diff-page="jackpot-bingo"] .content-box {
  border-radius: 24px;
  background-image: radial-gradient(rgba(37,99,235,.1) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Multiple Bets: odds matrix and bet-slip bars */
body[data-site-diff-page="multiple-bets"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
  gap: 0;
  margin-inline: 0;
  border: 1px solid var(--sd-line);
  border-radius: 20px;
  overflow: hidden;
}

body[data-site-diff-page="multiple-bets"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"] {
  padding: 0;
}

body[data-site-diff-page="multiple-bets"] .feature-card {
  min-height: 215px;
  border: 0;
  border-right: 1px solid var(--sd-line);
  border-radius: 0;
  background: linear-gradient(150deg, #fff, rgba(239,246,255,.72));
  box-shadow: none;
}

body[data-site-diff-page="multiple-bets"] .tip-card {
  min-height: 0;
  border: 0;
  border-left: 5px solid var(--sd-pink);
  border-radius: 4px 16px 16px 4px;
  background: linear-gradient(90deg, rgba(253,242,248,.9), #fff);
}

body[data-site-diff-page="multiple-bets"] .content-box {
  border-radius: 18px;
  box-shadow: inset 8px 0 0 rgba(37,99,235,.12), 0 16px 42px rgba(61,88,145,.09);
}

/* Login: access console, security ledger, two-step rail */
body[data-site-diff-page="login"] .form-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 8px 30px;
  background: linear-gradient(145deg, #fff, rgba(239,246,255,.86));
  box-shadow: 0 24px 60px rgba(37,99,235,.13);
}

body[data-site-diff-page="login"] .form-card::before {
  content: "SECURE ACCESS";
  display: block;
  margin: -2rem -2rem 1.5rem;
  padding: 12px 2rem;
  color: var(--sd-blue);
  background: rgba(37,99,235,.08);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

body[data-site-diff-page="login"] .feature-card {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  column-gap: 16px;
  align-items: center;
  min-height: 0;
  padding: 20px;
  text-align: left !important;
  border: 0;
  border-bottom: 1px solid var(--sd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-site-diff-page="login"] .feature-card .icon-box {
  grid-row: 1 / span 2;
  margin: 0 !important;
}

body[data-site-diff-page="login"] .step-card {
  border: 1px solid var(--sd-pink-line);
  border-radius: 24px 6px;
  background: linear-gradient(135deg, rgba(253,242,248,.88), #fff);
}

/* Register: perforated form ticket, signup tiles, split onboarding */
body[data-site-diff-page="register"] .form-card {
  position: relative;
  overflow: hidden;
  border: 2px dashed rgba(219,39,119,.28);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, rgba(253,242,248,.78));
  box-shadow: 0 24px 60px rgba(219,39,119,.12);
}

body[data-site-diff-page="register"] .form-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(219,39,119,.25) 0 5px, transparent 5px 12px);
}

body[data-site-diff-page="register"] .feature-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--sd-line);
  border-radius: 26px 6px;
  background: rgba(255,255,255,.88);
}

body[data-site-diff-page="register"] .step-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-top: 5px solid var(--sd-pink);
  border-radius: 6px 6px 24px 24px;
  background: linear-gradient(180deg, rgba(253,242,248,.82), #fff 45%);
}

/* Privacy: data ledger and numbered policy documents */
body[data-site-diff-page="privacy-policy"] .feature-card {
  display: grid;
  grid-template-columns: 60px minmax(0,1fr);
  column-gap: 18px;
  align-items: center;
  min-height: 0;
  padding: 22px;
  text-align: left !important;
  border: 0;
  border-bottom: 1px solid var(--sd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-site-diff-page="privacy-policy"] .feature-card .icon-box {
  grid-row: 1 / span 2;
  margin: 0 !important;
}

body[data-site-diff-page="privacy-policy"] .row:has(> [class*="col-"]:nth-child(2) > .policy-card) {
  counter-reset: sd-policy;
}

body[data-site-diff-page="privacy-policy"] .policy-card {
  counter-increment: sd-policy;
  position: relative;
  padding-left: 78px;
  border: 1px solid var(--sd-line);
  border-radius: 8px 26px;
}

body[data-site-diff-page="privacy-policy"] .policy-card::before {
  content: counter(sd-policy, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 30px;
  color: var(--sd-blue);
  font-weight: 900;
}

body[data-site-diff-page="privacy-policy"] .content-box {
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 8px 26px;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(37,99,235,.045) 31px 32px), #fff;
}

/* Responsible Gaming: shield board and numbered guide lane */
body[data-site-diff-page="responsible-gaming"] .feature-card {
  min-height: 195px;
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 28px 8px;
  background: linear-gradient(145deg, rgba(236,253,245,.92), #fff);
}

body[data-site-diff-page="responsible-gaming"] .row:has(> [class*="col-"]:nth-child(2) > .guide-card) {
  counter-reset: sd-guide;
}

body[data-site-diff-page="responsible-gaming"] .guide-card {
  counter-increment: sd-guide;
  position: relative;
  padding-left: 82px;
  border: 0;
  border-left: 4px solid rgba(16,185,129,.48);
  border-radius: 0 22px 22px 0;
  background: linear-gradient(90deg, rgba(236,253,245,.88), #fff 46%);
}

body[data-site-diff-page="responsible-gaming"] .guide-card::before {
  content: counter(sd-guide);
  position: absolute;
  left: 24px;
  top: 28px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 12px;
  background: #10b981;
  font-weight: 900;
}

body[data-site-diff-page="responsible-gaming"] .content-box {
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 24px 8px;
  background: linear-gradient(135deg, rgba(236,253,245,.74), rgba(239,246,255,.7));
}

/* Terms: clause strip and numbered dossier panels */
body[data-site-diff-page="terms-conditions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
  counter-reset: sd-clause;
  gap: 0;
  margin-inline: 0;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: 22px;
}

body[data-site-diff-page="terms-conditions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"] {
  padding: 0;
}

body[data-site-diff-page="terms-conditions"] .feature-card {
  counter-increment: sd-clause;
  position: relative;
  min-height: 210px;
  padding-top: 54px;
  border: 0;
  border-right: 1px solid var(--sd-line);
  border-radius: 0;
  background: rgba(255,255,255,.86);
  box-shadow: none;
}

body[data-site-diff-page="terms-conditions"] .feature-card::before {
  content: "CLAUSE " counter(sd-clause, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 24px;
  color: var(--sd-pink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
}

body[data-site-diff-page="terms-conditions"] .row:has(> [class*="col-"]:nth-child(2) > .rule-card) {
  counter-reset: sd-rule;
}

body[data-site-diff-page="terms-conditions"] .rule-card {
  counter-increment: sd-rule;
  position: relative;
  padding-left: 82px;
  border: 1px solid var(--sd-pink-line);
  border-radius: 8px 26px;
  background: linear-gradient(135deg, rgba(253,242,248,.82), #fff 46%);
}

body[data-site-diff-page="terms-conditions"] .rule-card::before {
  content: counter(sd-rule, decimal-leading-zero);
  position: absolute;
  left: 25px;
  top: 30px;
  color: var(--sd-pink);
  font-size: 1.1rem;
  font-weight: 900;
}

body[data-site-diff-page="terms-conditions"] .content-box {
  border: 1px solid var(--sd-line);
  border-left: 7px solid rgba(37,99,235,.28);
  border-radius: 4px 20px 20px 4px;
  background: #fff;
}

/* Structural differentiation v2.
   Every desktop template below changes the repeated-content topology, not
   merely its border, radius, colour, or shadow. */
@media (min-width: 992px) {
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card),
  body[data-site-diff-page="about-us"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="faq"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="fortune-gems-2"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="login"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="lottery"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="monster-hi-lo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="multiple-bets"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="privacy-policy"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="register"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="responsible-gaming"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="terms-conditions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    display: grid;
    gap: 18px;
    margin-inline: 0;
  }

  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="about-us"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="faq"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="fortune-gems-2"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="login"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="lottery"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="monster-hi-lo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="multiple-bets"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="privacy-policy"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="register"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="responsible-gaming"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"],
  body[data-site-diff-page="terms-conditions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"] {
    width: auto;
    padding: 0;
  }

  /* Home: editorial mosaic instead of an equal eight-card grid. */
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card) > [class*="col-"] { grid-column: span 3; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card) > [class*="col-"]:nth-child(1),
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card) > [class*="col-"]:nth-child(6) { grid-column: span 6; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card) > [class*="col-"]:nth-child(7) { grid-column: span 5; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(8) > .feature-card) > [class*="col-"]:nth-child(8) { grid-column: span 7; }

  /* Home steps: four equal cards become a true alternating vertical journey. */
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    gap: 18px 0;
    max-width: 1080px;
    margin-inline: auto;
  }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card)::before {
    left: 50%;
    right: auto;
    top: 34px;
    bottom: 34px;
    width: 4px;
    height: auto;
    transform: translateX(-50%);
    opacity: .42;
  }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"]:nth-child(odd) { grid-column: 1; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"]:nth-child(even) { grid-column: 3; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"]:nth-child(1) { grid-row: 1; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"]:nth-child(2) { grid-row: 2; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"]:nth-child(3) { grid-row: 3; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"]:nth-child(4) { grid-row: 4; }
  body[data-site-diff-page="home"] .step-card {
    position: relative;
    min-height: 0;
    padding: 28px 32px;
    text-align: left !important;
  }
  body[data-site-diff-page="home"] .step-card .step-number {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    margin: 0 !important;
    transform: translateY(-50%);
    border: 6px solid #f8fbff;
    box-shadow: 0 10px 24px rgba(37,99,235,.2);
  }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"]:nth-child(odd) .step-number { right: -75px; }
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card) > [class*="col-"]:nth-child(even) .step-number { left: -75px; }

  /* Home testimonials: left/right split becomes an editorial intro followed
     by a three-column review wall. */
  body[data-site-diff-page="home"] .row.g-5:has(> .col-lg-6 .testimonial-card) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    margin-inline: 0;
  }
  body[data-site-diff-page="home"] .row.g-5:has(> .col-lg-6 .testimonial-card) > .col-lg-6 {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="home"] .row.g-5:has(> .col-lg-6 .testimonial-card) > .col-lg-6:first-child {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
    gap: 12px 42px;
    align-items: start;
    padding: 34px 38px;
    border-radius: 30px 8px;
    background: linear-gradient(120deg, rgba(253,242,248,.82), rgba(239,246,255,.86));
  }
  body[data-site-diff-page="home"] .row.g-5:has(> .col-lg-6 .testimonial-card) > .col-lg-6:first-child .section-title {
    grid-row: 1 / span 2;
    margin: 0;
  }
  body[data-site-diff-page="home"] .row.g-5:has(> .col-lg-6 .testimonial-card) > .col-lg-6:first-child p {
    margin: 0;
  }
  body[data-site-diff-page="home"] .row:has(> .col-12:nth-child(3) > .testimonial-card) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
  }
  body[data-site-diff-page="home"] .row:has(> .col-12:nth-child(3) > .testimonial-card) > .col-12 {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="home"] .row:has(> .col-12:nth-child(3) > .testimonial-card) > .col-12:nth-child(odd) .testimonial-card {
    transform: translateY(22px);
  }
  body[data-site-diff-page="home"] .row:has(> .col-12:nth-child(3) > .testimonial-card) > .col-12:nth-child(even) .testimonial-card {
    transform: none;
  }
  body[data-site-diff-page="home"] .testimonial-card {
    height: 100%;
    padding: 28px;
  }

  /* About: two-column media ledger instead of four equal tiles. */
  body[data-site-diff-page="about-us"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* About long-form cards: asymmetric editorial pair rather than reusing
     the compact ledger treatment intended for the four short cards. */
  body[data-site-diff-page="about-us"] .row:has(> .col-lg-6:nth-child(2) > .feature-card) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin-inline: 0;
    padding-bottom: 36px;
  }
  body[data-site-diff-page="about-us"] .row:has(> .col-lg-6:nth-child(2) > .feature-card) > .col-lg-6 {
    width: auto;
    padding: 0;
    grid-column: span 7;
  }
  body[data-site-diff-page="about-us"] .row:has(> .col-lg-6:nth-child(2) > .feature-card) > .col-lg-6:last-child {
    grid-column: span 5;
    transform: translateY(36px);
  }

  /* FAQ: one lead category above a three-item directory. */
  body[data-site-diff-page="faq"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-site-diff-page="faq"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:first-child {
    grid-column: 1 / -1;
  }

  /* Fortune Gems: staggered two-column gem wall. */
  body[data-site-diff-page="fortune-gems-2"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 28px;
  }
  body[data-site-diff-page="fortune-gems-2"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(even) {
    transform: translateY(28px);
  }

  /* Jackpot Bingo: alternating 7/5 ticket blocks. */
  body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(1),
  body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(4) { grid-column: span 7; }
  body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(2),
  body[data-site-diff-page="jackpot-bingo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(3) { grid-column: span 5; }

  /* Login: security features become a two-column status console. */
  body[data-site-diff-page="login"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Lottery: a true vertical draw ledger, not a four-card row. */
  body[data-site-diff-page="lottery"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Monster Hi-Lo: alternating 2/3 + 1/3 high-low rows. */
  body[data-site-diff-page="monster-hi-lo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-site-diff-page="monster-hi-lo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:first-child,
  body[data-site-diff-page="monster-hi-lo"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:last-child { grid-column: span 2; }

  /* Multiple Bets: compact 2x2 odds matrix. */
  body[data-site-diff-page="multiple-bets"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  /* Privacy: two-column data ledger. */
  body[data-site-diff-page="privacy-policy"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Register: alternating 7/5 onboarding blocks. */
  body[data-site-diff-page="register"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  body[data-site-diff-page="register"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(1),
  body[data-site-diff-page="register"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(4) { grid-column: span 7; }
  body[data-site-diff-page="register"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(2),
  body[data-site-diff-page="register"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(3) { grid-column: span 5; }

  /* Responsible gaming: lead shield tile with a full-width closing action. */
  body[data-site-diff-page="responsible-gaming"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
  body[data-site-diff-page="responsible-gaming"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:first-child { grid-row: span 2; }
  body[data-site-diff-page="responsible-gaming"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:last-child { grid-column: 1 / -1; }

  /* Terms: paired clause dossier instead of one four-card strip. */
  body[data-site-diff-page="terms-conditions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Pirate Fishing: change the reading/sidebar ratio and make the tips a
     one-lead/two-compact board. */
  body[data-site-diff-page="pirate-fishing"] .row.g-5:has(> .col-lg-4 .tip-card) > .col-lg-8,
  body[data-site-diff-page="monster-hi-lo"] .row.g-5:has(> .col-lg-4 .tip-card) > .col-lg-8 {
    width: 58.333333%;
  }
  body[data-site-diff-page="pirate-fishing"] .row.g-5:has(> .col-lg-4 .tip-card) > .col-lg-4,
  body[data-site-diff-page="monster-hi-lo"] .row.g-5:has(> .col-lg-4 .tip-card) > .col-lg-4 {
    width: 41.666667%;
  }
  body[data-site-diff-page="pirate-fishing"] .row:has(> .col-12:nth-child(3) > .tip-card),
  body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--sd-line);
    border-radius: 28px;
    background: rgba(255,255,255,.55);
  }
  body[data-site-diff-page="pirate-fishing"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12,
  body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="pirate-fishing"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:first-child,
  body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:first-child {
    grid-column: 1 / -1;
  }
  body[data-site-diff-page="pirate-fishing"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:first-child .tip-card,
  body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:first-child .tip-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 16px;
  }
  body[data-site-diff-page="pirate-fishing"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:first-child .icon-box,
  body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:first-child .icon-box {
    grid-row: 1 / span 2;
    margin: 0 !important;
  }
  body[data-site-diff-page="pirate-fishing"] .tip-card,
  body[data-site-diff-page="monster-hi-lo"] .tip-card {
    height: 100%;
    transform: none !important;
  }

  /* Current promotions: four equal feature tiles become alternating offer
     banners, while the old right sidebar becomes a full-width advisor rail. */
  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-inline: 0;
  }
  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"] {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(1),
  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(4) {
    grid-column: span 7;
  }
  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(2),
  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:nth-child(3) {
    grid-column: span 5;
  }
  body[data-site-diff-page="current-promotions"] .row.g-5:has(> .col-lg-4 .tip-card),
  body[data-site-diff-page="multiple-bets"] .row.g-5:has(> .col-lg-4 .tip-card) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-inline: 0;
  }
  body[data-site-diff-page="current-promotions"] .row.g-5:has(> .col-lg-4 .tip-card) > [class*="col-"],
  body[data-site-diff-page="multiple-bets"] .row.g-5:has(> .col-lg-4 .tip-card) > [class*="col-"] {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="current-promotions"] .row:has(> .col-12:nth-child(3) > .tip-card),
  body[data-site-diff-page="multiple-bets"] .row:has(> .col-12:nth-child(3) > .tip-card) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sd-line);
    border-radius: 30px 8px;
    background: rgba(255,255,255,.62);
  }
  body[data-site-diff-page="current-promotions"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12,
  body[data-site-diff-page="multiple-bets"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="current-promotions"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 + .col-12,
  body[data-site-diff-page="multiple-bets"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 + .col-12 {
    border-left: 1px solid var(--sd-line);
  }
  body[data-site-diff-page="current-promotions"] .tip-card,
  body[data-site-diff-page="multiple-bets"] .tip-card {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* FAQ: the long single accordion becomes a question directory. The lead
     item spans both columns and the remaining answers form paired rows. */
  body[data-site-diff-page="faq"] #faqAccordion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  body[data-site-diff-page="faq"] #faqAccordion > .accordion-item:first-child {
    grid-column: 1 / -1;
  }
  body[data-site-diff-page="faq"] #faqAccordion > .accordion-item {
    align-self: start;
    margin: 0;
  }

  /* Fortune Gems: reverse the reading hierarchy. The compact gem guidance
     becomes a left-hand control board instead of another right sidebar. */
  body[data-site-diff-page="fortune-gems-2"] .row.g-5:has(> .col-lg-4 .tip-card) > .col-lg-4 {
    order: 1;
    width: 41.666667%;
  }
  body[data-site-diff-page="fortune-gems-2"] .row.g-5:has(> .col-lg-4 .tip-card) > .col-lg-8 {
    order: 2;
    width: 58.333333%;
  }
  body[data-site-diff-page="fortune-gems-2"] .row:has(> .col-12:nth-child(3) > .tip-card) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--sd-line);
    border-radius: 8px 30px;
    background: linear-gradient(145deg, rgba(239,246,255,.9), rgba(253,242,248,.72));
  }
  body[data-site-diff-page="fortune-gems-2"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="fortune-gems-2"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:first-child {
    grid-column: 1 / -1;
  }
  body[data-site-diff-page="fortune-gems-2"] .tip-card {
    height: 100%;
    transform: none;
  }

  /* Jackpot Bingo: the three detached sidebar cards become one continuous
     numbered ticket stack. */
  body[data-site-diff-page="jackpot-bingo"] .row:has(> .col-12:nth-child(3) > .tip-card) {
    display: grid;
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sd-line);
    border-radius: 28px 6px;
    counter-reset: bingo-tip;
  }
  body[data-site-diff-page="jackpot-bingo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 {
    width: auto;
    padding: 0;
    counter-increment: bingo-tip;
  }
  body[data-site-diff-page="jackpot-bingo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 + .col-12 {
    border-top: 1px dashed rgba(37,99,235,.25);
  }
  body[data-site-diff-page="jackpot-bingo"] .tip-card {
    position: relative;
    min-height: 0;
    padding-left: 78px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body[data-site-diff-page="jackpot-bingo"] .tip-card::after {
    content: "0" counter(bingo-tip);
    position: absolute;
    left: 24px;
    top: 30px;
    color: var(--sd-blue);
    font-weight: 800;
    letter-spacing: .08em;
  }

  /* Lottery: place the guidance first, like a draw slip, and join its three
     instructions into one left-hand ledger. */
  body[data-site-diff-page="lottery"] .row.g-5:has(> .col-lg-4 .tip-card) > .col-lg-4 {
    order: 1;
    width: 41.666667%;
  }
  body[data-site-diff-page="lottery"] .row.g-5:has(> .col-lg-4 .tip-card) > .col-lg-8 {
    order: 2;
    width: 58.333333%;
  }
  body[data-site-diff-page="lottery"] .row:has(> .col-12:nth-child(3) > .tip-card) {
    display: grid;
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sd-line);
    border-radius: 6px 28px;
  }
  body[data-site-diff-page="lottery"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="lottery"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12 + .col-12 {
    border-top: 1px solid var(--sd-line);
  }
  body[data-site-diff-page="lottery"] .tip-card {
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Login: two equal articles become a staggered return path. */
  body[data-site-diff-page="login"] .row:has(> .col-lg-6:nth-child(2) > .step-card) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 0;
    margin-inline: 0;
  }
  body[data-site-diff-page="login"] .row:has(> .col-lg-6:nth-child(2) > .step-card) > .col-lg-6 {
    width: auto;
    padding: 0;
    grid-column: 1 / span 8;
  }
  body[data-site-diff-page="login"] .row:has(> .col-lg-6:nth-child(2) > .step-card) > .col-lg-6:last-child {
    grid-column: 5 / span 8;
  }
  body[data-site-diff-page="login"] .step-card {
    height: auto;
    min-height: 0;
  }

  /* Register: the first explanation leads, with the security note inset as
     a deliberately smaller closing panel. */
  body[data-site-diff-page="register"] .row:has(> .col-lg-6:nth-child(2) > .step-card) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-inline: 0;
  }
  body[data-site-diff-page="register"] .row:has(> .col-lg-6:nth-child(2) > .step-card) > .col-lg-6 {
    width: auto;
    padding: 0;
    grid-column: 1 / span 7;
  }
  body[data-site-diff-page="register"] .row:has(> .col-lg-6:nth-child(2) > .step-card) > .col-lg-6:last-child {
    grid-column: 8 / span 5;
    align-self: center;
  }
  body[data-site-diff-page="register"] .step-card {
    height: auto;
    min-height: 0;
  }

  /* Privacy: offset policy sheets read like a dossier instead of twins. */
  body[data-site-diff-page="privacy-policy"] .row:has(> .col-lg-6:nth-child(2) > .policy-card),
  body[data-site-diff-page="responsible-gaming"] .row:has(> .col-lg-6:nth-child(2) > .guide-card) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 0;
    margin-inline: 0;
  }
  body[data-site-diff-page="privacy-policy"] .row:has(> .col-lg-6:nth-child(2) > .policy-card) > .col-lg-6,
  body[data-site-diff-page="responsible-gaming"] .row:has(> .col-lg-6:nth-child(2) > .guide-card) > .col-lg-6 {
    width: auto;
    padding: 0;
    grid-column: 1 / span 9;
  }
  body[data-site-diff-page="privacy-policy"] .row:has(> .col-lg-6:nth-child(2) > .policy-card) > .col-lg-6:last-child,
  body[data-site-diff-page="responsible-gaming"] .row:has(> .col-lg-6:nth-child(2) > .guide-card) > .col-lg-6:last-child {
    grid-column: 4 / span 9;
  }
  body[data-site-diff-page="privacy-policy"] .policy-card,
  body[data-site-diff-page="responsible-gaming"] .guide-card {
    height: auto;
    min-height: 0;
  }

  /* Terms: two independent cards become a continuous terms dossier. */
  body[data-site-diff-page="terms-conditions"] .row:has(> .col-lg-6:nth-child(2) > .rule-card) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-inline: 0;
    overflow: hidden;
    border: 1px solid var(--sd-line);
    border-radius: 6px 30px;
  }
  body[data-site-diff-page="terms-conditions"] .row:has(> .col-lg-6:nth-child(2) > .rule-card) > .col-lg-6 {
    width: auto;
    padding: 0;
  }
  body[data-site-diff-page="terms-conditions"] .row:has(> .col-lg-6:nth-child(2) > .rule-card) > .col-lg-6 + .col-lg-6 {
    border-top: 1px solid var(--sd-line);
  }
  body[data-site-diff-page="terms-conditions"] .rule-card {
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card),
  body[data-site-diff-page="pirate-fishing"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(3) > .promo-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card)::before {
    display: none;
  }

  body[data-site-diff-page="pirate-fishing"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:first-child,
  body[data-site-diff-page="pirate-fishing"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card) > [class*="col-"]:last-child {
    grid-column: auto;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  body[data-site-diff-page="home"] .row:has(> [class*="col-"]:nth-child(4) > .step-card),
  body[data-site-diff-page="pirate-fishing"] .row:has(> [class*="col-"]:nth-child(4) > .feature-card),
  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(3) > .promo-card) {
    grid-template-columns: 1fr;
  }

  body[data-site-diff-page="current-promotions"] .row:has(> [class*="col-"]:nth-child(3) > .promo-card) > [class*="col-"]:first-child {
    grid-column: auto;
  }

  body[data-site-diff-page="home"] .row:has(> .col-12:nth-child(3) > .testimonial-card) > .col-12:nth-child(even) .testimonial-card,
  body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:nth-child(odd) .tip-card,
  body[data-site-diff-page="monster-hi-lo"] .row:has(> .col-12:nth-child(3) > .tip-card) > .col-12:nth-child(even) .tip-card,
  body[data-site-diff-page="about-us"] .info-card {
    transform: none;
  }

  body[data-site-diff-page="about-us"] .feature-card,
  body[data-site-diff-page="login"] .feature-card,
  body[data-site-diff-page="lottery"] .feature-card,
  body[data-site-diff-page="privacy-policy"] .feature-card {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
    padding-inline: 10px;
  }

  body[data-site-diff-page="privacy-policy"] .policy-card,
  body[data-site-diff-page="responsible-gaming"] .guide-card,
  body[data-site-diff-page="terms-conditions"] .rule-card {
    padding-left: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-site-diff-page] *,
  body[data-site-diff-page] *::before,
  body[data-site-diff-page] *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Shared navigation and footer chrome */
.navbar {
  min-height: 74px;
  background: rgba(255, 255, 255, .94) !important;
  border: 0;
  box-shadow: 0 10px 26px rgba(39, 67, 117, .10) !important;
  backdrop-filter: blur(16px);
}

.navbar .container { gap: 14px; }

.navbar-brand {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.navbar-brand img {
  display: block;
  width: min(148px, 20vw);
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.navbar-toggler {
  padding: 9px !important;
  border: 0 !important;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 246, 255, .9), rgba(253, 242, 248, .9));
}

.navbar-nav { gap: 4px !important; }

.nav-link {
  position: relative;
  padding: .58rem .72rem !important;
  color: #334155 !important;
  font-size: .92rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, transform .2s ease !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: .72rem;
  bottom: .28rem;
  left: .72rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ec4899, #3b82f6);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active,
body[data-site-diff-page="home"] .nav-link[href="/"] {
  color: #1e3a8a !important;
  background: linear-gradient(90deg, rgba(244, 114, 182, .14), rgba(96, 165, 250, .14));
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after,
body[data-site-diff-page="home"] .nav-link[href="/"]::after { transform: scaleX(1); }

.footer {
  margin-top: 64px;
  padding: 58px 0 24px;
  color: #475569;
  background: #fff !important;
  border-top: 1px solid rgba(148, 163, 184, .22);
}

.footer a { color: #475569 !important; }
.footer a:hover { color: #db2777 !important; }

.site-footer > .container:first-child:not(.footer-reference) { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) repeat(3, minmax(130px, .85fr)) minmax(165px, 1fr);
  gap: 28px 34px;
}

.footer-brand { display: inline-flex; margin-bottom: 16px; }
.footer-brand img { width: 150px; height: auto; }
.footer-overview p { max-width: 330px; margin: 0 0 18px; color: #64748b; line-height: 1.75; }

.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span {
  padding: 6px 10px;
  border: 1px solid rgba(219, 39, 119, .16);
  border-radius: 999px;
  color: #475569;
  background: linear-gradient(135deg, rgba(253, 242, 248, .85), rgba(239, 246, 255, .8));
  font-size: .76rem;
  font-weight: 700;
}

.footer-link-group,
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.footer-link-group h2,
.footer-contact h2 {
  margin: 0 0 5px;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 800;
}

.footer-link-group a,
.footer-contact a { font-size: .9rem; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer-link-group a:hover,
.footer-contact a:hover { transform: translateX(3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .22);
  color: #94a3b8;
  font-size: .84rem;
}

/* The legacy static-page footer keeps its existing links but adopts the same visual system. */
.footer:not(.site-footer) .row.g-4 { align-items: start !important; }
.footer:not(.site-footer) .col-lg-5 { padding-right: 32px; }
.footer:not(.site-footer) .col-lg-5 > a img { width: 150px; height: auto !important; }
.footer:not(.site-footer) .small-muted { color: #64748b !important; }
.footer:not(.site-footer) .col-lg-7 .row { row-gap: 14px !important; }
.footer:not(.site-footer) hr { border-color: rgba(148, 163, 184, .22) !important; }

@media (max-width: 1199.98px) {
  .navbar { min-height: 66px; }
  .navbar-nav { padding: 12px 0; }
  .nav-link { padding: .68rem .8rem !important; }
}

@media (max-width: 991.98px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .footer-overview { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  .navbar-brand { padding: 6px 9px; }
  .navbar-brand img { width: 126px; }
  .footer { padding-top: 42px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .footer-overview { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 7px; }
  .footer:not(.site-footer) .col-lg-5 { padding-right: 12px; }
}

.content-image-break {
  display: block;
  width: min(100% - 32px, 880px);
  margin: 48px auto;
}

.content-image-break img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(61, 88, 145, .14);
}

@media (max-width: 575.98px) {
  .content-image-break {
    width: calc(100% - 24px);
    margin: 32px auto;
  }

  .content-image-break img {
    max-height: 280px;
    border-radius: 16px;
  }
}
