/* notice.css — the page's own message pop-up (src/client/ui/notice.mjs).
   Replaces the browser's native alert(): that dialog is drawn OUTSIDE the page, in the browser's style, prefixed
   "pixelwar.io says", and it blocks every script until dismissed. This is part of the game. */
#pwNotices {
  position: fixed; z-index: 9000; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: min(560px, calc(100vw - 24px));
  pointer-events: none;                    /* the stack never blocks the page — only the cards themselves take clicks */
}
.pw-notice {
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px; width: 100%; box-sizing: border-box;
  background: var(--site-ui-panel, #101b2e); border: 1px solid var(--site-ui-line, #28395a); border-left: 3px solid var(--site-ui-accent, #5cc8ff); border-radius: 10px;
  padding: 11px 13px; color: var(--site-ui-ink, #e8eef7);
  font: 500 13.5px/1.5 var(--site-ui-font, 'Chakra Petch'), 'Twemoji Mozilla', 'Segoe UI', system-ui, sans-serif;
  box-shadow: 0 12px 34px var(--site-ui-shadow, #000a);
  animation: pw-notice-in .18s ease-out;
}
.pw-notice.pw-warn { border-left-color: var(--site-ui-accent, #e0533d); background: var(--site-ui-panel, #1c1420); }
.pw-notice.pw-ok   { border-left-color: var(--site-ui-accent, #46c08a); }
.pw-nic { flex: 0 0 auto; font-size: 14px; line-height: 1.45; }
.pw-notice.pw-warn .pw-nic { color: var(--site-ui-danger, #ff9d8c); }
.pw-notice.pw-ok   .pw-nic { color: var(--site-ui-accent, #46c08a); }
.pw-ntx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pw-nx {
  flex: 0 0 auto; background: none; border: 0; color: var(--site-ui-muted, #8da2be); font: 700 16px system-ui;
  line-height: 1; padding: 0 2px; cursor: pointer;
}
.pw-nx:hover { color: var(--site-ui-ink, #fff); }
.pw-notice.pw-out { animation: pw-notice-out .2s ease-in forwards; }
@keyframes pw-notice-in  { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pw-notice-out { to { opacity: 0; transform: translateY(-8px); } }
/* a phone gets the full width and a bit more breathing room */
@media (max-width: 560px) { #pwNotices { top: 10px; width: calc(100vw - 16px); } .pw-notice { font-size: 13px; } }

/* askPassword — a masked credential field in the page, replacing window.prompt() (which does not mask its input) */
.pw-ask { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; background: var(--site-ui-panel, #000a); }
.pw-askcard { width: min(420px, calc(100vw - 32px)); background: var(--site-ui-panel, #101b2e); border: 1px solid var(--site-ui-line, #28395a); border-radius: 12px;
  padding: 18px; box-shadow: 0 18px 50px var(--site-ui-shadow, #000b);
  font: 500 13.5px/1.55 var(--site-ui-font, 'Chakra Petch'), 'Segoe UI', system-ui, sans-serif; color: var(--site-ui-ink, #e8eef7); }
.pw-askh { margin: 0 0 8px; font: 700 16px var(--site-ui-font, 'Chakra Petch'), system-ui; color: var(--site-ui-ink, #fff); }
.pw-askb { margin: 0 0 14px; color: var(--site-ui-ink, #a9bad2); }
.pw-askin { width: 100%; box-sizing: border-box; background: var(--site-ui-panel, #0b1220); color: var(--site-ui-ink, #e8eef7); border: 1px solid var(--site-ui-line, #1d2c45);
  border-radius: 8px; padding: 10px 12px; font: 14px var(--site-ui-font, 'Chakra Petch'), system-ui; outline: none; }
.pw-askin:focus { border-color: var(--site-ui-accent, #2f86d6); }
.pw-askrow { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.pw-askx, .pw-askgo { border-radius: 8px; padding: 8px 15px; font: 600 13px var(--site-ui-font, 'Chakra Petch'), system-ui; cursor: pointer; }
.pw-askx { background: none; border: 1px solid var(--site-ui-line, #28395a); color: var(--site-ui-ink, #9fb2cc); }
.pw-askx:hover { color: var(--site-ui-ink, #fff); border-color: var(--site-ui-accent, #4a6fa5); }
.pw-askgo { background: var(--site-ui-accent, #2f86d6); border: 1px solid var(--site-ui-accent, #2f86d6); color: var(--site-ui-ink, #fff); }
.pw-askgo:hover { background: var(--site-ui-accent, #3f96e6); }
