/* Items 51/52: low-spec mode for weak laptops. <html data-lowspec="on"> (set by low-spec.js) drops the costly paint work:
   backdrop blur, big shadows and filters, and decorative loops. Gameplay-relevant motion (the danger edge) goes static. */
[data-lowspec="on"] *,[data-lowspec="on"] *::before,[data-lowspec="on"] *::after{
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;text-shadow:none!important;
  animation-iteration-count:1!important;transition-duration:0s!important;will-change:auto!important}
[data-lowspec="on"] .cu-danger-edge.on{animation:none!important;opacity:.85}
[data-lowspec="on"] .cu-tip-maria{filter:none!important}
.cu-lowspec-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;cursor:pointer;color:var(--ui-parchment,#fff3cd)}
.cu-lowspec-toggle input{width:20px;height:20px;margin:0}
.cu-lowspec-toggle small{font-size:12px;color:var(--ui-parchment-dim,#c9c3e6)}
.cu-lowspec-toggle input:focus-visible{outline:none;box-shadow:var(--cu-focus-ring,0 0 0 2px #231a2e,0 0 0 5px #ffe2a3)}
/* B4-04: large blurred glows (blur 16 px or more) cost paint on every frame they animate or move. Low-spec keeps the
   state readable with a crisp 2 px ring instead (focused elements keep their focus ring). Rule list from the round15 audit; a new glow over 16 px must be added here. */
[data-lowspec="on"]{--cu-glow-cta:0 0 0 2px #ffe2a3;--cu-glow-sel:0 0 0 2px #ffe2a3}
[data-lowspec="on"] .h2-slot.on:not(:focus-visible),
[data-lowspec="on"] .h2-chip.primary:not(:focus-visible),
[data-lowspec="on"] .h2-chip.primary:hover:not(:focus-visible),
[data-lowspec="on"] .h2-pbuild:not(:focus-visible),
[data-lowspec="on"] .cu-enter:not(:focus-visible),
[data-lowspec="on"] .cu-card.is-sel:not(:focus-visible),
[data-lowspec="on"] .cu-strike .slash:not(:focus-visible),
[data-lowspec="on"] .cu-gala-col[data-rank="1"] .cu-gala-card.shown .cu-gala-front:not(:focus-visible){box-shadow:0 0 0 2px var(--cu-ink,#231a2e),0 0 0 4px var(--ui-gold-hi,#ffe2a3)!important}
