/* Byte Match — quiz de perfil. Cores vêm do tema (byte-core.css). */

.match-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-bottom: 8px;
}

.match-progress { display: flex; flex-direction: column; gap: 6px; }
.match-progress-label { font-size: 0.75rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.match-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--c-text) 10%, transparent); overflow: hidden; }
.match-bar > div { height: 100%; width: 0; background: var(--c-primary); border-radius: inherit; transition: width var(--dur) ease-out; }

.match-question {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: match-in var(--dur) ease-out;
}
.match-question img { width: 100%; max-height: 180px; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.match-question h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; }

.match-answers { display: grid; gap: 10px; }
.match-answers.is-grid { grid-template-columns: 1fr 1fr; }

.match-answer {
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  transition: transform var(--dur), border-color var(--dur), background var(--dur);
}
.match-answers.is-grid .match-answer { flex-direction: column; text-align: center; justify-content: center; }
.match-answer:hover { border-color: var(--c-primary); }
.match-answer:active { transform: scale(0.98); }
.match-answer:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.match-answer.is-picked { border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface)); }
.match-answer-icon { font-size: 1.6rem; line-height: 1; }
.match-answer-icon img { width: 44px; height: 44px; object-fit: contain; display: block; }

.match-nav { display: flex; justify-content: flex-start; }
.match-back { padding: 8px 16px; min-height: 40px; font-size: 0.85rem; }

.match-result-icon { font-size: 4rem; line-height: 1; }
.match-result-icon img { max-width: 160px; max-height: 160px; object-fit: contain; }
.match-result-kicker { font-size: 0.75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

@keyframes match-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .match-question { animation: none; } }
