/* Independent scale preserves each control's existing layout and transform. */
:where(button,a[href],[role=button],input[type=checkbox],input[type=radio],input[type=range],label[for]).input-pressed{
 scale:.95!important;filter:brightness(1.18) saturate(1.15) drop-shadow(0 0 5px #fff1a888)!important;
}
#tap-effects{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:transparent;pointer-events:none!important;z-index:2147483647;contain:strict}
#tap-effects::backdrop{background:transparent;pointer-events:none}
#tap-effects .tap-burst{position:absolute;display:block;width:0;height:0;pointer-events:none}
#tap-effects .tap-burst i{position:absolute;display:block;pointer-events:none;will-change:transform,opacity}
#tap-effects .tap-ring{width:76px;height:76px;margin:-38px 0 0 -38px;box-sizing:border-box;border:3px solid #fffbea;border-radius:50%;background:transparent;box-shadow:0 0 3px 1px #fff9,0 0 7px 2px #ffe598bb,inset 0 0 5px #ffe59899}
#tap-effects .tap-spark{width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#fffef8;box-shadow:0 0 2px 1px #fff,0 0 4px 1px #ffe5a8,0 0 7px 2px #ffd66b99}
#difficulty-dialog .difficulty-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
#difficulty-dialog .difficulty-option small{font-size:12px;line-height:1.3;text-align:center;white-space:normal}
#difficulty-dialog .difficulty-option[aria-disabled=true]{color:#486674;background:linear-gradient(#dcebee,#b8d0d9);border-color:#8aafb9;box-shadow:none;text-shadow:none}
#difficulty-dialog .difficulty-option[aria-disabled=true] strong{font-size:19px}
#difficulty-dialog .difficulty-option[aria-disabled=true] small{color:#365965}
#difficulty-lock-status{min-height:32px;margin:8px 0 0;text-align:center;font:800 12px/1.35 Nunito,sans-serif;color:#286377}

.reduce-motion .input-pressed{scale:1!important}

#tap-effects .tap-spark:nth-of-type(even){background:#fff6b5;box-shadow:0 0 2px 1px #fff,0 0 4px 1px #ffdb6b,0 0 7px 2px #ffca4999}
#tap-effects .tap-spark:nth-of-type(3n){background:#e5fdff;box-shadow:0 0 2px 1px #fff,0 0 4px 1px #7defff,0 0 7px 2px #60dfff99}
