/* RynStore V14: contrast corrections for light panels on dark top-up pages.
   Loaded last, so both legacy and Reference/Premium themes remain intact. */

/* Roblox: the account preview uses a PALE GREEN background. Its text must be DARK. */
body.game-page .roblox-profile-card {
  color: #152332 !important;
  background: #eef8f1 !important;
  border-color: #accfbd !important;
  color-scheme: light;
}
body.game-page .roblox-profile-card .roblox-profile-info strong {
  color: #102130 !important;
  font-weight: 750 !important;
}
body.game-page .roblox-profile-card .roblox-found {
  color: #116a46 !important;
}
body.game-page .roblox-profile-card .roblox-username,
body.game-page .roblox-profile-card .roblox-profile-info small,
body.game-page .roblox-profile-card .roblox-profile-avatar small {
  color: #475569 !important;
}
body.game-page .roblox-profile-card .roblox-profile-info a {
  color: #4c1d95 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.game-page .roblox-profile-card .roblox-profile-info a:hover,
body.game-page .roblox-profile-card .roblox-profile-info a:focus-visible {
  color: #6d28d9 !important;
}

/* MLBB: returned profile information sits on another pale card. */
body.game-page .mlbb-profile-card {
  color: #172332 !important;
  background: #eef8f1 !important;
  border-color: #accfbd !important;
  color-scheme: light;
}
body.game-page .mlbb-profile-card strong,
body.game-page .mlbb-profile-card dd {
  color: #172332 !important;
}
body.game-page .mlbb-profile-card dt,
body.game-page .mlbb-profile-card .mlbb-profile-ids,
body.game-page .mlbb-profile-card .mlbb-profile-status {
  color: #475569 !important;
}
body.game-page .mlbb-profile-card .mlbb-found { color: #116a46 !important; }

/* Pale exact-price notices across ALL top-up pages. */
body.game-page .quote-status,
body.game-page .helper.quote-status,
body.game-page #quote-status {
  color: #39235f !important;
  background: #f3efff !important;
  border-color: #c6b7e7 !important;
  font-weight: 600;
  text-shadow: none !important;
  color-scheme: light;
}
body.game-page #quote-status a { color: #4c1d95 !important; }

/* MLBB region picker: retain the bright white pill, but make its label legible. */
body.game-page .mlbb-region-trigger {
  background: #fff !important;
  color: #172332 !important;
  border-color: #bac5d4 !important;
  color-scheme: light;
}
body.game-page .mlbb-region-trigger:hover,
body.game-page .mlbb-region-trigger:focus-visible {
  background: #f6f3ff !important;
  border-color: #8964cc !important;
}
body.game-page .mlbb-region-trigger #mlbb-region-label,
body.game-page .mlbb-region-trigger span {
  color: #172332 !important;
  background: transparent !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}
body.game-page .mlbb-region-trigger svg { color: #475569 !important; stroke: currentColor; }
body.game-page .mlbb-region-trigger img,
body.game-page .mlbb-region-trigger #mlbb-region-flag {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Region pop-up itself is dark. Keep its unselected items LIGHT,
   while the selected lilac option has DARK text. */
body.game-page dialog.mlbb-region-dialog {
  background: #141922 !important;
  border: 1px solid #364356 !important;
  color: #eef2f7 !important;
  color-scheme: dark;
}
body.game-page dialog.mlbb-region-dialog .mlbb-region-head h2,
body.game-page dialog.mlbb-region-dialog #mlbb-region-description {
  color: #e2e8f0 !important;
}
body.game-page dialog.mlbb-region-dialog .mlbb-region-option {
  color: #e2e8f0 !important;
  background: #1d2632 !important;
  border-color: #344153 !important;
}
body.game-page dialog.mlbb-region-dialog .mlbb-region-option:hover,
body.game-page dialog.mlbb-region-dialog .mlbb-region-option:focus-visible {
  color: #fff !important;
  background: #29364b !important;
  border-color: #7c9fb4 !important;
}
body.game-page dialog.mlbb-region-dialog .mlbb-region-option[aria-pressed="true"] {
  color: #35205d !important;
  background: #eee6ff !important;
  border-color: #a58ada !important;
}
