/* v624 Admin adapter: every admin popup uses the public-site v718 popup shell. */
body .ll-admin-unified-popup .ll-admin-unified-popup-card.ll-popup-unified-card {
  display:block !important;
  text-align:center !important;
}
body .ll-admin-unified-popup .ll-admin-unified-popup-card.ll-admin-popup-wide {
  width:min(880px, calc(100vw - 34px)) !important;
  max-width:880px !important;
}
body #store-credit-admin-modal .ll-admin-unified-popup-card.ll-admin-popup-wide {
  width:min(1120px, calc(100vw - 34px)) !important;
  max-width:1120px !important;
}
body .ll-admin-unified-popup .ll-admin-popup-logo.ll-popup-brand-icon {
  margin:0 auto 30px !important;
}
body .ll-admin-unified-popup .ll-popup-unified-kicker,
body .ll-admin-unified-popup .ll-popup-unified-title,
body .ll-admin-unified-popup .ll-popup-unified-message {
  text-align:center !important;
}
body .ll-admin-unified-popup .ll-admin-popup-generated-kicker { display:block; }
body .ll-admin-unified-popup .ll-popup-unified-message { white-space:pre-line !important; }
body .ll-site-message-overlay .ll-site-message-text { white-space:pre-line !important; }
body .ll-admin-unified-popup .ll-popup-unified-actions {
  justify-content:center !important;
}

/* Keep form-heavy admin popup contents readable inside the public-site shell. */
body .ll-admin-unified-popup :is(.bans-modal-body,.duplicate-dialog-body,.store-credit-admin-content,.field-manager-content) {
  text-align:left !important;
}
body .ll-admin-unified-popup :is(input,textarea,select,label,.toggle,.bans-field-note,.mini-muted,.store-credit-admin-card,.field-manager-tabs) {
  text-align:left !important;
}

/* Remove legacy popup-shell backgrounds/borders so only the v718 shell is visible. */
body #ban-action-modal.ll-admin-unified-popup,
body #duplicate-dialog.ll-admin-unified-popup,
body #store-credit-admin-modal.ll-admin-unified-popup,
body #field-manager-modal.ll-admin-unified-popup,
body #discord-switch-modal.ll-admin-unified-popup,
body #player-confirm-overlay.ll-admin-unified-popup,
body #death-confirm-overlay.ll-admin-unified-popup,
body #rcon-command-result-overlay.ll-admin-unified-popup,
body #rcon-confirm-overlay.ll-admin-unified-popup {
  background:radial-gradient(circle at 50% 40%, rgba(var(--ll-popup-rgb), .34), rgba(var(--ll-popup-rgb), .09) 38%, rgba(0,0,0,.96) 78%),linear-gradient(180deg,rgba(2,8,18,.62),rgba(0,0,0,.90)) !important;
  backdrop-filter:blur(17px) saturate(1.14) !important;
  -webkit-backdrop-filter:blur(17px) saturate(1.14) !important;
}
body #ban-action-modal .bans-modal.ll-popup-unified-card,
body #duplicate-dialog .duplicate-dialog.ll-popup-unified-card,
body #store-credit-admin-modal .store-credit-admin-dialog.ll-popup-unified-card,
body #field-manager-modal .field-manager-dialog.ll-popup-unified-card,
body #discord-switch-modal .subs-modal.ll-popup-unified-card,
body #player-confirm-overlay .player-confirm-card.ll-popup-unified-card,
body #death-confirm-overlay .death-confirm-card.ll-popup-unified-card,
body #rcon-command-result-overlay .rcon-command-result-card.ll-popup-unified-card,
body #rcon-confirm-overlay .rcon-confirm-card.ll-popup-unified-card {
  background:radial-gradient(circle at 50% -4%, rgba(var(--ll-popup-rgb), .17), transparent 46%),linear-gradient(160deg,rgba(8,18,34,.99),rgba(2,7,15,.995)) !important;
  border:1px solid rgba(var(--ll-popup-rgb), .58) !important;
  border-radius:21px !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 30px 90px rgba(0,0,0,.68),0 0 56px rgba(var(--ll-popup-rgb),.25) !important;
}

