/* Support ส่วนตัว (จ้าง Priest) (client-debug/js/priest.js, src/map/priest.js): the window - soft holy white-gold on deep blue, the same in every
   theme (#win-priest over the RO theme's). Entries only with the system (<html class="pr-sys">); the button beside the
   minimap shows the time left. Linked by client/index.html and client-debug/index.html after style.css. */

html:not(.pr-sys) .pr-entry, html:not(.pr-sys) .mh-grid [data-w="!priest"] { display: none !important; }
.sb-ic.sb-priest { border-color: #8a6a1a; color: #fff; background: linear-gradient(#fff7d6, #f2cf6b 52%, #c08f20); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 4px rgba(0, 0, 0, 0.4); --gi-fill: rgba(255, 255, 255, 0.75); }
#map-btns .map-btn.map-priest { position: relative; }
#map-btns .map-priest .pr-t { position: absolute; top: -3px; right: 2px; padding: 0 4px; border-radius: 7px; font: 700 9.5px/14px system-ui, sans-serif; font-style: normal; color: #2a1a00; background: #ffe58a; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
#map-btns .map-priest .pr-t:empty { display: none; }
html:not(.pr-out) #map-btns .map-priest .pr-t { background: #c9c9c9; }

#win-priest .win-body { padding: 0; overflow: auto; background: linear-gradient(180deg, #1c2a4e, #121c36 70%, #0d1428); color: #f4f2ff; }
.pr { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; font-size: 13px; line-height: 1.4; }
.pr-wait { padding: 20px; text-align: center; }
.pr-hero { display: flex; align-items: center; gap: 12px; margin: 0 -12px; padding: 14px; background: radial-gradient(ellipse 60% 140% at 10% 0%, rgba(255, 235, 160, 0.4), transparent 65%), linear-gradient(135deg, #3d5fa8, #22376a); }
/* the priest itself (ZC_PRIEST.look, priestPic): a halo behind it; the 🙏 until it is drawn (no game data: kept) */
.pr-pic { position: relative; flex: none; width: 92px; height: 112px; margin: -6px 0 -8px; background: radial-gradient(ellipse 58% 46% at 50% 42%, rgba(255, 246, 200, 0.8), rgba(242, 207, 107, 0.3) 55%, transparent 76%); }
.pr-pic .pr-cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.2s; }
.pr-pic.drawn .pr-cv { opacity: 1; }
.pr-pic.drawn .pr-ic { display: none; }
.pr-ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 28px; background: radial-gradient(circle at 40% 35%, #fffbe8, #f2cf6b 60%, #c08f20); box-shadow: 0 0 18px rgba(255, 230, 140, 0.7); }
.pr-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pr-txt b { font-size: 16px; color: #fff; }
.pr-txt span { font-size: 12px; color: #dbe4ff; }
.pr-left { flex: none; display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 230, 150, 0.5); }
.pr-left small { font-size: 10.5px; color: #ffe8a8; }
.pr-left b { font-size: 17px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.pr-left.none { opacity: 0.55; }
.pr-call { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.pr-call button { margin-left: auto; }
.pr-st { color: #c2c9e0; }
/* the sex picked (หญิง / ชาย) beside "สุ่มหน้าตาใหม่" - Noh 2026-11-07 14:43 */
.pr-look { display: flex; align-items: stretch; gap: 8px; }
.pr-sex { flex: none; display: flex; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(200, 180, 255, 0.4); }
#win-priest .pr-sx { height: 28px; min-height: 0; padding: 0 12px; border: 0; border-radius: 8px; font-weight: 700; color: #cfd8ff; text-shadow: none; background: none; box-shadow: none; }
#win-priest .pr-sx.on { color: #fff; background: linear-gradient(180deg, #8a6cf0, #5a3fc8); box-shadow: 0 0 8px rgba(150, 120, 255, 0.45); }
#win-priest .pr-look .pr-roll { flex: 1; min-width: 0; }
#win-priest .pr-roll { align-self: stretch; height: 34px; border-radius: 10px; font-weight: 800; color: #fff; text-shadow: none; border: 1px solid rgba(200, 180, 255, 0.6);
	background: linear-gradient(180deg, #8a6cf0, #5a3fc8); box-shadow: 0 0 10px rgba(150, 120, 255, 0.4); }
#win-priest .pr-roll small { font-weight: 600; opacity: 0.85; margin-left: 4px; }
.pr-st.on { color: #7dffb0; font-weight: 700; }
#win-priest .pr-hd { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: #e9e2ff; text-shadow: none; }
.pr-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
#win-priest .pr-h { display: flex; flex-direction: column; align-items: center; gap: 1px; height: auto; min-height: 0; padding: 7px 4px; border-radius: 11px; border: 1px solid rgba(255, 220, 130, 0.5); color: #fff; text-shadow: none; background: linear-gradient(180deg, rgba(255, 230, 150, 0.18), rgba(255, 230, 150, 0.06)); }
#win-priest .pr-h b { font-size: 15px; }
#win-priest .pr-h span { font-size: 11px; color: #ffe8a8; }
#win-priest .pr-h.sure { background: linear-gradient(180deg, #ffe58a, #ffb52e); color: #3a2400; }
#win-priest .pr-h.sure span { color: #3a2400; font-weight: 700; }
#win-priest .pr-h:disabled { opacity: 0.4; }
.pr-do { margin: 0; padding: 0 0 0 4px; list-style: none; display: grid; gap: 3px; font-size: 12.5px; color: #dfe6ff; }
.pr-buffs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pr-b { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; font-size: 12.5px; }
.pr-b.on { border-color: rgba(140, 240, 180, 0.5); background: rgba(120, 230, 170, 0.1); }
.pr-b span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-b em { font-style: normal; font-size: 11px; color: #b9c4e6; }
html.mhud .win.win-priest { --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; }
/* Noh 2026-11-08: the name over its head + ✏️ (the first free, a change paid), the class (Member levels locked), the size */
.pr-txt .pr-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#win-priest .pr-nm { align-self: flex-start; height: 22px; min-height: 0; margin: 3px 0 4px; padding: 0 9px; border-radius: 11px; font: 700 11.5px/20px system-ui, sans-serif; color: #fff; text-shadow: none;
	border: 1px solid rgba(255, 230, 150, 0.55); background: rgba(0, 0, 0, 0.28); box-shadow: none; }
#win-priest .pr-nm small { font-weight: 600; color: #ffe08a; margin-left: 3px; }
.pr-cls { display: flex; gap: 6px; }
#win-priest .pr-c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: auto; min-height: 34px; padding: 4px 6px; border-radius: 10px; font-weight: 800; color: #e9e2ff; text-shadow: none;
	border: 1px solid rgba(200, 180, 255, 0.4); background: rgba(0, 0, 0, 0.28); box-shadow: none; }
#win-priest .pr-c.on { color: #2a1a00; background: linear-gradient(180deg, #fff1b8, #f2c94c); border-color: #fff3c4; box-shadow: 0 0 10px rgba(255, 220, 120, 0.45); }
#win-priest .pr-c.lock { opacity: 0.6; }
#win-priest .pr-c small { font-size: 10px; font-weight: 700; color: #ffd27a; }
#win-priest .pr-sx:disabled { opacity: 0.35; }
.pr-size { margin-left: 0; }
/* (a party skill's mark: beside its name, never cut - the name shortened first) */
.pr-pt { flex: none; font-style: normal; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 7px; color: #12301e; background: #7dffb0; }
/* (หญิง / ชาย and ตัวปกติ / ตัวเล็ก side by side, "สุ่มหน้าตาใหม่" its own row under them - its words whole on a computer too) */
.pr-look { flex-wrap: wrap; }
.pr-look .pr-sex { flex: 1 1 0; }
.pr-look .pr-sex .pr-sx { flex: 1; }
#win-priest .pr-look .pr-roll { flex-basis: 100%; }
/* each place of its head (Noh 2026-11-08 14:04 "สุ่ม บน สุ่ม กลาง สุ่ม ล่าง สุ่มผ้าคลุม"): the item worn, 🎲, ✕ */
.pr-parts { display: grid; gap: 4px; padding: 6px 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(200, 180, 255, 0.25); }
.pr-pt-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 34px 34px; align-items: center; gap: 6px; min-height: 30px; }
.pr-pk { font-size: 12px; font-weight: 700; color: #cdbdf7; }
.pr-pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: #fff; }
.pr-pn.none { color: #8f95b4; font-weight: 400; }
#win-priest .pr-pb { width: 34px; height: 28px; min-height: 0; padding: 0; border-radius: 8px; font-size: 15px; line-height: 1; text-shadow: none; color: #fff;
	border: 1px solid rgba(200, 180, 255, 0.55); background: linear-gradient(180deg, #8a6cf0, #5a3fc8); box-shadow: none; }
#win-priest .pr-pb.pr-px { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.25); font-size: 13px; }
#win-priest .pr-pb:disabled { opacity: 0.35; }
.pr-pb.pr-pgap { visibility: hidden; }
/* its master's aura / trail (Noh 2026-11-08 14:06): two switches */
.pr-fxs { display: flex; gap: 8px; flex-wrap: wrap; }
#win-priest .pr-fx { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: auto; min-height: 32px; padding: 4px 10px; border-radius: 10px;
	font-weight: 700; color: #cfd8ff; text-shadow: none; border: 1px solid rgba(200, 180, 255, 0.4); background: rgba(0, 0, 0, 0.28); box-shadow: none; white-space: normal; }
#win-priest .pr-fx.on { color: #fff; border-color: #ffd36b; background: linear-gradient(90deg, rgba(255, 196, 60, 0.3), rgba(140, 90, 230, 0.35)); }
#win-priest .pr-fx:disabled { opacity: 0.55; }
#win-priest .pr-fx { justify-content: flex-start; }
.pr-fxl { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.3; }
#win-priest .pr-fx small { font-size: 10px; font-weight: 600; color: #b9c0dc; }
.pr-fxk { width: 26px; height: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); position: relative; flex: none; }
.pr-fxk::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #c9cde0; transition: left 0.15s; }
.pr-fx.on .pr-fxk { background: #f2c94c; }
.pr-fx.on .pr-fxk::after { left: 14px; background: #fff; }
@media (max-width: 480px) { .pr-pt-row { grid-template-columns: 64px minmax(0, 1fr) 34px 34px; } }
