#healthCard{position:fixed;z-index:2;bottom:max(26px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(400px,calc(100% - 28px));padding:17px 20px 18px;background:#fff6e8;color:#302b20;border:1px solid #ecdbc0;border-radius:22px;box-shadow:0 8px 32px #37270d37;text-align:center}
#healthCard h2{font-size:clamp(19px,3vw,26px);margin:0;line-height:1.3}
#healthCard p{margin:7px 0;font-size:14px;line-height:1.45;white-space:pre-line}
#healthCard button{min-height:46px;width:100%;margin:6px 0 0;font-size:16px}
#healthCard .primary{background:#344a32;color:#fff9e9}
#healthOther.soft{padding:8px 12px;box-shadow:none;font-size:14px}
#healthMeterRow{display:grid;gap:4px;margin:10px 0 2px;text-align:left;font-size:13px;font-weight:700}
#healthMeter{width:100%;height:15px;accent-color:#b87824}
#healthMeter::-webkit-meter-optimum-value{background:#b87824}
[data-health="recovery"] #healthMeter::-webkit-meter-optimum-value{background:#456247}
[data-health-card="yes"] footer{visibility:hidden}
[data-health="memorial"] #camera,[data-health="memorial"] #status,[data-health="memorial"] #place,[data-health="memorial"] #dayline,[data-health="clock"] #camera,[data-health="clock"] #place,[data-health="clock"] #dayline{display:none}
#healthPortrait{position:fixed;z-index:1;bottom:28%;left:50%;transform:translateX(-50%) rotate(-3deg);margin:0;padding:7px;width:clamp(104px,24vw,188px);height:clamp(120px,24vh,220px);background:#eee1c5;border:5px solid #9a7046;box-shadow:4px 12px 24px #26190665;pointer-events:none}
#healthPortrait img{width:100%;height:100%;object-fit:cover;background:#d9d7b4}
#panelBody .archived-photos img{aspect-ratio:4/3;object-fit:cover}
@media(max-height:500px){#healthCard{left:auto;right:12px;transform:none;bottom:12px;width:min(320px,47vw);padding:10px 13px}#healthCard h2{font-size:18px}#healthCard p{font-size:12px}#healthCard button{min-height:44px}#healthPortrait{left:43%;bottom:24%;height:115px}}
#healthNotice{display:block;position:relative;margin-top:5px;pointer-events:auto;z-index:2;min-height:44px;border:1px solid #f8eac7;border-radius:14px;padding:6px 12px;background:#4b523a;color:#fff8df;font-weight:700}

[data-health="sick"] #scene:not(.shutter),[data-health="critical"] #scene:not(.shutter){filter:saturate(.88) brightness(.94)}
#healthCard p:empty{display:none}
[data-clinic] #scene{filter:none!important}
[data-clinic] #place,[data-clinic] #dayline,[data-clinic] #camera,[data-clinic] #status,[data-clinic] #album,[data-clinic] #handExit,[data-clinic] #healthNotice{display:none}
[data-clinic] #healthCard{border-top:4px solid #829674}
#hideTargets{position:fixed;inset:0;pointer-events:none}
#hideTargets button{pointer-events:auto;position:absolute;top:calc(var(--cushion-y,70vh) - 17px);width:clamp(48px,21vw,120px);height:clamp(48px,12vw,76px);transform:translate(-50%,-50%);padding:0;color:transparent;border:2px solid transparent;border-radius:20px;background:transparent;touch-action:manipulation}
#hideTargets button.checked{border-bottom-color:#fff0ce70}
#hideTargets button:hover,#hideTargets button:focus-visible{border-color:#f8e5a2;background:#fff6c214}
#actions .icon.ball-icon{display:inline-flex;vertical-align:middle;margin-right:7px}
.toy-icon{width:27px;height:27px;vertical-align:middle}
@media(max-width:600px){#actions .icon.ball-icon{margin-right:4px}.toy-icon{width:21px;height:21px}}

@media(max-width:600px){#actions .icon.ball-icon{display:flex;justify-content:center;margin:0 0 2px}}
