/* ═══════════════════════════════════════════════════════════════════════
   world-mod-notice.css — the moderation notice (GH #3222, S1).

   tasks/prd-moderation.md §3.7, MOD 6A: a plain notice with the action, the
   reason and the length, and the appeal line. A warn must be dismissed
   before the world lets you on, so the notice covers the whole page and
   takes the pointer; the keyboard is held by world-mod-notice.js.

   Not behind a flag and not under `body.hud-v2`: enforcement never is
   (FPRD §3.12), so the notice has to read the same with the HUD pass on or
   off, at 1920 and at a phone's 390. Its own palette, the world's parchment
   and ink, and a readable face (VT323 is the chat's; this is prose).

   ── THE LAYER ───────────────────────────────────────────────────────────
   `corners`, the last layer: it sits above every surface the world draws,
   and nothing in the skin may restyle it by accident.
   ═══════════════════════════════════════════════════════════════════════ */
@layer base, module, skin, nerm, corners;

@layer corners {

#world-mod-notice.wmn {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(8, 6, 12, 0.78);
  pointer-events: auto;
}

#world-mod-notice .wmn-card {
  box-sizing: border-box;
  width: min(520px, 100%);
  max-height: calc(100% - 32px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  background: #efe3c6;
  color: #2b1d10;
  border: 3px solid #6b4a24;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}

#world-mod-notice .wmn-title {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #2b1d10;
}

#world-mod-notice .wmn-reason,
#world-mod-notice .wmn-body,
#world-mod-notice .wmn-appeal {
  margin: 0 0 10px;
}

#world-mod-notice .wmn-reason { font-weight: 700; }

#world-mod-notice .wmn-appeal {
  font-size: 14px;
  color: #4a3520;
}

#world-mod-notice .wmn-link {
  color: #7a2e12;
  text-decoration: underline;
}

#world-mod-notice .wmn-btn {
  display: block;
  margin: 16px 0 0 auto;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  color: #f7ecd2;
  background: #6b4a24;
  border: 2px solid #3d2812;
  border-radius: 4px;
  cursor: pointer;
}

#world-mod-notice .wmn-btn:hover { background: #7d5a2e; }
#world-mod-notice .wmn-btn:focus-visible { outline: 3px solid #d9a441; outline-offset: 2px; }

/* ── the pick (S8): a new name after a removed one ─────────────────────── */
#world-mod-notice .wmn-pick { margin: 4px 0 10px; }

#world-mod-notice .wmn-label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
}

#world-mod-notice .wmn-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font: inherit;
  font-size: 17px;
  color: #2b1d10;
  background: #fbf5e6;
  border: 2px solid #6b4a24;
  border-radius: 4px;
}

#world-mod-notice .wmn-input:focus-visible { outline: 3px solid #d9a441; outline-offset: 1px; }

#world-mod-notice .wmn-err {
  min-height: 1.45em;
  margin: 8px 0 0;
  color: #7a2e12;
  font-weight: 700;
}

#world-mod-notice .wmn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

#world-mod-notice .wmn-row .wmn-btn { margin: 0; }

#world-mod-notice .wmn-later {
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  color: #4a3520;
  background: transparent;
  border: 2px solid #b89a6a;
  border-radius: 4px;
  cursor: pointer;
}

#world-mod-notice .wmn-later[hidden] { display: none; }
#world-mod-notice .wmn-later:focus-visible { outline: 3px solid #d9a441; outline-offset: 2px; }

@media (max-width: 480px) {
  #world-mod-notice .wmn-card { padding: 18px 16px 14px; font-size: 15px; }
  #world-mod-notice .wmn-title { font-size: 17px; }
  #world-mod-notice .wmn-btn { width: 100%; margin-left: 0; }
  #world-mod-notice .wmn-later { width: 100%; }
}

} /* end of @layer corners */
