/* The replay viewer, a custom block inside the Lovetere frame (family/FRAME.md); colours from the frame tokens,
   so it follows light and dark. The block tiles themselves are ../custom.css. */

.omb-replay {
  width: min(480px, 100%);
}

.replay-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-surface-2);
}

.replay-board .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 22%;
  background: var(--c-surface);
}

.replay-board .chip {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 22%;
  border-bottom-width: 3px;
}

.replay-step {
  margin: 12px 0 8px;
  color: var(--c-muted);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.replay-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.replay-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.replay-controls input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--c-brand);
}

.replay-status {
  margin: 0 0 16px;
  font-weight: 500;
}

.replay-status:empty {
  display: none;
}

.replay-status.is-error {
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
}

.replay-stage[hidden] {
  display: none;
}
