/* Player site. Colours come from the merchant's Site builder (a <style id="home-theme"> the server puts in the
   page); these are the defaults. The home page sections use /css/sections.css. */
/* Defaults: blue & white (the Site builder's theme replaces them). */
:root, :root[data-theme] { --bg: #f3f6fc; --surface: #ffffff; --border: #dbe3f0; --text: #0f1b33; --muted: #5b6b85; --brand: #1d63ed; --brand-ink: #fff; --accent: #0ea5e9; --gold: #1d63ed; --gold-light: #7aa7ff; --gold-dark: #0f3fa8; --on-gold: #fff; }
:root { --accent-ink: color-mix(in srgb, var(--accent) 70%, var(--text)); }
:root { --side-w: 248px; --head-h: 64px; }
body {
  min-height: 100vh; color: var(--text);
  background:
    radial-gradient(1100px 520px at 70% -220px, color-mix(in srgb, var(--brand) 16%, transparent), transparent),
    radial-gradient(800px 500px at -10% 30%, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
    var(--bg) fixed;
}
a { color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }

/* ---------- shell: side menu + main column ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.side {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--side-w); display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg)); border-right: 1px solid var(--border);
  transform: translateX(-100%); transition: transform 0.25s ease;
}
.side-head { display: flex; align-items: center; gap: 8px; height: var(--head-h); padding: 0 14px; border-bottom: 1px solid var(--border); flex: none; }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 10px 24px; scrollbar-width: thin; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.93rem; transition: background 0.15s, color 0.15s; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 28%, transparent), transparent); color: var(--text); box-shadow: inset 3px 0 0 var(--brand); }
.side-ic { width: 26px; height: 26px; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.side-ic img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.side-ic b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--bc, var(--brand)); color: #fff; font-size: 0.8rem; }
.side-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-title { margin: 16px 12px 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--muted) 80%, transparent); }
.side-lang { margin: 18px 6px 0; }
.side-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); }
body.side-open .side { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--brand); }

@media (min-width: 1200px) {
  body.layout-side .side { transform: none; }
  body.layout-side :is(.side-close, .menu-btn, .brand-top, .side-backdrop) { display: none !important; }
  body.layout-side .shell { margin-left: var(--side-w); }
  body.layout-side.side-open .side { box-shadow: none; }
}
/* Top bar layout: the menu opens from the ☰ button at every size. */
body.layout-top .site-head { gap: 18px; }
body.layout-top #nav a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: var(--head-h);
  padding: 0 20px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.15rem; color: var(--text); text-decoration: none; white-space: nowrap; min-width: 0; letter-spacing: 0.01em; }
.brand span[translate] { overflow: hidden; text-overflow: ellipsis; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--gold-light), var(--brand) 55%, var(--gold-dark)); font-size: 1.1rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 40%, transparent); }
.site-logo { height: var(--hdr-logo-h, 34px); width: auto; max-width: 240px; object-fit: contain; vertical-align: middle; border-radius: 8px; }
.foot-brand .site-logo { height: var(--ftr-logo-h, 34px); max-width: 100%; }
/* header & footer colours from the Site builder (page settings → Header / Footer) */
body.head-bg .site-head, body.head-bg .side-head { background: var(--hdr-bg); color: var(--hdr-ink); backdrop-filter: none; }
body.head-bg .site-head :is(.brand, #nav a, .user-name) { color: inherit; }
body.head-bg .site-head .btn.ghost { color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }
body.foot-bg .site-foot :is(.muted, small, .foot-cur-label) { color: inherit; opacity: 0.75; }
body.foot-bg .site-foot { background: var(--ftr-bg); color: var(--ftr-ink); box-shadow: 0 0 0 100vmax var(--ftr-bg); clip-path: inset(0 -100vmax); border-top-color: transparent; }
body.foot-bg .site-foot :is(a, .brand, h4) { color: inherit; }
.head-search { display: flex; align-items: center; gap: 8px; flex: 0 1 360px; padding: 0 12px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.head-search:focus-within { border-color: var(--brand); }
.head-search input { border: 0; background: transparent; padding: 0; height: 100%; color: var(--text); box-shadow: none; outline: none; }
#nav { display: flex; gap: 4px; }
#nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 700; }
#nav a.active, #nav a:hover { color: var(--text); background: var(--surface-2); }
#account { display: flex; align-items: center; gap: 10px; }
/* the active wallet: the changer's button (pop-up style) or a dropdown, see pickerPopup.js */
.wallet-pick { display: flex; align-items: center; }
.wallet-pick .pick-btn { font-weight: 900; color: var(--accent-ink); padding: 8px 12px; }
.wallet-pick select { width: auto; padding: 8px 10px; font-weight: 900; color: var(--accent-ink); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-variant-numeric: tabular-nums; }
.deposit-btn { box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 40%, transparent); }
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; font-weight: 900; }
.user-name { color: var(--muted); font-weight: 700; font-size: 0.9rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.ghost { background: transparent; }

.site-main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 22px 22px 60px; flex: 1; }
.announce { display: flex; justify-content: center; gap: 8px; padding: 9px 16px; text-align: center; font-weight: 800; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--bg)), var(--brand)); color: var(--brand-ink); }

