/* 1xbet-cx9b · v008 (2026-10-01, round 2 operator QC: compact header with
   six-item menu + Bonus/Login to our pages, games category panel, equal card
   rows, one-column FAQ) · based on v006 (2026-10-01) — rebuild under BRAND_PAGE_REBUILD_RULES R1–R18.
   One palette: navy family + one green for fills + one blue for links.
   No text-transform anywhere, no decorative glyphs before headings or items. */
:root {
  --xb9-navy: #1d4268;
  --xb9-navy-deep: #13304d;
  --xb9-navy-soft: #e8eff6;
  --xb9-paper: #f4f7fa;
  --xb9-white: #ffffff;
  --xb9-text: #1b2a3a;
  --xb9-muted: #45596d;
  --xb9-line: #d3dde7;
  --xb9-line-strong: #b9c8d7;
  --xb9-green: #4f7f14;
  --xb9-green-dark: #406810;
  --xb9-link: #0a5fa3;
  --xb9-on-navy: #ffffff;
  --xb9-on-navy-soft: #d6e3f0;
  --xb9-sky: #9fd6ff;
  --xb9-r: 0.75rem;
  --xb9-r-sm: 0.5rem;
  --xb9-mast-h: 3.25rem;
  --xb9-dock-h: 0rem;
  --xb9-shadow: 0 0.4rem 1.2rem rgba(19, 48, 77, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--xb9-mast-h) + 1rem);
  scroll-padding-bottom: calc(var(--xb9-dock-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--xb9-text);
  background: var(--xb9-white);
  font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body.has-dock { --xb9-dock-h: 0rem; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--xb9-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, figure, h1, h2, h3, table { margin-top: 0; }
figure { margin: 0; }

h1, h2, h3 {
  color: var(--xb9-navy-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.7rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

.xb9-frame { width: min(100% - 2rem, 74rem); margin-inline: auto; }

.xb9-skip {
  position: absolute; left: 1rem; top: 0.5rem; z-index: 300;
  padding: 0.5rem 0.9rem; border-radius: var(--xb9-r-sm);
  background: var(--xb9-white); color: var(--xb9-navy-deep); font-weight: 700;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.xb9-skip:focus { clip-path: none; width: auto; height: auto; }

/* ---------- header: one logo + section menu ---------- */
.xb9-mast {
  position: sticky; top: 0; z-index: 200;
  background: var(--xb9-navy);
  color: var(--xb9-on-navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 0.3rem 0.9rem rgba(9, 25, 42, 0.25);
}
.xb9-mast__rail {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: var(--xb9-mast-h);
}
.xb9-mark { flex: none; display: block; }
.xb9-mark img { width: auto; height: 1.75rem; }
.xb9-route { display: flex; flex-wrap: nowrap; gap: 0.15rem; margin-left: 1.25rem; }
.xb9-route a, .xb9-drawer__nav a {
  color: var(--xb9-on-navy); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 0.4rem 0.7rem; border-radius: var(--xb9-r-sm); white-space: nowrap;
}
.xb9-route a:hover, .xb9-route a:focus-visible,
.xb9-drawer__nav a:hover, .xb9-drawer__nav a:focus-visible { background: rgba(255, 255, 255, 0.12); }

.xb9-drawer { display: none; margin-left: auto; position: relative; }
.xb9-drawer summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 0.95rem;
  padding: 0.3rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--xb9-r-sm);
}
.xb9-drawer summary::-webkit-details-marker { display: none; }
.xb9-drawer[open] summary { background: rgba(255, 255, 255, 0.12); }
.xb9-drawer__nav {
  position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 13rem;
  display: grid; padding: 0.4rem; background: var(--xb9-navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--xb9-r);
  box-shadow: 0 0.8rem 1.6rem rgba(9, 25, 42, 0.35);
}
.xb9-drawer:not([open]) .xb9-drawer__nav { display: none; }
@media (max-width: 1199px) {
  .xb9-route { display: none; }
  .xb9-drawer { display: block; }
}
@media (min-width: 1200px) and (max-width: 1365px) {
  .xb9-route { margin-left: 0.75rem; gap: 0; }
  .xb9-route a { padding-inline: 0.55rem; font-size: 0.88rem; }
}

/* Bonus / Login: our own pages bonus/ and login/ (R8), right end of the bar */
.xb9-mast__cta { display: flex; gap: 0.5rem; flex: none; margin-left: auto; }
@media (max-width: 1199px) { .xb9-drawer + .xb9-mast__cta { margin-left: 0; } }
.xb9-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.1rem; padding: 0.3rem 1.05rem; border-radius: var(--xb9-r-sm);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.xb9-action--go { background: var(--xb9-green); color: var(--xb9-white); }
.xb9-action--go:hover { background: var(--xb9-green-dark); }
.xb9-action--alt { border: 1px solid rgba(255, 255, 255, 0.6); color: var(--xb9-white); }
.xb9-action--alt:hover { background: rgba(255, 255, 255, 0.12); }
.xb9-dock { display: none; }
@media (max-width: 768px) {
  .xb9-mast__cta { display: none; }
  body.has-dock { --xb9-dock-h: 3.6rem; padding-bottom: var(--xb9-dock-h); }
  body.has-dock .xb9-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    padding: 0.5rem 1rem; background: var(--xb9-navy);
  }
  .xb9-dock .xb9-action { min-height: 2.6rem; }
}

/* ---------- hero ---------- */
.xb9-hero { background: var(--xb9-navy); color: var(--xb9-on-navy); }
.xb9-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center; gap: 2rem; padding-block: 2.5rem;
}
.xb9-hero h1 { color: var(--xb9-white); max-width: 24ch; }
.xb9-hero p { color: var(--xb9-on-navy-soft); }
.xb9-hero__art img { width: 100%; max-width: 1048px; margin-left: auto; border-radius: var(--xb9-r); }
/* round 2: main-page hero = title + text + art, art column next to text.
   round 4b (operator 2026-10-02): the hero banner must show both women of
   the source art fully, so the art no longer cover-crops/stretches to match
   the text column's height (that cropped one of them out) - it is shown at
   its own aspect, scaled down only if wider than the column, so it can be
   shorter than the text column; both columns stay vertically centered. */
.xb9-hero:not(.xb9-hero--page) .xb9-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.xb9-hero:not(.xb9-hero--page) .xb9-hero__art img { max-width: 1120px; }
@media (min-width: 1200px) {
  .xb9-hero:not(.xb9-hero--page) .xb9-hero__grid { align-items: center; }
}
@media (max-width: 900px) {
  .xb9-hero__grid, .xb9-hero:not(.xb9-hero--page) .xb9-hero__grid { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 1.75rem; }
  .xb9-hero__art img { margin-left: 0; }
}

/* ---------- sections ---------- */
.xb9-sec { padding-block: 2.75rem; }
.xb9-sec--tint { background: var(--xb9-paper); }
.xb9-sec + .xb9-sec { border-top: 1px solid var(--xb9-line); }
/* round 2 (operator): text always uses the full width of its container */
.xb9-lead { margin-bottom: 1.5rem; }
.xb9-lead > .xb9-lead__copy > :last-child { margin-bottom: 0; }
/* round 2: a section intro without art spans the full content width */
.xb9-lead--wide .xb9-lead__copy p, .xb9-lead--wide .xb9-lead__copy li { max-width: none; }
.xb9-lead--media {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center;
}
.xb9-sub { margin-top: 1.5rem; }
.xb9-list { padding-left: 1.2rem; }
.xb9-list li { margin-bottom: 0.35rem; }
@media (max-width: 760px) {
  .xb9-sec { padding-block: 2rem; }
  .xb9-lead--media { grid-template-columns: 1fr; }
}

/* card grid + art side by side */
.xb9-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem;
  align-items: start; margin-bottom: 1.5rem;
}
.xb9-pair:last-child { margin-bottom: 0; }
.xb9-pair .xb9-cards, .xb9-pair .xb9-cards[data-count] { margin: 0; grid-template-columns: 1fr; }
@media (min-width: 761px) { .xb9-pair .xb9-cards--app { grid-auto-rows: 1fr; } }
.xb9-pair > .xb9-media { align-self: center; }
.xb9-pair .xb9-cards[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) { .xb9-pair .xb9-cards[data-count] { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .xb9-pair { grid-template-columns: 1fr; }
  .xb9-pair > .xb9-media { order: -1; }
}

/* media next to the section text: native size or smaller, never stretched */
.xb9-media img { border-radius: var(--xb9-r); }
.xb9-media--card img { width: 315px; max-width: 100%; }
/* wide banner next to a short intro (round 2) */
.xb9-media--wide img { width: 30rem; max-width: 100%; }
@media (min-width: 761px) { .xb9-lead--media:has(.xb9-media--wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); } }
.xb9-hero--page .xb9-media--wide > img { width: 34rem; }
.xb9-media--phone { border-radius: var(--xb9-r); overflow: hidden; width: 250px; max-width: 100%; }
.xb9-media--phone img { width: 100%; }
@media (max-width: 760px) {
  .xb9-media--card img { width: 100%; max-width: 315px; }
}

/* ---------- card grids (R11) ----------
   round 2 operator rules: cards of one row share one height (stretch); the
   column count follows the card count so no row is left with an orphan or a
   centred leftover (5 / 7 items are rendered as a rows panel, not a grid) */
.xb9-cards {
  display: grid; gap: 1rem; margin: 0 0 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: stretch;
}
.xb9-cards:last-child { margin-bottom: 0; }
.xb9-cards[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xb9-cards[data-count="3"], .xb9-cards[data-count="6"], .xb9-cards[data-count="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xb9-cards[data-count="4"], .xb9-cards[data-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 2 x 2 / 2 x 3 where the texts are long: wider cards, even row heights */
.xb9-cards.xb9-cards--money[data-count="4"], .xb9-cards.xb9-cards--welcome-terms[data-count="6"],
.xb9-cards.xb9-cards--signin[data-count="4"],
.xb9-doc > .xb9-cards[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1199px) {
  .xb9-cards[data-count="4"], .xb9-cards[data-count="8"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .xb9-cards[data-count="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .xb9-cards[data-count="3"], .xb9-cards[data-count="9"] { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .xb9-cards[data-count], .xb9-cards.xb9-cards--money[data-count="4"], .xb9-cards.xb9-cards--welcome-terms[data-count="6"], .xb9-cards.xb9-cards--signin[data-count="4"], .xb9-doc > .xb9-cards[data-count="4"] { grid-template-columns: 1fr; } }
.xb9-card {
  background: var(--xb9-white); border: 1px solid var(--xb9-line-strong); border-radius: var(--xb9-r);
  padding: 1rem 1.15rem; box-shadow: var(--xb9-shadow);
}
.xb9-card > :last-child { margin-bottom: 0; }
.xb9-card h3 { color: var(--xb9-navy); }
.xb9-card p { margin-bottom: 0.5rem; }

/* ---------- promotions block (R6, Block 2) ---------- */
.xb9-promo {
  background: var(--xb9-navy-soft); border: 1px solid var(--xb9-line-strong);
  border-radius: calc(var(--xb9-r) + 0.25rem); padding: 1.25rem;
}
/* round 4: offer art is 760x260 (wide promo banners of the offers): a card
   is at most 380px wide, so the art is shown at >= 2x on every screen */
.xb9-promo__grid {
  display: grid; gap: 1.25rem 1.5rem; align-items: stretch; justify-content: center;
  grid-template-columns: repeat(3, minmax(0, 380px));
}
.xb9-promo__grid[data-count="2"], .xb9-promo__grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 380px)); }
@media (max-width: 1023px) { .xb9-promo__grid[data-count="6"], .xb9-promo__grid[data-count="4"], .xb9-promo__grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 380px)); } }
@media (max-width: 760px) { .xb9-promo__grid[data-count] { grid-template-columns: minmax(0, 1fr); } }
/* an offer without art: one slim full-width row under the grid */
.xb9-offer--row { grid-column: 1 / -1; }
.xb9-offer--row .xb9-offer__copy { border-top: 0; border-left: 3px solid var(--xb9-green); }
.xb9-offer__copy { flex: 1 1 auto; }
.xb9-offer {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--xb9-white); border: 1px solid var(--xb9-line-strong); border-radius: var(--xb9-r);
}
.xb9-offer__art { background: var(--xb9-navy); display: flex; justify-content: center; }
.xb9-offer__art img { width: 100%; aspect-ratio: 760 / 260; object-fit: cover; }
.xb9-offer__copy { padding: 0.9rem 1rem 1rem; border-top: 3px solid var(--xb9-green); }
.xb9-offer__copy > :last-child { margin-bottom: 0; }
.xb9-offer h3 { color: var(--xb9-navy); }
.xb9-offer p { margin-bottom: 0.5rem; }
/* round 4 (operator QC, phone): no box around the cards on a phone, cards
   full width, narrower inner padding -> the text gets the width */
