/* World Boss page */
.world-boss { padding-bottom: 24px; }
.wb-hero { position: relative; overflow: hidden; min-height: 330px; margin-bottom: 14px; padding: 22px 24px 18px; border: 1px solid #6a2a2e; border-radius: 14px; background: #0d0909; box-shadow: 0 10px 30px #000b, 0 0 0 1px #a8202a22; }
.wb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.55); }
.wb-shade { position: absolute; inset: 0; background: radial-gradient(70% 90% at 75% 60%, #5c0f1466, transparent 70%), linear-gradient(90deg, #0d0909f0 0%, #0d0909aa 45%, transparent 75%), linear-gradient(0deg, #0d0909 0%, transparent 45%); }
.wb-boss { position: absolute; right: 2%; bottom: -6%; height: 118%; width: auto; filter: drop-shadow(0 0 30px #a8202a88) drop-shadow(0 10px 18px #000); animation: wb-breathe 5s ease-in-out infinite; pointer-events: none; }
@keyframes wb-breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.012); } }
.wb-hero-text { position: relative; max-width: 520px; }
.wb-hero-text h2 { margin: 6px 0 0; font-family: var(--title); font-size: 38px; letter-spacing: 2px; color: #efe4d3; text-shadow: 0 0 22px #a8202a88, 0 3px 6px #000; }
.wb-sub { margin: 2px 0 10px; color: #d9686d; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
.wb-lore { margin: 0; color: #cfc2b0; font-size: 13px; line-height: 1.55; }
.wb-hp { position: relative; max-width: 640px; margin-top: 26px; }
.wb-hp-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.wb-hp-top b { color: #f3e9da; font-family: var(--title); font-size: 26px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 6px #000; }
.wb-hp-top span { color: #b9ab98; font-size: 12px; }
.wb-hp-bar { position: relative; height: 16px; overflow: hidden; border: 1px solid #8e2a2f; border-radius: 9px; background: #1a0d0e; box-shadow: inset 0 2px 6px #000; }
.wb-hp-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #5c0f14, #b3262e 60%, #e05a5a); box-shadow: 0 0 14px #d23a4088; transition: width .6s ease; }
.wb-tick { position: absolute; top: 0; bottom: 0; width: 2px; background: #ecdcc6aa; transform: translateX(-1px); }
.wb-hp-foot { display: flex; justify-content: space-between; margin-top: 6px; color: #a8998c; font-size: 11.5px; }

.wb-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.wb-panel { margin-bottom: 14px; padding: 14px 16px 16px; border: 1px solid #433433; border-radius: 12px; background: linear-gradient(170deg, #1d1818, #110d0d); }
.wb-panel h3 { margin: 0 0 4px; font-family: var(--title); font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase; color: #d9c9b2; }
.wb-locked { text-align: center; }
.wb-strike-head { display: flex; justify-content: space-between; gap: 14px; }
.wb-strike-head p { max-width: 460px; }
.wb-pips { display: flex; gap: 6px; }
.wb-pips i { width: 26px; height: 26px; border: 1px solid #5e4442; border-radius: 50%; background: #140f0f; transform: rotate(45deg); border-radius: 4px; }
.wb-pips i.on { border-color: #e05a5a; background: radial-gradient(circle, #e05a5a, #7a161c); box-shadow: 0 0 10px #d23a4088; }
.wb-strike-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.world-boss .wb-strike-btn { min-height: 52px; padding: 0 28px; font-family: var(--title); font-size: 17px; letter-spacing: 1px; }
.wb-mine { display: grid; }
.wb-mine span { color: #8e7f76; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }
.wb-mine b { color: #efe4d3; font-size: 22px; font-variant-numeric: tabular-nums; }
.wb-mine small { color: #a8998c; }
.wb-result { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 10px 14px; border: 1px solid #8e2a2f; border-radius: 10px; background: radial-gradient(120% 140% at 0% 50%, #4a1418, #1a0e0e); animation: wb-pop .5s ease-out; }
.wb-result b { color: #ffe9d6; font-family: var(--title); font-size: 30px; text-shadow: 0 0 16px #e05a5a; }
.wb-result span { color: #ecdcc6; font-size: 13px; }
.wb-result.muted { opacity: .7; animation: none; }
@keyframes wb-pop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: scale(1); } }
.wb-chests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.wb-chest { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #362b2a; border-radius: 10px; background: #151010; opacity: .7; }
.wb-chest.is-open { opacity: 1; border-color: #8e2a2f; background: linear-gradient(160deg, #2a1416, #120d0d); }
.wb-chest.is-claimed { opacity: .65; border-color: #4f6a3c; }
.wb-chest-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #1d1414; color: #e05a5a; font-size: 16px; }
.wb-chest b { display: block; color: #efe4d3; font-size: 12.5px; }
.wb-chest small { color: #a8998c; font-size: 11px; }
.wb-claimed { color: #b6e08f; font-size: 11px; font-weight: 700; }
.wb-board { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.wb-board li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #2e2323; border-radius: 8px; background: #151010; font-variant-numeric: tabular-nums; }
.wb-board li:nth-child(-n+3) { border-color: #6a2a2e; }
.wb-board li.is-self { border-color: #c0393f; background: #2a1416; }
.wb-board b { overflow: hidden; color: #efe4d3; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wb-board span { color: #cfc2b0; font-size: 12.5px; }
.wb-rank { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #241a1a; color: #e05a5a !important; font-family: var(--title); font-size: 12px !important; }
.wb-empty { display: block !important; color: #8e7f76; text-align: center; }
.wb-witness { margin: 10px 0 0; color: #a8998c; font-size: 12px; }
.wb-witness b { color: #d9686d; }
@media (max-width: 1100px) { .wb-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .wb-hero { min-height: 380px; padding: 16px; }
  .wb-boss { right: -18%; height: 80%; opacity: .55; }
  .wb-hero-text h2 { font-size: 28px; }
  .wb-chests { grid-template-columns: 1fr; }
  .wb-strike-head { flex-direction: column; }
  .wb-strike-row { flex-direction: column; align-items: stretch; }
}
.wb-pips { padding: 4px 6px 0 0; }
/* Painted banner of the Nameless (replaces the region backdrop + founder portrait). */
.wb-bg.wb-banner { filter: saturate(.95) brightness(.85); object-position: 62% 40%; animation: wb-breathe-bg 9s ease-in-out infinite; }
.wb-hero .wb-shade { background: linear-gradient(90deg, #0d0909f2 0%, #0d0909b0 34%, transparent 62%), linear-gradient(0deg, #0d0909 0%, transparent 42%); }
@keyframes wb-breathe-bg { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (max-width: 760px) { .wb-bg.wb-banner { object-position: 72% 30%; } .wb-hero .wb-shade { background: linear-gradient(0deg, #0d0909f5 0%, #0d0909aa 50%, #0d090933 100%); } }
@media (prefers-reduced-motion: reduce) { .wb-bg.wb-banner { animation: none; } }
/* Six-hour raid (queue, live fight, spoils) */
.wb-state { display: inline-block; margin-top: 12px; padding: 5px 12px; border: 1px solid #5e4442; border-radius: 999px; background: #140d0dcc; color: #cfc2b0; font-size: 12px; letter-spacing: .6px; font-variant-numeric: tabular-nums; }
.wb-state.is-queue { border-color: #b08a4a; color: #f0d9a8; }
.wb-state.is-fight { border-color: #c0393f; color: #ffd9d0; box-shadow: 0 0 14px #c0393f66; }
.wb-hp-foot .wb-warn { color: #ffb4a8; font-weight: 700; }
.wb-hp.is-warned .wb-hp-bar { animation: wb-warned .8s ease-in-out infinite; }
@keyframes wb-warned { 0%, 100% { box-shadow: inset 0 2px 6px #000, 0 0 0 #e05a5a00; } 50% { box-shadow: inset 0 2px 6px #000, 0 0 18px #e05a5a; } }
.wb-call-head { display: flex; justify-content: space-between; gap: 14px; }
.wb-call-head p { max-width: 480px; }
.wb-count { display: grid; justify-items: end; align-content: start; }
.wb-count b { color: #efe4d3; font-family: var(--title); font-size: 26px; line-height: 1; }
.wb-count small { color: #a8998c; font-size: 11px; }
.wb-call-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.wb-joined { color: #b6e08f; font-size: 13px; font-weight: 700; }
.wb-queue { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 0; padding: 0; list-style: none; }
.wb-queue li { display: flex; gap: 5px; align-items: baseline; padding: 3px 9px; border: 1px solid #3a2d2c; border-radius: 999px; background: #151010; font-size: 12px; }
.wb-queue li.is-self { border-color: #c0393f; background: #2a1416; }
.wb-queue b { color: #efe4d3; font-weight: 600; } .wb-queue small { color: #8e7f76; }
.wb-queue .wb-more { color: #a8998c; }
.wb-me { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; margin: 10px 0 12px; padding: 10px 12px; border: 1px solid #8e2a2f; border-radius: 10px; background: radial-gradient(120% 140% at 0% 50%, #3a1215, #170e0e); }
.wb-me span { display: block; color: #8e7f76; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }
.wb-me b { color: #ffe9d6; font-family: var(--title); font-size: 24px; font-variant-numeric: tabular-nums; }
.wb-me small { display: block; color: #a8998c; font-size: 11.5px; }
.wb-me.is-down .wb-me-hp span { color: #ffb4a8; }
.wb-bar { height: 7px; overflow: hidden; margin-top: 4px; border: 1px solid #3a2d2c; border-radius: 5px; background: #120c0c; }
.wb-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #3f7a3a, #7fc36a); transition: width .5s ease; }
.wb-fighters li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.wb-fighters li.is-down { opacity: .55; }
.wb-f { min-width: 0; } .wb-f b small { color: #8e7f76; font-weight: 400; }
.wb-feed { display: grid; gap: 3px; margin: 12px 0 0; padding: 8px 10px; border-top: 1px solid #2e2323; list-style: none; font-size: 12px; color: #b9ab98; }
.wb-ev.is-warn, .wb-ev.is-slam { color: #ffb4a8; } .wb-ev.is-death { color: #8e7f76; } .wb-ev.is-phase { color: #f0d9a8; } .wb-ev.is-won { color: #b6e08f; font-weight: 700; } .wb-ev.is-lost { color: #e05a5a; font-weight: 700; }
.wb-spoils .wb-chest { margin-top: 8px; }
.wb-got { margin: -6px 0 14px; color: #cfc2b0; font-size: 12.5px; }
@media (max-width: 760px) {
  .wb-grid { grid-template-columns: 1fr; }
  .wb-call-head { flex-direction: column; } .wb-count { justify-items: start; }
  .wb-call-row { flex-direction: column; align-items: stretch; }
  .wb-me { grid-template-columns: 1fr; }
}
/* Call to arms (dist/app-boss-alert.mjs): the World Boss emblem, glowing and pulsing, with one short line under it.
   Placed by script in the top-right corner of the Combat screen's fight scene, beside or under the enemy plate. */
#boss-call { position: fixed; z-index: 30; top: 0; left: 0; width: 92px; display: grid; justify-items: center; animation: bc-in .5s cubic-bezier(.2,1.4,.4,1); }
#boss-call button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-height: 0; box-shadow: none; padding: 0; }
#boss-call .bc-main { position: relative; display: grid; justify-items: center; gap: 2px; }
#boss-call .bc-glow { position: absolute; top: 2px; left: 50%; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%; background: radial-gradient(circle, #ff9a3c99 0%, #e0402a66 45%, transparent 72%); filter: blur(6px); animation: bc-glow 1.8s ease-in-out infinite; pointer-events: none; }
#boss-call .bc-emblem { position: relative; width: 72px; height: 72px; filter: drop-shadow(0 0 8px #ff8a2a) drop-shadow(0 0 18px #e0402a99) drop-shadow(0 6px 10px #000c); animation: bc-pulse 1.8s ease-in-out infinite; transition: transform .2s; }
#boss-call .bc-main:hover .bc-emblem { transform: scale(1.08); }
#boss-call .bc-line { position: relative; margin-top: -6px; padding: 2px 9px; border: 1px solid #ff9a3c; border-radius: 999px; background: #1a0c0cf0; color: #ffd9a8; font-size: 11.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 0 12px #ff8a2a88, 0 4px 10px #000a; }
#boss-call.is-mine .bc-line { border-color: #e05a5a; color: #ffe1d6; }
#boss-call .bc-close { position: absolute; top: -4px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: #140d0dd9; color: #b9ab98; font-size: 13px; line-height: 20px; opacity: .8; }
#boss-call .bc-close:hover { color: #efe4d3; opacity: 1; }
@keyframes bc-in { from { opacity: 0; transform: translateY(-10px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes bc-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes bc-glow { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.18); } }
@media (max-width: 760px) { #boss-call { width: 74px; } #boss-call .bc-emblem { width: 54px; height: 54px; } #boss-call .bc-glow { width: 56px; height: 56px; margin-left: -28px; } #boss-call .bc-line { font-size: 11px; padding: 1px 7px; margin-top: -4px; } #boss-call .bc-close { width: 18px; height: 18px; line-height: 18px; right: 0; } }
@media (prefers-reduced-motion: reduce) { #boss-call, #boss-call .bc-emblem, #boss-call .bc-glow { animation: none; } }
/* Your raid on the Combat screen (app-pages.mjs raidCombatHTML): floating numbers and the raid strip. */
.wa-float { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -50%); font-family: var(--title); font-weight: 700; text-shadow: 0 2px 4px #000, 0 0 10px #000; animation: wa-float 1.2s ease-out forwards; white-space: nowrap; }
.wa-float.is-mine { color: #fff3e6; font-size: 24px; } .wa-float.is-crit { color: #ffcf7a; font-size: 32px; } .wa-float.is-dot { color: #e8a0ff; font-size: 18px; }
.wa-float.is-other { color: #cfc2b0aa; font-size: 14px; } .wa-float.is-miss { color: #a8998c; font-size: 15px; }
.wa-float.is-hurt { color: #ff7a6e; font-size: 22px; } .wa-float.is-heal { color: #8fe07a; font-size: 20px; }
@keyframes wa-float { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(.95); } }
.raid-strip { width: 190px; padding: 5px 7px; border: 1px solid #8e2a2f; border-radius: 10px; background: #140d0de6; box-shadow: 0 6px 18px #000a; }
.raid-strip-head { display: flex; gap: 6px; align-items: baseline; margin: 0 0 3px; white-space: nowrap; font-size: 11px; color: #cfc2b0; }
.raid-strip-head b { color: #ffb4a8; letter-spacing: .5px; text-transform: uppercase; font-size: 11px; } .raid-strip-head span:last-child { margin-left: auto; color: #e8c98e; }
.raid-frames { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.raid-frames li { position: relative; display: flex; gap: 6px; padding: 1px 6px 4px; line-height: 1.25; border-radius: 5px; background: #1d1414; font-size: 11px; overflow: hidden; }
.raid-frames li b { overflow: hidden; color: #efe4d3; text-overflow: ellipsis; white-space: nowrap; } .raid-frames li span { margin-left: auto; color: #b9ab98; font-variant-numeric: tabular-nums; }
.raid-frames li i { position: absolute; left: 0; bottom: 0; height: 3px; background: #7fc36a; transition: width .45s linear; }
.raid-frames li.is-self { outline: 1px solid #c0393f; } .raid-frames li.is-down { opacity: .5; }
.raid-strip small { display: block; margin-top: 4px; color: #8e7f76; font-size: 11px; }
.wb-go { display: grid; gap: 6px; margin-bottom: 12px; } .wb-go small { color: #cfc2b0; }
@media (max-width: 760px) { .raid-strip { width: 150px; } .raid-frames li:nth-child(n+4) { display: none; } .wa-float.is-mine { font-size: 20px; } .wa-float.is-crit { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
.hunt-screen.is-raid .hg, .hunt-screen.is-raid .hunt-map-btn { display: none; }
.hunt-screen.is-raid .hunt-location > span { color: #ffb4a8; }
.hunt-screen.is-raid .hunt-party { max-height: 124px; right: auto; overflow: visible; }
/* The banner is 1600×600: keep the page no wider than that and the hero at the banner's shape, so it is
   never stretched or cropped to a thin strip on wide screens. */
.world-boss { max-width: 1600px; margin-left: auto; margin-right: auto; }
@media (min-width: 761px) { .wb-hero { aspect-ratio: 8 / 3; min-height: 300px; max-height: 600px; } }
