.plot-game header {
  text-align: center;
  padding-inline: 2.75rem;
}
.plot-game header p {
  margin: .35rem 0 .65rem;
  line-height: 1.3;
}
.plot-events {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: 0;
  padding: .2rem;
  list-style: none;
  counter-reset: plot-position;
}
.plot-events li {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.35rem, 1.25vw, .8rem);
  padding: .35rem .55rem;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--card);
  line-height: 1.3;
  cursor: grab;
  counter-increment: plot-position;
}
.plot-events li::before {
  content: counter(plot-position);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.plot-events .plot-target { border-color: var(--accent); background: var(--slot); }
.plot-events .plot-dragging {
  border-style: dashed;
  background: transparent;
}
.plot-events .plot-dragging::before,
.plot-events .plot-dragging > * { visibility: hidden; }
.plot-move { display: flex; gap: .2rem; }
.plot-game .plot-move button { min-width: 44px; padding: 0; }
.plot-game button[aria-disabled="true"], .plot-game button:disabled { opacity: .45; cursor: default; }
.plot-actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding-top: .45rem;
  border-top: 1px solid var(--rule);
}
.plot-feedback {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}
.plot-feedback:empty { display: none; }
.plot-game .plot-check { background: var(--pine); color: white; }
@media (max-width: 32rem) {
  .plot-move { flex-direction: column; }
}

.plot-game[data-result]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--plot-result-colour);
  pointer-events: none;
  animation: plot-result-pulse .32s ease-in-out 3;
  opacity: 0;
}
.plot-game[data-result="incorrect"] { --plot-result-colour: #b52c45; }
.plot-game[data-result="correct"] { --plot-result-colour: #25804f; }
@keyframes plot-result-pulse {
  50% { opacity: .24; }
}
@media (prefers-reduced-motion: reduce) {
  .plot-game[data-result]::after { animation: none; opacity: .12; }
}