@media (max-width: 760px) {
  .xb9-promo { padding: 0; background: none; border: 0; }
  .xb9-promo__grid { gap: 1rem; }
  .xb9-offer__copy { padding: 0.8rem 0.85rem 0.9rem; }
}

/* ---------- tables (R12): full width, restack on narrow screens ---------- */
.xb9-table { width: 100%; margin: 0 0 1.5rem; }
.xb9-table:last-child { margin-bottom: 0; }
.xb9-table table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--xb9-white); border: 1px solid var(--xb9-line-strong); border-radius: var(--xb9-r);
  overflow: hidden; font-size: 0.97rem;
}
.xb9-table th, .xb9-table td {
  text-align: left; vertical-align: middle; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--xb9-line); overflow-wrap: anywhere;
}
.xb9-table thead th { background: var(--xb9-navy); color: var(--xb9-white); font-weight: 700; border-bottom: 0; }
.xb9-table tbody th { font-weight: 700; color: var(--xb9-navy-deep); }
.xb9-table tbody tr:nth-child(even) { background: var(--xb9-paper); }
.xb9-table tbody tr:last-child > * { border-bottom: 0; }
.xb9-table tr.is-total { background: var(--xb9-navy-soft); }

/* payment method: icon on a light plate + readable name (R14) */
.xb9-pm { display: inline-flex; align-items: center; gap: 0.7rem; }
.xb9-pm__plate {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 2.25rem; padding: 0.2rem 0.35rem;
  background: var(--xb9-white); border: 1px solid var(--xb9-line-strong); border-radius: var(--xb9-r-sm);
}
.xb9-pm__logo { width: 100%; height: 100%; object-fit: contain; }
.xb9-pm__name { font-weight: 700; color: var(--xb9-navy-deep); }

