.scratch-impact{
  position:fixed;left:50%;top:46%;width:min(65vw,78vh,760px);aspect-ratio:5/4;
  transform:translate(-50%,-50%);display:grid;place-items:center;pointer-events:none;z-index:20;
  isolation:isolate;
}
.scratch-impact[hidden]{display:none}
.scratch-impact::before{
  content:"";position:absolute;inset:0;z-index:-1;background:url("./scratch-claws.webp") center/contain no-repeat;
  filter:drop-shadow(0 4px 2px #231125a6);
}
.scratch-impact b{
  transform:rotate(-10deg) skew(-6deg);color:#fff1ab;font:italic 1000 clamp(2.4rem,7.7vw,6.5rem)/.95 "Barlow Condensed",Barlow,Impact,sans-serif;
  white-space:nowrap;text-shadow:3px 4px #271524,5px 6px #c24229;
  -webkit-text-stroke:.075em #291526;paint-order:stroke fill;
}
.controller-body .scratch-impact{width:min(93vw,53vh,520px);top:40%}
.controller-body .scratch-impact b{font-size:clamp(2.3rem,11vw,4.4rem)}
.scratch-impact small{
  position:absolute;top:64%;color:#ffedba;background:#2a1728;padding:.2em .7em;
  font:700 clamp(1rem,2.1vw,1.7rem)/1.1 "Barlow Condensed",Barlow,sans-serif;
  transform:rotate(-6deg);border-bottom:2px solid #e86a38;
}
body:has(.scratch-impact:not([hidden])) :is(#turnAnnouncement,#turnEntrance){visibility:hidden}
.scoring-pop .dice-breakdown{color:#fff2c7;background:#281b28ee;font-size:clamp(.9rem,1.7vw,1.45rem);padding:.12em .48em;text-align:center}
@media(prefers-reduced-motion:no-preference){
  .scratch-impact::before{animation:claw-cut 200ms cubic-bezier(.16,.8,.2,1) both}
  .scratch-impact b{animation:scratch-letter 230ms ease-out both}
  @keyframes claw-cut{from{clip-path:inset(0 84% 0 0);transform:scale(.9)}to{clip-path:inset(0);transform:scale(1)}}
  @keyframes scratch-letter{from{opacity:0;transform:rotate(-13deg) skew(-6deg) scale(.78)}to{opacity:1;transform:rotate(-10deg) skew(-6deg) scale(1)}}
}
