/* Everything the tap popup looks like. Loaded after style.css, so it uses
   the same variables. Only pages with the popup need this file. */

/* ── spinner ────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #00000022;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── popup ──────────────────────────────────────────────── */
.popup {
  position: absolute;
  z-index: 20;
  width: 300px;
  max-width: calc(100vw - var(--space-4));
  padding: var(--space-3);
  border: 1px solid #0000001a;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 24px #00000022;
}
.popup[hidden] { display: none; }
.popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.popup-word { font-size: var(--size-l); font-weight: 600; }
.popup-simple { margin-top: var(--space-2); }
.popup-rewrite {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid #0000001a;
  color: var(--text-dim);
  font-style: italic;
}
.popup-status { margin-top: var(--space-2); color: var(--text-dim); font-size: var(--size-s); }
