/* ==========================================================================
   PLIXWIN – Casino / Live casino / Sports pages
   Loaded after every other stylesheet. Uses the existing champagne-gold theme.
   ========================================================================== */
:root {
  --px-bg: #0b0c0f;
  --px-surface: #121418;
  --px-card: #16181d;
  --px-raise: #1b1e24;
  --px-line: #23262e;
  --px-line-soft: #1c1f25;
  --px-text: #f2efe8;
  --px-muted: #9a9da6;
  --px-dim: #6d707a;
  --px-gold: #e5c58c;
  --px-gold-deep: #cba15e;
  --px-gold-fill: linear-gradient(125deg, #f3dfb0 0%, #e5c58c 45%, #cba15e 100%);
  --px-live: #ef4444;
  --px-radius: 18px;
  --px-head-font: 'Sora', 'Plus Jakarta Sans', sans-serif;
  --px-body-font: 'Plus Jakarta Sans', 'Onest', Arial, sans-serif;
}

/* ---------- Header: slightly larger logo, navigation nudged right ---------- */
@media (min-width: 901px) {
  header.top-header .brand-logo-img { width: 104px !important; max-width: 104px !important; height: auto !important; }
  header.top-header .brand-logo-wrap { margin-right: 22px !important; }
  header.top-header .top-nav-tabs { margin-left: 18px !important; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  header.top-header .brand-logo-img { width: 92px !important; max-width: 92px !important; }
  header.top-header .brand-logo-wrap { margin-right: 10px !important; }
  header.top-header .top-nav-tabs { margin-left: 6px !important; }
}
@media (max-width: 900px) {
  header.top-header .brand-logo-img { width: 112px !important; max-width: 112px !important; height: auto !important; }
}
@media (max-width: 420px) {
  header.top-header .brand-logo-img { width: 96px !important; max-width: 96px !important; }
}
@media (max-width: 360px) {
  header.top-header .brand-logo-img { width: 84px !important; max-width: 84px !important; }
}

/* ---------- Page switching ---------- */
#pxPages { display: none; }
body.px-mode #pxPages { display: block; }
body.px-mode .app-shell > :not(#pxPages) { display: none !important; }
.px-view { display: none; }
body[data-px="casino"] .px-view[data-view="casino"],
body[data-px="live"] .px-view[data-view="live"],
body[data-px="sports"] .px-view[data-view="sports"] { display: block; }
body[data-px="sports"] .app-footer { display: none !important; }
body[data-px="sports"] .app-shell { padding: 0 !important; gap: 0 !important; min-height: 0 !important; }

#pxPages, #pxPages button, #pxPages input { font-family: var(--px-body-font); }
#pxPages button { cursor: pointer; }
.px-view { width: 100%; max-width: 1560px; margin: 0 auto; }
.px-stack { display: flex; flex-direction: column; gap: 34px; }
.px-stack[hidden], .px-sec[hidden] { display: none !important; }

/* ---------- Banner ---------- */
.px-hero { position: relative; height: 300px; border-radius: 24px; overflow: hidden; background: var(--px-surface); border: 1px solid var(--px-line-soft); isolation: isolate; }
.px-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.px-slide.is-active { opacity: 1; visibility: visible; }
.px-slide-art { position: absolute; inset: 0; z-index: -2; }
.px-slide-art img { position: absolute; right: 0; top: 0; height: 100%; width: 68%; object-fit: cover; object-position: center; }
.px-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0d0e12 0%, #0d0e12 30%, rgba(13, 14, 18, .82) 46%, rgba(13, 14, 18, .15) 72%, rgba(13, 14, 18, 0) 100%); }
.px-slide-copy { position: relative; max-width: 480px; padding: 0 0 0 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.px-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--px-gold); }
.px-slide h2 { margin: 0; font-family: var(--px-head-font); font-size: 40px; line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--px-text); }
.px-slide p { margin: 0; font-size: 14px; line-height: 1.55; color: #b9bbc2; max-width: 380px; }
.px-btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; margin-top: 6px; border: 0; border-radius: 12px; background: var(--px-gold-fill); color: #17130b; font-size: 14px; font-weight: 800; box-shadow: 0 10px 26px -12px rgba(229, 197, 140, .7); transition: transform .15s ease, filter .15s ease; }
.px-btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.px-hero-dots { position: absolute; left: 48px; bottom: 22px; display: flex; gap: 6px; z-index: 3; }
.px-hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .25); transition: width .3s ease, background .3s ease; }
.px-hero-dots button.is-active { width: 26px; background: var(--px-gold); }
.px-hero-arrows { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; z-index: 3; }
.px-hero-arrows button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(12, 13, 16, .6); color: var(--px-text); backdrop-filter: blur(6px); }
.px-hero-arrows button:hover { border-color: var(--px-gold); color: var(--px-gold); }
.px-hero-arrows svg, .px-arrows svg { width: 16px; height: 16px; }

