/* ==========================================================================
   Match! — styles. Theme tokens and shared components come from
   shared/style.css.

   Words are chips; a team's trail is chips joined by arrows, from the
   starting words down to the match.
   ========================================================================== */

.mt { display: grid; gap: .8rem; max-width: 34rem; margin: 0 auto; }
.mt-center-btn { justify-self: center; }
.mt-note { text-align: center; }
.mt-title { font-size: clamp(1.5rem, 6.5vw, 2rem); text-align: center; }
.mt-label { font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--muted); }

/* ---------- Menu ---------- */

.mt-menu { display: grid; gap: .7rem; }
.mt-art { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 0; }
.mt-art__plus { font-weight: 900; color: var(--muted); }
.mt-art__arrow { flex-basis: 100%; text-align: center; font-size: 1.4rem; font-weight: 900; color: var(--muted); }
.mt-tagline { font-size: 1.05rem; font-weight: 700; text-align: center; }
.mt-settings { display: grid; gap: .45rem; }
.choices { display: grid; gap: .5rem; }
.choices--row { grid-auto-flow: column; grid-auto-columns: 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: var(--tap); padding: .3rem .5rem; font-weight: 800; text-align: center; background: var(--surface); border: 3px solid var(--line); border-radius: 14px 16px 13px 17px; }
.choice input:checked + span { background: var(--sun); color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.howto { max-width: 30rem; margin: 1.5rem auto 0; padding: .25rem 1rem; }
.howto summary { min-height: var(--tap); display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.howto ol { display: grid; gap: .5rem; padding: 0 0 1rem; padding-inline-start: 1.4rem; list-style: decimal; }

/* ---------- Words ---------- */

.mt-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .75rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sun);
  border: 3px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--line);
}
.mt-chip--match { color: #fff; background: var(--olive, #6b8f23); }
.mt-chip--said { color: var(--text); background: var(--surface); }
.mt-chip--said.is-empty { opacity: .55; }
.mt-chip--said.is-saboteur { border-style: dashed; border-color: var(--tomato); }
.mt-chip__face { font-size: .95em; }
.mt-words { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; }
.mt-words--big .mt-chip { padding: .5rem 1rem; font-size: clamp(1.1rem, 5vw, 1.45rem); }
.mt-plus { font-size: 1.2rem; font-weight: 900; color: var(--muted); }

/* ---------- Playing ---------- */

.mt-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mt-top .timer__num, .mt-top [class*="timer"] { font-weight: 900; }
.mt-rivals { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.mt-rival { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; font-size: .85rem; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); }
.mt-rival.is-matched { border-color: var(--olive, #6b8f23); }
.mt-rival.is-out { opacity: .5; }
.mt-faces { display: inline-flex; gap: .05rem; }
.mt-badge { justify-self: center; padding: .25rem .8rem; font-weight: 900; color: #fff; background: var(--tomato); border-radius: 999px; }
.mt-step { text-align: center; font-weight: 800; color: var(--muted); }
.mt-link { display: grid; gap: .6rem; padding: 1rem; }
.mt-form { display: flex; gap: .5rem; }
.mt-input { flex: 1; min-width: 0; font-size: 1.25rem; font-weight: 800; text-align: center; }
.mt-input.is-wrong { animation: mt-shake .3s; border-color: var(--tomato); }
@keyframes mt-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.mt-send { flex: none; }
.mt-error { text-align: center; font-weight: 800; color: var(--tomato); }
.mt-sent { text-align: center; font-size: 1.1rem; font-weight: 900; }
.mt-burned { text-align: center; font-size: .85rem; color: var(--muted); }
.mt-done { display: grid; justify-items: center; gap: .3rem; padding: 1.1rem; text-align: center; }
.mt-done.is-match h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); color: var(--olive, #6b8f23); }
.mt-done__word { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; }
.mt-done.is-out h1 { font-size: 1.4rem; }
.mt-ready { text-align: center; font-size: 1.2rem; font-weight: 900; }

/* ---------- Your team, your secret ---------- */

.mt-team { display: grid; gap: .5rem; padding: .9rem; }
.mt-team__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.mt-member { display: inline-flex; align-items: center; gap: .35rem; font-weight: 900; }
.mt-member__face { font-size: 1.4rem; }
.mt-secret { padding: 1rem; text-align: center; color: #fff; background: #3a1f4d; border-color: var(--tomato); }
.mt-secret h2 { font-size: 1.3rem; }

/* ---------- The trail ---------- */

.mt-trail { display: grid; justify-items: center; gap: .25rem; }
.mt-trail__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.mt-trail__row--start .mt-chip { font-size: .85rem; }
.mt-trail__row .mt-chip { padding: .25rem .6rem; font-size: .9rem; }
.mt-trail__row.is-match .mt-chip { color: #fff; background: var(--olive, #6b8f23); }
.mt-trail__arrow { font-weight: 900; color: var(--muted); line-height: 1; }

/* ---------- Vote, reveal, final ---------- */

.mt-vote { display: grid; gap: .5rem; }
.mt-vote__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.mt-result { display: grid; gap: .6rem; padding: .9rem; }
.mt-result.is-mine { border-color: var(--sea); }
.mt-result.is-out { opacity: .85; }
.mt-result__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .6rem; text-align: center; }
.mt-result__line { font-weight: 900; }
.mt-result__first { padding: .1rem .5rem; font-size: .8rem; font-weight: 900; color: var(--ink); background: var(--sun); border-radius: 999px; }
.mt-result__pts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.mt-pt b { color: var(--olive, #6b8f23); }
.mt-unmask { text-align: center; font-weight: 800; }
.mt-next { display: flex; justify-content: center; align-items: center; gap: .4rem; font-weight: 800; color: var(--muted); }
.mt-board { display: grid; gap: .4rem; }
.mt-board__row { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
.mt-board__row.is-you { border-color: var(--sea); }
.mt-board__place { width: 1.5rem; text-align: center; }
.mt-board__face { font-size: 1.3rem; }
.mt-board__who { flex: 1; font-weight: 800; }
