.pet-ui{position:absolute;inset:0;z-index:38;pointer-events:none;color:#f7dfad;font:12px SimSun,"宋体",serif}.pet-ui[hidden],.pet-ui [hidden]{display:none!important}.pet-ui button{font:inherit;color:inherit;cursor:pointer;border:0;box-sizing:border-box}.pet-ui button:disabled{cursor:not-allowed;filter:grayscale(.7) brightness(.6)}.pet-ui button:focus-visible{outline:2px solid #ffe38b;outline-offset:2px;z-index:4}.pet-ui button:not(:disabled):hover{filter:brightness(1.28)}.pet-ui button:not(:disabled):active{filter:brightness(.8)}.pet-status-hud{position:absolute;width:187px;height:31px;transform:scale(var(--pet-hud-scale,1));transform-origin:top left;pointer-events:auto;user-select:none}.pet-status-frame{position:absolute;inset:0;width:187px;height:31px;pointer-events:none}.pet-status-gauge{position:absolute;left:14px;width:103px;height:7px}.pet-status-hp{top:7px}.pet-status-mp{top:18px}.pet-status-fill{width:103px;height:7px;position:absolute;inset:0;pointer-events:none}.pet-status-value{position:absolute;inset:-3px 0 0;height:12px;line-height:12px;text-align:center;font:10px Arial,sans-serif;color:#d2ffff;text-shadow:1px 1px #111,-1px -1px #111}.pet-status-level{position:absolute;left:152px;top:2px;width:24px;text-align:center;font:11px Arial,sans-serif;color:#c3ecd1;text-shadow:1px 1px #111}.pet-status-loyalty{position:absolute;left:128px;top:8px;width:14px;height:14px;color:#ead7b5;font-size:10px;text-align:center;line-height:14px}.pet-status-toggle{position:absolute;left:153px;top:15px;width:19px;height:14px;background:transparent}.pet-status-toggle:hover,.pet-status-toggle:focus-visible{background:url('assets/pet-ui/pet_status_box_btn.png') no-repeat}.pet-quickbar{position:absolute;pointer-events:auto;transform:scale(var(--pet-quick-scale,1));transform-origin:top left;touch-action:none;user-select:none}.pet-quickbar-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.pet-quickbar>button{position:absolute;background-color:transparent;background-repeat:no-repeat;padding:0}.pet-quick-close,.pet-quick-rotate,.pet-quick-lock{width:11px;height:11px}.pet-quick-close{left:19px;top:26px;background-image:url('assets/pet-ui/pet_qSlot_close.png')}.pet-quick-rotate{left:19px;top:42px}.pet-quick-lock{left:19px;top:58px}.pet-quickbar[data-orientation=vertical] .pet-quick-close{left:60px;top:19px}.pet-quickbar[data-orientation=vertical] .pet-quick-rotate{left:43px;top:19px}.pet-quickbar[data-orientation=vertical] .pet-quick-lock{left:26px;top:19px}.pet-quick-slot-wrap{position:absolute;width:32px;height:32px}.pet-quick-slot{position:absolute;inset:0;width:32px;height:32px;background:transparent;padding:0}.pet-quick-slot:disabled{background:#190c08a8}.pet-quick-skill-icon{display:block;width:32px;height:32px}.pet-quick-auto{position:absolute;left:0;top:33px;width:32px;height:9px;background:url('assets/pet-ui/pet_qSlot_hNotUse.png') no-repeat;pointer-events:none;filter:brightness(.65)}.pet-quick-edit{position:absolute;left:0;top:33px;width:32px;height:10px;background:#3b251c!important;border:1px solid #8b6951!important;font-size:8px!important;line-height:8px;padding:0;opacity:0}.pet-quick-slot-wrap:hover .pet-quick-edit,.pet-quick-slot-wrap:focus-within .pet-quick-edit{opacity:1}.pet-quickbar[data-orientation=vertical] .pet-quick-auto{left:34px;top:0;width:9px;height:32px;background-image:url('assets/pet-ui/pet_qSlot_vNotUse.png')}.pet-quickbar[data-orientation=vertical] .pet-quick-edit{left:25px;top:19px;width:17px;height:13px;font-size:7px!important}.pet-quick-tool{width:32px;height:32px;background-size:32px 32px}.pet-ui-feedback{position:absolute;top:140px;left:50%;transform:translateX(-50%);max-width:80%;margin:0;color:#ffe5a5;text-shadow:1px 1px 2px #000;pointer-events:none}.pet-picker-backdrop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#09060166;pointer-events:auto;z-index:5}.pet-picker{position:relative;width:min(390px,90%);max-height:85%;overflow:auto;box-sizing:border-box;border:3px ridge #985546;background:#2d100cf5;padding:16px 14px 14px;box-shadow:0 4px 16px #000b;color:#ead4a9}.pet-picker-title{margin:0 54px 14px 0;font-size:16px;font-weight:normal;color:#ffde88}.pet-picker-close{position:absolute;right:9px;top:9px}.pet-picker button{border:1px solid #a16a4b;background:#4d281b;min-height:28px;padding:4px 8px}.pet-picker-help,.pet-picker-summary{line-height:1.7;margin:10px 0}.pet-picker-skills{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pet-picker .pet-picker-skill{display:flex;align-items:center;gap:6px;text-align:left;min-height:42px;padding:4px}.pet-picker-skill img{width:32px;height:32px;flex:none}.pet-picker-clear{margin-top:12px}.pet-picker-empty{grid-column:1/-1}@media(pointer:coarse){.pet-quick-edit{opacity:1}.pet-quick-close:before,.pet-quick-rotate:before,.pet-quick-lock:before{content:"";position:absolute;inset:-4px}.pet-picker button{min-height:36px}}@media(max-width:500px){.pet-picker-skills{grid-template-columns:1fr}.pet-ui-feedback{top:125px}}
.pet-status-loyalty{background:transparent;padding:0}.pet-status-loyalty:hover{background:#50201c80}
.pet-quick-auto{pointer-events:auto;padding:0;background-color:transparent;filter:none;z-index:2}.pet-quick-auto[data-auto-state=CanUse]{background-image:url('assets/pet-ui/pet_qSlot_hCanUse.png')}.pet-quick-auto[data-auto-state=Using]{background-image:url('assets/pet-ui/pet_qSlot_hUsing.png')}.pet-quickbar[data-orientation=vertical] .pet-quick-auto[data-auto-state=CanUse]{background-image:url('assets/pet-ui/pet_qSlot_vCanUse.png')}.pet-quickbar[data-orientation=vertical] .pet-quick-auto[data-auto-state=Using]{background-image:url('assets/pet-ui/pet_qSlot_vUsing.png')}.pet-quick-edit{left:22px;top:0;width:10px;height:10px;font-size:0!important;z-index:3}.pet-quick-edit::after{content:'·';font-size:11px;line-height:8px}.pet-quickbar[data-orientation=vertical] .pet-quick-edit{left:20px;top:0;width:10px;height:10px;font-size:0!important}.pet-quick-tool[aria-pressed=true]{outline:1px solid #ffd984;box-shadow:inset 0 0 6px #ffd98488}.pet-picker-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.pet-picker-auto-note{line-height:1.6;color:#cbb591}.pet-picker button.pet-picker-auto-restore{min-height:32px}

/* Auto on/off at a glance: running = bright green-gold label and a glowing ring round the icon; off = grey label. */
.pet-quick-auto[data-auto-state=CanUse]{filter:grayscale(1) brightness(.7)}
.pet-quick-auto[data-auto-state=Using]{filter:brightness(1.35) saturate(1.4) drop-shadow(0 0 2px #8dff6e)}
.pet-quick-slot-wrap[data-auto-state=Using]::after{content:"";position:absolute;left:-2px;top:-2px;width:36px;height:36px;box-sizing:border-box;border:2px solid #7cf05a;border-radius:3px;box-shadow:0 0 6px 1px #7cf05acc,inset 0 0 6px #7cf05a88;pointer-events:none;z-index:1;animation:pet-auto-pulse 1.6s ease-in-out infinite}
@keyframes pet-auto-pulse{50%{box-shadow:0 0 10px 2px #7cf05aee,inset 0 0 8px #7cf05aaa}}
@media (prefers-reduced-motion:reduce){.pet-quick-slot-wrap[data-auto-state=Using]::after{animation:none}}
/* Pet mode buttons: the chosen mode is lit and ringed in gold, the others dimmed. */
.pet-quick-tool[aria-pressed=false]{filter:brightness(.55) saturate(.6)}
.pet-quick-tool[aria-pressed=true]{outline:2px solid #ffd84a;outline-offset:-1px;box-shadow:0 0 8px 2px #ffcf3acc,inset 0 0 8px #ffd84a99;filter:brightness(1.2)}
/* 手机横屏的圆形灵兽头像只在手机布局显示（样式在 mobile-hud.css） */
.pet-orb{display:none}
/* 手机圆形头像生命低于 30% 时外圈闪烁（规则在 mobile-hud.css） */
@keyframes pet-orb-low{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.is-mobile-hud .pet-orb.is-low .pet-orb-hp{animation:none}}
/* 手机技能面板最下面的“灵兽技能”按钮只在手机布局显示 */
.pet-quick-jump{display:none}
