/* ── Intro section ── */
.lesson-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(47, 159, 232, 0.07);
  border: 1px solid rgba(47, 159, 232, 0.18);
  border-radius: 12px;
  margin-bottom: 24px;
}

.lesson-tip p {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.lesson-tip strong {
  color: var(--primary);
}

.match-intro-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 24px;
  font-family: "Source Sans 3", sans-serif;
}


.match-section-label,
.match-note-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Source Sans 3", sans-serif;
  margin: 0 0 12px;
}

.match-pronoun-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.match-pronoun-card {
  background: rgba(47, 159, 232, 0.06);
  border: 1.5px solid rgba(47, 159, 232, 0.18);
  border-radius: 16px;
  padding: 20px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes pronoun-tap {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.91); }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.match-pronoun-card:focus { outline: none; }
.match-pronoun-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.match-pronoun-card:hover {
  background: rgba(47, 159, 232, 0.12);
  border-color: rgba(47, 159, 232, 0.4);
  transform: translateY(-2px);
}

.match-pronoun-card:active,
.match-pronoun-card--tap {
  animation: pronoun-tap 0.28s ease both;
}

.match-pronoun-card--playing {
  background: rgba(47, 159, 232, 0.18);
  border-color: var(--primary);
}

.match-pronoun-lt {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text);
  font-family: "Nunito", sans-serif;
}

.match-pronoun-en {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  font-family: "Source Sans 3", sans-serif;
}

.match-note {
  font-family: "Source Sans 3", sans-serif;
}

.match-note p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 8px;
  font-family: "Source Sans 3", sans-serif;
}

.match-note p:last-child { margin-bottom: 0; }
.match-note strong { color: var(--primary); font-weight: 800; }

.match-game-instruction {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin: 0 0 20px;
}

@media (max-width: 480px) {
  .match-pronoun-grid { gap: 8px; }
  .match-pronoun-card { padding: 16px 8px 12px; border-radius: 13px; }
  .match-pronoun-lt { font-size: 1.2rem; }
  .match-pronoun-en { font-size: 0.72rem; }
  .match-intro-text,
  .match-note p { font-size: 1.05rem; line-height: 1.8; }
  .match-section-label,
  .match-note-label { font-size: 0.78rem; }
}

/* ── Eyebrow ── */
.match-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  margin: 0 0 6px;
  font-family: "Nunito", sans-serif;
}

/* ── Info panel ── */
.match-info {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 14px 16px 10px;
  margin-bottom: 24px;
}

.match-info-body {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.65;
  font-family: "Source Sans 3", sans-serif;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 200px;
  opacity: 1;
}

.match-info-body p { margin: 0 0 6px; }
.match-info-body p:last-child { margin-bottom: 8px; }
.match-info-body strong { color: var(--text); font-weight: 700; }

.match-info-body--hidden {
  max-height: 0;
  opacity: 0;
}

.match-info-toggle {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: "Nunito", sans-serif;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.03em;
}

/* ── Match grid ── */
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.match-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Cards ── */
.match-card {
  width: 100%;
  padding: 20px 12px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  line-height: 1.3;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.01em;
}
.match-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.match-card:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.match-card:active:not(:disabled) {
  animation: pronoun-tap 0.28s ease both;
}

.match-card--selected {
  border-color: var(--primary) !important;
  background: #bde3f8 !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.match-card--matched {
  border-color: #34c989;
  background: rgba(52, 201, 137, 0.12);
  color: #1a7a50;
  cursor: default;
  transform: none;
}

@keyframes wrong-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

.match-card--wrong {
  border-color: #f05c5c;
  background: rgba(240, 92, 92, 0.1);
  color: #b83232;
  animation: wrong-shake 0.35s ease both;
}

@media (max-width: 640px) {
  .match-grid { gap: 8px; }
  .match-card { padding: 18px 10px; font-size: 1rem; border-radius: 14px; }
}
