/* Pirate alerts are presentation-only; the existing map RAF owns marker rendering. */
/* The map toolbar skull is the single pirate entry: a count badge shows how many
   warning windows / raids are open, and the icon flashes until it is opened. */
#mapTools #btnPirateMap { position: relative; }
#btnPirateMap .pirate-count { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e6b45c; color: #2a1d09; font: 700 10.5px/17px sans-serif; text-align: center; box-shadow: 0 0 0 2px #04101c; pointer-events: none; }
#btnPirateMap .pirate-count.is-raid { background: #ef6a5b; color: #fff; }
#btnPirateMap .pirate-count[hidden] { display: none; }
.pirate-banner { position: absolute; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); max-width: min(94vw, 680px); background: #31202a; border: 2px solid #e6b47c; border-radius: 12px; box-shadow: 0 6px 24px #0009; color: #fff3da; padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.pirate-banner[hidden] { display: none; }
.pirate-banner button { cursor: pointer; border: 1px solid #f1c894; border-radius: 6px; background: #4a2d2b; color: #fff6df; padding: 6px 10px; white-space: nowrap; }
.pirate-banner button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pirate-dialog[hidden] { display: none; }
.pirate-dialog { position: fixed; inset: 0; z-index: 120; background: #08121ccc; display: grid; place-items: center; padding: 16px; }
.pirate-dialog-card { width: min(94vw, 650px); max-height: 85vh; overflow-y: auto; border: 2px solid #e6b47c; border-radius: 12px; padding: 18px; background: #23313b; color: #fff3da; box-shadow: 0 15px 50px #000b; }
.pirate-dialog-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pirate-dialog-card h2 { margin: 0; }
.pirate-dialog-card button { cursor: pointer; border: 1px solid #f1c894; border-radius: 6px; background: #4a2d2b; color: #fff6df; padding: 7px 12px; }
.pirate-dialog-card #pirateDialogClose { min-width: 72px; min-height: 44px; flex: none; white-space: nowrap; }
.pirate-dialog-card button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pirate-details p { line-height: 1.6; }
.pirate-event-card { border-left: 4px solid #e6b47c; padding: 10px 12px; margin: 12px 0; background: #30424a; }
.pirate-event-card h3 { margin: 0 0 6px; }
.pirate-event-card p { margin: 4px 0; }
.pirate-receipt { border-left: 4px solid #e6b47c; padding: 8px 12px; background: #533025; }
@media (max-width: 650px) { .pirate-banner { flex-wrap: wrap; width: 90vw; } }
