.order-sequence {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid #d1daea;
  border-radius: 3px;
  background: #f5f8fd;
}
.order-sequence span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  border-radius: 3px;
  color: var(--blue-dark);
  font: 23px/1 Arial, sans-serif;
}
.order-sequence [data-picked] { color: var(--green); background: #e5f2eb; }
.order-grid { width: min(100%, 320px); margin: 0 auto; }
.order-grid .order-icon { min-height: 53px; font: 26px/1 Arial, sans-serif; }
.order-grid .order-icon[aria-pressed="true"] { color: var(--green); background: #e5f2eb; border-color: #94baa8; }
.order-reset { display: block; margin: 9px auto 0; padding-inline: 10px; }

.shape-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.shape-score { color: var(--muted); font-size: 12px; }

.shape-field {
  border: 1px solid #364d71;
  border-radius: 3px;
  overflow: hidden;
  background: #142641;
  touch-action: none;
  cursor: crosshair;
}
.shape-field canvas { display: block; width: 100%; height: auto; }
.shape-field[data-locked] { cursor: default; border-color: #a07930; }
.shape-meter { display: block; width: 100%; height: 10px; margin-top: 9px; accent-color: var(--blue); }

.match-board {
  position: relative;
  width: min(100%, 310px);
  margin: 0 auto;
}
.match-cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 3px;
  box-shadow: 0 0 0 1px #b6c3da;
  touch-action: none;
}
.match-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: inset 0 0 0 1px #d3dced;
  background: #f4f7fc;
  user-select: none;
}
.match-cell:hover { background: #e7eefb; }
.match-cell[data-tip] { background: #dee8fc; }
.match-cell:focus-visible { outline-offset: -4px; z-index: 2; }
.match-cell span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 67%;
  aspect-ratio: 1;
  border: 2px solid var(--match-color);
  border-radius: 50%;
  background: #fff;
  color: var(--match-color);
  font: 700 clamp(15px, 5vw, 24px)/1 Arial, sans-serif;
  pointer-events: none;
}
.match-cell[data-connected] span { color: white; background: var(--match-color); }
.match-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.match-actions { display: flex; justify-content: space-between; width: min(100%, 310px); margin: 10px auto 0; }
.match-actions button { padding-inline: 10px; }
