
/* 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;
  }
}