/* Legacy headers become content, not a second card shell. */
body .ll-admin-unified-popup :is(.bans-modal-header,.duplicate-dialog-head,.store-credit-admin-dialog-head,.field-manager-header) {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body .ll-admin-unified-popup .duplicate-dialog-head,
body .ll-admin-unified-popup .field-manager-header { text-align:center !important; }
body .ll-admin-unified-popup .duplicate-dialog-head > h2,
body .ll-admin-unified-popup .field-manager-header > h2 { margin-left:auto !important; margin-right:auto !important; }
body .ll-admin-unified-popup .bans-modal-header { padding-top:0 !important; }
body .ll-admin-unified-popup .store-credit-admin-dialog-head { padding-top:0 !important; }
body .ll-admin-unified-popup .bans-modal::before,
body .ll-admin-unified-popup .store-credit-admin-dialog::before { content:none !important; display:none !important; }

/* Let the public popup shell own the outer spacing; keep internal sections compact. */
body .ll-admin-unified-popup .bans-modal-actions,
body .ll-admin-unified-popup .duplicate-dialog-actions,
body .ll-admin-unified-popup .field-manager-footer,
body .ll-admin-unified-popup .subs-modal-actions,
body .ll-admin-unified-popup .player-confirm-actions,
body .ll-admin-unified-popup .death-confirm-actions,
body .ll-admin-unified-popup .rcon-confirm-actions,
body .ll-admin-unified-popup .rcon-command-result-actions {
  background:transparent !important;
  border-top:0 !important;
}

@media (max-width:700px) {
  body .ll-admin-unified-popup .ll-admin-unified-popup-card.ll-admin-popup-wide,
  body #store-credit-admin-modal .ll-admin-unified-popup-card.ll-admin-popup-wide {
    width:min(100%, calc(100vw - 24px)) !important;
    max-width:none !important;
  }
}


/* Connected Players legacy confirm CSS is very specific; force the public-site popup shell above it. */
html body.ll-admin-shell.connected-home-identical #player-confirm-overlay.player-confirm-overlay.ll-admin-unified-popup.ll-popup-unified-overlay {
  position:fixed !important; inset:0 !important; z-index:2147483640 !important;
  width:100vw !important; height:100dvh !important; padding:22px !important;
  display:none !important; place-items:center !important; overflow:auto !important;
  background:radial-gradient(circle at 50% 40%, rgba(var(--ll-popup-rgb), .34), rgba(var(--ll-popup-rgb), .09) 38%, rgba(0,0,0,.96) 78%),linear-gradient(180deg,rgba(2,8,18,.62),rgba(0,0,0,.90)) !important;
  backdrop-filter:blur(17px) saturate(1.14) !important; -webkit-backdrop-filter:blur(17px) saturate(1.14) !important;
}
html body.ll-admin-shell.connected-home-identical #player-confirm-overlay.player-confirm-overlay.ll-admin-unified-popup.ll-popup-unified-overlay.open,
html body.ll-admin-shell.connected-home-identical #player-confirm-overlay.player-confirm-overlay.ll-admin-unified-popup.ll-popup-unified-overlay[data-ll-popup-visible="true"] { display:grid !important; }
html body.ll-admin-shell.connected-home-identical #player-confirm-overlay #player-confirm-card.player-confirm-card.ll-popup-unified-card.ll-admin-unified-popup-card {
  width:min(760px,calc(100vw - 34px)) !important; max-width:760px !important; max-height:calc(100dvh - 44px) !important;
  overflow:auto !important; margin:0 !important; padding:clamp(24px,4vw,36px) !important; border:1px solid rgba(var(--ll-popup-rgb),.58) !important;
  border-radius:21px !important; background:radial-gradient(circle at 50% -4%,rgba(var(--ll-popup-rgb),.17),transparent 46%),linear-gradient(160deg,rgba(8,18,34,.99),rgba(2,7,15,.995)) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 30px 90px rgba(0,0,0,.68),0 0 56px rgba(var(--ll-popup-rgb),.25) !important;
}
html body.ll-admin-shell.connected-home-identical #player-confirm-overlay #player-confirm-icon { display:none !important; }
html body.ll-admin-shell.connected-home-identical #player-confirm-overlay #player-confirm-card::before { background:linear-gradient(115deg,transparent 24%,rgba(var(--ll-popup-rgb),.08) 48%,transparent 72%) !important; }

