/* ─── Buttons ─────────────────────────────────────────────── */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-restart,
.btn-copy,
.btn-save {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 10px 24px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-restart {
  background: var(--accent);
  color: #0c0c0c;
  border: 1px solid var(--accent);
  font-weight: 500;
}

.btn-restart:hover {
  background: transparent;
  color: var(--accent);
}

.btn-copy,
.btn-save {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-copy:hover,
.btn-save:hover {
  border-color: var(--muted);
  color: var(--text);
}

/* ─── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 9px 20px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  z-index: 950;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Focus styles ────────────────────────────────────────── */
.circle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 50%;
}

button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

input:focus-visible { outline: none; }

/* ─── Scanlines (subtle CRT) ──────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.025) 2px,
    rgba(0,0,0,0.025) 4px
  );
  pointer-events: none;
  z-index: 400;
}

/* ─── Responsive actions ──────────────────────────────────── */
@media (max-width: 520px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
  }

  .btn-restart,
  .btn-copy,
  .btn-save {
    text-align: center;
    width: 100%;
  }
}
