/* Owner 2026-11-12: ONE boss button beside the gold / crystal display; tap it for a small window with every live boss and
   a warp button for each (Client/js/boss-alert.js). Pulses only while a boss you can warp to is up. The pulse animates a
   pseudo-element's transform / opacity only, so the browser composites it without repainting the HUD. */
#boss-alert { display:none; align-items:center; pointer-events:auto; flex-shrink:0; }
#boss-alert.show { display:flex; }
.boss-btn { position:relative; display:flex; align-items:center; gap:3px; height:26px; padding:0 9px 0 5px; border:1.5px solid #e2cfa6; border-radius:999px; cursor:pointer;
  background:#fff8e8; color:#8a6a3a; font:inherit; font-size:11px; white-space:nowrap; }
.boss-btn b { font-weight:600; }
.boss-crown { font-size:12px; line-height:1; filter:grayscale(.6); opacity:.75; }
.boss-btn.some { border-color:#ffcf5a; background:linear-gradient(135deg,#6a2430,#b4532a); color:#ffe9b0; }
.boss-btn.some .boss-crown { filter:none; opacity:1; }
.boss-btn.live::after { content:''; position:absolute; inset:-3px; border-radius:inherit; border:2px solid #ffcf5a; pointer-events:none; animation:boss-ping 1.4s ease-out infinite; will-change:transform,opacity; }
.boss-btn.live .boss-crown { animation:boss-bob 1.4s ease-in-out infinite; }
.boss-count { position:absolute; top:-6px; right:-6px; min-width:16px; height:16px; padding:0 4px; box-sizing:border-box; border-radius:999px; background:#e2483d; color:#fff; font-size:10px; font-weight:700; line-height:16px; text-align:center; box-shadow:0 0 0 1.5px #fff; }
.boss-count[hidden] { display:none; }
@keyframes boss-ping { 0% { transform:scale(1); opacity:.9; } 100% { transform:scale(1.35,1.6); opacity:0; } }
@keyframes boss-bob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2px) rotate(-8deg); } }
@media (prefers-reduced-motion:reduce) { .boss-btn.live::after, .boss-btn.live .boss-crown { animation:none; } }
body:has(#hud.hidden) #boss-alert, body:has(#hud.hidden) #boss-pop { display:none; } /* only in the world, not on the login / character screens */

#boss-pop { position:fixed; z-index:60; box-sizing:border-box; max-height:min(420px,70dvh); display:flex; flex-direction:column; border:1px solid #e6ddc9; border-radius:16px;
  background:#fff8e8; color:#53576c; font:13px/1.5 KanitArc,sans-serif; box-shadow:0 12px 36px #302a4540; overflow:hidden; }
#boss-pop[hidden] { display:none; }
#boss-pop header { display:flex; align-items:center; justify-content:space-between; padding:8px 8px 8px 14px; border-bottom:1px solid #eee3cc; color:#8a4a2a; }
.boss-x { width:32px; height:32px; border:0; border-radius:50%; background:#f2ead8; color:#53576c; font-size:20px; cursor:pointer; }
.boss-list { overflow:auto; padding:6px 8px; }
.boss-row { display:flex; align-items:center; gap:8px; padding:7px 6px; border-radius:12px; }
.boss-row + .boss-row { border-top:1px dashed #eee3cc; }
.boss-row .boss-ic { flex:none; width:34px; height:34px; border-radius:50%; background:radial-gradient(circle,#fff6d8 0,#ffcf5a 60%,#d07a2a 100%); display:grid; place-items:center; font-size:16px; }
.boss-row .boss-ic img { width:28px; height:28px; object-fit:contain; }
.boss-row.raid .boss-ic { background:radial-gradient(circle,#ffe9f1 0,#f28fb0 60%,#a8426a 100%); }
.boss-info { flex:1; min-width:0; }
.boss-info b { display:block; font-weight:600; color:#4a3a2c; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.boss-info small { display:block; color:#8a8f9c; font-size:11px; }
.boss-warp { flex:none; min-height:34px; padding:0 14px; border:0; border-radius:10px; background:linear-gradient(135deg,#b4532a,#e08a3a); color:#fff; font:inherit; font-weight:600; cursor:pointer; }
.boss-here,.boss-lock { flex:none; font-size:11px; color:#8a8f9c; }
.boss-empty { margin:14px 6px; text-align:center; color:#8a8f9c; }
.boss-sched { margin:4px 10px 10px; min-height:34px; border:1px solid #e2d6bd; border-radius:10px; background:#fffcf3; color:#8a6a3a; font:inherit; cursor:pointer; }

/* phones: the gold bar is drawn at 60%, so the button is built bigger to stay a comfortable tap */
html[data-ui="mobile"] .boss-btn { height:34px; font-size:14px; padding:0 12px 0 7px; }
html[data-ui="mobile"] .boss-crown { font-size:16px; }
html[data-ui="mobile"] .boss-count { min-width:20px; height:20px; line-height:20px; font-size:12px; top:-8px; right:-8px; }
html[data-ui="mobile"] .boss-warp { min-height:40px; }
