/* Love Match — scene styles on top of the shared system (tokens.css/app.css).
   Pastel, sharp-cornered, minimal words; pink/blue member identity throughout. */

/* ---------- PACK: test cards ---------- */
.ma-pack-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 900px; }
.ma-pack-card { position: relative; align-items: flex-start; text-align: left; }
.ma-pack-peek { display: flex; gap: 6px; margin: 6px 0 2px; }
.ma-peek-img {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line);
}
.ma-peek-emoji {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-size: 22px; background: var(--paper); border: 1px solid var(--line);
}

/* ---------- QUESTION ---------- */
.ma-question { gap: var(--s2); max-width: 640px; margin: 0 auto; width: 100%; }
.ma-head { display: flex; align-items: center; gap: 12px; width: 100%; }
.ma-progress-label { white-space: nowrap; }
.ma-progress {
  flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden;
}
.ma-progress-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  transition: width .5s cubic-bezier(.22, .8, .3, 1);
}
.ma-timer {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--ink-soft);
  min-width: 38px; text-align: right;
}
.ma-timer.is-urgent { color: #E14E62; animation: ma-pulse 1s ease infinite; }
@keyframes ma-pulse { 50% { opacity: .35; } }

.ma-prompt {
  font-size: clamp(22px, 4.5vw, 32px); font-weight: 800; line-height: 1.25;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance; text-align: center;
  animation: ma-rise .45s cubic-bezier(.22, .8, .3, 1) both;
}

.ma-body { width: 100%; }
.ma-options { display: grid; gap: 10px; width: 100%; }
.ma-options[data-count="2"] { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .ma-options[data-count="2"] { grid-template-columns: 1fr; } }
.ma-option {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-card);
  background: var(--paper-raised); cursor: pointer; font: inherit; color: var(--ink);
  font-weight: 600; font-size: 15px; line-height: 1.35;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, opacity .2s ease;
  animation: ma-rise .4s cubic-bezier(.22, .8, .3, 1) both;
}
.ma-options .ma-option:nth-child(2) { animation-delay: 50ms; }
.ma-options .ma-option:nth-child(3) { animation-delay: 100ms; }
.ma-options .ma-option:nth-child(4) { animation-delay: 150ms; }
.ma-options .ma-option:nth-child(5) { animation-delay: 200ms; }
.ma-option:hover:not(:disabled) {
  transform: translateY(-2px); border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 24, 28, .08);
}
.ma-option:disabled { cursor: default; }
.ma-option.is-mine { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-tint); }
.ma-option.is-dimmed { opacity: .38; }
.ma-opt-emoji { font-size: 24px; flex: none; }

/* Likert row (bigfive) */
.ma-likert { display: grid; gap: 8px; width: 100%; }
.ma-likert-btn {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-card);
  background: color-mix(in srgb, var(--pink-tint) calc((4 - var(--step)) * 12%), var(--paper-raised));
  cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink);
  transition: transform .12s ease, border-color .12s ease, opacity .2s ease;
  animation: ma-rise .4s cubic-bezier(.22, .8, .3, 1) both;
  animation-delay: calc(var(--step) * 45ms);
}
.ma-likert-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--ink); }
.ma-likert-btn:disabled { cursor: default; }
.ma-likert-btn.is-mine { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-tint); }
.ma-likert-btn.is-dimmed { opacity: .38; }

/* Birthday picker (astro) */
.ma-bday { display: flex; gap: 10px; justify-content: center; }
.ma-bday-note { color: var(--ink-soft); font-size: 13px; margin: 0; text-align: center; }
.ma-bday-select {
  font: inherit; font-weight: 700; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-card);
  background: var(--paper-raised);
}

