/* btn3d-v1 (David 2026-11-08): every button gets 1 top light (inset), 2 bottom shade (inset), 3 contact shadow, 4 glow in its own colour.
   --b3c (the button's own colour) and data-b3=fill|line are set by btn3d.js. Soft press: shadows settle, no movement or flash (nopress-v1 stays). */
[data-b3]{--b3a:.5;-webkit-tap-highlight-color:transparent;transition:translate .18s ease,box-shadow .18s ease,background-color .2s ease,border-color .2s ease,color .2s ease,opacity .2s ease,filter .2s ease;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 10px 12px -8px rgba(255,255,255,.22),inset 0 -3px 0 rgba(0,0,0,.22),inset 0 -10px 12px -8px rgba(0,0,0,.18),0 1px 1px rgba(0,0,0,.5),0 3px 6px -1px rgba(0,0,0,.4),0 6px 20px -4px rgb(var(--b3c,0 0 0)/var(--b3a))!important}
[data-b3=line]{--b3a:.35;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -2px 0 rgba(0,0,0,.25),0 1px 1px rgba(0,0,0,.45),0 3px 6px -1px rgba(0,0,0,.35),0 5px 16px -4px rgb(var(--b3c,0 0 0)/var(--b3a))!important}
/* one soft 1px lift for every button: the old per-button hover transforms are replaced so lifts never add up;
   buttons placed with a transform at rest (data-b3-tf) keep their own transform and get the glow only */
@media(hover:hover){[data-b3]:not(:disabled):hover{--b3a:.7}[data-b3][data-b3]:not([data-b3-tf]):not(:disabled):hover{transform:none;translate:0 -1px}}
[data-b3][data-b3]:not(:disabled):active{translate:none;--b3a:.3;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 3px 8px -2px rgba(0,0,0,.28),inset 0 -1px 0 rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.45),0 3px 12px -4px rgb(var(--b3c,0 0 0)/var(--b3a))!important}
[data-b3]:disabled{--b3a:0}
@media(prefers-reduced-motion:reduce){[data-b3]{transition:none}[data-b3][data-b3]:hover{translate:none}}
