/* ============================================================
   The Match-up (moment ↔ need) — /games/feeling-need-matchup
   Scoped under .gmu. Built on the main site token set.
   ============================================================ */

/* the hidden attribute always wins over display classes */
.gmu [hidden] { display: none !important; }

.gmu {
  background: var(--paper);
  padding: clamp(96px, 13vw, 150px) 20px clamp(72px, 9vw, 120px);
}
.gmu-inner { max-width: 980px; margin: 0 auto; }

/* ---- header -------------------------------------------------------------- */
.gmu-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 12px;
}
.gmu-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.gmu-title em {
  font-style: italic;
  background: var(--gradient-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gmu-lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 600px; margin: 0 0 14px; }
.gmu-howto { color: var(--ink-soft); font-size: 15px; max-width: 600px; margin: 0 0 10px; }
.gmu-honesty {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 600px;
  border-left: 3px solid var(--accent-gold);
  padding-left: 14px;
  margin: 0 0 10px;
}
.gmu-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 30px;
}

/* ---- variant switcher ---------------------------------------------------- */
.gmu-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.gmu-vbtn {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gmu-vbtn:hover { border-color: var(--ink-faint); }
.gmu-vbtn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.gmu-vbtn-num {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
  margin-right: 4px;
}

/* ---- progress + nudge ---------------------------------------------------- */
.gmu-progress {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
}
.gmu-nudge {
  display: none;
  margin-left: 14px;
  color: var(--brand-ink);
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  font-size: 13px;
}
.gmu-progress.is-nudging .gmu-nudge { display: inline; }

/* ---- columns ------------------------------------------------------------- */
.gmu-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .gmu-columns { grid-template-columns: 1fr; }
  /* on small screens the needs column becomes a sticky tray at the bottom */
  .gmu-needs {
    position: sticky;
    bottom: 10px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 10px;
  }
}
.gmu-col h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 12px;
}
.gmu-list { display: flex; flex-direction: column; gap: 10px; }
.gmu-needs { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }

/* ---- cards --------------------------------------------------------------- */
.gmu-card {
  font-family: var(--font-body);
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.3s ease;
}
.gmu-card:hover { border-color: var(--ink-faint); }
.gmu-need {
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 500;
}
.gmu-card.is-selected {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold-soft);
  background: var(--accent-gold-soft);
}
.gmu-card.is-matched {
  border-color: transparent;
  background: var(--accent-green-soft);
  color: var(--ink-soft);
  cursor: default;
}
.gmu-need.is-matched { opacity: 0.45; text-decoration: line-through; }
.gmu-card.is-wrong { animation: gmu-shake 0.4s ease; border-color: var(--error); }
@keyframes gmu-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* insight revealed under a matched moment */
.gmu-insight {
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent-green);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin: -2px 0 2px 10px;
}
.gmu-insight strong {
  font-weight: 500;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

/* ---- buttons + done ------------------------------------------------------ */
.gmu-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.gmu-btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.gmu-btn-primary:hover { transform: translateY(-2px); color: var(--white); }
.gmu-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.gmu-btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); }

.gmu-done {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(42, 34, 51, 0.08);
  padding: 34px 30px;
  max-width: 640px;
}
.gmu-done h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink);
  margin: 0 0 8px;
}
.gmu-score {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.gmu-done p { color: var(--ink-soft); margin-bottom: 20px; }
.gmu-done-row { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .gmu-card.is-wrong { animation: none; }
  .gmu-btn, .gmu-btn:hover { transition: none; transform: none; }
}