/* DeathGuard confirmation uses the same public-site popup shell. */
html body #death-confirm-overlay.ll-admin-unified-popup.ll-popup-unified-overlay .death-confirm-card.ll-popup-unified-card {
  width:min(560px,calc(100vw - 34px)) !important; max-width:560px !important;
}


/* RCON Control Center popups use the same animated public-site shell. */
html body #rcon-command-result-overlay.ll-admin-unified-popup #rcon-command-result-icon,
html body #rcon-confirm-overlay.ll-admin-unified-popup #rcon-confirm-icon { display:none !important; }
html body #rcon-command-result-overlay.ll-admin-unified-popup .rcon-command-result-grid,
html body #rcon-confirm-overlay.ll-admin-unified-popup .rcon-confirm-grid {
  text-align:left !important; margin:18px 0 0 !important;
}
html body #rcon-command-result-overlay.ll-admin-unified-popup .rcon-command-result-line,
html body #rcon-confirm-overlay.ll-admin-unified-popup .rcon-confirm-line {
  border-color:rgba(var(--ll-popup-rgb),.24) !important; background:rgba(var(--ll-popup-rgb),.055) !important;
}

/* v620: player moderation popups use only the animated Lusty Looters brand icon. */
html body #player-confirm-overlay #player-confirm-icon,
html body #player-confirm-overlay .player-confirm-icon { display:none !important; visibility:hidden !important; opacity:0 !important; width:0 !important; height:0 !important; margin:0 !important; padding:0 !important; border:0 !important; overflow:hidden !important; }


/* v622 — RCON uses the public popup DOM directly; these are hard layout overrides only. */
html body #rcon-command-result-overlay.ll-admin-unified-popup #rcon-command-result-icon,
html body #rcon-confirm-overlay.ll-admin-unified-popup #rcon-confirm-icon {
  display:none!important; visibility:hidden!important; opacity:0!important; width:0!important; height:0!important;
  margin:0!important; padding:0!important; border:0!important; overflow:hidden!important;
}


/* v622: RCON confirmation/result markup IS the public-site popup shell. */
html body #rcon-confirm-overlay.ll-site-message-overlay,
html body #rcon-command-result-overlay.ll-site-message-overlay {
  position:fixed !important;
  inset:0 !important;
  z-index:2147483640 !important;
  width:100vw !important;
  height:100dvh !important;
  padding:22px !important;
  display:none !important;
  place-items:center !important;
  overflow:auto !important;
}
html body #rcon-confirm-overlay.ll-site-message-overlay.open,
html body #rcon-confirm-overlay.ll-site-message-overlay[data-ll-popup-visible="true"],
html body #rcon-command-result-overlay.ll-site-message-overlay.open,
html body #rcon-command-result-overlay.ll-site-message-overlay[data-ll-popup-visible="true"] {
  display:grid !important;
}
html body #rcon-confirm-overlay .ll-site-message-card,
html body #rcon-command-result-overlay .ll-site-message-card {
  width:min(620px,calc(100vw - 34px)) !important;
  max-width:620px !important;
  max-height:calc(100dvh - 44px) !important;
  overflow:auto !important;
}
html body #rcon-confirm-overlay .rcon-confirm-grid,
html body #rcon-command-result-overlay .rcon-command-result-grid {
  width:100% !important;
  margin:18px 0 0 !important;
  display:grid !important;
  gap:8px !important;
  text-align:left !important;
}
html body #rcon-confirm-overlay .rcon-confirm-line,
html body #rcon-command-result-overlay .rcon-command-result-line {
  padding:10px 12px !important;
  border:1px solid rgba(var(--ll-popup-rgb),.24) !important;
  border-radius:11px !important;
  background:rgba(var(--ll-popup-rgb),.055) !important;
}
html body #rcon-confirm-overlay .rcon-confirm-line span,
html body #rcon-command-result-overlay .rcon-command-result-line span {
  display:block !important;
  color:rgb(var(--ll-popup-rgb)) !important;
  font:900 8px/1 'Cinzel',serif !important;
  text-transform:uppercase !important;
  letter-spacing:.1em !important;
}
html body #rcon-confirm-overlay .rcon-confirm-line strong,
html body #rcon-command-result-overlay .rcon-command-result-line strong {
  display:block !important;
  margin-top:5px !important;
  color:#fff !important;
  font:700 11px/1.42 'JetBrains Mono',monospace !important;
  white-space:pre-line !important;
  word-break:break-word !important;
}
html body #rcon-confirm-overlay .rcon-confirm-actions,
html body #rcon-command-result-overlay .rcon-command-result-actions {
  width:100% !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin-top:18px !important;
}
html body #rcon-command-result-overlay .rcon-command-result-actions {
  grid-template-columns:minmax(180px,260px) !important;
  justify-content:center !important;
}
html body #rcon-confirm-overlay .ll-popup-brand-icon,
html body #rcon-command-result-overlay .ll-popup-brand-icon {
  margin:0 auto 30px !important;
}
@media(max-width:640px){
  html body #rcon-confirm-overlay .rcon-confirm-actions { grid-template-columns:1fr !important; }
}


