/* assets/player-native-smooth-v3.10.143.css */
/* Player v3.10.143 — Android/iOS readiness + no-reflow game drawer + support launcher motion. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  min-height: 100%;
  min-height: 100dvh;
}

body {
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

button, a, [role="button"], input, select, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.content,
.sidebar-nav,
.game-frame,
.support-popup-card {
  -webkit-overflow-scrolling: touch;
}

/* Desktop LOTTO: sidebar becomes a transform-only overlay so opening it no longer
   resizes/reflows the heavy game iframe. */
@media (min-width: 821px) {
  .portal.game-active,
  .portal.game-active.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .portal.game-active .content {
    grid-column: 1 / -1 !important;
    contain: layout paint style;
  }

  .portal.game-active .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: var(--header-height, 68px) !important;
    bottom: 0 !important;
    width: var(--sidebar-width, 246px) !important;
    height: calc(100dvh - var(--header-height, 68px)) !important;
    z-index: 58 !important;
    transform: translate3d(0,0,0) !important;
    transition: transform 160ms cubic-bezier(.2,.8,.2,1), opacity 130ms ease !important;
    contain: layout paint style;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(12, 10, 10, .985) !important;
    box-shadow: 18px 0 38px rgba(0,0,0,.28) !important;
  }

  .portal.game-active.sidebar-collapsed .sidebar {
    transform: translate3d(calc(-100% - 16px),0,0) !important;
    opacity: .98;
    pointer-events: none;
  }

  .portal.game-active .game-runtime,
  .portal.game-active .game-frame {
    contain: layout paint style;
  }
}

/* During LOTTO runtime, avoid expensive glass effects above the iframe. */
.portal.game-active .topbar {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(17, 8, 10, .985) !important;
}

/* Mobile safe areas and stable dynamic viewport height. */
@media (max-width: 860px) {
  .portal {
    min-height: 100dvh !important;
    height: 100dvh !important;
  }

  .topbar {
    padding-top: max(8px, env(safe-area-inset-top)) !important;
  }

  .content {
    overscroll-behavior: contain;
  }

  .support-chat-launcher {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }
}

@supports (-webkit-touch-callout: none) {
  body { min-height: -webkit-fill-available; }
  input, textarea, select { font-size: max(16px, 1em); }
}

/* Customer Service: gentle vertical float, transform-only for 60fps. */
@keyframes supportLauncherFloat143 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.support-chat-launcher:not([hidden]) {
  animation: supportLauncherFloat143 2.35s ease-in-out infinite !important;
  transform-origin: center;
  backface-visibility: hidden;
}

.support-chat-launcher:hover,
.support-chat-launcher:focus-visible,
.support-chat-launcher:active {
  animation-play-state: paused !important;
}

/* Keep accessibility and low-power devices calm. */
@media (prefers-reduced-motion: reduce) {
  .support-chat-launcher { animation: none !important; }
  .portal.game-active .sidebar { transition-duration: .01ms !important; }
}

/* assets/player-shell-v3.10.85.css */

/* source: assets/styles.css */
:root {
  --bg: #070b14;
  --surface: rgba(15, 23, 42, 0.86);
  --surface-solid: #111827;
  --surface-soft: #182235;
  --surface-hover: #202d44;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #7c3aed;
  --primary-2: #2563eb;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --sidebar-width: 270px;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.14), transparent 28%),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100vh;
}

.loading-screen,
.auth-screen {
  display: grid;
  place-items: center;
  padding: 24px;
}

.loader-wrap {
  display: grid;
  justify-items: center;
  gap: 15px;
  color: var(--muted);
}

.loader {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(148, 163, 184, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-card {
  width: min(470px, 100%);
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 38px rgba(124, 58, 237, 0.28);
  font-weight: 900;
}

.brand-mark img {
  display: none;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  background: #fff;
}

.brand-mark.has-logo img {
  display: block;
}

.brand-mark.has-logo .brand-fallback {
  display: none;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-subtitle,
.muted {
  color: var(--muted);
}

.auth-title {
  margin: 30px 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.auth-description {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 22px;
  padding: 5px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.auth-tab {
  min-height: 39px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 750;
}

.auth-tab.active {
  color: #fff;
  background: var(--surface-soft);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.field label {
  color: #dbe5f3;
  font-size: 13px;
  font-weight: 750;
}

.field small {
  color: var(--muted);
  line-height: 1.5;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: 160ms ease;
}

.textarea {
  min-height: 105px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(124, 58, 237, 0.85);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.13);
}

.button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 780;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.22);
}

.button-secondary {
  color: #e6edf7;
  background: var(--surface-soft);
  border-color: var(--border);
}

.full-width {
  width: 100%;
}

.message {
  min-height: 22px;
  margin-top: 15px;
  font-size: 13px;
}

.message.error {
  color: #fca5a5;
}

.notice {
  margin-bottom: 17px;
  padding: 15px 16px;
  color: #d5dfeb;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 13px;
  line-height: 1.58;
  font-size: 13px;
}

.notice.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.notice-copy {
  margin-top: 6px;
}

.portal {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 16px;
  background: rgba(8, 13, 24, 0.92);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(22px);
}

.sidebar-header {
  padding: 4px 7px 24px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  overflow-y: auto;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  font-weight: 750;
}

.nav-button:hover {
  color: #e5edf8;
  background: rgba(148, 163, 184, 0.06);
}

.nav-button.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.24),
    rgba(37, 99, 235, 0.18)
  );
  border-color: rgba(124, 58, 237, 0.27);
}

.nav-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 7px 4px;
}

.player-mini-card {
  padding: 13px;
  background: rgba(148, 163, 184, 0.055);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.player-mini-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.player-mini-status {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 20px;
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}

.topbar-title {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.topbar-title span {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  gap: 9px;
}

.content {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 27px 22px 42px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fade 180ms ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.045em;
}

.page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 17px;
}

.panel,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 15px 44px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.panel {
  padding: 21px;
  border-radius: var(--radius);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.panel-spacing {
  margin-top: 17px;
}

.panel-spacing-small {
  margin-top: 14px;
}

.stat-card {
  min-height: 137px;
  padding: 20px;
  border-radius: var(--radius);
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.stat-value {
  margin-top: 15px;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.compact-value {
  font-size: 20px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-transform: capitalize;
}

.status-pending {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
}

.status-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
}

.status-danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.detail-card {
  padding: 14px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.detail-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-card strong {
  display: block;
  margin-top: 6px;
  word-break: break-word;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin-top: 19px;
}

.form-grid .field {
  margin: 0;
}

.span-2 {
  grid-column: 1 / -1;
}

.file-input {
  width: 100%;
  padding: 10px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
}

.file-input::file-selector-button {
  margin-right: 10px;
  padding: 8px 11px;
  color: #fff;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

.receipt-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.05);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
}

.receipt-preview img {
  display: none;
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
}

.receipt-preview.has-image img {
  display: block;
}

.receipt-preview.has-image span {
  display: none;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.045);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-row {
  padding: 42px 16px;
  color: var(--muted);
  text-align: center;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 17px;
}

.conversation-list {
  display: grid;
  gap: 9px;
}

.conversation-item {
  width: 100%;
  padding: 13px;
  color: #e5edf8;
  background: rgba(148, 163, 184, 0.045);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
}

.conversation-item.active {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.12);
}

.empty-card {
  padding: 30px 14px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.message-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.chat-message {
  width: fit-content;
  max-width: min(85%, 620px);
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
  line-height: 1.5;
  font-size: 13px;
}

.chat-message.player {
  margin-left: auto;
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.25);
}

.chat-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.sidebar-backdrop {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  background: #172033;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.36);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.36);
}

@media (max-width: 860px) {
  .portal {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: min(var(--sidebar-width), calc(100vw - 54px));
    transition: 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
  }

  .sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .stats-grid,
  .form-grid,
  .details-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .content {
    padding-inline: 15px;
  }

  .topbar {
    padding-inline: 14px;
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 26px 22px;
  }

  .topbar-actions .button {
    padding-inline: 10px;
  }

  .topbar-title span {
    display: none;
  }
}


.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-form-grid {
  margin-top: 0;
  margin-bottom: 18px;
}

.manual-method-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 18px;
  align-items: stretch;
}

.qr-preview {
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.05);
  border: 1px dashed var(--border-strong);
  border-radius: 15px;
  text-align: center;
}

.qr-preview img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 320px;
  padding: 12px;
  object-fit: contain;
  background: #fff;
}

.qr-preview.has-image img {
  display: block;
}

.qr-preview.has-image span {
  display: none;
}

.security-summary {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: center;
}

.security-score-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.security-score-block h2 {
  margin: 0 0 7px;
}

.security-ring {
  --score: 0%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface-solid) 55%, transparent 57%),
    conic-gradient(var(--success) var(--score), rgba(148, 163, 184, 0.16) 0);
  box-shadow: inset 0 0 0 1px var(--border);
}

.security-ring span {
  font-size: 25px;
  font-weight: 900;
}

.security-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 67px;
  padding: 12px;
  background: rgba(148, 163, 184, 0.045);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0.58;
}

.security-item.complete {
  opacity: 1;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.06);
}

.security-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.09);
  border-radius: 50%;
  font-weight: 900;
}

.security-item.complete .security-check {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
}

.security-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.saved-methods {
  display: grid;
  gap: 10px;
}

.saved-method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  background: rgba(148, 163, 184, 0.045);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.saved-method-main {
  min-width: 0;
}

.saved-method-title {
  font-weight: 820;
}

.saved-method-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(9px);
}

.modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px;
  background: #0f172a;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0 0 6px;
}

@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-summary,
  .manual-method-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .stats-grid,
  .security-checklist {
    grid-template-columns: 1fr;
  }

  .security-score-block {
    align-items: flex-start;
  }

  .saved-method {
    grid-template-columns: 1fr;
  }
}

.security-overview-card {
  position: relative;
}

.text-link-button {
  margin-top: 10px;
  padding: 0;
  color: #c4b5fd;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.text-link-button:hover {
  color: #ddd6fe;
  text-decoration: underline;
}

@media (min-width: 1250px) {
  .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-header { position: relative; }

.sidebar-collapse-button {
  position: absolute;
  top: 5px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}

.sidebar-collapse-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.portal.sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

.portal.sidebar-collapsed .sidebar {
  padding-left: 10px;
  padding-right: 10px;
}

.portal.sidebar-collapsed .brand-copy,
.portal.sidebar-collapsed .nav-label,
.portal.sidebar-collapsed .sidebar-footer {
  display: none;
}

.portal.sidebar-collapsed .sidebar-header {
  padding-left: 0;
  padding-right: 0;
}

.portal.sidebar-collapsed .brand-row {
  justify-content: center;
}

.portal.sidebar-collapsed .sidebar-collapse-button {
  top: 58px;
  right: 23px;
}

.portal.sidebar-collapsed .sidebar-collapse-button svg {
  transform: rotate(180deg);
}

.portal.sidebar-collapsed .nav-button {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

.portal.sidebar-collapsed .nav-icon {
  width: 34px;
  height: 34px;
}

.game-view {
  height: calc(100vh - 73px);
  padding: 0;
  overflow: hidden;
}

.game-frame {
  display: block;
  width: 100%;
  height: 100%;
  background: #061d58;
  border: 0;
}

.commission-control {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 170px;
}

.commission-control .input {
  width: 86px;
  min-height: 38px;
}

.small-copy {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .sidebar-collapse-button { display: none; }
  .game-view { height: calc(100vh - 64px); }
}


.notification-wrap { position: relative; }
.notification-button {
  position: relative; display:grid; place-items:center; width:42px; height:42px;
  color:var(--text); background:var(--surface); border:1px solid var(--border);
  border-radius:12px; cursor:pointer;
}
.notification-button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.notification-badge { position:absolute; top:-6px; right:-6px; min-width:19px; height:19px; padding:0 5px; display:grid; place-items:center; border-radius:999px; background:#ef4444; color:#fff; font-size:10px; font-weight:900; border:2px solid var(--background); }
.notification-panel { position:absolute; z-index:90; top:50px; right:0; width:min(390px,calc(100vw - 28px)); max-height:480px; overflow:auto; background:var(--surface); border:1px solid var(--border); border-radius:15px; box-shadow:0 24px 80px rgba(0,0,0,.38); }
.notification-panel-head { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; background:var(--surface); border-bottom:1px solid var(--border); }
.text-button { color:#a78bfa; background:none; border:0; cursor:pointer; font:inherit; font-size:12px; font-weight:750; }
.notification-list { display:grid; }
.notification-item { padding:13px 14px; border-bottom:1px solid var(--border); }
.notification-item.unread { background:rgba(124,58,237,.11); }
.notification-item-title { font-weight:800; }
.notification-item-copy,.notification-item-time { margin-top:4px; color:var(--muted); font-size:12px; line-height:1.45; }
.notification-empty { padding:28px 16px; color:var(--muted); text-align:center; }

.game-view { min-height:calc(100vh - 73px); height:auto; overflow:visible; }
.game-lobby { padding:30px clamp(18px,3vw,44px); }
.game-lobby-heading { margin-bottom:20px; }
.sidebar .brand-mark { width:68px; height:68px; border-radius:20px; }
.sidebar .brand-mark img { padding:7px; }
.sidebar .brand-name { font-size:18px; line-height:1.15; }
.sidebar .brand-subtitle { font-size:13px; }

.game-lobby-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.game-wallet-strip {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
}

.game-wallet-balance-card {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:230px;
  padding:14px 18px;
  background:rgba(15,23,42,.74);
  border:1px solid rgba(124,58,237,.24);
  border-radius:18px;
  box-shadow:0 18px 48px rgba(0,0,0,.22);
}

.game-wallet-icon {
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(124,58,237,.26), rgba(37,99,235,.3));
  color:#c4b5fd;
}

.game-wallet-icon svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.game-wallet-copy {
  display:grid;
  gap:4px;
}

.game-wallet-copy span {
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
}

.game-wallet-copy strong {
  font-size:30px;
  letter-spacing:-.04em;
}

.game-wallet-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.game-wallet-actions .button {
  min-width:126px;
}

.featured-games-grid {
  grid-template-columns:1fr;
}

.featured-game-card {
  min-height:390px;
  transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease;
}

.featured-game-card:hover:not(:disabled) {
  transform:translateY(-6px) scale(1.006);
  border-color:rgba(124,58,237,.62);
  box-shadow:0 34px 90px rgba(0,0,0,.38);
}

.featured-game-media {
  transition:transform .4s ease, filter .3s ease;
}

.featured-game-card:hover:not(:disabled) .featured-game-media {
  transform:scale(1.035);
  filter:saturate(1.08);
}

.featured-game-media::before {
  content:"";
  position:absolute;
  inset:-35% auto -35% -35%;
  width:44%;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.14), rgba(255,255,255,0));
  transform:translateX(-160%) rotate(16deg);
  transition:transform .62s ease;
  z-index:1;
}

.featured-game-card:hover:not(:disabled) .featured-game-media::before {
  transform:translateX(310%) rotate(16deg);
}

.featured-game-content {
  width:min(760px, 88%);
  min-height:390px;
  padding:34px;
}

.featured-game-content h3 {
  font-size:clamp(34px,4.5vw,58px);
}

.featured-game-content p {
  font-size:18px;
  max-width:500px;
}

@media (max-width: 860px) {
  .sidebar .brand-mark { width:58px; height:58px; }
  .game-wallet-strip,
  .game-wallet-actions { width:100%; justify-content:flex-start; }
  .game-wallet-balance-card { min-width:min(100%, 360px); }
  .featured-game-card,
  .featured-game-content { min-height:320px; }
  .featured-game-content { width:min(100%, 92%); padding:24px; }
}
.game-banner-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,390px)); gap:20px; }
.game-banner-card { overflow:hidden; padding:0; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:20px; cursor:pointer; text-align:left; box-shadow:0 18px 50px rgba(0,0,0,.19); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.game-banner-card:hover:not(:disabled) { transform:translateY(-4px); border-color:rgba(124,58,237,.65); box-shadow:0 25px 65px rgba(0,0,0,.28); }
.game-banner-card:disabled { cursor:not-allowed; opacity:.62; }
.game-banner-media { position:relative; aspect-ratio:16/8.5; overflow:hidden; background:linear-gradient(135deg,#1d4ed8,#7c3aed 58%,#f59e0b); }
.game-banner-media img { display:none; width:100%; height:100%; object-fit:cover; }
.game-banner-media.has-image img { display:block; }
.game-banner-media.has-image .game-banner-fallback { display:none; }
.game-banner-fallback { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:clamp(34px,7vw,72px); font-weight:1000; letter-spacing:.09em; text-shadow:0 7px 24px rgba(0,0,0,.3); }
.game-banner-status { position:absolute; top:13px; right:13px; padding:7px 10px; border-radius:999px; color:#fff; background:rgba(15,23,42,.8); font-size:11px; font-weight:850; text-transform:uppercase; }
.game-banner-status.enabled { background:rgba(5,150,105,.9); }
.game-banner-status.disabled { background:rgba(185,28,28,.9); }
.game-banner-copy { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:17px 18px 19px; }
.game-banner-copy h2 { margin:0; font-size:22px; }
.game-banner-copy p { margin:7px 0 0; color:var(--muted); line-height:1.5; }
.game-launch-label { flex:0 0 auto; color:#a78bfa; font-weight:850; white-space:nowrap; }
.game-runtime {
  display:grid;
  grid-template-rows:58px minmax(0,1fr);
  width:100%;
  height:100vh;
  overflow:hidden;
  background:#061d58;
}
.game-runtime-toolbar {
  position:relative;
  z-index:4;
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  padding:8px 14px;
  background:#070b16;
  border-bottom:1px solid rgba(148,163,184,.19);
  box-shadow:0 8px 22px rgba(0,0,0,.25);
}
.game-runtime .game-frame {
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  border:0;
}
.game-exit-button {
  position:static;
  z-index:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  min-height:40px;
  padding:9px 13px;
  color:#fff;
  background:rgba(30,41,59,.76);
  border:1px solid rgba(255,255,255,.22);
  border-radius:11px;
  cursor:pointer;
  font-weight:850;
}
.game-exit-button:hover {
  background:rgba(51,65,85,.92);
}
.game-exit-button svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.game-runtime-title {
  min-width:0;
  display:grid;
  gap:2px;
}
.game-runtime-title strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.game-runtime-title span {
  color:var(--muted);
  font-size:11px;
}
.portal.game-active { grid-template-columns:1fr; }
.portal.game-active .sidebar,.portal.game-active .topbar { display:none; }
.portal.game-active .main { min-width:0; }
.portal.game-active .content { padding:0; }
.portal.game-active #view-games { min-height:100vh; height:100vh; }
.modal-card-wide { width:min(980px,94vw); max-height:92vh; overflow:auto; }
#gameDepositModalBody .panel { border:0; box-shadow:none; padding:0; background:transparent; }
#gameDepositModalBody .page-heading { display:none; }

@media (max-width:860px) {
  .game-lobby { padding:20px 14px; }
  .game-banner-grid { grid-template-columns:1fr; }
  .game-runtime {
    grid-template-rows:54px minmax(0,1fr);
    height:100dvh;
  }
  .game-runtime-toolbar { padding:7px 10px; }
  .game-runtime-title { display:none; }
  .game-exit-button { min-height:38px; padding:8px 11px; }
}


.game-showcase-section,
.game-provider-section {
  margin-top: 30px;
}

.game-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.game-section-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.game-section-kicker {
  color: #a78bfa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.featured-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.featured-game-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.featured-game-card:disabled,
.compact-game-card:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.featured-game-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,#1d4ed8,#7c3aed 55%,#f59e0b);
}

.featured-game-media img,
.compact-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(2,6,23,.92),rgba(2,6,23,.25) 70%,rgba(2,6,23,.08));
}

.featured-game-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  width: min(620px, 78%);
  min-height: 280px;
  padding: 28px;
}

.featured-game-content h3 {
  margin: 8px 0 6px;
  font-size: clamp(28px,4vw,48px);
}

.featured-game-content p {
  margin: 0 0 18px;
  color: #dbeafe;
  line-height: 1.55;
}

.game-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.game-card-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.compact-game-card {
  overflow: hidden;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  cursor: pointer;
  text-align: left;
}

.compact-game-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg,#1e40af,#6d28d9);
}

.compact-game-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  text-align: center;
}

.compact-game-copy {
  padding: 12px 13px 14px;
}

.compact-game-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-game-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.game-category-sections {
  display: grid;
  gap: 24px;
}

.game-category-block h3 {
  margin: 0 0 12px;
  color: #e2e8f0;
}

.game-provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  color: #dbeafe;
  background: rgba(30,41,59,.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.game-lobby-empty {
  padding: 22px;
  color: var(--muted);
  background: rgba(148,163,184,.045);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.messenger-shell {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  min-height: 650px;
  overflow: hidden;
  background: rgba(15,23,42,.72);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.messenger-sidebar {
  min-width: 0;
  border-right: 1px solid var(--border);
  background: rgba(2,6,23,.28);
}

.messenger-sidebar-head,
.messenger-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.messenger-sidebar-head {
  justify-content: space-between;
}

.messenger-sidebar-head span,
.messenger-chat-header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.icon-action-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg,var(--primary),var(--primary-2));
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 23px;
}

.messenger-conversation-list {
  display: grid;
  align-content: start;
  max-height: 578px;
  overflow: auto;
  padding: 9px;
}

.messenger-chat {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  min-width: 0;
}

.messenger-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg,#2563eb,#7c3aed);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.bot-avatar {
  width: 36px;
  height: 36px;
}

.smart-help-panel {
  overflow: auto;
  padding: 24px;
}

.bot-message-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 650px;
  padding: 17px;
  background: rgba(30,41,59,.72);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 5px;
}

.bot-message-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.support-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 18px;
}

.support-choice-button {
  padding: 10px 13px;
  color: #dbeafe;
  background: rgba(37,99,235,.13);
  border: 1px solid rgba(96,165,250,.3);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}

.support-choice-button:hover,
.support-choice-button.active {
  color: #fff;
  background: rgba(124,58,237,.34);
  border-color: rgba(167,139,250,.72);
}

.support-auto-answer {
  max-width: 680px;
  margin-top: 20px;
}

.support-auto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.messenger-live-panel {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  min-height: 0;
}

.messenger-message-list {
  max-height: none;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 10%,rgba(37,99,235,.08),transparent 30%),
    rgba(2,6,23,.14);
}

.messenger-composer {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.messenger-composer .textarea {
  min-height: 48px;
  max-height: 150px;
  margin: 0;
}

.chat-message.support {
  margin-right: auto;
  border-radius: 18px 18px 18px 5px;
}

@media (max-width: 900px) {
  .messenger-shell {
    grid-template-columns: 1fr;
  }

  .messenger-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .messenger-conversation-list {
    max-height: 220px;
  }
}

@media (max-width: 620px) {
  .featured-games-grid {
    grid-template-columns: 1fr;
  }

  .featured-game-content {
    width: 100%;
    min-height: 240px;
    padding: 20px;
  }

  .compact-games-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}


/* v3.7.2 lobby enhancements */
.sidebar .brand-mark { width:68px; height:68px; border-radius:20px; }
.sidebar .brand-mark img { padding:7px; }
.sidebar .brand-name { font-size:18px; line-height:1.15; }
.sidebar .brand-subtitle { font-size:13px; }
.game-lobby-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.game-wallet-strip { display:flex; align-items:center; justify-content:flex-end; gap:14px; flex-wrap:wrap; }
.game-wallet-balance-card { display:flex; align-items:center; gap:14px; min-width:230px; padding:14px 18px; background:rgba(15,23,42,.74); border:1px solid rgba(124,58,237,.24); border-radius:18px; box-shadow:0 18px 48px rgba(0,0,0,.22); }
.game-wallet-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:linear-gradient(135deg, rgba(124,58,237,.26), rgba(37,99,235,.3)); color:#c4b5fd; }
.game-wallet-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.game-wallet-copy { display:grid; gap:4px; }
.game-wallet-copy span { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.12em; font-weight:800; }
.game-wallet-copy strong { font-size:30px; letter-spacing:-.04em; }
.game-wallet-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.game-wallet-actions .button { min-width:126px; }
.featured-games-grid { grid-template-columns:1fr; }
.featured-game-card { min-height:390px; transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease; }
.featured-game-card:hover:not(:disabled) { transform:translateY(-6px) scale(1.006); border-color:rgba(124,58,237,.62); box-shadow:0 34px 90px rgba(0,0,0,.38); }
.featured-game-media { transition:transform .4s ease, filter .3s ease; }
.featured-game-card:hover:not(:disabled) .featured-game-media { transform:scale(1.035); filter:saturate(1.08); }
.featured-game-media::before { content:""; position:absolute; inset:-35% auto -35% -35%; width:44%; background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.14), rgba(255,255,255,0)); transform:translateX(-160%) rotate(16deg); transition:transform .62s ease; z-index:1; }
.featured-game-card:hover:not(:disabled) .featured-game-media::before { transform:translateX(310%) rotate(16deg); }
.featured-game-content { width:min(760px, 88%); min-height:390px; padding:34px; }
.featured-game-content h3 { font-size:clamp(34px,4.5vw,58px); }
.featured-game-content p { font-size:18px; max-width:500px; }
@media (max-width: 860px) {
  .sidebar .brand-mark { width:58px; height:58px; }
  .game-wallet-strip,
  .game-wallet-actions { width:100%; justify-content:flex-start; }
  .game-wallet-balance-card { min-width:min(100%, 360px); }
  .featured-game-card,
  .featured-game-content { min-height:320px; }
  .featured-game-content { width:min(100%, 92%); padding:24px; }
}


/* v3.7.4 header wallet + banner polish */
.sidebar .brand-mark { width: 86px; height: 86px; border-radius: 24px; }
.sidebar .brand-mark img { padding: 8px; }
.topbar-actions { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-wallet-cluster { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-right: 4px; }
.topbar-wallet-card { min-width: 236px; padding: 12px 16px; border-radius: 18px; }
.topbar-wallet-card .game-wallet-icon { width: 44px; height: 44px; }
.topbar-wallet-card .game-wallet-copy strong { font-size: 28px; }
.topbar-wallet-actions .button { min-width: 118px; }
.game-lobby-heading { align-items: flex-start; }
.featured-game-card { min-height: 460px; overflow: hidden; }
.featured-game-card::after { content: ""; position: absolute; inset: auto -25% -35% auto; width: 240px; height: 240px; background: radial-gradient(circle, rgba(124,58,237,.24), rgba(124,58,237,0)); pointer-events: none; transform: translate3d(0,0,0); transition: transform .35s ease, opacity .35s ease; opacity: .85; }
.featured-game-card:hover:not(:disabled)::after { transform: translate3d(-18px,-14px,0) scale(1.06); opacity: 1; }
.featured-game-card:hover:not(:disabled) { transform: translateY(-8px) scale(1.01); }
@media (max-width: 1180px) {
  .topbar-wallet-cluster { width: 100%; order: 3; justify-content: flex-start; }
  .topbar-wallet-actions .button { min-width: 106px; }
}
@media (max-width: 720px) {
  .sidebar .brand-mark { width: 72px; height: 72px; }
  .topbar-wallet-cluster,
  .topbar-wallet-actions { width: 100%; }
  .topbar-wallet-card { width: 100%; min-width: 0; }
  .topbar-wallet-actions .button { flex: 1 1 100%; }
  .featured-game-card { min-height: 410px; }
}


/* v3.7.5 compact header controls */
.topbar {
  min-height: 64px;
  padding: 10px 16px;
  gap: 10px;
}
.topbar-title strong { font-size: 1rem; }
.topbar-title span { font-size: 11px; }
.topbar-actions { gap: 8px; align-items: center; }
.topbar-actions .button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 12px;
}
.topbar-wallet-cluster { gap: 8px; margin-right: 0; }
.topbar-wallet-card {
  min-width: 178px;
  padding: 10px 12px;
  border-radius: 16px;
}
.topbar-wallet-card .game-wallet-icon {
  width: 36px;
  height: 36px;
}
.topbar-wallet-card .game-wallet-copy span {
  font-size: 11px;
  letter-spacing: .08em;
}
.topbar-wallet-card .game-wallet-copy strong {
  font-size: 22px;
  line-height: 1;
}
.topbar-wallet-actions { gap: 8px; }
.topbar-wallet-actions .button {
  min-width: 92px;
  padding-inline: 12px;
}
.notification-button {
  width: 44px;
  height: 44px;
}
@media (max-width: 1180px) {
  .topbar-wallet-actions .button { min-width: 86px; }
}
@media (max-width: 720px) {
  .topbar {
    min-height: 58px;
    padding: 10px 12px;
  }
  .topbar-actions { gap: 6px; }
  .topbar-wallet-card { padding: 10px 12px; }
}


/* v3.7.6 sidebar collapse fix */
.sidebar { overflow: hidden; }
.sidebar-nav { overflow-x: hidden; }
.sidebar-header { z-index: 2; }
.sidebar-collapse-button {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}
.portal.sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}
.portal.sidebar-collapsed .sidebar {
  padding: 14px 8px 16px;
  overflow-x: hidden;
}
.portal.sidebar-collapsed .sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 12px;
  gap: 10px;
}
.portal.sidebar-collapsed .brand-copy,
.portal.sidebar-collapsed .sidebar-footer,
.portal.sidebar-collapsed .nav-section-label,
.portal.sidebar-collapsed .nav-divider,
.portal.sidebar-collapsed .nav-label {
  display: none !important;
}
.portal.sidebar-collapsed .brand-row {
  width: 100%;
  justify-content: center;
  padding-right: 0;
}
.portal.sidebar-collapsed .sidebar-collapse-button {
  position: static;
  margin: 0 auto;
  order: 2;
}
.portal.sidebar-collapsed .sidebar-collapse-button svg {
  transform: rotate(180deg);
}
.portal.sidebar-collapsed .sidebar-nav {
  padding-top: 8px;
  gap: 10px;
  align-items: center;
  scrollbar-width: none;
}
.portal.sidebar-collapsed .sidebar-nav::-webkit-scrollbar { width: 0; height: 0; }
.portal.sidebar-collapsed .nav-button {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  border-radius: 16px;
}
.portal.sidebar-collapsed .nav-icon {
  width: 36px;
  height: 36px;
  margin: 0;
  flex: 0 0 36px;
}


/* v3.7.7 public lobby + gold theme */
:root {
  --gold: #f4c35a;
  --gold-soft: rgba(244, 195, 90, 0.18);
}
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.14), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(244, 195, 90, 0.14), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.1), transparent 28%),
    var(--bg);
}
.brand-mark,
.nav-button.active .nav-icon,
.featured-game-card,
.compact-game-card,
.player-mini-card,
.topbar-wallet-card,
.auth-card,
.notification-panel,
.modal-card {
  box-shadow: 0 18px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(244,195,90,.05);
}
.nav-section-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244,195,90,.88);
  padding: 12px 12px 2px;
}
.nav-divider {
  height: 1px;
  margin: 8px 6px 0;
  background: linear-gradient(90deg, rgba(244,195,90,.24), rgba(148,163,184,0));
}
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 6, 18, 0.36);
  backdrop-filter: blur(12px);
}
.auth-card {
  position: relative;
  background: rgba(10, 18, 34, 0.92);
  border-color: rgba(244, 195, 90, 0.18);
}
.auth-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(244, 195, 90, 0.22);
  background: rgba(17, 24, 39, 0.9);
  cursor: pointer;
}
.auth-close-button:hover { background: rgba(31, 41, 55, 0.96); }
.portal.auth-open { filter: blur(4px); pointer-events: none; user-select: none; }
.portal.guest-mode { grid-template-columns: 1fr; }
.portal.guest-mode .sidebar,
.portal.guest-mode .sidebar-backdrop { display: none !important; }
.portal.guest-mode .content { width: min(1380px, 100%); }
.portal.guest-mode .topbar {
  padding-inline: 24px;
}
.portal.guest-mode .topbar-title strong {
  font-size: 1.2rem;
}
.portal.guest-mode .topbar-title span {
  color: rgba(244,195,90,.72);
}
.portal.guest-mode .player-only-control { display: none !important; }
.portal.guest-mode .guest-auth-actions { display: flex !important; }
.guest-auth-actions { gap: 10px; align-items: center; }
.guest-auth-actions .button:first-child {
  border-color: rgba(244,195,90,.24);
}
.content { padding: 16px 22px 42px; }
.game-lobby { padding: 8px clamp(18px,3vw,44px) 30px; }
.game-showcase-section:first-child { margin-top: 0; }
.game-showcase-section,
.game-provider-section { margin-top: 22px; }
.game-section-kicker { color: rgba(244,195,90,.95); }
.featured-game-card {
  min-height: 510px;
  border-color: rgba(244,195,90,.16);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, filter .24s ease;
}
.featured-game-card:hover:not(:disabled) {
  transform: translateY(-10px) scale(1.008);
  border-color: rgba(244,195,90,.45);
  box-shadow: 0 34px 80px rgba(0,0,0,.34), 0 0 0 1px rgba(244,195,90,.18);
  filter: saturate(1.05);
}
.featured-game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(244,195,90,.14), transparent 25%, transparent 75%, rgba(244,195,90,.08));
  pointer-events: none;
}
.topbar-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.topbar-wallet-cluster {
  gap: 6px;
  align-items: center;
}
.topbar-wallet-card {
  min-width: 162px;
  padding: 8px 10px;
  border-radius: 14px;
  gap: 8px;
  border-color: rgba(244,195,90,.18);
}
.topbar-wallet-card .game-wallet-icon {
  width: 30px;
  height: 30px;
}
.topbar-wallet-card .game-wallet-copy span {
  font-size: 10px;
}
.topbar-wallet-card .game-wallet-copy strong {
  font-size: 18px;
}
.topbar-wallet-actions { gap: 6px; }
.topbar-wallet-actions .button,
.topbar-actions .button {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 13px;
  border-radius: 11px;
}
.topbar-wallet-actions .button { min-width: 80px; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}
.icon-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wallet-refresh-button {
  margin-left: auto;
  border-color: rgba(244,195,90,.25);
}
.wallet-refresh-button:hover { background: rgba(244,195,90,.12); }
.notification-button {
  width: 38px;
  height: 38px;
  border-color: rgba(244,195,90,.18);
}
.button.button-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 70%, #f4c35a 120%);
}
.button.button-secondary:hover,
.nav-button:hover {
  border-color: rgba(244,195,90,.22);
}
.nav-button.active {
  border-color: rgba(244,195,90,.28);
  box-shadow: inset 0 1px 0 rgba(244,195,90,.07), 0 0 0 1px rgba(244,195,90,.08);
}
@media (max-width: 1180px) {
  .portal.guest-mode .topbar { padding-inline: 16px; }
  .topbar-wallet-actions .button { min-width: 74px; }
}
@media (max-width: 720px) {
  .portal.guest-mode .topbar-title span { display: none; }
  .guest-auth-actions { width: 100%; justify-content: flex-end; }
  .featured-game-card { min-height: 420px; }
  .topbar-wallet-card { min-width: 0; }
}


/* v3.7.8 light blue lobby layout */
:root {
  --bg: #edf4fc;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-solid: #ffffff;
  --surface-soft: #edf5ff;
  --surface-hover: #e3efff;
  --border: rgba(37, 99, 235, 0.14);
  --border-strong: rgba(37, 99, 235, 0.24);
  --text: #123a70;
  --muted: #7186a4;
  --primary: #1478ed;
  --primary-2: #075ac4;
  --gold: #d9a51c;
  --gold-soft: rgba(217, 165, 28, 0.14);
  color-scheme: light;
}
html { color-scheme: light; }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 16% 2%, rgba(40, 142, 255, .12), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(217, 165, 28, .12), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #edf4fc 100%);
}
.topbar {
  min-height: 62px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(37, 99, 235, .12);
  box-shadow: 0 8px 30px rgba(37, 99, 235, .07);
}
.topbar-title strong { color: #0b4fae; }
.topbar-title span { color: #748ba9; }
.sidebar {
  background: linear-gradient(180deg, rgba(250,253,255,.99), rgba(238,246,255,.98));
  border-right-color: rgba(37, 99, 235, .13);
  box-shadow: 10px 0 28px rgba(37,99,235,.05);
}
.sidebar .brand-mark,
.auth-card .brand-mark {
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  border: 1px solid rgba(37, 99, 235, .16);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}
.brand-name,
.player-mini-name { color: #123a70; }
.brand-subtitle,
.player-mini-status { color: #7890ae; }
.nav-section-label {
  color: #bf8b0b;
  padding-top: 15px;
}
.nav-divider {
  background: linear-gradient(90deg, rgba(217,165,28,.32), rgba(37,99,235,.05));
}
.nav-button {
  color: #3472bf;
  border-color: transparent;
}
.nav-button:hover {
  color: #075ac4;
  background: #eaf4ff;
  border-color: rgba(37, 99, 235, .1);
}
.nav-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2387f4, #075ac4);
  border-color: rgba(7, 90, 196, .22);
  box-shadow: 0 10px 24px rgba(20,120,237,.22);
}
.nav-button.active .nav-icon { color: #ffffff; }
.player-mini-card,
.stat-card,
.panel,
.table-wrap,
.modal-card,
.notification-panel,
.auth-card {
  background: rgba(255,255,255,.97);
  border-color: rgba(37, 99, 235, .13);
  color: #123a70;
  box-shadow: 0 16px 40px rgba(37,99,235,.08);
}
.input,
.select,
.textarea {
  color: #123a70;
  background: #f8fbff;
  border-color: rgba(37, 99, 235, .18);
}
.input::placeholder,
.textarea::placeholder { color: #94a8c1; }
.button.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #3497ff, #0e69d7);
  box-shadow: 0 8px 18px rgba(20,120,237,.22);
}
.button.button-secondary,
.icon-button,
.notification-button {
  color: #1264c8;
  background: #f6faff;
  border-color: rgba(37, 99, 235, .16);
}
.button.button-secondary:hover,
.icon-button:hover,
.notification-button:hover {
  background: #e9f4ff;
  border-color: rgba(37, 99, 235, .28);
}
.auth-screen {
  background: rgba(25, 71, 125, .22);
  backdrop-filter: blur(12px);
}
.auth-card { background: rgba(255,255,255,.97); }
.auth-title,
.auth-card label { color: #123a70; }
.auth-description,
.auth-card small { color: #7186a4; }
.auth-tab { color: #4b79b2; }
.auth-tab.active {
  color: #fff;
  background: linear-gradient(180deg, #3497ff, #0e69d7);
}
.auth-close-button {
  color: #1264c8;
  background: #f4f9ff;
  border-color: rgba(37,99,235,.18);
}
.portal.guest-mode .topbar-title span { color: #bc890c; }
.content {
  width: min(1460px, 100%);
  padding: 10px 18px 40px;
}
.game-lobby {
  padding: 10px clamp(14px, 2.8vw, 40px) 32px;
}
.lobby-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  margin: 0 0 14px;
  padding: 9px 18px;
  color: #1467c7;
  background: linear-gradient(90deg, #e2f2ff, #d4ecff);
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.lobby-announcement-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lobby-announcement strong {
  color: #0b5dc2;
  letter-spacing: .01em;
}
.lobby-announcement-icon { font-size: 16px; }
.featured-showcase-section { margin-top: 0; }
.featured-section-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.featured-games-grid { gap: 14px; }
.featured-game-card {
  min-height: 370px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 26px;
  background: linear-gradient(135deg, #d9efff, #edf8ff);
  box-shadow: 0 18px 38px rgba(37,99,235,.12);
}
.featured-game-card::before {
  background: linear-gradient(130deg, rgba(255,255,255,.22), transparent 30%, transparent 68%, rgba(217,165,28,.08));
}
.featured-game-card:hover:not(:disabled) {
  border-color: rgba(37,99,235,.34);
  box-shadow: 0 26px 54px rgba(37,99,235,.18), 0 0 0 1px rgba(217,165,28,.16);
}
.featured-game-media::after {
  background: linear-gradient(90deg, rgba(5,44,91,.76), rgba(5,44,91,.15) 64%, rgba(5,44,91,.02));
}
.featured-game-content { color: #ffffff; }
.featured-game-content h3 { color: #ffffff; text-shadow: 0 4px 18px rgba(0,0,0,.24); }
.featured-game-content p { color: rgba(255,255,255,.92); }
.game-card-badge {
  color: #ffffff;
  background: rgba(10, 61, 119, .54);
  border-color: rgba(255,255,255,.36);
}
.lobby-category-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 10px;
  margin: 14px 0 26px;
}
.lobby-category-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 16px;
  color: #1667c4;
  background: linear-gradient(180deg, #f9fcff, #eaf5ff);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(37,99,235,.05);
}
.lobby-category-button:hover,
.lobby-category-button.active {
  color: #fff;
  background: linear-gradient(180deg, #3497ff, #0e69d7);
  border-color: rgba(14,105,215,.3);
  box-shadow: 0 10px 22px rgba(20,120,237,.2);
}
.game-showcase-section,
.game-provider-section { margin-top: 24px; }
.game-section-heading {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(37,99,235,.12);
}
.game-section-heading h2 {
  color: #124a93;
  font-size: 22px;
}
.game-section-kicker { color: #d6a31d; }
.compact-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.compact-game-card {
  overflow: hidden;
  color: #123a70;
  background: #ffffff;
  border-color: rgba(37,99,235,.13);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(37,99,235,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.compact-game-card:hover:not(:disabled) {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,.3);
  box-shadow: 0 18px 36px rgba(37,99,235,.16);
}
.compact-game-media { background: linear-gradient(135deg, #d8efff, #f8fbff); }
.compact-game-copy strong { color: #0d4d9a; }
.compact-game-copy span { color: #7287a4; }
.compact-game-fallback {
  color: #0e65c9;
  background: linear-gradient(135deg, #d9efff, #f7fbff);
}
.game-category-block h3 { color: #1464bd; }
.provider-chip {
  color: #1464bd;
  background: #eef7ff;
  border-color: rgba(37,99,235,.16);
}
.game-lobby-empty {
  color: #7489a7;
  background: rgba(255,255,255,.76);
  border-color: rgba(37,99,235,.13);
}
@media (max-width: 980px) {
  .lobby-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-game-card { min-height: 330px; }
}
@media (max-width: 640px) {
  .lobby-announcement { align-items: flex-start; flex-direction: column; border-radius: 18px; }
  .lobby-category-nav { grid-template-columns: 1fr 1fr; }
  .compact-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .compact-game-copy { padding: 10px; }
  .featured-game-card { min-height: 300px; }
}


/* v3.7.9 integrated LOTTO shell + persistent header brand */
.topbar {
  min-height: 68px;
  padding: 8px 16px;
  border-bottom-color: rgba(204, 154, 31, 0.18);
}
.header-brand-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 360px;
  padding: 3px 8px 3px 3px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
}
.header-brand-home:hover {
  background: rgba(255,255,255,.72);
  border-color: rgba(204,154,31,.22);
}
.header-brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(18,75,165,.14);
}
.header-brand-mark img { padding: 4px; }
.header-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.header-brand-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #143d82;
  font-size: clamp(15px,1.35vw,20px);
  letter-spacing: .01em;
}
.header-brand-copy small {
  color: #7186a8;
  font-size: 11px;
}
.topbar-title { flex: 1 1 auto; }
.topbar-title strong { color: #153e84; }
.sidebar-header {
  min-height: 50px;
  padding: 4px 0 12px;
}
.sidebar-brand-legacy { display: none !important; }
.nav-section-label { color: #ad7911; }
.game-lobby {
  padding-top: 4px;
}
.lotto-only-lobby .lobby-announcement,
.lotto-only-lobby .lobby-category-nav,
.lotto-only-lobby #hotSection,
.lotto-only-lobby #mostPlayedSection,
.lotto-only-lobby #categoriesSection,
.lotto-only-lobby #providersSection {
  display: none !important;
}
.lotto-only-lobby .featured-showcase-section {
  margin-top: 0;
}
.lotto-only-lobby .featured-section-heading {
  margin-bottom: 10px;
}
.lotto-only-lobby .featured-section-heading h2 {
  font-size: 20px;
  color: #163f83;
}
.lotto-only-lobby .featured-game-card {
  min-height: 470px;
}
/* Keep the outer system header and sidebar visible while LOTTO is open. */
.portal.game-active {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}
.portal.sidebar-collapsed.game-active {
  grid-template-columns: 92px minmax(0, 1fr);
}
.portal.game-active .sidebar {
  display: flex;
}
.portal.game-active .topbar {
  display: flex;
}
.portal.game-active .content {
  padding: 10px 14px 14px;
}
.portal.game-active #view-games {
  min-height: calc(100vh - 68px);
  height: calc(100vh - 68px);
}
.portal.game-active .game-runtime {
  height: 100%;
  grid-template-rows: minmax(0,1fr);
  border: 1px solid rgba(204,154,31,.16);
  border-radius: 18px;
  overflow: hidden;
  background: #f5f8fe;
  box-shadow: 0 20px 50px rgba(25,61,122,.12);
}
.portal.game-active .game-runtime-toolbar {
  display: none;
}
.portal.game-active .game-frame {
  background: #f5f8fe;
}
@media (max-width: 1080px) {
  .header-brand-copy strong { max-width: 185px; }
  .topbar-title { display: none; }
}
@media (max-width: 820px) {
  .header-brand-mark { width: 42px; height: 42px; }
  .header-brand-copy strong { max-width: 150px; font-size: 14px; }
  .header-brand-copy small { display: none; }
  .portal.game-active { grid-template-columns: 1fr; }
  .portal.game-active .sidebar { display: none; }
  .portal.game-active #view-games { min-height: calc(100dvh - 64px); height: calc(100dvh - 64px); }
}
@media (max-width: 560px) {
  .header-brand-copy strong { max-width: 104px; }
  .topbar-actions { margin-left: auto; }
}


/* v3.7.11 complete light UI audit, header/sidebar layout, and professional dialogs */
:root {
  --header-height: 68px;
  --light-card: #ffffff;
  --light-soft: #f4f8ff;
  --light-soft-2: #eaf3ff;
  --light-border: rgba(32, 91, 178, .15);
  --light-text: #143d78;
  --light-muted: #6f85a5;
}

.portal {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.main-shell { display: contents; }
.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  top: auto;
  min-height: var(--header-height);
  height: var(--header-height);
  padding: 8px 14px 8px 8px;
  z-index: 60;
}
.sidebar {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  top: auto;
  height: calc(100vh - var(--header-height));
  min-height: 0;
  padding: 8px 12px 14px;
  z-index: 35;
}
.content {
  grid-column: 2;
  grid-row: 2;
  height: calc(100vh - var(--header-height));
  min-height: 0;
  overflow: auto;
}
.portal.sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: var(--header-height) minmax(0, 1fr);
}
.sidebar-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 4px 0 8px;
}
.sidebar-collapse-button,
.portal.sidebar-collapsed .sidebar-collapse-button {
  position: static;
  top: auto;
  right: auto;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  color: #1764bd;
  background: #fff;
  border: 1px solid var(--light-border);
  box-shadow: 0 8px 20px rgba(31, 86, 164, .08);
}
.portal.sidebar-collapsed .sidebar-header {
  display: flex;
  min-height: 46px;
  padding: 4px 0 8px;
}
.portal.sidebar-collapsed .sidebar-nav {
  padding-top: 2px;
}
.portal.guest-mode {
  grid-template-columns: 1fr;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
}
.portal.guest-mode .content { grid-column: 1 / -1; }

.header-brand-home {
  max-width: 430px;
  padding-left: 0;
}
.header-brand-mark.has-logo,
.sidebar .brand-mark.has-logo,
.auth-card .brand-mark.has-logo {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.header-brand-mark.has-logo img,
.sidebar .brand-mark.has-logo img,
.auth-card .brand-mark.has-logo img {
  padding: 0;
  background: transparent;
  object-fit: contain;
}
.header-brand-copy strong {
  max-width: 330px;
  overflow: visible;
  text-overflow: clip;
}

.topbar-wallet-card,
.game-wallet-balance-card.topbar-wallet-card {
  min-width: 152px;
  padding: 7px 8px;
  gap: 7px;
  color: var(--light-text);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(32, 91, 178, .16);
  box-shadow: 0 8px 20px rgba(31, 86, 164, .08);
}
.topbar-wallet-card .game-wallet-icon {
  width: 29px;
  height: 29px;
  color: #6d4de8;
  background: #eeeaff;
}
.topbar-wallet-card .game-wallet-copy span {
  color: #7186a4;
  font-size: 9px;
}
.topbar-wallet-card .game-wallet-copy strong {
  color: #17417c;
  font-size: 17px;
}
.wallet-refresh-button {
  width: 29px;
  height: 29px;
  background: #f3f8ff;
}
.topbar-wallet-actions .button,
.topbar-actions > .button,
.guest-auth-actions .button {
  min-height: 31px;
  padding: 6px 10px;
  font-size: 12px;
}

/* Consistent readable light surfaces throughout the player portal. */
.page-heading h1,
.page-heading h2,
.panel h2,
.panel h3,
.stat-value,
.detail-card strong,
.security-overview-card strong,
.messenger-sidebar-head strong,
.messenger-chat-header strong,
.bot-message-card strong,
.conversation-item strong,
.chat-message,
th,
td {
  color: var(--light-text);
}
.panel,
.stat-card,
.detail-card,
.table-wrap,
.security-overview-card,
.security-item,
.manual-method-preview,
.qr-preview,
.receipt-preview,
.saved-methods,
.empty-card,
.report-placeholder,
.placeholder-card,
.notice,
.messenger-shell,
.messenger-sidebar,
.messenger-chat,
.smart-help-panel,
.bot-message-card,
.messenger-message-list,
.messenger-composer,
.conversation-item,
.chat-message,
.support-choice-button,
.support-auto-answer,
.notification-panel,
.notification-panel-head,
.modal-card,
.ui-dialog-card {
  color: var(--light-text);
  background: var(--light-card);
  border-color: var(--light-border);
}
.notice {
  color: #285b9a;
  background: #f1f7ff;
}
.detail-card,
.security-item,
.empty-card,
.placeholder-card,
.report-placeholder,
.conversation-item {
  background: #f8fbff;
}
.file-input {
  color: var(--light-muted);
  background: #f8fbff;
  border-color: rgba(32, 91, 178, .22);
}
.file-input::file-selector-button {
  color: #155cad;
  background: #eef6ff;
  border-color: rgba(32, 91, 178, .16);
}
.table-wrap { background: #fff; }
th { background: #f2f7ff; color: #607a9e; }
tbody tr:hover td { background: #f8fbff; }
.status-pending { color: #9b6900; background: #fff5cf; }
.status-success { color: #126a49; background: #ddf8ec; }
.status-danger { color: #a83243; background: #ffe7eb; }

.messenger-shell {
  min-height: 620px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 86, 164, .09);
}
.messenger-sidebar {
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border-right-color: var(--light-border);
}
.messenger-sidebar-head,
.messenger-chat-header {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--light-border);
}
.messenger-sidebar-head span,
.messenger-chat-header span,
.bot-message-card p,
.chat-meta,
.muted,
.small-copy {
  color: var(--light-muted);
}
.conversation-item {
  color: var(--light-text);
  background: #fff;
  box-shadow: 0 5px 15px rgba(31,86,164,.04);
}
.conversation-item:hover,
.conversation-item.active {
  color: #0e58ad;
  background: #eaf4ff;
  border-color: rgba(32, 91, 178, .28);
}
.smart-help-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.bot-message-card {
  background: #eef5ff;
  border-color: rgba(32,91,178,.14);
}
.support-choice-button {
  color: #135ba9;
  background: #edf5ff;
  border-color: rgba(32,91,178,.2);
}
.support-choice-button:hover,
.support-choice-button.active {
  color: #fff;
  background: linear-gradient(135deg, #2689f1, #0d64c9);
  border-color: #1478ed;
}
.support-auto-answer .chat-message,
.chat-message.support {
  color: #154276;
  background: #eef6ff;
  border-color: rgba(32,91,178,.16);
}
.chat-message.player {
  color: #fff;
  background: linear-gradient(135deg, #2c8bf1, #1665ca);
  border-color: #1478ed;
}
.chat-message.player .chat-meta { color: rgba(255,255,255,.75); }
.messenger-message-list {
  background:
    radial-gradient(circle at 20% 10%, rgba(37,99,235,.06), transparent 30%),
    #f8fbff;
}
.messenger-composer {
  background: #fff;
  border-top-color: var(--light-border);
}

/* Custom application dialog; replaces browser confirm/prompt UI. */
.ui-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 44, 82, .34);
  backdrop-filter: blur(8px);
}
.ui-dialog-card {
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid rgba(32,91,178,.17);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(18,44,82,.22);
  text-align: center;
}
.ui-dialog-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  color: #8a5a00;
  background: #fff1bf;
  border-radius: 16px;
  font-size: 23px;
  font-weight: 900;
}
.ui-dialog-card h2 { margin: 0; color: var(--light-text); }
.ui-dialog-card p {
  margin: 10px 0 18px;
  color: var(--light-muted);
  line-height: 1.55;
  white-space: pre-line;
}
.ui-dialog-card .input { margin-bottom: 16px; }
.ui-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.ui-dialog-actions .button { min-width: 120px; }

@media (max-width: 860px) {
  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-columns: 1fr;
    grid-template-rows: 64px minmax(0, 1fr);
  }
  .topbar {
    grid-column: 1;
    grid-row: 1;
    height: 64px;
    min-height: 64px;
  }
  .sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100dvh - 64px);
    width: min(var(--sidebar-width), calc(100vw - 54px));
  }
  .content {
    grid-column: 1;
    grid-row: 2;
    height: calc(100dvh - 64px);
  }
  .header-brand-copy strong { max-width: 190px; }
}
@media (max-width: 620px) {
  .header-brand-copy strong { max-width: 120px; font-size: 13px; }
  .topbar-wallet-actions .button { min-width: auto; }
  .ui-dialog-actions { flex-direction: column-reverse; }
  .ui-dialog-actions .button { width: 100%; }
}


/* v3.7.12 multi-game labels, light system toast, and burger side-panel control */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  color: #143d78;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(32, 91, 178, .18);
  box-shadow: 0 16px 42px rgba(24, 55, 105, .18);
  backdrop-filter: blur(14px);
}
.toast::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2b8cf3;
  box-shadow: 0 0 0 5px rgba(43, 140, 243, .12);
}
.toast.success {
  color: #17633a;
  background: #f4fff8;
  border-color: rgba(34, 197, 94, .30);
}
.toast.success::before {
  background: #22a35a;
  box-shadow: 0 0 0 5px rgba(34, 163, 90, .12);
}
.toast.error {
  color: #9b2c2c;
  background: #fff7f7;
  border-color: rgba(239, 68, 68, .28);
}
.toast.error::before {
  background: #dc4c4c;
  box-shadow: 0 0 0 5px rgba(220, 76, 76, .12);
}
.sidebar-collapse-button,
.portal.sidebar-collapsed .sidebar-collapse-button {
  color: #1764bd;
  background: #ffffff;
  border-color: rgba(32, 91, 178, .18);
  border-radius: 12px;
}
.sidebar-collapse-button:hover {
  color: #b77900;
  border-color: rgba(204, 154, 31, .34);
  background: #fffaf0;
}
.sidebar-collapse-button svg,
.portal.sidebar-collapsed .sidebar-collapse-button svg {
  width: 21px;
  height: 21px;
  transform: none !important;
}
.nav-section-label:first-child {
  color: rgba(183, 121, 0, .88);
}
@media (max-width: 620px) {
  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}


/* v3.8 black and gold full-system theme */
:root {
  --bg: #070707;
  --surface: rgba(18, 18, 20, 0.96);
  --surface-solid: #111113;
  --surface-soft: #18181c;
  --surface-hover: #202027;
  --border: rgba(212, 175, 55, 0.16);
  --border-strong: rgba(212, 175, 55, 0.30);
  --text: #f6efd7;
  --muted: #b9aa78;
  --primary: #d4af37;
  --primary-2: #f2d06f;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --light-card: #141416;
  --light-soft: #191a1f;
  --light-soft-2: #111216;
  --light-border: rgba(212, 175, 55, 0.16);
  --light-text: #f6efd7;
  --light-muted: #b9aa78;
}
html { color-scheme: dark; }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 15% 2%, rgba(244, 208, 111, .10), transparent 24%),
    radial-gradient(circle at 84% 6%, rgba(212, 175, 55, .11), transparent 22%),
    radial-gradient(circle at 52% 100%, rgba(212, 175, 55, .05), transparent 34%),
    linear-gradient(180deg, #0a0a0c 0%, #070707 100%);
}
.topbar {
  background: linear-gradient(180deg, rgba(19,19,22,.98), rgba(9,9,10,.98));
  border-bottom-color: rgba(212, 175, 55, .24);
  box-shadow: 0 10px 32px rgba(0,0,0,.36);
}
.sidebar {
  background: linear-gradient(180deg, rgba(16,16,18,.98), rgba(8,8,9,.98));
  border-right-color: rgba(212, 175, 55, .16);
  box-shadow: 12px 0 34px rgba(0,0,0,.22);
}
.content {
  background: transparent;
}
.header-brand-home:hover {
  background: rgba(212, 175, 55, .08);
  border-color: rgba(212, 175, 55, .22);
}
.header-brand-copy strong,
.topbar-title strong,
.brand-name,
.player-mini-name,
.page-heading h1,
.page-heading h2,
.panel h2,
.panel h3,
.stat-value,
.detail-card strong,
.security-overview-card strong,
.messenger-sidebar-head strong,
.messenger-chat-header strong,
.bot-message-card strong,
.conversation-item strong,
.chat-message,
th,
td,
.game-section-heading h2,
.compact-game-copy strong,
.game-category-block h3,
.auth-title,
.auth-card label,
.ui-dialog-card h2,
.header-brand-copy small,
.topbar-title span,
.brand-subtitle,
.player-mini-status,
.muted,
.small-copy {
  color: var(--text);
}
.brand-subtitle,
.player-mini-status,
.topbar-title span,
.auth-description,
.auth-card small,
.input::placeholder,
.textarea::placeholder,
.compact-game-copy span,
.provider-chip,
.game-section-kicker,
.game-lobby-empty,
.chat-meta,
.bot-message-card p,
.messenger-sidebar-head span,
.messenger-chat-header span {
  color: var(--muted);
}
.nav-section-label,
.nav-section-label:first-child,
.game-section-kicker,
.portal.guest-mode .topbar-title span,
.lobby-announcement strong {
  color: var(--primary);
}
.nav-divider {
  background: linear-gradient(90deg, rgba(212,175,55,.30), rgba(212,175,55,0));
}
.nav-button {
  color: #ead7a1;
  border-color: transparent;
}
.nav-button:hover {
  color: #fff4d0;
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.18);
}
.nav-button.active {
  color: #231806;
  background: linear-gradient(135deg, #f4d06f, #c89b2c 68%, #a97914);
  border-color: rgba(212,175,55,.38);
  box-shadow: 0 12px 26px rgba(111, 77, 8, .24);
}
.nav-button.active .nav-icon { color: #231806; }
.player-mini-card,
.stat-card,
.panel,
.table-wrap,
.modal-card,
.notification-panel,
.auth-card,
.detail-card,
.security-item,
.empty-card,
.placeholder-card,
.report-placeholder,
.notice,
.messenger-shell,
.messenger-sidebar,
.messenger-chat,
.smart-help-panel,
.bot-message-card,
.messenger-message-list,
.messenger-composer,
.conversation-item,
.chat-message,
.support-choice-button,
.support-auto-answer,
.notification-panel-head,
.ui-dialog-card {
  color: var(--text);
  background: var(--light-card);
  border-color: var(--light-border);
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}
.detail-card,
.security-item,
.empty-card,
.placeholder-card,
.report-placeholder,
.conversation-item,
.table-wrap,
.smart-help-panel,
.messenger-shell,
.messenger-sidebar,
.messenger-chat,
.notification-panel-head,
.notification-panel,
.modal-card,
.ui-dialog-card,
.topbar-wallet-card,
.game-wallet-balance-card.topbar-wallet-card,
.compact-game-card {
  background: linear-gradient(180deg, rgba(22,22,25,.98), rgba(14,14,16,.98));
}
.notice,
.bot-message-card,
.support-auto-answer .chat-message,
.chat-message.support {
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.18);
  color: #f4e4b0;
}
.input,
.select,
.textarea,
.file-input {
  color: var(--text);
  background: rgba(10,10,11,.94);
  border-color: rgba(212,175,55,.20);
}
.file-input::file-selector-button,
.auth-close-button,
.button.button-secondary,
.icon-button,
.notification-button {
  color: #f3d989;
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.18);
}
.button.button-secondary:hover,
.icon-button:hover,
.notification-button:hover,
.file-input::file-selector-button:hover {
  background: rgba(212,175,55,.16);
  border-color: rgba(212,175,55,.30);
}
.button.button-primary,
.auth-tab.active,
.lobby-category-button:hover,
.lobby-category-button.active,
.chat-message.player {
  color: #241807;
  background: linear-gradient(180deg, #f4d06f, #d4a62f);
  border-color: rgba(212,175,55,.42);
  box-shadow: 0 10px 22px rgba(130,95,17,.24);
}
.auth-tab,
.support-choice-button,
.lobby-category-button,
.provider-chip {
  color: #efd99a;
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.18);
}
.support-choice-button:hover,
.support-choice-button.active {
  color: #241807;
  background: linear-gradient(180deg, #f4d06f, #d4a62f);
  border-color: rgba(212,175,55,.42);
}
.auth-screen,
.ui-dialog-overlay {
  background: rgba(0,0,0,.56);
  backdrop-filter: blur(10px);
}
.lobby-announcement {
  color: #f0db98;
  background: linear-gradient(90deg, rgba(212,175,55,.14), rgba(22,22,25,.94));
  border-color: rgba(212,175,55,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.featured-game-card {
  border-color: rgba(212,175,55,.18);
  background: linear-gradient(135deg, #181818, #111214);
  box-shadow: 0 22px 52px rgba(0,0,0,.28);
}
.featured-game-card::before {
  background: linear-gradient(130deg, rgba(244,208,111,.14), transparent 30%, transparent 72%, rgba(212,175,55,.12));
}
.featured-game-card:hover:not(:disabled) {
  border-color: rgba(212,175,55,.34);
  box-shadow: 0 30px 66px rgba(0,0,0,.32), 0 0 0 1px rgba(212,175,55,.12);
}
.featured-game-media::after {
  background: linear-gradient(90deg, rgba(8,8,9,.84), rgba(8,8,9,.24) 64%, rgba(8,8,9,.06));
}
.featured-game-content,
.featured-game-content h3,
.featured-game-content p,
.game-card-badge {
  color: #fff7de;
}
.game-card-badge {
  background: rgba(212,175,55,.18);
  border-color: rgba(255,244,205,.24);
}
.compact-game-card {
  color: var(--text);
  border-color: rgba(212,175,55,.14);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}
.compact-game-card:hover:not(:disabled) {
  border-color: rgba(212,175,55,.32);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.compact-game-media,
.compact-game-fallback {
  background: linear-gradient(135deg, #201a0c, #111214);
}
.topbar-wallet-card,
.game-wallet-balance-card.topbar-wallet-card {
  color: var(--text);
  border-color: rgba(212,175,55,.22);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.topbar-wallet-card .game-wallet-icon {
  color: #f4d06f;
  background: rgba(212,175,55,.12);
}
.topbar-wallet-card .game-wallet-copy span,
.wallet-copy span,
.game-wallet-copy span {
  color: var(--muted);
}
.topbar-wallet-card .game-wallet-copy strong,
.wallet-copy strong,
.game-wallet-copy strong {
  color: #ffeab0;
}
.wallet-refresh-button {
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.22);
}
.sidebar-collapse-button,
.portal.sidebar-collapsed .sidebar-collapse-button {
  color: #f3d989;
  background: #101012;
  border-color: rgba(212,175,55,.20);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.sidebar-collapse-button:hover {
  color: #241807;
  background: linear-gradient(180deg, #f4d06f, #d4a62f);
  border-color: rgba(212,175,55,.42);
}
.toast {
  color: #f7eac0;
  background: rgba(16,16,18,.98);
  border: 1px solid rgba(212,175,55,.22);
  box-shadow: 0 18px 46px rgba(0,0,0,.30);
}
.toast::before {
  background: #d4af37;
  box-shadow: 0 0 0 5px rgba(212,175,55,.12);
}
.toast.success {
  color: #d4ffe7;
  background: #102118;
  border-color: rgba(46, 204, 113, .28);
}
.toast.error {
  color: #ffd8d8;
  background: #221010;
  border-color: rgba(239,68,68,.28);
}
.table-wrap { background: rgba(14,14,16,.98); }
th { background: rgba(212,175,55,.08); color: #f3db9b; }
tbody tr:hover td { background: rgba(212,175,55,.04); }
.status-pending { color: #ffd778; background: rgba(212,175,55,.14); }
.status-success { color: #bff6d5; background: rgba(34,197,94,.14); }
.status-danger { color: #ffcdcd; background: rgba(239,68,68,.14); }
.messenger-sidebar {
  background: linear-gradient(180deg, rgba(19,19,22,.98), rgba(13,13,15,.98));
}
.messenger-message-list {
  background:
    radial-gradient(circle at 20% 10%, rgba(212,175,55,.05), transparent 30%),
    #111214;
}
.conversation-item:hover,
.conversation-item.active {
  color: #fff1c0;
  background: rgba(212,175,55,.10);
  border-color: rgba(212,175,55,.28);
}
.ui-dialog-icon {
  color: #251907;
  background: linear-gradient(180deg, #f4d06f, #d4a62f);
}
.portal.game-active .game-runtime {
  border-color: rgba(212,175,55,.18);
  background: #0d0d0f;
  box-shadow: 0 20px 50px rgba(0,0,0,.26);
}
.portal.game-active .game-frame {
  background: #0d0d0f;
}


/* v3.8.1 header toggle placement + automatic game focus */
.sidebar-header {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.topbar-sidebar-toggle,
.portal.sidebar-collapsed .topbar-sidebar-toggle {
  position: static !important;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0 2px 0 0;
  border-radius: 12px;
}
.topbar-sidebar-toggle svg {
  width: 22px;
  height: 22px;
}
.portal.guest-mode .topbar-sidebar-toggle {
  display: none !important;
}
.sidebar-nav {
  padding-top: 8px;
}
/* While a game is open, collapse means fully hidden so the game gets maximum width. */
.portal.game-active.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) !important;
}
.portal.game-active.sidebar-collapsed .sidebar {
  display: none !important;
}
.portal.game-active.sidebar-collapsed .content {
  grid-column: 2;
}
@media (max-width: 860px) {
  .topbar-sidebar-toggle {
    display: none !important;
  }
}


/* v3.8.2 readability fix */
.topbar-wallet-card,
.game-wallet-balance-card.topbar-wallet-card {
  background: linear-gradient(180deg, #fffdfa 0%, #f8f1df 100%) !important;
  color: #16366f !important;
  border-color: rgba(212,175,55,.24) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.12) !important;
}
.topbar-wallet-card .game-wallet-icon {
  background: rgba(212,175,55,.14) !important;
  color: #b88709 !important;
}
.topbar-wallet-card .game-wallet-copy span,
.wallet-copy span,
.game-wallet-copy span {
  color: #6d7d99 !important;
}
.topbar-wallet-card .game-wallet-copy strong,
.wallet-copy strong,
.game-wallet-copy strong {
  color: #173f80 !important;
}
.toast {
  color: #1f1b13 !important;
  background: linear-gradient(180deg, #fffdfa 0%, #f7f0dd 100%) !important;
  border: 1px solid rgba(212,175,55,.28) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.18) !important;
}
.toast::before {
  background: #d4af37 !important;
  box-shadow: 0 0 0 5px rgba(212,175,55,.14) !important;
}
.toast.success {
  color: #14532d !important;
  background: #eefbf4 !important;
  border-color: rgba(34,197,94,.24) !important;
}
.toast.error {
  color: #991b1b !important;
  background: #fef2f2 !important;
  border-color: rgba(239,68,68,.24) !important;
}
.panel,
.notification-panel,
.notification-panel-head,
.messenger-chat,
.smart-help-panel,
.messenger-message-list,
.messenger-sidebar {
  background: linear-gradient(180deg, #fffdfa 0%, #f8f2e3 100%) !important;
  color: #173f80 !important;
  border-color: rgba(212,175,55,.20) !important;
}
.panel h2, .panel h3, .messenger-chat-header strong, .messenger-chat-header span, .chat-meta,
.chat-message.support, .support-auto-answer .chat-message, .conversation-item {
  color: #173f80 !important;
}
.conversation-item:hover, .conversation-item.active {
  background: rgba(212,175,55,.10) !important;
  color: #173f80 !important;
}


/* v3.8.3 persistent header sidebar toggle */
.topbar-sidebar-toggle,
.portal.sidebar-collapsed .topbar-sidebar-toggle,
.portal.game-active.sidebar-collapsed .topbar-sidebar-toggle {
  display: inline-grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 75 !important;
  flex: 0 0 40px !important;
}
.portal.sidebar-collapsed .topbar {
  grid-column: 1 / -1 !important;
}
.portal.game-active.sidebar-collapsed .topbar {
  grid-column: 1 / -1 !important;
}
@media (max-width: 860px) {
  .topbar-sidebar-toggle,
  .portal.sidebar-collapsed .topbar-sidebar-toggle,
  .portal.game-active.sidebar-collapsed .topbar-sidebar-toggle {
    display: inline-grid !important;
  }
}


/* v3.8.4 key-in and persistent sidebar toggle fix */
.topbar {
  position: relative !important;
  padding-left: 62px !important;
}
.topbar-sidebar-toggle,
.portal.sidebar-collapsed .topbar-sidebar-toggle,
.portal.game-active.sidebar-collapsed .topbar-sidebar-toggle {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-grid !important;
  place-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 100 !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
}
.mobile-menu-button { display: none !important; }
.portal.sidebar-collapsed .topbar-sidebar-toggle svg,
.portal.game-active.sidebar-collapsed .topbar-sidebar-toggle svg {
  transform: none !important;
}
@media (max-width: 860px) {
  .topbar { padding-left: 58px !important; }
  .topbar-sidebar-toggle,
  .portal.sidebar-collapsed .topbar-sidebar-toggle,
  .portal.game-active.sidebar-collapsed .topbar-sidebar-toggle {
    display: inline-grid !important;
    left: 8px !important;
  }
  .sidebar { z-index: 95 !important; }
  .sidebar-backdrop { z-index: 90 !important; }
}


/* v3.8.5 full player UI contrast optimization */
:root{
  --bg:#070708;
  --surface:rgba(18,18,20,.98);
  --surface-solid:#121214;
  --surface-soft:#19191c;
  --surface-hover:#222225;
  --border:rgba(221,185,79,.16);
  --border-strong:rgba(221,185,79,.28);
  --text:#fff5d8;
  --muted:#bead7d;
  --primary:#d4af37;
  --primary-2:#f3cf61;
  --gold:#d4af37;
  --gold-soft:rgba(221,185,79,.12);
  --light-card:#121214;
  --light-soft:#19191c;
  --light-soft-2:#0d0d0f;
  --light-border:rgba(221,185,79,.16);
  --light-text:#fff5d8;
  --light-muted:#bead7d;
}
html{color-scheme:dark!important}
body{color:var(--text)!important;background:radial-gradient(circle at 15% 2%,rgba(243,207,97,.08),transparent 22%),radial-gradient(circle at 88% 8%,rgba(212,175,55,.07),transparent 22%),linear-gradient(180deg,#0a0a0b,#070708)!important}
.topbar{background:linear-gradient(180deg,#151517,#0b0b0c)!important;border-bottom-color:rgba(221,185,79,.22)!important;box-shadow:0 10px 30px rgba(0,0,0,.32)!important}
.sidebar{background:linear-gradient(180deg,#121214,#09090a)!important;border-right-color:rgba(221,185,79,.16)!important;box-shadow:10px 0 30px rgba(0,0,0,.20)!important}
.content{background:transparent!important}
.header-brand-copy strong,.topbar-title strong,.brand-name,.player-mini-name,.page-heading h1,.page-heading h2,.panel h2,.panel h3,.stat-value,.detail-card strong,.security-overview-card strong,.messenger-sidebar-head strong,.messenger-chat-header strong,.bot-message-card strong,.conversation-item strong,th,td{color:#fff5d8!important}
.header-brand-copy small,.topbar-title span,.brand-subtitle,.player-mini-status,.page-heading p,.muted,.small-copy,.helper-text,.field small,.chat-meta,.messenger-sidebar-head span,.messenger-chat-header span,.bot-message-card p,.compact-game-copy span{color:#bead7d!important}
.nav-section-label,.game-section-kicker,.table-kicker,.eyebrow{color:#e7c75e!important}
.nav-divider{background:linear-gradient(90deg,rgba(221,185,79,.30),rgba(221,185,79,0))!important}
.nav-button{color:#eadcae!important}.nav-button:hover{color:#fff7da!important;background:rgba(221,185,79,.09)!important;border-color:rgba(221,185,79,.18)!important}.nav-button.active{color:#201605!important;background:linear-gradient(180deg,#f3cf61,#c99728)!important;border-color:#f4d676!important;box-shadow:0 10px 24px rgba(126,91,12,.22)!important}.nav-button.active .nav-icon{color:#201605!important}

.panel,.stat-card,.detail-card,.table-wrap,.security-overview-card,.security-item,.manual-method-preview,.qr-preview,.receipt-preview,.saved-methods,.empty-card,.report-placeholder,.placeholder-card,.notice,.messenger-shell,.messenger-sidebar,.messenger-chat,.smart-help-panel,.bot-message-card,.messenger-message-list,.messenger-composer,.conversation-item,.chat-message,.support-choice-button,.support-auto-answer,.notification-panel,.notification-panel-head,.modal-card,.ui-dialog-card,.game-wallet-balance-card,.topbar-wallet-card{color:#fff5d8!important;background:linear-gradient(180deg,#151517,#101012)!important;border-color:rgba(221,185,79,.17)!important;box-shadow:0 16px 40px rgba(0,0,0,.18)!important}
.stat-card::after{background:radial-gradient(circle,rgba(221,185,79,.10),transparent 68%)!important}.stat-label{color:#cfbc82!important}.stat-value{color:#fff0ba!important}
.notice,.bot-message-card,.support-auto-answer .chat-message,.chat-message.support{color:#f1dfad!important;background:rgba(221,185,79,.08)!important;border-color:rgba(221,185,79,.18)!important}
.detail-card,.security-item,.empty-card,.placeholder-card,.report-placeholder,.conversation-item{background:#171719!important}

.input,.select,.textarea,.file-input{color:#fff3ce!important;background:#0b0b0c!important;border-color:rgba(221,185,79,.22)!important}.input::placeholder,.textarea::placeholder{color:#8f835f!important}.input:focus,.select:focus,.textarea:focus{border-color:#d4af37!important;box-shadow:0 0 0 4px rgba(221,185,79,.12)!important}.field label{color:#f5e7b9!important}.file-input::file-selector-button{color:#201605!important;background:linear-gradient(180deg,#f3cf61,#c99728)!important;border-color:#f4d676!important}
.button.button-primary,.auth-tab.active,.lobby-category-button.active,.lobby-category-button:hover,.chat-message.player{color:#201605!important;background:linear-gradient(180deg,#f3cf61,#c99728)!important;border-color:#f4d676!important;box-shadow:0 9px 22px rgba(126,91,12,.22)!important}.button.button-secondary,.icon-button,.notification-button,.auth-close-button,.support-choice-button,.lobby-category-button,.provider-chip{color:#f0dda6!important;background:rgba(221,185,79,.08)!important;border-color:rgba(221,185,79,.18)!important}.button.button-secondary:hover,.icon-button:hover,.notification-button:hover,.auth-close-button:hover,.support-choice-button:hover{background:rgba(221,185,79,.15)!important;border-color:rgba(221,185,79,.32)!important}.button:disabled{color:#827552!important;background:#302b1e!important;border-color:rgba(221,185,79,.10)!important;opacity:1!important;box-shadow:none!important}

.topbar-wallet-card,.game-wallet-balance-card.topbar-wallet-card{color:#fff5d8!important;background:linear-gradient(180deg,#171719,#101012)!important;border-color:rgba(221,185,79,.22)!important;box-shadow:0 10px 24px rgba(0,0,0,.22)!important}.topbar-wallet-card .game-wallet-icon{color:#f3cf61!important;background:rgba(221,185,79,.11)!important}.topbar-wallet-card .game-wallet-copy span,.wallet-copy span,.game-wallet-copy span{color:#bead7d!important}.topbar-wallet-card .game-wallet-copy strong,.wallet-copy strong,.game-wallet-copy strong{color:#fff0b7!important}.wallet-refresh-button{color:#f3cf61!important;background:rgba(221,185,79,.08)!important;border-color:rgba(221,185,79,.20)!important}
.sidebar-collapse-button,.portal.sidebar-collapsed .sidebar-collapse-button{color:#f3cf61!important;background:#141416!important;border-color:rgba(221,185,79,.20)!important}.sidebar-collapse-button:hover{color:#201605!important;background:linear-gradient(180deg,#f3cf61,#c99728)!important;border-color:#f4d676!important}

.table-wrap{background:#101012!important}th{color:#f3d889!important;background:rgba(221,185,79,.09)!important}td{color:#f6e9bd!important;border-color:rgba(221,185,79,.08)!important}tbody tr:hover td{background:rgba(221,185,79,.04)!important}.empty-row{color:#a9996d!important}.status-pending{color:#ffdc7a!important;background:rgba(221,185,79,.13)!important}.status-success{color:#bff6d5!important;background:rgba(34,197,94,.13)!important}.status-danger{color:#ffcaca!important;background:rgba(239,68,68,.13)!important}

.messenger-sidebar{background:linear-gradient(180deg,#171719,#101012)!important}.messenger-sidebar-head,.messenger-chat-header,.messenger-composer,.notification-panel-head{background:#151517!important;border-color:rgba(221,185,79,.14)!important}.messenger-message-list{background:radial-gradient(circle at 20% 10%,rgba(221,185,79,.04),transparent 30%),#0f0f11!important}.conversation-item:hover,.conversation-item.active{color:#fff1bc!important;background:rgba(221,185,79,.10)!important;border-color:rgba(221,185,79,.28)!important}.support-choice-button.active{color:#201605!important;background:linear-gradient(180deg,#f3cf61,#c99728)!important}

.auth-screen,.ui-dialog-overlay{background:rgba(0,0,0,.68)!important;backdrop-filter:blur(10px)!important}.auth-card{background:linear-gradient(180deg,#171719,#101012)!important}.auth-title,.auth-card label,.ui-dialog-card h2{color:#fff5d8!important}.auth-description,.auth-card small,.ui-dialog-card p{color:#bead7d!important}.auth-tab{color:#c5b581!important;background:#0d0d0f!important}.ui-dialog-icon{color:#201605!important;background:linear-gradient(180deg,#f3cf61,#c99728)!important}

.featured-game-card{background:#121214!important;border-color:rgba(221,185,79,.18)!important;box-shadow:0 22px 52px rgba(0,0,0,.28)!important}.featured-game-card:hover:not(:disabled){border-color:rgba(221,185,79,.34)!important;box-shadow:0 30px 66px rgba(0,0,0,.34),0 0 0 1px rgba(221,185,79,.10)!important}.featured-game-media::after{background:linear-gradient(90deg,rgba(7,7,8,.88),rgba(7,7,8,.24) 64%,rgba(7,7,8,.06))!important}.featured-game-content,.featured-game-content h3,.featured-game-content p{color:#fff5d8!important}.game-card-badge{color:#fff2c5!important;background:rgba(221,185,79,.16)!important;border-color:rgba(255,244,205,.22)!important}.compact-game-card{color:#fff5d8!important;background:#141416!important;border-color:rgba(221,185,79,.15)!important}.compact-game-card:hover:not(:disabled){border-color:rgba(221,185,79,.32)!important;box-shadow:0 18px 40px rgba(0,0,0,.28)!important}.compact-game-media,.compact-game-fallback{background:linear-gradient(135deg,#201a0c,#111214)!important}.compact-game-copy strong,.game-category-block h3{color:#fff0ba!important}.provider-chip{color:#efdca3!important}

.toast{color:#231a08!important;background:linear-gradient(180deg,#fff8df,#f4e1a7)!important;border:1px solid rgba(221,185,79,.34)!important;box-shadow:0 18px 44px rgba(0,0,0,.25)!important}.toast::before{background:#9b6c06!important;box-shadow:0 0 0 5px rgba(155,108,6,.12)!important}.toast.success{color:#14532d!important;background:#effbf4!important;border-color:rgba(34,197,94,.26)!important}.toast.error{color:#991b1b!important;background:#fef2f2!important;border-color:rgba(239,68,68,.26)!important}

.portal.game-active .game-runtime,.portal.game-active .game-frame{background:#080809!important;border-color:rgba(221,185,79,.17)!important}


/* v3.8.6 branded payment options */
.payment-brand-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.payment-brand-options:empty { display: none; }
.payment-brand-option {
  min-width: 0;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.payment-brand-option:hover { transform: translateY(-2px); }
.payment-brand-option img {
  width: min(150px, 62%);
  height: 44px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.16));
}
.payment-brand-option span {
  flex: 1;
  min-width: 72px;
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
}
.payment-brand-option.brand-gcash {
  color: #fff !important;
  background: linear-gradient(135deg,#168bff 0%,#0878e8 54%,#075bc4 100%) !important;
  border-color: rgba(91,176,255,.72) !important;
  box-shadow: 0 13px 30px rgba(8,120,232,.22) !important;
}
.payment-brand-option.brand-maya {
  color: #06170e !important;
  background: linear-gradient(135deg,#4cff9c 0%,#00e676 58%,#00bd62 100%) !important;
  border-color: rgba(104,255,171,.76) !important;
  box-shadow: 0 13px 30px rgba(0,230,118,.20) !important;
}
.payment-brand-option.active {
  outline: 3px solid rgba(255,245,216,.88);
  outline-offset: 2px;
}
.payment-brand-option.brand-generic {
  color: #f0dda6 !important;
  background: #171719 !important;
  border-color: rgba(221,185,79,.18) !important;
}
.payment-method-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}
.payment-method-brand-logo {
  flex: 0 0 auto;
  width: 112px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}
.payment-method-brand-fallback {
  flex: 0 0 auto;
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #201605;
  background: linear-gradient(180deg,#f3cf61,#c99728);
  border-radius: 11px;
  font-weight: 900;
}
.saved-method.brand-gcash {
  border-color: rgba(22,139,255,.46) !important;
  box-shadow: inset 4px 0 0 #168bff, 0 14px 30px rgba(8,120,232,.09) !important;
}
.saved-method.brand-maya {
  border-color: rgba(0,230,118,.42) !important;
  box-shadow: inset 4px 0 0 #00e676, 0 14px 30px rgba(0,230,118,.08) !important;
}
@media (max-width: 650px) {
  .payment-brand-options { grid-template-columns: 1fr; }
  .payment-brand-option { min-height: 74px; }
  .payment-brand-option img { width: 132px; }
  .payment-method-brand-logo { width: 94px; }
}


/* v3.9.0 mobile shell, dynamic loading logo, and moving welcome banner */
.player-loader-brand {
  width: min(420px, 92vw);
  gap: 12px;
  padding: 32px 24px;
  color: #fff5d8;
  background: linear-gradient(180deg, rgba(22,22,25,.96), rgba(10,10,11,.98));
  border: 1px solid rgba(221,185,79,.20);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,.46);
}
.loading-brand-mark {
  width: 142px !important;
  height: 112px !important;
  border-radius: 24px !important;
  background: rgba(221,185,79,.08) !important;
  border: 1px solid rgba(221,185,79,.20);
  box-shadow: 0 18px 48px rgba(0,0,0,.34) !important;
}
.loading-brand-mark img {
  padding: 8px !important;
  background: transparent !important;
}
.loading-brand-mark .brand-fallback {
  color: #f3cf61;
  font-size: 34px;
}
.loading-system-name {
  max-width: 100%;
  color: #fff2bf;
  font-size: clamp(20px, 4vw, 30px);
  text-align: center;
  overflow-wrap: anywhere;
}
.loading-caption { color: #bead7d; font-size: 13px; }
.loading-progress {
  position: relative;
  width: min(250px, 72vw);
  height: 5px;
  overflow: hidden;
  background: rgba(221,185,79,.12);
  border-radius: 999px;
}
.loading-progress span {
  position: absolute;
  inset: 0 auto 0 -38%;
  width: 38%;
  background: linear-gradient(90deg, transparent, #f3cf61, transparent);
  animation: playerLoadingSweep 1.15s ease-in-out infinite;
}
@keyframes playerLoadingSweep {
  to { left: 100%; }
}

.header-brand-mark.has-logo {
  width: 72px !important;
  height: 54px !important;
  border-radius: 14px !important;
}
.header-brand-mark.has-logo img {
  padding: 3px !important;
  background: transparent !important;
}
.auth-card .brand-mark.has-logo {
  width: 82px !important;
  height: 68px !important;
}
.auth-card .brand-mark.has-logo img {
  padding: 4px !important;
  background: transparent !important;
}

.moving-announcement {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-width: 0;
  overflow: hidden;
  padding: 10px 16px !important;
  border-radius: 15px !important;
}
.announcement-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.announcement-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: clamp(64px, 10vw, 150px);
  color: #f6dc8a;
  font-weight: 850;
  white-space: nowrap;
  animation: welcomeTicker 17s linear infinite;
  will-change: transform;
}
.announcement-track > span { padding-right: 12px; }
@keyframes welcomeTicker {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-track { animation: none; }
}

@media (max-width: 860px) {
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 10px 12px 58px !important;
  }
  .header-brand-home {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .header-brand-copy {
    min-width: 0;
  }
  .header-brand-copy strong,
  .header-brand-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-brand-mark.has-logo {
    width: 58px !important;
    height: 46px !important;
  }
  .topbar-title { display: none !important; }
  .topbar-actions {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 9px !important;
    align-items: stretch !important;
  }
  .topbar-wallet-cluster {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    margin: 0 !important;
  }
  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
  }
  .topbar-wallet-card .game-wallet-copy {
    min-width: 0;
  }
  .topbar-wallet-card .game-wallet-copy strong {
    font-size: clamp(21px, 7vw, 28px) !important;
    overflow-wrap: anywhere;
  }
  .topbar-wallet-actions {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .topbar-wallet-actions .button {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
    white-space: normal !important;
    line-height: 1.15 !important;
  }
  .topbar-wallet-actions .button:last-child {
    grid-column: 1 / -1;
  }
  .guest-auth-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .guest-auth-actions.hidden { display: none !important; }
  .guest-auth-actions .button { width: 100%; min-width: 0; }
  .notification-wrap { justify-self: end; }
  #logoutButton { justify-self: end; align-self: center; }
  .content { padding: 8px 10px 32px !important; }
  .game-lobby { padding: 8px 4px 28px !important; }
  .modal-card { width: min(96vw, 620px) !important; max-height: 88vh; overflow-y: auto; }
  .manual-method-preview { grid-template-columns: minmax(0, 1fr) !important; }
  .payment-brand-option { min-height: 72px; padding: 10px; }
  .payment-brand-option img { width: min(124px, 58%); }
}

@media (max-width: 520px) {
  .player-loader-brand { padding: 26px 18px; }
  .loading-brand-mark { width: 112px !important; height: 92px !important; }
  .header-brand-copy small { display: none; }
  .topbar-actions { grid-template-columns: minmax(0,1fr) !important; }
  .notification-wrap,
  #logoutButton { justify-self: stretch; }
  #logoutButton { width: 100%; }
  .payment-brand-options { grid-template-columns: minmax(0, 1fr) !important; }
  .moving-announcement { margin-bottom: 10px !important; }
}


/* v3.9.1 mobile game viewport and wallet overlap fixes */
@media (max-width: 860px) {
  .portal.game-active {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .portal.game-active .sidebar,
  .portal.game-active .sidebar-backdrop,
  .portal.game-active .topbar {
    display: none !important;
  }

  .portal.game-active .main,
  .portal.game-active .content,
  .portal.game-active #view-games,
  .portal.game-active .game-runtime {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .portal.game-active .main {
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .portal.game-active .content {
    padding: 0 !important;
    margin: 0 !important;
  }

  .portal.game-active #view-games,
  .portal.game-active .game-runtime {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .portal.game-active .game-runtime {
    grid-template-rows: 52px minmax(0, 1fr) !important;
  }

  .portal.game-active .game-runtime-toolbar {
    min-width: 0 !important;
    padding: 6px 9px !important;
  }

  .portal.game-active .game-frame {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
  }
}

@media (max-width: 520px) {
  /* Outside the game, keep wallet tools in normal document flow. */
  .portal:not(.game-active) .topbar-wallet-cluster {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    z-index: auto !important;
  }

  .portal:not(.game-active) .topbar-wallet-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .portal:not(.game-active) .topbar-wallet-actions .button:last-child {
    grid-column: 1 / -1 !important;
  }
}


/* v3.9.3 dynamic mobile game frame sizing */
@media (max-width: 860px) {
  .portal.game-active {
    min-height: 100dvh !important;
    height: auto !important;
    overflow: visible !important;
  }

  .portal.game-active .main,
  .portal.game-active .content,
  .portal.game-active #view-games {
    min-height: 100dvh !important;
    height: auto !important;
    overflow: visible !important;
  }

  .portal.game-active .game-runtime {
    min-height: 100dvh !important;
    height: auto !important;
    overflow: visible !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: start !important;
  }

  .portal.game-active .game-runtime-toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
  }

  .portal.game-active .game-frame {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: var(--game-frame-mobile-height, calc(100dvh - 52px)) !important;
    min-height: calc(100dvh - 52px) !important;
    max-height: none !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 520px) {
  .portal.game-active .game-runtime-toolbar {
    padding: 6px 8px !important;
  }

  .portal.game-active .game-frame {
    min-height: calc(100dvh - 48px) !important;
  }
}


/* v3.9.4 full-logo loading and safe branding containers */
.loading-brand-mark {
  width: min(270px, 74vw) !important;
  height: clamp(150px, 34vw, 205px) !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.loading-brand-mark img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.46));
}

.loading-brand-mark.has-logo .brand-fallback {
  display: none !important;
}

.header-brand-mark.has-logo,
.auth-card .brand-mark.has-logo,
.sidebar .brand-mark.has-logo {
  overflow: visible !important;
  background: transparent !important;
}

.header-brand-mark.has-logo img,
.auth-card .brand-mark.has-logo img,
.sidebar .brand-mark.has-logo img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

@media (max-width: 520px) {
  .loading-brand-mark {
    width: min(215px, 72vw) !important;
    height: 165px !important;
  }
}

/* v3.9.5 smooth lobby motion, auth animation, and lotto-results positioning */
:root {
  --lobby-motion-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Keep the configurable announcement visible even when LOTTO is the only game. */
.lotto-only-lobby .lobby-announcement {
  display: flex !important;
}

.lotto-only-lobby .lobby-category-nav {
  display: grid !important;
}

.moving-announcement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}

.moving-announcement::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  z-index: -1;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(243,207,97,.11), transparent);
  transform: skewX(-18deg);
  animation: announcementGlow 6.8s var(--lobby-motion-ease) infinite;
  pointer-events: none;
}

.lobby-announcement-icon {
  color: #f3cf61 !important;
  filter: drop-shadow(0 0 10px rgba(243,207,97,.45));
  animation: announcementIconPulse 2.4s ease-in-out infinite;
}

.announcement-track {
  animation-name: welcomeTicker !important;
  animation-duration: 25s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

.moving-announcement:hover .announcement-track,
.moving-announcement:focus-within .announcement-track {
  animation-play-state: paused;
}

@keyframes welcomeTicker {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(calc(-50% - 32px),0,0); }
}

@keyframes announcementGlow {
  0%, 18% { left: -35%; opacity: 0; }
  42% { opacity: 1; }
  70%, 100% { left: 112%; opacity: 0; }
}

@keyframes announcementIconPulse {
  0%, 100% { transform: scale(.92); opacity: .72; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* Header login/register buttons: subtle recurring sheen, smooth hover and press. */
.guest-auth-actions .button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .28s var(--lobby-motion-ease),
    box-shadow .28s var(--lobby-motion-ease),
    border-color .28s ease !important;
}

.guest-auth-actions .button::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -72%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
  transform: skewX(-20deg);
  animation: authButtonSheen 4.6s ease-in-out infinite;
  pointer-events: none;
}

.guest-auth-actions .button:first-child::after {
  animation-delay: 1.1s;
  opacity: .55;
}

.guest-auth-actions .button:hover {
  transform: translateY(-2px) scale(1.015);
}

.guest-auth-actions .button:active {
  transform: translateY(0) scale(.985);
}

@keyframes authButtonSheen {
  0%, 58% { left: -72%; opacity: 0; }
  68% { opacity: 1; }
  84%, 100% { left: 132%; opacity: 0; }
}

.auth-screen:not(.hidden) {
  animation: authBackdropIn .28s ease both;
}

.auth-screen:not(.hidden) .auth-card {
  transform-origin: center top;
  animation: authCardIn .48s var(--lobby-motion-ease) both;
}

.auth-screen:not(.hidden) .auth-card > * {
  animation: authContentIn .42s var(--lobby-motion-ease) both;
}

.auth-screen:not(.hidden) .auth-card > :nth-child(2) { animation-delay: .04s; }
.auth-screen:not(.hidden) .auth-card > :nth-child(3) { animation-delay: .07s; }
.auth-screen:not(.hidden) .auth-card > :nth-child(4) { animation-delay: .10s; }
.auth-screen:not(.hidden) .auth-card > :nth-child(5) { animation-delay: .13s; }
.auth-screen:not(.hidden) .auth-card > :nth-child(n+6) { animation-delay: .16s; }

@keyframes authBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes authCardIn {
  from { opacity: 0; transform: translate3d(0,22px,0) scale(.965); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}

@keyframes authContentIn {
  from { opacity: 0; transform: translate3d(0,8px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

/* Smooth featured-banner behavior inspired by the reference motion only. */
.featured-games-grid {
  display: flex !important;
  gap: 14px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.featured-games-grid::-webkit-scrollbar {
  display: none;
}

.featured-game-card {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: translateZ(0);
  transition:
    transform .42s var(--lobby-motion-ease),
    border-color .32s ease,
    box-shadow .42s var(--lobby-motion-ease) !important;
}

.featured-game-media img {
  transform: scale(1.025);
  animation: featuredMediaDrift 12s ease-in-out infinite alternate;
  will-change: transform;
}

.featured-game-card:hover:not(:disabled) .featured-game-media img {
  animation-play-state: paused;
  transform: scale(1.055);
}

.featured-game-content > * {
  animation: featuredCopyIn .62s var(--lobby-motion-ease) both;
}

.featured-game-content > :nth-child(2) { animation-delay: .06s; }
.featured-game-content > :nth-child(3) { animation-delay: .11s; }
.featured-game-content > :nth-child(4) { animation-delay: .16s; }

@keyframes featuredMediaDrift {
  from { transform: scale(1.025) translate3d(-.6%,0,0); }
  to { transform: scale(1.07) translate3d(.8%,-.5%,0); }
}

@keyframes featuredCopyIn {
  from { opacity: 0; transform: translate3d(-14px,8px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

/* Category/navigation strip directly under the featured banner. */
.lobby-category-nav {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
  align-items: stretch;
  margin: 12px 0 22px !important;
}

.lobby-category-button {
  position: relative;
  overflow: hidden;
  transition:
    transform .28s var(--lobby-motion-ease),
    background .28s ease,
    box-shadow .28s ease !important;
}

.lobby-category-button:hover,
.lobby-category-button.active {
  transform: translateY(-2px);
}

/* Staggered section/card reveal. */
.motion-reveal {
  opacity: 0;
  transform: translate3d(0,22px,0) scale(.985);
  transition:
    opacity .62s var(--lobby-motion-ease),
    transform .62s var(--lobby-motion-ease);
  transition-delay: calc(min(var(--motion-index, 0), 8) * 42ms);
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

.compact-game-card {
  will-change: transform;
  transition:
    transform .34s var(--lobby-motion-ease),
    border-color .28s ease,
    box-shadow .34s var(--lobby-motion-ease) !important;
}

.compact-game-card:hover:not(:disabled) {
  transform: translate3d(0,-6px,0) scale(1.012) !important;
}

.compact-game-media img {
  transition: transform .48s var(--lobby-motion-ease), filter .38s ease;
}

.compact-game-card:hover:not(:disabled) .compact-game-media img {
  transform: scale(1.065);
  filter: saturate(1.08) contrast(1.03);
}

/* LOTTO RESULTS is kept after the game sections, matching the requested flow. */
.lotto-results-section {
  display: block !important;
  scroll-margin-top: 82px;
}

.lotto-results-heading {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 14px;
}

.lobby-results-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 13px;
  color: #f0dda6;
  background: rgba(221,185,79,.08);
  border: 1px solid rgba(221,185,79,.18);
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .25s var(--lobby-motion-ease), background .25s ease;
}

.lobby-results-refresh:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(221,185,79,.15);
}

.lobby-results-refresh:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.lobby-results-refresh.is-refreshing span:first-child {
  animation: resultRefreshSpin .75s linear infinite;
}

@keyframes resultRefreshSpin { to { transform: rotate(360deg); } }

.lobby-lotto-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
}

.lobby-result-card,
.lotto-results-guest {
  min-width: 0;
  color: #fff5d8;
  background: linear-gradient(180deg,#151517,#101012);
  border: 1px solid rgba(221,185,79,.17);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.lobby-result-card {
  padding: 14px;
}

.lobby-result-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.lobby-result-card-head > div {
  display: grid;
  gap: 3px;
}

.lobby-result-card-head span,
.lobby-result-card-head small {
  color: #bead7d;
  font-size: 11px;
}

.lobby-result-card-head strong {
  color: #fff0b7;
  font-size: 17px;
}

.lobby-result-card-head small {
  max-width: 45%;
  text-align: right;
}

.lobby-result-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lobby-result-balls span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #221704;
  background: linear-gradient(180deg,#f7d96f,#c99524);
  border: 1px solid #f6df8e;
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(116,80,8,.25);
  font-weight: 950;
  animation: resultBallIn .48s var(--lobby-motion-ease) both;
}

.lobby-result-balls span:nth-child(2) { animation-delay: .04s; }
.lobby-result-balls span:nth-child(3) { animation-delay: .08s; }
.lobby-result-balls span:nth-child(4) { animation-delay: .12s; }
.lobby-result-balls span:nth-child(5) { animation-delay: .16s; }
.lobby-result-balls span:nth-child(6) { animation-delay: .20s; }

.lobby-result-balls em {
  color: #bead7d;
  font-style: normal;
}

@keyframes resultBallIn {
  from { opacity: 0; transform: translate3d(0,8px,0) scale(.82); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}

.lotto-results-guest {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 17px;
  text-align: left;
  cursor: pointer;
  transition: transform .3s var(--lobby-motion-ease), border-color .3s ease;
}

.lotto-results-guest:hover {
  transform: translateY(-3px);
  border-color: rgba(221,185,79,.34);
}

.lotto-results-guest-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  color: #f3cf61;
  background: rgba(221,185,79,.10);
  border: 1px solid rgba(221,185,79,.18);
  border-radius: 14px;
}

.lotto-results-guest > span:last-child {
  display: grid;
  gap: 4px;
}

.lotto-results-guest strong { color: #fff0b7; }
.lotto-results-guest small { color: #bead7d; }

@media (max-width: 860px) {
  .lobby-category-nav {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 2px 0 5px;
  }

  .lobby-category-nav::-webkit-scrollbar { display: none; }

  .lobby-category-button {
    flex: 0 0 clamp(126px, 36vw, 160px);
    scroll-snap-align: start;
  }

  .featured-game-card {
    min-height: clamp(300px, 62vw, 390px) !important;
  }

  .lobby-lotto-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .moving-announcement {
    flex-direction: row !important;
    align-items: center !important;
    border-radius: 15px !important;
  }

  .announcement-track {
    animation-duration: 20s !important;
  }

  .lobby-lotto-results {
    grid-template-columns: minmax(0, 1fr);
  }

  .lotto-results-heading {
    align-items: center !important;
  }

  .lobby-results-refresh span:last-child {
    display: none;
  }

  .lobby-result-card-head small {
    max-width: 48%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-track,
  .moving-announcement::after,
  .lobby-announcement-icon,
  .guest-auth-actions .button::after,
  .featured-game-media img,
  .lobby-result-balls span {
    animation: none !important;
  }

  .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .auth-screen:not(.hidden),
  .auth-screen:not(.hidden) .auth-card,
  .auth-screen:not(.hidden) .auth-card > * {
    animation: none !important;
  }
}


/* v3.9.6 guest cover-photo reliability and logo-only loading */
.player-loader-brand {
  width: min(360px, 88vw) !important;
  min-height: min(320px, 70vw) !important;
  padding: clamp(22px, 5vw, 38px) !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.loading-brand-mark {
  width: min(220px, 58vw) !important;
  height: min(220px, 58vw) !important;
  max-width: 220px !important;
  max-height: 220px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: loadingLogoFloat 1.8s ease-in-out infinite !important;
}

.loading-brand-mark img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.42));
}

.loading-logo-only-status,
.game-loading-logo-only-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.game-loading-brand {
  min-width: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.game-loading-logo-shell {
  width: min(220px, 58vw) !important;
  height: min(220px, 58vw) !important;
  max-width: 220px !important;
  max-height: 220px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: loadingLogoFloat 1.8s ease-in-out infinite !important;
}

.game-loading-logo-shell img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.42));
}

@keyframes loadingLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: .94; }
  50% { transform: translateY(-7px) scale(1.025); opacity: 1; }
}

.featured-game-media.has-cover-image {
  background: #09090a !important;
}

.featured-game-media.has-cover-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.featured-game-media.no-cover-image {
  background: linear-gradient(135deg,#0a153e,#4725ad 54%,#e69300) !important;
}

.featured-game-cover-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(135deg, rgba(8,18,58,.72), rgba(79,37,174,.45) 58%, rgba(224,143,0,.40));
}

@media (max-width: 520px) {
  .loading-brand-mark,
  .game-loading-logo-shell {
    width: min(180px, 62vw) !important;
    height: min(180px, 62vw) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-brand-mark,
  .game-loading-logo-shell {
    animation: none !important;
  }
}


/* v3.9.7 readable empty states and reliable public cover rendering */
.game-lobby-empty,
.lotto-results-section .game-lobby-empty,
.lobby-lotto-results .game-lobby-empty {
  width: 100% !important;
  min-height: 88px !important;
  display: flex !important;
  align-items: center !important;
  padding: 18px 20px !important;
  color: #e8cf86 !important;
  background: linear-gradient(180deg,#171719,#101012) !important;
  border: 1px solid rgba(221,185,79,.19) !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.20) !important;
  opacity: 1 !important;
}

.featured-game-media.has-cover-image img,
.compact-game-media img {
  opacity: 1 !important;
  visibility: visible !important;
}

.featured-game-card.has-cover-image,
.featured-game-media.has-cover-image {
  background-color: #0a0a0b !important;
}

/* Full, unclipped logo while the outer player shell is loading. */
.loading-brand-mark {
  width: min(300px, 78vw) !important;
  height: min(240px, 52vh) !important;
  max-width: 300px !important;
  max-height: 240px !important;
  overflow: visible !important;
}

.loading-brand-mark img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 520px) {
  .loading-brand-mark {
    width: min(250px, 80vw) !important;
    height: min(210px, 42vh) !important;
  }
}


/* v3.9.8 guest-visible LOTTO cover fallback */
.featured-game-cover-fallback {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 72% 18%, rgba(243,207,97,.18), transparent 28%),
    linear-gradient(135deg, #090a0d, #17110a 58%, #080809) !important;
}

.featured-game-cover-fallback img {
  display: block !important;
  width: min(44%, 320px) !important;
  height: min(70%, 300px) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 12px !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.48));
  animation: guestCoverLogoFloat 5.2s ease-in-out infinite;
}

.compact-game-fallback {
  display: grid !important;
  place-items: center !important;
  gap: 6px !important;
  padding: 10px !important;
}

.compact-game-fallback img {
  width: min(66%, 120px) !important;
  height: 68px !important;
  object-fit: contain !important;
}

.compact-game-fallback span {
  color: #fff0b7 !important;
  font-weight: 800 !important;
}

@keyframes guestCoverLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.018); }
}

@media (max-width: 700px) {
  .featured-game-cover-fallback img {
    width: min(58%, 240px) !important;
    height: min(62%, 220px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-game-cover-fallback img { animation: none !important; }
}


/* v3.10.4 stable responsive header: reserve its own row and move mobile actions into the burger menu */
.mobile-only-nav {
  display: none !important;
}

.nav-command-button {
  cursor: pointer;
}

@media (min-width: 861px) and (max-width: 1080px) {
  .topbar {
    display: flex !important;
    align-items: center !important;
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    overflow: hidden !important;
  }

  .topbar-title {
    display: none !important;
  }

  .header-brand-home {
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  .header-brand-copy strong {
    max-width: 150px !important;
    font-size: 14px !important;
  }

  .topbar-actions {
    min-width: 0 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
  }

  .topbar-wallet-cluster {
    min-width: 0 !important;
    width: auto !important;
    display: block !important;
    margin: 0 !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    width: clamp(180px, 24vw, 250px) !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 7px 9px !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    font-size: clamp(18px, 2vw, 23px) !important;
  }

  .topbar-wallet-actions {
    display: none !important;
  }

  #logoutButton {
    min-width: auto !important;
    padding-inline: 10px !important;
  }
}

@media (max-width: 860px) {
  /* The first grid row is now the real measured header height, preventing overlap. */
  .portal,
  .portal.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .topbar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative !important;
    top: auto !important;
    z-index: 70 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand utility"
      "wallet wallet" !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 10px 9px 58px !important;
    overflow: visible !important;
  }

  .header-brand-home {
    grid-area: brand !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  .header-brand-mark.has-logo {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 46px !important;
  }

  .header-brand-copy {
    min-width: 0 !important;
  }

  .header-brand-copy strong {
    max-width: min(54vw, 250px) !important;
    font-size: clamp(13px, 3.3vw, 16px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .header-brand-copy small {
    font-size: 10px !important;
  }

  .topbar-title {
    display: none !important;
  }

  .topbar-actions {
    display: contents !important;
  }

  .guest-auth-actions {
    grid-area: utility !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  .guest-auth-actions.hidden {
    display: none !important;
  }

  .guest-auth-actions .button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  .notification-wrap {
    grid-area: utility !important;
    justify-self: end !important;
    align-self: center !important;
  }

  .topbar-wallet-cluster {
    grid-area: wallet !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    font-size: clamp(18px, 5.8vw, 25px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* The three actions stay available in the burger/sidebar, not over the page. */
  .topbar-wallet-actions {
    display: none !important;
  }

  #logoutButton {
    display: none !important;
  }

  .mobile-only-nav {
    display: flex !important;
  }

  .content {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 10px 10px 32px !important;
  }

  .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(var(--sidebar-width), calc(100vw - 48px)) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    z-index: 95 !important;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px 8px !important;
    padding: 6px 7px 7px 54px !important;
  }

  .header-brand-mark.has-logo {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 42px !important;
  }

  .header-brand-copy strong {
    max-width: 46vw !important;
    font-size: 13px !important;
  }

  .header-brand-copy small {
    display: none !important;
  }

  .guest-auth-actions {
    gap: 4px !important;
  }

  .guest-auth-actions .button {
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    min-height: 44px !important;
    padding: 6px 8px !important;
  }

  .topbar-wallet-card .game-wallet-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .topbar-wallet-card .game-wallet-copy span {
    font-size: 9px !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    font-size: 20px !important;
  }

  .wallet-refresh-button {
    width: 34px !important;
    height: 34px !important;
  }
}


/* v3.10.5 compact system wallet and persistent in-game mobile wallet */
@media (max-width: 860px) {
  /* Landing/player header: wallet is a compact content-sized pill. */
  .topbar-wallet-cluster {
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: start !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    display: inline-flex !important;
    width: max-content !important;
    max-width: min(100%, calc(100vw - 76px)) !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 5px 8px !important;
    gap: 7px !important;
    border-radius: 11px !important;
  }

  .topbar-wallet-card .game-wallet-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
  }

  .topbar-wallet-card .game-wallet-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  .topbar-wallet-card .game-wallet-copy {
    display: inline-grid !important;
    width: max-content !important;
    min-width: 0 !important;
    gap: 0 !important;
  }

  .topbar-wallet-card .game-wallet-copy span {
    font-size: 8px !important;
    line-height: 1.05 !important;
    letter-spacing: .08em !important;
    white-space: nowrap !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    width: max-content !important;
    max-width: calc(100vw - 150px) !important;
    font-size: clamp(17px, 5vw, 22px) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .wallet-refresh-button {
    flex: 0 0 29px !important;
    width: 29px !important;
    height: 29px !important;
  }
}

@media (max-width: 420px) {
  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    max-width: calc(100vw - 66px) !important;
    padding: 4px 7px !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    max-width: calc(100vw - 136px) !important;
    font-size: clamp(16px, 5.2vw, 20px) !important;
  }
}

/* V3.10.8 — popup customer service, compact bubbles, queue and AHT timers. */
.support-popup-view {
  position: fixed !important;
  inset: 0;
  z-index: 260;
  display: none !important;
  padding: 18px;
  overflow: hidden;
}
.support-popup-view.active {
  display: grid !important;
  place-items: center;
}
.support-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, .72);
  backdrop-filter: blur(8px);
}
.support-popup-card {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 36px));
  height: min(780px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #0f0f11;
  border: 1px solid rgba(221,185,79,.28);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.support-popup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  background: linear-gradient(180deg,#171719,#111113);
  border-bottom: 1px solid rgba(221,185,79,.17);
}
.support-popup-titlebar strong { display:block; color:#fff5d8; font-size:16px; }
.support-popup-titlebar span { display:block; margin-top:3px; color:#b9aa7b; font-size:11px; }
.support-popup-close {
  width: 38px;
  height: 38px;
  color: #f6e7b8;
  background: #1d1d20;
  border: 1px solid rgba(221,185,79,.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.support-popup-card .messenger-shell {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.support-popup-card .messenger-chat,
.support-popup-card .messenger-sidebar,
.support-popup-card .smart-help-panel,
.support-popup-card .messenger-message-list,
.support-popup-card .messenger-composer,
.support-popup-card .messenger-chat-header,
.support-popup-card .messenger-sidebar-head {
  color:#f6e7b8;
  background:#111113;
  border-color:rgba(221,185,79,.14);
}
.support-popup-card .messenger-sidebar { background:linear-gradient(180deg,#151517,#0f0f11); }
.support-popup-card .conversation-item,
.support-popup-card .empty-card,
.support-popup-card .bot-message-card {
  color:#f6e7b8;
  background:#18181b;
  border-color:rgba(221,185,79,.15);
}
.support-popup-card .conversation-item:hover,
.support-popup-card .conversation-item.active {
  color:#241b08;
  background:linear-gradient(180deg,#f1cf65,#c89629);
  border-color:#f3d778;
}
.support-popup-card .conversation-item.active .muted,
.support-popup-card .conversation-item:hover .muted { color:rgba(36,27,8,.7); }
.support-popup-card .support-choice-button {
  color:#f2df9f;
  background:#1a1a1d;
  border-color:rgba(221,185,79,.2);
}
.support-popup-card .support-choice-button:hover,
.support-popup-card .support-choice-button.active {
  color:#211707;
  background:linear-gradient(180deg,#f2d16b,#c89225);
  border-color:#f4d77a;
}
.support-popup-card .chat-message.support {
  color:#f6e7b8;
  background:#1a1a1d;
  border-color:rgba(221,185,79,.18);
}
.support-popup-card .chat-message.player {
  color:#241a07;
  background:linear-gradient(180deg,#f3cf61,#c99728);
  border-color:#f4d676;
}
.support-popup-card .chat-message.player .chat-meta { color:rgba(36,26,7,.64); }
.support-popup-card .chat-meta,
.support-popup-card .muted,
.support-popup-card .messenger-chat-header span,
.support-popup-card .messenger-sidebar-head span,
.support-popup-card .bot-message-card p { color:#b9aa7b; }
.support-popup-card .messenger-message-list {
  align-content: start;
  grid-auto-rows: max-content;
  margin:0;
  background:radial-gradient(circle at 20% 10%,rgba(221,185,79,.04),transparent 30%),#0e0e10;
}
.support-popup-card .chat-message {
  width: auto;
  min-width: 0;
  max-width: min(76%, 620px);
  height: auto;
  min-height: 0;
  align-self: start;
  justify-self: start;
  padding: 9px 11px;
  overflow-wrap: anywhere;
}
.support-popup-card .chat-message.player { justify-self: end; }
.messenger-chat-heading { min-width:0; flex:1 1 auto; }
.support-timer-chip {
  flex:0 0 auto;
  padding:7px 10px;
  color:#231907;
  background:linear-gradient(180deg,#f2d16b,#c89225);
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.player-queue-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  color:#f6e7b8;
  background:#18181b;
  border-bottom:1px solid rgba(221,185,79,.15);
}
.player-queue-banner strong,
.player-queue-banner span { display:block; }
.player-queue-banner span { margin-top:2px; color:#b9aa7b; font-size:11px; }
.support-chat-launcher {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:210;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 13px 9px 9px;
  color:#241a07;
  background:linear-gradient(180deg,#f3d266,#c99728);
  border:1px solid #f4d676;
  border-radius:999px;
  box-shadow:0 14px 35px rgba(0,0,0,.3);
  cursor:pointer;
  font-weight:900;
}
.support-chat-launcher-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  border-radius:50%;
  font-size:10px;
}
.support-launcher-badge {
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  color:#fff;
  background:#c62828;
  border-radius:999px;
  font-size:10px;
}
@media (max-width: 760px) {
  .support-popup-view { padding:0; }
  .support-popup-card {
    width:100vw;
    height:100dvh;
    border:0;
    border-radius:0;
  }
  .support-popup-card .messenger-shell { grid-template-columns:1fr; }
  .support-popup-card .messenger-sidebar { max-height:190px; }
  .support-popup-card .messenger-conversation-list { max-height:125px; }
  .support-popup-card .chat-message { max-width:88%; }
  .support-chat-launcher span:nth-child(2) { display:none; }
  .support-chat-launcher { right:12px; bottom:76px; padding:8px; }
}
body.support-popup-open { overflow: hidden; }


/* V3.10.9 — stronger customer-service text contrast. */
.support-popup-card,
.support-popup-card .messenger-chat,
.support-popup-card .messenger-sidebar,
.support-popup-card .smart-help-panel,
.support-popup-card .messenger-message-list,
.support-popup-card .messenger-composer,
.support-popup-card .messenger-chat-header,
.support-popup-card .messenger-sidebar-head {
  color:#fff9e9 !important;
}
.support-popup-card .support-popup-titlebar strong,
.support-popup-card .messenger-chat-header strong,
.support-popup-card .messenger-sidebar-head strong,
.support-popup-card .conversation-item strong,
.support-popup-card .bot-message-card strong,
.support-popup-card .player-queue-banner strong {
  color:#fffaf0 !important;
}
.support-popup-card .support-popup-titlebar span,
.support-popup-card .messenger-chat-header span,
.support-popup-card .messenger-sidebar-head span,
.support-popup-card .conversation-item .muted,
.support-popup-card .bot-message-card p,
.support-popup-card .player-queue-banner span,
.support-popup-card .chat-meta,
.support-popup-card .muted {
  color:#dfd1a5 !important;
}
.support-popup-card .chat-message.support,
.support-popup-card .support-auto-answer .chat-message {
  color:#fffaf0 !important;
  background:#242327 !important;
  border-color:rgba(244,216,126,.26) !important;
}
.support-popup-card .chat-message.support .chat-meta { color:#ded0a3 !important; }
.support-popup-card .chat-message.player {
  color:#1f1505 !important;
  background:linear-gradient(180deg,#f7da76,#d2a432) !important;
  border-color:#f8e08b !important;
}
.support-popup-card .chat-message.player .chat-meta { color:rgba(31,21,5,.72) !important; }
.support-popup-card .textarea,
.support-popup-card .input,
.support-popup-card .select {
  color:#fffaf0 !important;
  background:#09090b !important;
  border-color:rgba(244,216,126,.30) !important;
}
.support-popup-card .textarea::placeholder,
.support-popup-card .input::placeholder { color:#c9bb8e !important; opacity:1; }
.support-popup-card .conversation-item:not(.active):not(:hover) {
  color:#fff5dc !important;
  background:#1b1b1e !important;
}
.support-popup-card .conversation-item:not(.active):not(:hover) .muted { color:#d3c494 !important; }
.support-popup-card .placeholder-card,
.support-popup-card .empty-card { color:#e8dbb3 !important; }
.support-popup-card .support-choice-button { color:#f9e8ad !important; }


/* v3.10.13 secure gateway deposit */
.gateway-deposit-panel { margin-bottom: 22px; border-color: rgba(238, 190, 58, .32); }
.gateway-deposit-panel .section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.gateway-deposit-panel .section-heading h2 { margin:0 0 6px; }
.gateway-deposit-panel .section-heading p { margin:0; color:var(--muted, #b7ae91); }
.section-divider { display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--muted, #b7ae91); text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; font-weight:700; }
.section-divider::before,.section-divider::after { content:""; height:1px; background:rgba(238,190,58,.22); flex:1; }
.success-text { color:#58d68d !important; }
.error-text { color:#ff7b7b !important; }
@media (max-width:720px){ .gateway-deposit-panel .section-heading{flex-direction:column;} }


/* v3.10.16 official payment logos, friendly copy, and embedded payment tab */
.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--text, #fff3cf);
}
.gateway-method-field { min-width: 0; }
.gateway-payment-method-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gateway-payment-method {
  appearance: none;
  border: 1px solid rgba(238, 190, 58, .28);
  border-radius: 16px;
  background: rgba(8, 9, 10, .82);
  color: var(--text, #fff3cf);
  min-height: 132px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.gateway-payment-method:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 202, 73, .72);
  background: rgba(29, 25, 13, .88);
}
.gateway-payment-method.active {
  border-color: #f4c744;
  box-shadow: 0 0 0 3px rgba(244, 199, 68, .16), inset 0 0 20px rgba(244, 199, 68, .08);
  background: linear-gradient(180deg, rgba(55, 44, 12, .8), rgba(12, 12, 12, .94));
}
.gateway-payment-logo-wrap {
  width: min(160px, 94%);
  height: 82px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}
.gateway-payment-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gateway-payment-logo-wrap.brand-qrph { background: #fff; padding: 8px; }
.gateway-payment-logo-wrap.brand-gcash,
.gateway-payment-logo-wrap.brand-maya,
.gateway-payment-logo-wrap.brand-gotyme { overflow: hidden; }
.wallet-actions-modal-card {
  width: min(980px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 30px));
  overflow: auto;
}
.wallet-actions-header { margin-bottom: 14px; }
.wallet-action-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  margin-bottom: 20px;
  border: 1px solid rgba(238, 190, 58, .22);
  border-radius: 16px;
  background: rgba(5, 6, 7, .72);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(14px);
}
.wallet-action-tab {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #c7b985;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.wallet-action-tab:hover { color: #fff2c8; background: rgba(244, 199, 68, .08); }
.wallet-action-tab.active {
  color: #111;
  background: linear-gradient(180deg, #f9d765, #d9a923);
  box-shadow: 0 8px 22px rgba(213, 165, 26, .22);
}
.wallet-action-tabs.payment-visible { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wallet-action-panel { min-height: 280px; }
.wallet-action-panel-heading { margin: 2px 0 18px; }
.wallet-action-panel-heading h3 { margin: 0 0 5px; font-size: 1.25rem; }
.wallet-action-panel-heading p { margin: 0; }
#walletWithdrawalModalBody form,
#walletCreditsModalBody form { max-width: 720px; }
#walletWithdrawalModalBody .field,
#walletCreditsModalBody .field { margin-bottom: 15px; }
#withdrawalModal,
#applyCreditsModal { /* retained as safe form homes when unified popup is closed */ }
@media (max-width: 720px) {
  .gateway-payment-method-options { grid-template-columns: repeat(2, minmax(112px, 1fr)); gap: 8px; }
  .gateway-payment-method { min-height: 104px; padding: 9px 6px; font-size: .78rem; }
  .gateway-payment-logo-wrap { width: min(108px, 94%); height: 58px; }
  .wallet-actions-modal-card { width: calc(100vw - 16px); max-height: calc(100vh - 16px); padding: 16px; }
  .wallet-action-tabs { gap: 4px; padding: 4px; }
  .wallet-action-tab { min-height: 42px; padding: 8px 5px; font-size: .78rem; }
}


/* v3.10.16 embedded payment page */
.wallet-payment-panel { min-height: 520px; }
.wallet-payment-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.wallet-payment-toolbar h3 { margin: 0 0 5px; }
.wallet-payment-toolbar p { margin: 0; overflow-wrap: anywhere; }
.wallet-payment-frame-loading {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: #e8d49a;
  border: 1px solid rgba(238,190,58,.2);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(8,9,10,.9);
}
.wallet-payment-frame {
  display: block;
  width: 100%;
  height: min(620px, 68vh);
  border: 1px solid rgba(238,190,58,.24);
  border-radius: 14px;
  background: #fff;
}
.wallet-payment-frame-loading:not(.hidden) + .wallet-payment-frame { border-radius: 0 0 14px 14px; }
.wallet-payment-fallback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  color: #bfae78;
  font-size: .88rem;
}
.payment-history-continue { min-width: 92px; padding: 8px 12px; }
@media (max-width: 720px) {
  .wallet-action-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-payment-toolbar { flex-direction: column; }
  .wallet-payment-frame { height: 64vh; }
  .wallet-payment-fallback { align-items: stretch; flex-direction: column; }
  .wallet-payment-fallback .button { width: 100%; }
}

/* v3.10.19 — turnover modal guidance, headset support icon, and unobstructed notifications. */
.support-headset-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.support-headset-avatar {
  color: #241a07 !important;
  background: linear-gradient(180deg, #f3d266, #c99728) !important;
  border: 1px solid rgba(244, 214, 118, .75);
}
.support-headset-avatar .support-headset-icon {
  width: 21px;
  height: 21px;
}
.support-chat-launcher-icon .support-headset-icon {
  width: 19px;
  height: 19px;
}

.withdrawal-popup-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.withdrawal-popup-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(221, 185, 79, .2);
  border-radius: 13px;
  background: linear-gradient(180deg, #151517, #101012);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.withdrawal-popup-stat span {
  display: block;
  color: #cfbc82;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
}

.withdrawal-popup-stat strong {
  display: block;
  margin-top: 7px;
  color: #fff0ba;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.withdrawal-popup-stat.is-blocked {
  border-color: rgba(239, 68, 68, .42);
  background: linear-gradient(180deg, rgba(127, 29, 29, .22), rgba(69, 10, 10, .18));
}

.withdrawal-popup-stat.is-blocked span,
.withdrawal-popup-stat.is-blocked strong {
  color: #ff9b9b;
}

.withdrawal-popup-stat .withdrawal-popup-mode {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.15;
}

.withdrawal-turnover-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, .24);
  border-radius: 12px;
  background: rgba(34, 197, 94, .07);
}

.withdrawal-turnover-notice p {
  margin: 0;
  color: #c8bb94;
  font-size: 11px;
  line-height: 1.45;
}

.withdrawal-turnover-notice.is-blocked {
  border-color: rgba(239, 68, 68, .38);
  background: rgba(127, 29, 29, .18);
}

.withdrawal-turnover-notice.is-blocked p {
  color: #ffd1d1;
}

.toast {
  z-index: 480 !important;
  right: 18px !important;
  bottom: 88px !important;
}
@media (max-width: 760px) {
  .toast {
    right: 12px !important;
    bottom: 140px !important;
    max-width: calc(100vw - 24px) !important;
  }
}
@media (max-width: 900px) {
  .withdrawal-popup-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .withdrawal-popup-summary {
    gap: 7px;
    margin-bottom: 10px;
  }

  .withdrawal-popup-stat {
    padding: 9px 10px;
    border-radius: 11px;
  }

  .withdrawal-popup-stat span {
    font-size: 9.5px;
  }

  .withdrawal-popup-stat strong {
    margin-top: 5px;
    font-size: clamp(16px, 5.5vw, 19px);
  }

  .withdrawal-popup-stat .withdrawal-popup-mode {
    font-size: 13px;
  }

  .withdrawal-turnover-notice {
    margin-bottom: 11px;
    padding: 8px 10px;
  }

  .withdrawal-turnover-notice p {
    font-size: 10px;
    line-height: 1.4;
  }
}


/* v3.10.23 — payment completion, clickable withdrawal methods, support clearance, and headset visibility. */
.support-chat-launcher {
  z-index: 430 !important;
}
.support-chat-launcher-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #241a07 !important;
  background: linear-gradient(180deg, #fff2b7, #e1b642) !important;
  border: 1px solid rgba(74, 49, 3, .28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.support-chat-launcher-icon .support-headset-icon {
  display: block;
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.15;
}

/* Keep system notifications above the support launcher instead of covering it. */
.toast {
  z-index: 420 !important;
  right: 18px !important;
  bottom: 94px !important;
  max-width: min(390px, calc(100vw - 36px)) !important;
}

.withdrawal-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 7px;
}
.withdrawal-method-option {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 10px 11px;
  color: #f6e9bd;
  text-align: left;
  background: linear-gradient(180deg, #171719, #101012);
  border: 1px solid rgba(221,185,79,.18);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.withdrawal-method-option:hover {
  transform: translateY(-1px);
  border-color: rgba(244,214,118,.5);
}
.withdrawal-method-option.active {
  border-color: #f2cf62;
  box-shadow: 0 0 0 2px rgba(242,207,98,.16), 0 12px 28px rgba(0,0,0,.22);
  background: linear-gradient(180deg, rgba(82,64,18,.38), #111113);
}
.withdrawal-method-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}
.withdrawal-method-logo .payment-method-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.withdrawal-method-copy { min-width: 0; }
.withdrawal-method-copy strong,
.withdrawal-method-copy small { display: block; }
.withdrawal-method-copy strong {
  color: #fff1bd;
  font-size: .92rem;
}
.withdrawal-method-copy small {
  margin-top: 4px;
  color: #bfae78;
  overflow-wrap: anywhere;
}
.withdrawal-method-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: transparent;
  border: 1px solid rgba(221,185,79,.3);
  border-radius: 50%;
}
.withdrawal-method-option.active .withdrawal-method-check {
  color: #211706;
  background: #f2cf62;
  border-color: #f2cf62;
  font-weight: 900;
}
.withdrawal-method-empty {
  grid-column: 1 / -1;
  padding: 14px;
  color: #c5b784;
  text-align: center;
  border: 1px dashed rgba(221,185,79,.24);
  border-radius: 12px;
}

.wallet-payment-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 30px;
  color: #d9fbe5;
  text-align: left;
  background: linear-gradient(180deg, rgba(20,83,45,.34), rgba(6,39,22,.42));
  border: 1px solid rgba(74,222,128,.34);
  border-radius: 16px;
}
.wallet-payment-success-icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: #052e16;
  background: #86efac;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}
.wallet-payment-success strong { display: block; font-size: 1.15rem; }
.wallet-payment-success p { margin: 6px 0 0; color: #b8e8c8; line-height: 1.5; }

@media (max-width: 620px) {
  .withdrawal-method-options { grid-template-columns: 1fr; }
  .toast {
    right: 12px !important;
    bottom: 142px !important;
    max-width: calc(100vw - 24px) !important;
  }
}


/* v3.10.24: Player support shows only the current live session, not chat history. */
.support-popup-view .messenger-sidebar {
  width: min(250px, 30%);
}

.support-popup-view .messenger-sidebar-head span {
  line-height: 1.35;
}

@media (max-width: 760px) {
  .support-popup-view .messenger-sidebar {
    width: 100%;
    max-height: 150px;
  }
}


/* v3.10.25 — top-center notifications stay clear of Customer Service. */
.toast {
  left: 50% !important;
  right: auto !important;
  top: calc(76px + env(safe-area-inset-top)) !important;
  bottom: auto !important;
  width: min(620px, calc(100vw - 32px)) !important;
  max-width: min(620px, calc(100vw - 32px)) !important;
  max-height: min(36vh, 250px);
  box-sizing: border-box;
  overflow-y: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  transform: translate(-50%, -16px) !important;
  z-index: 520 !important;
}
.toast.show {
  transform: translate(-50%, 0) !important;
}
.support-chat-launcher {
  z-index: 430 !important;
}
@media (max-width: 620px) {
  .toast {
    top: calc(68px + env(safe-area-inset-top)) !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
}


/* v3.10.27 withdrawal payout modes */
.withdrawal-payout-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.withdrawal-payout-mode {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon copy"
    "status status";
  gap: 10px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, .22);
  background: #121214;
  color: #fff2c7;
  text-align: left;
  cursor: pointer;
}

.withdrawal-payout-mode:hover:not(:disabled) {
  border-color: rgba(243, 207, 97, .55);
  background: rgba(212, 175, 55, .09);
}

.withdrawal-payout-mode.active {
  border-color: #f3cf61;
  box-shadow: 0 0 0 3px rgba(243, 207, 97, .12);
  background: rgba(212, 175, 55, .12);
}

.withdrawal-payout-mode.is-disabled,
.withdrawal-payout-mode:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.withdrawal-payout-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(212, 175, 55, .12);
  font-size: 20px;
}

.withdrawal-payout-copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.withdrawal-payout-copy strong {
  color: #fff3c9;
}

.withdrawal-payout-copy small,
.withdrawal-payout-status {
  color: #bcae83;
  line-height: 1.4;
}

.withdrawal-payout-status {
  grid-area: status;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .16);
  background: rgba(212, 175, 55, .07);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .withdrawal-payout-mode-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* v3.10.33 — Account Security score includes admin-approved manual KYC. */
.security-eligibility-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.security-eligibility-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.security-eligibility-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.security-eligibility-badge[data-status="review"] {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.09);
}

.security-eligibility-badge[data-status="eligible"] {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.30);
  background: rgba(34, 197, 94, 0.09);
}

.security-item-kyc {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  opacity: 0.86;
}

.security-item-copy {
  min-width: 0;
}

.security-item-action {
  align-self: center;
  min-height: 38px;
  padding: 8px 13px;
  white-space: nowrap;
}

.security-item-kyc.kyc-review {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.07);
}

.security-item-kyc.kyc-action-needed {
  border-color: rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.07);
}

@media (max-width: 680px) {
  .security-item-kyc {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .security-item-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* v3.10.34 — Mobile header keeps the compact wallet beside the notification bell. */
@media (max-width: 860px) {
  .topbar {
    grid-template-areas: "brand utility" !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
  }

  .topbar-actions {
    grid-area: utility !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .guest-auth-actions {
    grid-area: auto !important;
  }

  .notification-wrap {
    grid-area: auto !important;
    order: 2 !important;
    flex: 0 0 auto !important;
    justify-self: auto !important;
  }

  .topbar-wallet-cluster {
    grid-area: auto !important;
    order: 1 !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: min(42vw, 190px) !important;
    margin: 0 !important;
    justify-self: auto !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    width: auto !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 5px 7px !important;
    gap: 6px !important;
    border-radius: 13px !important;
  }

  .topbar-wallet-card .game-wallet-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
  }

  .topbar-wallet-card .game-wallet-copy {
    min-width: 0 !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    max-width: 92px !important;
    font-size: clamp(16px, 4vw, 21px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .wallet-refresh-button {
    flex: 0 0 29px !important;
    width: 29px !important;
    height: 29px !important;
  }
}

@media (max-width: 520px) {
  .topbar-actions {
    gap: 6px !important;
  }

  .topbar-wallet-cluster {
    max-width: min(39vw, 138px) !important;
  }

  .topbar-wallet-card .game-wallet-icon {
    display: none !important;
  }

  .topbar-wallet-card .game-wallet-copy span {
    font-size: 7.5px !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    max-width: 72px !important;
    font-size: 18px !important;
  }

  .notification-button {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 380px) {
  .header-brand-copy strong {
    max-width: 34vw !important;
  }

  .topbar-wallet-cluster {
    max-width: 112px !important;
  }

  .topbar-wallet-card .game-wallet-copy span {
    display: none !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    max-width: 62px !important;
    font-size: 16px !important;
  }

  .wallet-refresh-button {
    flex-basis: 27px !important;
    width: 27px !important;
    height: 27px !important;
  }
}


/* v3.10.36 — actionable mobile wallet beside the bell; compact nav/modal overrides live in index.html. */
@media (max-width: 1080px) {
  .topbar-actions {
    position: relative !important;
    z-index: 76 !important;
  }

  .topbar-wallet-cluster {
    order: 1 !important;
  }

  .notification-wrap {
    order: 2 !important;
  }

  .topbar-wallet-actions,
  #logoutButton {
    display: none !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
    touch-action: manipulation !important;
  }

  .topbar-wallet-card:focus-visible {
    outline: 2px solid #f3cf61 !important;
    outline-offset: 3px !important;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand utility" !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
  }

  .topbar-actions {
    grid-area: utility !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
    pointer-events: auto !important;
  }

  .notification-wrap {
    grid-area: auto !important;
    flex: 0 0 auto !important;
    justify-self: auto !important;
  }

  .topbar-wallet-cluster {
    grid-area: auto !important;
    display: flex !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: min(44vw, 180px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-self: auto !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    display: flex !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 5px 7px !important;
    gap: 6px !important;
    border-radius: 13px !important;
  }

  .topbar-wallet-card .game-wallet-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
  }

  .topbar-wallet-card .game-wallet-copy {
    min-width: 0 !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    display: block !important;
    max-width: 86px !important;
    font-size: clamp(16px, 4vw, 21px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .wallet-refresh-button {
    position: relative !important;
    z-index: 2 !important;
    flex: 0 0 29px !important;
    width: 29px !important;
    height: 29px !important;
    pointer-events: auto !important;
  }

  .mobile-bottom-nav,
  .mobile-bottom-nav-button {
    pointer-events: auto !important;
  }

  .mobile-bottom-nav {
    z-index: 180 !important;
  }
}

@media (max-width: 520px) {
  .topbar-actions {
    gap: 5px !important;
  }

  .topbar-wallet-cluster {
    max-width: min(42vw, 138px) !important;
  }

  .topbar-wallet-card .game-wallet-icon {
    display: none !important;
  }

  .topbar-wallet-card .game-wallet-copy span {
    font-size: 7.5px !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    max-width: 70px !important;
    font-size: 18px !important;
  }

  .notification-button {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 380px) {
  .header-brand-copy strong {
    max-width: 31vw !important;
  }

  .topbar-wallet-cluster {
    max-width: 108px !important;
  }

  .topbar-wallet-card .game-wallet-copy span {
    display: none !important;
  }

  .topbar-wallet-card .game-wallet-copy strong {
    max-width: 58px !important;
    font-size: 16px !important;
  }

  .wallet-refresh-button {
    flex-basis: 27px !important;
    width: 27px !important;
    height: 27px !important;
  }
}


/* v3.10.37 — Forgot password and Google/Gmail authentication. */
.auth-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin: -7px 0 15px;
}

.auth-link-button {
  padding: 0;
  color: #f0cf6a;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.auth-link-button:hover {
  color: #fff0b7;
  text-decoration: underline;
}

.auth-back-button {
  display: block;
  margin: 17px auto 0;
}

.social-auth-actions {
  margin-top: 18px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #9d8d60;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(212, 175, 55, .18);
}

.google-sign-in-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 16px;
  color: #fff5d8;
  background: #0c0c0e;
  border: 1px solid rgba(212, 175, 55, .25);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.google-sign-in-button:hover:not(:disabled) {
  background: rgba(212, 175, 55, .09);
  border-color: rgba(212, 175, 55, .46);
  transform: translateY(-1px);
}

.google-sign-in-button:disabled {
  cursor: wait;
  opacity: .72;
}

.google-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  padding: 2px;
  background: #fff;
  border-radius: 50%;
}

.google-button-loading {
  display: none;
}

.google-sign-in-button.is-loading .google-button-label,
.google-sign-in-button.is-loading .google-icon {
  display: none;
}

.google-sign-in-button.is-loading .google-button-loading {
  display: inline;
}

.auth-provider-note {
  display: block;
  margin-top: 9px;
  text-align: center;
}

@media (max-width: 560px) {
  .auth-screen {
    align-items: start;
    overflow-y: auto;
    padding: 14px;
  }

  .auth-card {
    margin: max(10px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
  }

  .google-sign-in-button {
    min-height: 45px;
  }
}


/* v3.10.46 — customer service opens as a fresh bot-guided concern flow. */
.support-popup-card .support-session-internal {
  display: none !important;
}

.support-popup-card .messenger-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

.support-popup-card .messenger-chat {
  width: 100% !important;
  min-width: 0 !important;
}

.support-popup-card .smart-help-panel {
  padding: clamp(16px, 3vw, 28px) !important;
}

.support-popup-card .bot-message-card,
.support-popup-card .support-choice-grid,
.support-popup-card .support-auto-answer {
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.support-popup-card .support-choice-grid {
  margin-top: 16px !important;
}

@media (max-width: 620px) {
  .support-popup-card .smart-help-panel {
    padding: 14px !important;
  }

  .support-popup-card .bot-message-card {
    padding: 14px !important;
  }

  .support-popup-card .support-choice-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .support-popup-card .support-choice-button {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 12px !important;
    text-align: left !important;
  }
}

/* v3.10.48 — compact mobile Customer Service modal and a single mobile Menu entry. */
@media (max-width: 860px) {
  /* The bottom navigation already contains Menu, so remove duplicate top hamburger controls. */
  .mobile-menu-button,
  .topbar-sidebar-toggle,
  .portal.sidebar-collapsed .topbar-sidebar-toggle,
  .portal.game-active.sidebar-collapsed .topbar-sidebar-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .topbar {
    padding-left: 12px !important;
  }
}

@media (max-width: 760px) {
  .support-popup-view {
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      calc(82px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  .support-popup-view.active {
    place-items: center !important;
  }

  .support-popup-card {
    width: min(94vw, 520px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(76dvh, 680px) !important;
    border: 1px solid rgba(221,185,79,.28) !important;
    border-radius: 20px !important;
  }

  .support-popup-titlebar {
    min-height: 56px !important;
    padding: 10px 12px !important;
  }

  .support-popup-titlebar strong {
    font-size: 15px !important;
  }

  .support-popup-titlebar span {
    font-size: 10px !important;
  }

  .support-popup-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 22px !important;
  }

  .support-popup-card .messenger-shell {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(min(76dvh, 680px) - 57px) !important;
    overflow: hidden !important;
  }

  .support-popup-card .messenger-chat {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(min(76dvh, 680px) - 57px) !important;
    overflow: hidden !important;
  }

  .support-popup-card .messenger-chat-header {
    min-height: 58px !important;
    padding: 10px 12px !important;
  }

  .support-popup-card .messenger-avatar {
    width: 36px !important;
    height: 36px !important;
  }

  .support-popup-card .smart-help-panel {
    max-height: calc(min(76dvh, 680px) - 116px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 12px !important;
  }

  .support-popup-card .bot-message-card {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 15px !important;
  }

  .support-popup-card .bot-message-card p {
    margin-top: 3px !important;
    line-height: 1.35 !important;
  }

  .support-popup-card .support-choice-grid {
    margin-top: 10px !important;
  }

  .support-popup-card .support-auto-answer {
    margin-top: 12px !important;
  }

  .support-popup-card .support-auto-actions {
    margin-top: 9px !important;
  }

  .support-popup-card .messenger-live-panel:not(.hidden) {
    min-height: min(48dvh, 410px) !important;
    max-height: calc(min(76dvh, 680px) - 116px) !important;
  }

  .support-popup-card .messenger-message-list {
    min-height: 190px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 12px !important;
  }

  .support-popup-card .messenger-composer {
    padding: 10px !important;
  }
}

@media (max-width: 420px) {
  .support-popup-view {
    padding:
      max(10px, env(safe-area-inset-top))
      10px
      calc(78px + env(safe-area-inset-bottom)) !important;
  }

  .support-popup-card {
    width: calc(100vw - 20px) !important;
    max-height: min(72dvh, 620px) !important;
    border-radius: 18px !important;
  }

  .support-popup-card .messenger-shell,
  .support-popup-card .messenger-chat {
    max-height: calc(min(72dvh, 620px) - 57px) !important;
  }

  .support-popup-card .smart-help-panel,
  .support-popup-card .messenger-live-panel:not(.hidden) {
    max-height: calc(min(72dvh, 620px) - 116px) !important;
  }
}


/* v3.10.49 — reliable mobile side-panel scrolling above the fixed bottom navigation. */
@media (max-width: 860px) {
  #playerSidebar.sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  #playerSidebar .sidebar-nav {
    flex: 0 0 auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding-bottom: 12px !important;
  }

  #playerSidebar .sidebar-footer {
    flex: 0 0 auto !important;
    margin-top: 12px !important;
  }
}


/* v3.10.51 — login transition appears only after explicit sign-in, not on refresh. */
.login-transition-open,
.login-transition-open body {
  overflow: hidden !important;
}

.loading-screen.login-transition-active {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  min-height: 100dvh !important;
  background:
    radial-gradient(circle at 50% 34%, rgba(221,185,79,.12), transparent 32%),
    linear-gradient(180deg, #101012, #070708) !important;
}

.login-loading-copy {
  display: none;
  justify-items: center;
  gap: 7px;
  max-width: min(420px, 84vw);
  text-align: center;
}

.login-loading-copy strong {
  color: #fff2bf;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 850;
  letter-spacing: .01em;
}

.login-loading-copy span {
  color: #bead7d;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.55;
}

.loading-screen .loading-progress {
  display: none;
  width: min(250px, 66vw) !important;
  height: 4px !important;
}

.loading-screen.login-transition-active .login-loading-copy {
  display: grid;
}

.loading-screen.login-transition-active .loading-progress {
  display: block;
}

@media (max-width: 560px) {
  .loading-screen .player-loader-brand {
    width: min(330px, 90vw) !important;
    min-height: auto !important;
    gap: 16px !important;
    padding: 26px 18px !important;
  }

  .loading-screen .loading-brand-mark {
    width: min(190px, 58vw) !important;
    height: min(155px, 28vh) !important;
  }
}


/* v3.10.52 — compact Account Center modal on mobile; keep the current game mounted behind it. */
.account-center-modal-card {
  width: min(920px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 36px));
  overflow: auto;
}

.account-center-modal-header {
  margin-bottom: 12px;
}

.account-center-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid rgba(221, 185, 79, .22);
  border-radius: 15px;
  background: rgba(8, 8, 9, .94);
  backdrop-filter: blur(14px);
}

.account-center-tab {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  color: #c9bb8c;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-center-tab.active {
  color: #15120a;
  background: linear-gradient(180deg, #f6d55f, #d8a92b);
  box-shadow: 0 8px 20px rgba(216, 169, 43, .20);
}

.account-center-modal-panel > .view.account-modal-hosted {
  display: block !important;
  min-height: 0 !important;
}

.account-center-modal-card .account-modal-hosted > .page-heading {
  display: none !important;
}

.account-center-modal-card .account-modal-hosted .panel-spacing {
  margin-top: 12px !important;
}

@media (max-width: 860px) {
  .account-center-modal {
    padding: 12px !important;
  }

  .account-center-modal-card {
    width: min(94vw, 640px) !important;
    max-height: min(78dvh, 720px) !important;
    padding: 14px !important;
    border-radius: 20px !important;
    overscroll-behavior: contain;
  }

  .account-center-modal-header {
    align-items: center !important;
    gap: 10px !important;
  }

  .account-center-modal-header h2 {
    font-size: 1.15rem !important;
  }

  .account-center-modal-header p {
    display: none !important;
  }

  .account-center-modal-header .button {
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: .78rem !important;
    white-space: nowrap;
  }

  .account-center-tab {
    min-height: 38px !important;
    padding: 7px 6px !important;
    font-size: .76rem !important;
  }

  .account-center-modal-card .security-summary {
    gap: 12px !important;
    padding: 14px !important;
  }

  .account-center-modal-card .security-score-block {
    align-items: center !important;
    gap: 12px !important;
  }

  .account-center-modal-card .security-score-block h2 {
    font-size: 1.05rem !important;
  }

  .account-center-modal-card .security-score-block .muted {
    font-size: .78rem !important;
    margin-bottom: 8px !important;
  }

  .account-center-modal-card .security-ring {
    width: 86px !important;
    height: 86px !important;
  }

  .account-center-modal-card .security-ring span {
    font-size: 21px !important;
  }

  .account-center-modal-card .security-eligibility-row {
    gap: 6px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .account-center-modal-card .security-eligibility-label,
  .account-center-modal-card .security-eligibility-badge {
    font-size: .72rem !important;
  }

  .account-center-modal-card .security-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .account-center-modal-card .security-item {
    min-height: 56px !important;
    gap: 8px !important;
    padding: 9px !important;
    border-radius: 11px !important;
  }

  .account-center-modal-card .security-check {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }

  .account-center-modal-card .security-item strong {
    font-size: .78rem !important;
    line-height: 1.18 !important;
  }

  .account-center-modal-card .security-item small {
    margin-top: 2px !important;
    font-size: .69rem !important;
  }

  .account-center-modal-card .security-item-kyc {
    grid-column: 1 / -1 !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  .account-center-modal-card .security-item-action {
    grid-column: auto !important;
    width: auto !important;
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: .72rem !important;
  }

  .account-center-modal-card .panel {
    padding: 14px !important;
  }

  .account-center-modal-card .panel h2 {
    font-size: 1rem !important;
  }

  .account-center-modal-card .field {
    margin-bottom: 10px !important;
  }

  .account-center-modal-card .input,
  .account-center-modal-card .select,
  .account-center-modal-card .textarea {
    min-height: 42px !important;
    padding: 9px 10px !important;
  }
}

@media (max-width: 420px) {
  .account-center-modal-card {
    width: calc(100vw - 20px) !important;
    max-height: 76dvh !important;
    padding: 12px !important;
  }

  .account-center-modal-card .security-checklist {
    grid-template-columns: 1fr !important;
  }

  .account-center-modal-card .security-item-kyc {
    grid-column: auto !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .account-center-modal-card .security-item-action {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}


/* source: assets/install-app-v3.10.83.css */
.pwa-install-button {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 9200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(250, 210, 91, .54);
  border-radius: 999px;
  color: #fff3bf;
  background: linear-gradient(180deg, #8f1728 0%, #5e0c18 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.13);
  font: 800 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.pwa-install-button[hidden] { display: none !important; }
.pwa-install-button:hover { filter: brightness(1.1); transform: translateX(-50%) translateY(-1px); }
.pwa-install-button:active { transform: translateX(-50%) translateY(1px); }
.pwa-install-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pwa-install-button.pwa-install-ready::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46d990;
  box-shadow: 0 0 0 3px rgba(70,217,144,.15);
}

.pwa-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pwa-install-overlay[hidden] { display: none !important; }
.pwa-install-dialog {
  width: min(420px, 94vw);
  border: 1px solid rgba(236, 202, 102, .28);
  border-radius: 22px;
  padding: 22px;
  color: #f9efd1;
  background: linear-gradient(145deg, #191512, #0c0b0a 72%);
  box-shadow: 0 28px 80px rgba(0,0,0,.56);
}
.pwa-install-dialog-head { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.pwa-install-dialog-icon {
  display:grid;
  place-items:center;
  flex:0 0 46px;
  width:46px;
  height:46px;
  border-radius:14px;
  background:linear-gradient(145deg,#a51c31,#630d1b);
  border:1px solid rgba(250,210,91,.35);
}
.pwa-install-dialog-icon svg { width:23px; height:23px; fill:none; stroke:#ffe58d; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.pwa-install-dialog h2 { margin:0; font:800 22px/1.15 system-ui,-apple-system,"Segoe UI",sans-serif; }
.pwa-install-dialog p { margin:0 0 12px; color:rgba(249,239,209,.76); font:500 14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif; }
.pwa-install-dialog ol { margin:0 0 18px; padding-left:21px; color:#fff3bf; font:650 14px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif; }
.pwa-install-dialog-actions { display:flex; justify-content:flex-end; gap:9px; }
.pwa-install-dialog-actions button {
  min-height:40px;
  padding:9px 15px;
  border-radius:11px;
  border:1px solid rgba(236,202,102,.25);
  color:#f8e9b4;
  background:rgba(255,255,255,.05);
  font:800 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;
}
.pwa-install-dialog-actions button:hover { background:rgba(236,202,102,.12); }

@media (max-width: 860px) {
  .pwa-install-button {
    bottom: calc(15px + env(safe-area-inset-bottom));
    min-height: 42px;
    padding: 9px 14px;
    font-size: 12px;
  }
  body.pwa-has-bottom-nav .pwa-install-button {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-button { transition: none; }
}


/* source: inline:v31028-mobile-bottom-nav-layout-editor-support */

    .mobile-bottom-nav { display: none; }
    .mobile-bottom-nav-button { appearance: none; border: 0; background: transparent; color: rgba(255,245,216,.72); display: grid; justify-items: center; gap: 5px; padding: 8px 6px; border-radius: 16px; font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .01em; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
    .mobile-bottom-nav-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
    .mobile-bottom-nav-button.active { color: #111827; background: linear-gradient(180deg,#f0d25e,#d4a52c); box-shadow: 0 8px 24px rgba(212,165,44,.22); }
    .mobile-bottom-nav-button:active { transform: translateY(1px); }

    .featured-games-grid { grid-template-columns: repeat(var(--layout-columns-desktop, 1), minmax(0, 1fr)) !important; }
    .compact-games-grid { grid-template-columns: repeat(var(--layout-columns-desktop, 4), minmax(0, 1fr)) !important; }
    #categoriesSection .compact-games-grid { grid-template-columns: repeat(var(--layout-columns-desktop, 4), minmax(0, 1fr)) !important; }
    .lobby-lotto-results { grid-template-columns: repeat(var(--layout-columns-desktop, 3), minmax(0, 1fr)) !important; }

    .featured-games-grid[data-layout-size="compact"] .featured-game-card { min-height: 250px; }
    .featured-games-grid[data-layout-size="compact"] .featured-game-content { min-height: 250px; width: min(100%, 560px); padding: 22px; }
    .featured-games-grid[data-layout-size="compact"] .featured-game-content h3 { font-size: clamp(22px,4vw,36px); }
    .featured-games-grid[data-layout-size="standard"] .featured-game-card { min-height: 320px; }
    .featured-games-grid[data-layout-size="standard"] .featured-game-content { min-height: 320px; }
    .featured-games-grid[data-layout-size="hero"] .featured-game-card { min-height: 390px; }
    .featured-games-grid[data-layout-size="hero"] .featured-game-content { min-height: 390px; }

    .compact-games-grid[data-layout-size="compact"] .compact-game-media,
    #categoriesSection[data-layout-size="compact"] .compact-game-media { aspect-ratio: 1 / 1; }
    .compact-games-grid[data-layout-size="standard"] .compact-game-media,
    #categoriesSection[data-layout-size="standard"] .compact-game-media { aspect-ratio: 16 / 10; }
    .compact-games-grid[data-layout-size="hero"] .compact-game-media,
    #categoriesSection[data-layout-size="hero"] .compact-game-media { aspect-ratio: 4 / 3; }
    .compact-games-grid[data-layout-size="hero"] .compact-game-copy strong,
    #categoriesSection[data-layout-size="hero"] .compact-game-copy strong { font-size: 15px; }

    @media (max-width: 860px) {
      .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,11,12,.96); border-top: 1px solid rgba(221,185,79,.16); box-shadow: 0 -18px 32px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
      .content { padding-bottom: 106px !important; }
      .mobile-menu-button { display: none !important; }
      .topbar-sidebar-toggle { display: none !important; }
      .featured-games-grid { grid-template-columns: repeat(var(--layout-columns-mobile, 1), minmax(0, 1fr)) !important; }
      .compact-games-grid { grid-template-columns: repeat(var(--layout-columns-mobile, 2), minmax(0, 1fr)) !important; }
      #categoriesSection .compact-games-grid { grid-template-columns: repeat(var(--layout-columns-mobile, 2), minmax(0, 1fr)) !important; }
      .lobby-lotto-results { grid-template-columns: repeat(var(--layout-columns-mobile, 1), minmax(0, 1fr)) !important; }
      .support-chat-launcher { bottom: 94px !important; }
    }
  

/* source: inline:manual-kyc-player-styles */

.kyc-status-card{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:22px;margin-bottom:18px;border:1px solid rgba(221,185,79,.2);border-radius:20px;background:linear-gradient(135deg,rgba(221,185,79,.09),rgba(255,255,255,.02))}.kyc-status-card strong{display:block;font-size:24px;margin:5px 0}.kyc-status-card p{margin:0;color:rgba(255,245,216,.7)}.status-badge{padding:9px 13px;border-radius:999px;border:1px solid rgba(221,185,79,.25);font-weight:800}.consent-row{display:flex;gap:10px;align-items:flex-start;margin:18px 0;color:rgba(255,245,216,.78)}.field-span-2{grid-column:1/-1}@media(max-width:700px){.kyc-status-card{align-items:flex-start;flex-direction:column}.field-span-2{grid-column:auto}}


/* source: inline:v31036-mobile-nav-wallet-compact */

/* v3.10.36 — four-button mobile nav and a calmer compact wallet popup. */
@media (max-width: 860px) {
  .mobile-bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
  }
  .mobile-bottom-nav-button {
    min-width: 0;
    min-height: 58px;
    padding: 7px 5px !important;
    gap: 4px !important;
    border: 1px solid transparent !important;
    border-radius: 15px !important;
    outline: none;
    font-size: 10.5px !important;
    line-height: 1.1;
  }
  .mobile-bottom-nav-button svg { width: 19px !important; height: 19px !important; }
  .mobile-bottom-nav-button.active {
    border-color: rgba(246, 215, 116, .42) !important;
    box-shadow: 0 6px 18px rgba(212,165,44,.18) !important;
  }
  .mobile-bottom-nav-button:focus-visible {
    outline: 2px solid rgba(240, 210, 94, .72);
    outline-offset: -2px;
  }

  #gameDepositModal {
    z-index: 240 !important;
    padding: 10px !important;
  }
  #gameDepositModal .wallet-actions-modal-card {
    width: min(94vw, 440px) !important;
    max-height: min(82dvh, 680px) !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }
  #gameDepositModal .wallet-actions-header {
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
  }
  #gameDepositModal .wallet-actions-header h2 {
    margin-bottom: 2px;
    font-size: 19px;
    line-height: 1.15;
  }
  #gameDepositModal .wallet-actions-header p {
    font-size: 11px;
    line-height: 1.35;
  }
  #closeGameDepositModalButton {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  #gameDepositModal .wallet-action-tabs {
    position: static !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 4px !important;
    margin-bottom: 12px !important;
    border-radius: 13px !important;
  }
  #gameDepositModal .wallet-action-tabs.payment-visible {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #gameDepositModal .wallet-action-tab {
    min-height: 36px !important;
    padding: 6px 4px !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
  }
  #gameDepositModal .wallet-action-panel { min-height: 0 !important; }
  #gameDepositModal .wallet-action-panel-heading { margin: 0 0 10px !important; }
  #gameDepositModal .wallet-action-panel-heading h3 { font-size: 16px !important; margin-bottom: 3px !important; }
  #gameDepositModal .wallet-action-panel-heading p { font-size: 11px !important; line-height: 1.35; }
  #gameDepositModal .form-grid { gap: 10px !important; }
  #gameDepositModal .field { margin-bottom: 10px !important; }
  #gameDepositModal .field label,
  #gameDepositModal .field-label { font-size: 12px !important; }
  #gameDepositModal .field small { font-size: 10.5px !important; line-height: 1.35; }
  #gameDepositModal .input,
  #gameDepositModal .select,
  #gameDepositModal .textarea,
  #gameDepositModal .file-input {
    min-height: 40px !important;
    padding: 8px 10px !important;
    border-radius: 11px !important;
    font-size: 13.5px !important;
  }
  #gameDepositModal .textarea { min-height: 76px !important; }
  #gameDepositModal .button {
    min-height: 38px !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    font-size: 12.5px !important;
  }
  #gameDepositModal .withdrawal-popup-summary { gap: 7px !important; margin-bottom: 10px !important; }
  #gameDepositModal .withdrawal-popup-stat { padding: 9px !important; border-radius: 11px !important; }
  #gameDepositModal .withdrawal-popup-stat span { font-size: 10px !important; }
  #gameDepositModal .withdrawal-popup-stat strong { font-size: 14px !important; }
  #gameDepositModal .withdrawal-turnover-notice { padding: 9px 10px !important; margin-bottom: 10px !important; }
  #gameDepositModal .withdrawal-turnover-notice p { font-size: 11px !important; }
  #gameDepositModal .withdrawal-payout-mode,
  #gameDepositModal .withdrawal-method-option {
    min-height: 0 !important;
    padding: 9px !important;
    border-radius: 12px !important;
  }
  #gameDepositModal .withdrawal-payout-copy strong,
  #gameDepositModal .withdrawal-method-option strong { font-size: 12px !important; }
  #gameDepositModal .withdrawal-payout-copy small,
  #gameDepositModal .withdrawal-method-option small { font-size: 10px !important; line-height: 1.3; }
}

@media (max-width: 420px) {
  .mobile-bottom-nav { gap: 4px !important; padding-left: 7px !important; padding-right: 7px !important; }
  .mobile-bottom-nav-button { min-height: 54px; padding: 6px 3px !important; font-size: 10px !important; }
  #gameDepositModal .wallet-actions-modal-card { width: calc(100vw - 18px) !important; max-height: 80dvh !important; padding: 11px !important; }
}


/* source: assets/lobby-layout-v3.10.45.css */
/* v3.10.39 — reference-position lobby layout.
   Only positioning, density, responsive rails, and missing browse controls are changed.
   Existing black/gold visual identity and functional modules remain intact. */

#view-games {
  --lobby-rail-width: 208px;
  --lobby-gap: 18px;
}

#gameLobby.game-lobby {
  display: grid;
  grid-template-columns: var(--lobby-rail-width) minmax(0, 1fr);
  gap: var(--lobby-gap);
  align-items: start;
  max-width: 100%;
}

#gameLobby > .lobby-announcement {
  grid-column: 1 / -1;
  margin: 0;
}

#gameLobby > .lobby-category-nav {
  grid-column: 1;
  grid-row: 2 / span 20;
  position: sticky;
  top: 88px;
  z-index: 12;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(221, 185, 79, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 22, 24, .98), rgba(10, 10, 11, .98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.lobby-filter-tools {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(221, 185, 79, .13);
}

.lobby-search-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(221, 185, 79, .18);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: #ead99f;
}

.lobby-search-field:focus-within {
  border-color: rgba(243, 207, 97, .58);
  box-shadow: 0 0 0 3px rgba(221, 185, 79, .08);
}

.lobby-search-field svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.lobby-search-field input,
.lobby-provider-filter {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff5d8;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.lobby-search-field input::placeholder { color: rgba(255, 245, 216, .48); }

.lobby-provider-filter {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(221, 185, 79, .18);
  border-radius: 11px;
  background: #151517;
}

.lobby-provider-filter option { background: #151517; color: #fff5d8; }

.lobby-filter-count {
  padding-inline: 4px;
  color: rgba(255, 245, 216, .5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#gameLobby .lobby-category-button {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 11px;
  text-align: left;
  white-space: nowrap;
}

#gameLobby .lobby-category-button > span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  color: #f1cf64;
}

#gameLobby .lobby-category-button.active,
#gameLobby .lobby-category-button.filter-selected {
  color: #16130a;
  background: linear-gradient(180deg, #f2d463, #d6a72c);
  border-color: rgba(255, 229, 134, .68);
  box-shadow: 0 9px 24px rgba(202, 151, 28, .18);
}

#gameLobby .lobby-category-button.active > span:first-child,
#gameLobby .lobby-category-button.filter-selected > span:first-child { color: #16130a; }

#gameLobby > .game-showcase-section,
#gameLobby > .game-provider-section {
  grid-column: 2;
  min-width: 0;
  margin-top: 0;
}

#gameLobby .game-showcase-section,
#gameLobby .game-provider-section {
  scroll-margin-top: 94px;
}

#gameLobby .game-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

#gameLobby .game-section-heading h2 {
  margin: 1px 0 0;
  font-size: clamp(18px, 2vw, 24px);
}

#gameLobby .game-section-kicker {
  font-size: 9px;
  letter-spacing: .16em;
}

#featuredGamesGrid.featured-games-grid {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100%, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(221, 185, 79, .38) transparent;
}

#featuredGamesGrid .featured-game-card {
  min-height: 330px !important;
  scroll-snap-align: start;
}

#featuredGamesGrid .featured-game-content {
  min-height: 330px !important;
  max-width: min(52%, 560px);
  padding: clamp(22px, 3vw, 40px) !important;
}

#gameLobby .compact-games-grid,
#gameLobby #categoriesSection .compact-games-grid {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 1fr);
  gap: 10px !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(221, 185, 79, .34) transparent;
}

#gameLobby .compact-game-card {
  min-width: 0;
  scroll-snap-align: start;
}

#gameLobby .compact-game-media {
  aspect-ratio: 1 / 1 !important;
}

#gameLobby .compact-game-copy {
  padding: 8px 6px 4px;
}

#gameLobby .compact-game-copy strong {
  font-size: 12px;
  line-height: 1.2;
}

#gameLobby .compact-game-copy span {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.25;
}

#gameLobby .game-category-sections {
  display: grid;
  gap: 16px;
}

#gameLobby .game-category-block {
  min-width: 0;
}

#gameLobby .game-category-block h3 {
  margin: 0 0 8px;
  color: #f1d06a !important;
  font-size: 14px;
}

#gameLobby .game-provider-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(136px, max-content);
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 9px;
  scroll-snap-type: x proximity;
}

#gameLobby .provider-chip {
  appearance: none;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(221, 185, 79, .18);
  border-radius: 12px;
  color: #fff1bf;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  scroll-snap-align: start;
}

#gameLobby .provider-chip:hover {
  border-color: rgba(243, 207, 97, .52);
  background: rgba(221, 185, 79, .1);
}

.lobby-filter-hidden,
.lobby-filter-empty { display: none !important; }

@media (min-width: 861px) and (max-width: 1180px) {
  #view-games { --lobby-rail-width: 174px; --lobby-gap: 14px; }
  #gameLobby > .lobby-category-nav { padding: 9px; }
  #gameLobby .lobby-category-button { font-size: 11px; padding-inline: 8px; }
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid { grid-auto-columns: minmax(132px, 1fr); }
  #featuredGamesGrid .featured-game-content { max-width: 62%; }
}

@media (max-width: 860px) {
  #gameLobby.game-lobby {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  #gameLobby > .lobby-announcement { order: 0; }

  #gameLobby > .lobby-category-nav {
    order: 1;
    position: relative;
    top: auto;
    z-index: 12;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-radius: 14px;
    backdrop-filter: blur(16px);
    scrollbar-width: none;
  }

  #gameLobby > .lobby-category-nav::-webkit-scrollbar { display: none; }

  .lobby-filter-tools {
    flex: 0 0 min(78vw, 330px);
    grid-template-columns: minmax(136px, 1fr) minmax(112px, .8fr);
    gap: 6px;
    padding: 0 7px 0 0;
    margin: 0;
    border: 0;
    border-right: 1px solid rgba(221, 185, 79, .13);
  }

  .lobby-search-field,
  .lobby-provider-filter { min-height: 34px; }
  .lobby-filter-count { grid-column: 1 / -1; padding-left: 2px; font-size: 8.5px; }

  #gameLobby .lobby-category-button {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    display: inline-flex;
    grid-template-columns: none;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px;
  }

  #gameLobby .lobby-category-button > span:first-child { width: auto; }

  #gameLobby > .game-showcase-section,
  #gameLobby > .game-provider-section { order: 3; width: 100%; }
  #gameLobby > #featuredSection { order: 2; }

  #gameLobby .game-showcase-section,
  #gameLobby .game-provider-section { scroll-margin-top: 72px; }

  #featuredGamesGrid .featured-game-card { min-height: 235px !important; }
  #featuredGamesGrid .featured-game-content {
    min-height: 235px !important;
    max-width: 72%;
    padding: 18px !important;
  }
  #featuredGamesGrid .featured-game-content h3 { font-size: clamp(21px, 7vw, 30px) !important; }
  #featuredGamesGrid .featured-game-content p { display: none; }
  #featuredGamesGrid .game-card-badges { display: none; }
  #featuredGamesGrid .button { min-height: 34px; padding: 7px 12px; font-size: 11px; }

  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid {
    grid-auto-columns: minmax(126px, 42vw) !important;
    gap: 8px !important;
    padding-bottom: 7px;
  }

  #gameLobby .game-section-heading { margin-bottom: 7px; }
  #gameLobby .game-section-heading h2 { font-size: 17px; }
  #gameLobby .game-category-sections { gap: 12px; }
  #gameLobby .game-provider-list { grid-auto-columns: minmax(126px, 42vw); }
}

@media (max-width: 480px) {
  #gameLobby > .lobby-category-nav { margin-inline: -2px; width: calc(100% + 4px); }
  .lobby-filter-tools { flex-basis: 286px; grid-template-columns: 154px 118px; }
  .lobby-search-field input,
  .lobby-provider-filter { font-size: 10px; }
  #featuredGamesGrid .featured-game-card { min-height: 210px !important; }
  #featuredGamesGrid .featured-game-content { min-height: 210px !important; max-width: 80%; padding: 15px !important; }
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid { grid-auto-columns: minmax(116px, 40vw) !important; }
}

/* v3.10.40 — single navigation panel fix.
   The existing application sidebar remains the only side panel.
   Game search, provider filter, and lobby categories are presented as
   a compact horizontal toolbar above the game content. */

#view-games {
  --lobby-rail-width: auto;
  --lobby-gap: 14px;
}

#gameLobby.game-lobby {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: var(--lobby-gap) !important;
  max-width: 100%;
}

#gameLobby > .lobby-announcement {
  order: 0;
  width: 100%;
  margin: 0;
}

#gameLobby > .lobby-category-nav {
  order: 1;
  position: sticky;
  top: 78px;
  z-index: 24;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(221, 185, 79, .18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 22, 24, .98), rgba(10, 10, 11, .98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
}

#gameLobby .lobby-filter-tools {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 0 9px;
  margin: 0 0 1px;
  border: 0;
  border-bottom: 1px solid rgba(221, 185, 79, .13);
}

#gameLobby .lobby-filter-count {
  align-self: center;
  white-space: nowrap;
}

#gameLobby .lobby-category-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  grid-template-columns: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
}

#gameLobby .lobby-category-button > span:first-child {
  display: inline-grid;
  width: auto;
}

#gameLobby > .game-showcase-section,
#gameLobby > .game-provider-section {
  order: initial;
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

@media (max-width: 860px) {
  #gameLobby.game-lobby {
    gap: 12px !important;
  }

  #gameLobby > .lobby-category-nav {
    position: relative;
    top: auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-radius: 14px;
    scrollbar-width: none;
  }

  #gameLobby > .lobby-category-nav::-webkit-scrollbar {
    display: none;
  }

  #gameLobby .lobby-filter-tools {
    flex: 0 0 min(86vw, 410px);
    grid-template-columns: minmax(150px, 1fr) minmax(120px, .78fr);
    gap: 6px;
    width: auto;
    padding: 0 8px 0 0;
    margin: 0;
    border: 0;
    border-right: 1px solid rgba(221, 185, 79, .13);
  }

  #gameLobby .lobby-filter-count {
    grid-column: 1 / -1;
    padding-left: 2px;
    font-size: 8.5px;
  }

  #gameLobby .lobby-category-button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 10px;
  }

  #gameLobby > .game-showcase-section,
  #gameLobby > .game-provider-section {
    order: 3;
  }

  #gameLobby > #featuredSection {
    order: 2;
  }
}

@media (max-width: 480px) {
  #gameLobby .lobby-filter-tools {
    flex-basis: 292px;
    grid-template-columns: 158px 120px;
  }
}

/* v3.10.41 — mobile game search visibility fix.
   Keep the search and provider controls on their own full-width row so the
   horizontal category controls cannot squeeze or push the search field away. */
@media (max-width: 860px) {
  #gameLobby > .lobby-category-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch;
    overflow-x: visible;
  }

  #gameLobby .lobby-filter-tools {
    flex: 1 0 100% !important;
    width: 100% !important;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(118px, 38%) !important;
    padding: 0 0 8px !important;
    margin: 0 0 1px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(221, 185, 79, .13) !important;
  }

  #gameLobby .lobby-search-field,
  #gameLobby .lobby-provider-filter {
    width: 100%;
    min-width: 0;
  }

  #gameLobby .lobby-search-field input {
    display: block;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  #gameLobby .lobby-filter-tools {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #gameLobby .lobby-filter-count {
    grid-column: 1;
  }

  #gameLobby .lobby-search-field,
  #gameLobby .lobby-provider-filter {
    min-height: 38px;
  }
}


/* v3.10.42 — desktop toolbar order fix.
   Keep the game search/provider/category toolbar directly below the announcement
   and above the featured banner on desktop. The previous flex order left
   default-order game sections ahead of the toolbar. */
@media (min-width: 861px) {
  #gameLobby > .lobby-announcement {
    order: 0 !important;
  }

  #gameLobby > .lobby-category-nav {
    order: 1 !important;
  }

  #gameLobby > .game-showcase-section,
  #gameLobby > .game-provider-section {
    order: 2 !important;
  }
}

/* v3.10.43 — all-screen toolbar order fix.
   Force the search/provider/category toolbar directly below the announcement
   and above the featured/game content on desktop, tablet, and mobile. */
#gameLobby > .lobby-announcement {
  order: 0 !important;
}

#gameLobby > .lobby-category-nav {
  order: 1 !important;
}

#gameLobby > .game-showcase-section,
#gameLobby > .game-provider-section {
  order: 2 !important;
}

/* v3.10.44 — game runtime replaces the lobby.
   The lobby layout uses high-specificity display rules, so the generic .hidden
   utility could not hide it after a game was launched. Keep the lobby fully
   removed while the runtime is active on desktop, tablet, and mobile. */
#gameLobby.hidden,
.portal.game-active #gameLobby {
  display: none !important;
}

#gameRuntime.hidden {
  display: none !important;
}

.portal.game-active #gameRuntime {
  display: flex !important;
}

/* v3.10.45 — mobile game scrolling fix.
   Keep the runtime as a two-row grid (toolbar + iframe) and allow vertical
   touch scrolling inside the launched game on phones and tablets. */
.portal.game-active #gameRuntime {
  display: grid !important;
}

@media (max-width: 860px) {
  html,
  body {
    min-height: 100% !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
  }

  .portal.game-active,
  .portal.game-active .main,
  .portal.game-active .content,
  .portal.game-active #view-games,
  .portal.game-active #gameRuntime {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  .portal.game-active #gameRuntime {
    grid-template-rows: auto minmax(calc(100dvh - 52px), auto) !important;
    align-content: start !important;
  }

  .portal.game-active .game-frame {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(100dvh - 52px) !important;
    max-height: none !important;
    overflow: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


/* source: inline:v31055-manual-commission-claims */

    .commission-highlight-card{border-color:rgba(242,202,77,.38);background:linear-gradient(145deg,rgba(242,202,77,.11),rgba(255,255,255,.025))}
    .commission-claim-panel{scroll-margin-top:90px}
    .commission-claim-form{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(240px,1fr);gap:14px;align-items:end}
    .commission-claim-actions{grid-column:1/-1;margin-top:0}
    @media(max-width:720px){.commission-claim-form{grid-template-columns:1fr}.commission-claim-actions{display:grid;grid-template-columns:1fr}.commission-claim-actions .button{width:100%}}
  

/* source: inline:v31056-wallet-history-tree-referral-fix */

    .wallet-inner-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px;padding:5px;border:1px solid rgba(221,185,79,.18);border-radius:12px;background:rgba(0,0,0,.18)}
    .wallet-inner-tab{border:0;border-radius:9px;padding:9px 14px;background:transparent;color:rgba(255,245,216,.68);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
    .wallet-inner-tab.active{background:linear-gradient(180deg,#efd16a,#c99d32);color:#171006;box-shadow:0 5px 16px rgba(0,0,0,.24)}
    .wallet-inner-panel.hidden{display:none!important}.wallet-modal-history-table{max-height:min(54vh,520px);overflow:auto}.wallet-modal-history-table table{min-width:860px}
    .player-network-tree-row.is-tree-hidden{display:none}
    .player-network-name{display:flex;align-items:flex-start;gap:7px;min-width:190px}
    .player-network-indent{width:calc(var(--network-depth,0) * 16px);flex:0 0 calc(var(--network-depth,0) * 16px)}
    .player-network-toggle,.player-network-spacer{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border-radius:7px}
    .player-network-toggle{border:1px solid rgba(221,185,79,.28);background:rgba(221,185,79,.08);color:#f2ca4d;cursor:pointer;font-weight:900;transition:.18s ease}
    .player-network-toggle[aria-expanded="true"]{transform:rotate(90deg)}
    .commission-game-details{display:grid;gap:4px;min-width:185px}.commission-game-detail{display:grid;gap:1px;padding:5px 7px;border:1px solid rgba(221,185,79,.14);border-radius:7px;background:rgba(255,255,255,.018)}.commission-game-detail strong{font-size:10px}.commission-game-detail small{font-size:9px;color:rgba(255,245,216,.58)}
    @media(max-width:720px){.wallet-actions-modal-card{width:min(96vw,760px)}.wallet-modal-history-table{max-height:58vh}.wallet-inner-tab{flex:1 1 130px}.player-network-indent{width:calc(var(--network-depth,0) * 11px);flex-basis:calc(var(--network-depth,0) * 11px)}}
  

/* source: assets/ui-polish-v3.10.57.css */
/* 888 Lotto Player v3.10.57 — compact glass black-gold polish and pagination */
:root {
  --bg: #040404 !important;
  --surface: rgba(18, 17, 14, .67) !important;
  --surface-solid: #10100f !important;
  --surface-soft: rgba(31, 27, 18, .72) !important;
  --surface-hover: rgba(51, 42, 22, .72) !important;
  --border: rgba(231, 195, 91, .17) !important;
  --border-strong: rgba(241, 210, 119, .34) !important;
  --text: #faf4e2 !important;
  --muted: #aaa087 !important;
  --primary: #d5aa36 !important;
  --primary-2: #f2db83 !important;
  --sidebar-width: 246px !important;
  --radius: 14px !important;
  --shadow: 0 20px 58px rgba(0, 0, 0, .43) !important;
}

html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-size: 13px;
  background:
    radial-gradient(circle at 86% 0%, rgba(229, 190, 77, .14), transparent 31%),
    radial-gradient(circle at 4% 20%, rgba(143, 104, 23, .09), transparent 28%),
    linear-gradient(145deg, #030303 0%, #0b0906 52%, #040404 100%) !important;
  background-attachment: fixed !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 36px 36px;
}

.sidebar,
.topbar,
.panel,
.stat-card,
.table-wrap,
.modal-card,
.ui-dialog-card,
.notification-panel,
.wallet-action-shell,
.support-popup-card,
.game-card,
.featured-game-card,
.compact-game-card,
.lotto-result-card,
.topbar-wallet-card,
.withdrawal-popup-stat,
.account-center-modal-card {
  border-color: rgba(231, 195, 91, .17) !important;
  background: linear-gradient(145deg, rgba(28, 25, 19, .67), rgba(7, 7, 7, .73)) !important;
  box-shadow: 0 17px 46px rgba(0, 0, 0, .31), inset 0 1px 0 rgba(255, 239, 185, .035) !important;
  backdrop-filter: blur(22px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(125%) !important;
}
.sidebar { background: linear-gradient(180deg, rgba(18, 17, 14, .89), rgba(4, 4, 4, .93)) !important; }

.content { padding: 15px 20px 38px !important; }
.topbar { min-height: 62px !important; padding: 8px 16px !important; }
.sidebar-header { padding: 14px 13px 11px !important; }
.sidebar-nav { padding: 7px 8px 14px !important; gap: 3px !important; }
.nav-button { min-height: 38px !important; padding: 8px 10px !important; border-radius: 10px !important; font-size: 12px !important; }
.sidebar .brand-mark { width: 62px !important; height: 62px !important; border-radius: 18px !important; }
.brand-name { font-size: 16px !important; }
.brand-subtitle { font-size: 11px !important; }

.page-heading,
.view-heading { margin-bottom: 14px !important; }
.page-heading h1,
.page-heading h2,
.view-heading h1,
.view-heading h2 { font-size: clamp(22px, 2vw, 30px) !important; letter-spacing: -.035em !important; }
.page-heading p,
.view-heading p { font-size: 12px !important; line-height: 1.45 !important; }

.panel,
.stat-card { border-radius: 15px !important; }
.panel { padding: 15px !important; }
.stat-card { padding: 13px !important; min-height: 98px !important; }
.panel-grid,
.stats-grid { gap: 11px !important; }
.panel h2,
.panel h3 { font-size: 16px !important; }
.stat-label { font-size: 9.5px !important; letter-spacing: .055em !important; color: #cbb980 !important; }
.stat-value { font-size: clamp(20px, 2vw, 27px) !important; color: #f7e8b3 !important; }

.button,
.mobile-menu-button,
.notification-button,
.sidebar-collapse-button {
  min-height: 36px !important;
  padding: 7px 11px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
.button-primary {
  color: #211704 !important;
  background: linear-gradient(180deg, #f3dc87, #c89425) !important;
  border-color: rgba(255, 229, 145, .78) !important;
  box-shadow: 0 9px 22px rgba(143, 99, 13, .23) !important;
}
.button:hover:not(:disabled),
.nav-button:hover,
.mobile-bottom-nav-button:hover { transform: translateY(-1px); }
.button:active:not(:disabled),
.mobile-bottom-nav-button:active { transform: scale(.985); }

.input,
.select,
.textarea,
input,
select,
textarea {
  border-radius: 9px !important;
  border-color: rgba(231, 195, 91, .19) !important;
  background: rgba(3, 3, 3, .55) !important;
  color: #faf4e2 !important;
}
.input,
.select,
input:not([type="checkbox"]):not([type="radio"]),
select { min-height: 38px !important; padding: 8px 10px !important; }
.input:focus,
.select:focus,
.textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(242, 213, 125, .62) !important;
  box-shadow: 0 0 0 3px rgba(231, 195, 91, .10) !important;
}

.table-wrap { border-radius: 13px !important; overflow-x: auto; background: rgba(5,5,5,.53) !important; }
table { font-size: 11.5px !important; }
th,
td { padding: 9px 10px !important; line-height: 1.35 !important; }
th {
  color: #dfcc94 !important;
  background: rgba(231, 195, 91, .065) !important;
  font-size: 9.5px !important;
  letter-spacing: .045em !important;
  white-space: nowrap;
}
td { background: rgba(5,5,5,.34) !important; border-color: rgba(231, 195, 91, .075) !important; }
tbody tr { transition: background .18s ease !important; }
tbody tr:hover td { background: rgba(231, 195, 91, .052) !important; }
.status { padding: 5px 8px !important; font-size: 9.5px !important; }
.small-copy,
.muted { font-size: 10.5px; }

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 38px;
  padding: 7px 5px 3px;
  color: #aaa087;
  font-size: 10px;
}
.table-pagination.hidden { display: none !important; }
.table-pagination-actions { display: flex; align-items: center; gap: 5px; }
.pagination-button {
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid rgba(231, 195, 91, .18);
  border-radius: 8px;
  background: rgba(231, 195, 91, .075);
  color: #ead8a3;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  transition: background .17s ease, border-color .17s ease, transform .17s ease;
}
.pagination-button:hover:not(:disabled) { background: rgba(231, 195, 91, .15); border-color: rgba(231, 195, 91, .34); transform: translateY(-1px); }
.pagination-button:disabled { opacity: .38; cursor: default; }
.table-pagination-page { min-width: 72px; text-align: center; color: #d5c28e; }
.table-pagination-count { margin-right: auto; }

.panel,
.stat-card,
.game-card,
.featured-game-card,
.compact-game-card,
.lotto-result-card,
.wallet-action-card,
.withdrawal-method-option,
.payment-brand-option {
  transition: transform .24s cubic-bezier(.2,.8,.2,1), border-color .24s ease, box-shadow .24s ease, background .24s ease !important;
}
.game-card:hover,
.featured-game-card:hover,
.compact-game-card:hover,
.lotto-result-card:hover { transform: translateY(-2px); border-color: rgba(241, 209, 112, .31) !important; box-shadow: 0 22px 52px rgba(0,0,0,.38) !important; }
.view[aria-hidden="false"],
.view:not(.hidden) { animation: playerViewIn .28s cubic-bezier(.2,.8,.2,1); }
.modal:not(.hidden) .modal-card,
.account-center-modal:not(.hidden) .account-center-modal-card,
.support-popup-view[aria-hidden="false"] .support-popup-card { animation: glassModalIn .26s cubic-bezier(.2,.8,.2,1); }
@keyframes playerViewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes glassModalIn { from { opacity: 0; transform: translateY(11px) scale(.987); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

.mobile-bottom-nav {
  background: rgba(7, 7, 7, .75) !important;
  border-top-color: rgba(231, 195, 91, .17) !important;
  backdrop-filter: blur(24px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(130%) !important;
}
.mobile-bottom-nav-button.active { background: linear-gradient(180deg, #f1d77e, #c69325) !important; color: #1f1604 !important; }

/* Standalone game terminal glass treatment */
.app,
.game-shell { background: transparent !important; }
.app .topbar,
.workspace,
.manual-card,
.keyin-card,
.summary-card,
.side-panel,
.txn-section,
.terminal-card,
.rate-card,
.wallet-box,
.game-logo,
.game-drawer,
.modal-card {
  border-color: rgba(231, 195, 91, .18) !important;
  background: linear-gradient(145deg, rgba(27,24,18,.73), rgba(6,6,6,.78)) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,239,185,.035) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
}
.app .topbar { min-height: 70px !important; }
.wallet-box { min-width: 92px !important; padding: 7px 9px !important; }
.game-logo { transform: scale(.94); }
.ball,
.mode-btn,
.type-btn,
.place-btn { transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background .18s ease !important; }
.ball:hover,
.mode-btn:hover,
.type-btn:hover { transform: translateY(-1px); }

@media (max-width: 860px) {
  html { font-size: 13px; }
  .content { padding: 12px 10px 100px !important; }
  .topbar { min-height: 56px !important; padding: 7px 10px !important; }
  .panel { padding: 12px !important; }
  .sidebar .brand-mark { width: 54px !important; height: 54px !important; }
  th, td { padding: 8px !important; }
  .table-pagination { position: sticky; left: 0; width: min(100%, 100vw); }
  .mobile-bottom-nav-button { font-size: 9.5px !important; padding: 7px 4px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.record-page-hidden { display: none !important; }


/* v3.10.58 premium referral topbar overlap fix and richer black-gold finish */
:root {
  --primary: #dcb44a !important;
  --primary-2: #f6de93 !important;
  --border: rgba(239, 199, 93, .22) !important;
  --border-strong: rgba(248, 219, 132, .42) !important;
  --shadow: 0 24px 68px rgba(0, 0, 0, .48) !important;
}
body {
  background:
    radial-gradient(circle at 82% -4%, rgba(247, 212, 117, .16), transparent 28%),
    radial-gradient(circle at 14% 0%, rgba(162, 111, 18, .10), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255, 229, 146, .05), transparent 32%),
    linear-gradient(145deg, #020202 0%, #080604 54%, #030303 100%) !important;
}
body::before { opacity: .14; }

.sidebar,
.topbar,
.panel,
.stat-card,
.table-wrap,
.modal-card,
.ui-dialog-card,
.notification-panel,
.wallet-action-shell,
.support-popup-card,
.game-card,
.featured-game-card,
.compact-game-card,
.lotto-result-card,
.topbar-wallet-card,
.withdrawal-popup-stat,
.account-center-modal-card {
  border-color: rgba(244, 207, 104, .20) !important;
  background: linear-gradient(145deg, rgba(28, 23, 15, .76), rgba(8, 8, 8, .82)) !important;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 242, 197, .055), inset 0 0 0 1px rgba(243, 203, 91, .03) !important;
}
.sidebar {
  background:
    linear-gradient(180deg, rgba(22, 18, 12, .94), rgba(6, 6, 6, .98)) !important;
}
.topbar {
  gap: 12px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  padding-left: 88px !important;
  background: linear-gradient(180deg, rgba(20, 16, 10, .90), rgba(8, 8, 8, .88)) !important;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(243, 203, 91, .08) !important;
}
.topbar-sidebar-toggle,
.portal.sidebar-collapsed .topbar-sidebar-toggle,
.portal.game-active.sidebar-collapsed .topbar-sidebar-toggle {
  left: 18px !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(244, 207, 104, .22) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(32, 24, 12, .95), rgba(14, 12, 9, .92)) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .26) !important;
}
.topbar-sidebar-toggle:hover {
  border-color: rgba(247, 215, 127, .40) !important;
  background: linear-gradient(180deg, rgba(45, 32, 14, .98), rgba(18, 15, 11, .95)) !important;
}
.topbar-sidebar-toggle svg { stroke: #f3d57a !important; }
.header-brand-home {
  position: relative;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(100%, 430px) !important;
  gap: 14px !important;
  padding: 10px 16px 10px 12px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(245, 208, 102, .20) !important;
  background: linear-gradient(135deg, rgba(67, 48, 14, .30), rgba(18, 16, 13, .78)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 237, 184, .12), 0 14px 34px rgba(0,0,0,.24) !important;
  overflow: hidden;
}
.header-brand-home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.05), transparent 35%, transparent 65%, rgba(244,207,104,.07));
}
.header-brand-mark,
.header-brand-mark.has-logo {
  width: 78px !important;
  height: 78px !important;
  border-radius: 22px !important;
  background: radial-gradient(circle at 35% 30%, rgba(255, 231, 163, .24), rgba(0,0,0,0) 60%), linear-gradient(135deg, rgba(71, 46, 7, .94), rgba(17, 14, 10, .98)) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255, 239, 191, .12) !important;
}
.header-brand-mark img { padding: 5px !important; }
.header-brand-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}
.header-brand-copy strong {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff1c4 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.28);
  font-size: clamp(24px, 3.2vw, 30px) !important;
  letter-spacing: -.03em !important;
}
.header-brand-copy small {
  color: rgba(243, 221, 157, .84) !important;
  font-size: 12px !important;
  letter-spacing: .01em !important;
}
.topbar-title {
  min-width: 0 !important;
  flex: 1 1 200px !important;
  gap: 2px !important;
}
.topbar-title strong { color: #ffedb6 !important; }
.topbar-title span { color: rgba(239, 214, 145, .75) !important; }
.topbar-actions {
  flex: 1 1 320px !important;
  min-width: 0 !important;
  justify-content: flex-end !important;
}
.nav-button.active,
.mobile-bottom-nav-button.active {
  background: linear-gradient(180deg, #f7df8f, #ca9228) !important;
  color: #1f1503 !important;
  box-shadow: 0 12px 26px rgba(177, 121, 16, .24) !important;
}
.button-primary {
  background: linear-gradient(180deg, #f8e3a2, #cd9628) !important;
  box-shadow: 0 12px 28px rgba(170, 118, 15, .26) !important;
}
.button-secondary,
.notification-button,
.wallet-refresh-button {
  background: linear-gradient(180deg, rgba(33, 26, 16, .95), rgba(12, 11, 10, .95)) !important;
  border-color: rgba(244, 207, 104, .20) !important;
}
.topbar-wallet-card,
.game-wallet-balance-card.topbar-wallet-card {
  background: linear-gradient(145deg, rgba(31, 24, 14, .88), rgba(9, 9, 9, .88)) !important;
  border-color: rgba(244, 207, 104, .22) !important;
}

@media (max-width: 1180px) {
  .topbar { padding-left: 84px !important; }
  .header-brand-home { max-width: calc(100% - 12px) !important; }
  .topbar-title { flex-basis: 160px !important; }
}
@media (max-width: 960px) {
  .topbar {
    padding-left: 82px !important;
    row-gap: 10px !important;
  }
  .header-brand-home {
    flex: 1 1 calc(100% - 92px) !important;
    max-width: calc(100% - 92px) !important;
  }
  .header-brand-mark,
  .header-brand-mark.has-logo {
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
  }
  .header-brand-copy strong { font-size: clamp(18px, 4.4vw, 24px) !important; }
  .topbar-title { order: 2 !important; flex: 1 1 180px !important; }
  .topbar-actions { order: 3 !important; flex-basis: 100% !important; }
}
@media (max-width: 720px) {
  .topbar {
    padding-left: 74px !important;
    gap: 8px !important;
  }
  .topbar-sidebar-toggle,
  .portal.sidebar-collapsed .topbar-sidebar-toggle,
  .portal.game-active.sidebar-collapsed .topbar-sidebar-toggle {
    left: 12px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }
  .header-brand-home {
    gap: 10px !important;
    padding: 8px 12px 8px 10px !important;
    border-radius: 20px !important;
  }
  .header-brand-mark,
  .header-brand-mark.has-logo {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
  }
  .header-brand-copy strong { font-size: 15px !important; }
  .header-brand-copy small { font-size: 10px !important; }
  .topbar-title strong { font-size: 14px !important; }
  .topbar-title span { font-size: 10px !important; }
}


/* source: assets/header-layout-v3.10.61.css */
/* 888 Dragon Lotto Player v3.10.61
   Header containment fix only.
   Restores the exact v3.10.58 premium header sizing and appearance.
   No logo, typography, wallet-card, or action-button dimensions are reduced.
   The header row is given enough vertical space so the existing premium brand
   card stays inside the header instead of overlapping the lobby content. */

@media (min-width: 1501px) {
  :root {
    --header-height: 120px !important;
  }

  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-rows: var(--header-height) minmax(0, 1fr) !important;
  }

  .topbar {
    grid-row: 1 !important;
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }

  .sidebar,
  .content {
    height: auto !important;
    min-height: 0 !important;
  }

  .header-brand-home {
    flex-shrink: 0 !important;
  }

  .topbar-title {
    min-width: 96px !important;
  }

  .topbar-actions {
    min-width: 0 !important;
    margin-left: auto !important;
  }
}

/* On narrower desktop widths, keep the same premium controls at their original
   size and move the action group to a clean second row instead of shrinking or
   hiding the logo and text. */
@media (min-width: 1081px) and (max-width: 1500px) {
  :root {
    --header-height: 184px !important;
  }

  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-rows: var(--header-height) minmax(0, 1fr) !important;
  }

  .topbar {
    grid-row: 1 !important;
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    align-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .sidebar,
  .content {
    height: auto !important;
    min-height: 0 !important;
  }

  .header-brand-home {
    flex: 0 0 auto !important;
  }

  .topbar-title {
    flex: 1 1 160px !important;
  }

  .topbar-actions {
    order: 3 !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    justify-content: flex-end !important;
    margin-left: 0 !important;
  }
}


/* source: assets/header-size-v3.10.62.css */
/* 888 Dragon Lotto Player v3.10.62
   Compact desktop brand header only.
   Reduces the oversized header brand card, logo and title while retaining
   the v3.10.61 containment fix and leaving wallet/actions/content untouched. */

@media (min-width: 1081px) {
  .header-brand-home {
    max-width: 400px !important;
    gap: 10px !important;
    padding: 7px 12px 7px 9px !important;
    border-radius: 18px !important;
  }

  .header-brand-mark,
  .header-brand-mark.has-logo {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 17px !important;
  }

  .header-brand-mark img,
  .header-brand-mark.has-logo img {
    padding: 3px !important;
  }

  .header-brand-copy {
    gap: 2px !important;
  }

  .header-brand-copy strong {
    max-width: 300px !important;
    font-size: clamp(20px, 1.75vw, 24px) !important;
    letter-spacing: -0.025em !important;
  }

  .header-brand-copy small {
    font-size: 11px !important;
  }
}

@media (min-width: 1501px) {
  :root {
    --header-height: 88px !important;
  }

  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-rows: var(--header-height) minmax(0, 1fr) !important;
  }

  .topbar {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }
}

@media (min-width: 1281px) and (max-width: 1500px) {
  :root {
    --header-height: 96px !important;
  }

  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-rows: var(--header-height) minmax(0, 1fr) !important;
  }

  .topbar {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    flex-wrap: nowrap !important;
    align-content: center !important;
  }

  .topbar-actions {
    order: initial !important;
    flex: 1 1 auto !important;
    width: auto !important;
    margin-left: auto !important;
  }
}

@media (min-width: 1081px) and (max-width: 1280px) {
  :root {
    --header-height: 132px !important;
  }

  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-rows: var(--header-height) minmax(0, 1fr) !important;
  }

  .topbar {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    row-gap: 8px !important;
  }
}


/* source: assets/mobile-home-v3.10.65.css */
/* 888 LOTTO Player v3.10.65 — compact mobile/tablet wallet header.
   Wallet + Withdraw + Deposit stay on one row. */
.wallet-quick-action-icon {
  display:block;
  width:20px;
  height:20px;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.wallet-quick-action-icon path,
.wallet-quick-action-icon circle,
.wallet-quick-action-icon rect,
.wallet-quick-action-icon line,
.wallet-quick-action-icon polyline {
  fill:none !important;
  stroke:currentColor !important;
}
.mobile-lobby-shortcuts { display:none; }

@media (max-width:1180px) {
  .topbar {
    position:sticky !important;
    top:0 !important;
    z-index:190 !important;
    display:grid !important;
    grid-template-columns:40px minmax(52px,1fr) auto !important;
    grid-template-areas:"menu brand utility" !important;
    align-items:center !important;
    gap:7px !important;
    width:100% !important;
    min-height:62px !important;
    height:auto !important;
    padding:7px 9px !important;
    background:linear-gradient(180deg,rgba(8,8,9,.995),rgba(13,12,9,.99)) !important;
    border-bottom:1px solid rgba(221,185,79,.24) !important;
    box-shadow:0 10px 28px rgba(0,0,0,.34) !important;
    overflow:visible !important;
  }

  .mobile-menu-button {
    grid-area:menu !important;
    position:static !important;
    display:grid !important;
    place-items:center !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    padding:0 !important;
    border:1px solid rgba(221,185,79,.27) !important;
    border-radius:11px !important;
    background:linear-gradient(180deg,#171719,#0d0d0f) !important;
    color:#f2ca4d !important;
    box-shadow:0 6px 16px rgba(0,0,0,.22) !important;
  }
  .topbar-sidebar-toggle,
  #desktopSidebarToggle,
  .topbar-title { display:none !important; }

  .header-brand-home {
    grid-area:brand !important;
    display:flex !important;
    align-items:center !important;
    justify-self:start !important;
    width:max-content !important;
    max-width:100% !important;
    min-width:0 !important;
    height:48px !important;
    padding:3px 7px 3px 4px !important;
    gap:8px !important;
    border:1px solid rgba(221,185,79,.17) !important;
    border-radius:14px !important;
    background:linear-gradient(145deg,rgba(35,29,17,.76),rgba(11,11,12,.86)) !important;
    box-shadow:0 7px 18px rgba(0,0,0,.2) !important;
    overflow:hidden !important;
  }
  .header-brand-mark,
  .header-brand-mark.has-logo {
    flex:0 0 42px !important;
    width:42px !important;
    height:40px !important;
    border-radius:11px !important;
  }
  .header-brand-copy { min-width:0 !important; }
  .header-brand-copy strong {
    display:block !important;
    max-width:min(30vw,265px) !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:clamp(13px,1.7vw,19px) !important;
    line-height:1.05 !important;
  }
  .header-brand-copy small {
    display:block !important;
    margin-top:2px !important;
    font-size:9px !important;
    line-height:1 !important;
  }

  .topbar-actions {
    grid-area:utility !important;
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    justify-self:end !important;
    gap:5px !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    position:relative !important;
    z-index:192 !important;
  }
  .guest-auth-actions { display:flex !important; flex-wrap:nowrap !important; }
  .notification-wrap {
    order:0 !important;
    flex:0 0 auto !important;
    grid-area:auto !important;
  }
  .notification-button {
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    border-radius:11px !important;
    color:#f5d86d !important;
    background:linear-gradient(180deg,#171719,#0e0e10) !important;
    border:1px solid rgba(221,185,79,.26) !important;
  }

  .topbar-wallet-cluster {
    order:1 !important;
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:5px !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
  }
  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    display:flex !important;
    flex:0 1 148px !important;
    width:148px !important;
    max-width:148px !important;
    min-width:116px !important;
    height:42px !important;
    min-height:42px !important;
    padding:4px 6px !important;
    gap:5px !important;
    border-radius:11px !important;
    cursor:pointer !important;
    background:linear-gradient(180deg,#171719,#0e0e10) !important;
    border:1px solid rgba(221,185,79,.3) !important;
    box-shadow:0 7px 18px rgba(0,0,0,.24) !important;
    overflow:hidden !important;
  }
  .topbar-wallet-card .game-wallet-icon {
    display:grid !important;
    place-items:center !important;
    flex:0 0 27px !important;
    width:27px !important;
    height:27px !important;
    border-radius:8px !important;
  }
  .topbar-wallet-card .game-wallet-icon svg { width:16px !important; height:16px !important; }
  .topbar-wallet-card .game-wallet-copy {
    display:block !important;
    flex:1 1 auto !important;
    min-width:0 !important;
  }
  .topbar-wallet-card .game-wallet-copy span {
    display:none !important;
  }
  .topbar-wallet-card .game-wallet-copy strong {
    display:block !important;
    max-width:none !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:18px !important;
    line-height:1 !important;
    color:#fff0b7 !important;
  }
  .wallet-refresh-button {
    position:static !important;
    display:grid !important;
    place-items:center !important;
    flex:0 0 27px !important;
    width:27px !important;
    height:27px !important;
    min-width:27px !important;
    padding:0 !important;
    border-radius:8px !important;
    pointer-events:auto !important;
  }
  .wallet-refresh-button svg { width:16px !important; height:16px !important; }

  .topbar-wallet-actions,
  .game-wallet-actions.topbar-wallet-actions {
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    gap:5px !important;
    width:auto !important;
    min-width:0 !important;
  }
  .topbar-wallet-actions .wallet-quick-action {
    display:grid !important;
    place-items:center !important;
    flex:0 0 42px !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    padding:0 !important;
    border-radius:11px !important;
    border:1px solid rgba(255,255,255,.24) !important;
    box-shadow:0 7px 18px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.18) !important;
    line-height:1 !important;
    overflow:hidden !important;
  }
  .topbar-wallet-actions .wallet-quick-action span {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
  }
  #gamesWithdrawButton {
    order:1 !important;
    color:#fff !important;
    background:linear-gradient(145deg,#2988ff,#0d4ba8) !important;
    border-color:#5aa5ff !important;
  }
  #gamesDepositButton {
    order:2 !important;
    color:#fff8e6 !important;
    background:linear-gradient(145deg,#ffb52f,#d64320) !important;
    border-color:#ffc360 !important;
  }
  #gamesApplyCreditsButton,
  #logoutButton { display:none !important; }

  .mobile-lobby-shortcuts {
    order:1 !important;
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:5px !important;
    width:100% !important;
    padding:7px 6px !important;
    border:1px solid rgba(221,185,79,.18) !important;
    border-radius:14px !important;
    background:linear-gradient(180deg,#151517,#0d0d0f) !important;
    box-shadow:0 12px 28px rgba(0,0,0,.22) !important;
  }
  .mobile-lobby-shortcut {
    appearance:none !important;
    display:grid !important;
    justify-items:center !important;
    align-content:center !important;
    gap:5px !important;
    min-width:0 !important;
    min-height:64px !important;
    padding:6px 2px !important;
    border:0 !important;
    border-radius:11px !important;
    color:#fff0ba !important;
    background:transparent !important;
    font:inherit !important;
    font-size:9px !important;
    font-weight:850 !important;
    line-height:1 !important;
    cursor:pointer !important;
  }
  .mobile-lobby-shortcut:active {
    background:rgba(221,185,79,.1) !important;
    transform:translateY(1px) !important;
  }
  .mobile-lobby-shortcut-icon {
    display:grid !important;
    place-items:center !important;
    width:34px !important;
    height:34px !important;
    border-radius:50% !important;
    color:#171006 !important;
    background:linear-gradient(180deg,#f3d46b,#c99b2c) !important;
    box-shadow:0 6px 14px rgba(0,0,0,.24) !important;
  }
  .mobile-lobby-shortcut-icon svg {
    width:18px !important;
    height:18px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.9 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
  }

  #gameLobby > .lobby-announcement { order:0 !important; }
  #gameLobby > .mobile-lobby-shortcuts { order:1 !important; }
  #gameLobby > .lobby-category-nav { order:2 !important; }
  #gameLobby > .game-showcase-section,
  #gameLobby > .game-provider-section,
  #gameLobby > #featuredSection { order:3 !important; }
  .content { padding-bottom:88px !important; }
}

@media (max-width:720px) {
  .topbar {
    grid-template-columns:38px 44px minmax(0,1fr) !important;
    grid-template-areas:"menu brand utility" !important;
    gap:5px !important;
    min-height:56px !important;
    padding:6px !important;
  }
  .mobile-menu-button { width:38px !important; min-width:38px !important; height:38px !important; }
  .header-brand-home {
    width:44px !important;
    max-width:44px !important;
    height:42px !important;
    padding:2px !important;
    border-radius:11px !important;
  }
  .header-brand-mark,
  .header-brand-mark.has-logo { flex-basis:38px !important; width:38px !important; height:36px !important; }
  .header-brand-copy { display:none !important; }
  .notification-button { width:38px !important; min-width:38px !important; height:38px !important; }
  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    flex-basis:128px !important;
    width:128px !important;
    max-width:128px !important;
    min-width:104px !important;
    height:38px !important;
    min-height:38px !important;
  }
  .topbar-wallet-card .game-wallet-icon { flex-basis:24px !important; width:24px !important; height:24px !important; }
  .topbar-wallet-card .game-wallet-copy strong { font-size:16px !important; }
  .wallet-refresh-button { flex-basis:24px !important; width:24px !important; min-width:24px !important; height:24px !important; }
  .topbar-wallet-actions .wallet-quick-action {
    flex-basis:38px !important;
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    height:38px !important;
    min-height:38px !important;
    border-radius:10px !important;
  }
  .wallet-quick-action-icon { width:18px !important; height:18px !important; }
}

@media (max-width:520px) {
  .notification-wrap { display:none !important; }
  .topbar-wallet-cluster { gap:4px !important; }
  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    flex-basis:112px !important;
    width:112px !important;
    max-width:112px !important;
    min-width:92px !important;
    padding:4px 5px !important;
  }
  .topbar-wallet-card .game-wallet-icon { display:none !important; }
  .topbar-wallet-card .game-wallet-copy strong { font-size:15px !important; }
  .mobile-lobby-shortcuts { gap:3px !important; padding:5px 3px !important; }
  .mobile-lobby-shortcut { min-height:57px !important; padding:5px 1px !important; font-size:8px !important; }
  .mobile-lobby-shortcut-icon { width:30px !important; height:30px !important; }
  .mobile-lobby-shortcut-icon svg { width:16px !important; height:16px !important; }
  #gameLobby.game-lobby { gap:9px !important; padding-top:6px !important; }
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:6px !important;
  }
}

@media (max-width:380px) {
  .topbar { grid-template-columns:34px 38px minmax(0,1fr) !important; gap:4px !important; padding:5px 4px !important; }
  .mobile-menu-button { width:34px !important; min-width:34px !important; height:34px !important; border-radius:9px !important; }
  .header-brand-home { width:38px !important; max-width:38px !important; height:38px !important; }
  .header-brand-mark,
  .header-brand-mark.has-logo { width:34px !important; height:33px !important; }
  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    flex-basis:96px !important;
    width:96px !important;
    max-width:96px !important;
    min-width:86px !important;
    height:34px !important;
    min-height:34px !important;
  }
  .topbar-wallet-card .game-wallet-copy strong { font-size:14px !important; }
  .wallet-refresh-button { flex-basis:22px !important; width:22px !important; min-width:22px !important; height:22px !important; }
  .topbar-wallet-actions .wallet-quick-action {
    flex-basis:34px !important;
    width:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    height:34px !important;
    min-height:34px !important;
  }
}


/* source: assets/performance-v3.10.66.css */
/* Player v3.10.66 — gateway-only withdrawals and smoother rendering. */
.gateway-only-withdrawal-card{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid rgba(221,185,79,.24);border-radius:16px;background:linear-gradient(135deg,rgba(221,185,79,.09),rgba(255,255,255,.025))}
.gateway-only-withdrawal-card .withdrawal-payout-copy{min-width:0;flex:1}.gateway-only-withdrawal-card .withdrawal-payout-copy strong{display:block;color:#fff4d4}.gateway-only-withdrawal-card .withdrawal-payout-copy small{display:block;margin-top:3px;color:rgba(255,245,216,.65);line-height:1.4}.gateway-only-withdrawal-card .withdrawal-payout-status{white-space:nowrap}.gateway-only-withdrawal-card.is-disabled{opacity:.62;border-color:rgba(248,113,113,.28)}.gateway-only-withdrawal-card .status-unavailable{color:#ffaaa3}
.announcement-bar::before,.announcement-icon,.featured-game-media,.featured-game-cover-fallback img,.guest-cover-logo,.auth-button::before{animation:none!important}
.featured-game-card,.compact-game-card,.lobby-lotto-result-card,.panel,.wallet-actions-modal-card,.account-modal-card{content-visibility:auto;contain-intrinsic-size:1px 260px}
.mobile-bottom-nav,.topbar,.modal,.ui-dialog-overlay,.auth-screen,.support-popup-view{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.view:not(.hidden),.support-popup-view[aria-hidden="false"] .support-popup-card{animation:none!important}
.button,.topbar-button,.mobile-bottom-nav-button,.featured-game-card,.compact-game-card,.gateway-payment-method,.withdrawal-method-card{transition-duration:.12s!important;transition-property:transform,border-color,background-color,opacity!important}
.featured-game-card:hover .featured-game-media,.compact-game-card:hover img{transform:none!important;filter:none!important}
@media(max-width:860px){.mobile-bottom-nav{background:#0b0b0c!important}.gateway-only-withdrawal-card{align-items:flex-start;flex-wrap:wrap}.gateway-only-withdrawal-card .withdrawal-payout-status{margin-left:48px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* LOTTO terminal performance. */
.manual-card,.keyin-card,.summary-card,.loading,.drawer-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.game-logo,.type-btn,.mode-btn,.ball,.wallet-btn,.menu,.toast,.drawer-backdrop,.account-drawer{transition-duration:.1s!important;transition-property:transform,opacity,background-color,border-color!important}
.game-logo:hover,.type-btn:hover,.mode-btn:hover,.ball:hover{transform:none!important}
.side-panel,.manual-card,.keyin-card,.summary-card{content-visibility:auto;contain-intrinsic-size:1px 520px}


/* source: assets/elegant-red-gold-v3.10.69.css */
/* 888 LOTTO Player v3.10.69 — elegant red / premium gold theme */
:root {
  --bg: #090203 !important;
  --bg-2: #120407 !important;
  --surface: #18070b !important;
  --surface-2: #210a10 !important;
  --surface-3: #2b0d15 !important;
  --panel: #17070a !important;
  --panel-2: #210a10 !important;
  --card: #1b080d !important;
  --ink: #fff4dd !important;
  --text: #fff4dd !important;
  --muted: #c9aa7b !important;
  --line: rgba(231, 180, 64, .34) !important;
  --border: rgba(231, 180, 64, .34) !important;
  --gold: #e7b440 !important;
  --gold-2: #ffdb73 !important;
  --gold-soft: rgba(231,180,64,.16) !important;
  --accent: #8f1023 !important;
  --accent-2: #c32138 !important;
  --danger: #ff6d70 !important;
  --success: #49cf8b !important;
  --shadow: 0 16px 40px rgba(0,0,0,.38) !important;
}
html, body {
  background:
    radial-gradient(circle at 48% -12%, rgba(117,10,28,.52) 0, rgba(52,7,15,.32) 25%, rgba(18,4,7,.92) 48%, #090203 78%) fixed !important;
  color: var(--text) !important;
}
body::before { opacity: .13 !important; }
.app-shell, .app-main, .page-shell, .player-shell, main { background-color: transparent !important; }
header, .topbar, .app-header, .player-header, .mobile-header, .site-header {
  background: linear-gradient(180deg, rgba(35,7,13,.99), rgba(11,2,4,.98)) !important;
  border-color: rgba(231,180,64,.35) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.34) !important;
}
.card, .panel, .section-card, .modal-card, .wallet-modal, .game-card, .lobby-card,
.quick-action, .top-action, .toolbar, .notice, .hero-card, .result-card, .account-card,
[class*="card"], [class*="panel"] { border-color: rgba(231,180,64,.28) !important; }
.card, .panel, .section-card, .modal-card, .wallet-modal, .toolbar, .notice, .hero-card, .result-card, .account-card {
  background: linear-gradient(155deg, rgba(42,10,17,.97), rgba(15,3,6,.99)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.28) !important;
}
button, .button, .btn, a.button, [role="button"] { border-color: rgba(231,180,64,.36) !important; }
.btn-primary, .primary, button.primary, .button-primary, .active-tab, .tab.active,
.quick-action.active, .top-action.deposit, [data-action="deposit"] {
  background: linear-gradient(180deg, #ffd86b, #d29a21) !important;
  color: #1a0803 !important;
  border-color: #ffe291 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.45), 0 8px 20px rgba(210,154,33,.2) !important;
}
.btn-secondary, .secondary, button.secondary, .button-secondary, .top-action.withdraw, [data-action="withdraw"] {
  background: linear-gradient(180deg, #a8172f, #6d0b1b) !important;
  color: #fff3d5 !important;
  border-color: rgba(255,219,115,.62) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(82,3,18,.28) !important;
}
input, select, textarea {
  background: #0e0305 !important;
  color: #fff4dd !important;
  border-color: rgba(231,180,64,.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02) !important;
}
input:focus, select:focus, textarea:focus { border-color: #e7b440 !important; box-shadow: 0 0 0 3px rgba(231,180,64,.12) !important; }
::placeholder { color: #8f7357 !important; }
.nav-item.active, .sidebar a.active, .bottom-nav a.active, .category-tab.active {
  color: #ffdb73 !important;
  background: linear-gradient(180deg, rgba(151,15,38,.34), rgba(89,6,20,.18)) !important;
  border-color: rgba(231,180,64,.42) !important;
}
.wallet-pill, .wallet-summary, .system-wallet {
  background: linear-gradient(180deg, #2a0912, #140306) !important;
  border-color: rgba(231,180,64,.5) !important;
}
.wallet-pill strong, .system-wallet strong, .balance, .money, .amount { color: #fff0bb !important; }
.badge, .chip, .pill { background-color: rgba(145,16,37,.22) !important; border-color: rgba(231,180,64,.3) !important; }
hr, .divider { border-color: rgba(231,180,64,.2) !important; }
/* keep interaction smooth, with restrained motion */
*, *::before, *::after { animation-duration: .22s !important; transition-duration: .13s !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* source: assets/elegant-red-gold-blend-v3.10.70.css */
/* 888 LOTTO Player v3.10.70 — refined black/red/gold blend + smooth motion */
:root {
  --rg-black: #050607;
  --rg-charcoal: #0b0e12;
  --rg-charcoal-2: #12161c;
  --rg-red-950: #240006;
  --rg-red-900: #3b0009;
  --rg-red-800: #65000f;
  --rg-red-700: #8f0b1d;
  --rg-gold-700: #9d6813;
  --rg-gold-500: #d7a82d;
  --rg-gold-300: #f8d86e;
  --rg-cream: #fff5d7;
  --rg-muted: #cdbb91;
  --rg-ease: cubic-bezier(.22,.61,.36,1);
  --bg: var(--rg-black) !important;
  --surface: var(--rg-charcoal) !important;
  --surface-2: #13070a !important;
  --surface-3: #1d090d !important;
  --panel: #0d0f13 !important;
  --panel-2: #16070b !important;
  --card: #0d0f13 !important;
  --ink: var(--rg-cream) !important;
  --text: var(--rg-cream) !important;
  --muted: var(--rg-muted) !important;
  --gold: var(--rg-gold-500) !important;
  --gold-2: var(--rg-gold-300) !important;
  --accent: var(--rg-red-700) !important;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  background-color: var(--rg-black) !important;
  background-image:
    linear-gradient(128deg, transparent 0 15%, rgba(145,0,21,.18) 15.2% 27%, transparent 27.3% 48%, rgba(215,168,45,.055) 48.2% 48.7%, transparent 49%),
    linear-gradient(52deg, transparent 0 62%, rgba(120,0,18,.13) 62.2% 75%, transparent 75.2%),
    radial-gradient(circle at 88% 4%, rgba(158,0,24,.28), transparent 30%),
    radial-gradient(circle at 8% 84%, rgba(112,0,17,.22), transparent 34%),
    linear-gradient(180deg, #08090b 0%, #050607 100%) !important;
  background-attachment: fixed !important;
  color: var(--rg-cream) !important;
}
body::before {
  opacity: .18 !important;
  background-image:
    linear-gradient(30deg, rgba(215,168,45,.045) 12%, transparent 12.5%, transparent 87%, rgba(215,168,45,.045) 87.5%),
    linear-gradient(150deg, rgba(215,168,45,.035) 12%, transparent 12.5%, transparent 87%, rgba(215,168,45,.035) 87.5%) !important;
  background-size: 42px 72px !important;
  pointer-events: none !important;
}
header, .topbar, .app-header, .player-header, .mobile-header, .site-header {
  background:
    linear-gradient(112deg, rgba(5,6,7,.99) 0 37%, rgba(86,0,13,.96) 70%, rgba(20,1,5,.99) 100%) !important;
  border-bottom: 1px solid rgba(215,168,45,.48) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.34) !important;
}
.card, .panel, .section-card, .modal-card, .wallet-modal, .toolbar, .notice, .hero-card, .result-card, .account-card,
.quick-action, .top-action, .game-card, .lobby-card, [class*="card"], [class*="panel"] {
  color: var(--rg-cream) !important;
  border-color: rgba(215,168,45,.32) !important;
}
.card, .panel, .section-card, .modal-card, .wallet-modal, .toolbar, .notice, .hero-card, .result-card, .account-card {
  background:
    linear-gradient(145deg, rgba(18,22,28,.98) 0 58%, rgba(73,0,12,.84) 100%) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 12px 28px rgba(0,0,0,.28) !important;
}
.card::before, .panel::before, .hero-card::before, .wallet-modal::before {
  border-color: rgba(248,216,110,.18) !important;
}
button, .button, .btn, a.button, [role="button"] {
  transition: transform 220ms var(--rg-ease), box-shadow 260ms var(--rg-ease), background-color 240ms var(--rg-ease), border-color 240ms var(--rg-ease), color 180ms ease !important;
}
button:hover, .button:hover, .btn:hover, [role="button"]:hover { transform: translateY(-1px); }
button:active, .button:active, .btn:active, [role="button"]:active { transform: translateY(0) scale(.985); }
.btn-primary, .primary, button.primary, .button-primary, .active-tab, .tab.active,
.quick-action.active, .top-action.deposit, [data-action="deposit"] {
  background: linear-gradient(180deg, #ffe284 0%, #d8a92f 48%, #a96e12 100%) !important;
  color: #160905 !important;
  border-color: #ffe69a !important;
  text-shadow: 0 1px rgba(255,255,255,.24) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.58), 0 8px 18px rgba(167,104,14,.22) !important;
}
.btn-secondary, .secondary, button.secondary, .button-secondary, .top-action.withdraw, [data-action="withdraw"] {
  background: linear-gradient(180deg, #9d1529 0%, #680818 55%, #3a020a 100%) !important;
  color: #fff2cf !important;
  border-color: rgba(248,216,110,.62) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 8px 18px rgba(72,0,12,.28) !important;
}
input, select, textarea {
  background: #08090c !important;
  color: var(--rg-cream) !important;
  border-color: rgba(215,168,45,.34) !important;
}
option { background: #0b0d11 !important; color: var(--rg-cream) !important; }
::placeholder { color: #a28e68 !important; opacity: 1 !important; }
.nav-item.active, .sidebar a.active, .bottom-nav a.active, .category-tab.active {
  color: #ffe58c !important;
  background: linear-gradient(110deg, rgba(128,5,25,.68), rgba(34,2,8,.72)) !important;
  border-color: rgba(248,216,110,.5) !important;
}
.wallet-pill, .wallet-summary, .system-wallet {
  background: linear-gradient(135deg, rgba(11,13,17,.98), rgba(84,3,16,.9)) !important;
  border-color: rgba(248,216,110,.52) !important;
}
/* Smooth, deliberate motion. Do not globally speed up third-party or functional animations. */
:where(.modal, .modal-card, .wallet-modal, .drawer, .sidebar, .toast, .notification, .dropdown, .menu, .tab-panel, .page-view) {
  animation-duration: 420ms !important;
  animation-timing-function: var(--rg-ease) !important;
}
:where(.card, .panel, .game-card, .quick-action, .top-action, .nav-item, .category-tab, input, select, textarea) {
  transition-duration: 220ms !important;
  transition-timing-function: var(--rg-ease) !important;
}
/* Stop distracting endless movement while preserving functional loaders. */
:where(.shine, .shimmer, .glow-loop, .floating, .pulse:not(.loading):not(.spinner), .ambient-orb) {
  animation-duration: 5.5s !important;
  animation-timing-function: ease-in-out !important;
}
@media (max-width: 760px) {
  .wallet-pill, .system-wallet { min-width: 0 !important; }
  .card, .panel, .section-card { min-width: 0 !important; max-width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* source: assets/payout-channels-v3.10.71.css */
/* 888 LOTTO ATBP Player v3.10.71 — dedicated payout channels, refined red + gold */
:root {
  --payout-red-950: #260207;
  --payout-red-900: #3a050b;
  --payout-red-800: #570912;
  --payout-red-700: #770d19;
  --payout-red-600: #971424;
  --payout-gold-100: #fff3c7;
  --payout-gold-300: #f5d879;
  --payout-gold-500: #d9ab3a;
  --payout-gold-700: #a97816;
}

.payout-channels-view {
  position: relative;
  isolation: isolate;
}

.payout-channels-view::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -20px auto;
  height: 330px;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 216, 121, .13), transparent 34%),
    radial-gradient(circle at 18% 15%, rgba(151, 20, 36, .22), transparent 38%);
  filter: blur(4px);
}

.payout-page-heading {
  align-items: center;
}

.payout-page-heading h1,
.payout-channel-hero h2,
.payout-manager-panel h2,
.payout-saved-panel h2 {
  color: var(--payout-gold-100);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .42);
}

.payout-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--payout-gold-300);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.payout-security-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(245, 216, 121, .34);
  border-radius: 999px;
  color: var(--payout-gold-300);
  background: linear-gradient(180deg, rgba(119, 13, 25, .76), rgba(58, 5, 11, .9));
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 10px 28px rgba(38,2,7,.24);
  font-size: 12px;
  font-weight: 850;
}

.payout-security-seal svg,
.payout-category-tab svg,
.payout-channel-hero-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payout-channel-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border-color: rgba(245, 216, 121, .25) !important;
  background:
    linear-gradient(125deg, rgba(119,13,25,.94), rgba(58,5,11,.96) 62%, rgba(38,2,7,.98)) !important;
  box-shadow: 0 22px 54px rgba(38,2,7,.26), inset 0 1px rgba(255,244,205,.06);
}

.payout-channel-hero::after {
  content: "888";
  position: absolute;
  right: 26px;
  color: rgba(245, 216, 121, .045);
  font-size: clamp(64px, 10vw, 118px);
  font-weight: 950;
  letter-spacing: -.08em;
}

.payout-channel-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(245, 216, 121, .36);
  border-radius: 18px;
  color: var(--payout-gold-300);
  background: linear-gradient(145deg, rgba(245,216,121,.15), rgba(245,216,121,.03));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.25);
}

.payout-channel-hero > div:last-child {
  position: relative;
  z-index: 1;
}

.payout-channel-hero h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.4vw, 29px);
}

.payout-channel-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,243,199,.72);
  line-height: 1.6;
}

.payout-manager-panel,
.payout-saved-panel {
  border-color: rgba(245,216,121,.18) !important;
  background:
    linear-gradient(145deg, rgba(70,7,15,.86), rgba(30,5,9,.94)) !important;
  box-shadow: 0 22px 50px rgba(20,0,4,.18), inset 0 1px rgba(255,255,255,.035);
}

.payout-manager-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.payout-manager-heading h2,
.payout-manager-heading p {
  margin-top: 0;
}

.payout-category-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(245,216,121,.16);
  border-radius: 15px;
  background: rgba(15,2,5,.44);
}

.payout-category-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(255,243,199,.65);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.payout-category-tab:hover {
  color: var(--payout-gold-100);
  transform: translateY(-1px);
}

.payout-category-tab.active {
  border-color: rgba(245,216,121,.38);
  color: var(--payout-gold-100);
  background: linear-gradient(180deg, var(--payout-red-600), var(--payout-red-800));
  box-shadow: 0 8px 22px rgba(85,4,16,.32), inset 0 1px rgba(255,255,255,.07);
}

.payout-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.payout-channel-grid-banks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payout-channel-card {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgba(245,216,121,.15);
  border-radius: 17px;
  color: rgba(255,243,199,.78);
  background: linear-gradient(145deg, rgba(70,7,15,.62), rgba(22,3,6,.78));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.payout-channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,216,121,.32);
  background: linear-gradient(145deg, rgba(119,13,25,.68), rgba(37,3,8,.88));
}

.payout-channel-card.active {
  border-color: rgba(245,216,121,.62);
  background: linear-gradient(145deg, rgba(151,20,36,.92), rgba(87,9,18,.96));
  box-shadow: 0 13px 30px rgba(50,1,9,.36), inset 0 1px rgba(255,244,205,.08);
}

.payout-channel-logo {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(245,216,121,.2);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
}

.payout-channel-logo img {
  display: block;
  width: 82%;
  max-height: 28px;
  object-fit: contain;
}

.payout-channel-monogram {
  color: var(--payout-gold-100);
  background: linear-gradient(145deg, #8d1221, #3a050b);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .02em;
}

.payout-channel-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.payout-channel-copy strong {
  overflow: hidden;
  color: var(--payout-gold-100);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payout-channel-copy small {
  color: rgba(255,243,199,.55);
  font-size: 11px;
}

.payout-channel-check {
  display: grid;
  place-items: center;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(245,216,121,.22);
  border-radius: 50%;
  color: transparent;
  background: rgba(10,1,3,.28);
  font-size: 11px;
  font-weight: 950;
}

.payout-channel-card.active .payout-channel-check {
  border-color: var(--payout-gold-300);
  color: var(--payout-red-900);
  background: linear-gradient(180deg, var(--payout-gold-100), var(--payout-gold-500));
}

.payout-bank-note {
  margin: 13px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--payout-gold-500);
  border-radius: 0 10px 10px 0;
  color: rgba(255,243,199,.65);
  background: rgba(245,216,121,.06);
  font-size: 12px;
  line-height: 1.55;
}

.payout-account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.payout-account-fields .field {
  margin-bottom: 0;
  padding: 16px;
  border: 1px solid rgba(245,216,121,.13);
  border-radius: 16px;
  background: rgba(13,2,4,.3);
}

.payout-account-fields label {
  color: var(--payout-gold-300) !important;
  font-weight: 850;
}

.payout-account-fields .input {
  border-color: rgba(245,216,121,.23) !important;
  color: var(--payout-gold-100) !important;
  background: rgba(23,2,6,.72) !important;
}

.payout-account-fields .input:focus {
  border-color: rgba(245,216,121,.68) !important;
  box-shadow: 0 0 0 3px rgba(217,171,58,.12) !important;
}

.payout-account-fields small {
  color: rgba(255,243,199,.48) !important;
}

.payout-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.payout-form-footer p {
  margin: 0;
  color: rgba(255,243,199,.55);
  font-size: 12px;
  line-height: 1.5;
}

.payout-form-footer p span {
  color: var(--payout-gold-500);
}

.payout-save-button,
.payout-channels-view .button-primary {
  border-color: rgba(245,216,121,.58) !important;
  color: var(--payout-gold-100) !important;
  background: linear-gradient(180deg, #a4192d, #710c19) !important;
  box-shadow: 0 11px 28px rgba(61,2,12,.35), inset 0 1px rgba(255,255,255,.08) !important;
}

.payout-save-button:hover,
.payout-channels-view .button-primary:hover {
  background: linear-gradient(180deg, #b91f35, #830f1f) !important;
  transform: translateY(-1px);
}

.payout-method-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(245,216,121,.24);
  border-radius: 999px;
  color: var(--payout-gold-300);
  background: rgba(119,13,25,.36);
  font-size: 12px;
  font-weight: 850;
}

.payout-saved-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payout-saved-group {
  padding: 14px;
  border: 1px solid rgba(245,216,121,.13);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(72,7,15,.38), rgba(13,2,4,.48));
}

.payout-saved-group-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.payout-saved-group-heading > div {
  display: grid;
  gap: 2px;
}

.payout-saved-group-heading strong {
  color: var(--payout-gold-100);
  font-size: 14px;
}

.payout-saved-group-heading small {
  color: rgba(255,243,199,.48);
  font-size: 11px;
}

.payout-saved-group-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(245,216,121,.26);
  border-radius: 11px;
  color: var(--payout-gold-300);
  background: rgba(119,13,25,.5);
  font-size: 12px;
  font-weight: 950;
}

.payout-saved-group .saved-methods {
  display: grid;
  gap: 9px;
}

.payout-saved-method {
  gap: 9px;
  padding: 11px !important;
  border-color: rgba(245,216,121,.13) !important;
  border-radius: 14px !important;
  background: rgba(16,2,5,.42) !important;
}

.payout-saved-method .payment-method-brand-logo,
.payout-saved-method .payment-method-brand-fallback {
  width: 36px;
  height: 36px;
}

.payout-saved-method .saved-method-title {
  color: var(--payout-gold-100);
}

.payout-remove-button {
  min-height: 32px !important;
  padding: 5px 9px !important;
  border-color: rgba(245,216,121,.25) !important;
  color: var(--payout-gold-300) !important;
  background: rgba(119,13,25,.48) !important;
  font-size: 11px !important;
}

.payout-empty-card {
  border-style: dashed !important;
  border-color: rgba(245,216,121,.14) !important;
  color: rgba(255,243,199,.42) !important;
  background: rgba(9,1,3,.2) !important;
}

.account-center-tabs:has([data-account-center-tab="payout"]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-modal-hosted.payout-channels-view {
  padding-top: 4px;
}

.account-modal-hosted .payout-page-heading {
  display: none;
}

.account-modal-hosted .payout-channel-hero {
  margin-top: 0;
}

@media (max-width: 980px) {
  .payout-channel-grid-banks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payout-saved-groups { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .payout-page-heading { align-items: flex-start; }
  .payout-security-seal { display: none; }
  .payout-channel-hero { align-items: flex-start; padding: 16px !important; }
  .payout-channel-hero::after { right: 10px; font-size: 70px; }
  .payout-channel-hero-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; }
  .payout-manager-panel, .payout-saved-panel { padding: 14px !important; }
  .payout-manager-heading { align-items: stretch; flex-direction: column; }
  .payout-category-tabs { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payout-category-tab { min-width: 0; padding-inline: 8px; }
  .payout-channel-grid,
  .payout-channel-grid-banks { grid-template-columns: 1fr; gap: 9px; }
  .payout-channel-card { min-height: 66px; padding: 10px; border-radius: 14px; }
  .payout-channel-logo { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
  .payout-account-fields { grid-template-columns: 1fr; gap: 10px; }
  .payout-account-fields .field { padding: 13px; }
  .payout-form-footer { align-items: stretch; flex-direction: column; }
  .payout-save-button { width: 100%; }
  .payout-saved-groups { grid-template-columns: 1fr; }
  .account-center-tabs:has([data-account-center-tab="payout"]) { grid-template-columns: 1fr; }
  #accountCenterModal .account-center-tabs:has([data-account-center-tab="payout"]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #accountCenterModal .account-center-tab { min-width: 0; padding-inline: 5px !important; font-size: 10.5px !important; }
}


/* source: assets/player-red-gold-system-v3.10.72.css */
/* 888 LOTTO ATBP Player v3.10.72 — dynamic OptekPay payout channel UI + system-wide red/gold polish */
:root {
  --rg-red-950:#210207;
  --rg-red-900:#35040a;
  --rg-red-850:#47060e;
  --rg-red-800:#5d0913;
  --rg-red-700:#7d0e1c;
  --rg-red-600:#a3162a;
  --rg-red-500:#bd1f37;
  --rg-gold-050:#fff9df;
  --rg-gold-100:#fff0b2;
  --rg-gold-300:#f4d36f;
  --rg-gold-500:#d9a933;
  --rg-gold-700:#9c6f12;
}

/* Header controls: red surface, gold type and icons. */
.topbar :is(.button,.icon-button,.notification-button,.topbar-sidebar-toggle),
.header-brand-home,
.topbar-wallet-card,
.topbar-wallet-actions :is(button,a),
.games-wallet-actions :is(button,a),
.wallet-refresh-button {
  color:var(--rg-gold-100)!important;
  border-color:rgba(244,211,111,.36)!important;
  background:linear-gradient(180deg,var(--rg-red-600),var(--rg-red-800))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.09),0 10px 24px rgba(48,1,9,.28)!important;
}
.topbar :is(.button,.icon-button,.notification-button,.topbar-sidebar-toggle):hover,
.header-brand-home:hover,
.topbar-wallet-actions :is(button,a):hover,
.games-wallet-actions :is(button,a):hover {
  color:var(--rg-gold-050)!important;
  border-color:rgba(244,211,111,.72)!important;
  background:linear-gradient(180deg,var(--rg-red-500),var(--rg-red-700))!important;
  transform:translateY(-1px);
}
.topbar svg,.header-brand-home svg,.games-wallet-actions svg {stroke:currentColor!important;}

/* All tab systems use the same elegant red/gold language. */
:is(.auth-tab,.account-center-tab,.wallet-action-tab,.wallet-inner-tab,.payout-category-tab,.lobby-category-button,.mobile-bottom-nav-button,.nav-button) {
  color:rgba(255,240,178,.78)!important;
  border-color:rgba(244,211,111,.17)!important;
  background:linear-gradient(180deg,rgba(77,6,15,.90),rgba(42,3,8,.94))!important;
}
:is(.auth-tab,.account-center-tab,.wallet-action-tab,.wallet-inner-tab,.payout-category-tab,.lobby-category-button,.mobile-bottom-nav-button,.nav-button):hover {
  color:var(--rg-gold-050)!important;
  border-color:rgba(244,211,111,.42)!important;
  background:linear-gradient(180deg,rgba(126,13,29,.95),rgba(70,5,14,.97))!important;
}
:is(.auth-tab,.account-center-tab,.wallet-action-tab,.wallet-inner-tab,.payout-category-tab,.lobby-category-button,.mobile-bottom-nav-button,.nav-button).active,
:is(.auth-tab,.account-center-tab,.wallet-action-tab,.wallet-inner-tab,.payout-category-tab,.lobby-category-button,.mobile-bottom-nav-button,.nav-button)[aria-selected="true"] {
  color:var(--rg-gold-050)!important;
  border-color:rgba(244,211,111,.64)!important;
  background:linear-gradient(180deg,var(--rg-red-500),var(--rg-red-700))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.12),0 9px 24px rgba(60,1,11,.34)!important;
}

/* Every modal/dialog receives the same deep red shell. */
:is(.modal-card,.ui-dialog-card,.auth-card,.account-center-modal-card,.wallet-actions-modal-card) {
  color:var(--rg-gold-100)!important;
  border-color:rgba(244,211,111,.30)!important;
  background:
    radial-gradient(circle at 92% 3%,rgba(189,31,55,.22),transparent 35%),
    linear-gradient(145deg,rgba(74,6,15,.985),rgba(28,2,6,.99))!important;
  box-shadow:0 34px 90px rgba(10,0,2,.58),inset 0 1px rgba(255,255,255,.055)!important;
}
:is(.modal-card,.ui-dialog-card,.auth-card) :is(h1,h2,h3,label,.field-label,strong) {color:var(--rg-gold-050)!important;}
:is(.modal-card,.ui-dialog-card,.auth-card) :is(.muted,p,small) {color:rgba(255,240,178,.67);}
:is(.modal-card,.ui-dialog-card,.auth-card) :is(.input,.textarea,select) {
  color:var(--rg-gold-050)!important;
  border-color:rgba(244,211,111,.24)!important;
  background:rgba(25,1,5,.76)!important;
}
:is(.modal-card,.ui-dialog-card,.auth-card) :is(.input,.textarea,select):focus {
  border-color:var(--rg-gold-300)!important;
  box-shadow:0 0 0 3px rgba(244,211,111,.12)!important;
}

/* Dynamic payout dropdown. */
.payout-channel-selector {position:relative;z-index:8;}
.payout-dropdown-shell {position:relative;}
.payout-dropdown-trigger {
  appearance:none;width:100%;min-height:82px;padding:13px 16px;display:grid;
  grid-template-columns:48px minmax(0,1fr) auto 24px;align-items:center;gap:13px;
  border:1px solid rgba(244,211,111,.34);border-radius:18px;text-align:left;cursor:pointer;
  color:var(--rg-gold-050);background:linear-gradient(145deg,rgba(149,18,37,.92),rgba(70,5,14,.98));
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 14px 35px rgba(35,0,6,.28);
  transition:.2s ease;
}
.payout-dropdown-trigger:hover,.payout-dropdown-trigger[aria-expanded="true"] {border-color:rgba(244,211,111,.75);transform:translateY(-1px);background:linear-gradient(145deg,rgba(181,25,47,.97),rgba(93,8,18,.99));}
.payout-dropdown-trigger-icon {display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(244,211,111,.35);border-radius:15px;color:var(--rg-gold-050);background:rgba(35,1,7,.32);font-weight:950;}
.payout-dropdown-trigger-copy {display:flex;flex-direction:column;gap:4px;min-width:0;}
.payout-dropdown-trigger-copy small {color:rgba(255,240,178,.62);font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;}
.payout-dropdown-trigger-copy strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--rg-gold-050);font-size:16px;}
.payout-dropdown-count {display:grid;place-items:center;min-width:32px;height:28px;padding:0 8px;border:1px solid rgba(244,211,111,.28);border-radius:999px;color:var(--rg-gold-300);background:rgba(25,1,5,.45);font-size:12px;font-weight:900;}
.payout-dropdown-chevron {color:var(--rg-gold-300);font-size:21px;transition:transform .18s ease;}
.payout-dropdown-trigger[aria-expanded="true"] .payout-dropdown-chevron {transform:rotate(180deg);}
.payout-channel-dropdown {position:absolute;z-index:40;top:calc(100% + 9px);left:0;right:0;padding:12px;border:1px solid rgba(244,211,111,.32);border-radius:18px;background:linear-gradient(155deg,rgba(69,5,14,.995),rgba(24,1,5,.998));box-shadow:0 24px 70px rgba(8,0,2,.68);}
.payout-channel-search {display:flex;align-items:center;gap:9px;margin-bottom:10px;padding:0 12px;border:1px solid rgba(244,211,111,.23);border-radius:12px;background:rgba(17,1,4,.74);color:var(--rg-gold-300);}
.payout-channel-search input {width:100%;height:42px;border:0!important;outline:0;background:transparent!important;color:var(--rg-gold-050)!important;font:inherit;}
.payout-channel-search input::placeholder {color:rgba(255,240,178,.42);}
.payout-channel-option-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:390px;overflow:auto;padding:2px;scrollbar-color:var(--rg-red-600) rgba(20,1,4,.5);}
.payout-channel-option {appearance:none;display:grid;grid-template-columns:44px minmax(0,1fr) 22px;align-items:center;gap:11px;min-height:68px;padding:10px;border:1px solid rgba(244,211,111,.16);border-radius:14px;text-align:left;color:var(--rg-gold-100);background:linear-gradient(145deg,rgba(84,7,17,.72),rgba(31,2,7,.92));cursor:pointer;transition:.18s ease;}
.payout-channel-option:hover,.payout-channel-option.active {border-color:rgba(244,211,111,.62);background:linear-gradient(145deg,rgba(176,23,45,.94),rgba(88,7,17,.98));transform:translateY(-1px);box-shadow:0 10px 25px rgba(33,0,6,.28);}
.payout-channel-option-logo {display:grid;place-items:center;width:44px;height:44px;border-radius:13px;overflow:hidden;background:rgba(255,255,255,.94);border:1px solid rgba(244,211,111,.22);}
.payout-channel-option-logo img {width:84%;max-height:28px;object-fit:contain;}
.payout-brand-monogram {display:grid;place-items:center;color:var(--rg-gold-050);background:linear-gradient(145deg,var(--rg-red-500),var(--rg-red-850));font-weight:950;}
.payout-channel-option-copy {display:flex;flex-direction:column;gap:4px;min-width:0;}
.payout-channel-option-copy strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--rg-gold-050);font-size:13px;}
.payout-channel-option-copy small {color:rgba(255,240,178,.58);font-size:10px;}
.payout-channel-option-check {opacity:0;color:var(--rg-gold-050);font-weight:950;}.payout-channel-option.active .payout-channel-option-check{opacity:1;}
.payout-channel-loading,.payout-channel-empty {grid-column:1/-1;padding:24px;text-align:center;border:1px dashed rgba(244,211,111,.22);border-radius:13px;color:rgba(255,240,178,.65);}
.payout-channel-status {margin:12px 0 0;padding:10px 12px;border-left:3px solid var(--rg-gold-500);border-radius:0 10px 10px 0;color:rgba(255,240,178,.72);background:rgba(45,3,10,.58);font-size:12px;}
.payout-channel-status.success {border-left-color:#65d79a;color:#bdf5d5}.payout-channel-status.error{border-left-color:#ff647c;color:#ffc5ce}.payout-channel-status.loading{animation:payoutPulse 1.4s ease-in-out infinite alternate}@keyframes payoutPulse{to{opacity:.62}}

/* Saved destinations become branded digital payout cards. */
.payout-saved-group .saved-methods {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
.payout-digital-card {--card-a:#a3162a;--card-b:#35040a;position:relative;isolation:isolate;overflow:hidden;min-height:220px;padding:20px;border:1px solid rgba(244,211,111,.36);border-radius:22px;color:var(--rg-gold-050);background:radial-gradient(circle at 90% 10%,rgba(255,232,145,.18),transparent 34%),linear-gradient(135deg,var(--card-a),var(--card-b));box-shadow:0 20px 45px rgba(24,0,5,.38),inset 0 1px rgba(255,255,255,.11);}
.payout-digital-card.visual-0{--card-a:#1e5c9f;--card-b:#071d3d}.payout-digital-card.visual-1{--card-a:#278a6c;--card-b:#063a2e}.payout-digital-card.visual-2{--card-a:#8c1730;--card-b:#35040a}.payout-digital-card.visual-3{--card-a:#703ba2;--card-b:#26103d}.payout-digital-card.visual-4{--card-a:#a66518;--card-b:#422306}.payout-digital-card.visual-5{--card-a:#9c245a;--card-b:#3a0920}.payout-digital-card.visual-6{--card-a:#2f6678;--card-b:#0b2b36}.payout-digital-card.visual-7{--card-a:#704b23;--card-b:#281807}
.payout-digital-card.brand-gcash{--card-a:#1669c7;--card-b:#052c68}.payout-digital-card.brand-maya{--card-a:#1c8e5e;--card-b:#06422e}.payout-digital-card.brand-gotyme{--card-a:#5531a7;--card-b:#1b0b49}.payout-digital-card.brand-coinsph{--card-a:#df6c22;--card-b:#67300d}
.payout-digital-card-watermark {position:absolute;z-index:-1;right:-6px;bottom:-30px;color:rgba(255,255,255,.075);font-size:104px;font-weight:950;letter-spacing:-.08em;}
.payout-digital-card-header {display:flex;align-items:center;gap:10px;}
.payout-digital-card-logo {display:grid;place-items:center;width:48px;height:48px;border-radius:15px;overflow:hidden;border:1px solid rgba(255,240,178,.42);background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(0,0,0,.18);}
.payout-digital-card-logo img{width:84%;max-height:29px;object-fit:contain}.payout-digital-card-logo.payout-brand-monogram{color:var(--rg-gold-050);background:rgba(35,1,7,.35)}
.payout-digital-card-type {padding:6px 9px;border:1px solid rgba(255,240,178,.30);border-radius:999px;background:rgba(20,1,4,.24);color:var(--rg-gold-100);font-size:10px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;}
.payout-digital-card-remove {margin-left:auto;padding:7px 10px;border:1px solid rgba(255,240,178,.28);border-radius:10px;color:var(--rg-gold-100);background:rgba(20,1,4,.26);font:inherit;font-size:10px;font-weight:850;cursor:pointer}.payout-digital-card-remove:hover{background:rgba(40,1,8,.55);border-color:rgba(255,240,178,.62)}
.payout-digital-card-provider {margin-top:26px;color:rgba(255,249,223,.78);font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.09em;}
.payout-digital-card-number {margin-top:7px;color:#fff9df;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:clamp(17px,2vw,23px);font-weight:850;letter-spacing:.075em;word-break:break-word;text-shadow:0 2px 10px rgba(0,0,0,.25);}
.payout-digital-card-footer {display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-top:25px;}.payout-digital-card-footer>span:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.payout-digital-card-footer small{color:rgba(255,249,223,.55);font-size:8px;font-weight:900;letter-spacing:.14em}.payout-digital-card-footer strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff9df;font-size:12px;text-transform:uppercase}.payout-digital-card-live{display:flex;align-items:center;gap:5px;color:#d5ffe7;font-size:9px;font-weight:950;letter-spacing:.11em}.payout-digital-card-live i{width:7px;height:7px;border-radius:50%;background:#55e093;box-shadow:0 0 0 4px rgba(85,224,147,.13)}

@media(max-width:820px){.payout-channel-option-list,.payout-saved-group .saved-methods{grid-template-columns:1fr}.payout-channel-dropdown{position:fixed;left:10px;right:10px;top:auto;bottom:calc(74px + env(safe-area-inset-bottom));max-height:65dvh}.payout-channel-option-list{max-height:48dvh}.payout-dropdown-trigger{grid-template-columns:44px minmax(0,1fr) auto 20px}.payout-digital-card{min-height:205px}}
@media(max-width:520px){.payout-manager-heading{align-items:stretch}.payout-category-tabs{width:100%}.payout-dropdown-trigger{min-height:74px;padding:10px 12px}.payout-digital-card{padding:17px;border-radius:19px}.payout-digital-card-number{font-size:17px}.topbar-wallet-actions :is(button,a),.games-wallet-actions :is(button,a){color:var(--rg-gold-100)!important}}


/* source: assets/payout-safe-hotfix-v3.10.74.css */
/* Player v3.10.74 safe hotfix
   Deliberately scoped to Payout Channels. It does not modify portal, sidebar,
   main-shell, game page, loader, topbar positioning, or application layout. */

#view-payout-channels .payout-manager-panel,
#view-payout-channels .payout-channel-selector,
#view-payout-channels .payout-channel-panel,
#view-payout-channels .payout-dropdown-shell {
  overflow: visible !important;
  contain: none !important;
}

/* Desktop dropdown stays in normal document flow, so all OptekPay channels
   remain reachable and the saved-card section is pushed down instead of covered. */
@media (min-width: 821px) {
  #view-payout-channels .payout-channel-dropdown {
    position: relative !important;
    inset: auto !important;
    margin-top: 10px !important;
    z-index: 12 !important;
    max-height: none !important;
    overflow: visible !important;
    background: linear-gradient(155deg, rgba(27,17,14,.99), rgba(9,9,8,.995)) !important;
    border-color: rgba(227,200,102,.28) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.34) !important;
  }
  #view-payout-channels .payout-channel-option-list {
    max-height: 430px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scroll-padding-bottom: 22px;
    padding: 3px 8px 22px 3px !important;
    scrollbar-width: auto;
    scrollbar-color: #9f1730 #16110f;
  }
}

#view-payout-channels .payout-channel-option-list::-webkit-scrollbar { width: 12px; }
#view-payout-channels .payout-channel-option-list::-webkit-scrollbar-track { background: #16110f; border-radius: 999px; }
#view-payout-channels .payout-channel-option-list::-webkit-scrollbar-thumb {
  background: linear-gradient(#a91a34, #721020);
  border: 3px solid #16110f;
  border-radius: 999px;
}

/* Professional black/red/gold balance only inside the payout page. */
#view-payout-channels .payout-manager-panel,
#view-payout-channels .payout-saved-panel {
  background: linear-gradient(150deg, rgba(31,19,17,.97), rgba(12,11,10,.99)) !important;
  border-color: rgba(227,200,102,.20) !important;
}
#view-payout-channels .payout-channel-hero {
  background: linear-gradient(108deg, rgba(112,13,28,.86), rgba(29,17,14,.97) 58%, rgba(9,9,8,.99)) !important;
}
#view-payout-channels .payout-dropdown-trigger {
  background: linear-gradient(135deg, rgba(126,15,31,.92), rgba(29,17,14,.99)) !important;
  border-color: rgba(227,200,102,.34) !important;
}
#view-payout-channels .payout-dropdown-trigger:hover,
#view-payout-channels .payout-dropdown-trigger[aria-expanded="true"] {
  background: linear-gradient(135deg, #a91a34, #3a1114) !important;
  border-color: rgba(244,229,167,.62) !important;
}
#view-payout-channels .payout-channel-option {
  background: linear-gradient(145deg, rgba(31,22,18,.98), rgba(12,11,10,.99)) !important;
  border-color: rgba(227,200,102,.18) !important;
}
#view-payout-channels .payout-channel-option:hover,
#view-payout-channels .payout-channel-option.active {
  background: linear-gradient(145deg, rgba(128,16,32,.92), rgba(35,17,15,.99)) !important;
  border-color: rgba(244,229,167,.58) !important;
}

/* Actual provider logo where available; local bank/e-wallet graphic on failure. */
#view-payout-channels .payout-channel-option-logo,
#view-payout-channels .payout-digital-card-logo {
  padding: 5px !important;
  background: #fffaf0 !important;
  border-color: rgba(227,200,102,.50) !important;
}
#view-payout-channels .payout-channel-option-logo img,
#view-payout-channels .payout-digital-card-logo img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 7px;
}
#view-payout-channels .payout-brand-monogram { display: none !important; }
#view-payout-channels .payout-channel-search {
  background: #0b0a09 !important;
  border-color: rgba(227,200,102,.25) !important;
}
#view-payout-channels .payout-saved-group .saved-methods { align-items: start !important; }

/* Keep the existing safe mobile bottom-sheet behaviour. */
@media (max-width: 820px) {
  #view-payout-channels .payout-channel-dropdown {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(74px + env(safe-area-inset-bottom)) !important;
    z-index: 180 !important;
    max-height: 70dvh !important;
    overflow: hidden !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }
  #view-payout-channels .payout-channel-option-list {
    grid-template-columns: 1fr !important;
    max-height: 54dvh !important;
    overflow-y: auto !important;
    padding-bottom: 22px !important;
  }
}


/* source: assets/modal-performance-v3.10.84.css */
/* 888 LOTTO Player v3.10.84 — fast modal rendering.
   Keeps modal motion GPU-friendly and removes expensive blur/filter animation. */
.modal,
.ui-dialog-overlay,
.auth-screen,
.support-popup-view {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.modal:not(.hidden),
.ui-dialog-overlay:not(.hidden),
.auth-screen:not(.hidden),
.support-popup-view[aria-hidden="false"] {
  animation: playerOverlayFastIn .09s ease-out both !important;
}

.modal:not(.hidden) .modal-card,
.account-center-modal:not(.hidden) .account-center-modal-card,
.support-popup-view[aria-hidden="false"] .support-popup-card,
.ui-dialog-overlay:not(.hidden) .ui-dialog-card,
.auth-screen:not(.hidden) .auth-card {
  animation: playerModalFastIn .12s cubic-bezier(.2,.8,.2,1) both !important;
  filter: none !important;
  -webkit-filter: none !important;
  backface-visibility: hidden;
  transform-origin: 50% 42%;
  will-change: transform, opacity;
}

.modal-card,
.wallet-actions-modal-card,
.account-center-modal-card,
.ui-dialog-card,
.auth-card,
.support-popup-card {
  content-visibility: visible !important;
}

@keyframes playerOverlayFastIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes playerModalFastIn {
  from {
    opacity: .35;
    transform: translate3d(0, 5px, 0) scale(.995);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 860px) {
  .modal { padding: 10px !important; }
  .modal:not(.hidden) .modal-card,
  .account-center-modal:not(.hidden) .account-center-modal-card {
    animation-duration: .1s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal:not(.hidden),
  .modal:not(.hidden) .modal-card,
  .account-center-modal:not(.hidden) .account-center-modal-card,
  .support-popup-view[aria-hidden="false"],
  .support-popup-view[aria-hidden="false"] .support-popup-card,
  .ui-dialog-overlay:not(.hidden),
  .ui-dialog-overlay:not(.hidden) .ui-dialog-card,
  .auth-screen:not(.hidden),
  .auth-screen:not(.hidden) .auth-card {
    animation: none !important;
    transition: none !important;
  }
}


/* source: v3.10.85 overall performance overrides */
/* Faster first paint and lower paint/compositing cost on phones. */
html { scroll-behavior: auto; }
body { text-rendering: optimizeSpeed; -webkit-font-smoothing: antialiased; }
img { content-visibility: auto; }
button, [role="button"], a, input, select { touch-action: manipulation; }

/* Do not keep permanent compositor layers after short UI transitions. */
.compact-game-card,
.featured-game-card,
.modal-card,
.wallet-actions-modal-card,
.account-center-modal-card,
.ui-dialog-card,
.auth-card,
.support-popup-card { will-change: auto !important; }

/* Isolate long lists/sections so off-screen layout work is skipped. */
.game-provider-section,
.game-showcase-section,
.lobby-results-section,
.transaction-list,
.notification-list,
.referral-list,
.commission-history-list {
  content-visibility: auto;
  contain-intrinsic-size: 1px 480px;
}

@media (max-width: 860px), (hover: none) {
  /* Fixed backgrounds and reveal/hover motion are expensive on mobile GPUs. */
  body, .portal-screen, .content, .game-lobby { background-attachment: scroll !important; }
  .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
  .compact-game-card,
  .featured-game-card,
  .lobby-result-card,
  .lobby-category-button {
    transform: none !important;
    will-change: auto !important;
  }
  .compact-game-card:hover,
  .featured-game-card:hover,
  .lobby-category-button:hover { transform: none !important; }
  .mobile-bottom-nav,
  .topbar,
  .sidebar,
  .modal,
  .ui-dialog-overlay,
  .support-popup-view,
  .pwa-install-help-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .panel,
  .featured-game-card,
  .compact-game-card,
  .lobby-result-card {
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* assets/mobile-sidebar-v3.10.97.css */
/* 888 LOTTO Player v3.10.97 — mobile sidebar usability hotfix */
@media (max-width: 860px) {
  .sidebar {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  .sidebar-header {
    flex: 0 0 auto !important;
    padding-bottom: 6px !important;
  }

  .sidebar-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scrollbar-gutter: stable !important;
    padding-bottom: 18px !important;
  }

  .sidebar-footer {
    flex: 0 0 auto !important;
    margin-top: 6px !important;
    padding-top: 8px !important;
    padding-bottom: 0 !important;
  }

  .sidebar-nav .nav-button {
    flex-shrink: 0 !important;
  }

  /* Keep the final account/commission items reachable on shorter phones. */
  @media (max-height: 740px) {
    .sidebar-nav { gap: 3px !important; }
    .sidebar-nav .nav-button { min-height: 40px !important; padding-block: 7px !important; }
    .sidebar-nav .nav-section-label { margin-top: 7px !important; margin-bottom: 2px !important; }
    .sidebar-footer { display: none !important; }
  }
}

/* assets/player-handbook-v3.10.99.css */

/* v3.10.99 — in-app Player Handbook */
#view-handbook{padding-bottom:100px}.player-handbook-note{display:grid;gap:6px;margin-bottom:16px;padding:14px 16px;border:1px solid rgba(240,197,73,.3);border-radius:16px;background:linear-gradient(135deg,rgba(240,197,73,.13),rgba(121,14,28,.18));color:#fff3c8}.player-handbook-note strong{font-size:14px}.player-handbook-note span{font-size:12px;line-height:1.55;color:#dbcda6}
.player-handbook-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.player-handbook-grid article{position:relative;padding:17px;border:1px solid rgba(233,190,67,.17);border-radius:17px;background:linear-gradient(160deg,rgba(55,12,18,.9),rgba(17,16,15,.96));box-shadow:0 10px 28px rgba(0,0,0,.16)}.player-handbook-grid article>span{position:absolute;top:13px;right:13px;display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:rgba(241,196,63,.12);border:1px solid rgba(241,196,63,.25);color:#f0c63f;font-size:10px;font-weight:900}.player-handbook-grid h2{margin:0 42px 8px 0;font-size:15px;color:#fff0bd}.player-handbook-grid p{margin:0;color:#cdbd93;font-size:12px;line-height:1.6}.player-handbook-reference{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}.player-handbook-reference>div{padding:12px;border:1px solid rgba(233,190,67,.14);border-radius:13px;background:rgba(14,14,15,.88)}.player-handbook-reference span,.player-handbook-reference strong{display:block}.player-handbook-reference span{font-size:9px;text-transform:uppercase;color:#a99970}.player-handbook-reference strong{margin-top:5px;font-size:11px;color:#fff0bc}
@media(max-width:760px){.player-handbook-grid,.player-handbook-reference{grid-template-columns:1fr}.player-handbook-grid article{padding:15px}.player-handbook-grid h2{font-size:14px}.player-handbook-grid p{font-size:11px}}

/* assets/player-system-manual-v3.10.100.css */

/* v3.10.100 — full openable/downloadable Player manual */
.player-manual-heading{align-items:flex-start;gap:16px}
.player-manual-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.player-manual-actions .button{text-decoration:none;white-space:nowrap}
.player-manual-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:16px;padding:15px 16px;border:1px solid rgba(240,197,73,.22);border-radius:16px;background:linear-gradient(145deg,rgba(100,12,26,.34),rgba(15,15,16,.94))}
.player-manual-summary span{display:block;color:#d7b447;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.player-manual-summary strong{display:block;margin-top:4px;color:#fff0bd;font-size:15px}.player-manual-summary p{margin:6px 0 0;max-width:760px;color:#cdbd93;font-size:11px;line-height:1.55}
.player-manual-meta{display:grid;grid-template-columns:auto auto;gap:4px 9px;padding:10px 12px;border:1px solid rgba(240,197,73,.14);border-radius:12px;background:rgba(10,10,11,.5)}.player-manual-meta small{color:#958761;font-size:8px;text-transform:uppercase}.player-manual-meta b{color:#fff0bc;font-size:10px;text-align:right}
@media(max-width:760px){.player-manual-heading{display:grid}.player-manual-actions{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch}.player-manual-actions .button{width:100%;justify-content:center;text-align:center}.player-manual-summary{grid-template-columns:1fr}.player-manual-meta{width:100%}}
@media(max-width:440px){.player-manual-actions{grid-template-columns:1fr}}

/* assets/payment-channel-performance-v3.10.101.css */
/* 888 Lotto Player v3.10.101 - payment channel policy + smoother rendering */
.gateway-payment-method[hidden]{display:none!important}.gateway-payment-method:disabled{pointer-events:none;opacity:.42}.view:not(.active){display:none!important}.history-list,.transaction-list,.payout-channel-options,.commission-history-list{content-visibility:auto;contain-intrinsic-size:1px 520px}.modal-card,.wallet-modal-card,.account-center-card,.game-deposit-modal-card{transform:translateZ(0);backface-visibility:hidden}.gateway-payment-logo-wrap img,.payout-brand-logo img{decoding:auto}.gateway-payment-method,.button,.sidebar-nav button,.mobile-bottom-nav button{touch-action:manipulation}@media(max-width:760px){.gateway-payment-method-options{grid-template-columns:repeat(2,minmax(0,1fr))}.gateway-payment-method{min-width:0}}@media(prefers-reduced-motion:reduce){.gateway-payment-method,.modal-card,.wallet-modal-card,.account-center-card{transition:none!important}}

/* assets/payment-wallet-handoff-v3.10.102.css */
.wallet-payment-method-instructions {
  margin: 0.9rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(244, 198, 77, 0.34);
  border-radius: 14px;
  background: rgba(20, 16, 18, 0.92);
  color: #f8e9bd;
  line-height: 1.48;
}

.wallet-payment-method-instructions strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffd96e;
  font-size: 1rem;
}

.wallet-payment-method-instructions p,
.wallet-payment-method-instructions ol {
  margin: 0;
}

.wallet-payment-method-instructions ol {
  padding-left: 1.2rem;
}

.wallet-payment-method-instructions li + li {
  margin-top: 0.32rem;
}

.wallet-payment-method-instructions.method-maya {
  border-color: rgba(75, 224, 149, 0.42);
  background: linear-gradient(135deg, rgba(5, 55, 47, 0.86), rgba(18, 20, 22, 0.94));
}

.wallet-payment-method-instructions.method-gotyme {
  border-color: rgba(0, 223, 255, 0.4);
  background: linear-gradient(135deg, rgba(3, 40, 55, 0.9), rgba(18, 20, 22, 0.94));
}

@media (max-width: 640px) {
  .wallet-payment-method-instructions {
    padding: 0.8rem 0.85rem;
    font-size: 0.92rem;
  }
}

/* assets/player-reliability-v3.10.103.css */
.commission-record-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #f8e9bd;
  font-size: 0.9rem;
}
.commission-record-pager:empty { display: none; }
.commission-record-pager button:disabled { opacity: 0.45; cursor: default; }
@media (max-width: 480px) {
  .commission-record-pager { gap: 8px; }
  .commission-record-pager span { order: -1; width: 100%; text-align: center; }
}

/* assets/mobile-header-v3.10.86.css */
/* 888 LOTTO Player v3.10.86 — mobile brand alignment.
   Keep the system logo at the far-left edge on phones while preserving the
   compact wallet/action cluster and the existing mobile menu control. */
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 40px 38px minmax(0, 1fr) !important;
    grid-template-areas: "brand menu utility" !important;
    column-gap: 2px !important;
    padding-left: 4px !important;
    padding-right: 6px !important;
  }

  .header-brand-home {
    grid-area: brand !important;
    justify-self: start !important;
    margin: 0 !important;
    padding-left: 0 !important;
  }

  .header-brand-mark,
  .header-brand-mark.has-logo {
    margin-left: 0 !important;
  }

  .header-brand-mark img,
  .header-brand-mark.has-logo img {
    padding-left: 0 !important;
    object-position: left center !important;
  }

  .mobile-menu-button {
    grid-area: menu !important;
    margin: 0 !important;
  }
}

@media (max-width: 380px) {
  .topbar {
    grid-template-columns: 36px 34px minmax(0, 1fr) !important;
    grid-template-areas: "brand menu utility" !important;
    column-gap: 2px !important;
    padding-left: 3px !important;
  }
}

/* assets/player-motion-v3.10.88.css */
/* 888 LOTTO Player v3.10.88 — calmer lobby/banner motion.
   Keeps the premium motion but removes the fast "heartbeat" feel. */

/* Slow the announcement accent and make the pulse much subtler. */
.moving-announcement::after {
  animation-duration: 11s !important;
  animation-timing-function: cubic-bezier(.22,1,.36,1) !important;
}

.lobby-announcement-icon {
  animation-name: announcementIconPulseV31088 !important;
  animation-duration: 4.8s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
}

@keyframes announcementIconPulseV31088 {
  0%, 100% { transform: scale(.97); opacity: .82; }
  50% { transform: scale(1.035); opacity: 1; }
}

/* Banner image drift is now slow and restrained instead of pumping in/out. */
.featured-game-media img {
  animation-name: featuredMediaDriftV31088 !important;
  animation-duration: 24s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-direction: alternate !important;
}

@keyframes featuredMediaDriftV31088 {
  from { transform: scale(1.012) translate3d(-.2%,0,0); }
  to { transform: scale(1.032) translate3d(.35%,-.18%,0); }
}

/* Slightly slower announcement travel so the whole banner reads more calmly. */
.announcement-track {
  animation-duration: 32s !important;
}

@media (max-width: 860px), (hover: none) {
  .featured-game-media img {
    animation-duration: 28s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moving-announcement::after,
  .lobby-announcement-icon,
  .featured-game-media img,
  .announcement-track {
    animation: none !important;
  }
}

/* assets/player-motion-v3.10.92.css */
/* 888 LOTTO Player v3.10.92 — restore calm banner motion on touch/mobile.
   Mobile browsers can latch :hover after a tap, which previously paused the banner animation. */

/* Keep the featured/banner image moving slowly and continuously. */
.featured-game-media.has-cover-image img,
.featured-game-media img {
  animation-name: featuredBannerBreathV31092 !important;
  animation-duration: 10s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-direction: alternate !important;
  animation-play-state: running !important;
  will-change: transform;
}

@keyframes featuredBannerBreathV31092 {
  0% { transform: scale(1.012) translate3d(-0.15%,0,0); }
  50% { transform: scale(1.032) translate3d(0.18%,-0.10%,0); }
  100% { transform: scale(1.018) translate3d(0.28%,-0.16%,0); }
}

/* Keep the announcement accent alive, but slower than the old heartbeat. */
.moving-announcement::after {
  animation-duration: 12s !important;
  animation-timing-function: cubic-bezier(.22,1,.36,1) !important;
  animation-play-state: running !important;
}

.lobby-announcement-icon {
  animation-name: announcementIconPulseV31092 !important;
  animation-duration: 5.6s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-play-state: running !important;
}

@keyframes announcementIconPulseV31092 {
  0%,100% { transform: scale(.985); opacity:.88; }
  50% { transform: scale(1.025); opacity:1; }
}

/* Only a real mouse hover may pause the banner. Touch devices never pause it. */
@media (hover:hover) and (pointer:fine) {
  .featured-game-card:hover:not(:disabled) .featured-game-media img {
    animation-play-state: paused !important;
  }
}

@media (max-width:860px), (hover:none), (pointer:coarse) {
  .featured-game-media.has-cover-image img,
  .featured-game-media img {
    animation-play-state: running !important;
    animation-duration: 11s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-game-media img,
  .moving-announcement::after,
  .lobby-announcement-icon {
    animation: none !important;
  }
}

/* assets/payout-card-ux-v3.10.94.css */
/* 888 LOTTO Player v3.10.93 — payout card proportions + withdrawal card carousel */

/* Saved payout destinations keep a real debit-card proportion on wide screens. */
.payout-saved-group .saved-methods {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px)) !important;
  align-items: start;
  justify-content: start;
}
.payout-digital-card {
  width: min(100%, 360px);
  aspect-ratio: 1.586 / 1;
  min-height: 0 !important;
  justify-self: start;
  display: flex;
  flex-direction: column;
}
.payout-digital-card-provider { margin-top: 18px !important; }
.payout-digital-card-footer { margin-top: auto !important; padding-top: 15px; }

/* Withdrawal method chooser: e-wallet and bank remain separate. */
.withdrawal-method-options {
  display: block !important;
  margin-top: 9px;
}
.withdrawal-method-picker {
  display: grid;
  gap: 12px;
}
.withdrawal-method-category-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(244,211,111,.17);
  border-radius: 14px;
  background: rgba(16,2,5,.48);
}
.withdrawal-method-category-tab {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255,240,178,.66);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.withdrawal-method-category-tab small {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: rgba(255,240,178,.7);
  background: rgba(255,255,255,.06);
  font-size: 10px;
}
.withdrawal-method-category-tab.active {
  color: #fff9df;
  border-color: rgba(244,211,111,.52);
  background: linear-gradient(180deg, rgba(170,20,43,.95), rgba(93,9,19,.98));
  box-shadow: 0 8px 20px rgba(46,1,9,.24);
}
.withdrawal-method-category-tab.active small {
  color: #2a1702;
  background: #f4d36f;
}
.withdrawal-method-category-tab:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.withdrawal-method-carousel-shell {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 13px;
  border: 1px solid rgba(244,211,111,.13);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(71,6,15,.27), rgba(10,1,3,.42));
}
.withdrawal-method-card-stage {
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 190px;
}
.withdrawal-digital-card {
  appearance: none;
  width: min(100%, 360px) !important;
  aspect-ratio: 1.586 / 1;
  min-height: 0 !important;
  padding: 18px !important;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transform: none !important;
  transition: border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}
.withdrawal-digital-card:hover {
  filter: brightness(1.04);
}
.withdrawal-digital-card.active {
  border-color: rgba(255,236,166,.82) !important;
  box-shadow: 0 0 0 2px rgba(242,207,98,.16), 0 20px 44px rgba(0,0,0,.35) !important;
}
.withdrawal-digital-card .payout-digital-card-header,
.withdrawal-digital-card .payout-digital-card-footer {
  width: 100%;
}
.withdrawal-digital-card-selected {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid rgba(255,240,178,.28);
  border-radius: 999px;
  color: #fff0b2;
  background: rgba(20,1,4,.24);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.withdrawal-digital-card.active .withdrawal-digital-card-selected {
  color: #251501;
  border-color: #f4d36f;
  background: #f4d36f;
}
.withdrawal-method-carousel-nav {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}
.withdrawal-method-nav-button {
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,211,111,.28);
  border-radius: 11px;
  color: #fff0b2;
  background: linear-gradient(180deg, rgba(119,13,25,.78), rgba(59,5,12,.94));
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.withdrawal-method-nav-button:hover:not(:disabled) {
  border-color: rgba(244,211,111,.62);
  background: linear-gradient(180deg, rgba(169,20,42,.9), rgba(91,8,18,.98));
}
.withdrawal-method-nav-button:disabled {
  opacity: .25;
  cursor: default;
}
.withdrawal-method-carousel-count {
  color: rgba(255,240,178,.62);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.withdrawal-method-carousel-nav.single .withdrawal-method-nav-button { visibility: hidden; }

@media (max-width: 820px) {
  .payout-saved-group .saved-methods {
    grid-template-columns: 1fr !important;
  }
  .payout-digital-card,
  .withdrawal-digital-card {
    width: 100% !important;
    max-width: 380px;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .withdrawal-method-carousel-shell { padding: 10px; }
  .withdrawal-digital-card { padding: 16px !important; }
  .withdrawal-digital-card .payout-digital-card-provider { margin-top: 14px !important; }
  .withdrawal-method-card-stage { min-height: 0; }
}

/* v3.10.94 — force the withdrawal selector to use the same debit-card visual language
   as the saved payout destinations, including on desktop. */
#withdrawalMethodOptions .withdrawal-method-carousel-shell {
  width: min(100%, 430px);
  justify-self: start;
}
#withdrawalMethodOptions .withdrawal-method-card-stage {
  min-height: 230px;
}
#withdrawalMethodOptions .withdrawal-digital-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(100%, 390px) !important;
  aspect-ratio: 1.586 / 1 !important;
  border: 1px solid rgba(255,236,166,.44) !important;
  border-radius: 25px !important;
  padding: 20px 22px !important;
  color: #fff8df !important;
  background:
    radial-gradient(circle at 88% 82%, rgba(255,231,145,.22), transparent 28%),
    linear-gradient(145deg, var(--card-a, #8f1428), var(--card-b, #27040b) 72%) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
#withdrawalMethodOptions .withdrawal-digital-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -38% 38%;
  height: 75%;
  border-radius: 50%;
  background: rgba(255,245,200,.10);
  transform: rotate(-13deg);
  z-index: -1;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-watermark {
  position: absolute;
  right: -4px;
  bottom: -36px;
  font-size: clamp(84px, 8vw, 132px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.09em;
  color: rgba(255,245,200,.14);
  pointer-events: none;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-logo {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px;
  border-radius: 15px !important;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-type {
  padding: 8px 13px;
  border: 1px solid rgba(255,240,178,.34);
  border-radius: 999px;
  background: rgba(11,1,3,.18);
  color: #fff4c7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-provider {
  margin-top: 20px !important;
  color: #fff8df;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-number {
  margin-top: 8px;
  color: #fff8df;
  font-size: clamp(22px, 2.15vw, 30px);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: .12em;
  text-shadow: 0 2px 14px rgba(0,0,0,.24);
  position: relative;
  z-index: 1;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto !important;
  padding-top: 18px;
  position: relative;
  z-index: 1;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-footer small {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,240,178,.62);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-footer strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: #fff8df;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff4c7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4be39b;
  box-shadow: 0 0 0 5px rgba(75,227,155,.13);
}
@media (max-width: 820px) {
  #withdrawalMethodOptions .withdrawal-method-carousel-shell { width: 100%; }
  #withdrawalMethodOptions .withdrawal-method-card-stage { min-height: 0; }
  #withdrawalMethodOptions .withdrawal-digital-card { width: min(100%, 390px) !important; }
}

/* assets/notification-ux-v3.10.95.css */
/* v3.10.95 — mobile notification usability + clear action */
.notification-panel-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
}
.notification-clear-button { color:#f1cf67!important; }
.notification-close-button {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border:1px solid rgba(221,185,79,.18);
  border-radius:9px;
  background:rgba(221,185,79,.08);
  color:#fff5d8;
  font:inherit;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.notification-list {
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

@media (max-width: 620px) {
  .notification-panel {
    position:fixed!important;
    z-index:610!important;
    top:calc(64px + env(safe-area-inset-top))!important;
    right:8px!important;
    bottom:calc(74px + env(safe-area-inset-bottom))!important;
    left:8px!important;
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    display:flex;
    flex-direction:column;
    overflow:hidden!important;
    border-radius:16px!important;
  }
  .notification-panel.hidden { display:none!important; }
  .notification-panel-head {
    position:relative!important;
    flex:0 0 auto;
    padding:11px 12px!important;
    gap:8px!important;
  }
  .notification-panel-head > strong {
    font-size:14px;
    white-space:nowrap;
  }
  .notification-panel-actions { gap:5px; }
  .notification-panel-actions .text-button {
    min-height:30px;
    padding:5px 7px;
    border:1px solid rgba(221,185,79,.14);
    border-radius:8px;
    background:rgba(221,185,79,.06);
    font-size:10px;
    white-space:nowrap;
  }
  .notification-close-button { width:30px; height:30px; }
  .notification-list { flex:1 1 auto; }
  .notification-item { padding:11px 12px!important; }
  .notification-item-title { font-size:13px; }
  .notification-item-copy,.notification-item-time { font-size:11px!important; }
}

/* assets/theme-accessibility-v3.10.104.css */
/* v3.10.104: shared runtime theme, contrast protection and responsive containment */
:root {
  --theme-bg: #090507;
  --theme-surface: #190b10;
  --theme-text: #fff7e6;
  --theme-muted: #d8c9a6;
  --theme-primary: #a7192d;
  --theme-accent: #f2ca4d;
}

html, body, .app-shell, .app-main, .page-shell, .player-shell, main,
.auth-screen, .dashboard-screen, .player-dashboard {
  background-color: var(--theme-bg) !important;
  color: var(--theme-text) !important;
}

.sidebar, .app-header, .player-header, .mobile-header, .site-header,
.panel, .card, .modal-card, .auth-card, .dashboard-card, .wallet-card,
.featured-game-card, .compact-game-card, .support-popup-view,
.payment-modal-card, .withdrawal-method-card, .gateway-payment-method {
  background-color: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: color-mix(in srgb, var(--theme-accent) 26%, transparent) !important;
}

h1, h2, h3, h4, h5, strong, label, th, td, .brand-name, .sidebar-system-name {
  color: var(--theme-text) !important;
}
p, small, .muted, .helper, .card-description, .game-description, .field small {
  color: var(--theme-muted) !important;
}
a { color: var(--theme-accent); }
.button-primary, .primary-button, .nav-button.active, .sidebar-nav button.active,
.mobile-bottom-nav-button.active, .featured-game-card .play-button {
  background: var(--theme-primary) !important;
  color: var(--theme-button-text, #fff) !important;
  border-color: color-mix(in srgb, var(--theme-accent) 42%, transparent) !important;
}
.input, .select, .textarea, input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  background: color-mix(in srgb, var(--theme-bg) 72%, var(--theme-surface)) !important;
  color: var(--theme-text) !important;
  border-color: color-mix(in srgb, var(--theme-accent) 25%, transparent) !important;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--theme-muted) 72%, transparent) !important; opacity: 1; }

*, *::before, *::after { box-sizing: border-box; }
.app-main, .page-shell, .player-shell, main, .view, .panel, .card, .form-grid, .field { min-width: 0; }
.topbar, .app-header, .player-header, .page-heading, .toolbar, .action-row,
.form-actions, .modal-header, .wallet-actions { flex-wrap: wrap !important; }
.topbar > *, .app-header > *, .page-heading > *, .toolbar > * { min-width: 0; }
button, .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.table-wrap, .table-container, [class*="table-wrap"] { max-width: 100%; overflow: auto !important; overscroll-behavior-inline: contain; }
table { width: 100%; }
td, th, .toast, .message, .alert { overflow-wrap: anywhere; }
.modal-card, .payment-modal-card, .support-popup-view { max-width: min(100% - 20px, 980px) !important; max-height: calc(100dvh - 20px); overflow: auto; }

.featured-game-card, .compact-game-card, .dashboard-card, .payment-history-card {
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

@media (max-width: 820px) {
  .page-heading, .toolbar, .action-row { align-items: stretch !important; }
  .toolbar .button, .action-row .button { flex: 1 1 140px; }
  .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .form-span-2 { grid-column: 1 !important; }
}

@media (max-width: 520px) {
  .topbar, .app-header, .player-header { gap: 7px !important; }
  .page-heading, .modal-header { flex-direction: column; align-items: stretch !important; }
  .button, button { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* assets/player-game-no-overlap-v3.10.107.css */
/* v3.10.106: visual-only portal/runtime spacing and overlay correction. */
.portal.game-active #view-games { padding: 8px !important; }
.portal.game-active #gameRuntime {
  width: 100% !important;
  min-width: 0 !important;
  gap: 6px !important;
}
.portal.game-active .game-runtime-toolbar {
  min-height: 42px !important;
  padding: 6px 10px !important;
  border-radius: 12px !important;
}
.portal.game-active .game-frame {
  width: 100% !important;
  min-width: 0 !important;
  border-radius: 14px !important;
}

/* Floating portal actions must never cover a live game control. */
.portal.game-active .support-chat-launcher { display: none !important; }
body:has(.portal.game-active) .pwa-install-button { display: none !important; }
body.game-runtime-active .pwa-install-button,
body.game-runtime-active .support-chat-launcher { display: none !important; }

@media (max-width: 860px) {
  .portal.game-active #view-games { padding: 4px !important; }
  .portal.game-active .game-runtime-toolbar { border-radius: 9px !important; }
  .portal.game-active .game-frame { border-radius: 10px !important; }
}

/* assets/player-embedded-header-mobile-v3.10.109.css */
/* v3.10.109: embedded portal identity and compact mobile shell. Visual only. */
.header-brand-home {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(34vw, 360px) !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.header-brand-home::before,
.header-brand-home::after { display: none !important; content: none !important; }
.header-brand-home:hover,
.header-brand-home:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  filter: brightness(1.06) !important;
}
.header-brand-home:focus-visible { outline: 2px solid var(--theme-accent, #e7c15b) !important; outline-offset: 4px !important; }
.header-brand-mark,
.header-brand-mark.has-logo {
  flex: 0 0 52px !important;
  width: 52px !important;
  height: 52px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.header-brand-mark img,
.header-brand-mark.has-logo img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
}
.header-brand-copy { gap: 1px !important; min-width: 0 !important; }
.header-brand-copy strong {
  max-width: 100% !important;
  font-size: clamp(17px, 1.75vw, 23px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.header-brand-copy small { font-size: 10px !important; line-height: 1.2 !important; }

@media (max-width: 1080px) {
  .topbar { flex-wrap: nowrap !important; }
  .header-brand-home { max-width: min(39vw, 300px) !important; }
  .header-brand-mark, .header-brand-mark.has-logo { flex-basis: 46px !important; width: 46px !important; height: 46px !important; }
  .header-brand-copy strong { font-size: clamp(16px, 2vw, 20px) !important; }
}

@media (max-width: 860px) {
  html, body { width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; }
  .portal, .main-shell, .view, .panel, .modal-card { min-width: 0 !important; max-width: 100% !important; }
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand utility" !important;
    min-height: 58px !important;
    gap: 6px !important;
    padding: 6px 8px !important;
    flex-wrap: nowrap !important;
  }
  .header-brand-home {
    grid-area: brand !important;
    justify-self: start !important;
    width: auto !important;
    max-width: min(52vw, 250px) !important;
    gap: 7px !important;
    padding: 0 !important;
  }
  .header-brand-mark, .header-brand-mark.has-logo {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }
  .header-brand-copy strong { max-width: 39vw !important; font-size: clamp(13px, 4vw, 17px) !important; }
  .header-brand-copy small { display: none !important; }
  .topbar-title, .mobile-menu-button, .topbar-sidebar-toggle { display: none !important; }
  .topbar-actions {
    grid-area: utility !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }
  .topbar-wallet-cluster { width: auto !important; max-width: min(36vw, 132px) !important; }
  .topbar-wallet-card, .game-wallet-balance-card.topbar-wallet-card {
    min-height: 38px !important;
    padding: 4px 6px !important;
    gap: 4px !important;
    border-radius: 10px !important;
  }
  .topbar-wallet-card .game-wallet-icon { display: none !important; }
  .topbar-wallet-card .game-wallet-copy span { font-size: 7px !important; line-height: 1 !important; }
  .topbar-wallet-card .game-wallet-copy strong { max-width: 64px !important; font-size: 16px !important; line-height: 1.1 !important; }
  .wallet-refresh-button { flex-basis: 26px !important; width: 26px !important; height: 26px !important; min-height: 26px !important; padding: 5px !important; }
  .notification-button { width: 38px !important; height: 38px !important; min-height: 38px !important; padding: 8px !important; }

  .content { width: 100% !important; padding: 9px 8px calc(86px + env(safe-area-inset-bottom)) !important; }
  .page-heading, .view-heading { gap: 8px !important; margin-bottom: 10px !important; }
  .page-heading h1, .page-heading h2, .view-heading h1, .view-heading h2 { font-size: clamp(19px, 6vw, 24px) !important; }
  .page-heading p, .view-heading p { font-size: 11px !important; }
  .panel, .stat-card, .detail-card, .security-overview-card { padding: 11px !important; border-radius: 12px !important; }
  .panel-grid, .stats-grid, .form-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  .table-wrap { width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  .modal { padding: 8px !important; }
  .modal-card, .wallet-actions-modal-card, .account-center-modal-card { width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px) !important; padding: 11px !important; border-radius: 14px !important; }
  .button { min-height: 40px !important; white-space: normal !important; }
  .mobile-bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom)) !important;
  }
  .mobile-bottom-nav-button { min-height: 50px !important; padding: 5px 3px !important; font-size: 9.5px !important; border-radius: 11px !important; }
  .mobile-bottom-nav-button svg { width: 18px !important; height: 18px !important; }
  .support-chat-launcher { right: 9px !important; bottom: calc(70px + env(safe-area-inset-bottom)) !important; max-width: calc(100vw - 18px) !important; }
}

@media (max-width: 430px) {
  .header-brand-home { max-width: 47vw !important; }
  .header-brand-copy strong { max-width: 33vw !important; font-size: 13px !important; }
  .header-brand-mark, .header-brand-mark.has-logo { flex-basis: 34px !important; width: 34px !important; height: 34px !important; }
  .topbar-wallet-cluster { max-width: 112px !important; }
  .topbar-wallet-card .game-wallet-copy span { display: none !important; }
  .topbar-wallet-card .game-wallet-copy strong { max-width: 55px !important; font-size: 15px !important; }
  .notification-button { width: 35px !important; height: 35px !important; min-height: 35px !important; }
}

/* assets/player-mobile-performance-header-v3.10.110.css */
/* v3.10.110: restore active-game mobile header and reduce mobile paint cost. */
@media (max-width: 860px) {
  html { scroll-behavior: auto !important; }
  body { background-attachment: scroll !important; overscroll-behavior-y: auto !important; }
  body::before { display: none !important; content: none !important; }

  /* Later legacy rules hid this header after launching LOTTO. */
  .portal.game-active .topbar,
  .portal.game-active.sidebar-collapsed .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 190 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand utility" !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 5px 7px !important;
    gap: 5px !important;
  }
  .portal.game-active .sidebar,
  .portal.game-active .sidebar-backdrop { display: none !important; }
  .portal.game-active .header-brand-home { display: inline-flex !important; }
  .portal.game-active .main-shell {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
  .portal.game-active .content {
    width: 100% !important;
    min-width: 0 !important;
    padding: 5px 4px calc(76px + env(safe-area-inset-bottom)) !important;
  }
  .portal.game-active #view-games {
    width: 100% !important;
    min-height: calc(100dvh - 54px) !important;
    height: auto !important;
    padding: 0 !important;
  }
  .portal.game-active #gameRuntime {
    min-height: calc(100dvh - 58px) !important;
    height: auto !important;
  }

  /* Low-cost mobile surfaces: retain hierarchy without repeated GPU blur. */
  .sidebar, .topbar, .panel, .stat-card, .table-wrap, .modal-card,
  .ui-dialog-card, .notification-panel, .wallet-action-shell,
  .support-popup-card, .game-card, .featured-game-card, .compact-game-card,
  .lotto-result-card, .topbar-wallet-card, .account-center-modal-card,
  .mobile-bottom-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.20) !important;
  }
  .view:not(.hidden), .panel, .stat-card, .game-card, .featured-game-card,
  .compact-game-card, .lotto-result-card, .support-popup-card, .modal-card {
    animation: none !important;
  }
  .button, .nav-button, .mobile-bottom-nav-button, .game-card,
  .featured-game-card, .compact-game-card {
    transition: background-color .10s linear, border-color .10s linear, color .10s linear !important;
    will-change: auto !important;
  }
  .button:hover, .nav-button:hover, .mobile-bottom-nav-button:hover,
  .game-card:hover, .featured-game-card:hover, .compact-game-card:hover { transform: none !important; }
  .featured-game-card, .compact-game-card, .lotto-result-card, .panel, .stat-card { contain: layout paint !important; }
  .moving-announcement .announcement-track { animation-duration: 28s !important; }
}

@media (max-width: 430px) {
  .portal.game-active .topbar,
  .portal.game-active.sidebar-collapsed .topbar { min-height: 50px !important; }
  .portal.game-active #view-games { min-height: calc(100dvh - 50px) !important; }
}

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

/* assets/player-mobile-single-scroll-v3.10.111.css */
/* v3.10.111: one mobile scroll owner for an active embedded LOTTO game. */
@media (max-width: 860px) {
  body.game-runtime-active {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .portal.game-active {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .portal.game-active .main-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 50px minmax(0, 1fr) auto !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .portal.game-active .topbar {
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 0 !important;
    height: 50px !important;
    overflow: visible !important;
    contain: layout paint !important;
  }

  .portal.game-active .main {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .portal.game-active .content,
  .portal.game-active #view-games,
  .portal.game-active #gameRuntime {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .portal.game-active #gameRuntime {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .portal.game-active .game-runtime-toolbar {
    display: none !important;
  }

  .portal.game-active .game-frame {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: auto !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-x pan-y !important;
  }

  /* Keep navigation in normal grid flow so it cannot cover the game. */
  .portal.game-active .mobile-bottom-nav {
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom)) !important;
    gap: 4px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    contain: layout paint !important;
  }

  .portal.game-active .mobile-bottom-nav-button {
    min-height: 42px !important;
    padding: 3px 2px !important;
    transition: background-color .08s linear, color .08s linear !important;
  }

  .portal.game-active .mobile-bottom-nav-button svg {
    width: 17px !important;
    height: 17px !important;
  }
}

/* assets/player-mobile-scroll-wallet-hotfix-v3.10.112.css */
/* v3.10.112: undo the over-constrained v3.10.111 shell and restore wallet actions. */
@media (max-width: 860px) {
  body.game-runtime-active {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
  }

  .portal.game-active {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  .portal.game-active .main-shell {
    display: contents !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .portal.game-active .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 190 !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    grid-template-areas: "brand utility" !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 5px 6px !important;
    gap: 5px !important;
    overflow: visible !important;
  }

  .portal.game-active .header-brand-home {
    grid-area: brand !important;
    display: inline-flex !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    padding: 1px !important;
  }

  .portal.game-active .header-brand-mark,
  .portal.game-active .header-brand-mark.has-logo {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
  }

  .portal.game-active .header-brand-copy,
  .portal.game-active .notification-wrap,
  .portal.game-active #logoutButton,
  .portal.game-active #gamesApplyCreditsButton {
    display: none !important;
  }

  .portal.game-active .topbar-actions {
    grid-area: utility !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  .portal.game-active .topbar-wallet-cluster {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  .portal.game-active .topbar-wallet-card,
  .portal.game-active .game-wallet-balance-card.topbar-wallet-card {
    flex: 0 1 102px !important;
    width: 102px !important;
    min-width: 82px !important;
    max-width: 102px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 3px 5px !important;
    gap: 3px !important;
    box-shadow: none !important;
  }

  .portal.game-active .topbar-wallet-card .game-wallet-icon {
    display: none !important;
  }

  .portal.game-active .topbar-wallet-card .game-wallet-copy strong {
    max-width: 54px !important;
    font-size: 14px !important;
  }

  .portal.game-active .wallet-refresh-button {
    flex-basis: 23px !important;
    width: 23px !important;
    min-width: 23px !important;
    height: 23px !important;
    min-height: 23px !important;
  }

  .portal.game-active .topbar-wallet-actions,
  .portal.game-active .game-wallet-actions.topbar-wallet-actions {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .portal.game-active .topbar-wallet-actions .wallet-quick-action {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 3px 5px !important;
    gap: 3px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .portal.game-active .topbar-wallet-actions .wallet-quick-action span {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    clip: auto !important;
    overflow: visible !important;
    white-space: nowrap !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  .portal.game-active .wallet-quick-action-icon {
    width: 14px !important;
    height: 14px !important;
  }

  .portal.game-active .content,
  .portal.game-active #view-games,
  .portal.game-active #gameRuntime {
    width: 100% !important;
    height: auto !important;
    min-height: calc(100dvh - 106px - env(safe-area-inset-bottom)) !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .portal.game-active .content,
  .portal.game-active #view-games {
    padding: 0 !important;
  }

  .portal.game-active #gameRuntime {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .portal.game-active .game-runtime-toolbar {
    display: none !important;
  }

  .portal.game-active .game-frame {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: calc(100dvh - 106px - env(safe-area-inset-bottom)) !important;
    min-height: calc(100dvh - 106px - env(safe-area-inset-bottom)) !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: auto !important;
    touch-action: pan-y !important;
  }

  .portal.game-active .mobile-bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 180 !important;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom)) !important;
    gap: 4px !important;
    box-shadow: none !important;
  }
}

@media (max-width: 370px) {
  .portal.game-active .topbar {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    padding-inline: 4px !important;
  }
  .portal.game-active .header-brand-home {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
  }
  .portal.game-active .header-brand-mark,
  .portal.game-active .header-brand-mark.has-logo {
    flex-basis: 34px !important;
    width: 34px !important;
    height: 34px !important;
  }
  .portal.game-active .topbar-wallet-card,
  .portal.game-active .game-wallet-balance-card.topbar-wallet-card {
    flex-basis: 88px !important;
    width: 88px !important;
    min-width: 76px !important;
  }
  .portal.game-active .topbar-wallet-actions .wallet-quick-action {
    flex-basis: 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
  }
  .portal.game-active .topbar-wallet-actions .wallet-quick-action span {
    font-size: 8px !important;
  }
}

/* assets/player-mobile-control-alignment-v3.10.113.css */
/* v3.10.113: exact mobile alignment for the wallet refresh control. */
@media (max-width: 860px) {
  .topbar .topbar-wallet-card,
  .topbar .game-wallet-balance-card.topbar-wallet-card {
    align-items: center !important;
  }

  .topbar .wallet-refresh-button {
    position: relative !important;
    inset: auto !important;
    display: inline-grid !important;
    place-items: center !important;
    align-self: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .topbar .wallet-refresh-button svg {
    position: static !important;
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    transform: none !important;
    transform-origin: center !important;
  }
}

@media (max-width: 370px) {
  .topbar .wallet-refresh-button {
    flex-basis: 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
  }
}

/* assets/player-mobile-control-centering-v3.10.114.css */
/* v3.10.114: exact optical centering for the mobile wallet refresh icon. */
@media (max-width: 860px) {
  .topbar .topbar-wallet-card > .wallet-refresh-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
  }

  .topbar .topbar-wallet-card > .wallet-refresh-button > svg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    fill: none !important;
    stroke: #f6d365 !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center !important;
  }

  .topbar .topbar-wallet-card > .wallet-refresh-button > svg path {
    fill: none !important;
    stroke: inherit !important;
  }
}

/* assets/player-smooth-ui-v3.10.116.css */
/* v3.10.116: lightweight motion and render containment for the Player shell. */
:root {
  --ui-ease-out: cubic-bezier(.22, 1, .36, 1);
  --ui-ease-standard: cubic-bezier(.2, .7, .2, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
[role="button"],
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.button,
.icon-button,
.nav-button,
.mobile-bottom-nav-button,
.notification-button,
.wallet-action-tab,
.wallet-inner-tab,
.account-center-tab,
.lobby-category-button,
.featured-game-card,
.compact-game-card {
  transition-property: transform, opacity, color, background-color, border-color !important;
  transition-duration: 150ms !important;
  transition-timing-function: var(--ui-ease-standard) !important;
}

.button:active,
.icon-button:active,
.nav-button:active,
.mobile-bottom-nav-button:active,
.notification-button:active,
.wallet-action-tab:active,
.wallet-inner-tab:active,
.account-center-tab:active,
.lobby-category-button:active,
.featured-game-card:active,
.compact-game-card:active {
  transform: scale(.975) !important;
}

.smooth-ui-ready .view.active:not(.game-view) {
  animation: playerSmoothViewIn 190ms var(--ui-ease-out) both !important;
}

.smooth-ui-ready .modal:not(.hidden) .modal-card,
.smooth-ui-ready .ui-dialog-overlay:not(.hidden) .ui-dialog-card,
.smooth-ui-ready .notification-panel:not(.hidden) {
  animation: playerSmoothSurfaceIn 170ms var(--ui-ease-out) both !important;
}

@keyframes playerSmoothViewIn {
  from { opacity: 0; transform: translate3d(0, 5px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes playerSmoothSurfaceIn {
  from { opacity: 0; transform: translate3d(0, 7px, 0) scale(.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.game-frame {
  backface-visibility: hidden;
  transform: translateZ(0);
}

@supports (content-visibility: auto) {
  .view.active:not(.game-view) > .panel,
  .view.active:not(.game-view) > .panel-grid,
  .view.active:not(.game-view) > .table-wrap {
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .icon-button:hover,
  .nav-button:hover,
  .mobile-bottom-nav-button:hover,
  .featured-game-card:hover,
  .compact-game-card:hover {
    transform: translate3d(0, -1px, 0) !important;
  }
}

@media (max-width: 860px) {
  body {
    background-attachment: scroll !important;
  }

  .portal.game-active .topbar,
  .portal.game-active .mobile-bottom-nav {
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
  }

  .panel,
  .stat-card,
  .featured-game-card,
  .compact-game-card,
  .lotto-result-card,
  .modal-card,
  .notification-panel {
    contain: layout paint style !important;
  }

  .ui-scrolling .button,
  .ui-scrolling .icon-button,
  .ui-scrolling .nav-button,
  .ui-scrolling .mobile-bottom-nav-button,
  .ui-scrolling .featured-game-card,
  .ui-scrolling .compact-game-card {
    transition-duration: 0ms !important;
  }

  /* Keep the existing authenticated Home quick actions unmistakably visible. */
  .portal:not(.game-active) #gameLobby > .mobile-lobby-shortcuts {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 7px !important;
    gap: 6px !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .portal:not(.game-active) #mobileLobbyDepositButton,
  .portal:not(.game-active) #mobileLobbyWithdrawButton {
    grid-column: span 3 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 7px 10px !important;
    gap: 7px !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 11px !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .portal:not(.game-active) #mobileLobbyDepositButton {
    background: linear-gradient(145deg, #e49c20, #b94b1d) !important;
  }

  .portal:not(.game-active) #mobileLobbyWithdrawButton {
    background: linear-gradient(145deg, #257bdd, #164b9a) !important;
  }

  .portal:not(.game-active) #mobileLobbyDepositButton .mobile-lobby-shortcut-icon,
  .portal:not(.game-active) #mobileLobbyWithdrawButton .mobile-lobby-shortcut-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    box-shadow: none !important;
  }

  .portal:not(.game-active) #mobileLobbyDepositButton .mobile-lobby-shortcut-icon svg,
  .portal:not(.game-active) #mobileLobbyWithdrawButton .mobile-lobby-shortcut-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .portal:not(.game-active) #mobileLobbyCreditsButton,
  .portal:not(.game-active) #mobileLobbyAccountButton,
  .portal:not(.game-active) #mobileLobbySupportButton {
    grid-column: span 2 !important;
    min-width: 0 !important;
    min-height: 50px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .portal.guest-mode:not(.game-active) #gameLobby > .mobile-lobby-shortcuts {
    display: none !important;
  }
}

@media (max-width: 370px) {
  .portal:not(.game-active) #gameLobby > .mobile-lobby-shortcuts {
    padding: 5px !important;
    gap: 4px !important;
  }

  .portal:not(.game-active) #mobileLobbyDepositButton,
  .portal:not(.game-active) #mobileLobbyWithdrawButton {
    min-height: 42px !important;
    padding-inline: 6px !important;
    font-size: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smooth-ui-ready .view.active:not(.game-view),
  .smooth-ui-ready .modal:not(.hidden) .modal-card,
  .smooth-ui-ready .ui-dialog-overlay:not(.hidden) .ui-dialog-card,
  .smooth-ui-ready .notification-panel:not(.hidden) {
    animation: none !important;
  }
}

/* assets/dragon-background-v3.10.117.css */
/* Shared supplied dragon artwork with readability and mobile paint protection. */
html { background: #080202; }
body {
  position: relative;
  isolation: isolate;
  background: #080202 !important;
}
body::before {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -2;
  pointer-events: none;
  opacity: 1 !important;
  background-image: url("/assets/dragon-background-v3.10.117.webp") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  transform: translateZ(0);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,2,2,.44), rgba(4,2,2,.70));
}
.app-shell,
.player-shell,
.main,
.content,
.view,
.game-shell { background-color: transparent !important; }

@media (max-width: 700px) {
  body::before { background-position: 32% center !important; }
  body::after { background: rgba(4,2,2,.68); }
}

@media (prefers-reduced-transparency: reduce) {
  body::after { background: rgba(4,2,2,.86); }
}

/* assets/dragon-video-background-v3.10.132.css */
/* v3.10.132 animated MP4 dragon background.
   Keeps the existing static WebP as poster/reduced-motion fallback. */
html { background: #080202; }
body {
  position: relative;
  isolation: isolate;
  background: #080202 !important;
}

/* v3.10.117 static pseudo-background is superseded while motion is allowed. */
body::before {
  opacity: 0 !important;
  background-image: none !important;
}

.dragon-video-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  object-fit: cover;
  object-position: center center;
  z-index: -2;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  background: #080202 url('/assets/dragon-background-v3.10.117.webp') center center / cover no-repeat;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Existing body::after overlay remains above the video for UI readability. */
.app-shell,
.player-shell,
.main,
.content,
.view,
.game-shell { background-color: transparent !important; }

@media (max-width: 700px) {
  .dragon-video-background { object-position: 32% center; }
}

/* Respect OS reduced-motion preference and fall back to the static art. */
@media (prefers-reduced-motion: reduce) {
  .dragon-video-background { display: none !important; }
  body::before {
    opacity: 1 !important;
    background-image: url('/assets/dragon-background-v3.10.117.webp') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
  }
}

/* assets/lobby-browse-results-v3.10.134.css */
/* v3.10.134 - keep internal LOTTO in browse list and make result board visibly active. */

#gameLobby.lotto-only-lobby #categoriesSection {
  display: block !important;
}

#gameLobby #categoriesSection .game-category-block:first-child {
  margin-top: 0;
}

.lobby-result-board-card {
  min-height: 138px;
}

.lobby-result-board-card .lobby-result-card-head span {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.lobby-result-board-card .lobby-result-balls {
  min-height: 38px;
}

.lobby-result-board-card .lobby-result-balls span.is-pending {
  color: rgba(255, 240, 183, .48);
  background: rgba(221, 185, 79, .08);
  border: 1px dashed rgba(221, 185, 79, .42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

@media (max-width: 620px) {
  .lobby-result-board-card {
    min-height: 126px;
    padding: 12px;
  }

  .lobby-result-board-card .lobby-result-card-head {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
  }

  .lobby-result-board-card .lobby-result-card-head small {
    max-width: none;
    text-align: left;
  }

  .lobby-result-board-card .lobby-result-balls {
    gap: 5px;
  }

  .lobby-result-board-card .lobby-result-balls span {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}


/* assets/adaptive-motion-v3.10.118.css */
/* Player v3.10.118 — adaptive motion polish without changing scroll ownership. */
:root {
  --adaptive-motion-fast: 110ms;
  --adaptive-motion-ease: cubic-bezier(.2, .7, .2, 1);
}

button,
[role="button"],
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.button,
.icon-button,
.nav-button,
.mobile-bottom-nav-button,
.wallet-action-tab,
.wallet-inner-tab,
.account-center-tab,
.lobby-category-button,
.featured-game-card,
.compact-game-card,
.game-logo,
.type-btn,
.mode-btn,
.ball,
.outline-btn,
.place-btn,
.side-tab,
.wallet-btn,
.menu {
  transition-property: transform, opacity, color, background-color, border-color !important;
  transition-duration: var(--adaptive-motion-fast) !important;
  transition-timing-function: var(--adaptive-motion-ease) !important;
  will-change: auto !important;
}

.ui-scrolling .button,
.ui-scrolling .icon-button,
.ui-scrolling .nav-button,
.ui-scrolling .mobile-bottom-nav-button,
.ui-scrolling .featured-game-card,
.ui-scrolling .compact-game-card,
.ui-scrolling .game-logo,
.ui-scrolling .type-btn,
.ui-scrolling .mode-btn,
.ui-scrolling .ball,
.ui-scrolling .outline-btn,
.ui-scrolling .place-btn,
.ui-scrolling .side-tab,
.ui-scrolling .wallet-btn,
.ui-scrolling .menu {
  transition-duration: 0ms !important;
  animation-play-state: paused !important;
}

@media (max-width: 860px) {
  html,
  body {
    scroll-behavior: auto !important;
    overscroll-behavior-y: auto !important;
  }
  .ui-motion-lite .topbar,
  .ui-motion-lite .panel,
  .ui-motion-lite .modal-card,
  .ui-motion-lite .notification-panel,
  .ui-motion-lite .manual-card,
  .ui-motion-lite .keyin-card,
  .ui-motion-lite .summary-card,
  .ui-motion-lite .side-panel,
  .ui-motion-lite .wallet-box,
  .ui-motion-lite .account-drawer {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
  }
  .ui-motion-lite .view.active,
  .ui-motion-lite .modal,
  .ui-motion-lite .modal-card,
  .ui-motion-lite .notification-panel {
    animation: none !important;
  }
  .ui-motion-lite .button,
  .ui-motion-lite .nav-button,
  .ui-motion-lite .ball,
  .ui-motion-lite .type-btn,
  .ui-motion-lite .mode-btn {
    transition-duration: 70ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .icon-button,
  .nav-button,
  .mobile-bottom-nav-button,
  .featured-game-card,
  .compact-game-card,
  .game-logo,
  .type-btn,
  .mode-btn,
  .ball,
  .outline-btn,
  .place-btn,
  .side-tab,
  .wallet-btn,
  .menu {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* assets/gaming-foundation-v3.10.119.css */
/* Player v3.10.119 — clean gaming hierarchy over the approved red/gold theme. */
:root {
  --gf-surface: rgba(16, 13, 13, .92);
  --gf-surface-soft: rgba(27, 21, 20, .88);
  --gf-border: rgba(231, 195, 91, .22);
  --gf-gold: #e7c35b;
  --gf-gold-strong: #f4d978;
  --gf-text: #fff6dd;
  --gf-muted: #b9aa83;
  --gf-success: #43c982;
  --gf-danger: #ef6464;
  --gf-warning: #e9ad48;
  --gf-info: #63a9e8;
  --gf-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

/* Restrained depth: preserve the brand colors without neon halos. */
.button,
.icon-button,
.nav-button,
.mobile-bottom-nav-button,
.lobby-category-button,
.featured-game-card,
.compact-game-card,
.panel,
.stat-card,
.notification-panel,
.modal-card,
.ui-dialog-card,
.game-logo,
.type-btn,
.mode-btn,
.ball,
.outline-btn,
.place-btn,
.side-tab,
.wallet-btn,
.menu {
  text-shadow: none !important;
}

.featured-game-card,
.compact-game-card,
.panel,
.stat-card,
.manual-card,
.keyin-card,
.summary-card,
.side-panel,
.modal-card,
.ui-dialog-card,
.notification-panel {
  box-shadow: var(--gf-shadow) !important;
}

.button.button-primary,
.nav-button.active,
.lobby-category-button.active,
.game-logo.active,
.type-btn.active,
.mode-btn.active,
.ball.selected,
.place-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 7px 16px rgba(0, 0, 0, .24) !important;
}

.featured-game-card:hover:not(:disabled),
.compact-game-card:hover:not(:disabled) {
  box-shadow: 0 15px 32px rgba(0, 0, 0, .32) !important;
}

.featured-game-content h3,
.compact-game-copy strong,
.game-brand-logo,
.header-brand-mark img,
.brand-mark img {
  text-shadow: none !important;
  filter: none !important;
}

/* Clear hierarchy and readable numeric information. */
#gamesWalletAmount,
#overviewBalance,
.stat-value,
.countdown,
.wallet-box strong,
.summary-line strong,
.total-chip strong,
.lobby-result-number,
td,
time {
  font-variant-numeric: tabular-nums lining-nums;
}

#gamesWalletAmount {
  font-size: clamp(1.25rem, 2vw, 2rem) !important;
  line-height: 1.05;
}

.game-section-heading h2,
.page-heading h1 {
  color: var(--gf-text) !important;
  letter-spacing: -.02em;
}

.muted,
.muted-text,
.game-section-kicker,
.compact-game-copy span,
.player-footer-main p,
.player-footer-brand span {
  color: var(--gf-muted) !important;
}

.status.success,
.success-text { color: var(--gf-success) !important; }
.status.error,
.error-text { color: var(--gf-danger) !important; }
.status.pending,
.warning-text { color: var(--gf-warning) !important; }
.status.info,
.info-text { color: var(--gf-info) !important; }

button,
.button,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  min-height: 46px;
}

button:focus-visible,
.button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 217, 120, .72) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

button:disabled,
.button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: .58 !important;
  transform: none !important;
  box-shadow: none !important;
}

[aria-busy="true"],
.loading,
.game-lobby-empty {
  cursor: progress;
}

/* Consistent game-card geometry and unmistakable actions. */
#featuredGamesGrid .featured-game-card {
  min-height: clamp(220px, 31vw, 340px) !important;
  border-radius: 16px !important;
}

#featuredGamesGrid .featured-game-content {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  min-height: inherit;
}

#featuredGamesGrid .featured-game-content h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem) !important;
}

#featuredGamesGrid .featured-game-content .button {
  min-width: 112px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#gameLobby .compact-games-grid,
#gameLobby #categoriesSection .compact-games-grid {
  align-items: stretch;
}

#gameLobby .compact-game-card {
  position: relative;
  display: grid !important;
  grid-template-rows: minmax(112px, 1fr) auto auto;
  min-height: 218px;
  height: 100%;
  overflow: hidden;
  border-radius: 14px !important;
  text-align: left;
}

#gameLobby .compact-game-media {
  min-height: 112px;
}

#gameLobby .compact-game-copy {
  min-width: 0;
  align-self: end;
}

#gameLobby .compact-game-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem !important;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#gameLobby .compact-game-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#gameLobby .compact-game-card::after {
  content: "Play";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 10px 10px;
  color: #241806;
  background: linear-gradient(180deg, var(--gf-gold-strong), #c99728);
  border: 1px solid rgba(255, 240, 184, .4);
  border-radius: 10px;
  font-weight: 800;
}

#gameLobby .compact-game-card:disabled::after {
  content: "Unavailable";
  color: #c5b995;
  background: #302b22;
  border-color: rgba(231, 195, 91, .12);
}

/* Semantic footer: useful information, real portal destinations, no fake links. */
.player-site-footer {
  width: 100%;
  margin-top: auto;
  padding: 24px clamp(16px, 3vw, 34px) 18px;
  color: var(--gf-text);
  background: rgba(8, 7, 7, .94);
  border-top: 1px solid var(--gf-border);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .18);
}

.player-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(2, minmax(150px, .8fr)) minmax(240px, 1.2fr);
  gap: clamp(20px, 3vw, 38px);
  max-width: 1440px;
  margin: 0 auto;
}

.player-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.player-footer-brand img {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
}

.player-footer-brand div,
.player-footer-group,
.player-footer-trust {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.player-footer-brand strong,
.player-footer-group > strong,
.player-footer-trust > strong {
  color: var(--gf-gold-strong);
  font-size: .98rem;
  line-height: 1.3;
}

.player-footer-brand span,
.player-footer-trust p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
}

.player-footer-links {
  display: grid;
  gap: 2px;
}

.player-site-footer .player-footer-link.nav-button {
  justify-content: flex-start !important;
  width: max-content !important;
  max-width: 100%;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 7px 0 !important;
  color: #d8cba6 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: .86rem;
  text-align: left;
}

.player-site-footer .player-footer-link:hover,
.player-site-footer .player-footer-link.active {
  color: var(--gf-gold-strong) !important;
  background: transparent !important;
  transform: translateX(3px);
}

.player-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 20px auto 0;
  padding-top: 14px;
  color: #8f8467;
  border-top: 1px solid rgba(231, 195, 91, .12);
  font-size: .76rem;
  line-height: 1.5;
}

.portal.game-active .player-site-footer {
  display: none;
}

@media (max-width: 1050px) {
  .player-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  button,
  .button,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea {
    min-height: 46px;
  }

  #featuredGamesGrid .featured-game-card {
    min-height: 210px !important;
  }

  #gameLobby .compact-game-card {
    grid-template-rows: minmax(96px, 1fr) auto auto;
    min-height: 200px;
  }

  #gameLobby .compact-game-media {
    min-height: 96px;
  }

  .player-site-footer {
    padding: 22px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .player-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .player-footer-brand,
  .player-footer-trust {
    grid-column: 1 / -1;
  }

  .player-footer-brand img {
    width: 48px;
    height: 48px;
  }

  .player-site-footer .player-footer-link.nav-button {
    width: 100% !important;
    min-height: 44px !important;
    padding: 9px 0 !important;
  }

  .player-footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

}

@media (max-width: 390px) {
  .player-footer-main {
    grid-template-columns: 1fr;
  }

  .player-footer-brand,
  .player-footer-trust {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-site-footer .player-footer-link {
    transition: none !important;
    transform: none !important;
  }
}

/* assets/footer-wallet-correction-v3.10.120.css */
/* Player v3.10.120 — true-bottom footer and compact wallet actions. */

/* The footer belongs to the existing .content scroll owner. The active view
   occupies at least one full content viewport, so the footer is only reached
   after the player scrolls to the actual end of the page. */
.portal:not(.game-active) .content > .view.active {
  min-height: calc(100vh - var(--header-height, 68px) + 1px);
}

.portal:not(.game-active) .content > .player-site-footer {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100%;
  max-width: 1440px;
  margin: 22px auto 0 !important;
  padding: 16px 18px 12px !important;
  background: rgba(7, 7, 8, .97) !important;
  border: 1px solid rgba(231, 195, 91, .17) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -8px 22px rgba(0, 0, 0, .2) !important;
}

.player-footer-main {
  grid-template-columns: minmax(205px, 1.1fr) minmax(210px, 1fr) minmax(240px, 1.1fr) minmax(260px, 1.35fr) !important;
  gap: 18px 24px !important;
}

.player-footer-brand {
  gap: 10px !important;
}

.player-footer-brand img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
}

.player-footer-brand strong,
.player-footer-group > strong,
.player-footer-trust > strong {
  font-size: .86rem !important;
}

.player-footer-brand span,
.player-footer-trust p {
  font-size: .75rem !important;
  line-height: 1.45 !important;
}

.player-footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 2px 14px !important;
}

.player-site-footer .player-footer-link.nav-button {
  width: auto !important;
  min-height: 32px !important;
  padding: 4px 0 !important;
  font-size: .77rem !important;
}

.player-footer-bottom {
  margin-top: 12px !important;
  padding-top: 10px !important;
  font-size: .68rem !important;
}

/* Compact desktop wallet: readable balance, but no oversized card. */
@media (min-width: 1081px) {
  .topbar-wallet-cluster {
    flex-wrap: nowrap !important;
    gap: 7px !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    width: auto !important;
    min-width: 166px !important;
    max-width: 184px !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 6px 7px 6px 9px !important;
    gap: 7px !important;
    border-radius: 12px !important;
  }

  .topbar-wallet-card .game-wallet-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
  }

  .topbar-wallet-card .game-wallet-copy span {
    font-size: 8px !important;
    letter-spacing: .08em !important;
  }

  #gamesWalletAmount {
    max-width: 88px;
    overflow: hidden;
    color: #fff0b7 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar .wallet-refresh-button {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 8px !important;
  }

  .topbar-wallet-actions {
    gap: 7px !important;
    flex-wrap: nowrap !important;
  }

  .topbar-wallet-actions .wallet-quick-action {
    width: auto !important;
    min-width: 100px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 7px 13px !important;
    gap: 7px !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 11px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .22) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  #gamesDepositButton {
    color: #fff !important;
    background: linear-gradient(145deg, #ffad16 0%, #ff6a3d 52%, #ee4358 100%) !important;
    border-color: rgba(255, 190, 85, .65) !important;
  }

  #gamesWithdrawButton {
    color: #fff !important;
    background: linear-gradient(145deg, #18b8f3 0%, #1387ee 50%, #0862df 100%) !important;
    border-color: rgba(88, 193, 255, .62) !important;
  }

  .topbar-wallet-actions .wallet-quick-action-icon {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
  }

  #gamesApplyCreditsButton,
  #logoutButton {
    min-height: 40px !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
  }
}

/* Keep the already-restored mobile header wallet small. */
@media (max-width: 1080px) {
  .portal:not(.game-active) #gamesWalletAmount {
    max-width: 68px !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .portal.game-active #gamesWalletAmount {
    max-width: 54px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }
}

/* Mobile Home reference style: compact orange-red Deposit and blue Withdraw. */
@media (max-width: 860px) {
  .portal:not(.game-active) .content > .view.active {
    min-height: calc(100dvh - var(--header-height, 68px) + 1px);
  }

  .portal:not(.game-active) #mobileLobbyDepositButton,
  .portal:not(.game-active) #mobileLobbyWithdrawButton {
    min-height: 44px !important;
    padding: 7px 10px !important;
    gap: 7px !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 11px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18) !important;
    font-size: 11px !important;
  }

  .portal:not(.game-active) #mobileLobbyDepositButton {
    background: linear-gradient(145deg, #ffad16 0%, #ff6a3d 52%, #ee4358 100%) !important;
  }

  .portal:not(.game-active) #mobileLobbyWithdrawButton {
    background: linear-gradient(145deg, #18b8f3 0%, #1387ee 50%, #0862df 100%) !important;
  }

  .portal:not(.game-active) #mobileLobbyDepositButton .mobile-lobby-shortcut-icon,
  .portal:not(.game-active) #mobileLobbyWithdrawButton .mobile-lobby-shortcut-icon {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
    background: rgba(255, 255, 255, .12) !important;
  }

  .portal:not(.game-active) .content > .player-site-footer {
    margin-top: 16px !important;
    padding: 15px 14px calc(82px + env(safe-area-inset-bottom)) !important;
    border-radius: 14px 14px 0 0 !important;
  }

  .player-footer-main {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 14px !important;
  }

  .player-footer-brand,
  .player-footer-trust {
    grid-column: 1 / -1 !important;
  }

  .player-footer-brand img {
    width: 38px !important;
    height: 38px !important;
  }

  .player-site-footer .player-footer-link.nav-button {
    min-height: 38px !important;
    font-size: .75rem !important;
  }
}

@media (max-width: 390px) {
  .player-footer-main {
    grid-template-columns: 1fr !important;
  }

  .player-footer-brand,
  .player-footer-trust {
    grid-column: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #gamesDepositButton,
  #gamesWithdrawButton,
  #mobileLobbyDepositButton,
  #mobileLobbyWithdrawButton {
    transition: none !important;
  }
}

/* assets/player-critical-corrections-v3.10.121.css */
/* Player v3.10.121 — compact wallet actions and contained customer support. */

/* Keep the icon beside the label and keep both actions compact. */
#gamesDepositButton.wallet-quick-action,
#gamesWithdrawButton.wallet-quick-action,
#mobileLobbyDepositButton.mobile-lobby-shortcut,
#mobileLobbyWithdrawButton.mobile-lobby-shortcut {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
}

#gamesDepositButton.wallet-quick-action,
#gamesWithdrawButton.wallet-quick-action {
  width: auto !important;
  min-width: 94px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 6px 11px !important;
  line-height: 1 !important;
}

#gamesDepositButton .wallet-quick-action-icon,
#gamesWithdrawButton .wallet-quick-action-icon {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
  margin: 0 !important;
}

#gamesDepositButton > span,
#gamesWithdrawButton > span,
#mobileLobbyDepositButton > span:last-child,
#mobileLobbyWithdrawButton > span:last-child {
  display: inline !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* Customer Service is a contained chat window, not a full page-sized card. */
body.support-popup-open {
  overflow: hidden !important;
}

body.support-popup-open .pwa-install-button,
body.support-popup-open #supportChatLauncher {
  display: none !important;
}

#view-support.support-popup-view {
  position: fixed !important;
  inset: 0 !important;
  z-index: 400 !important;
  display: none !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 18px !important;
  overflow: hidden !important;
}

#view-support.support-popup-view.active {
  display: block !important;
}

#view-support .support-popup-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(2, 3, 6, .46) !important;
  backdrop-filter: none !important;
}

#view-support .support-popup-card {
  position: absolute !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  top: auto !important;
  width: min(420px, calc(100vw - 44px)) !important;
  max-width: 420px !important;
  height: min(590px, calc(100dvh - 44px)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 44px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}

#view-support .support-popup-titlebar {
  min-height: 54px !important;
  padding: 9px 11px 9px 13px !important;
}

#view-support .support-popup-titlebar strong {
  font-size: 14px !important;
}

#view-support .support-popup-titlebar span {
  font-size: 10px !important;
}

#view-support .support-popup-close {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#view-support .messenger-shell,
#view-support .messenger-chat,
#view-support .smart-help-panel,
#view-support .bot-message-card,
#view-support .support-choice-grid,
#view-support .support-auto-answer,
#view-support .messenger-live-panel,
#view-support .messenger-message-list,
#view-support .messenger-composer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#view-support .messenger-shell,
#view-support .messenger-chat {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#view-support .messenger-chat-header {
  min-height: 54px !important;
  padding: 9px 12px !important;
}

#view-support .smart-help-panel {
  padding: 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

#view-support .bot-message-card {
  padding: 11px !important;
  gap: 9px !important;
}

#view-support .support-choice-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  margin-top: 10px !important;
}

#view-support .support-choice-button {
  min-height: 38px !important;
  padding: 8px 10px !important;
  text-align: left !important;
}

#view-support .support-auto-answer {
  margin-top: 10px !important;
}

#view-support .support-auto-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-top: 8px !important;
}

#view-support .support-auto-actions .button {
  min-height: 38px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
}

#view-support .messenger-live-panel:not(.hidden) {
  min-height: 0 !important;
  overflow: hidden !important;
}

#view-support .messenger-message-list {
  min-height: 0 !important;
  padding: 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#view-support .messenger-composer {
  padding: 9px !important;
}

@media (max-width: 860px) {
  #gamesDepositButton.wallet-quick-action,
  #gamesWithdrawButton.wallet-quick-action {
    min-width: 84px !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 5px 9px !important;
    gap: 6px !important;
    font-size: 11px !important;
  }

  #mobileLobbyDepositButton.mobile-lobby-shortcut,
  #mobileLobbyWithdrawButton.mobile-lobby-shortcut {
    min-height: 42px !important;
    padding: 6px 9px !important;
  }

  #mobileLobbyDepositButton .mobile-lobby-shortcut-icon,
  #mobileLobbyWithdrawButton .mobile-lobby-shortcut-icon {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    margin: 0 !important;
  }
}

@media (max-width: 620px) {
  #view-support.support-popup-view {
    padding: 10px 10px calc(76px + env(safe-area-inset-bottom)) !important;
  }

  #view-support .support-popup-card {
    right: 10px !important;
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 20px) !important;
    max-width: 440px !important;
    height: min(68dvh, 560px) !important;
    max-height: min(68dvh, 560px) !important;
    border-radius: 15px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view-support .support-popup-card,
  #gamesDepositButton,
  #gamesWithdrawButton {
    transition: none !important;
  }
}

/* assets/gentle-heartbeat-v3.10.122.css */
/* Player v3.10.122 — slow, compositor-only brand heartbeat. */

@keyframes lotto-gentle-heartbeat {
  0%, 82%, 100% { transform: scale(1); }
  87% { transform: scale(1.035); }
  91% { transform: scale(1); }
  95% { transform: scale(1.022); }
}

#headerBrandMark,
.game-logo.active .game-brand-logo {
  transform-origin: center;
  animation: lotto-gentle-heartbeat 3.8s ease-in-out infinite;
  will-change: transform;
}

body.ui-scrolling #headerBrandMark,
body.ui-scrolling .game-logo.active .game-brand-logo,
.ui-motion-lite #headerBrandMark,
.ui-motion-lite .game-logo.active .game-brand-logo {
  animation-play-state: paused !important;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  #headerBrandMark,
  .game-logo.active .game-brand-logo {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}

/* assets/performance-runtime-v3.10.123.css */
/* Player v3.10.123 — final paint/compositing overrides for high-FPS interaction. */
:root {
  --perf-fast: 90ms;
  --perf-normal: 150ms;
  --perf-ease: cubic-bezier(.2,.72,.2,1);
}

html { scroll-behavior: auto; }

/* Never animate paint-heavy properties. Keep feedback on compositor-safe transforms/opacity. */
.button,
.icon-button,
.nav-button,
.mobile-bottom-nav-button,
.notification-button,
.wallet-action-tab,
.wallet-inner-tab,
.account-center-tab,
.lobby-category-button,
.featured-game-card,
.compact-game-card,
.game-logo,
.type-btn,
.mode-btn,
.ball,
.outline-btn,
.place-btn,
.side-tab,
.wallet-btn,
.drawer-action,
.mini-btn,
.menu,
.modal-save,
.modal-cancel {
  transition-property: transform, opacity, color, background-color, border-color !important;
  transition-duration: var(--perf-fast) !important;
  transition-timing-function: var(--perf-ease) !important;
}

/* Heavy sections render lazily when they are below the viewport. */
@supports (content-visibility: auto) {
  .view.active:not(.game-view) .panel,
  .view.active:not(.game-view) .panel-grid,
  .view.active:not(.game-view) .table-wrap,
  #gameLobby .game-showcase-section,
  #gameLobby .game-provider-section,
  #gameLobby .lobby-results-section,
  .side-panel,
  .summary-card,
  .txn-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
  }
}

/* Contain complex layout/paint islands so a small change does not invalidate the page. */
.panel,
.stat-card,
.featured-game-card,
.compact-game-card,
.manual-card,
.keyin-card,
.summary-card,
.side-panel,
.result-entry,
.wallet-box,
.account-drawer,
.modal,
.notification-panel,
.txn-item {
  contain: layout paint style;
}

/* Desktop glass stays visible, but uses a bounded blur budget instead of stacked 16–24px filters. */
@media (min-width: 861px) {
  .topbar { backdrop-filter: blur(8px) saturate(112%) !important; -webkit-backdrop-filter: blur(8px) saturate(112%) !important; }
  .wallet-box,
  .result-entry,
  .manual-card,
  .keyin-card,
  .summary-card,
  .side-panel,
  .result-item,
  .bet-item,
  .modal,
  .account-drawer,
  .txn-item,
  .rate-field {
    backdrop-filter: blur(7px) saturate(108%) !important;
    -webkit-backdrop-filter: blur(7px) saturate(108%) !important;
  }
  .modal-overlay,
  .drawer-backdrop { backdrop-filter: blur(3px) !important; -webkit-backdrop-filter: blur(3px) !important; }
}

/* During scrolling/rapid input, prioritize frames over decorative paint. */
.ui-scrolling .topbar,
.ui-scrolling .panel,
.ui-scrolling .manual-card,
.ui-scrolling .keyin-card,
.ui-scrolling .summary-card,
.ui-scrolling .side-panel,
.ui-scrolling .wallet-box,
.ui-scrolling .result-entry,
.ui-scrolling .modal,
.ui-scrolling .account-drawer,
.ui-scrolling .notification-panel,
.ui-interacting .manual-card,
.ui-interacting .keyin-card,
.ui-interacting .summary-card,
.ui-interacting .side-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.ui-scrolling .featured-game-card,
.ui-scrolling .compact-game-card,
.ui-scrolling .panel,
.ui-scrolling .manual-card,
.ui-scrolling .keyin-card,
.ui-scrolling .summary-card,
.ui-scrolling .side-panel,
.ui-scrolling .txn-item {
  box-shadow: none !important;
}

.ui-scrolling .motion-reveal,
.ui-scrolling #headerBrandMark,
.ui-scrolling .game-logo.active .game-brand-logo,
.ui-paused *,
.ui-performance-lite #headerBrandMark,
.ui-performance-lite .game-logo.active .game-brand-logo {
  animation-play-state: paused !important;
}

/* Automatic fallback when the browser reports repeated long tasks. */
.ui-performance-lite .topbar,
.ui-performance-lite .panel,
.ui-performance-lite .manual-card,
.ui-performance-lite .keyin-card,
.ui-performance-lite .summary-card,
.ui-performance-lite .side-panel,
.ui-performance-lite .wallet-box,
.ui-performance-lite .result-entry,
.ui-performance-lite .modal,
.ui-performance-lite .account-drawer,
.ui-performance-lite .notification-panel,
.ui-motion-lite .topbar,
.ui-motion-lite .panel,
.ui-motion-lite .manual-card,
.ui-motion-lite .keyin-card,
.ui-motion-lite .summary-card,
.ui-motion-lite .side-panel,
.ui-motion-lite .wallet-box,
.ui-motion-lite .result-entry,
.ui-motion-lite .modal,
.ui-motion-lite .account-drawer,
.ui-motion-lite .notification-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  box-shadow: none !important;
}

.ui-performance-lite .motion-reveal,
.ui-motion-lite .motion-reveal {
  transition-duration: 0ms !important;
  animation: none !important;
}

/* Avoid a permanently promoted full-screen background on small GPUs. */
@media (max-width: 860px) {
  body::before { transform: none !important; }
  .topbar,
  .manual-card,
  .keyin-card,
  .summary-card,
  .side-panel,
  .wallet-box,
  .result-entry,
  .modal,
  .account-drawer,
  .notification-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }
  .featured-game-card,
  .compact-game-card,
  .manual-card,
  .keyin-card,
  .summary-card,
  .side-panel { box-shadow: 0 8px 20px rgba(0,0,0,.16) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* assets/player-header-lobby-v3.10.124.css */
/* Player v3.10.124 — mobile wallet spacing + featured-first sticky search. */

/* Lobby reading order: feature the hero first, then keep search available while browsing. */
#gameLobby > .lobby-announcement { order: 0 !important; }
#gameLobby > .mobile-lobby-shortcuts { order: 1 !important; }
#gameLobby > #featuredSection { order: 2 !important; }
#gameLobby > #lobbyStickySearch { order: 3 !important; }
#gameLobby > #lobbyCategoryNav { order: 4 !important; }
#gameLobby > .game-showcase-section:not(#featuredSection),
#gameLobby > .game-provider-section { order: 5 !important; }

#lobbyStickySearch {
  position: sticky;
  top: calc(var(--header-height, 68px) + 8px);
  z-index: 70;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(221,185,79,.22);
  border-radius: 14px;
  background: rgba(10,10,12,.96);
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
  isolation: isolate;
}

#lobbyStickySearch .lobby-filter-tools {
  display: grid !important;
  grid-template-columns: minmax(240px,1fr) minmax(150px,220px) auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Categories stay directly below search but do not consume sticky viewport height. */
#gameLobby > #lobbyCategoryNav {
  position: relative !important;
  top: auto !important;
  z-index: 20 !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  padding: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
#gameLobby > #lobbyCategoryNav::-webkit-scrollbar { display: none; }
#gameLobby > #lobbyCategoryNav .lobby-category-button { flex: 0 0 auto !important; }

/* Mobile header: reserve real space between balance and refresh, then keep
   Deposit + Withdraw immediately beside the wallet card. */
@media (max-width: 860px) {
  .topbar-actions {
    gap: 6px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .topbar-wallet-cluster {
    display: flex !important;
    flex: 0 1 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    display: grid !important;
    grid-template-columns: 26px minmax(72px,1fr) 30px !important;
    align-items: center !important;
    flex: 0 0 148px !important;
    width: 148px !important;
    max-width: 148px !important;
    min-width: 148px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 5px 6px !important;
    column-gap: 7px !important;
    overflow: hidden !important;
  }

  .topbar-wallet-card .game-wallet-icon {
    display: grid !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
  }

  .topbar-wallet-card .game-wallet-copy {
    min-width: 0 !important;
    width: 100% !important;
    padding-right: 1px !important;
  }

  .topbar-wallet-card .game-wallet-copy span { display: none !important; }

  .portal #gamesWalletAmount,
  .topbar-wallet-card .game-wallet-copy strong {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .topbar .wallet-refresh-button,
  .wallet-refresh-button {
    position: static !important;
    justify-self: end !important;
    flex: none !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .topbar-wallet-actions,
  .game-wallet-actions.topbar-wallet-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  #gamesDepositButton.wallet-quick-action,
  #gamesWithdrawButton.wallet-quick-action {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 70px !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 8px !important;
    gap: 5px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }

  #gamesDepositButton .wallet-quick-action-icon,
  #gamesWithdrawButton .wallet-quick-action-icon {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
  }

  #gamesDepositButton > span,
  #gamesWithdrawButton > span {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
  }

  #lobbyStickySearch {
    top: calc(56px + env(safe-area-inset-top));
    padding: 7px !important;
    border-radius: 12px !important;
    background: rgba(9,9,11,.98) !important;
    box-shadow: 0 7px 20px rgba(0,0,0,.22) !important;
  }

  #lobbyStickySearch .lobby-filter-tools {
    grid-template-columns: minmax(0,1fr) minmax(112px,36%) !important;
    gap: 6px !important;
  }

  #lobbyStickySearch .lobby-filter-count {
    grid-column: 1 / -1 !important;
    padding: 0 3px !important;
    font-size: 8px !important;
  }

  #gameLobby > #lobbyCategoryNav {
    padding: 5px 3px 7px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 620px) {
  .notification-wrap { display: none !important; }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    grid-template-columns: minmax(0,1fr) 29px !important;
    flex-basis: 132px !important;
    width: 132px !important;
    max-width: 132px !important;
    min-width: 132px !important;
    padding: 5px 7px 5px 9px !important;
    column-gap: 9px !important;
  }

  .topbar-wallet-card .game-wallet-icon { display: none !important; }

  #gamesDepositButton.wallet-quick-action { min-width: 60px !important; padding-inline: 6px !important; }
  #gamesWithdrawButton.wallet-quick-action { min-width: 66px !important; padding-inline: 6px !important; }
}

@media (max-width: 430px) {
  .topbar-actions { gap: 4px !important; }
  .topbar-wallet-cluster { gap: 4px !important; }

  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    grid-template-columns: minmax(0,1fr) 27px !important;
    flex-basis: 124px !important;
    width: 124px !important;
    max-width: 124px !important;
    min-width: 124px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 4px 6px 4px 8px !important;
    column-gap: 8px !important;
  }

  .portal #gamesWalletAmount,
  .topbar-wallet-card .game-wallet-copy strong { font-size: 14px !important; }

  .topbar .wallet-refresh-button,
  .wallet-refresh-button {
    width: 27px !important;
    min-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
  }

  #gamesDepositButton.wallet-quick-action,
  #gamesWithdrawButton.wallet-quick-action {
    min-width: 36px !important;
    width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
  }

  #gamesDepositButton > span,
  #gamesWithdrawButton > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
  }

  #gamesDepositButton .wallet-quick-action-icon,
  #gamesWithdrawButton .wallet-quick-action-icon {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
  }

  #lobbyStickySearch .lobby-filter-tools {
    grid-template-columns: minmax(0,1fr) 104px !important;
  }

  #lobbyStickySearch .lobby-filter-count { display: none !important; }
}

@media (max-width: 350px) {
  .topbar-wallet-card,
  .game-wallet-balance-card.topbar-wallet-card {
    flex-basis: 112px !important;
    width: 112px !important;
    max-width: 112px !important;
    min-width: 112px !important;
  }
  .portal #gamesWalletAmount,
  .topbar-wallet-card .game-wallet-copy strong { font-size: 13px !important; }
  #gamesDepositButton.wallet-quick-action,
  #gamesWithdrawButton.wallet-quick-action {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lobbyStickySearch { scroll-behavior: auto !important; }
}

/* assets/player-mobile-modal-nav-fix-v3.10.125.css */
/* Player v3.10.125 — mobile lobby cleanup, refresh centering, and modal navigation fix.
   UI-only: no wallet/betting/payment/Core behavior changes. */

/* The old quick-action strip was mobile-only and duplicated the persistent header/bottom-nav controls. */
.mobile-lobby-shortcuts {
  display: none !important;
}

/* The refresh SVG is absolutely centered by v3.10.114. Make the button its containing block. */
@media (max-width: 860px) {
  .topbar .topbar-wallet-card > .wallet-refresh-button,
  .portal.game-active .topbar .topbar-wallet-card > .wallet-refresh-button {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    align-self: center !important;
    justify-self: end !important;
    line-height: 0 !important;
    padding: 0 !important;
  }

  .topbar .topbar-wallet-card > .wallet-refresh-button > svg,
  .portal.game-active .topbar .topbar-wallet-card > .wallet-refresh-button > svg {
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: 50% 50% !important;
  }
}

/* Account Center: one viewport-contained shell with one internal scroll surface.
   Bottom navigation remains accessible; selecting another destination closes this modal in JS. */
#accountCenterModal {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

#accountCenterModal .account-center-modal-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#accountCenterModal .account-center-modal-header,
#accountCenterModal .account-center-tabs {
  flex: 0 0 auto !important;
}

#accountCenterModal .account-center-modal-panel:not(.hidden) {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

#accountCenterModal .account-center-modal-panel.hidden {
  display: none !important;
}

#accountCenterModal .account-center-modal-panel > .view.account-modal-hosted {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 860px) {
  #accountCenterModal {
    z-index: 205 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding:
      max(8px, env(safe-area-inset-top))
      8px
      calc(68px + env(safe-area-inset-bottom)) !important;
  }

  #accountCenterModal.hidden {
    display: none !important;
  }

  body:has(#accountCenterModal:not(.hidden)) .mobile-bottom-nav {
    z-index: 210 !important;
  }

  #accountCenterModal .account-center-modal-card {
    width: min(680px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    height: min(760px, calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom))) !important;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    margin: 0 auto !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  #accountCenterModal .account-center-modal-header {
    margin-bottom: 8px !important;
  }

  #accountCenterModal .account-center-tabs {
    position: static !important;
    margin-bottom: 8px !important;
  }

  #accountCenterModal .account-center-modal-panel:not(.hidden) {
    padding: 0 2px calc(18px + env(safe-area-inset-bottom)) 0 !important;
  }
}

@media (max-width: 430px) {
  #accountCenterModal .account-center-modal-card {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    height: calc(100dvh - 78px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 78px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  #accountCenterModal .account-center-tab {
    min-width: 0 !important;
    padding-inline: 5px !important;
    font-size: 10.5px !important;
  }
}

/* assets/lobby-density-v3.10.135.css */
/* Player v3.10.135 — compact browse grid + non-sticky search.
   Featured hero remains large. Game browse rails use dense cards:
   8 columns on desktop, 6 on tablet, 4 on phones. */

/* Search/filter belongs to the browse flow; it must scroll away normally. */
#gameLobby > #lobbyStickySearch,
#lobbyStickySearch {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 10 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 10px !important;
  padding: 8px !important;
  transform: none !important;
}

@media (min-width: 861px) {
  #gameLobby > #lobbyStickySearch {
    grid-column: 2 !important;
  }

  #lobbyStickySearch .lobby-filter-tools {
    grid-template-columns: minmax(220px, 1fr) minmax(145px, 190px) auto !important;
    gap: 8px !important;
  }
}

/* Compact game browsing: fixed-density rows instead of horizontal 1fr rails.
   This prevents a single published game from stretching across the whole page. */
#gameLobby .compact-games-grid,
#gameLobby #categoriesSection .compact-games-grid,
#gameLobby #hotSection .compact-games-grid,
#gameLobby #newSection .compact-games-grid,
#gameLobby #mostPlayedSection .compact-games-grid {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 2px 0 4px !important;
  scroll-snap-type: none !important;
}

#gameLobby .compact-game-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  border-radius: 12px !important;
  scroll-snap-align: none !important;
}

#gameLobby .compact-game-media {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
}

#gameLobby .compact-game-copy {
  min-width: 0 !important;
  padding: 6px 7px 7px !important;
}

#gameLobby .compact-game-copy strong {
  display: block !important;
  min-width: 0 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#gameLobby .compact-game-copy span {
  display: block !important;
  margin-top: 3px !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Mid-size/tablet density. */
@media (min-width: 621px) and (max-width: 860px) {
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid,
  #gameLobby #hotSection .compact-games-grid,
  #gameLobby #newSection .compact-games-grid,
  #gameLobby #mostPlayedSection .compact-games-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #gameLobby > #lobbyStickySearch {
    order: 3 !important;
  }
}

/* Phone: exactly four browse tiles per row. */
@media (max-width: 620px) {
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid,
  #gameLobby #hotSection .compact-games-grid,
  #gameLobby #newSection .compact-games-grid,
  #gameLobby #mostPlayedSection .compact-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    gap: 6px !important;
    overflow: visible !important;
    padding: 1px 0 3px !important;
  }

  #gameLobby .compact-game-card {
    border-radius: 9px !important;
  }

  #gameLobby .compact-game-copy {
    padding: 5px 4px 6px !important;
  }

  #gameLobby .compact-game-copy strong {
    font-size: 9px !important;
  }

  #gameLobby .compact-game-copy span {
    margin-top: 2px !important;
    font-size: 7px !important;
  }

  #lobbyStickySearch {
    padding: 6px !important;
    margin-bottom: 6px !important;
    border-radius: 11px !important;
  }

  #lobbyStickySearch .lobby-filter-tools {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    gap: 5px !important;
  }

  #lobbyStickySearch .lobby-filter-count {
    display: none !important;
  }
}

/* Keep the featured quick-access hero intentionally large. */
#featuredGamesGrid.featured-games-grid,
#featuredGamesGrid .featured-game-card {
  /* no density override */
}

/* assets/lobby-app-grid-v3.10.140.css */
/* Player v3.10.140 — app-style square artwork with game title below.
   Based on the full v3.10.135 production build; visual-only lobby changes. */

/* Keep search/filter in normal document flow. */
#lobbyStickySearch {
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
}

/* Game browsing density: 8 desktop, 6 tablet, 4 phone. */
#gameLobby .compact-games-grid,
#gameLobby #categoriesSection .compact-games-grid,
#gameLobby #hotSection .compact-games-grid,
#gameLobby #newSection .compact-games-grid,
#gameLobby #mostPlayedSection .compact-games-grid {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 18px 14px !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 4px 0 8px !important;
}

/* App-store style tile: transparent shell, square artwork, title underneath. */
#gameLobby .compact-game-card {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

#gameLobby .compact-game-card:hover:not(:disabled),
#gameLobby .compact-game-card:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}

#gameLobby .compact-game-media {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #111 !important;
  border: 1px solid rgba(221, 185, 79, .20) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28) !important;
}

#gameLobby .compact-game-media img,
#gameLobby .compact-game-fallback {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  display: block !important;
}

#gameLobby .compact-game-copy {
  padding: 8px 2px 0 !important;
  background: transparent !important;
  min-width: 0 !important;
}

#gameLobby .compact-game-copy strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  color: #fff0ba !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  white-space: normal !important;
  text-overflow: ellipsis !important;
  min-height: 2.5em !important;
}

/* Hide provider/category metadata under the title for a cleaner app-grid look. */
#gameLobby .compact-game-copy span {
  display: none !important;
}

/* LOTTO result numbers: individual yellow circles only, including pending slots. */
#lobbyLottoResults .lobby-result-balls {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 42px !important;
  padding: 0 !important;
}

#lobbyLottoResults .lobby-result-balls > span,
#lobbyLottoResults .lobby-result-balls > span.is-pending {
  display: inline-grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  color: #261800 !important;
  background: linear-gradient(180deg, #ffe98d 0%, #ffd54f 48%, #efb400 100%) !important;
  border: 1px solid #ffeca5 !important;
  box-shadow: 0 7px 16px rgba(171, 119, 0, .28), inset 0 1px 0 rgba(255,255,255,.70) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

@media (min-width: 621px) and (max-width: 1023.98px) {
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid,
  #gameLobby #hotSection .compact-games-grid,
  #gameLobby #newSection .compact-games-grid,
  #gameLobby #mostPlayedSection .compact-games-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
}

@media (max-width: 620px) {
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid,
  #gameLobby #hotSection .compact-games-grid,
  #gameLobby #newSection .compact-games-grid,
  #gameLobby #mostPlayedSection .compact-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px 7px !important;
  }

  #gameLobby .compact-game-media {
    border-radius: 11px !important;
  }

  #gameLobby .compact-game-copy {
    padding-top: 5px !important;
  }

  #gameLobby .compact-game-copy strong {
    font-size: 9px !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important;
  }

  #lobbyLottoResults .lobby-result-balls {
    gap: 6px !important;
    min-height: 34px !important;
  }

  #lobbyLottoResults .lobby-result-balls > span,
  #lobbyLottoResults .lobby-result-balls > span.is-pending {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 12px !important;
  }
}

/* assets/player-premium-v3.10.141.css */
/* Player v3.10.141 — smooth production UI, app-grid motion, player-safe presentation. */

/* Keep technical/provider controls out of the player-facing lobby. */
#providersSection,
#lobbyProviderFilter,
[data-lobby-target="providersSection"] { display:none !important; }

/* Results action links. */
.lotto-results-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lobby-live-link{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border-radius:999px;text-decoration:none;font-size:12px;font-weight:800;color:#1d1300;background:linear-gradient(180deg,#ffe98d,#f4bd22);border:1px solid rgba(255,238,165,.9);box-shadow:0 8px 20px rgba(0,0,0,.18);transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.lobby-live-link:hover{transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 12px 24px rgba(0,0,0,.24)}
.lobby-live-link.hidden{display:none!important}

/* Larger visual footprint while preserving the requested 8/6/4-column layout. */
#gameLobby .compact-games-grid{gap:20px 10px!important}
#gameLobby .compact-game-card{contain:layout paint;content-visibility:auto;contain-intrinsic-size:160px 190px;transform:translateZ(0);backface-visibility:hidden}
#gameLobby .compact-game-media{border-radius:18px!important;transform:translateZ(0);transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s ease,border-color .24s ease,filter .24s ease;will-change:transform}
#gameLobby .compact-game-media img{transition:transform .38s cubic-bezier(.2,.8,.2,1),filter .28s ease;transform:scale(1.001)}
#gameLobby .compact-game-card:hover:not(:disabled) .compact-game-media,#gameLobby .compact-game-card:focus-visible .compact-game-media{transform:translateY(-4px) scale(1.035);border-color:rgba(255,214,90,.48)!important;box-shadow:0 18px 36px rgba(0,0,0,.38),0 0 0 1px rgba(255,214,90,.12)!important}
#gameLobby .compact-game-card:hover:not(:disabled) .compact-game-media img,#gameLobby .compact-game-card:focus-visible .compact-game-media img{transform:scale(1.075);filter:saturate(1.08) contrast(1.03)}
#gameLobby .compact-game-copy strong{font-size:13px!important;transition:color .18s ease,transform .18s ease}
#gameLobby .compact-game-card:hover .compact-game-copy strong{color:#ffe17a!important;transform:translateY(-1px)}

.featured-game-card,.lobby-result-card,.game-showcase-section{transform:translateZ(0)}
.lobby-result-card{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.lobby-result-card:hover{transform:translateY(-3px);border-color:rgba(255,214,90,.34)!important;box-shadow:0 18px 34px rgba(0,0,0,.28)!important}
#lobbyLottoResults .lobby-result-balls>span{animation:v141BallIn .42s cubic-bezier(.2,.8,.2,1) both}
#lobbyLottoResults .lobby-result-balls>span:nth-child(2){animation-delay:.035s}#lobbyLottoResults .lobby-result-balls>span:nth-child(3){animation-delay:.07s}#lobbyLottoResults .lobby-result-balls>span:nth-child(4){animation-delay:.105s}#lobbyLottoResults .lobby-result-balls>span:nth-child(5){animation-delay:.14s}#lobbyLottoResults .lobby-result-balls>span:nth-child(6){animation-delay:.175s}
@keyframes v141BallIn{from{opacity:0;transform:scale(.72) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}

/* Smooth rendering/performance. */
.game-showcase-section{content-visibility:auto;contain-intrinsic-size:420px}
img{decoding:auto}

@media (max-width:620px){
  #gameLobby .compact-games-grid{gap:12px 6px!important}
  #gameLobby .compact-game-media{border-radius:13px!important}
  #gameLobby .compact-game-copy strong{font-size:10px!important}
  .lobby-live-link{min-height:32px;padding:0 9px;font-size:10px}
}

@media (prefers-reduced-motion:reduce){
  #gameLobby .compact-game-media,#gameLobby .compact-game-media img,.lobby-result-card,.lobby-live-link{transition:none!important;animation:none!important}
  #lobbyLottoResults .lobby-result-balls>span{animation:none!important}
}

/* assets/customer-service-v3.10.144.css */
/* v3.10.144 — player Customer Service clarity + composer layout */
#view-support .support-session-internal{display:none!important}
#view-support .messenger-shell{grid-template-columns:minmax(0,1fr)!important}
#view-support .messenger-chat{min-width:0!important}
#view-support .messenger-composer{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 88px!important;
  gap:10px!important;
  align-items:end!important;
}
#view-support .messenger-composer .textarea{
  min-width:0!important;
  width:100%!important;
  min-height:46px!important;
  max-height:120px!important;
  resize:vertical!important;
}
#view-support #replyButton{
  width:88px!important;
  min-width:88px!important;
  height:46px!important;
  padding:0 12px!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
}
#view-support .support-popup-titlebar span{font-size:11px!important}
#view-support .support-auto-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
@media(max-width:560px){
  #view-support .support-popup-card{width:min(100vw - 16px,520px)!important;max-height:calc(100dvh - 24px)!important}
  #view-support .messenger-composer{grid-template-columns:minmax(0,1fr) 76px!important;gap:8px!important}
  #view-support #replyButton{width:76px!important;min-width:76px!important;padding:0 8px!important}
}

/* assets/branding-logo-fix-v3.10.146.css */
/* 888 Dragon Lotto - settings-driven logo presentation fix */

/* LOGIN / LOADING SCREEN */
#loadingBrandMark.loading-brand-mark {
  width: 150px !important;
  height: 150px !important;
  min-width: 150px !important;
  min-height: 150px !important;
  max-width: 150px !important;
  max-height: 150px !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

#loadingBrandLogo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 150px !important;
  max-height: 150px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.player-loader-brand {
  gap: 0 !important;
}

.player-loader-brand .login-loading-copy {
  margin-top: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* MAIN HEADER */
#headerBrandMark.header-brand-mark {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  flex: 0 0 68px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

#headerBrandLogo {
  display: block !important;
  width: 68px !important;
  height: 68px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* WALLET ACTIONS - Deposit / Withdrawal / Credits */
#walletActionsBrandMark {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

#walletActionsBrandLogo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Hide text fallback once an actual settings logo is loaded */
#loadingBrandMark.has-image .brand-fallback,
#headerBrandMark.has-image .brand-fallback,
#walletActionsBrandMark.has-image .brand-fallback {
  display: none !important;
}

/* assets/vip-bonus-v3.10.153.css */
.vip-page, .vip-admin-panel { min-width: 0; }
.vip-page .vip-heading, .vip-admin-panel .vip-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.vip-page .vip-badge, [data-player-vip-badge].vip-badge { display:inline-flex; align-items:center; justify-content:center; border:1px solid #eec86a; border-radius:999px; padding:5px 12px; background:#311c0d; color:#ffe2a0; font-size:12px; font-weight:800; white-space:nowrap; }
.vip-page .vip-hero { background:linear-gradient(120deg,#29170f,#4e2117); border:1px solid #c99b48; border-radius:18px; padding:24px; margin:16px 0; color:#fff0cf; }
.vip-page .vip-hero h2 { color:#ffe3a2; font-size:clamp(28px,5vw,40px); margin:4px 0 12px; }
.vip-page .vip-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:18px; }
.vip-page .vip-metric { display:flex; flex-direction:column; gap:7px; min-width:0; }
.vip-page .vip-metric strong { font-size:clamp(18px,3vw,26px); overflow-wrap:anywhere; }
.vip-page progress { width:100%; height:10px; border:0; border-radius:10px; accent-color:#f6d780; }
.vip-page progress::-webkit-progress-bar { background:#583c24; border-radius:10px; }
.vip-page progress::-webkit-progress-value { background:#f6d780; border-radius:10px; }
.vip-page .vip-table-wrap, .vip-admin-panel .vip-table-wrap { max-width:100%; overflow:auto; max-height:560px; border:1px solid #b68c4a55; border-radius:12px; margin:14px 0; overscroll-behavior:contain; }
.vip-page .vip-table, .vip-admin-panel .vip-table { width:100%; border-collapse:collapse; min-width:700px; }
.vip-page .vip-table th, .vip-page .vip-table td, .vip-admin-panel .vip-table th, .vip-admin-panel .vip-table td { padding:12px 10px; text-align:left; white-space:nowrap; border-bottom:1px solid #b68c4a33; }
.vip-page .vip-table thead th, .vip-admin-panel .vip-table thead th { position:sticky; top:0; background:#24150e; color:#ffe0a1; z-index:1; }
.vip-page .vip-table th[scope="row"], .vip-admin-panel .vip-table th[scope="row"] { color:#d0a343; font-weight:800; }
.vip-page .vip-current-row { background:#a074211f; outline:1px solid #c19749; outline-offset:-1px; }
.vip-page .vip-inactive { opacity:.66; }
.vip-page .vip-offers { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; margin-top:14px; }
.vip-page .vip-offer { border:1px solid #b68c4a55; border-radius:12px; padding:16px; display:flex; flex-direction:column; gap:14px; }
.vip-page .vip-offer div { display:flex; flex-direction:column; gap:7px; }
.vip-page .vip-offer span { font-size:24px; color:#d4a743; font-weight:800; }
.vip-page .vip-offer button { align-self:flex-start; }
.vip-page .vip-status, .vip-admin-panel .vip-status { overflow-wrap:anywhere; margin:10px 0; line-height:1.5; }
.vip-admin-panel .vip-rule-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:14px; margin-top:16px; }
.vip-admin-panel .vip-toggle { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.vip-admin-panel .vip-toggle input { width:18px; height:18px; accent-color:#c99b48; }
.vip-admin-panel .vip-section { margin:24px 0; border-top:1px solid #b68c4a44; padding-top:20px; }
.vip-admin-panel .vip-table { min-width:1030px; }
.vip-admin-panel .vip-table input.input { min-width:130px; width:100%; margin:0; font-variant-numeric:tabular-nums; }
.vip-admin-panel .vip-table .vip-toggle input { width:18px; min-width:18px; }
.vip-admin-panel .vip-unknown { display:block; color:#a77c30; font-size:11px; margin-top:5px; }
.vip-admin-panel .vip-actions { display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 0; }
.vip-admin-panel button:disabled, .vip-page button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:640px) {
  .vip-page .vip-grid { grid-template-columns:1fr; gap:18px; }
  .vip-page .vip-hero { padding:18px; }
  .vip-admin-panel .vip-rule-grid { grid-template-columns:1fr; }
  .vip-admin-panel .vip-actions button { flex:1 1 140px; }
  .vip-page .vip-table-wrap, .vip-admin-panel .vip-table-wrap { max-height:440px; }
}

/* assets/deposit-bonus-v3.10.155.css */
.gateway-payment-method-options{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.deposit-channel-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.deposit-channel-group>.gateway-payment-method:only-child{grid-column:1/-1}
.deposit-channel-group .gateway-payment-method{min-width:0;min-height:126px;padding:12px 8px}
.deposit-choice-label{font-size:.74rem;color:var(--muted,#bdb69b);line-height:1.4;text-align:center}
.deposit-channel-bonus .deposit-choice-label{color:#ffdc74}.deposit-channel-bonus{border-color:rgba(246,202,73,.55)}
.deposit-bonus-rules{grid-column:1/-1;border:1px solid rgba(246,202,73,.45);border-radius:16px;padding:16px;background:rgba(28,23,11,.85);min-width:0}
.deposit-bonus-rules[hidden]{display:none!important}.deposit-bonus-rules h3{margin:0 0 8px}.deposit-bonus-rules p{line-height:1.6;margin:8px 0}
.deposit-bonus-rules .vip-table-wrap{max-width:100%;max-height:240px;overflow:auto;overscroll-behavior:contain;border:1px solid #b68c4a55;border-radius:12px;margin:14px 0}
.deposit-bonus-rules .vip-table{width:100%;min-width:640px;border-collapse:collapse}
.deposit-bonus-rules .vip-table th,.deposit-bonus-rules .vip-table td{padding:12px 10px;text-align:left;white-space:nowrap;border-bottom:1px solid #b68c4a33}
.deposit-bonus-rules .vip-table thead th{position:sticky;top:0;background:#24150e;color:#ffe0a1;z-index:1}
.deposit-bonus-rules .vip-table th[scope="row"]{color:#e8c16b;font-weight:800}
.deposit-bonus-accept{display:flex;gap:10px;align-items:flex-start;margin-top:16px;line-height:1.6;cursor:pointer}
.deposit-bonus-accept input{flex:none;width:18px;height:18px;margin-top:4px;accent-color:#f4c744}
@media(max-width:760px){.gateway-payment-method-options{grid-template-columns:1fr}.deposit-channel-group .gateway-payment-method{min-height:112px}.deposit-bonus-rules{padding:12px}.deposit-bonus-rules .vip-table-wrap{max-height:210px}}

/* assets/game-categories-v3.10.156.3.css */
#gameLobby .game-category-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
#gameLobby .game-category-heading h3 {margin:0 0 4px}
#gameLobby .game-category-heading span,#gameCategoryPageCount {font-size:12px;color:var(--text-muted,#a7b2c8)}
#gameLobby .game-category-show-all,#gameCategoryBack,#refreshLobbyGamesButton,#gameLobby .game-category-pagination button {border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.07);color:inherit;padding:10px 14px;font:inherit;cursor:pointer;white-space:nowrap}
#gameLobby .game-category-show-all span {color:inherit;font-size:16px;margin-left:6px}
#gameLobby .game-category-carousel {display:flex;align-items:center;gap:8px;min-width:0}
#gameLobby #categoriesSection .compact-games-grid.game-category-preview-row {display:flex!important;flex:1;gap:14px!important;grid-template-columns:none!important;grid-auto-flow:column!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#a48036 transparent;padding:4px 0 14px!important;min-width:0;width:auto!important}
#gameLobby #categoriesSection .game-category-preview-row .compact-game-card {flex:0 0 calc((100% - 56px)/5)!important;min-width:145px!important;scroll-snap-align:start}
#gameLobby .game-category-scroll {flex:0 0 28px;height:40px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.07);color:inherit;font-size:26px;cursor:pointer}
#gameLobby .game-category-preview-row::-webkit-scrollbar {height:5px}
#gameLobby .game-category-preview-row::-webkit-scrollbar-thumb {background:#a48036;border-radius:8px}
#gameLobby.category-page-open > .game-showcase-section,#gameLobby.category-page-open > .game-provider-section {display:none!important}
#gameLobby.category-page-open > #gameCategoryPage {display:block!important}
#gameLobby #gameCategoryPage.hidden {display:none!important}
#gameLobby .game-category-pagination {display:flex;align-items:center;justify-content:center;gap:16px;margin:24px 0}
#gameLobby .game-category-pagination button:disabled {opacity:.4;cursor:default}
#gameCategoryPageTitle {outline:none}
#gameLobby .game-category-page-heading {display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
#gameLobby .game-category-page-heading h2 {margin:0 0 5px}
#gameLobby button:focus-visible,#gameLobby .game-category-preview-row:focus-visible {outline:2px solid #f5cb68;outline-offset:3px}
@media(max-width:600px){#gameLobby #categoriesSection .game-category-preview-row .compact-game-card {flex-basis:42%!important;min-width:124px!important}#gameLobby .game-category-scroll{flex-basis:23px}#gameLobby .game-category-heading{gap:8px}#gameLobby .game-category-show-all{padding:9px 11px}}
@media(prefers-reduced-motion:reduce){#gameLobby .game-category-preview-row{scroll-behavior:auto!important}}

/* assets/player-ui-v3.10.158.css */
/* UI 158: consistent labels, controls and theme contrast; no data changes. */
html body .panel h2,html body .panel h3,html body .page-heading h2,
html body .field label,html body .filter-field label {
 color:var(--theme-text,#fff7e6)!important;-webkit-text-fill-color:currentColor!important;
 text-shadow:none!important;line-height:1.5!important;
}
html body .field label,html body .filter-field label {font-size:13px!important;}
html body .field small,html body .page-heading p,html body .helper-text,
html body .deposit-choice-label {color:var(--theme-muted,#d8c9a6)!important;line-height:1.6!important;}
html body .input,html body .select,html body .textarea {
 color:var(--theme-text,#fff7e6)!important;background:var(--theme-surface,#190b10)!important;
 font:inherit!important;font-size:14px!important;line-height:1.5!important;
 -webkit-text-fill-color:currentColor!important;border-color:var(--border-strong)!important;
}
html body .input,html body .select {min-height:44px!important;}
html body .input::placeholder,html body .textarea::placeholder {color:var(--theme-muted)!important;opacity:1;}
html body select option {background:var(--theme-surface);color:var(--theme-text);}
html body :is(.tab-button,.record-tab,.auth-tab,.vip-tab,.payout-tab) {
 color:var(--theme-text,#fff7e6)!important;background:var(--theme-surface,#190b10)!important;
 min-height:42px;font-size:13px!important;line-height:1.4!important;
}
html body :is(.tab-button,.record-tab,.auth-tab,.vip-tab,.payout-tab).active {
 background:var(--theme-primary,#a7192d)!important;color:var(--theme-button-text,#fff)!important;
}
html body :is(.tab-button,.record-tab,.auth-tab,.vip-tab,.payout-tab) * {color:inherit!important;-webkit-text-fill-color:currentColor!important;}
html body button {font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;}
html body .button {min-height:40px;line-height:1.4!important;}
html body .button:focus-visible,html body input:focus-visible,html body select:focus-visible,html body textarea:focus-visible {
 outline:3px solid var(--theme-text,#fff7e6)!important;outline-offset:3px;
}
html body .page-heading {gap:12px!important;margin-bottom:18px!important;}
html body .page-heading h2 {line-height:1.25!important;margin-bottom:6px!important;}
html body .gateway-payment-method {
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 align-items:center!important;gap:8px!important;min-width:0!important;
 background:var(--theme-surface,#190b10)!important;color:var(--theme-text,#fff7e6)!important;
 border-color:var(--border-strong)!important;line-height:1.4!important;
}
html body .gateway-payment-method.active {
 outline:2px solid var(--theme-accent,#f2ca4d)!important;outline-offset:0!important;
 border-color:var(--theme-accent,#f2ca4d)!important;
}
html body .gateway-payment-method strong {color:inherit!important;font-size:13px!important;line-height:1.4!important;}
html body .deposit-choice-label {font-size:12px!important;}
html body .gateway-payment-method img {width:120px!important;height:64px!important;object-fit:contain!important;flex:none;}
html body .deposit-channel-group {align-items:stretch!important;}
html body .deposit-channel-group .gateway-payment-method {min-height:138px!important;height:100%;}
html body .deposit-bonus-rules {
 background:var(--theme-surface,#190b10)!important;color:var(--theme-text,#fff7e6)!important;
}
html body .deposit-bonus-rules .vip-table th,html body .deposit-bonus-rules .vip-table td {
 color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;
}
html body .deposit-bonus-rules .vip-table thead th {background:var(--theme-surface)!important;}
html body .deposit-choice-label {min-height:2.8em;display:flex;align-items:center;justify-content:center;}
html body :is(.panel,.page-heading,.field,.deposit-channel-group) {min-width:0;}
@media(max-width:700px) {
 html body .field .input,html body .field .select,html body .field .textarea {font-size:16px!important;}
 html body .panel {padding:16px!important;}
 html body .page-heading {flex-wrap:wrap!important;}
 html body .deposit-channel-group .gateway-payment-method {min-height:136px!important;padding:12px 8px!important;}
 html body .gateway-payment-method img {width:100px!important;height:58px!important;}
}

/* assets/withdrawal-ui-v3.10.159.css */
/* UI 159: show only customer withdrawal amounts and requirements. */
#view-withdraw .stats-grid,
#withdrawalModal .withdrawal-popup-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px;
}
#withdrawalModal .withdrawal-popup-stat { padding: 14px; }
#withdrawalModal .withdrawal-popup-stat span {
  font-size: 12px;
  line-height: 1.5;
}
#withdrawalModal .withdrawal-popup-stat strong {
  margin-top: 6px;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.3;
}
@media (max-width: 580px) {
  #view-withdraw .stats-grid,
  #withdrawalModal .withdrawal-popup-summary {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  #withdrawalModal .withdrawal-popup-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }
  #withdrawalModal .withdrawal-popup-stat span { max-width: 55%; }
  #withdrawalModal .withdrawal-popup-stat strong {
    margin-top: 0;
    text-align: right;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
  }
}

/* assets/branding-ui-v3.10.160.css */
/* Settings-driven Handbook and footer logos keep their original proportions. */
.player-handbook-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.player-handbook-title > div { min-width: 0; }
#handbookBrandMark,
#footerBrandMark {
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#handbookBrandLogo,
#footerBrandLogo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#handbookBrandMark.has-logo .brand-fallback,
#footerBrandMark.has-logo .brand-fallback { display: none !important; }
.player-footer-brand > div { min-width: 0; }
.player-footer-brand strong { overflow-wrap: break-word; }
#handbookManualMessage:empty { display: none; }

/* assets/optimized-light-v3.10.161.css */
/* Optimized Light 161. Loaded last; custom light backgrounds share this layer. */
html[data-theme-mode="light"] {
 --light-soft:color-mix(in srgb,var(--theme-bg) 75%,var(--theme-surface));
 --light-selected:color-mix(in srgb,var(--theme-primary) 8%,var(--theme-surface));
 --text-muted:var(--theme-muted);
 --success:#166534;--danger:#b91c1c;--warning:#8a5908;
 scrollbar-color:var(--theme-muted) var(--theme-bg);
}
html[data-theme-mode="light"] body,
html[data-theme-mode="light"] :is(.screen,.app-screen,.auth-screen,.admin-shell,.main-content,.content-area,.app-shell,.app-main,.page-shell,.player-shell,main),
html[data-theme-mode="light"] :is(#dashboardScreen,#portalScreen,#authScreen) {
 background:var(--theme-bg)!important;color:var(--theme-text)!important;
}
/* Light surfaces retain motion; decorative media is managed by the background coordinator. */

html[data-theme-mode="light"] :is(body,.screen,.sidebar,.topbar,.panel,.card,.modal-card,.auth-card,.login-card,.account-drawer,.manual-card,.keyin-card,.summary-card,.side-panel)::before,
html[data-theme-mode="light"] :is(body,.screen,.sidebar,.topbar,.panel,.card,.modal-card,.auth-card,.login-card,.account-drawer,.manual-card,.keyin-card,.summary-card,.side-panel)::after {background-image:none!important;animation:none!important;box-shadow:none!important;pointer-events:none!important;}
html[data-theme-mode="light"] *,html[data-theme-mode="light"] *::before,html[data-theme-mode="light"] *::after {
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 text-shadow:none!important;box-shadow:none!important;
}
html[data-theme-mode="light"] :is(.sidebar,.topbar,.panel,.card,.auth-card,.login-card,.modal-card,.cs-modal-card,.ui-dialog-card,.form-card,.stat-card,.settings-card,.view-context-bar,.admin-mini-card,.player-mini-card,.admin-view-guide,.admin-directory-link,.admin-data-health,.theme-editor-card,.logo-upload-card,.handbook-card,.notification-panel,.notification-settings-panel,.wallet-card,.dashboard-card,.detail-card,.security-overview-card,.security-summary,.kyc-status-card,.payout-channel-panel,.payout-saved-panel,.support-popup-card,.support-popup-view,.smart-help-panel,.bot-message-card,.messenger-live-panel,.empty-card,.placeholder-card,.payment-channel-admin-card,.ops-kpi-card,.ops-health-card,.ops-cache-card,.ops-chart-card,.cs-metric-card,.cs-case-panel,.cs-history-info-panel,.cs-history-records-panel,.accounting-breakdown-card,.accounting-statement-card,.accounting-expense-entry-card,.accounting-expense-list-card,.accounting-statement,.client-gaming-net-card,.manual-card,.keyin-card,.summary-card,.side-panel,.account-drawer,.wallet-box,.total-chip,.combo-preview,.validation-box,.result-card,.txn-card,.drawer-action,.gateway-wallet-route-pill,.gateway-wallet-placeholder) {
 background:var(--theme-surface)!important;color:var(--theme-text)!important;
 border-color:var(--border)!important;
}
html[data-theme-mode="light"] :is(.sidebar-header,.sidebar-footer,.notification-panel-head,.panel-header,.modal-header,.drawer-head,.drawer-title,.txn-head,.messenger-chat-header,.support-admin-chat-header,.cs-case-panel-head,.wallet-actions-header,.wallet-action-panel-heading,.wallet-payment-toolbar,.wallet-payment-success,.player-site-footer,.player-footer-main,.player-footer-bottom,.player-footer-trust,.terminal-head,.bet-footer,.summary-title,.table-wrap,.table-container,.accounting-table-section,.accounting-table-wrap) {
 background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important;
}
html[data-theme-mode="light"] :is(h1,h2,h3,h4,h5,h6,label,strong,th,td,.stat-value,.stat-label,.panel-title,.brand-name,.sidebar-system-name,.terminal-title,.terminal-total,.summary-title,.combo-preview,.drawer-title,.modal-title,.result-number,.accounting-statement-total,.player-footer-group h3) {
 color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;
}
html[data-theme-mode="light"] :is(p,small,.muted,.helper,.helper-text,.stat-helper,.panel-subtitle,.admin-page-description,.admin-identity-chip,.result-note,.terminal-hint,.empty-state,.game-description,.card-description,.summary-line span,.wallet-box span,.wallet-due,.cutoff-meta,.player-footer-bottom,.player-mini-status,.deposit-choice-label,.game-category-heading span,.player-compact-meta,.player-control-label,.field small) {
 color:var(--theme-muted)!important;-webkit-text-fill-color:currentColor!important;
}
html[data-theme-mode="light"] :is(a,.text-button,.auth-link-button,.player-footer-link,.player-footer-links a) {color:var(--theme-primary)!important;}
html[data-theme-mode="light"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea,.input,.select,.textarea,.professional-input,.terminal-input,.admin-nav-search-control) {
 background:var(--theme-surface)!important;color:var(--theme-text)!important;
 -webkit-text-fill-color:currentColor!important;border-color:var(--border-strong)!important;
}
html[data-theme-mode="light"] :is(input,textarea)::placeholder {color:var(--theme-muted)!important;opacity:1!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] select option {background:var(--theme-surface)!important;color:var(--theme-text)!important;}
html[data-theme-mode="light"] input:is([type="checkbox"],[type="radio"]) {accent-color:var(--theme-primary)!important;}
html[data-theme-mode="light"] :is(.button,.nav-button,.record-tab,.accounting-view-tab,.ops-tab,.ops-period-button,.ops-analytics-tab,.integration-page-tab,.kyc-filter,.cs-record-tab,.cs-case-main-tab,.support-admin-tab,.payout-category-tab,.account-center-tab,.wallet-action-tab,.wallet-inner-tab,.tab-button,.auth-tab,.vip-tab,.payout-tab,.lobby-category-button,.provider-chip,.icon-button,.icon-action-button,.security-setup-button,.wallet-quick-action,.mobile-bottom-nav-button,.type-btn,.mode-btn,.side-tab,.txn-refresh,.outline-btn,.drawer-action,.drawer-close,.modal-close,.modal-cancel,.menu,.number-btn,.game-logo,.wallet-btn,.youtube-live-button,.gateway-payment-method,.withdrawal-method-card,.game-category-show-all,.game-category-scroll,.game-category-pagination button,.google-sign-in-button,.game-exit-button) {
 background:var(--theme-surface)!important;color:var(--theme-text)!important;
 border-color:var(--border-strong)!important;-webkit-text-fill-color:currentColor!important;
}
html[data-theme-mode="light"] :is(.button-primary,.primary-button,.place-btn,.modal-save,.payout-save-button,.wallet-quick-deposit,.wallet-btn.deposit),
html[data-theme-mode="light"] :is(.nav-button,.record-tab,.accounting-view-tab,.ops-tab,.ops-period-button,.ops-analytics-tab,.integration-page-tab,.kyc-filter,.cs-record-tab,.cs-case-main-tab,.support-admin-tab,.payout-category-tab,.account-center-tab,.wallet-action-tab,.wallet-inner-tab,.tab-button,.auth-tab,.vip-tab,.payout-tab,.lobby-category-button,.provider-chip,.mobile-bottom-nav-button,.type-btn,.mode-btn,.side-tab,.number-btn).active {
 background:var(--theme-primary)!important;color:var(--theme-button-text)!important;
 border-color:var(--theme-primary)!important;-webkit-text-fill-color:currentColor!important;
}
html[data-theme-mode="light"] :is(button,.button) :is(strong,span,small,i) {color:inherit!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] .button-danger {background:#b91c1c!important;color:#fff!important;border-color:#b91c1c!important;}
html[data-theme-mode="light"] .button-success {background:#166534!important;color:#fff!important;border-color:#166534!important;}
html[data-theme-mode="light"] :is(button,input,select,textarea):disabled {opacity:1!important;background:var(--light-soft)!important;color:var(--theme-muted)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] :is(button,a,input,select,textarea,[tabindex]):focus-visible {outline:3px solid var(--theme-primary)!important;outline-offset:3px!important;}
html[data-theme-mode="light"] :is(.gateway-payment-method,.withdrawal-method-card).active,
html[data-theme-mode="light"] .withdrawal-method-card[aria-checked="true"],
html[data-theme-mode="light"] .game-logo.active {background:var(--light-selected)!important;border-color:var(--theme-primary)!important;outline-color:var(--theme-primary)!important;}
html[data-theme-mode="light"] :is(table,tbody,tbody tr,tbody td,td,.empty-row) {background:var(--theme-surface)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] :is(thead,thead tr,th),
html[data-theme-mode="light"] :is(.vip-table,.players-tree-table,.accounting-table) thead th {background:var(--light-soft)!important;color:var(--theme-text)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] tbody tr:hover td {background:var(--light-selected)!important;}
html[data-theme-mode="light"] :is(.notice,.security-summary,.withdrawal-turnover-notice,.core-status-banner,.validation-box.invalid,.terminal-placement-limit,.deposit-bonus-rules,.provider-game-mapping-notice,.core-api-status-notice,.capacity-return-notice) {background:var(--light-soft)!important;color:var(--theme-text)!important;border-color:var(--border-strong)!important;}
html[data-theme-mode="light"] :is(.status,.status-badge,.vip-status,.core-status-badge,.cs-presence-badge) {background:var(--light-soft)!important;color:var(--theme-text)!important;border-color:var(--border-strong)!important;}
html[data-theme-mode="light"] :is(.status-active,.status-approved,.status-completed,.status-open,.theme-contrast-pass) {background:#f0fdf4!important;color:#166534!important;border-color:#86b99b!important;}
html[data-theme-mode="light"] :is(.status-pending,.status-processing,.status-case_management) {background:#fffbeb!important;color:#854d0e!important;border-color:#b99b61!important;}
html[data-theme-mode="light"] :is(.status-deactivated,.status-rejected,.status-failed,.status-closed,.theme-contrast-status:not(.theme-contrast-pass)) {background:#fef2f2!important;color:#b91c1c!important;border-color:#dca5a5!important;}
html[data-theme-mode="light"] :is(.modal,.modal-overlay,.cs-modal,.ui-dialog-overlay,.drawer-backdrop) {background:rgba(23,32,51,.32)!important;}
html[data-theme-mode="light"] .modal:not(.modal-overlay) > :is(.modal-card,.modal-head) {background:var(--theme-surface)!important;}
/* Keep the actual preview independent from the currently selected Admin theme. */
html[data-theme-mode="light"] .theme-preview {background:var(--preview-bg)!important;color:var(--preview-text)!important;}
html[data-theme-mode="light"] .theme-preview strong {color:var(--preview-text)!important;}
html[data-theme-mode="light"] .theme-preview span {color:var(--preview-muted)!important;}
html[data-theme-mode="light"] .theme-preview button {background:var(--preview-primary)!important;color:var(--preview-button-text)!important;border-color:var(--preview-accent)!important;}
html[data-theme-mode="light"] :is(.featured-game-card,.compact-game-card) {background-color:var(--theme-surface)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] :is(.featured-game-card,.compact-game-card) :is(.game-card-body,.game-info,.game-description) {background:var(--theme-surface)!important;color:var(--theme-text)!important;}
html[data-theme-mode="light"] :is(#view-players,#view-settings) :is(.player-wallet-metric,.player-commission-metric,.player-control-item,.player-upline-box,.commission-schedule-preview,.theme-color-grid label,.logo-preview,.admin-qr-preview) {background:var(--light-soft)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] :is(#withdrawalModal,#walletActionsModal,#accountCenterModal) :is(.modal-card,.withdrawal-popup-stat,.wallet-payment-panel,.wallet-action-tabs,.wallet-inner-tabs,.wallet-action-panel-heading,.wallet-payment-toolbar,.wallet-payment-success,.withdrawal-method-card) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] :is(#withdrawalModal,#walletActionsModal) :is(.withdrawal-popup-stat span,.wallet-payment-method-instructions,.wallet-payment-frame-loading) {color:var(--theme-muted)!important;background:var(--theme-surface)!important;}
html[data-theme-mode="light"] #accountDrawer,html[data-theme-mode="light"] #accountDrawer .drawer-head,
html[data-theme-mode="light"] #accountDrawer .txn-head {background:var(--theme-surface)!important;color:var(--theme-text)!important;}
html[data-theme-mode="light"] #terminalInput {background:var(--theme-surface)!important;color:var(--theme-text)!important;caret-color:var(--theme-primary)!important;}
html[data-theme-mode="light"] :is(.menu-icon span,.menu-icon::before,.menu-icon::after) {background:var(--theme-text)!important;}

/* Theme controls and navigation retain contrast even with older ID-based rules. */
html[data-theme-mode="light"] :is(#adminThemePreview,#playerThemePreview) strong {color:var(--preview-text)!important;}
html[data-theme-mode="light"] :is(#adminThemePreview,#playerThemePreview) span {color:var(--preview-muted)!important;}
html[data-theme-mode="light"] :is(#adminThemePreview,#playerThemePreview) button {background:var(--preview-primary)!important;color:var(--preview-button-text)!important;}
html[data-theme-mode="light"] :is(.admin-nav-group-label,.admin-mini-card span,.admin-mini-card small,.player-mini-card span,.sidebar-header p,.sidebar-footer small,.admin-page-category,.admin-identity-chip,#currentAdminRole,#currentAdminName,.game-wallet-copy span,.game-wallet-copy small,.topbar-copy p) {color:var(--theme-muted)!important;}
html[data-theme-mode="light"] .theme-editor-head .button {flex-shrink:0!important;min-width:62px!important;white-space:nowrap!important;overflow-wrap:normal!important;}
html[data-theme-mode="light"] .theme-color-grid input[type="color"] {background:var(--theme-surface)!important;border:1px solid var(--border-strong)!important;}
html[data-theme-mode="light"] .modal-overlay > .modal {background:var(--theme-surface)!important;color:var(--theme-text)!important;}
/* Legacy backgrounds are replaced as complete backgrounds, including gradients. */
html[data-theme-mode="light"] :is(.app,.modebar,.side-view,.txn-section,.txn-list,.number-grid,.mobile-bottom-nav,.mobile-bottom-nav-panel,.commission-highlight-card,.commission-claim-panel,.handbook-manual-summary,.player-manual-summary,.player-manual-meta,.player-handbook-note,.player-handbook-grid article,.player-handbook-reference > div,.game-wallet-balance-card,.topbar-wallet-card,.payout-channel-heading,.payout-channel-selector,.payout-form-heading,.payout-saved-empty,.payout-channel-details,.payout-channel-control,.vip-badge,.vip-summary,.vip-reward-card,.vip-level-card) {
 background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important;
}
html[data-theme-mode="light"] :is(.player-handbook-note span,.player-handbook-reference span,.player-manual-summary span,.player-manual-meta b,.player-mini-name,.nav-section-label,.admin-nav-group-label,.cutoff-meta span,.validation-list,.terminal-total,.payout-channel-heading span) {color:var(--theme-muted)!important;}
html[data-theme-mode="light"] .player-handbook-grid article > span {background:var(--light-soft)!important;color:var(--theme-accent)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] :is(#gamesDepositButton,#gamesWithdrawButton,#desktopSidebarToggle,#mobileMenuButton,#playerNotificationButton,#adminNotificationButton) {
 background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border-strong)!important;box-shadow:none!important;
}
html[data-theme-mode="light"] #gamesDepositButton {background:var(--theme-primary)!important;color:var(--theme-button-text)!important;border-color:var(--theme-primary)!important;}
html[data-theme-mode="light"] #headerBrandHomeButton :is(strong,span,small),html[data-theme-mode="light"] #topbarPlayerStatus {color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] .game-wallet-balance-card :is(strong,span,small) {color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] :is(#gamesDepositButton,#gamesWithdrawButton) :is(span,strong,i) {color:inherit!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] :is(.modal:not(.hidden),.modal:not(.hidden) .modal-card,.cs-modal:not(.hidden) .cs-modal-card,.ui-dialog-overlay:not(.hidden),.ui-dialog-overlay:not(.hidden) .ui-dialog-card,.auth-screen:not(.hidden),.auth-screen:not(.hidden) .auth-card,.support-popup-view[aria-hidden="false"] .support-popup-card) {opacity:1!important;animation:none!important;transform:none!important;will-change:auto!important;}
html[data-theme-mode="light"] :is(.support-chat-launcher:not([hidden]),.topbar,.sidebar,.player-manual-actions .button,.notification-button,.sidebar-collapse-button,.nav-button,.mobile-bottom-nav) {animation:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
html[data-theme-mode="light"] .brand-fallback {background:var(--light-soft)!important;color:var(--theme-accent)!important;}
html[data-theme-mode="light"] :is(.security-item,.security-ring,.security-ring::before,.security-ring::after,.security-check,.security-eligibility-badge,.payout-channel-hero,.payout-manager-heading,.payout-method-form,.payout-channel-status,.payout-dropdown-trigger,.payout-dropdown-trigger-icon,.payout-dropdown-count,.payout-channel-dropdown,.payout-channel-option,.payout-channel-search,.payout-security-seal,.gateway-wallet-router-summary,.gateway-wallet-note,.gateway-wallet-note-card,.commission-cycle-panel,.vip-hero,.vip-offer,.compact-game-copy,.compact-game-fallback,.game-lobby-empty,.validation-box h4) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] :is(.sidebar-nav-section,.admin-mini-role,.payout-eyebrow,.payout-channel-status,.security-ring span,.security-eligibility-badge,.security-check,.field-label,.txn-empty,.gateway-wallet-updated,.gateway-wallet-router-summary span,.gateway-wallet-router-summary strong,.compact-game-copy span,.vip-hero span,.vip-offer span) {color:var(--theme-muted)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] :is(#adminDetails,#adminMiniName,#adminMiniRole,#gamesWalletAmount,#securityPercentage,#dashboardGatewayWalletUpdated,#payoutChannelAvailabilityStatus) {color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] :is(#view-payout-channels,#view-profile,#view-vip-rewards) :is(.panel,.security-item,.security-ring::after,.payout-manager-heading,.payout-channel-hero,.payout-method-form,.payout-channel-status,.payout-dropdown-trigger,.payout-dropdown-trigger-icon,.payout-dropdown-count,.vip-hero,.vip-offer) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] #withdrawalModal .field-label {color:var(--theme-text)!important;}
html[data-theme-mode="light"] #view-vip-rewards progress::-webkit-progress-bar {background:var(--light-soft)!important;}
html[data-theme-mode="light"] #view-vip-rewards progress::-webkit-progress-value {background:var(--theme-primary)!important;}
html[data-theme-mode="light"] #view-vip-rewards progress::-moz-progress-bar {background:var(--theme-primary)!important;}
html[data-theme-mode="light"] #view-vip-rewards .vip-inactive {opacity:1!important;color:var(--theme-muted)!important;}
html[data-theme-mode="light"] :is(.compact-game-card,.featured-game-card) {color:var(--theme-text)!important;box-shadow:none!important;}
html[data-theme-mode="light"] :is(.compact-game-card,.featured-game-card) :is(strong,span) {color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] :is(#sidebarBrandFallback,#securityEligibilityStatus,#savedPayoutMethodCount,.eyebrow,.payout-method-count) {color:var(--theme-accent)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] #view-payout-channels :is(.payout-form-footer,.payout-saved-heading,.payout-empty-icon,.payout-method-count,.payout-security-seal) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] #view-payout-channels :is(small,.payout-form-footer p) {color:var(--theme-muted)!important;}
html[data-theme-mode="light"] #view-profile .security-item {opacity:1!important;}
html[data-theme-mode="light"] #withdrawalModal :is(.field-label,label,.withdrawal-method-card strong) {color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] .validation-panel {background:var(--light-soft)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] :is(#placeKeyBtn,#placeManualBtn):disabled {background:var(--light-soft)!important;color:var(--theme-muted)!important;border-color:var(--border)!important;opacity:1!important;}
html[data-theme-mode="light"] body .topbar :is(button,.game-wallet-balance-card) {box-shadow:none!important;}
html[data-theme-mode="light"] #gameLobby :is(.compact-game-copy,.compact-game-fallback,.game-lobby-empty,.game-category-show-all,.game-category-scroll,.game-category-pagination button) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border-strong)!important;}
html[data-theme-mode="light"] #gameLobby :is(.compact-game-copy strong,.compact-game-copy span,.game-section-kicker,.game-category-heading span) {color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] #refreshLobbyGamesButton {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border-strong)!important;}
html[data-theme-mode="light"] #paymentMethodForm .field small {color:var(--theme-muted)!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;}
html[data-theme-mode="light"] #view-payout-channels :is(.payout-saved-panel span,.payout-saved-panel strong,.payout-saved-panel small) {color:var(--theme-muted)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] #paymentMethodForm .field,
html[data-theme-mode="light"] #gameLobby #lobbyAnnouncement,
html[data-theme-mode="light"] #gameLobby .lobby-sticky-search {background:var(--theme-surface)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] #gameLobby #lobbyAnnouncement :is(span,strong),
html[data-theme-mode="light"] #paymentMethodForm .payout-form-footer span {color:var(--theme-muted)!important;}
/* Keep the security score ring meaningful; only decorative gradients are removed. */
html[data-theme-mode="light"] #view-profile .security-ring {
 background:radial-gradient(circle at center,var(--theme-surface) 55%,transparent 57%),conic-gradient(var(--theme-primary) var(--score,0%),var(--border) 0)!important;
}
html[data-theme-mode="light"] #lobbyFilterCount {color:var(--theme-muted)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] #gameLobby :is(.lobby-category-nav,.compact-game-media,.game-provider-section) {background:var(--theme-surface)!important;border-color:var(--border)!important;box-shadow:none!important;}
html[data-theme-mode="light"] #gameLobby #lobbyStickySearch {box-shadow:none!important;}

/* assets/player-theme-toggle-v3.10.162.css */
/* Player appearance switch: desktop header, mobile Menu and Lotto drawer. */
.player-theme-toggle {
  display:inline-flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;flex:0 0 auto;min-height:44px!important;padding:8px 12px!important;
  border:1px solid var(--border-strong)!important;border-radius:12px!important;
  background:var(--theme-surface)!important;color:var(--theme-text)!important;
  font:inherit;font-size:12px!important;font-weight:600!important;line-height:1.2!important;
  cursor:pointer;white-space:nowrap;touch-action:manipulation;
}
.player-theme-toggle .player-theme-label {color:var(--theme-text)!important;}
.player-theme-toggle .player-theme-track {
  display:block!important;position:relative!important;flex:0 0 36px!important;
  width:36px!important;height:22px!important;padding:2px!important;
  border:1px solid var(--theme-muted)!important;border-radius:999px!important;
  background:var(--theme-muted)!important;box-sizing:border-box!important;
}
.player-theme-toggle .player-theme-thumb {
  display:block!important;width:16px!important;height:16px!important;margin:0!important;
  border-radius:50%!important;background:var(--theme-surface)!important;
  transform:translateX(0);transition:transform .15s ease;
}
.player-theme-toggle[aria-checked="true"] .player-theme-track {
  background:var(--theme-primary)!important;border-color:var(--theme-primary)!important;
}
.player-theme-toggle[aria-checked="true"] .player-theme-thumb {transform:translateX(14px);background:#fff!important;}
.player-theme-toggle:focus-visible {outline:2px solid var(--theme-accent)!important;outline-offset:3px!important;}
.sidebar-nav .player-theme-toggle {width:100%!important;min-width:0!important;}
.account-drawer {grid-template-rows:auto auto auto minmax(0,1fr)!important;}
.player-theme-drawer {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);}
.player-theme-drawer .player-theme-toggle {width:100%!important;}
@media(min-width:861px) {
  .portal.sidebar-collapsed .sidebar-nav .player-theme-toggle {display:none!important;}
}
@media(max-width:860px) {
  .topbar-actions > .player-theme-toggle {display:none!important;}
}
@media(prefers-reduced-motion:reduce) {.player-theme-thumb {transition:none!important;}}

/* assets/player-layout-v3.10.163.css */
/* Responsive shell 163: header controls own their space; branding stays intact. */
html body :is(.portal,.portal.game-active) .topbar {
 height:auto!important;min-height:72px!important;max-height:none!important;
 overflow:visible!important;contain:none!important;align-items:center!important;
 padding:8px 16px!important;gap:12px!important;
}
html body #headerBrandHomeButton {
 min-width:0!important;max-width:100%!important;height:auto!important;
 padding:0!important;gap:10px!important;overflow:visible!important;
}
html body #headerBrandMark.header-brand-mark {
 width:56px!important;height:56px!important;min-width:56px!important;
 min-height:56px!important;max-width:56px!important;max-height:56px!important;
 flex:0 0 56px!important;padding:0!important;overflow:visible!important;
}
html body #headerBrandLogo {
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:100%!important;max-height:100%!important;object-fit:contain!important;
 object-position:center!important;padding:0!important;margin:0!important;
 transform:none!important;clip-path:none!important;border-radius:0!important;
}
html body .header-brand-copy {min-width:0!important;}
html body .header-brand-copy strong {
 max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;
 font-size:clamp(14px,1.1vw,19px)!important;line-height:1.2!important;
}
html body .portal .topbar-actions {
 min-width:0!important;max-width:100%!important;width:auto!important;
 margin:0!important;gap:8px!important;align-items:center!important;
 flex-wrap:wrap!important;justify-content:flex-end!important;
}
html body .portal .content {width:100%!important;max-width:none!important;margin:0!important;}
html body #gameLobby.game-lobby {padding:0 0 20px!important;gap:12px!important;width:100%!important;}
html body #gameLobby > .game-showcase-section {margin:0!important;}
html body #gameLobby .game-section-heading {margin-bottom:8px!important;}
html body #featuredGamesGrid .featured-game-card {min-height:248px!important;}
html body #featuredGamesGrid .featured-game-content {
 min-height:248px!important;padding:24px!important;width:min(70%,620px)!important;
 max-width:70%!important;gap:12px!important;
}
html body #featuredGamesGrid .featured-game-content h3 {font-size:clamp(26px,2.5vw,38px)!important;margin:0!important;}
html body #featuredGamesGrid .featured-game-content p {font-size:14px!important;line-height:1.5!important;margin:0!important;}
html body #lobbyStickySearch {margin:0!important;padding:8px!important;}
html body #lobbyStickySearch .lobby-filter-tools {
 grid-template-columns:minmax(0,1fr) minmax(130px,190px) auto auto!important;
}
html body #gameLobby > #lobbyCategoryNav {padding:6px!important;margin:0!important;}
html body #lobbyLottoResults {
 grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:12px!important;
}
html body #lobbyLottoResults .lobby-result-balls {gap:6px!important;}
html body #lobbyLottoResults .lobby-result-balls > span {width:36px!important;min-width:36px!important;height:36px!important;}
html body .lobby-result-card {padding:14px!important;}
html body .lobby-result-card-head {gap:8px!important;flex-wrap:wrap;margin-bottom:10px!important;}
html body .lobby-result-card-head small {max-width:100%!important;white-space:normal!important;line-height:1.4!important;}
html body .lotto-results-actions {display:flex;flex-wrap:wrap;gap:8px;}
html body .lotto-results-heading {flex-wrap:wrap;}

@media(min-width:861px) {
 html body .portal {grid-template-rows:auto minmax(0,1fr)!important;}
 html body .portal:not(.sidebar-collapsed):not(.game-active):not(.guest-mode) {grid-template-columns:244px minmax(0,1fr)!important;}
 html body .portal .topbar {
  display:grid!important;grid-template-columns:40px minmax(190px,300px) minmax(0,1fr)!important;
  grid-template-areas:"menu brand utility"!important;
 }
 html body #desktopSidebarToggle {grid-area:menu!important;position:static!important;margin:0!important;transform:none!important;inset:auto!important;align-self:center!important;}
 html body #headerBrandHomeButton {grid-area:brand!important;width:100%!important;}
 html body .portal .topbar-title {display:none!important;}
 html body .portal .topbar-actions {grid-area:utility!important;}
 html body .portal:not(.game-active) .sidebar {height:100%!important;min-height:0!important;}
 html body .portal .content {height:100%!important;min-height:0!important;padding:16px 20px 36px!important;}
 html body .portal.game-active .content {padding:0!important;}
 html body .portal .topbar-wallet-cluster {
  display:flex!important;flex:0 1 auto!important;flex-wrap:wrap!important;
  min-width:0!important;max-width:100%!important;gap:8px!important;margin:0!important;
 }
 html body .portal .topbar-wallet-actions {display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
 html body .portal .topbar-wallet-card {width:auto!important;min-width:210px!important;max-width:none!important;}
 html body .portal #gamesWalletAmount {max-width:none!important;overflow:visible!important;}
 html body .portal .topbar-actions .button {min-height:40px!important;padding:8px 12px!important;}
}
@media(max-width:1200px) and (min-width:861px) {
 html body .portal .topbar {grid-template-columns:40px minmax(170px,220px) minmax(0,1fr)!important;}
 html body .portal .topbar-actions {gap:6px!important;}
}
@media(max-width:860px) {
 html body :is(.portal,.portal.game-active) .topbar {
  display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-areas:"brand utility"!important;padding:8px!important;
  padding-top:max(8px,env(safe-area-inset-top))!important;min-height:60px!important;gap:8px!important;
 }
 html body #headerBrandHomeButton {grid-area:brand!important;width:44px!important;min-width:44px!important;max-width:44px!important;}
 html body #headerBrandMark.header-brand-mark {width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;flex-basis:44px!important;}
 html body .portal .header-brand-copy,html body .portal .topbar-title {display:none!important;}
 html body .portal .topbar-actions {grid-area:utility!important;gap:6px!important;}
 html body .portal .topbar-wallet-cluster {max-width:100%!important;flex-wrap:wrap!important;}
 html body :is(.portal,.portal.game-active) .topbar-actions {flex-wrap:wrap!important;}
 html body #portalScreen .topbar-wallet-card {
  grid-template-columns:minmax(0,1fr) 28px!important;min-width:156px!important;
  width:156px!important;max-width:156px!important;flex-basis:156px!important;
 }
 html body #portalScreen .topbar-wallet-card .game-wallet-copy {width:100%!important;max-width:none!important;min-width:0!important;}
 html body #portalScreen #gamesWalletAmount {font-size:12px!important;width:100%!important;max-width:none!important;}
 html body #portalScreen .topbar-wallet-card .game-wallet-icon {display:none!important;}
 html body .portal .content {padding:12px 10px calc(88px + env(safe-area-inset-bottom))!important;}
 html body .portal.game-active .content {padding:0!important;}
 html body #featuredGamesGrid .featured-game-card {min-height:208px!important;}
 html body #featuredGamesGrid .featured-game-content {min-height:208px!important;padding:18px!important;width:80%!important;max-width:80%!important;}
 html body #featuredGamesGrid .featured-game-content h3 {font-size:28px!important;}
 html body #lobbyStickySearch .lobby-filter-tools {grid-template-columns:minmax(0,1fr) minmax(100px,32%)!important;gap:6px!important;}
 html body #refreshLobbyGamesButton {grid-column:1/-1;justify-self:end;padding:8px 12px;min-height:40px;}
 html body .portal.game-active .game-frame {
  height:calc(100dvh - var(--header-height,60px) - var(--player-bottom-nav-height,60px))!important;
  min-height:calc(100dvh - var(--header-height,60px) - var(--player-bottom-nav-height,60px))!important;
 }
 html body .portal.game-active .content,html body .portal.game-active #view-games,html body .portal.game-active #gameRuntime {
  min-height:calc(100dvh - var(--header-height,60px) - var(--player-bottom-nav-height,60px))!important;
 }
}
@media(max-width:430px) {
 html body .portal .topbar {gap:6px!important;}
 html body .portal .topbar-wallet-cluster {gap:4px!important;}
 html body #gamesDepositButton.wallet-quick-action,html body #gamesWithdrawButton.wallet-quick-action {
  width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;
 }
 html body #featuredGamesGrid .featured-game-content {width:90%!important;max-width:90%!important;}
}

/* Complete light surfaces for rendered results, browse controls, and featured copy. */
html[data-theme-mode="light"] body :is(.lobby-result-card,.lotto-results-guest,#lobbyStickySearch,#lobbyCategoryNav,.lobby-announcement,.lobby-search-field,.game-provider-section,.provider-card) {
 background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important;
}
html[data-theme-mode="light"] body .lobby-result-card:hover {background:var(--theme-surface)!important;border-color:var(--border-strong)!important;transform:none!important;}
html[data-theme-mode="light"] body .lobby-result-card-head :is(span,small) {color:var(--theme-muted)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] body .lobby-result-card-head strong {color:var(--theme-text)!important;}
html[data-theme-mode="light"] body #lobbyLottoResults .lobby-result-balls > span {
 background:#fff1bd!important;color:#493000!important;border-color:#d5ad42!important;
 -webkit-text-fill-color:currentColor!important;box-shadow:none!important;
}
html[data-theme-mode="light"] body #lobbyLottoResults .lobby-result-balls > span.is-pending {background:var(--light-soft)!important;color:var(--theme-muted)!important;border-color:var(--border-strong)!important;}
html[data-theme-mode="light"] body :is(.lobby-live-link,.lobby-results-refresh,#refreshLobbyGamesButton,#gameCategoryBack) {
 background:var(--theme-surface)!important;color:var(--theme-primary)!important;border:1px solid var(--border-strong)!important;
}
html[data-theme-mode="light"] body :is(.lobby-filter-count,.game-section-kicker,.announcement-track) {color:var(--theme-muted)!important;}
html[data-theme-mode="light"] body .announcement-viewport {mask-image:none!important;-webkit-mask-image:none!important;}
html[data-theme-mode="light"] body #featuredGamesGrid .featured-game-content {background:color-mix(in srgb,var(--theme-surface) 95%,transparent)!important;}
html[data-theme-mode="light"] body #featuredGamesGrid .featured-game-content :is(h3,p,.game-card-badge) {color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;}
html[data-theme-mode="light"] body #featuredGamesGrid .featured-game-content .button-primary {background:var(--theme-primary)!important;color:var(--theme-button-text)!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important;}
html[data-theme-mode="light"] body .portal.game-active :is(.topbar,.sidebar) {background:var(--theme-surface)!important;}
html[data-theme-mode="light"] body :is(.payout-saved-group,.payout-saved-group-head,.payout-saved-group-icon) {background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important;}
html[data-theme-mode="light"] body .payout-saved-group-head :is(strong,span) {color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important;}

/* assets/player-polish-v3.10.164.css */
/* Player polish 164: readable light surfaces, consistent spacing and preserved scenery. */
:root { --player-card-radius:16px; }
html,body { transition:none!important; }
#portalScreen .panel { border-radius:var(--player-card-radius)!important; }
#portalScreen .panel-spacing { margin-top:16px!important; }
#portalScreen .content { padding-bottom:80px!important; }
#portalScreen .topbar-actions { gap:8px!important; }
#portalScreen .topbar-actions > :is(button,.player-theme-toggle) { min-height:40px!important; }
html body #lobbyLottoResults .lobby-result-balls > span.is-pending { width:36px!important;min-width:36px!important;height:36px!important; }
.player-theme-toggle { padding:8px 12px!important;gap:10px!important;border-radius:12px!important; }
.player-theme-track { width:38px!important;height:22px!important; }
.player-theme-thumb { width:16px!important;height:16px!important; }
.player-theme-toggle[aria-checked="true"] .player-theme-thumb { transform:translateX(16px)!important; }

/* Wallet tabs read as a single control, with one active section. */
#walletActionsModal :is(.wallet-action-tabs,.wallet-inner-tabs),
#withdrawalMethodOptions .withdrawal-method-category-tabs { padding:5px!important;gap:6px!important;border-radius:12px!important; }
#walletActionsModal .wallet-action-tab { min-height:44px!important;padding:10px 14px!important;border-radius:9px!important;font-size:14px!important; }
#walletActionsModal .wallet-inner-tab { min-height:38px!important;border-radius:8px!important; }
#withdrawalModal .modal-card { width:min(760px,calc(100vw - 32px))!important; }
#withdrawalModal .modal-header { align-items:flex-start!important;gap:12px!important; }
#withdrawalModal .modal-header h2 { font-size:22px!important;line-height:1.3!important; }
#withdrawalModal .modal-header p { font-size:13px!important;margin-top:5px!important; }
#withdrawalModal .withdrawal-popup-summary { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important; }
#withdrawalModal .withdrawal-popup-stat { padding:14px!important;border-radius:12px!important;min-width:0!important; }
#withdrawalModal .withdrawal-popup-stat span { font-size:12px!important;line-height:1.4!important;display:block!important; }
#withdrawalModal .withdrawal-popup-stat strong { font-size:clamp(18px,2vw,24px)!important;line-height:1.3!important;margin-top:6px!important;display:block!important;overflow-wrap:anywhere!important; }
#withdrawalModal .withdrawal-turnover-notice { padding:12px 14px!important;border-radius:12px!important; }
#withdrawalModal .withdrawal-turnover-notice p { margin:0!important;font-size:13px!important;line-height:1.5!important; }
#withdrawalModal .field { gap:7px!important;margin-top:14px!important; }
#withdrawalMethodOptions .withdrawal-method-carousel-shell { width:min(100%,380px)!important;padding:12px!important;border-radius:14px!important;gap:8px!important; }
#withdrawalMethodOptions .withdrawal-method-card-stage { min-height:0!important; }
#withdrawalMethodOptions .withdrawal-digital-card { width:100%!important;border-radius:18px!important;padding:18px!important; }
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-logo { width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:12px!important; }
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-provider { margin-top:14px!important;font-size:11px!important; }
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-number { font-size:clamp(18px,2.2vw,26px)!important;letter-spacing:.06em!important;overflow-wrap:anywhere!important; }
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-type { padding:5px 8px!important;font-size:9px!important; }
#withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-footer { padding-top:12px!important; }
#withdrawalMethodOptions .withdrawal-method-carousel-nav { width:100%!important; }
#withdrawalMethodOptions .withdrawal-digital-card-selected { padding:5px 8px!important;font-size:9px!important; }

/* Saved destinations keep their branded card, without the dark rectangular wrapper. */
#view-payout-channels .payout-saved-groups { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:start!important; }
#view-payout-channels .payout-saved-group { padding:16px!important;border-radius:14px!important;min-width:0!important; }
#view-payout-channels .payout-saved-group-heading { display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:14px!important; }
#view-payout-channels .payout-saved-group-heading strong { display:block!important;font-size:15px!important; }
#view-payout-channels .payout-saved-group-heading small { display:block!important;font-size:12px!important;margin-top:3px!important; }
#view-payout-channels .payout-saved-group-icon { width:34px!important;height:34px!important;border-radius:10px!important;display:grid!important;place-items:center!important; }
#view-payout-channels .saved-methods { display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),360px))!important;gap:12px!important;padding:0!important;background:transparent!important; }
#view-payout-channels .payout-digital-card { width:100%!important;max-width:360px!important;border-radius:18px!important;padding:18px!important;aspect-ratio:1.586/1!important; }
#view-payout-channels .payout-digital-card-logo { width:42px!important;height:42px!important;flex-basis:42px!important; }
#view-payout-channels .payout-digital-card-type { font-size:9px!important;padding:5px 8px!important; }
#view-payout-channels .payout-digital-card-remove { min-height:32px!important;padding:6px 10px!important;border-radius:8px!important;font-size:11px!important; }
#view-payout-channels .payout-digital-card-number { font-size:clamp(18px,2vw,25px)!important;letter-spacing:.06em!important;overflow-wrap:anywhere!important; }
#view-payout-channels .payout-empty-card { width:100%!important;min-height:130px!important;display:grid!important;place-items:center!important;text-align:center!important;font-size:13px!important; }

/* One footer surface instead of light islands inside a black border. */
#playerSiteFooter.player-site-footer { margin-top:20px!important;padding:22px!important;border-radius:16px!important;box-shadow:none!important; }
#playerSiteFooter .player-footer-main { display:grid!important;grid-template-columns:1.15fr 1fr 1fr 1.25fr!important;gap:24px!important;background:transparent!important;padding:0!important; }
#playerSiteFooter :is(.player-footer-bottom,.player-footer-trust,.player-footer-group,.player-footer-brand) { background:transparent!important; }
#playerSiteFooter .player-footer-links { display:flex!important;flex-wrap:wrap!important;gap:6px 14px!important;align-items:flex-start!important;margin-top:10px!important; }
#playerSiteFooter .player-footer-link.nav-button { min-height:28px!important;padding:3px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important;font-size:12px!important; }
#playerSiteFooter .player-footer-link.active { text-decoration:underline!important;text-underline-offset:4px!important; }
#playerSiteFooter .player-footer-brand span:not(.brand-mark,.brand-fallback) { font-size:12px!important;line-height:1.6!important; }
#playerSiteFooter .player-footer-trust p { font-size:12px!important;line-height:1.6!important; }
#playerSiteFooter .player-footer-bottom { margin-top:18px!important;padding-top:14px!important;border-top:1px solid var(--border)!important;gap:10px!important;line-height:1.5!important; }
.pwa-install-button { min-height:40px!important;padding:8px 14px!important;font-size:12px!important;bottom:16px!important;left:16px!important;transform:none!important; }
.support-chat-launcher { min-height:44px!important;padding:8px 14px!important;font-size:12px!important;right:16px!important;bottom:16px!important; }
body:is(.support-popup-open,.modal-open) .pwa-install-button,
body:has(.modal:not(.hidden)) .pwa-install-button { visibility:hidden!important;pointer-events:none!important; }
body:has(#portalScreen.game-active) .pwa-install-button { display:none!important; }

/* Light mode keeps the supplied dragon scenery under a bright veil. */
html[data-theme-mode="light"],html[data-theme-mode="light"] body { background:var(--theme-bg)!important; }
html[data-theme-mode="light"] body * { transition-property:transform,opacity!important; }
html[data-theme-mode="light"] body :is(#portalScreen,#authScreen,.auth-screen,.screen,.content,.app-shell,.player-shell,.main-content,.content-area,.app-main,.page-shell,main,.game-shell) { background:transparent!important; }
html[data-theme-mode="light"] body .dragon-video-background { display:block!important;opacity:1!important; }
html[data-theme-mode="light"]:root body::after { background:linear-gradient(135deg,rgba(246,247,251,.88),rgba(255,250,243,.76),rgba(246,247,251,.90))!important; }
html[data-theme-mode="light"]:root body::before { background-image:none!important;opacity:0!important; }
html[data-theme-mode="light"] body :is(.topbar,.sidebar) { background:var(--theme-surface)!important; }
html[data-theme-mode="light"] body :is(.lobby-announcement,.lobby-category-nav,.lobby-tools,#lobbyStickySearch) { border-color:var(--border)!important;box-shadow:0 2px 10px rgba(23,32,51,.04)!important; }
html[data-theme-mode="light"] body .announcement-viewport { mask-image:none!important;-webkit-mask-image:none!important; }
html[data-theme-mode="light"] body #lobbyAnnouncement .announcement-track { display:flex!important;white-space:nowrap!important;color:var(--theme-text)!important;animation:welcomeTicker 32s linear infinite!important; }
html[data-theme-mode="light"] body #lobbyAnnouncementTextClone { display:initial!important; }
html[data-theme-mode="light"] body #lobbyAnnouncement:is(:hover,:focus-within) .announcement-track { animation-play-state:paused!important; }
html[data-theme-mode="light"] body .featured-game-media img { animation:featuredMediaDriftV31088 28s ease-in-out infinite alternate!important; }
html[data-theme-mode="light"] body #featuredGamesGrid .featured-game-content { width:min(48%,500px)!important;min-height:inherit!important;border-radius:0 16px 16px 0!important;padding:22px!important;background:rgba(255,255,255,.96)!important; }
html[data-theme-mode="light"] body #featuredGamesGrid .featured-game-content .game-card-badge { background:var(--light-soft)!important;color:var(--theme-primary)!important;border-color:var(--border)!important; }
html[data-theme-mode="light"] body .game-category-heading h3 { color:var(--theme-text)!important; }

html[data-theme-mode="light"] body #walletActionsModal :is(.wallet-action-tabs,.wallet-inner-tabs),
html[data-theme-mode="light"] body #withdrawalMethodOptions :is(.withdrawal-method-category-tabs,.withdrawal-method-carousel-shell) { background:var(--light-soft)!important;border-color:var(--border)!important;box-shadow:none!important; }
html[data-theme-mode="light"] body #walletActionsModal :is(.wallet-action-tab,.wallet-inner-tab),
html[data-theme-mode="light"] body #withdrawalMethodOptions .withdrawal-method-category-tab { background:transparent!important;color:var(--theme-muted)!important;border-color:transparent!important;box-shadow:none!important; }
html[data-theme-mode="light"] body #walletActionsModal :is(.wallet-action-tab,.wallet-inner-tab).active,
html[data-theme-mode="light"] body #withdrawalMethodOptions .withdrawal-method-category-tab.active { background:var(--theme-primary)!important;color:var(--theme-button-text)!important;border-color:var(--theme-primary)!important; }
html[data-theme-mode="light"] body #withdrawalMethodOptions .withdrawal-method-category-tab small { background:var(--theme-surface)!important;color:var(--theme-muted)!important; }
html[data-theme-mode="light"] body #withdrawalMethodOptions .withdrawal-method-category-tab.active small { background:rgba(255,255,255,.18)!important;color:var(--theme-button-text)!important; }
html[data-theme-mode="light"] body #withdrawalModal .withdrawal-popup-stat { background:var(--light-soft)!important;border:1px solid var(--border)!important; }
html[data-theme-mode="light"] body #withdrawalModal .withdrawal-popup-stat strong { color:var(--theme-text)!important; }
html[data-theme-mode="light"] body #withdrawalModal .withdrawal-popup-stat span { color:var(--theme-muted)!important;background:transparent!important; }
html[data-theme-mode="light"] body #withdrawalMethodOptions :is(.withdrawal-method-carousel-count,.withdrawal-method-empty) { color:var(--theme-muted)!important; }
html[data-theme-mode="light"] body #withdrawalMethodOptions .withdrawal-method-nav-button { background:var(--theme-surface)!important;color:var(--theme-primary)!important;border-color:var(--border-strong)!important; }

html[data-theme-mode="light"] body #view-payout-channels .payout-saved-group { background:var(--light-soft)!important;border:1px solid var(--border)!important; }
html[data-theme-mode="light"] body #view-payout-channels .payout-saved-group-heading { background:transparent!important; }
html[data-theme-mode="light"] body #view-payout-channels .payout-saved-group-heading strong { color:var(--theme-text)!important; }
html[data-theme-mode="light"] body #view-payout-channels .payout-saved-group-heading small { color:var(--theme-muted)!important; }
html[data-theme-mode="light"] body #view-payout-channels .payout-saved-group-icon { color:var(--theme-primary)!important;background:var(--theme-surface)!important;border:1px solid var(--border)!important; }
/* Bank/e-wallet card colors are independent of the page palette. */
html[data-theme-mode="light"] body :is(#view-payout-channels,#withdrawalMethodOptions) .payout-digital-card:is(.visual-1,.brand-maya) { --card-a:#146f4b; }
html[data-theme-mode="light"] body :is(#view-payout-channels,#withdrawalMethodOptions) .payout-digital-card.visual-4 { --card-a:#885215; }
html[data-theme-mode="light"] body :is(#view-payout-channels,#withdrawalMethodOptions) .payout-digital-card.brand-coinsph { --card-a:#9b4a17; }
html[data-theme-mode="light"] body :is(#view-payout-channels,#withdrawalMethodOptions) .payout-digital-card { background:linear-gradient(135deg,var(--card-a,#163f75),var(--card-b,#08264a))!important;color:#fff!important;box-shadow:none!important; }
html[data-theme-mode="light"] body :is(#view-payout-channels,#withdrawalMethodOptions) .payout-digital-card :is(.payout-digital-card-number,.payout-digital-card-provider,.payout-digital-card-footer strong,.payout-digital-card-live,.payout-digital-card-type) { color:#fff!important;-webkit-text-fill-color:currentColor!important; }
html[data-theme-mode="light"] body :is(#view-payout-channels,#withdrawalMethodOptions) .payout-digital-card .payout-digital-card-footer small { color:#fff!important;-webkit-text-fill-color:currentColor!important; }
html[data-theme-mode="light"] body :is(#view-payout-channels,#withdrawalMethodOptions) .payout-digital-card .payout-digital-card-type { background:rgba(0,0,0,.2)!important;border-color:rgba(255,255,255,.35)!important; }
html[data-theme-mode="light"] body :is(#view-payout-channels,#withdrawalMethodOptions) .payout-digital-card .payout-digital-card-watermark { color:rgba(255,255,255,.07)!important;-webkit-text-fill-color:currentColor!important;font-size:90px!important; }
html[data-theme-mode="light"] body #view-payout-channels .payout-digital-card-remove { color:#fff!important;background:rgba(0,0,0,.25)!important;border-color:rgba(255,255,255,.4)!important; }
html[data-theme-mode="light"] body #withdrawalMethodOptions .withdrawal-digital-card-selected { background:#fff!important;color:#172033!important;-webkit-text-fill-color:currentColor!important;border-color:#fff!important; }
html[data-theme-mode="light"] body #playerSiteFooter.player-site-footer { background:var(--theme-surface)!important;color:var(--theme-text)!important;border:1px solid var(--border)!important; }
html[data-theme-mode="light"] body #playerSiteFooter :is(.player-footer-link.nav-button,.player-footer-brand span:not(.brand-mark,.brand-fallback)) { color:var(--theme-muted)!important;-webkit-text-fill-color:currentColor!important; }
html[data-theme-mode="light"] body #playerSiteFooter .player-footer-link:is(:hover,.active) { color:var(--theme-primary)!important; }
html[data-theme-mode="light"] body #refreshTxnsBtn { background:var(--theme-surface)!important;color:var(--theme-primary)!important;-webkit-text-fill-color:currentColor!important;border-color:var(--border-strong)!important; }

/* Support is a light dialog over a transparent backdrop, retaining the underlying page. */
html[data-theme-mode="light"] body #view-support.support-popup-view { background:transparent!important; }
html[data-theme-mode="light"] body #view-support .support-popup-backdrop { background:rgba(23,32,51,.28)!important; }
html[data-theme-mode="light"] body #view-support :is(.support-popup-card,.support-popup-titlebar,.messenger-shell,.messenger-chat,.messenger-chat-header,.smart-help-panel,.support-auto-answer,.messenger-live-panel,.messenger-message-list,.messenger-composer) { background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--border)!important; }
html[data-theme-mode="light"] body #view-support .support-popup-titlebar { border-bottom:1px solid var(--border)!important;padding:16px!important; }
html[data-theme-mode="light"] body #view-support :is(.support-popup-titlebar strong,.messenger-chat-heading strong) { color:var(--theme-text)!important;-webkit-text-fill-color:currentColor!important; }
html[data-theme-mode="light"] body #view-support :is(.support-popup-titlebar span,.messenger-chat-heading span,.chat-meta) { color:var(--theme-muted)!important;-webkit-text-fill-color:currentColor!important; }
html[data-theme-mode="light"] body #view-support .support-popup-close { background:var(--light-soft)!important;color:var(--theme-text)!important;border-color:var(--border)!important; }
html[data-theme-mode="light"] body #view-support :is(.chat-message.support,.support-choice-button,.bot-message-card,.player-queue-banner) { background:var(--light-soft)!important;color:var(--theme-text)!important;border-color:var(--border)!important; }
html[data-theme-mode="light"] body #view-support .chat-message.player { background:var(--light-selected)!important;color:var(--theme-text)!important;border-color:var(--border)!important; }
html[data-theme-mode="light"] body #view-support :is(.support-choice-button,.support-auto-answer) :is(strong,span,p,small) { color:inherit!important;-webkit-text-fill-color:currentColor!important; }

@media (max-width:1080px) {
 #playerSiteFooter .player-footer-main { grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important; }
}
@media (min-width:861px) {
 body:has(#portalScreen:not(.sidebar-collapsed)) .pwa-install-button { left:264px!important; }
 body:has(#portalScreen.sidebar-collapsed) .pwa-install-button { left:112px!important; }
}
@media (min-width:701px) {
 #withdrawalForm { display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;gap:14px!important;align-items:start!important; }
 #withdrawalForm > :is(.withdrawal-popup-summary,.withdrawal-turnover-notice,#submitWithdrawalButton) { grid-column:1/-1!important;margin:0!important; }
 #withdrawalForm > .field { margin:0!important;align-content:start!important; }
 #withdrawalForm > .field:has(#withdrawalMethodOptions) { grid-column:1!important;grid-row:3/span 2!important; }
 #withdrawalForm > .field:has(#withdrawalAmount) { grid-column:2!important;grid-row:3!important; }
 #withdrawalForm > .field:has(#withdrawalPin) { grid-column:2!important;grid-row:4!important; }
}
@media (max-width:860px) {
 #portalScreen .content { padding-bottom:calc(var(--player-bottom-nav-height,64px) + 74px)!important; }
 .pwa-install-button { bottom:calc(var(--player-bottom-nav-height,64px) + 12px)!important;left:12px!important; }
 .support-chat-launcher { bottom:calc(var(--player-bottom-nav-height,64px) + 12px)!important;right:12px!important;width:44px!important;height:44px!important;padding:6px!important; }
 .support-chat-launcher > span:not(.support-chat-launcher-icon,.support-launcher-badge) { display:none!important; }
 #view-payout-channels .payout-saved-groups { grid-template-columns:1fr!important; }
 html[data-theme-mode="light"] body #featuredGamesGrid .featured-game-content { width:min(65%,420px)!important;padding:18px!important; }
}
@media (max-width:520px) {
 #withdrawalModal .modal-card { width:calc(100vw - 20px)!important;padding:16px!important; }
 #withdrawalModal .withdrawal-popup-summary { grid-template-columns:1fr!important;gap:6px!important; }
 #withdrawalModal .withdrawal-popup-stat { display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 12px!important; }
 #withdrawalModal .withdrawal-popup-stat span { max-width:55%!important;font-size:11px!important; }
 #withdrawalModal .withdrawal-popup-stat strong { margin:0!important;font-size:17px!important;text-align:right!important; }
 #withdrawalMethodOptions .withdrawal-method-carousel-shell { width:100%!important;padding:9px!important; }
 #withdrawalMethodOptions .withdrawal-digital-card { padding:14px!important; }
 #withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-logo { width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important; }
 #withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-header { gap:6px!important; }
 #withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-footer { gap:6px!important; }
 #withdrawalMethodOptions .withdrawal-digital-card .payout-digital-card-footer strong { max-width:155px!important;font-size:10px!important; }
 #playerSiteFooter.player-site-footer { padding:18px!important;border-radius:14px!important; }
 #playerSiteFooter .player-footer-main { grid-template-columns:1fr!important;gap:18px!important; }
 #playerSiteFooter .player-footer-bottom { flex-direction:column!important;align-items:flex-start!important; }
 html[data-theme-mode="light"] body #featuredGamesGrid .featured-game-content { width:78%!important;padding:16px!important; }
}
@media (prefers-reduced-motion:reduce) {
 html[data-theme-mode="light"] body .dragon-video-background { display:none!important; }
 html[data-theme-mode="light"]:root body::before { content:""!important;display:block!important;background-image:url('/assets/dragon-background-v3.10.117.webp')!important;opacity:1!important; }
 html[data-theme-mode="light"] body #lobbyAnnouncement .announcement-track,
 html[data-theme-mode="light"] body .featured-game-media img { animation:none!important;transform:none!important; }
 html[data-theme-mode="light"] body #lobbyAnnouncementTextClone { display:none!important; }
}

/* assets/optimization-v3.10.165.css */
/* 165: artwork remains visible; compact cards have one continuous surface. */
html:root body #gameLobby #featuredGamesGrid .featured-game-card { min-height:240px!important;height:240px!important;border-radius:18px!important;isolation:isolate; }
html:root body #gameLobby #featuredGamesGrid .featured-game-media { position:absolute!important;inset:0!important; }
html:root body #gameLobby #featuredGamesGrid .featured-game-media img { width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important; }
html:root body #gameLobby #featuredGamesGrid .featured-game-media::after { background:linear-gradient(90deg,rgba(8,13,25,.9),rgba(8,13,25,.52) 36%,rgba(8,13,25,.06) 76%)!important; }
html:root body #gameLobby #featuredGamesGrid .featured-game-content { position:relative!important;z-index:1;width:48%!important;max-width:520px!important;min-height:240px!important;padding:24px!important;border:0!important;border-radius:0!important;background:transparent!important;gap:10px!important;justify-content:center!important; }
html:root body #gameLobby #featuredGamesGrid .featured-game-content :is(h3,p,.game-card-badge) { color:#fff!important;-webkit-text-fill-color:currentColor!important;text-shadow:0 1px 4px rgba(0,0,0,.5)!important; }
html:root body #gameLobby #featuredGamesGrid .featured-game-content h3 { font-size:32px!important; }
html:root body #gameLobby #featuredGamesGrid .featured-game-content p { display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:340px!important;font-size:14px!important;line-height:1.5!important; }
html:root body #gameLobby #featuredGamesGrid .featured-game-content .game-card-badge { background:rgba(10,15,28,.6)!important;border-color:rgba(255,255,255,.3)!important; }
html:root body #gameLobby #featuredGamesGrid .featured-game-content .button-primary { background:#a71038!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important;min-height:40px!important;border:1px solid rgba(255,255,255,.3)!important; }
html:root body #gameLobby .compact-game-card { display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;max-width:220px!important;padding:0!important;gap:0!important;border-radius:14px!important;overflow:hidden!important;background:var(--theme-surface,#171923)!important;box-shadow:none!important;transform:none!important; }
html:root body #gameLobby .compact-game-card::after { display:none!important;content:none!important; }
html:root body #gameLobby .compact-game-media { width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important;border:0!important;border-radius:0!important;transform:none!important;box-shadow:none!important;overflow:hidden!important; }
html:root body #gameLobby .compact-game-media :is(img,.compact-game-fallback) { width:100%!important;height:100%!important;object-fit:cover!important;transform:none!important;border-radius:0!important; }
html:root body #gameLobby .compact-game-copy { width:100%!important;padding:11px 12px!important;min-height:68px!important;background:var(--theme-surface,#171923)!important; }
html:root body #gameLobby .compact-game-copy strong { font-size:14px!important;line-height:1.35!important;color:var(--theme-text,#fff)!important;-webkit-text-fill-color:currentColor!important; }
html:root body #gameLobby .compact-game-copy span { display:block!important;opacity:1!important;visibility:visible!important;margin-top:4px!important;font-size:11px!important;color:var(--theme-muted,#b9bfcd)!important;-webkit-text-fill-color:currentColor!important; }
html:root body #gameLobby #categoriesSection .game-category-preview-row .compact-game-card { flex:0 0 clamp(150px,18%,220px)!important;min-width:150px!important; }
html:root body #gameLobby .compact-games-grid:not(.game-category-preview-row) { grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:14px!important; }
html:root body #gameLobby .game-category-carousel { position:relative!important;gap:0!important; }
html:root body #gameLobby .game-category-scroll { display:none!important; }
html:root body #gameLobby .game-category-heading { margin:0 0 10px!important; }
html:root body #gameLobby .game-category-heading h3 { color:var(--theme-text,#fff)!important;-webkit-text-fill-color:currentColor!important;font-size:20px!important; }
html:root body #gameLobby .game-category-heading>div>span { color:var(--theme-muted,#b9bfcd)!important;-webkit-text-fill-color:currentColor!important; }
html:root body #gameLobby .game-category-show-all { padding:8px 12px!important;min-height:38px!important; }
html[data-theme-mode="light"]:root body #manualPicker :is(.ball,.selected-ball) { background:#edf3fa!important;background-image:none!important;color:#183658!important;-webkit-text-fill-color:currentColor!important;border:1px solid #bccadd!important;box-shadow:0 2px 4px rgba(23,45,70,.12)!important;text-shadow:none!important;opacity:1!important; }
html[data-theme-mode="light"]:root body #manualPicker .ball.selected { background:#a71038!important;color:#fff!important;border-color:#a71038!important; }
html[data-theme-mode="light"]:root body #manualPicker .ball:hover:not(.selected) { background:#dde9f6!important;border-color:#778eaa!important; }
html[data-theme-mode="light"]:root body #manualPicker :is(.pick-column,.lp3-wrap) { background:#f8fafc!important;border-color:#dce3ed!important; }
html[data-theme-mode="light"]:root body #manualPicker .pick-label { background:#e8eef5!important;color:#263a54!important;-webkit-text-fill-color:currentColor!important;border-color:#d3dce8!important;text-shadow:none!important; }
html[data-theme-mode="light"]:root body #rateRow,html[data-theme-mode="light"]:root body #rateRow :is(span,strong) { color:#263a54!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important; }
html[data-theme-mode="light"]:root body :is(.result-item,.bet-item,.transaction-item) { background:#f8fafc!important;background-image:none!important;color:#1e293b!important;border:1px solid #d7e0eb!important;box-shadow:none!important;backdrop-filter:none!important; }
html[data-theme-mode="light"]:root body :is(.result-top,.result-combo,.bet-combo,.bet-top,.bet-meta,.bet-meta strong) { color:#263a54!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important; }
html[data-theme-mode="light"]:root body :is(.result-note,.result-top span,.bet-meta span) { color:#53657b!important;-webkit-text-fill-color:currentColor!important; }
html[data-theme-mode="light"]:root body :is(.core-status-banner,.game-status-notice) { background:#fff1f3!important;color:#8e1234!important;border-color:#e4a6b6!important; }
html[data-theme-mode="light"]:root body :is(.core-status-banner,.game-status-notice) :is(strong,span) { color:#8e1234!important;-webkit-text-fill-color:currentColor!important; }
.checkout-progress165 { padding:12px 14px;margin:10px 0;border:1px solid var(--border,#65708a);border-radius:12px;background:var(--theme-surface,#171923);color:var(--theme-text,#fff);font:inherit; }
.checkout-progress165[hidden] { display:none; }
.checkout-receipt165 { max-height:360px;overflow:auto;overscroll-behavior:contain; }
.checkout-receipt165 table { width:100%;border-collapse:collapse;font-size:12px; }
.checkout-receipt165 th,.checkout-receipt165 td { padding:8px;text-align:left;border-bottom:1px solid var(--border,#65708a);word-break:break-word; }
.checkout-receipt165 summary { cursor:pointer;font-weight:700;padding:8px 0; }
@media(max-width:600px) {
 html:root body #gameLobby #featuredGamesGrid .featured-game-card { height:220px!important;min-height:220px!important; }
 html:root body #gameLobby #featuredGamesGrid .featured-game-content { width:78%!important;max-width:78%!important;min-height:220px!important;padding:18px!important; }
 html:root body #gameLobby #featuredGamesGrid .featured-game-content h3 { font-size:26px!important; }
 html:root body #gameLobby #featuredGamesGrid .featured-game-content p { font-size:12px!important; }
 html:root body #gameLobby #categoriesSection .game-category-preview-row .compact-game-card { flex-basis:148px!important;min-width:148px!important; }
 html:root body #gameLobby .compact-games-grid:not(.game-category-preview-row) { grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important; }
}

html[data-theme-mode="light"]:root body .app.game-disabled :is(.mode-btn,.type-btn) { opacity:1!important; }
html[data-theme-mode="light"]:root body .app.game-disabled :is(.mode-btn,.type-btn).active { background:#8e354f!important;color:#fff!important;-webkit-text-fill-color:#fff!important; }
html[data-theme-mode="light"]:root body :is(#gameStatusNotice,#gameDisabledNotice) { color:#8e1234!important;-webkit-text-fill-color:currentColor!important; }

html[data-theme-mode="light"]:root body #toast.error { background:#fff1f3!important;color:#8e1234!important;-webkit-text-fill-color:currentColor!important;border-color:#d68b9f!important;box-shadow:0 4px 14px rgba(52,30,40,.12)!important; }

/* assets/player-responsive-v3.10.167.css */
/* Desktop game tiles: seven per row. Admin section order, visibility and style remain authoritative. */
html:root body #gameLobby .compact-game-card {max-width:none!important;min-width:0!important;}
html:root body #gameLobby .compact-game-copy strong {overflow-wrap:anywhere;}
html:root body #gameLobby .compact-game-copy span {overflow-wrap:anywhere;}
html:root body #gameLobby #lobbyAnnouncement {order:0!important;}
html:root body #gameLobby #lobbyStickySearch {order:1!important;}
html:root body #gameLobby #lobbyCategoryNav {order:2!important;}
html:root body #gameLobby #gameCategoryPage {order:3!important;}
html:root body #gameLobby:not(.category-page-open):not(.lotto-only-lobby) > #providersSection[data-layout-disabled="false"]:not(.hidden) {display:block!important;}
html:root body #lobbyCategoryNav [data-lobby-target="providersSection"]:not(.hidden) {display:inline-flex!important;}
html:root body #authScreen #closeAuthModalButton {z-index:5!important;width:44px!important;height:44px!important;touch-action:manipulation;}
html:root body #authScreen .brand-row {padding-right:44px;min-width:0;}
html:root body #gameLobby .game-category-preview-row {overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
@media (min-width:861px) {
  html:root body #gameLobby #categoriesSection .game-category-preview-row {gap:12px!important;}
  html:root body #portalScreen #gameLobby :is(#newGamesGrid,#hotGamesGrid,#mostPlayedGamesGrid,#gameCategoryPageGrid).compact-games-grid {grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:12px!important;}
  html:root body #gameLobby #categoriesSection .game-category-preview-row .compact-game-card {flex:0 0 calc((100% - 72px)/7)!important;min-width:0!important;}
  html:root body #gameLobby :is(#lobbyLottoResults,#gameProviderList) {display:grid!important;grid-template-columns:repeat(var(--layout-columns-desktop,3),minmax(0,1fr))!important;}
}
@media (max-width:860px) {
  html:root body #gameLobby :is(#lobbyLottoResults,#gameProviderList) {display:grid!important;grid-template-columns:repeat(var(--layout-columns-mobile,1),minmax(0,1fr))!important;}
  html:root body #portalScreen #gameLobby :is(#newGamesGrid,#hotGamesGrid,#mostPlayedGamesGrid,#gameCategoryPageGrid).compact-games-grid {grid-template-columns:repeat(var(--layout-columns-mobile,2),minmax(0,1fr))!important;gap:10px!important;}
  html:root body #gameLobby #categoriesSection .game-category-preview-row .compact-game-card {flex:0 0 calc((100% - (var(--layout-columns-mobile,2) - 1)*10px)/var(--layout-columns-mobile,2))!important;min-width:0!important;max-width:none!important;}
  html:root body #gameLobby #categoriesSection .game-category-preview-row {gap:10px!important;}
}
/* Preserve the Admin card-style choice instead of flattening every tile to one size. */
html:root body #gameLobby [data-layout-size="compact"] .compact-game-copy {padding:8px!important;min-height:52px!important;}
html:root body #gameLobby [data-layout-size="compact"] .compact-game-copy strong {font-size:12px!important;}
html:root body #gameLobby [data-layout-size="compact"] .compact-game-media {aspect-ratio:1/1!important;}
html:root body #gameLobby [data-layout-size="hero"] .compact-game-media {aspect-ratio:16/10!important;}
html:root body #gameLobby [data-layout-size="hero"] .compact-game-copy {padding:14px!important;min-height:76px!important;}
/* Tiles paint immediately; only section headings may use the small reveal enhancement. */
html:root body #gameLobby .compact-game-card {opacity:1!important;visibility:visible!important;animation:none!important;transition:background-color .12s,border-color .12s!important;}
html:root body #gameLobby .compact-game-card.motion-reveal {transform:none!important;}
@media (hover:none), (pointer:coarse), (prefers-reduced-motion:reduce) {
  html:root body .dragon-video-background {display:none!important;}
  html:root body::before {opacity:1!important;background-image:url('/assets/dragon-background-v3.10.117.webp')!important;}
  html:root body #gameLobby .motion-reveal {opacity:1!important;transform:none!important;animation:none!important;}
  html:root body :is(.topbar,.sidebar,.game-showcase-section,.game-category-block,.compact-game-card,#lobbyStickySearch,.auth-card,.auth-screen) {backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
  html:root body .portal.auth-open {filter:none!important;}
}
/* Viewport fallback also handles Safari address bars, rotation and on-screen keyboards. */
@media (max-width:860px) {
  html:root body .portal.game-active .game-frame {height:calc(var(--player-viewport-height,100vh) - var(--header-height,60px) - var(--player-bottom-nav-height,60px))!important;min-height:0!important;}
  html:root body .portal.game-active :is(.content,#view-games,#gameRuntime) {min-height:0!important;}
  html:root body :is(.auth-screen,.modal-overlay,.account-drawer) {max-height:var(--player-viewport-height,100vh)!important;}
  html:root body :is(.auth-card,.modal-card,.account-drawer-card) {max-height:calc(var(--player-viewport-height,100vh) - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;}
}
@media (pointer:coarse) {
  html:root body :is(input,select,textarea) {font-size:16px!important;}
  html:root body :is(.game-category-show-all,#gameCategoryBack,.game-category-pagination button) {min-height:44px!important;touch-action:manipulation;}
}

/* assets/player-lobby-repair-v3.10.168.css */
/* Result cards paint immediately, independently of section reveal observers. */
html:root body #gameLobby #lobbyLottoResults .lobby-result-card {
  opacity:1!important;visibility:visible!important;transform:none!important;
  animation:none!important;transition:none!important;
}
html:root body #gameLobby #lobbyLottoResults .lobby-result-balls > span {
  animation:none!important;opacity:1!important;transform:none!important;
}
html:root body #gameLobby #lobbyLottoResults .lobby-results-status {
  grid-column:1/-1;margin:0;padding:12px 14px;border:1px solid var(--border);
  border-radius:12px;background:var(--theme-surface,#171923);
  color:var(--theme-text,#fff5d8);font-size:13px;line-height:1.5;
}
/* Artwork has its own bounded frame; titles and actions never cover it. */
html:root body #gameLobby #featuredGamesGrid.featured-games-grid {
  grid-auto-flow:row!important;grid-auto-columns:auto!important;
  grid-template-columns:repeat(var(--layout-columns-desktop,1),minmax(0,680px))!important;
  gap:16px!important;overflow-x:visible!important;scroll-snap-type:none!important;
  width:100%!important;max-width:100%!important;align-items:start!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-card {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;max-width:680px!important;min-width:0!important;
  height:auto!important;min-height:0!important;padding:0!important;
  content-visibility:visible!important;border-radius:16px!important;
  transform:none!important;box-shadow:none!important;
  background:var(--theme-surface,#171923)!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-media {
  position:relative!important;inset:auto!important;width:100%!important;
  height:auto!important;min-height:0!important;aspect-ratio:16/9!important;
  overflow:hidden!important;background:var(--theme-bg,#090507)!important;
  animation:none!important;transform:none!important;filter:none!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-media img {
  position:absolute!important;inset:0!important;
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;object-fit:contain!important;object-position:center!important;
  transform:none!important;filter:none!important;animation:none!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-card::after,
html:root body #gameLobby #featuredGamesGrid .featured-game-media::before,
html:root body #gameLobby #featuredGamesGrid .featured-game-media::after {
  display:none!important;content:none!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-content {
  position:relative!important;inset:auto!important;z-index:auto!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-content:start!important;align-items:center!important;gap:6px 16px!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  min-height:0!important;height:auto!important;padding:16px!important;
  background:var(--theme-surface,#171923)!important;text-shadow:none!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-content > .game-card-badges {
  display:none!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-content h3 {
  grid-column:1;grid-row:1;margin:0!important;font-size:20px!important;
  line-height:1.3!important;color:var(--theme-text,#fff5d8)!important;
  -webkit-text-fill-color:currentColor!important;text-shadow:none!important;overflow-wrap:anywhere;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-content p {
  grid-column:1;grid-row:2;display:block!important;margin:0!important;
  max-width:none!important;font-size:13px!important;line-height:1.5!important;
  color:var(--theme-muted,#b9bfcd)!important;-webkit-text-fill-color:currentColor!important;
  text-shadow:none!important;overflow-wrap:anywhere;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-content .button-primary {
  grid-column:2;grid-row:1/3;min-height:44px!important;margin:0!important;
  white-space:nowrap;align-self:center!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-content > * {
  animation:none!important;
}
@media (max-width:860px) {
  html:root body #gameLobby #featuredGamesGrid.featured-games-grid {
    grid-template-columns:repeat(var(--layout-columns-mobile,1),minmax(0,1fr))!important;
  }
  html:root body #gameLobby #featuredGamesGrid .featured-game-content {
    grid-template-columns:minmax(0,1fr)!important;padding:14px!important;gap:8px!important;
  }
  html:root body #gameLobby #featuredGamesGrid .featured-game-content h3 {font-size:18px!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content .button-primary {
    grid-column:1;grid-row:3;justify-self:start;
  }
}

/* assets/player-discovery-v3.10.169.css */
/* Preserve the existing 888 theme variables and saved light/dark preference. */
html:root body #gameLobby #featuredSection {width:100%;max-width:1280px;margin-inline:auto!important;}
html:root body #gameLobby #featuredSection .featured-section-heading {max-width:1200px;margin-inline:auto;}
html:root body #gameLobby .featured-carousel169 {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;align-items:center;min-width:0;}
html:root body #gameLobby #featuredGamesGrid.featured-games-grid {
  display:flex!important;grid-template-columns:none!important;grid-auto-flow:unset!important;
  gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
  max-width:1200px!important;min-width:0!important;margin-inline:auto!important;
  position:relative;align-items:flex-start!important;grid-column:2;grid-row:1;
}
html:root body #gameLobby #featuredPrevious169 {grid-column:1;grid-row:1;}
html:root body #gameLobby #featuredNext169 {grid-column:3;grid-row:1;}
html:root body #gameLobby #featuredGamesGrid::-webkit-scrollbar {display:none;}
html:root body #gameLobby #featuredGamesGrid .featured-game-card {flex:0 0 100%!important;max-width:none!important;scroll-snap-align:start;scroll-snap-stop:always;}
html:root body #gameLobby #featuredGamesGrid .featured-game-media {aspect-ratio:3.2/1!important;}
/* Older poster styles force white/shadowed copy even in saved light mode. */
html:root body #portalScreen #view-games #gameLobby #featuredSection #featuredGamesGrid .featured-game-card .featured-game-content h3 {
  color:var(--theme-text,#fff5d8)!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;
}
html:root body #portalScreen #view-games #gameLobby #featuredSection #featuredGamesGrid .featured-game-card .featured-game-content p {
  color:var(--theme-muted,#b9bfcd)!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;
}
html:root body #gameLobby .featured-arrow169 {width:44px;min-height:44px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--theme-surface,#171923);color:var(--theme-accent,#f4c35a);font-size:32px;line-height:1;touch-action:manipulation;}
html:root body #gameLobby .featured-arrow169:disabled {opacity:.35;}
html:root body #gameLobby .featured-dots169 {display:flex;justify-content:center;gap:2px;margin-top:4px;}
html:root body #gameLobby .featured-dots169 button {display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;touch-action:manipulation;}
html:root body #gameLobby .featured-dots169 button::before {content:'';width:8px;height:8px;border-radius:50%;background:var(--theme-muted,#b9bfcd);opacity:.45;}
html:root body #gameLobby .featured-dots169 button[aria-current="true"]::before {width:20px;border-radius:5px;background:var(--theme-accent,#f4c35a);opacity:1;}
html:root body #gameLobby #lobbyCategoryNav {display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:10px!important;max-width:1280px!important;width:100%!important;margin-inline:auto!important;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;position:relative!important;top:auto!important;min-width:0;}
html:root body #gameLobby #lobbyCategoryNav .lobby-category-button {flex:0 0 auto!important;min-width:88px;min-height:64px;display:flex!important;flex-direction:column;gap:6px;align-items:center;justify-content:center;touch-action:manipulation;border:1px solid var(--border);border-radius:12px;color:var(--theme-text,#fff5d8);background:var(--theme-surface,#171923);font-size:13px;}
html:root body #gameLobby #lobbyCategoryNav .lobby-category-button > span:first-child {font-size:22px;line-height:1;}
html:root body #gameLobby #lobbyCategoryNav .lobby-category-button.active {border-color:var(--theme-accent,#f4c35a);color:var(--theme-accent,#f4c35a);}
html:root body #gameLobby #featuredSection {order:1!important;}
html:root body #gameLobby #lobbyCategoryNav {order:2!important;}
html:root body #gameLobby #lobbyStickySearch {order:3!important;}
html:root body #gameLobby #playerDiscoverySection169 {order:4!important;}
html:root body #gameLobby #gameCategoryPage {order:5!important;}
html:root body #gameLobby .player-game-tile169 {position:relative;min-width:0;}
html:root body #gameLobby .player-game-tile169 > .compact-game-card {display:flex;width:100%!important;height:100%;flex:none!important;}
html:root body #gameLobby .player-favorite169 {position:absolute;top:6px;right:6px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--border);border-radius:50%;font-size:25px;background:var(--theme-surface,#171923);color:var(--theme-accent,#f4c35a);touch-action:manipulation;}
html:root body #gameLobby #playerDiscoverySection169 h3 {font-size:14px;margin:14px 0 10px;color:var(--theme-text,#fff5d8);}
html:root body #gameLobby #playerDiscoveryNote169 {font-size:12px;color:var(--theme-muted,#b9bfcd);margin:6px 0 0;line-height:1.5;}
html:root body #gameLobby .player-searches169 {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
html:root body #gameLobby .player-searches169 button,
html:root body #gameLobby #clearDiscoveryHistory169 {min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:10px;color:var(--theme-text,#fff5d8);background:var(--theme-surface,#171923);font-size:12px;overflow-wrap:anywhere;touch-action:manipulation;}
html:root body #gameLobby .player-discovery-empty169 {grid-column:1/-1;color:var(--theme-muted,#b9bfcd);font-size:13px;line-height:1.5;}
html:root body #gameLobby .game-category-preview-row > .player-game-tile169 {flex:0 0 calc((100% - 72px)/7);min-width:0;}
html:root body #gameLobby .game-lobby-empty > img {display:block;object-fit:contain;margin:0 auto 12px;}
html:root body #gameLobby [hidden] {display:none!important;}
html:root body #gameLobby :is(.featured-arrow169,.featured-dots169 button,.player-favorite169,.lobby-category-button):focus-visible {outline:2px solid var(--theme-accent,#f4c35a);outline-offset:3px;}
@media (min-width:861px) {
  html:root body #gameLobby :is(#playerUsualGames169,#playerRecentGames169).compact-games-grid {display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:12px!important;}
}
@media (max-width:860px) {
  html:root body #gameLobby .featured-carousel169 {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;}
  html:root body #gameLobby #featuredGamesGrid.featured-games-grid {grid-column:1/-1;grid-row:1;}
  html:root body #gameLobby #featuredPrevious169 {grid-column:1;grid-row:2;justify-self:start;}
  html:root body #gameLobby #featuredNext169 {grid-column:2;grid-row:2;justify-self:end;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-media {aspect-ratio:16/9!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content {grid-template-columns:minmax(0,1fr) auto!important;padding:12px!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content h3 {font-size:16px!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content p {font-size:12px!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content .button-primary {grid-column:2!important;grid-row:1/3!important;font-size:12px!important;padding:10px 12px!important;}
  html:root body #gameLobby #lobbyCategoryNav .lobby-category-button {min-width:80px;min-height:64px;}
  html:root body #gameLobby :is(#playerUsualGames169,#playerRecentGames169).compact-games-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  html:root body #gameLobby .game-category-preview-row > .player-game-tile169 {flex:0 0 calc((100% - (var(--layout-columns-mobile,2) - 1)*10px)/var(--layout-columns-mobile,2));}
  html:root body #gameLobby #playerDiscoverySection169 .game-section-heading {flex-wrap:wrap;}
  html:root body #gameLobby #lobbyGameSearchInput {font-size:16px!important;min-height:44px!important;}
}
@media (prefers-reduced-motion:reduce) {
  html:root body #gameLobby #featuredGamesGrid {scroll-behavior:auto!important;}
}

/* assets/player-banner-fit-v3.10.170.css */
/* Fit uploaded artwork to its full tile width using its natural proportions.
   The existing theme, carousel, copy/CTA placement and logo fallback remain. */
html:root body #gameLobby #featuredGamesGrid .featured-game-media.has-cover-image {
  display:block!important;
  aspect-ratio:auto!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-media.has-cover-image > img {
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  /* Reserve a landscape area before loading; use the intrinsic ratio after. */
  aspect-ratio:auto 16 / 9!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* assets/player-motion-ui-v3.10.171.css */
/* Fixed, composited artwork remains visible during loading and scrolling. */
html:root.background-runtime171 body::before {
  opacity:0!important;background-image:none!important;animation:none!important;
}
html:root body .dragon-background-stage171 {
  position:fixed;inset:0 0 auto 0;width:100%;height:100vh;height:100lvh;
  z-index:-2;overflow:hidden;pointer-events:none;user-select:none;
  background:#080202;contain:layout paint;isolation:isolate;
}
html:root body .dragon-background-poster171 {
  position:absolute;inset:-2%;z-index:0;
  background:url('/assets/dragon-background-v3.10.117.webp') center center/cover no-repeat;
  animation:dragonPosterDrift171 30s ease-in-out infinite alternate!important;
  animation-play-state:running!important;transform:translate3d(0,0,0) scale(1.02);
  backface-visibility:hidden;will-change:transform;
}
html:root body .dragon-background-stage171 > .dragon-video-background {
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-height:0!important;z-index:1!important;
  object-fit:cover!important;opacity:0!important;transition:opacity 120ms linear!important;
  transform:translateZ(0);backface-visibility:hidden;
}
html:root[data-dragon-background-state171="video"] body .dragon-background-stage171 > .dragon-video-background {opacity:1!important;}
html:root[data-dragon-background-state171="video"] body .dragon-background-poster171 {
  animation-play-state:paused!important;will-change:auto;
}
html:root[data-dragon-background-state171="still"] body .dragon-background-poster171 {
  animation-play-state:paused!important;will-change:auto;
}
@keyframes dragonPosterDrift171 {
  from {transform:translate3d(-.7%,0,0) scale(1.02);}
  to {transform:translate3d(.7%,.6%,0) scale(1.035);}
}
/* Let the same scene show through the loading overlay, including cold refresh. */
html:root.background-runtime171 body :is(#loadingScreen,#loading) {
  background:rgba(9,5,7,.32)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html:root.background-runtime171[data-theme-mode="light"] body :is(#loadingScreen,#loading) {
  background:rgba(246,247,251,.35)!important;
}
/* The title and action now sit on the artwork; no extra information panel. */
html:root body #gameLobby #featuredGamesGrid .featured-game-card {position:relative!important;overflow:hidden!important;}
html:root body #gameLobby #featuredGamesGrid .featured-game-content {
  position:absolute!important;inset:auto 0 0!important;z-index:2!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;gap:5px 14px!important;
  width:100%!important;height:auto!important;min-height:0!important;
  padding:30px 18px 16px!important;border-radius:0!important;
  background:linear-gradient(180deg,transparent,rgba(9,5,7,.80) 40%,rgba(9,5,7,.94))!important;
  --theme-text:#fff5d8;--theme-muted:#e8e0ce;
  color:#fff5d8!important;pointer-events:none;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-content h3 {margin:0!important;line-height:1.25!important;}
html:root body #gameLobby #featuredGamesGrid .featured-game-content p {
  display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden!important;line-height:1.4!important;
}
html:root body #gameLobby #featuredGamesGrid .featured-game-content .button-primary {
  grid-column:2!important;grid-row:1/3!important;min-height:44px!important;
  align-self:end!important;white-space:nowrap;
}
html:root body #gameLobby #lobbyCategoryNav {gap:7px!important;}
html:root body #gameLobby #lobbyCategoryNav .lobby-category-button {
  min-width:76px!important;min-height:52px!important;padding:7px 9px!important;
  gap:4px!important;border-radius:10px!important;font-size:12px!important;
}
html:root body #gameLobby #lobbyCategoryNav .lobby-category-button > span:first-child {font-size:18px!important;}
html:root body #gameLobby #lobbyCategoryNav .lobby-category-button svg {width:18px!important;height:18px!important;}
@media (max-width:860px) {
  html:root body .dragon-background-poster171 {background-position:32% center;}
  html:root body .dragon-background-stage171 > .dragon-video-background {object-position:32% center!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content {padding:24px 12px 12px!important;gap:4px 10px!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content h3 {font-size:16px!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content p {font-size:11px!important;}
  html:root body #gameLobby #featuredGamesGrid .featured-game-content .button-primary {padding:10px 12px!important;font-size:12px!important;}
  html:root body #gameLobby #lobbyCategoryNav {gap:6px!important;}
  html:root body #gameLobby #lobbyCategoryNav .lobby-category-button {min-width:68px!important;font-size:11px!important;}
}
@media (prefers-reduced-motion:reduce) {
  html:root body .dragon-background-poster171 {animation:none!important;transform:none;will-change:auto;}
  html:root body .dragon-background-stage171 > .dragon-video-background {display:none!important;transition:none!important;}
}

/* Keep the existing888 palettes, layout and171 background lifetime. */
html.player-shell-pending172 #loadingScreen {display:none!important}
html.player-shell-pending172 #portalScreen {display:grid!important}
html.player-shell-pending172 .player-only-control,
html.player-shell-pending172 .sidebar-footer,
html.player-shell-pending172 #sidebarLogoutButton {display:none!important}
.public-shell-status172 {margin:0;padding:8px 12px;color:var(--theme-muted,#e8e0ce);font-size:12px;line-height:1.4}
.public-shell-status172:empty {display:none}
.player-load-more172 {display:flex;justify-content:center;padding:14px;min-height:52px}
.player-load-more172 button {min-height:44px;padding:10px 18px;border:1px solid var(--theme-border,rgba(255,213,77,.3));border-radius:12px;background:var(--theme-card,#24100e);color:var(--theme-text,#fff5d8);font:inherit;cursor:pointer}
#gameLobby .compact-game-media img:not([src]) {visibility:hidden}
#gameLobby .compact-game-media {background:var(--theme-card,#24100e)}
#gameLobby picture {display:contents}
html:root body #gameLobby #featuredGamesGrid .featured-game-media.no-cover-image img {width:min(55vw,220px)!important;height:auto!important;max-height:200px!important;object-fit:contain!important}
html:root body #gameLobby :is(.compact-game-card,.compact-game-media,.player-game-tile169,.provider-chip,.lobby-result-card,.lobby-live-link) {
  transition-property:transform,opacity!important;will-change:auto!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html:root body #gameLobby .compact-game-media {transform:none;box-shadow:0 4px 12px rgba(0,0,0,.16)!important}
html:root body #gameLobby .compact-game-card:hover:not(:disabled) .compact-game-media {box-shadow:0 4px 12px rgba(0,0,0,.16)!important}
@media (pointer:coarse),(max-width:860px) {
 html:root body #portalScreen :is(.topbar,.lobby-sticky-search,.player-sidebar,.game-showcase-section) {backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html:root body #gameLobby .compact-game-card:hover .compact-game-media {transform:none!important}
}
@media (prefers-reduced-motion:reduce) {
 #gameLobby :is(.compact-game-card,.compact-game-media,.player-load-more172) {transition:none!important}
}
html:root body .dragon-background-poster171 {background-image:url('/assets/optimized172/poster-desktop-a0a91323c97effa4.webp')!important;background-image:image-set(url('/assets/optimized172/poster-desktop-bb7ac2f4e201acd9.avif') type('image/avif'),url('/assets/optimized172/poster-desktop-a0a91323c97effa4.webp') type('image/webp'))!important;}
@media (max-width:860px) {html:root body .dragon-background-poster171 {background-image:url('/assets/optimized172/poster-mobile-ee97e6edb9e7e52c.webp')!important;background-image:image-set(url('/assets/optimized172/poster-mobile-fa8787de6db22bbc.avif') type('image/avif'),url('/assets/optimized172/poster-mobile-ee97e6edb9e7e52c.webp') type('image/webp'))!important;}
}
