/* Revive support and an on-demand interaction overview; no shop consumable. */
#ximiao-revive[hidden],#ximiao-status[hidden],#ximiao-product[hidden],#ximiao-product-image[hidden]{display:none!important}
#ximiao-revive{position:absolute;left:50%;bottom:max(165px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:11;padding:11px 18px;border:1px solid #bc7e4f;border-radius:20px;background:#fff8e9;color:#88532f;box-shadow:0 3px 12px #46321e30;font-size:13px;font-weight:700;white-space:nowrap}
#ximiao-revive:disabled{opacity:.65}
#ximiao-status{position:absolute;right:max(22px,env(safe-area-inset-right));top:185px;max-width:270px;padding:5px 10px;border-radius:14px;background:#fff3dfe8;color:#855c32;border:1px solid #e2bc7880;font-size:11px;pointer-events:none;z-index:4;white-space:pre-line;line-height:1.5}
#ximiao-product{position:absolute;right:max(20px,env(safe-area-inset-right));top:220px;width:260px;display:grid;grid-template-columns:66px 1fr;gap:10px;padding:12px;border:1px solid #d8ba91;border-radius:14px;background:#fff9eeee;color:#795334;z-index:9;box-shadow:0 4px 20px #46321e24;touch-action:pan-y}
#ximiao-product-image{width:66px;height:66px;object-fit:contain;border-radius:9px;image-rendering:auto;background:white}#ximiao-product-copy{min-width:0;padding-right:12px}#ximiao-product-copy small{font-size:9px;color:#a17c57}#ximiao-product-name{display:block;font-size:12px;line-height:1.5}#ximiao-product-intro{font-size:10px;line-height:1.6;margin:4px 0;color:#97734f}#ximiao-product-close{position:absolute;right:4px;top:4px;width:25px;height:25px;border:0;border-radius:50%;background:none;color:#9a7858;font-size:19px}
body.photo-mode #ximiao-revive,body.photo-mode #ximiao-status,body.photo-mode #ximiao-product{display:none!important}
body.world-boss-active #ximiao-status{top:calc(var(--battle-top) + 72px);right:10px;font-size:10px;background:#24434bc9;color:#f8e1ad;border:0}body.world-boss-active #ximiao-product{top:calc(var(--battle-top) + 130px)}
@media(max-height:540px) and (orientation:landscape){#ximiao-status{top:116px}#ximiao-product{top:145px;width:230px}#ximiao-revive{bottom:110px}}
@media(orientation:portrait){#ximiao-status{top:230px;right:10px;max-width:220px}#ximiao-product{top:265px;right:10px;width:min(245px,calc(100vw - 24px))}#ximiao-revive{bottom:max(290px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);font-size:12px}body.world-boss-active #ximiao-status{top:calc(var(--battle-top) + 74px)}body.world-boss-active #ximiao-product{top:calc(var(--battle-top) + 103px)}}
#ximiao-activity-dialog{width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 28px);box-sizing:border-box;overflow:auto}
.ximiao-overview-live{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;margin:0 0 16px;border:1px solid #ccdacd;border-radius:14px;background:#eaf1e7;color:#3e654c}
.ximiao-overview-live strong{font-size:15px}.ximiao-overview-live p{margin:5px 0 0;font-size:12px;line-height:1.6;color:#687e63}
#ximiao-overview-clock{font-size:12px;color:#5c7c52;white-space:nowrap}
.ximiao-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ximiao-overview-grid section{padding:15px;border:1px solid #eadac4;border-radius:12px;background:#fffcf6}
.ximiao-overview-grid strong{display:block;font-size:13px;color:#805534}.ximiao-overview-grid p{font-size:12px;color:#947756;line-height:1.8;margin:7px 0 0}
.ximiao-overview-grid .brawl-interaction-card{border-color:#d1dfcc;background:#f7fbf3}.brawl-interaction-card>small{display:block;font-size:10px;color:#7b8d6a;margin-bottom:6px}.brawl-interaction-card>strong{color:#41664a}
.brawl-interaction-state{display:block;margin-top:10px;font-size:11px;line-height:1.65;color:#46725c;min-height:18px}
.ximiao-overview-grid .ximiao-overview-raid{grid-column:1/-1}
.ximiao-overview-note{font-size:11px;line-height:1.8;color:#a28769;margin:15px 0 0}
@media(max-width:480px){.ximiao-overview-grid{grid-template-columns:1fr}.ximiao-overview-live{padding:13px;gap:10px}.ximiao-overview-grid section{padding:13px}}