@media (max-width: 1100px) { #nav { display: none; } .user-name { display: none; } }
@media (max-width: 760px) {
  .site-head { padding: 0 12px; gap: 10px; }
  .head-search, .user-chip, #logout, .brand-top span[translate] { display: none; }
  .site-main { padding: 14px 12px 96px; }
  .wallet-pick .pick-btn .pick-ic { display: none; }
  .wallet-pick .pick-btn { padding: 7px 10px; }
}

/* ---------- phones: bottom bar ---------- */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  }
  .bn-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.7rem; font-weight: 700; text-decoration: none; cursor: pointer; }
  .bn-tab span:first-child { font-size: 1.25rem; line-height: 1; }
  .bn-tab.active { color: var(--text); }
  .bn-tab.bn-main span:first-child { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--brand) 55%, var(--gold-dark)); color: var(--brand-ink); font-size: 1.5rem; font-weight: 900; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 55%, transparent); border: 3px solid var(--bg); }
}

/* ---------- footer ---------- */
.site-foot { width: 100%; max-width: 1320px; margin: 30px auto 0; padding: 30px 22px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
.foot-top { display: grid; grid-template-columns: minmax(220px, 1.2fr) 2fr; gap: 30px; }
.foot-brand p { margin: 12px 0 0; line-height: 1.6; max-width: 360px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.foot-col h4 { margin: 0 0 10px; color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.foot-col a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.foot-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.trust { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text); font-size: 0.82rem; }
.trust b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e5243b; color: #ff6b7b; font-size: 0.72rem; }
.foot-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.pay-chip { padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.05em; }
.foot-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } .site-foot { padding-bottom: 110px; } }