@media (max-width: 640px) {
  .xb9-table table, .xb9-table tbody, .xb9-table tr, .xb9-table th, .xb9-table td { display: block; width: 100%; }
  .xb9-table table { border: 0; background: transparent; overflow: visible; }
  .xb9-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .xb9-table tbody tr {
    margin-bottom: 0.75rem; background: var(--xb9-white);
    border: 1px solid var(--xb9-line-strong); border-radius: var(--xb9-r); overflow: hidden;
  }
  .xb9-table tbody tr:nth-child(even) { background: var(--xb9-white); }
  .xb9-table tbody tr.is-total { background: var(--xb9-navy-soft); }
  .xb9-table tbody th { background: var(--xb9-navy-soft); border-bottom: 1px solid var(--xb9-line); }
  .xb9-table td {
    display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 0.75rem;
    padding: 0.5rem 0.9rem; border-bottom: 1px solid var(--xb9-line);
  }
  .xb9-table td::before { content: attr(data-label); font-weight: 600; color: var(--xb9-muted); }
  .xb9-table tbody tr > :last-child { border-bottom: 0; }
  .xb9-table td.is-empty { display: none; }
  /* payments: method on top, type on one line, deposits | withdrawals side by side */
  .xb9-table--pay tbody tr { display: flex; flex-wrap: wrap; }
  .xb9-table--pay tbody th { flex: 1 1 100%; }
  .xb9-table--pay td { overflow-wrap: normal; grid-template-columns: auto 1fr; }
  .xb9-table--pay td:first-of-type { flex: 1 1 100%; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); }
  .xb9-table--pay td:not(:first-of-type) { flex: 1 1 50%; border-bottom: 0; }
  .xb9-table--pay td:last-of-type { border-left: 1px solid var(--xb9-line); }
}

