/* Last stylesheet intentionally overrides the old dialog-wide selection exception. */
html,body,body *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-user-drag:none}
body input,body textarea,body select,body [contenteditable=""],body [contenteditable="true"],body [contenteditable="true"] *{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
button,a,[role=button]{touch-action:manipulation}#scene,#coffee-workbench,#coffee-action,#touch-controls{touch-action:none}
@media(pointer:coarse){
 #survival-hud.vitals-interior{left:auto!important;right:calc(10px + env(safe-area-inset-right))!important;top:calc(65px + env(safe-area-inset-top))!important;bottom:auto!important;width:125px!important;padding:5px 7px!important;font-size:10px!important;pointer-events:none}
 #survival-hud.vitals-interior #survival-tip,#survival-hud.vitals-interior #survival-time{display:none}
 #survival-hud.vitals-interior label{gap:4px}#survival-hud.vitals-interior progress{height:5px}#survival-hud.vitals-interior label>b{font-size:9px}
 body:has(dialog[open]) #survival-hud{visibility:hidden!important}
}
#survival-lives{accent-color:#bd9b55}#survival-lives-value{white-space:nowrap}
#game-over{width:min(360px,calc(100vw - 32px));box-sizing:border-box;background:#f5eddf;color:#243848;border:1px solid #bc9d66;border-radius:18px;padding:22px}#game-over::backdrop{background:#142432b8}#game-over h2{font-size:22px;letter-spacing:.08em}#game-over p{font-size:13px;line-height:1.6}#game-over button{width:100%;min-height:44px;background:#1e384d;color:#fff;border:0;border-radius:10px}