/* Game-art collage (dynamic slides) */
.px-collage { position: absolute; right: 9%; top: 50%; width: 44%; height: 226px; transform: translateY(-50%); z-index: -1; }
.px-collage::before { content: ""; position: absolute; inset: -30% -20%; background: radial-gradient(closest-side, rgba(229, 197, 140, .22), transparent 70%); }
.px-collage.is-live::before { background: radial-gradient(closest-side, rgba(239, 68, 68, .2), rgba(229, 197, 140, .08) 55%, transparent 75%); }
.px-collage figure { position: absolute; top: 50%; margin: 0; width: 34%; aspect-ratio: 168 / 226; border-radius: 16px; overflow: hidden; background: #1a1c22; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9); }
.px-collage figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-collage figure:nth-child(1) { left: 4%; transform: translateY(-46%) rotate(-9deg); }
.px-collage figure:nth-child(2) { left: 33%; transform: translateY(-50%); z-index: 2; width: 36%; }
.px-collage figure:nth-child(3) { left: 64%; transform: translateY(-46%) rotate(9deg); }
.px-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--px-live); box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: pxPulse 1.8s infinite; }
@keyframes pxPulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* ---------- Toolbar: search, providers, chips ---------- */
.px-toolbar { display: flex; flex-direction: column; gap: 14px; }
.px-search-row { display: flex; gap: 10px; }
.px-search { flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 14px; background: var(--px-surface); border: 1px solid var(--px-line); transition: border-color .15s ease; }
.px-search:focus-within { border-color: rgba(229, 197, 140, .55); }
.px-search svg { width: 18px; height: 18px; color: var(--px-dim); flex-shrink: 0; }
.px-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--px-text); font-size: 14px; }
.px-search input::placeholder { color: var(--px-dim); }
.px-search-clear { display: none; border: 0; background: none; color: var(--px-muted); font-size: 12px; font-weight: 700; padding: 6px; }
.px-search.has-value .px-search-clear { display: block; }
.px-prov-wrap { position: relative; }
.px-prov-btn { height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 14px; background: var(--px-surface); border: 1px solid var(--px-line); color: var(--px-text); font-size: 14px; font-weight: 700; white-space: nowrap; }
.px-prov-btn:hover, .px-prov-btn[aria-expanded="true"] { border-color: rgba(229, 197, 140, .55); }
.px-prov-btn .px-caret { width: 14px; height: 14px; color: var(--px-muted); transition: transform .2s; }
.px-prov-btn[aria-expanded="true"] .px-caret { transform: rotate(180deg); }
.px-prov-btn .px-mono { width: 24px; height: 24px; border-radius: 7px; font-size: 8px; }
.px-prov-btn > svg:first-child { width: 18px; height: 18px; flex-shrink: 0; --nav-icon-stroke: #d6d4ce; --nav-icon-accent: var(--px-gold-deep); }
.px-prov-wrap { flex: 0 0 auto; }
.px-prov-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; max-height: 420px; overflow-y: auto; padding: 6px; border-radius: 16px; background: #17191e; border: 1px solid #2c2f37; box-shadow: 0 24px 60px -20px #000; scrollbar-width: thin; }
.px-prov-menu[hidden] { display: none; }
.px-prov-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--px-text); font-size: 13px; font-weight: 600; text-align: left; }
.px-prov-menu button:hover, .px-prov-menu button[aria-checked="true"] { background: #20232a; }
.px-prov-menu button[aria-checked="true"] { color: var(--px-gold); }
.px-prov-menu button span:nth-child(2) { flex: 1; }
.px-prov-menu small { color: var(--px-dim); font-size: 11px; font-weight: 600; }
.px-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.px-chips::-webkit-scrollbar { display: none; }
.px-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--px-line); background: var(--px-surface); color: #d6d4ce; font-size: 14px; font-weight: 700; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.px-chip svg { width: 18px; height: 18px; --nav-icon-stroke: currentColor; --nav-icon-accent: var(--px-gold-deep); }
.px-chip:hover { border-color: #3a3d45; color: var(--px-text); }
.px-chip.is-active { border-color: rgba(229, 197, 140, .6); background: linear-gradient(120deg, rgba(229, 197, 140, .2), rgba(229, 197, 140, .05)); color: var(--px-gold); }
.px-chip .px-chip-live { font-size: 9px; font-weight: 800; letter-spacing: .06em; color: var(--px-live); border: 1px solid rgba(239, 68, 68, .6); border-radius: 5px; padding: 1px 5px; }

/* ---------- Provider monogram icon ---------- */
.px-mono { position: relative; flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(120% 90% at 30% 15%, color-mix(in srgb, var(--px-accent, #e5c58c) 30%, #1d2027), #121418 70%); border: 1px solid color-mix(in srgb, var(--px-accent, #e5c58c) 45%, #2a2d35); font-family: var(--px-head-font); font-size: 12px; font-weight: 800; letter-spacing: -.02em; color: var(--px-text); overflow: hidden; }
.px-mono b { background: var(--px-gold-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.px-mono img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.px-mono.is-live::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--px-live); }

/* ---------- Sections & rails ---------- */
.px-sec { --px-cols: 7; --px-gap: 16px; min-width: 0; }
.px-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.px-sec-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.px-sec-title h2 { margin: 0; font-family: var(--px-head-font); font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--px-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-sec-title .px-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #16181d; border: 1px solid var(--px-line); color: var(--px-gold); flex-shrink: 0; }
.px-sec-title .px-ic svg { width: 20px; height: 20px; --nav-icon-stroke: #d6d4ce; --nav-icon-accent: var(--px-gold-deep); }
.px-count { flex-shrink: 0; padding: 4px 9px; border-radius: 99px; background: #1a1c22; border: 1px solid var(--px-line); color: var(--px-muted); font-size: 11px; font-weight: 700; }
.px-sec-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.px-viewall { border: 0; background: none; color: var(--px-muted); font-size: 13px; font-weight: 700; padding: 6px 4px; }
.px-viewall:hover { color: var(--px-gold); }
.px-arrows { display: flex; gap: 6px; }
.px-arrows button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--px-line); background: var(--px-surface); color: var(--px-text); transition: border-color .15s ease, color .15s ease, opacity .15s ease; }
.px-arrows button:hover:not(:disabled) { border-color: var(--px-gold); color: var(--px-gold); }
.px-arrows button:disabled { opacity: .35; cursor: default; }
.px-sec.is-grid .px-arrows { display: none; }

.px-track { display: flex; gap: var(--px-gap); overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px 0; }
.px-track::-webkit-scrollbar { display: none; }
.px-track > .game-card { flex: 0 0 calc((100% - (var(--px-cols) - 1) * var(--px-gap)) / var(--px-cols)) !important; width: calc((100% - (var(--px-cols) - 1) * var(--px-gap)) / var(--px-cols)) !important; min-width: 0 !important; max-width: none !important; scroll-snap-align: start; }
.px-sec.is-grid .px-track { display: grid; grid-template-columns: repeat(var(--px-cols), minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; row-gap: 20px; }
.px-sec.is-grid .px-track > .game-card { width: 100% !important; }
.px-track .game-card:hover { transform: translateY(-4px); }
.px-track .game-card { transition: transform .18s ease; cursor: pointer; }
.px-empty { padding: 26px; border-radius: 16px; border: 1px dashed var(--px-line); color: var(--px-muted); font-size: 14px; text-align: center; width: 100%; }

/* Skeleton cards while loading */
.px-skel { flex: 0 0 calc((100% - (var(--px-cols) - 1) * var(--px-gap)) / var(--px-cols)); min-width: 0; }
.px-skel i { display: block; aspect-ratio: 168 / 226; border-radius: 16px; background: linear-gradient(100deg, #15171b 30%, #1d2026 50%, #15171b 70%); background-size: 300% 100%; animation: pxShimmer 1.4s linear infinite; }
.px-skel b { display: block; height: 10px; width: 70%; margin-top: 12px; border-radius: 6px; background: #17191e; }
@keyframes pxShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Load more */
.px-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.px-more[hidden] { display: none; }
.px-more-row { width: 100%; display: flex; align-items: center; gap: 16px; }
.px-more-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #2b2e36 55%, rgba(229, 197, 140, .45)); }
.px-more-line.is-end { background: linear-gradient(270deg, transparent, #2b2e36 55%, rgba(229, 197, 140, .45)); }
.px-more-btns { display: flex; gap: 8px; }
.px-more-meta { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--px-dim); font-weight: 600; }
.px-more-meta b { color: var(--px-text); font-weight: 700; }
.px-more-bar { display: block; width: 160px; height: 3px; border-radius: 99px; background: #1e2127; overflow: hidden; }
.px-more-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--px-gold-fill); transition: width .4s ease; }
.px-more-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 12px; border: 1px solid rgba(229, 197, 140, .45); background: linear-gradient(120deg, rgba(229, 197, 140, .14), rgba(229, 197, 140, .03)); color: var(--px-gold); font-size: 13px; font-weight: 800; letter-spacing: .01em; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.px-more-btn:hover:not(:disabled) { border-color: var(--px-gold); background: linear-gradient(120deg, rgba(229, 197, 140, .24), rgba(229, 197, 140, .06)); transform: translateY(-1px); }
.px-more-btn svg { width: 14px; height: 14px; }
.px-more-btn:disabled { opacity: .6; cursor: progress; }
.px-more-btn.is-loading svg { animation: pxSpin .8s linear infinite; }
.px-less-btn { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--px-line); background: var(--px-surface); color: var(--px-muted); font-size: 13px; font-weight: 700; }
.px-less-btn:hover { color: var(--px-text); border-color: #3a3d45; }
.px-less-btn[hidden] { display: none; }
@keyframes pxSpin { to { transform: rotate(360deg); } }

/* Results header (filter / search / provider views) */
.px-results-head { display: flex; align-items: center; gap: 12px; }
.px-back { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--px-line); background: var(--px-surface); color: var(--px-muted); font-size: 13px; font-weight: 700; }
.px-back:hover { color: var(--px-gold); border-color: rgba(229, 197, 140, .5); }
.px-back svg { width: 14px; height: 14px; }

/* ---------- Provider strip ---------- */
.px-prov-strip { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; cursor: grab; }
.px-prov-strip::-webkit-scrollbar { display: none; }
.px-prov-strip.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.px-prov-tile { flex: 0 0 196px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--px-line); background: linear-gradient(160deg, #15171c, #111317); color: var(--px-text); text-align: left; transition: border-color .15s ease, transform .15s ease; }
.px-prov-tile:hover { border-color: rgba(229, 197, 140, .55); transform: translateY(-2px); }
.px-prov-tile .px-mono { width: 46px; height: 46px; font-size: 13px; border-radius: 13px; }
.px-prov-tile strong { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-prov-tile small { display: block; margin-top: 3px; font-size: 12px; color: var(--px-dim); font-weight: 600; }
.px-prov-tile > span:last-child { min-width: 0; }

/* ---------- Sports (embedded sportsbook) ---------- */
.px-sports { position: relative; display: flex; flex-direction: column; background: #0b0c0f; }
.px-sports-note { display: flex; align-items: center; gap: 12px; padding: 9px 18px; background: linear-gradient(90deg, rgba(229, 197, 140, .14), rgba(229, 197, 140, .03)); border-bottom: 1px solid #262218; color: #d9d6cf; font-size: 13px; }
.px-sports-note[hidden] { display: none; }
.px-sports-note b { color: var(--px-gold); }
.px-sports-note .px-sports-actions { margin-left: auto; display: flex; gap: 8px; }
.px-sports-note button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.px-sports-note .px-note-login { border: 0; background: var(--px-gold-fill); color: #17130b; }
.px-sports-note .px-note-close { border: 1px solid #3a3528; background: transparent; color: #bdb8ad; }
.px-sports-stage { position: relative; flex: 1; min-height: 320px; }
.px-sports-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0c0f; }
.px-sports-state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(60% 50% at 50% 40%, rgba(229, 197, 140, .07), transparent 70%), #0b0c0f; z-index: 2; }
.px-sports-state[hidden] { display: none; }
.px-sports-state p { margin: 14px 0 0; color: var(--px-muted); font-size: 14px; }
.px-sports-state .px-btn-gold { margin-top: 16px; }
.px-spinner { width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; border: 3px solid #25272e; border-top-color: var(--px-gold); animation: pxSpin .9s linear infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 1440px) { .px-sec { --px-cols: 6; } }
@media (max-width: 1150px) { .px-sec { --px-cols: 5; } .px-slide h2 { font-size: 34px; } }
@media (max-width: 900px) {
  .px-sec { --px-cols: 4; --px-gap: 12px; }
  .px-stack { gap: 28px; }
  .px-hero { height: 260px; border-radius: 20px; }
  .px-slide-copy { padding-left: 28px; max-width: 58%; }
  .px-hero-dots { left: 28px; }
  .px-collage { width: 48%; right: 2%; height: 210px; }
}
@media (max-width: 650px) {
  .px-sec { --px-cols: 3; --px-gap: 10px; }
  .px-sec.is-grid .px-track { row-gap: 14px; }
  .px-stack { gap: 24px; }
  .px-hero { height: 214px; border-radius: 18px; }
  .px-slide-copy { padding-left: 20px; max-width: 62%; gap: 8px; }
  .px-slide h2 { font-size: 24px; }
  .px-slide p { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .px-eyebrow { font-size: 9px; letter-spacing: .12em; }
  .px-btn-gold { min-height: 36px; padding: 0 14px; font-size: 12px; margin-top: 2px; }
  .px-slide-art img { width: 78%; }
  .px-slide::before { background: linear-gradient(90deg, #0d0e12 0%, rgba(13, 14, 18, .92) 42%, rgba(13, 14, 18, .35) 70%, rgba(13, 14, 18, .1) 100%); }
  .px-hero-dots { left: 20px; bottom: 14px; }
  .px-hero-arrows { display: none; }
  .px-collage { width: 46%; right: 1%; height: 176px; }
  .px-collage figure { border-radius: 10px; }
  .px-search-row { gap: 8px; }
  .px-search, .px-prov-btn { height: 44px; border-radius: 12px; }
  .px-prov-btn { padding: 0 12px; font-size: 13px; }
  .px-prov-btn .px-prov-label { display: none; }
  .px-prov-menu { width: min(300px, calc(100vw - 32px)); }
  .px-chip { height: 38px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
  .px-sec-head { margin-bottom: 12px; }
  .px-sec-title { gap: 10px; }
  .px-sec-title h2 { font-size: 18px; }
  .px-mono, .px-sec-title .px-ic { width: 34px; height: 34px; border-radius: 10px; font-size: 10px; }
  .px-count { display: none; }
  .px-arrows button { width: 32px; height: 32px; border-radius: 10px; }
  .px-more { margin-top: 14px; } .px-more-row { gap: 10px; }
  .px-more-bar { width: 140px; }
  .px-more-btn { height: 38px; padding: 0 16px; }
  .px-prov-tile { flex-basis: 164px; padding: 12px; gap: 10px; }
  .px-prov-tile .px-mono { width: 40px; height: 40px; }
  .px-prov-tile strong { font-size: 13px; }
  .px-sports-note { padding: 8px 12px; font-size: 12px; flex-wrap: wrap; row-gap: 6px; }
}
@media (max-width: 400px) {
  .px-viewall { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .px-slide, .px-track, .px-prov-strip { transition: none; scroll-behavior: auto; }
  .px-live-dot, .px-skel i { animation: none; }
}

/* ==========================================================================
   v2 – calmer greys, cleaner type, "playing" counts, smooth transitions
   ========================================================================== */
:root {
  --px-ui-font: 'Onest', 'Plus Jakarta Sans', Arial, sans-serif;
  --px-grey-1: #1a1c21;
  --px-grey-2: #22252b;
  --px-grey-3: #2e3138;
  --px-grey-text: #a4a7b0;
}
#pxPages, #pxPages button, #pxPages input { font-family: var(--px-ui-font); }

/* Headings: same family as the navigation, no heavy display font */
.px-sec-title h2 { font-family: var(--px-ui-font); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.px-slide h2 { font-family: var(--px-ui-font); font-weight: 700; letter-spacing: -.02em; }
.px-eyebrow { color: var(--px-grey-text); letter-spacing: .14em; }

/* Section icons: neutral tile, grey stroke with a small gold accent */
.px-sec-title .px-ic { background: var(--px-grey-1); border-color: var(--px-line); --px-icon-bg: var(--px-grey-1); }
.px-sec-title .px-ic svg { width: 21px; height: 21px; --nav-icon-stroke: #c9cbd1; --nav-icon-accent: #b89a63; }
.px-mono { background: var(--px-grey-1); border-color: var(--px-line); }
.px-mono b { background: none; -webkit-background-clip: initial; background-clip: initial; color: #d9dbe0; }
.px-mono.is-live::after { display: none; }

/* Chips: grey when active, no gold fill */
.px-chip { font-weight: 600; color: #b9bbc2; --px-icon-bg: var(--px-surface); }
.px-chip svg { --nav-icon-stroke: currentColor; --nav-icon-accent: #9a9da6; }
.px-chip:hover { background: var(--px-grey-1); }
.px-chip.is-active { background: var(--px-grey-2); border-color: var(--px-grey-3); color: #f2f2f4; --px-icon-bg: var(--px-grey-2); }
.px-chip.is-active svg { --nav-icon-accent: #c9a96e; }
.px-chip-live, .px-live-dot { display: none !important; }

/* Toolbar + arrows: grey focus and hover */
.px-search:focus-within, .px-prov-btn:hover, .px-prov-btn[aria-expanded="true"] { border-color: var(--px-grey-3); }
.px-prov-menu button[aria-checked="true"] { color: #f2f2f4; }
.px-arrows button:hover:not(:disabled), .px-hero-arrows button:hover { border-color: var(--px-grey-3); color: #fff; background: var(--px-grey-1); }
.px-viewall { font-weight: 600; }
.px-viewall:hover { color: #f2f2f4; }
.px-prov-tile:hover { border-color: var(--px-grey-3); }
.px-back:hover { color: #f2f2f4; border-color: var(--px-grey-3); }
.px-hero-dots button.is-active { background: #d9dbe0; }
.px-sports-note { background: var(--px-grey-1); border-bottom-color: var(--px-line); }
.px-sports-note b { color: #f2f2f4; }
.px-collage.is-live::before { background: radial-gradient(closest-side, rgba(229, 197, 140, .12), transparent 72%); }

/* Load more: quiet grey text link between thin lines */
.px-more { flex-direction: row; align-items: center; gap: 18px; margin-top: 18px; }
.px-more-line, .px-more-line.is-end { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--px-grey-2) 40%); }
.px-more-line.is-end { background: linear-gradient(270deg, transparent, var(--px-grey-2) 40%); }
.px-more-btns { gap: 18px; }
.px-more-btn, .px-less-btn { height: auto; padding: 6px 2px; border: 0; border-radius: 0; background: none !important; box-shadow: none; transform: none !important; color: #8a8d96; font-size: 13px; font-weight: 600; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease; }
.px-more-btn:hover:not(:disabled), .px-less-btn:hover { color: #e6e7ea; border: 0; }
.px-more-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.px-more-btn:hover:not(:disabled) svg { transform: translateY(2px); }
.px-more-btn:disabled { opacity: .7; }

/* Game cards everywhere: artwork + "N playing" only (title kept for screen readers) */
.game-card.px-card-min .game-card-info { gap: 0 !important; padding-top: 8px !important; min-height: 0 !important; }
.game-card.px-card-min .game-card-title { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.game-card .game-card-provider.px-playing { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; font-family: var(--px-ui-font); font-size: 13px; font-weight: 500; line-height: 1.3; color: #8b8f99; font-variant-numeric: tabular-nums; }
.px-playing i { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.px-playing b { color: #e6e7ea; font-weight: 600; }
.px-playing span { white-space: nowrap; }
.app-shell #topHitsRail .game-card.px-card-min::before { bottom: 30px !important; }

/* ---------- Smooth transitions ---------- */
@keyframes pxEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pxCardIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.px-enter { animation: pxEnter .38s cubic-bezier(.22, .8, .24, 1) both; }
.app-shell.px-shell-enter { animation: pxFade .32s ease both; }
.px-track > .game-card.px-card-in { animation: pxCardIn .42s cubic-bezier(.22, .8, .24, 1) backwards; animation-delay: calc(var(--px-i, 0) * 28ms); }
.px-sec, .px-track { transition: opacity .25s ease; }
.px-chip, .px-arrows button, .px-prov-tile, .px-back { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.px-track .game-card { transition: transform .22s cubic-bezier(.22, .8, .24, 1); }

/* Sidebar opens and closes smoothly */
@property --navigation-width { syntax: '<length>'; inherits: true; initial-value: 248px; }
body { transition: --navigation-width .3s cubic-bezier(.22, .8, .24, 1); }
@media (min-width: 901px) {
  body:not(.nav-compact) .gold-sidebar .sidebar-item span,
  body:not(.nav-compact) .gold-sidebar .gold-label,
  body:not(.nav-compact) .gold-account span,
  body:not(.nav-compact) .gold-daily strong,
  body:not(.nav-compact) .gold-daily small { animation: pxFade .35s ease .08s both; }
}

@media (max-width: 650px) {
  .px-sec-title h2 { font-size: 17px; }
  .game-card .game-card-provider.px-playing { font-size: 11.5px; gap: 5px; }
  .game-card.px-card-min .game-card-info { padding-top: 7px !important; }
  .px-more { gap: 12px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .px-enter, .app-shell.px-shell-enter, .px-track > .game-card.px-card-in { animation: none; }
  body { transition: none; }
}

/* ==========================================================================
   v4 – smaller, denser game grids on desktop (Stake-like), content centred
   ========================================================================== */
@media (min-width: 901px) {
  .app-shell > * { width: 100%; max-width: 1560px; margin-left: auto !important; margin-right: auto !important; }
  .app-footer .footer-inner { max-width: 1560px; margin-left: auto; margin-right: auto; }
}
/* New Casino / Live pages */
.px-sec { --px-cols: 8; }
@media (max-width: 1599px) { .px-sec { --px-cols: 7; } }
@media (max-width: 1299px) { .px-sec { --px-cols: 6; } }
@media (max-width: 1100px) { .px-sec { --px-cols: 5; } }
@media (max-width: 900px)  { .px-sec { --px-cols: 4; --px-gap: 12px; } }
@media (max-width: 650px)  { .px-sec { --px-cols: 3; --px-gap: 10px; } }
@media (min-width: 901px) { .px-sec { --px-gap: 14px; } .px-sec.is-grid .px-track { row-gap: 18px; } }

/* Home rails and the catalog grid */
@media (min-width: 1101px) {
  .app-shell .game-rail-section { --rail-columns: 6; --rail-gap: 14px; }
  .app-shell #sectionTopHits { --rail-columns: 5; }
  .games-grid, #mainGamesGrid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 14px !important; }
  .home-mode #topHitsRail .game-card:nth-child(5) { display: flex !important; }
}
@media (min-width: 1300px) {
  .app-shell .game-rail-section { --rail-columns: 7; }
  .games-grid, #mainGamesGrid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
}
@media (min-width: 1600px) {
  .app-shell .game-rail-section { --rail-columns: 8; }
  .app-shell #sectionTopHits { --rail-columns: 6; }
  .games-grid, #mainGamesGrid { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
  .home-mode #topHitsRail .game-card:nth-child(6) { display: flex !important; }
}
@media (min-width: 901px) {
  .app-shell #topHitsRail .game-card::before { font-size: clamp(70px, 6.4vw, 118px) !important; }
}
/* Rail header icons: same neutral tile as the new pages */
.rail-icon-star { background: #1a1c21 !important; border: 1px solid #23262e; color: #c9cbd1 !important; }
.rail-icon-star .ui-icon { --nav-icon-stroke: #c9cbd1; --nav-icon-accent: #b89a63; }
/* Sports cards on phones: three per row like the game rails */
@media (max-width: 600px) {
  #sportsGamesRail { gap: 10px !important; }
  #sportsGamesRail .pxs-card { flex: 0 0 calc((100% - 20px) / 3); width: calc((100% - 20px) / 3); border-radius: 12px; padding: 12px 6px 14px !important; }
  #sportsGamesRail.expanded { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; }
  #sportsGamesRail .pxs-icon { width: 38px; height: 38px; }
  #sportsGamesRail .pxs-title b { font-size: 15px; }
  #sportsGamesRail .pxs-title small { font-size: 9px; letter-spacing: .1em; margin-bottom: 2px; }
  #sportsGamesRail .pxs-title::after { width: 16px; margin-top: 6px; }
}

/* ==========================================================================
   v5 – 8 games per row on desktop, gold accent dot on every icon
   ========================================================================== */
@media (min-width: 1200px) {
  .px-sec { --px-cols: 8; }
  .app-shell .game-rail-section { --rail-columns: 8; }
  .app-shell #sectionTopHits { --rail-columns: 6; }
  .games-grid, #mainGamesGrid { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
  .home-mode #topHitsRail .game-card:nth-child(-n+6) { display: flex !important; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .px-sec { --px-cols: 6; }
  .app-shell .game-rail-section { --rail-columns: 6; }
  .app-shell #sectionTopHits { --rail-columns: 5; }
  .games-grid, #mainGamesGrid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
/* Gold accent dot in every icon, like the home page pills */
.px-chip svg, .px-chip.is-active svg,
.px-sec-title .px-ic svg, .px-prov-btn > svg:first-child,
.rail-icon-star .ui-icon { --nav-icon-accent: #c9a25e !important; }
