/* Fenêtre d'activité : Donjon · Raid · Fracture */
.ac-dialog .dialog-card > :not(.ac):not(.dialog-close) { display: none !important; }
.dialog.ac-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; }
.ac-dialog .dialog-card { width: 100%; box-sizing: border-box; height: min(92vh, 860px); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.ac { --line: #22324d; --panel: #0a1322; --soft: #142238; --muted: #8ea0bf; --accent: #5fe0ff; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.ac-ico { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ac-lab { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.ac-muted { color: var(--muted); font-size: .8rem; }
.ac .warn { color: #ffb05f; } .ac .ok { color: #9ff0c4; }
.ac-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-row { display: flex; gap: 8px; }

.ac-head { display: flex; align-items: center; gap: 16px; padding: 16px 56px 16px 18px; margin: -6px -6px 0; border-radius: 18px; background: linear-gradient(90deg, var(--soft), transparent 75%); border: 1px solid color-mix(in srgb, var(--c) 35%, #22324d); }
.ac-badge { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, #0a1322); color: var(--c); border: 2px solid var(--c); flex: none; }
.ac-title { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ac-title .eyebrow { margin: 0; color: var(--c); }
.ac-title h2 { margin: 0; font-size: 1.5rem; }
.ac-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: rgba(10, 19, 34, .7); color: #c9d5ea; font-size: .78rem; font-weight: 700; }
.ac-rank { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; border: 2px solid var(--c); color: var(--c); font: 800 1.6rem Sora, sans-serif; flex: none; }

.ac-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; }
.ac-info, .ac-team { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; padding-right: 4px; }
.ac-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ac-goal { flex-direction: row; align-items: center; gap: 16px; }
.ac-gauge { width: 104px; height: 104px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--cc) calc(var(--p) * 1%), #1f2d45 0); }
.ac-gauge > div { width: 82px; height: 82px; border-radius: 50%; background: var(--panel); display: grid; place-content: center; text-align: center; }
.ac-gauge strong { font: 800 1.35rem Sora, sans-serif; color: var(--cc); }
.ac-gauge small { color: var(--muted); font-size: .7rem; }
.ac-goaltext { flex: 1; display: grid; gap: 6px; }
.ac-power { display: flex; align-items: baseline; gap: 6px; }
.ac-power strong { font: 700 1.4rem Sora, sans-serif; }
.ac-power span { color: var(--muted); font-weight: 700; }
.ac-bar { position: relative; display: block; height: 8px; border-radius: 99px; background: #1f2d45; }
.ac-bar s { display: block; height: 100%; border-radius: 99px; text-decoration: none; }
.ac-bar b { position: absolute; top: -3px; width: 2px; height: 14px; background: #e8eefc; opacity: .7; }
.ac-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ac-roles > div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: #0e1828; border-top: 3px solid var(--rc); }
.ac-roles span { font-size: .75rem; font-weight: 800; color: var(--rc); }
.ac-roles strong { font: 700 1.3rem Sora, sans-serif; }
.ac-roles small { font-size: .72rem; color: var(--muted); }
.ac-rewards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ac-rewards > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #0e1828; }
.ac-rewards > div > :first-child { grid-row: span 2; width: 26px; height: 26px; }
.ac-rewards span:not(.ac-loot) { font-size: .72rem; color: var(--muted); }
.ac-rewards strong { font-size: .86rem; }
.ac-ri { width: 26px; height: 26px; }
.ac-loot { display: grid; place-items: center; border-radius: 8px; color: var(--rr); background: color-mix(in srgb, var(--rr) 15%, transparent); }

.ac-seg { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ac-seg button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: #b8c6e0; font: inherit; font-weight: 700; cursor: pointer; }
.ac-seg button.on { background: var(--accent); color: #06202a; }
.ac-btn { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid #2c4060; background: transparent; color: #e8eefc; font: inherit; font-weight: 700; cursor: pointer; }
.ac-btn.sm { min-height: 38px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.ac-btn.primary { border: 0; background: var(--accent); color: #06202a; }
.ac-btn.launch { border: 0; background: var(--c); color: #0a0f1c; min-width: 190px; font-size: 1rem; }
.ac-btn:disabled { opacity: .45; cursor: not-allowed; }
.ac-btn:hover:not(:disabled) { filter: brightness(1.1); }
.ac-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ac-chipsel { display: flex; gap: 4px; flex-wrap: wrap; }
.ac-chipsel button { min-height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid #2c4060; background: transparent; color: #b8c6e0; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.ac-chipsel button em { font-style: normal; color: var(--muted); }
.ac-chipsel button.on { border-color: var(--rc); color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent); }
.ac-search { flex: 1; min-width: 140px; }
.ac-search input { width: 100%; box-sizing: border-box; min-height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid #2c4060; background: #0e1828; color: #e8eefc; font: inherit; }
.ac-sort { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.ac-sort select { min-height: 34px; border-radius: 9px; border: 1px solid #2c4060; background: #0e1828; color: #e8eefc; font: inherit; font-weight: 600; }
.ac-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; align-content: start; }
.ac-hunter, .ac-group { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: #e8eefc; font: inherit; cursor: pointer; position: relative; }
.ac-hunter { border-left: 3px solid var(--rc); }
.ac-hunter.on, .ac-group.on { border-color: var(--accent); background: #13233b; box-shadow: inset 0 0 0 1px var(--accent); }
.ac-hunter.on { border-left-color: var(--rc); }
.ac-hunter:disabled { opacity: .45; cursor: not-allowed; }
.ac-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #2c4060; display: grid; place-items: center; color: #06202a; flex: none; }
.on > .ac-check { background: var(--accent); border-color: var(--accent); }
.ac-hunter .fantasy-class-icon { margin: 0; flex: none; }
.ac-hname { display: grid; flex: 1; min-width: 0; }
.ac-hname strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-hname small { color: var(--muted); font-size: .74rem; }
.ac-members { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-role { font-size: .72rem; font-weight: 800; color: var(--rc); }
.ac-pow { font-size: .9rem; color: #f2c45a; min-width: 48px; text-align: right; }
.ac-ret { position: absolute; top: 4px; right: 10px; font-size: .62rem; color: #ffb05f; }
.ac-gchance { display: grid; text-align: right; }
.ac-gchance strong { font: 700 1.1rem Sora, sans-serif; }
.ac-gchance small { color: var(--muted); font-size: .74rem; }
.ac-empty { grid-column: 1 / -1; margin: 0; padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

.ac-foot { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ac-slots { display: grid; grid-template-columns: auto 160px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.ac-slots strong { grid-row: span 2; font: 800 1.6rem Sora, sans-serif; }
.ac-slots strong small { font-size: .9rem; color: var(--muted); }
.ac-slots i { position: relative; display: block; height: 8px; border-radius: 99px; background: #1f2d45; }
.ac-slots i s { display: block; height: 100%; border-radius: 99px; background: var(--accent); text-decoration: none; }
.ac-slots i b { position: absolute; top: -3px; width: 2px; height: 14px; background: #ffb05f; }
.ac-slots > small { font-size: .74rem; color: var(--muted); }
.ac-why { flex: 1; min-width: 200px; font-size: .9rem; font-weight: 700; }

@media (max-width: 900px) {
  .ac-body { display: flex; flex-direction: column; overflow: auto; }
  .ac-info, .ac-team { overflow: visible; flex: none; }
  .ac-head { padding-right: 48px; }
  .ac-rank { display: none; }
  .ac-list { grid-template-columns: minmax(0, 1fr); }
  .ac-btn.launch { flex: 1; min-width: 0; }
}
.ac-dur { margin-left: 4px; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: .72rem; background: rgba(255, 255, 255, .08); }
.ac-dur.fast { background: rgba(84, 227, 158, .15); color: #8ff0c2; }
.ac-dur.slow { background: rgba(255, 176, 95, .15); color: #ffc58a; }

/* ---------- World Boss ---------- */
.map-panel .panel-title-row > div:first-child { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wb-bar { min-width: 220px; }
.wb-prog { display: grid; gap: 4px; }
.wb-line { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; }
.wb-line span { font-weight: 800; letter-spacing: .04em; color: #ffb39e; }
.wb-line small { color: var(--muted); }
.wb-prog i { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.wb-prog s { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9a3c, #ff3c5a); box-shadow: 0 0 10px rgba(255, 80, 60, .6); transition: width .6s; text-decoration: none; }
.wb-go { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 14px; border: 1px solid #ff5a3c; background: linear-gradient(135deg, rgba(255, 90, 60, .25), rgba(120, 20, 10, .35)); color: #ffe2d9; font: inherit; cursor: pointer; animation: wbPulse 2s ease-in-out infinite; }
.wb-go > span:first-child { font-size: 1.5rem; }
.wb-go > span:last-child { display: grid; text-align: left; }
.wb-go small { color: #ffb39e; }
@keyframes wbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, .5); } 50% { box-shadow: 0 0 18px 4px rgba(255, 90, 60, .35); } }
@media (prefers-reduced-motion: reduce) { .wb-go { animation: none; } }
.wb-marker { width: 72px !important; height: 80px !important; background: radial-gradient(circle, #ff5a3c 0%, #7a1208 70%) !important; border: 3px solid #ffd2c4 !important; box-shadow: 0 0 24px rgba(255, 90, 60, .8) !important; }
.wb-marker .activity-symbol { font-size: 1.8rem; }
/* World Boss v2 : barre 250 %, invocations, partage */
.wb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 240px; }
.wb-prog { min-width: 230px; }
.wb-track { position: relative; }
.wb-track em { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .35); }
.wb-summon { min-height: 34px; padding: 0 12px; border: 1px solid #ff5a3c; border-radius: 11px; background: linear-gradient(135deg, rgba(255, 90, 60, .35), rgba(120, 20, 10, .45)); color: #ffe2d9; font: inherit; font-weight: 900; font-size: .82rem; cursor: pointer; animation: wbPulse 2s ease-in-out infinite; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-chip { display: inline-flex; align-items: stretch; border: 1px solid rgba(255, 90, 60, .6); border-radius: 10px; overflow: hidden; background: rgba(120, 20, 10, .35); }
.wb-chip.shared { border-color: #d6b56a; }
.wb-chip.fight { border-color: #ff9aa6; }
.wb-chip button { border: 0; background: transparent; color: #ffe2d9; font: inherit; cursor: pointer; }
.wb-chip-go { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 9px; font-size: .78rem; }
.wb-chip-go small { color: #f0d48f; font-size: .7rem; }
.wb-chip-share { display: grid; place-items: center; width: 32px; border-left: 1px solid rgba(255, 90, 60, .4) !important; }
.wb-chip-share:hover, .wb-chip-go:hover { background: rgba(255, 255, 255, .08); }
.wb-marker.shared { border-color: #f0d48f !important; }
.wb-share-pop { position: fixed; z-index: 2000; padding: 14px; border: 1px solid #ff5a3c; border-radius: 14px; background: #101c30; color: #e8eefc; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); display: grid; gap: 10px; }
.wb-share-pop[hidden] { display: none; }
.wb-share-pop header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wb-share-pop p { margin: 0; color: #8ea0bf; font-size: .82rem; }
.wb-x { border: 0; background: none; color: #e8eefc; font-size: 1.3rem; cursor: pointer; }
.wb-delays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wb-delays button { min-height: 38px; border: 1px solid #2c4060; border-radius: 10px; background: #142238; color: #e8eefc; font: inherit; font-weight: 800; font-size: .8rem; cursor: pointer; }
.wb-delays button:hover { border-color: #ff5a3c; }
.wb-at { display: flex; align-items: end; gap: 8px; }
.wb-at label { flex: 1; display: grid; gap: 4px; font-size: .8rem; color: #8ea0bf; }
.wb-at input { min-height: 38px; padding: 0 8px; border: 1px solid #2c4060; border-radius: 10px; background: #0a1322; color: #e8eefc; font: inherit; }
.wb-warn { color: #ffb36b; }
/* Onglet Support */
.wbs #wbSupport { display: grid; gap: 12px; margin-top: 10px; }
.wbs-card { display: grid; gap: 10px; padding: 14px; border: 1px solid #2c4060; border-radius: 14px; background: #0f1b2e; }
.wbs-card.st-launched { border-color: #ff9aa6; } .wbs-card.st-done { opacity: .8; } .wbs-card.st-cancelled { opacity: .6; }
.wbs-card header { display: flex; align-items: center; gap: 10px; }
.wbs-card header div { display: grid; flex: 1; }
.wbs-card header small { color: #8ea0bf; }
.wbs-ico { font-size: 1.6rem; }
.wbs-status { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: .78rem; font-weight: 800; }
.wbs-pow { display: grid; gap: 4px; font-size: .82rem; color: #8ea0bf; }
.wbs-pow b { color: #e8eefc; }
.wbs-pow i { display: block; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.wbs-pow s { display: block; height: 100%; background: linear-gradient(90deg, #ff9a3c, #ff3c5a); }
.wbs-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.wbs-table th { text-align: left; color: #8ea0bf; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid #22324d; }
.wbs-table td { padding: 7px 8px; border-bottom: 1px solid #16243a; }
.wbs-table em { font-style: normal; font-size: .7rem; padding: 1px 6px; border-radius: 6px; background: rgba(95, 224, 255, .15); color: #5fe0ff; }
.wbs-late { color: #ffb36b; }
.wbs-empty { color: #8ea0bf; text-align: center; }
.wbs-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.wbs-join label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.wbs-join input { width: 80px; min-height: 36px; padding: 0 8px; border: 1px solid #2c4060; border-radius: 9px; background: #0a1322; color: #e8eefc; font: inherit; }
.wbs-join small { color: #8ea0bf; font-weight: 500; }
.wbs-note, .wbs-mine { margin: 0; font-size: .8rem; }
.wbs-mine { color: #8af0bd; }
