/*
 * PHASE 8Q.3 (D + G) -- THE TOP OF PRIZES AND THE TAKE THE LEAD CHOOSER.
 *
 *   .prizes-top        the stable container at the top of Prizes: [status
 *                      chips] YOUR ARSENAL, BID MISSIONS, TAKE THE LEAD -- one
 *                      tight stack of compact strips, so a phone reaches all
 *                      of them before the first prize card (directive 45)
 *   .ae-missions       BID MISSIONS as a collapsible header in the YOUR ARSENAL
 *                      family (it reuses the `hx-arsenal` strip classes and
 *                      adds only what a <button> needs)
 *   .ttl__*            the chooser's AVAILABLE / UNAVAILABLE lists and the
 *                      confirmation's charge disclosure
 *
 * Only app.css tokens are read; no fixed width; long names wrap. Loads before
 * phase8k.css, which stays last.
 */

/* ---- the top of Prizes ------------------------------------------------- */

.prizes-top {
  display: grid;
  gap: 10px;
  min-width: 0;
}

/* The children were spaced as separate page sections; inside the stack the gap spaces them. */
.prizes-top > .section,
.prizes-top > .ttl-host {
  margin: 0;
  min-width: 0;
}

.prizes-status:empty {
  display: none;
}

/* ---- BID MISSIONS: the collapsible header ------------------------------ */

.ae-missions {
  display: grid;
  gap: 8px;
  min-width: 0;
}

/* The YOUR ARSENAL strip is an <a>; this one is a <button>, which needs its defaults undone. */
.ae-missions__toggle {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ae-missions__toggle[aria-expanded="true"] {
  border-color: var(--accent-dim);
}

.ae-missions__sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

/* The body is a .card (no padding of its own) directly under the header: pad it, and drop the card's page-level top margin. */
.ae-missions__body {
  margin-top: 0;
  padding: 10px 12px;
}

.ae-missions__body .ae-streak {
  margin: 0;
  overflow-wrap: anywhere;
}

.ae-missions__body[hidden] {
  display: none;
}

/* ---- the Take the Lead chooser ----------------------------------------- */

.ttl__heading {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.ttl__note {
  font-size: 0.85rem;
  color: var(--warn);
}

.ttl__option .ttl__name,
.ttl__uname {
  overflow-wrap: anywhere;
}

.ttl__unavailable {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.ttl__unavailable-summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  cursor: pointer;
}

.ttl__ulist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ttl__urow {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
  min-width: 0;
}

.ttl__uname {
  font-weight: 700;
  color: var(--text);
}

.ttl__ureason {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--warn);
}

.ttl__udetail {
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.ttl__line--total {
  color: var(--accent);
}

/* The chooser can be long; the sheet scrolls inside itself, never sideways. */
.ttl {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---- admin: Take the Lead diagnostics --------------------------------- */

.ttl-admin__player {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 359px) {
  .ttl__urow,
  .ttl__unavailable-summary {
    padding-left: 10px;
    padding-right: 10px;
  }
}