/* v623 — authoritative semantic reset. Page-specific admin CSS must never leak
   its blue/default colours or alignment into a themed public-site popup. */
html body .ll-admin-unified-popup.ll-popup-unified-overlay .ll-admin-unified-popup-card.ll-popup-unified-card .ll-popup-unified-kicker,
html body .ll-site-message-overlay.ll-popup-unified-overlay .ll-popup-unified-card.ll-popup-unified-card .ll-popup-unified-kicker {
  display:block !important;
  width:100% !important;
  margin:0 0 8px !important;
  color:var(--ll-popup-bright) !important;
  text-align:center !important;
  font:900 10px/1.2 'JetBrains Mono',monospace !important;
  letter-spacing:.22em !important;
  text-transform:uppercase !important;
  text-shadow:0 0 18px rgba(var(--ll-popup-rgb),.26) !important;
}
html body .ll-admin-unified-popup.ll-popup-unified-overlay .ll-admin-unified-popup-card.ll-popup-unified-card .ll-popup-unified-title,
html body .ll-site-message-overlay.ll-popup-unified-overlay .ll-popup-unified-card.ll-popup-unified-card .ll-popup-unified-title {
  margin:0 0 13px !important;
  color:#fff !important;
  text-align:center !important;
  font:900 clamp(27px,4vw,36px)/1.02 'ARK','Cinzel',Georgia,serif !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
  text-shadow:0 0 28px rgba(var(--ll-popup-rgb),.38),0 2px 0 rgba(0,0,0,.72) !important;
}
html body .ll-admin-unified-popup.ll-popup-unified-overlay .ll-admin-unified-popup-card.ll-popup-unified-card .ll-popup-unified-message,
html body .ll-site-message-overlay.ll-popup-unified-overlay .ll-popup-unified-card.ll-popup-unified-card .ll-popup-unified-message {
  max-width:560px !important;
  margin:0 auto 18px !important;
  color:var(--ll-popup-soft) !important;
  text-align:center !important;
  font:650 14px/1.55 'Crimson Pro',Georgia,serif !important;
}
html body .ll-admin-unified-popup.ll-popup-unified-overlay .ll-admin-unified-popup-card.ll-popup-unified-card .ll-popup-unified-actions,
html body .ll-site-message-overlay.ll-popup-unified-overlay .ll-popup-unified-card.ll-popup-unified-card .ll-popup-unified-actions {
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  align-items:center !important;
  gap:11px !important;
  margin-top:22px !important;
}
html body .ll-admin-unified-popup.ll-popup-unified-overlay .ll-popup-unified-actions :is(button,.button,.btn,a),
html body .ll-site-message-overlay.ll-popup-unified-overlay .ll-popup-unified-actions :is(button,.button,.btn,a) {
  min-width:156px !important;
  min-height:46px !important;
  border:1px solid rgba(var(--ll-popup-rgb),.54) !important;
  border-radius:13px !important;
  background:linear-gradient(180deg,rgba(var(--ll-popup-rgb),.17),rgba(3,12,28,.96)) !important;
  color:#f5f9ff !important;
  box-shadow:0 0 22px rgba(var(--ll-popup-rgb),.16),inset 0 1px 0 rgba(255,255,255,.05) !important;
}
html body .ll-admin-unified-popup.ll-popup-unified-overlay .ll-popup-unified-actions :is([data-ll-popup-primary],.primary,.btn-primary),
html body .ll-site-message-overlay.ll-popup-unified-overlay .ll-popup-unified-actions :is([data-ll-popup-primary],.primary,.btn-primary) {
  border-color:rgba(var(--ll-popup-rgb),.86) !important;
  background:linear-gradient(135deg,rgba(var(--ll-popup-rgb),.96),rgba(var(--ll-popup-rgb),.63)) !important;
  color:#03101d !important;
  font-weight:950 !important;
}
html body .ll-admin-unified-popup.ll-popup-unified-overlay .ll-popup-unified-actions [data-ll-popup-cancel],
html body .ll-site-message-overlay.ll-popup-unified-overlay .ll-popup-unified-actions [data-ll-popup-cancel] {
  background:rgba(3,12,28,.82) !important;
  color:var(--ll-popup-soft) !important;
}

