.ebr-multi-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
  max-width: 760px;
  margin: 2rem auto 0;
}
.ebr-multi-cell h4 {
  margin: 0 0 .7rem;
  font-family: var(--display, inherit);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: #1f2330;
}
.ebr-multi {
  --ink: #1d2733; --muted: #5b6573; --wrong: #C0304F; --wrong-bg: #F6D3DB; --ok: #1f8a4c; --blue: #0072B2;
  display: flex; flex-direction: column; gap: .6rem; color: var(--ink);
}
.ebr-multi__stage { width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 1; }
.ebr-multi__svg { display: block; width: 100%; height: 100%; overflow: visible; }

.nq-light { fill: #fff; }
.nq-dark { fill: #F1F3F6; }
.nq-frame { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.nq-attack { fill: var(--wrong-bg); }
.nq-queen { font-size: 30px; text-anchor: middle; dominant-baseline: central; fill: var(--blue);
  font-family: "DejaVu Sans", "Segoe UI Symbol", "Apple Symbols", sans-serif; }
.nq-queen.is-given { fill: var(--ink); }
.nq-queen.is-bad { fill: var(--wrong); }
.nq-queen.is-new { animation: ebr-pop .5s ease-out; transform-box: fill-box; transform-origin: center; }

.gc-edge { stroke: #b6bec9; stroke-width: 1.4; transition: stroke .3s, stroke-width .3s; }
.gc-edge.is-bad { stroke: var(--wrong); stroke-width: 3.6; }
.gc-node { stroke: var(--ink); stroke-width: 1.5; transition: fill .35s; }
.gc-node.is-new { animation: ebr-pop .5s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes ebr-pop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }

.ebr-multi.is-solved .ebr-multi__stage { filter: drop-shadow(0 0 6px rgba(31,138,76,.25)); }
.ebr-multi__read { display: grid; grid-template-columns: auto auto; grid-template-areas: "s e" "w w"; justify-content: start;
  column-gap: .9rem; row-gap: .1rem; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums;
  max-width: 300px; width: 100%; margin: 0 auto; white-space: nowrap; }
.ebr-multi__read > span:nth-child(1) { grid-area: s; }
.ebr-multi__read > span:nth-child(2) { grid-area: e; }
.ebr-multi__status { grid-area: w; color: var(--wrong); font-weight: 600; }
.ebr-multi.is-solved .ebr-multi__status { color: var(--ok); }
.ebr-multi__ctl { display: flex; align-items: center; gap: .6rem; max-width: 300px; width: 100%; margin: 0 auto; }
.ebr-multi__ctl input[type=range] { flex: 1; accent-color: var(--ink); margin: 0; }
.ebr-multi__play { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer;
  position: relative; flex: none; }
.ebr-multi__play::before { content: ""; position: absolute; left: 11px; top: 9px; border-left: 10px solid #fff;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ebr-multi__play.is-playing::before { left: 10px; top: 10px; width: 3px; height: 10px; border: 0;
  border-left: 3px solid #fff; border-right: 3px solid #fff; }

@media (max-width: 640px) {
  .ebr-multi-pair { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ebr-multi * { animation: none !important; transition: none !important; }
}

.ebr-multi__play.is-done::before { left: 8px; top: 8px; width: 14px; height: 14px; border: 2px solid #fff;
  border-right-color: transparent; border-radius: 50%; box-sizing: border-box; }
.ebr-multi__play.is-done::after { content: ""; position: absolute; left: 17px; top: 6px; border-left: 5px solid #fff;
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; transform: rotate(35deg); }