/* ---------- account: payment logo strip ---------- */
.xb9-media--logos { max-width: 22rem; }
.xb9-logostrip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem;
}
.xb9-logostrip li {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem;
  background: var(--xb9-white); border: 1px solid var(--xb9-line-strong); border-radius: var(--xb9-r-sm);
  font-weight: 700; color: var(--xb9-navy-deep); font-size: 0.95rem;
}
.xb9-logostrip .xb9-pm__plate { border: 0; padding: 0; width: 3rem; height: 1.9rem; }

/* ---------- games: tiles in fixed-size groups (R13) ---------- */
.xb9-tiles {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: grid; gap: 0.75rem; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.xb9-tiles li { margin: 0; max-width: none; }
.xb9-tiles img { width: 100%; border-radius: var(--xb9-r-sm); }
.xb9-tiles--live img { aspect-ratio: 621 / 330; }
@media (max-width: 760px) { .xb9-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* live-dealer photos inside the Live casino row: one equal grid, captioned */
.xb9-cat--tiles .xb9-tiles { grid-column: 1 / -1; margin: 0.6rem 0 0; }
.xb9-tiles figure { margin: 0; }
.xb9-tiles figcaption { margin-top: 0.4rem; font-weight: 700; font-size: 0.95rem; color: var(--xb9-navy-deep); }
/* ---------- FAQ ---------- */
/* round 2: one column, full width - opening a question moves nothing sideways */
.xb9-faq { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
.xb9-qa {
  background: var(--xb9-white); border: 1px solid var(--xb9-line-strong); border-radius: var(--xb9-r);
}
.xb9-qa summary {
  cursor: pointer; padding: 0.85rem 2.6rem 0.85rem 1rem; font-weight: 700; color: var(--xb9-navy-deep);
  list-style: none; position: relative;
}
.xb9-qa summary::-webkit-details-marker { display: none; }
/* open/close state marker on the right edge (functional, not a bullet) */
.xb9-qa summary::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--xb9-navy); border-bottom: 2px solid var(--xb9-navy);
  transform: translateY(-70%) rotate(45deg);
}
.xb9-qa[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.xb9-qa[open] summary { border-bottom: 1px solid var(--xb9-line); }
.xb9-qa__a { padding: 0.75rem 1rem 0.9rem; }
.xb9-qa__a > :last-child { margin-bottom: 0; }

/* ---------- footer (R16 text name, R17 centred) ---------- */
.xb9-foot { background: var(--xb9-navy-deep); color: var(--xb9-on-navy-soft); padding-block: 2.25rem; }
.xb9-foot__inner { display: grid; justify-items: center; text-align: center; gap: 0.9rem; }
.xb9-foot p { margin: 0; }
.xb9-foot__name { color: var(--xb9-white); font-weight: 800; font-size: 1.15rem; }
a.xb9-foot__name { text-decoration: none; }
a.xb9-foot__name:hover, a.xb9-foot__name:focus-visible { text-decoration: underline; }
.xb9-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.1rem; }
.xb9-foot__links a, .xb9-foot__safe a { color: var(--xb9-white); }
.xb9-foot__safe { font-weight: 700; color: var(--xb9-white); }
.xb9-foot__age {
  display: inline-block; padding: 0 0.4rem; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 0.3rem;
}
.xb9-foot__licence, .xb9-foot__legal, .xb9-foot__geo { font-size: 0.9rem; }
.xb9-foot__geo { max-width: 40rem; }

/* ---------- v007: site menu (sections + pages) and internal pages ---------- */
.xb9-route a[aria-current], .xb9-drawer__nav a[aria-current] { background: rgba(255, 255, 255, 0.16); }
.xb9-action[aria-current] { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.xb9-hero--page .xb9-hero__grid { padding-block: 2rem 2.25rem; }
.xb9-hero--page .xb9-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.xb9-hero--page h1 { max-width: 30ch; }
.xb9-hero--page .xb9-hero__art { justify-self: end; }
.xb9-hero--page .xb9-hero__art > img { width: auto; max-width: 100%; }
.xb9-hero--page .xb9-media--logos { width: 22rem; max-width: 100%; }
.xb9-crumbs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem;
  margin: 0 0 0.9rem; font-size: 0.9rem; color: var(--xb9-on-navy-soft);
}
.xb9-crumbs a { color: var(--xb9-sky); font-weight: 700; }
.xb9-crumbs [aria-current] { color: var(--xb9-on-navy-soft); }
@media (max-width: 900px) {
  .xb9-hero--page .xb9-hero__art { justify-self: start; }
}
.xb9-doc > .xb9-cards { max-width: 52rem; }
.xb9-doc > h2 { margin-top: 2rem; }
.xb9-doc > h2:first-child { margin-top: 0; }
.xb9-doc > .xb9-cards { margin-top: 1rem; }

/* ---------- v008: games lobby, one panel with a row per category ---------- */
.xb9-cats {
  display: grid; margin: 0 0 1.25rem; padding: 0.25rem 1.5rem;
  background: var(--xb9-white); border: 1px solid var(--xb9-line-strong);
  border-radius: calc(var(--xb9-r) + 0.25rem); box-shadow: var(--xb9-shadow);
}
.xb9-cat {
  display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 0.5rem 1.75rem;
  align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--xb9-line);
  scroll-margin-top: calc(var(--xb9-mast-h) + 1rem);
}
.xb9-cat:last-child { border-bottom: 0; }
.xb9-cat__art img { width: 100%; aspect-ratio: 760 / 408; object-fit: cover; border-radius: var(--xb9-r-sm); }
.xb9-cat__copy > :last-child { margin-bottom: 0; }
.xb9-cat h3 { color: var(--xb9-navy); }
.xb9-cat p { margin-bottom: 0.5rem; }
.xb9-cats + .xb9-tiles { margin-top: 0.25rem; }
@media (max-width: 1023px) { .xb9-cat { grid-template-columns: 14rem minmax(0, 1fr); gap: 0.5rem 1.25rem; } }
@media (max-width: 640px) {
  .xb9-cats { padding: 0.25rem 1rem; }
  .xb9-cat { grid-template-columns: minmax(0, 1fr); padding: 1rem 0; }
}

