.board[data-pressure="1"] {
  box-shadow: inset 0 0 0 2px #cb8846;
}

.board[data-pressure="2"] {
  box-shadow: inset 0 0 0 2px #f17b86, 0 0 13px #d9576966;
}

body[data-screen="match"] #arenaBackdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 65%, #c88dff, transparent 65%);
  opacity: var(--music-light, 0);
}

body[data-screen="match"][data-pressure="2"] #arenaBackdrop::after {
  background: radial-gradient(ellipse at center, transparent 38%, #4c0a24a8);
}

.board[data-shatter-fuse] .crack {
  animation-name: impact-squash;
}

@keyframes impact-squash {
  0% { transform: scale(1); }
  38% { transform: scale(1.12, .82); }
  62% { transform: scale(.89, 1.08); opacity: .9; }
  100% { transform: scale(.72); opacity: 0; }
}

.shatter-pop {
  color: #fff5fe;
  background: #170b23f0;
  text-shadow: none;
  z-index: 2;
}

.shatter-pop[data-tier="3"] { font-size: clamp(12px, 2vw, 20px); }
.shatter-pop[data-tier="4"] { font-size: clamp(14px, 2.4vw, 24px); border-width: 2px; }
.shatter-pop[data-tier="5"] {
  font-size: clamp(15px, 2.8vw, 27px);
  border-width: 2px;
  box-shadow: inset 0 -3px var(--ink);
}

.feedback-counter-impact {
  border: 2px solid #ffb879;
  box-shadow: inset 0 0 20px #ffb879;
  animation-name: garbage-rim;
}

@keyframes garbage-rim {
  from { opacity: var(--weight, .35); }
  to { opacity: 0; }
}

.feedback-recovery {
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 94%;
  width: max-content;
  padding: .25em .55em;
  background: #11282c;
  color: #b8ffea;
  border: 1px solid #72cdb5;
  font-weight: 800;
  animation: counter-feedback .95s ease-out both;
}

#settings input[type="checkbox"] {
  justify-self: start;
  width: 1.35rem;
  height: 1.35rem;
  accent-color: #b877ff;
}

#menu:not([hidden]), #settings:not([hidden]), #roster:not([hidden]),
#result[open]:not([data-continue]) .modal-head {
  animation: impact-panel-in .25s ease-out both;
}

#roster:not([hidden]) #rosterArt {
  animation: portrait-breath 5s ease-in-out infinite;
}

#result[open]:not([data-continue]) #outcome {
  text-shadow: 2px 2px #612856;
}

#result[open] #resultWinner {
  background: radial-gradient(ellipse at 50% 90%, #b6784560, transparent 68%);
}

@keyframes impact-panel-in {
  from { opacity: .75; }
  to { opacity: 1; }
}

@keyframes portrait-breath {
  0%, 100% { box-shadow: inset 0 0 0 1px #eeadef38; }
  50% { box-shadow: inset 0 0 0 2px #eeadef82; }
}

body.game-paused #arenaBackdrop::before,

.reduced-impact-motion #arenaBackdrop::before { display: none; }

.reduced-impact-flashing .shatter-starburst,
.reduced-impact-flashing .chain-breaker-glint,
.reduced-impact-flashing .shatter-board-glow { display: none; }

.reduced-impact-flashing #result[open][data-arcade-clear] .lineup-photo::after {
  animation: none;
  opacity: 0;
}

.reduced-impact-motion :is(#menu, #settings, #roster, #rosterArt, #result .modal-head,
  .cell.counter-fall, .cancel-shard, .shard, .shatter-halo, .gem-fracture,
  .shatter-starburst, .chain-breaker-glint, .shatter-board-glow) {
  animation: none !important;
}

.reduced-impact-motion .cell.split-fall { transform: none !important; }
.reduced-impact-motion :is(.cell.crack, .power-block.crack) { animation-name: gentle-clear; }

.reduced-impact-motion :is(.shatter-pop, .feedback-recovery, .feedback-cancel, .feedback-chain-finish) {
  animation-name: board-feedback-fade;
  transform: translateX(-50%);
}

.reduced-impact-flashing .attack-warning,
.reduced-impact-motion .attack-warning {
  animation: none !important;
}

.reduced-impact-motion :is(#crtScanlines, #grain, #roundIntro, #koBanner),
.reduced-impact-motion #crtScanlines::after {
  animation: none !important;
}

.reduced-impact-motion #roundIntro { transform: translate(-50%, -50%); }
.reduced-impact-motion #crtScanlines::after { display: none; }
