/* Level-wide practice page */
.practice-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}
.practice-mode {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  font: 600 16px/1.2 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.practice-mode:hover,
.practice-mode.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.practice-stage {
  max-width: 760px;
}
.practice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow-1);
}
.practice-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.practice-prompt {
  margin: 0 0 24px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}
.practice-answer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.practice-answer input.fill {
  flex: 1 1 260px;
  max-width: 430px;
}
.practice-next {
  margin-top: 16px;
}
.practice-score {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}
.match-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.match-list {
  display: grid;
  align-content: start;
  gap: 8px;
}
.match-option {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}
.match-option:hover:not(:disabled),
.match-option.is-selected {
  border-color: var(--ink);
  background: var(--surface);
}
.match-option.is-matched {
  border-color: var(--ok);
  background: var(--ok-bg);
  color: var(--ok);
  opacity: 0.72;
}
.match-option:disabled {
  cursor: default;
}
@media (max-width: 520px) {
  .practice-answer {
    align-items: stretch;
    flex-direction: column;
  }
  .practice-answer input.fill {
    max-width: none;
  }
  .practice-answer .btn {
    align-self: flex-start;
  }
}