/* ---------- v008: back to top (UI control, not a decorative icon) ---------- */
.xb9-totop {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 205;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%;
  background: var(--xb9-navy); color: var(--xb9-white);
  border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0.3rem 0.9rem rgba(9, 25, 42, 0.35);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.xb9-totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.xb9-totop:hover { background: var(--xb9-navy-deep); }
.xb9-totop:focus-visible { outline: 3px solid var(--xb9-sky); outline-offset: 2px; }
@media (max-width: 768px) { body.has-dock .xb9-totop { bottom: calc(var(--xb9-dock-h) + 0.75rem); } }
@media (prefers-reduced-motion: reduce) { .xb9-totop, .xb9-totop.is-on { transition: none; } }

/* rows panel without art (5-item groups): title left, text right */
.xb9-cats--plain .xb9-cat { grid-template-columns: 15rem minmax(0, 1fr); align-items: baseline; padding: 1rem 0; }
.xb9-cats--plain .xb9-cat__title { margin: 0; }
@media (max-width: 760px) { .xb9-cats--plain .xb9-cat { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } }

/* ---------- v008: tables, centred columns (operator QC round 2) ---------- */
@media (min-width: 641px) {
  .xb9-table th, .xb9-table td { text-align: center; font-variant-numeric: tabular-nums; }
  /* payments: the method column carries icon + name, read left to right */
  .xb9-table--pay thead th:first-child, .xb9-table--pay tbody th { text-align: left; }
}
.xb9-table td { font-variant-numeric: tabular-nums; }

/* ---------- v009: round 3 (operator QC 2026-10-01) ---------- */
/* games: three department panels (Casino / Slots / Live Casino), each with
   its own anchor for the header menu, H3 + intro, rows with H4 */
.xb9-depts { display: grid; gap: 1.25rem; margin: 0 0 1.25rem; }
.xb9-depts .xb9-cats { margin: 0; }
.xb9-dept { scroll-margin-top: calc(var(--xb9-mast-h) + 1rem); }
.xb9-dept__head { padding: 1.1rem 0 1rem; border-bottom: 1px solid var(--xb9-line); }
.xb9-dept__head h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.xb9-dept__head > :last-child { margin-bottom: 0; }
.xb9-cat h4 { color: var(--xb9-navy); font-size: 1.05rem; font-weight: 800; line-height: 1.25; margin: 0 0 0.35rem; }
/* tables: phrase tables read left-aligned like prose; figure tables stay centred */
@media (min-width: 641px) {
  .xb9-table--text th, .xb9-table--text td { text-align: left; }
}
/* app: slot tiles with names, shown at <= 208px (2x of the 416px tiles) */
.xb9-tilerow { display: grid; grid-template-columns: repeat(4, minmax(0, 13rem)); gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.xb9-tilerow li { margin: 0; }
.xb9-tilerow img { width: 100%; aspect-ratio: 416 / 244; object-fit: cover; border-radius: var(--xb9-r-sm); }
.xb9-tilerow span { display: block; margin-top: 0.4rem; font-weight: 700; color: var(--xb9-navy); }
@media (max-width: 640px) { .xb9-tilerow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } }
/* contacts: support channels as stacked rows, no cards */
.xb9-rowlist { margin: 0.25rem 0 1.5rem; border-top: 1px solid var(--xb9-line); }
.xb9-rowlist__item { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 1.5rem; align-items: baseline; padding: 0.9rem 0; border-bottom: 1px solid var(--xb9-line); }
.xb9-rowlist__item h3 { margin: 0; color: var(--xb9-navy); }
.xb9-rowlist__item p { margin: 0; }
.xb9-rowlist__item p + p { margin-top: 0.4rem; grid-column: 2; }
@media (max-width: 640px) { .xb9-rowlist__item { grid-template-columns: minmax(0, 1fr); } .xb9-rowlist__item p + p { grid-column: 1; } }

/* ---------- v010: round 4 (operator QC on a phone, 2026-10-02) ---------- */
/* hero: one extra paragraph on desktop only (text height ~ art height) */
@media (max-width: 1023px) { .xb9-desktop-only { display: none; } }
/* app art centred on phones (main page and /app) */
@media (max-width: 760px) {
  .xb9-media--phone { justify-self: center; margin-inline: auto; }
  .xb9-hero__art.xb9-media--phone { justify-self: center; }
}
/* games rows on phones: art left (2x sharp), title beside it, text below
   at full width -- no wasted side space, no soft enlarged tiles */
@media (max-width: 640px) {
  .xb9-cat:has(> .xb9-cat__art) { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.6rem 0.9rem; align-items: center; }
  .xb9-cat:has(> .xb9-cat__art) > .xb9-cat__copy { display: contents; }
  .xb9-cat > .xb9-cat__art { grid-column: 1; grid-row: 1; margin: 0; }
  .xb9-cat:has(> .xb9-cat__art) h4 { grid-column: 2; grid-row: 1; margin: 0; }
  .xb9-cat:has(> .xb9-cat__art) > .xb9-cat__copy > :not(h4) { grid-column: 1 / -1; }
}
/* Slots panel head: intro next to a mosaic of four slot tiles */
.xb9-dept__head--art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1rem 1.75rem; align-items: center; }
.xb9-dept__copy > :last-child { margin-bottom: 0; }
.xb9-dept__art { margin: 0; }
.xb9-dept__art img { width: 100%; border-radius: var(--xb9-r-sm); }
@media (max-width: 760px) { .xb9-dept__head--art { grid-template-columns: minmax(0, 1fr); } }
/* ---------- v011: round 4b (operator 2026-10-02) ---------- */
/* inner-page heroes on desktop: the art is exactly as tall as the H1 +
   description block next to it (cover crop for photos, contain for the
   phone art); the image never decides the row height and never exceeds its
   natural size (checked by dpr2_check.py --desktop) */
