/* Vocabulary root */

.vocab {
  width: 100%;
}


/* Match */

.vocab__match {
  width: 100%;
}

.vocab__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.8dvh, 24px);
  padding-block: 2px;
}


/* Card */

.vocab__card {
  height: 64px;
  border: none;
  border-radius: 16px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  background: var(--color-brand-surface);
  transition: background 0.15s ease, outline 0.15s ease;
}

.vocab__card--target {
  background: var(--color-surface-neutral);
}

.vocab__card.is-selected {
  outline: 2px solid var(--color-warning);
}

.vocab__card.is-error {
  outline: 2px solid var(--color-error);
}

.vocab__card.is-matched {
  background: var(--color-success);
  color: var(--color-text-inverse);
}

.vocab__card.is-blocked {
  cursor: default;
}

/* Divider */

.vocab__divider {
  grid-column: 1 / -1;
  margin-inline: 12px;

  border-top: 1px solid var(--color-divider-soft);
}

/* Timer overlay */

.vocab__timer-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.vocab__timer-overlay .container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}


/* Stop button */

.vocab__stop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: auto;
  border: none;
  border-radius: 50%;
  background: var(--color-surface-base);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  pointer-events: auto;
}

.vocab__stop-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-error);
}


/* Live timer */

.vocab__live-timer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 46px;
  border-radius: 999px;
  background: var(--color-surface-base);
  box-shadow: var(--shadow-soft);
  font-weight: var(--font-weight-bold);
}


/* Finish content (used inside shared modal) */

.vocab__finish-time {
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-bold);
}
