body.dp-playing[data-dp-kind="shapematch"] {
  --suite-accent: #b4d5ae;
  --suite-accent-ink: #15251b;
}
body[data-dp-kind="shapematch"] .stage-art {
  background: #060606;
}
body[data-dp-kind="shapematch"] .stage-art .game-art {
  object-fit: contain;
  max-height: 100%;
}
body[data-dp-kind="shapematch"] .sm-field {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(160px, 44dvh, 460px);
  margin: 10px 0 0;
  padding: 0;
  color: #f6f6f6;
  border: 1px solid #363b3d;
  border-radius: 12px;
  background: #000;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.sm-field:focus-visible { outline: 2px solid var(--suite-accent); outline-offset: 2px; }
.sm-field [hidden] { display: none !important; }
.sm-piece { position: absolute; inset: 0 auto auto 0; will-change: transform; pointer-events: none; }
.sm-circle { border-radius: 50%; }
.sm-triangle { clip-path: polygon(50% 0,100% 100%,0 100%); }
.sm-diamond { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.sm-rectangle { clip-path: inset(18% 0); }
.sm-blue { background: #477eff; } .sm-green { background: #36d669; }
.sm-red { background: #f05a55; } .sm-yellow { background: #f6cb48; }
.sm-orange { background: #f39442; } .sm-purple { background: #a37bf5; }
.sm-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #070708; }
.sm-ghost[src*="/ghosts/"] { background: #000; }
.sm-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 14px; }
.sm-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.sm-results {
  width: min(100%, 26em);
  margin: .3em auto .7em;
  border-collapse: collapse;
  line-height: 1.4;
}
.sm-results :is(th, td) {
  padding: .35em .65em;
  border-bottom: 1px solid var(--suite-line);
  text-align: start;
}
.sm-results thead th { color: var(--suite-muted); font-size: .85em; }
.sm-results tbody th { overflow-wrap: anywhere; font-weight: 600; }
.sm-results tr > :last-child { text-align: end; white-space: nowrap; }
.sm-results td { font-variant-numeric: tabular-nums; }
.sm-results .sm-slowest { background: var(--suite-subtle); color: var(--suite-accent); }
.sm-slowest small { margin-inline-start: .25em; font-size: .75em; white-space: nowrap; }