/* ---------- home page sections inside the site's column ---------- */
.pb .section { max-width: none; padding: 16px 0; }
.pb .section-head { text-align: left; margin: 0 0 14px; max-width: none; }
.pb .section-head h2 { font-size: 1.4rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.pb .section-head .kicker { margin-bottom: 8px; }
.pb .hero-slider { border-radius: 24px; border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); margin: 0 0 8px; box-shadow: 0 24px 60px color-mix(in srgb, var(--gold) 22%, transparent); }
.pb .slide::after { display: none; }
.pb .slide-inner { padding: 0 44px; }
.pb .slide-inner > * { max-width: 560px; }
.pb .cta-banner { margin: 22px 0; max-width: none; }
.pb .promos { padding-top: 16px; padding-bottom: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pb .ticker { border-radius: 14px; margin: 8px 0; }
.pb .text-block .text-body { margin: 0; text-align: left; }
.pb .text-block:not(.left) .text-body, .pb .text-block:not(.left) .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.pb .faq { margin: 0; max-width: none; }
.pb .features { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.row-head > div:first-child { flex: 1; min-width: 0; }
.row-head .section-head { margin: 0; }
.row-arrows { display: flex; gap: 6px; }
.row-arrow { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.row-arrow:hover { border-color: var(--brand); color: var(--brand); }
.view-all { color: var(--brand); font-weight: 800; text-decoration: none; white-space: nowrap; padding-bottom: 6px; }
@media (max-width: 760px) { .pb .slide-inner { padding: 0 20px; } .row-arrows { display: none; } }

/* ---------- category buttons ---------- */
.cat-chips { display: flex; gap: 10px; margin: 6px 0 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 800; font-size: 0.92rem; white-space: nowrap; flex: none; transition: border-color 0.15s, transform 0.15s; }
.cat-chip:hover { border-color: var(--brand); transform: translateY(-2px); }
.cat-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); font-size: 1.2rem; }
.cat-chip.active { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #000), var(--brand)); border-color: transparent; color: var(--brand-ink); }
.cat-chip.active .cat-ic { background: rgba(255, 255, 255, 0.2); }

/* ---------- game tiles ---------- */
.game-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.game-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 186px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.game-row::-webkit-scrollbar { display: none; }
.game-row > * { scroll-snap-align: start; }
.game-tile {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--gp, var(--brand)) 70%, #000), #08060f);
  border: 1px solid color-mix(in srgb, var(--gp, #888) 45%, var(--border)); isolation: isolate;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s; outline: none;
}
.game-tile:hover, .game-tile:focus-visible { transform: translateY(-6px); border-color: var(--gp, var(--brand)); box-shadow: 0 18px 40px color-mix(in srgb, var(--gp, var(--brand)) 40%, transparent); }
.gt-art { position: absolute; inset: 0; z-index: -1; }
.gt-cover, .gt-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; transition: transform 0.35s; }
.gt-bg { filter: saturate(1.2) brightness(0.8); }
.game-tile:hover .gt-cover, .game-tile:hover .gt-bg { transform: scale(1.06); }
.gt-syms { position: absolute; inset: 14% 8% 34%; display: grid; place-items: center; }
.gt-sym { position: absolute; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); transition: transform 0.35s; }
.gt-sym.s0 { width: 62%; z-index: 2; }
.gt-sym.s1 { width: 38%; left: 0; top: 46%; transform: rotate(-14deg); opacity: 0.95; }
.gt-sym.s2 { width: 38%; right: 0; top: 46%; transform: rotate(14deg); opacity: 0.95; }
.game-tile:hover .gt-sym.s0 { transform: scale(1.08) translateY(-4px); }
.gt-logo { position: absolute; left: 10%; right: 10%; top: 6%; width: 80%; max-height: 22%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)); }
.game-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 52%, rgba(6, 4, 12, 0.92)); }
.gt-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.gt-badge { padding: 3px 8px; border-radius: 8px; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.06em; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.gt-badge.hot { background: linear-gradient(135deg, #ff9a3d, #e5243b); color: #fff; }
.gt-badge.new { background: linear-gradient(135deg, #5eeaff, #2563eb); color: #fff; }
.gt-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 1px; }
.gt-info strong { font-size: 0.95rem; line-height: 1.2; text-shadow: 0 2px 8px #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-info span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-hover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(8, 5, 18, 0.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.2s; }
.game-tile:hover .gt-hover, .game-tile:focus-visible .gt-hover { opacity: 1; }
.gt-play { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--brand) 55%, var(--gold-dark)); color: var(--brand-ink); font-size: 1.4rem; padding-left: 4px; box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 60%, transparent); transform: scale(0.85); transition: transform 0.2s; }
.game-tile:hover .gt-play { transform: scale(1); }
.gt-play-label { font-weight: 900; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.gt-fun { padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.45); color: #fff; font: inherit; font-size: 0.72rem; font-weight: 800; cursor: pointer; }
.gt-fun:hover { background: var(--accent); color: #111; border-color: transparent; }
.gt-off { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, 0.75); font-size: 0.7rem; font-weight: 800; }
.game-tile.unavailable { cursor: not-allowed; filter: grayscale(0.85); opacity: 0.7; }
.game-tile.unavailable:hover { transform: none; box-shadow: none; }
.game-tile.other-cur .gt-art { filter: saturate(0.6); }
.game-tile.skeleton { cursor: default; border-color: var(--border); background: linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.game-tile.skeleton::after { display: none; }
@keyframes shimmer { to { background-position: -150% 0; } }
/* Placeholder in the page until the site has drawn itself (client/casino/index.html). */
.boot-hero { height: clamp(220px, 32vh, 300px); margin: 0 0 24px; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@media (max-width: 760px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .game-row { grid-auto-columns: 36%; }
  .gt-hover { display: none; }
  .game-tile { border-radius: 14px; }
}
@media (max-width: 420px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .game-row { grid-auto-columns: 46%; } }

/* ---------- game lobby (tabs, search, load more) ---------- */
.lobby-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.lobby-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); scrollbar-width: none; }
.lobby-tabs::-webkit-scrollbar { display: none; }
.lobby-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; }
.lobby-tab:hover { color: var(--text); }
.lobby-tab.active { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 40%, transparent); }
.lobby-search { display: flex; align-items: center; gap: 8px; flex: 0 1 280px; padding: 0 12px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.lobby-search:focus-within { border-color: var(--brand); }
.lobby-search input { border: 0; background: transparent; padding: 0; height: 100%; color: var(--text); box-shadow: none; outline: none; }
.lobby-more { display: flex; justify-content: center; margin-top: 20px; }
.lobby-more .btn { min-width: 200px; }
@media (max-width: 760px) { .lobby-search { flex: 1 1 100%; } }

/* ---------- category / provider / search pages ---------- */
.page-banner {
  position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 18px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--bc, var(--brand)) 45%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--bc, var(--brand)) 40%, var(--border));
}
.page-banner::after { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--bc, var(--brand)) 45%, transparent), transparent 70%); pointer-events: none; }
.pb-ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: rgba(0, 0, 0, 0.25); font-size: 2rem; overflow: hidden; flex: none; }
.pb-ic img { width: 100%; height: 100%; object-fit: cover; }
.pb-ic b { color: #fff; font-size: 1.8rem; }
.pb-txt { flex: 1; min-width: 200px; }
.pb-txt h1 { margin: 0; font-size: 1.7rem; }
.pb-txt p { margin: 4px 0 0; color: var(--muted); }
.pb-count { font-size: 0.85rem; }

/* ---------- providers ---------- */
.provider-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.provider-strip::-webkit-scrollbar { display: none; }
.provider { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); flex: none; transition: border-color 0.15s, transform 0.15s; }
.provider:hover { border-color: var(--bc, var(--brand)); transform: translateY(-2px); }
.provider-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--bc, var(--brand)); color: #fff; font-weight: 900; font-size: 1.2rem; }
.provider-logo img { width: 100%; height: 100%; object-fit: cover; }
.provider strong { display: block; font-size: 0.95rem; }
.provider small { color: var(--muted); }
.brand-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.brand-tile {
  display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; color: var(--text); text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 35%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--bc) 45%, var(--border)); transition: transform 0.2s, box-shadow 0.2s;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px color-mix(in srgb, var(--bc) 35%, transparent); }
