/* V81.1 — Keep the 4 AM / V79 popup design; remove only dark inner fills. */
:root{
  --ldr-popup-option-purple:#2b0759;
}

/* Content frames keep their original borders, spacing, shadows, and button palette. */
html body[data-page="home"] :is(
  .add-score-modal,.reference-modal,.contact-message-modal,.create-account-request-modal,
  .create-game-account-modal,.phone-modal,.payment-lightbox,.ai-agent-panel
) :is(
  .score-unified-panel,.score-flat-section,.score-conditional-field,.score-payment-select-wrap,
  .score-payment-selected,.add-score-amount-side,.score-route-group,.score-route-section,
  .score-selected-game,.score-route-context,.score-own-allocation,.score-allocation-total,
  .score-app-allocation-row,.single-recipient-row,.request-confirm-summary,.score-confirm-profile,
  .confirm-total,.score-game-account-field,.request-status-estimate,.request-progress-track,
  .request-status-step,.allocation-status,.withdrawal-live-panel,.withdrawal-available,
  .withdrawal-rule-grid>div,.home-game-picker-list,.game-hub-header,.game-hub-image,
  .game-hub-player-row,.game-logins-list,
  .game-login-card,.game-login-value,.game-login-value code,.game-logins-empty,
  .passwordless-auth-options,.guest-app-download,.my-profile-id-box,.profile-phone-choice,
  .profile-phone-summary,.profile-phone-editor,.profile-referral-box,.customer-linked-methods,
  .profile-login-toolbar,.customer-game-account,.profile-app-install,.profile-score-report,details,
  .account-help-home,.account-help-game-view,.account-help-results,.account-login-list,
  .account-login-card,.account-rule-note,.reference-account-form,.create-account-mode-switch,
  .eligibility-form,.eligibility-result,.guide-section-menu,.guide-section-view,.guide-section-head,
  .guide-gallery,.guide-track,.guide-slide,.guide-slide img,.guide-empty,.guide-position,
  .rules-popup-content,.rules-popup-text,.rules-popup-image,.contact-message-options,
  .qr-message-options,.payment-lightbox-image,.phone-modal-number,.customer-activity-list,
  .customer-activity-row,.recharge-allocation-status
):not(#ldr-v811-clear-escape):not(#ldr-v811-clear-escape-2):not(#ldr-v811-clear-escape-3):not(#ldr-v811-clear-escape-4):not(#ldr-v811-clear-escape-5){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}

/* Text boxes and selection boxes show the popup purple instead of black/brown. */
html body[data-page="home"] :is(
  .add-score-modal,.reference-modal,.contact-message-modal,.create-account-request-modal,
  .create-game-account-modal,.phone-modal,.ai-agent-panel
) :is(
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),select,textarea,
  .game-login-value code,.credential-row code
):not(#ldr-v811-field-escape):not(#ldr-v811-field-escape-2):not(#ldr-v811-field-escape-3):not(#ldr-v811-field-escape-4):not(#ldr-v811-field-escape-5){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}

/* A native dropdown list cannot reliably be transparent; match it to the purple popup. */
html body[data-page="home"] :is(
  .add-score-modal,.reference-modal,.create-account-request-modal,.create-game-account-modal
) option:not(#ldr-v811-option-escape):not(#ldr-v811-option-escape-2):not(#ldr-v811-option-escape-3):not(#ldr-v811-option-escape-4){
  background:var(--ldr-popup-option-purple)!important;
  color:#fff!important;
}

/* Remove the remaining black face from the unselected sender-name control only. */
html body[data-page="home"] #add-score-payment-modal .score-sender-choices input[name="score-sender-mode"]+span:not(#ldr-v811-sender-escape):not(#ldr-v811-sender-escape-2):not(#ldr-v811-sender-escape-3):not(#ldr-v811-sender-escape-4){
  background:transparent!important;
  background-image:none!important;
}

/* Keep the original blue selected state from today's uploaded design. */
html body[data-page="home"] #add-score-payment-modal .score-sender-choices input[name="score-sender-mode"]:checked+span:not(#ldr-v811-sender-selected-escape):not(#ldr-v811-sender-selected-escape-2):not(#ldr-v811-sender-selected-escape-3):not(#ldr-v811-sender-selected-escape-4){
  background:#1768ad!important;
  background-image:none!important;
}

/* Preserve the previously requested one-time referral presentation. */
html body[data-page="home"] #customer-auth-modal .profile-referral-box.is-linked label,
html body[data-page="home"] #customer-auth-modal .profile-referral-box.is-linked #customer-save-referrer{
  display:none!important;
}

/* Preserve the previously requested sky-blue app download action. */
html body[data-page="home"] #customer-auth-modal :is(#customer-install-app,#customer-install-app-guest):not(#ldr-v811-download-escape):not(#ldr-v811-download-escape-2):not(#ldr-v811-download-escape-3):not(#ldr-v811-download-escape-4){
  width:100%!important;
  min-height:50px!important;
  border:2px solid #b9ecff!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#65cdf8,#219bd6)!important;
  color:#05263a!important;
  -webkit-text-fill-color:#05263a!important;
  font-size:14px!important;
  font-weight:950!important;
  text-shadow:0 1px rgba(255,255,255,.36)!important;
  box-shadow:inset 0 2px rgba(255,255,255,.34),0 5px 0 #0d6595!important;
}

/* High-specificity conditional visibility safeguard. */
html body[data-page="home"] :is(
  .add-score-modal,.reference-modal,.contact-message-modal,.create-account-request-modal,
  .create-game-account-modal,.phone-modal,.payment-lightbox,.ai-agent-panel
) [hidden]:not(#ldr-v811-hidden-escape):not(#ldr-v811-hidden-escape-2):not(#ldr-v811-hidden-escape-3):not(#ldr-v811-hidden-escape-4):not(#ldr-v811-hidden-escape-5){
  display:none!important;
}
