/* In-page admin overlay (scoped under .adm-overlay so it never touches the game UI). */
.adm-overlay[hidden] { display: none !important; }
.adm-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(20, 20, 20, 0.55);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: max(16px, env(safe-area-inset-top)) 12px max(32px, env(safe-area-inset-bottom));
  color: #141414; font-family: system-ui, sans-serif; text-align: left;
  touch-action: auto; user-select: text; -webkit-user-select: text;
}
.adm-overlay * { box-sizing: border-box; }
.adm-panel {
  max-width: 860px; margin: 0 auto; background: #ffe340;
  border: 3px solid #141414; border-radius: 20px; padding: 16px;
  box-shadow: 6px 6px 0 #141414;
}
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.adm-overlay h1, .adm-overlay h2 { font-family: "Luckiest Guy", system-ui, sans-serif; font-weight: 400; letter-spacing: 0.03em; margin: 0; }
.adm-overlay h1 { font-size: 26px; }
.adm-overlay h2 { font-size: 20px; margin-bottom: 10px; }
.adm-card {
  background: #fff8c4; border: 3px solid #141414; border-radius: 16px;
  padding: 14px; margin: 0 0 14px; box-shadow: 4px 4px 0 #141414;
}
.adm-overlay label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; margin-bottom: 10px; }
.adm-overlay input {
  font: inherit; font-size: 16px; padding: 8px 10px; border: 2px solid #141414;
  border-radius: 8px; background: #fffef6; color: #141414;
}
.adm-overlay button {
  font: inherit; font-weight: 800; padding: 8px 14px; border: 2px solid #141414;
  border-radius: 10px; background: #fff; color: #141414; cursor: pointer;
  box-shadow: 2px 2px 0 #141414; margin: 2px;
}
.adm-overlay button.danger { background: #ffb3b3; }
.adm-overlay button.ok { background: #c4f3c8; }
.adm-overlay .adm-x { padding: 4px 10px; font-size: 18px; }
.adm-status, .adm-notice { min-height: 1.2em; margin: 8px 0; font-weight: 700; }
.adm-status.is-err, .adm-notice { color: #9b1020; }
.adm-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-weight: 700; }
.adm-table { overflow-x: auto; }
.adm-overlay table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-overlay th, .adm-overlay td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(0,0,0,0.15); vertical-align: top; }
.adm-overlay td.id, .adm-overlay td.name { word-break: break-word; }
.adm-overlay td.actions { white-space: nowrap; }
.adm-bans { margin: 0 0 10px 18px; }
.adm-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-inline input { flex: 1; min-width: 160px; }
.adm-overlay .muted { color: rgba(20,20,20,0.6); font-size: 12px; }
.adm-danger-zone { border-color: #9b1020; }
.adm-danger-zone p { font-size: 14px; line-height: 1.35; margin: 0 0 10px; }
body.adm-open { overflow: hidden; }
