/*
 * Phase 8Q.2 -- the 500-FP milestone splash and TAKE THE LEAD.
 *
 * Only tokens app.css defines (--bg-elev, --bg-elev-2, --line, --accent,
 * --accent-dim, --warn, --text, --text-dim, --radius, --radius-sm, --tap):
 * an undefined custom property fails silently into a default colour.
 */

/* ---- the splash ------------------------------------------------------- */

.milestone-splash {
  border-top: 4px solid var(--warn);
}

.milestone {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 12px 4px 4px;
}

.milestone__kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.milestone__headline {
  margin: 0;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--warn);
}

.milestone--revealed .milestone__headline {
  color: var(--accent);
}

.milestone__sub {
  margin: 0;
  max-width: 32ch;
  font-weight: 600;
  color: var(--text);
}

.milestone__icon {
  margin: 4px 0 0;
  font-size: 3rem;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .milestone--revealed {
    animation: milestone-pop 260ms ease-out;
  }
  @keyframes milestone-pop {
    from { transform: scale(0.94); opacity: 0.4; }
    to   { transform: scale(1);    opacity: 1; }
  }
}

/* ---- the Prizes-screen entry ------------------------------------------ */

.ttl-host {
  margin: 0 0 12px;
}

.ttl-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1px solid var(--warn);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--warn);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ttl-entry__count {
  color: var(--text);
}

/* ---- the picker -------------------------------------------------------- */

.ttl__intro,
.ttl__empty,
.ttl__blocked {
  margin: 0 0 10px;
  color: var(--text-dim);
}

.ttl__list {
  display: grid;
  gap: 8px;
}

.ttl__option {
  display: grid;
  gap: 2px;
  min-height: var(--tap);
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.ttl__name {
  font-weight: 700;
}

.ttl__price {
  font-size: 0.9rem;
  color: var(--accent);
}

.ttl__confirm {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.ttl__line {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.ttl__line--head {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.ttl__line--tax,
.ttl__changed {
  margin: 0;
  color: var(--warn);
}

/* Phase 8Q.4-G: the BID WAR VICTORY line when the token is a Bid War champion's entitlement. */
.ttl__bidwar {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--metal);
  overflow-wrap: anywhere;
}