/* Popup forms stay readable without changing the centred public-site heading. */
html body .ll-admin-unified-popup .ll-admin-unified-popup-card :is(.bans-modal-body,.duplicate-dialog-body,.store-credit-admin-content,.field-manager-content,.subs-field,.player-confirm-reason-wrap,.player-confirm-timing-wrap,.player-confirm-tribe-wrap,.player-confirm-ban-broadcast-wrap) {
  text-align:left !important;
}

/* DeathGuard is the easiest place for legacy page colours to leak because the
   same kicker class is used on the page itself. Inside the popup, theme wins. */
html body.admin-deaths-page #death-confirm-overlay.ll-admin-unified-popup.ll-popup-unified-overlay .death-confirm-card.ll-popup-unified-card .death-v612-kicker.ll-popup-unified-kicker {
  color:var(--ll-popup-bright) !important;
  text-align:center !important;
}
html body.admin-deaths-page #death-confirm-overlay.ll-admin-unified-popup.ll-popup-unified-overlay .death-confirm-card.ll-popup-unified-card > h3.ll-popup-unified-title,
html body.admin-deaths-page #death-confirm-overlay.ll-admin-unified-popup.ll-popup-unified-overlay .death-confirm-card.ll-popup-unified-card > p.ll-popup-unified-message {
  text-align:center !important;
}
html body.admin-deaths-page #death-confirm-overlay.ll-admin-unified-popup.ll-popup-unified-overlay .death-confirm-actions.ll-popup-unified-actions {
  justify-content:center !important;
}

/* RCON uses the public DOM directly, but old RCON styles are unusually specific.
   Force every semantic colour back to the active popup theme. */
html body #rcon-confirm-overlay.ll-site-message-overlay .ll-popup-unified-kicker,
html body #rcon-command-result-overlay.ll-site-message-overlay .ll-popup-unified-kicker { color:var(--ll-popup-bright) !important; }
html body #rcon-confirm-overlay.ll-site-message-overlay .ll-popup-unified-message,
html body #rcon-command-result-overlay.ll-site-message-overlay .ll-popup-unified-message { color:var(--ll-popup-soft) !important; }
html body #rcon-confirm-overlay.ll-site-message-overlay .rcon-confirm-line span,
html body #rcon-command-result-overlay.ll-site-message-overlay .rcon-command-result-line span { color:var(--ll-popup-bright) !important; }


/* v624: final cross-page hardening. All shared popup headings inherit the active
   popup theme even when a legacy page ships a more-specific !important rule. */
html body :is(#ban-action-modal,#duplicate-dialog,#store-credit-admin-modal,#field-manager-modal,#discord-switch-modal,#player-confirm-overlay,#death-confirm-overlay,#rcon-confirm-overlay,#rcon-command-result-overlay).ll-popup-unified-overlay .ll-popup-unified-kicker {
  color:var(--ll-popup-bright)!important; text-align:center!important;
}
html body :is(#ban-action-modal,#duplicate-dialog,#store-credit-admin-modal,#field-manager-modal,#discord-switch-modal,#player-confirm-overlay,#death-confirm-overlay,#rcon-confirm-overlay,#rcon-command-result-overlay).ll-popup-unified-overlay .ll-popup-unified-title {
  color:#fff!important; text-align:center!important;
}
html body :is(#ban-action-modal,#duplicate-dialog,#store-credit-admin-modal,#field-manager-modal,#discord-switch-modal,#player-confirm-overlay,#death-confirm-overlay,#rcon-confirm-overlay,#rcon-command-result-overlay).ll-popup-unified-overlay .ll-popup-unified-message {
  color:var(--ll-popup-soft)!important; text-align:center!important;
}