@media (min-width: 901px) {
  .xb9-hero--page .xb9-hero__grid:not(.xb9-hero__grid--solo) { align-items: stretch; }
  .xb9-hero--page .xb9-hero__copy { align-self: center; }
  .xb9-hero--page .xb9-hero__art:is(.xb9-media--card, .xb9-media--phone) {
    position: relative; justify-self: stretch; min-height: 9rem; margin: 0;
  }
  .xb9-hero--page .xb9-hero__art:is(.xb9-media--card, .xb9-media--phone) > img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%;
  }
  /* short text block (e.g. /login): keep the photo from becoming a thin strip */
  .xb9-hero--page .xb9-hero__art.xb9-media--card { justify-self: end; width: min(100%, 26rem); }
  .xb9-hero--page .xb9-hero__art.xb9-media--phone > img { object-fit: contain; object-position: 50% 50%; border-radius: 0; }
  .xb9-hero--page .xb9-hero__art.xb9-media--logos { align-self: center; }
}
/* wide 3:1 art (/bonus): beside the text from 1200px, where a cover crop
   still shows more than half of it; 901-1199px it sits under the text */
@media (min-width: 1200px) {
  .xb9-hero--page .xb9-hero__art.xb9-media--wide { position: relative; justify-self: stretch; min-height: 9rem; margin: 0; }
  .xb9-hero--page .xb9-hero__art.xb9-media--wide > img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%;
  }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .xb9-hero--page .xb9-hero__grid:has(> .xb9-media--wide) { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .xb9-hero--page .xb9-hero__art.xb9-media--wide { justify-self: start; }
}

/* 2026-10-02: three short step cards stack on tablet so no card is much taller than its text */
@media (max-width: 900px) { .xb9-cards[data-count="3"] { grid-template-columns: 1fr; } }

/* in-content CTAs (R19): one per decision point, our link only (R8) */
.xb9-cta { margin: 1.75rem 0 0; text-align: center; }
.xb9-cta--hero { margin-top: 1.25rem; text-align: left; }
.xb9-action--lg { min-height: 2.75rem; padding: 0.55rem 1.75rem; font-size: 1.05rem; }
@media (max-width: 768px) { .xb9-cta--hero { text-align: center; } .xb9-cta .xb9-action--lg { width: 100%; max-width: 22rem; } }