.brand-tile h3 { margin: 0 0 4px; }
.brand-tile p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.brand-tile .tag { padding: 1px 9px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; background: var(--bc); color: #fff; }
.brand-art { width: 76px; height: 76px; border-radius: 18px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--bc); font-size: 2rem; font-weight: 900; color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--bc) 50%, transparent); }
.brand-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- latest wins ---------- */
.wins-strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.wins-track { display: flex; gap: 12px; width: max-content; animation: wins calc(var(--n, 10) * 4s) linear infinite; }
.wins-strip:hover .wins-track { animation-play-state: paused; }
@keyframes wins { to { transform: translateX(-50%); } }
.win-card { display: flex; align-items: center; gap: 10px; width: 250px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); flex: none; }
.win-card:hover { border-color: var(--gp, var(--brand)); }
.win-thumb { position: relative; width: 50px; height: 62px; border-radius: 10px; background: center / cover no-repeat, var(--gp, var(--brand)); flex: none; display: grid; place-items: center; overflow: hidden; }
.win-thumb img { width: 76%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.win-text { display: flex; flex-direction: column; min-width: 0; }
.win-who { font-size: 0.78rem; color: var(--muted); }
.win-who b { color: var(--text); }
.win-amt { font-size: 1.05rem; font-weight: 900; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.win-game { font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .wins-track { animation: none; } .wins-strip { overflow-x: auto; } }

/* ---------- jackpot ---------- */
.pb-jackpot {
  position: relative; margin: 18px 0; padding: 46px 24px; border-radius: 26px; overflow: hidden; text-align: center;
  background: var(--art-x) center / cover no-repeat, radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--gold) 45%, #0a1f5c), #030a1f);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 60px color-mix(in srgb, var(--gold) 25%, transparent), inset 0 0 80px rgba(0, 0, 0, 0.5);
}
.pb-jackpot { --text: #fff; --gold-ink: color-mix(in srgb, var(--gold) 45%, #fff); color: #fff; }
.jp-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jp-title { margin: 0; font-size: clamp(1.3rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: 0.12em; color: #fff; text-shadow: 0 4px 20px #000; }
.jp-amount {
  margin: 4px 0; padding: 10px 26px; border-radius: 18px; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(2.2rem, 7vw, 4.4rem); letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 15%, color-mix(in srgb, var(--accent) 35%, #fff) 60%, color-mix(in srgb, var(--accent) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.45)) drop-shadow(0 8px 24px color-mix(in srgb, var(--accent) 60%, transparent));
}
.pb-jackpot p { margin: 0; color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 10px #000; }
.pb-jackpot .hero-cta { justify-content: center; margin-top: 14px; }
.pb-jackpot .kicker { background: rgba(0, 0, 0, 0.45); }

/* ---------- VIP levels & big numbers ---------- */

/* ---------- wallet, auth & other pages ---------- */
.auth-wrap { max-width: 440px; margin: 30px auto; }
.bank-option { display: block; padding: 14px; border: 2px solid var(--border); border-radius: 12px; margin-bottom: 10px; cursor: pointer; }
.bank-option:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.bank-option input { width: auto; margin-right: 8px; }
.bank-details { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 8px; font-size: 0.9rem; }
.bank-details dt { color: var(--muted); }
.bank-details dd { margin: 0; }
.steps { counter-reset: s; padding: 0; list-style: none; margin: 0 0 16px; }
.steps li { counter-increment: s; display: flex; gap: 10px; margin-bottom: 6px; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 0.8rem; flex: none; }
.wallet-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wallet-grid .card { margin-top: 0; }
.wallet-card.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.wallet-bal { font-size: 1.8rem; font-weight: 900; margin: 10px 0 2px; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.x-quote { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); margin-bottom: 14px; line-height: 1.6; }
.grid-2 > .card { margin-top: 0; }
.maintenance { max-width: 520px; margin: 60px auto; text-align: center; padding: 40px 24px; }
.maintenance .m-icon { font-size: 3rem; }

/* Operator (API) players: no cashier links */
body.operator-wallet a[href^="#/wallet/deposit"], body.operator-wallet a[href^="#/wallet/withdraw"], body.operator-wallet a[href^="#/wallet/exchange"] { display: none !important; }

/* Currency chooser before opening a game */
.cur-dialog { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); padding: 20px; max-width: min(420px, calc(100vw - 32px)); }
.cur-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.cur-dialog h3 { margin: 0 0 6px; }
.cur-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 14px 0; }
.cur-options .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.jp-last { margin-top: 8px !important; padding: 6px 14px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); font-weight: 700; font-size: 0.9rem; }

/* page banners with a picture (search, category and provider pages) */
.page-banner.has-image { min-height: 200px; padding: 30px 28px; color: #fff; border: 0;
  background: linear-gradient(90deg, rgba(6, 10, 24, 0.82) 0%, rgba(6, 10, 24, 0.45) 45%, rgba(6, 10, 24, 0) 75%), var(--banner) center right / cover no-repeat, var(--bc, var(--brand)); }
.page-banner.has-image::after { display: none; }
.page-banner.has-image .pb-txt h1 { color: #fff; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6); font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.page-banner.has-image .pb-txt p, .page-banner.has-image .pb-count { color: rgba(255, 255, 255, 0.85); }
.page-banner.has-image .pb-ic { background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.page-banner.has-image .lobby-search { background: rgba(255, 255, 255, 0.92); border-color: transparent; color: #5b6b85; }
.page-banner.has-image .lobby-search input { color: #0f1b33; }
@media (max-width: 760px) { .page-banner.has-image { min-height: 160px; background-position: 0 0, 70% center, 0 0; } }