/* The shared mini-reveal beat */
.ma-reveal {
  display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap;
  width: 100%; position: relative;
}
.ma-reveal.is-hidden { display: none; }
.ma-reveal-chip {
  flex: 1 1 200px; max-width: 280px; display: grid; gap: 6px; padding: 14px 16px;
  border-radius: var(--r-card); background: var(--paper-raised);
  border: 1.5px solid var(--line);
  animation: ma-pop .38s cubic-bezier(.34, 1.56, .64, 1) both;
}
.ma-reveal-chip[data-color="pink"] { border-color: var(--pink); background: linear-gradient(180deg, var(--pink-tint), var(--paper-raised)); }
.ma-reveal-chip[data-color="blue"] { border-color: var(--blue); background: linear-gradient(180deg, var(--blue-tint), var(--paper-raised)); animation-delay: 90ms; }
.ma-reveal-name {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.ma-reveal-pick { font-weight: 700; font-size: 15px; line-height: 1.35; }
.ma-reveal-vs { align-self: center; font-weight: 900; font-size: 22px; color: var(--ink-soft); }
.ma-reveal-same {
  flex-basis: 100%; text-align: center; font-family: var(--font-mono); font-weight: 700;
  font-size: 13px; letter-spacing: .28em; color: var(--pink); margin-top: 4px;
  animation: ma-pop .4s cubic-bezier(.34, 1.56, .64, 1) .18s both;
}

.ma-status { min-height: 20px; color: var(--ink-soft); font-size: 13px; text-align: center; }

/* ---------- RESULT ---------- */
.ma-result { gap: var(--s2); max-width: 720px; margin: 0 auto; width: 100%; }
.ma-result-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%;
}
@media (max-width: 560px) { .ma-result-cards { grid-template-columns: 1fr; } }
.ma-card {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 18px 16px 20px; border-radius: var(--r-card); background: var(--paper-raised);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-soft);
  animation: ma-rise .5s cubic-bezier(.22, .8, .3, 1) both;
}
.ma-card[data-color="blue"] { animation-delay: 120ms; }
.ma-card[data-color="pink"] { border-top: 3px solid var(--pink); }
.ma-card[data-color="blue"] { border-top: 3px solid var(--blue); }
.ma-card-name {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
}
.ma-card-name[data-color="pink"] { color: var(--pink); }
.ma-card-name[data-color="blue"] { color: var(--blue); }
.ma-card-art {
  width: min(210px, 60vw); aspect-ratio: 1; border-radius: 14px; object-fit: cover;
  border: 1px solid var(--line);
}
.ma-card-emoji { font-size: 64px; line-height: 1; padding: 20px 0 6px; }
.ma-card-kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; color: var(--ink-soft);
}
.ma-card-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.ma-card-chip {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--chip, var(--ink)); padding: 3px 10px; border-radius: 999px;
}
.ma-card-blurb { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); max-width: 280px; }
.ma-leans { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ma-lean {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px;
}

/* Big Five bars */
.ma-bars { display: grid; gap: 7px; width: 100%; max-width: 300px; }
.ma-bar-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'label val' 'bar bar'; gap: 2px 8px; align-items: center; }
.ma-bar-label { grid-area: label; font-size: 12px; font-weight: 700; text-align: left; }
.ma-bar-val { grid-area: val; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.ma-bar { grid-area: bar; height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; }
.ma-bar-fill {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  animation: ma-grow 1s cubic-bezier(.22, .8, .3, 1) both;
  transform-origin: left;
}
.ma-love-rows { display: grid; gap: 2px; }
.ma-love-row { margin: 0; font-size: 14px; font-weight: 700; }

/* Match meter */
.ma-meter { display: grid; justify-items: center; gap: 6px; }
.ma-ring-wrap { position: relative; width: 148px; height: 148px; }
.ma-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ma-ring-track { stroke: var(--line); stroke-width: 10; }
.ma-ring-fg {
  stroke: var(--pink); stroke-width: 10; stroke-linecap: round;
}
.ma-score {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 900; letter-spacing: -0.03em;
}
.ma-score-num { font-size: 44px; }
.ma-score-pct { font-size: 20px; color: var(--ink-soft); margin-top: 12px; }
.ma-band {
  margin: 0; font-size: 18px; font-weight: 800; opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.ma-band.is-in { opacity: 1; transform: none; }

/* Pairing notes */
.ma-facets { display: grid; gap: 10px; width: 100%; }
.ma-facet {
  text-align: left; padding: 12px 16px; border-left: 3px solid var(--pink);
  background: var(--paper-raised); border-radius: var(--r-card);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  animation: ma-rise .45s cubic-bezier(.22, .8, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 500ms);
}
.ma-facet:nth-child(even) { border-left-color: var(--blue); }
.ma-facet-label { font-weight: 800; font-size: 14px; }
.ma-facet-note { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* AI verdict */
.ma-ai { display: grid; gap: 10px; width: 100%; }
.ma-verdict {
  padding: 16px 18px; border-radius: var(--r-card); text-align: left;
  background: linear-gradient(135deg, var(--pink-tint), var(--blue-tint));
  border: 1.5px solid var(--line);
  animation: ma-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.ma-verdict-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft);
}
.ma-verdict-text { margin: 6px 0 0; font-size: 16px; font-weight: 600; line-height: 1.55; }
.ma-insights { display: grid; gap: 6px; }
.ma-insight {
  margin: 0; text-align: left; font-size: 13.5px; line-height: 1.5; color: var(--ink);
  padding: 10px 14px; background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--r-card);
  animation: ma-rise .4s ease both; animation-delay: calc(var(--i, 0) * 100ms + 150ms);
}
.ma-tip {
  text-align: left; padding: 12px 16px; border-radius: var(--r-card);
  border: 1.5px dashed var(--pink); background: var(--paper-raised);
}
.ma-tip-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--pink);
}
.ma-tip-text { margin: 4px 0 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.ma-disclaimer { margin: 0; font-size: 11.5px; color: var(--ink-soft); opacity: .8; max-width: 520px; text-align: center; }

/* ---------- shared keyframes ---------- */
@keyframes ma-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ma-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes ma-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .ma-prompt, .ma-option, .ma-likert-btn, .ma-reveal-chip, .ma-reveal-same, .ma-card,
  .ma-facet, .ma-verdict, .ma-insight, .ma-bar-fill { animation: none; opacity: 1; transform: none; }
  .ma-band { transition: none; opacity: 1; transform: none; }
}
