/* ภารกิจกิลด์ + บอสกิลด์ (client-debug/js/guildq.js, src/map/guildq.js): the window - deep teal and gold, the same in every
   theme (#win-guildq over the RO theme's). Entries only with the system (<html class="gq-sys">), a dot when rewards wait
   (<html class="gq-ready">). Linked by client/index.html and client-debug/index.html after style.css. */

html:not(.gq-sys) .gq-entry, html:not(.gq-sys) .mh-grid [data-w="!guildq"] { display: none !important; }
.sb-ic.sb-guildq { border-color: #0e5a52; color: #fff; background: linear-gradient(#9ff0e0, #22a892 52%, #0e6a5e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4); --gi-fill: rgba(255, 230, 150, 0.7); }
#map-btns .map-btn.map-guildq { position: relative; }
#map-btns .map-guildq .gq-mdot { display: none; position: absolute; top: -2px; right: 9px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff; background: #ff4d6d; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
html.gq-ready #map-btns .map-guildq .gq-mdot { display: block; }

#win-guildq .win-body { padding: 0; overflow: auto; background: linear-gradient(180deg, #0f2e2c, #0a1e1d 70%, #071514); color: #eafffb; }
.gq { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; font-size: 13px; line-height: 1.4; }
.gq-wait { padding: 20px; text-align: center; }
.gq-none { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.gq-none b { font-size: 16px; }
.gq-hero { display: flex; align-items: center; gap: 12px; margin: 0 -12px; padding: 12px 14px; background: radial-gradient(ellipse 60% 140% at 0% 50%, rgba(255, 210, 100, 0.3), transparent 70%), linear-gradient(135deg, #1b6b60, #0f3d38); }
.gq-pts { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 64px; border-radius: 14px; background: linear-gradient(180deg, #ffe38a, #f0a92b); color: #3b2500; }
.gq-pts small { font-size: 10.5px; font-weight: 800; }
.gq-pts b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.gq-info { display: flex; flex-direction: column; min-width: 0; }
.gq-info b { font-size: 16px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-info span { font-size: 12px; color: #c6efe7; }
.gq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gq-m { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(120, 230, 210, 0.22); }
.gq-m.done { border-color: rgba(255, 215, 110, 0.55); background: rgba(255, 215, 110, 0.08); }
.gq-mt { display: flex; align-items: baseline; gap: 6px; }
.gq-mt b { flex: 1; color: #fff; }
.gq-pt { font-size: 11.5px; font-weight: 700; color: #ffe08a; }
.gq-bar { position: relative; height: 15px; margin-top: 5px; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(120, 230, 210, 0.3); }
.gq-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #22a892, #8ff0d8); transition: width 0.4s; }
.gq-m.done .gq-bar i { background: linear-gradient(90deg, #f0a92b, #ffe38a); }
.gq-bar span { position: relative; display: block; text-align: center; font-size: 10.5px; font-weight: 700; line-height: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.gq-hp i { background: linear-gradient(90deg, #d8334a, #ff8a9a) !important; }
.gq-mb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 5px; font-size: 12px; }
.gq-mine { color: #b9e6dd; }
.gq-rws { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-left: auto; }
.gq-rw { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 2px; border-radius: 9px; background: rgba(0, 0, 0, 0.28); font-size: 11.5px; }
.gq-rw b { color: #ffe08a; font-weight: 700; }
.gq-rz { padding-left: 3px; color: #ffe08a; font-weight: 700; }
.gq-rz i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 10px; color: #6b4300; background: radial-gradient(circle at 40% 35%, #fff2b8, #f2b632); }
#win-guildq .gq-claim { height: 26px; padding: 0 10px; font-weight: 800; }
.gq-got { color: #6dff9e; font-weight: 700; }
.gq-need { color: #ffcf8a; }
.gq-boss { padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(150, 30, 50, 0.35), rgba(60, 10, 20, 0.35)); border: 1px solid rgba(255, 120, 140, 0.4); }
.gq-bt { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.gq-bt > b { font-size: 14.5px; color: #fff; }
.gq-bt > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: #ffd6dc; }
#win-guildq .gq-call { width: 100%; height: 38px; font-size: 15px; font-weight: 900; border: 0; border-radius: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); background: linear-gradient(180deg, #ff6a7e, #b81e36); }
#win-guildq .gq-call.sure { background: linear-gradient(180deg, #ffd36b, #e08a1e); color: #3b2100; }
#win-guildq .gq-call:disabled { opacity: 0.5; }
.gq-sub { margin: 4px 0 0; font-size: 12px; color: #f0c4ca; }
.gq-live { display: block; line-height: 1.5; }
.gq-live .gq-bar, .gq-live .gq-sub { display: block; }
.gq-tip { margin: 0; font-size: 11.5px; color: #a9d9cf; }
html.mhud .win.win-guildq { --wk: max(var(--uik, 1), 0.85); transform: scale(max(var(--uik, 1), 0.85)); max-height: calc((100% - 88px - var(--mh-wb)) / max(var(--uik, 1), 0.85)) !important; }
