/* SPEC v1 Arena Market /predict mobile lobby P0 — staging overlay */
/* Source: pm-app.css append-only @media max-width 720|430; ≥721 untouched */
/* Cachebust: ?v=20261030amp0 · tip must stay 52cb89a0 · no PR/merge/prod */

/* ===== Arena Market mobile lobby P0 (≤720) — local only; no desktop change ===== */
@media (max-width: 720px) {
  /* Lobby outcome row: title on top, % + Yes/No touch row */
  .pm-app .pm-card-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "name name"
      "pct pct"
      "yes no";
    gap: 8px;
    align-items: stretch;
    height: auto;
    min-height: 0;
  }
  .pm-app .pm-line-name {
    grid-area: name;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
    font-size: 14px;
  }
  .pm-app .pm-line-pct {
    grid-area: pct;
    font-size: 15px;
    line-height: 1.2;
  }
  .pm-app .pm-card-line > .pm-yes.pm-pill,
  .pm-app .pm-card-line > a.pm-yes {
    grid-area: yes;
  }
  .pm-app .pm-card-line > .pm-no.pm-pill,
  .pm-app .pm-card-line > a.pm-no {
    grid-area: no;
  }
  .pm-app .pm-card .pm-pill {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 10px;
    gap: 4px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    justify-content: center;
  }
  .pm-app .pm-card-lines {
    gap: 10px;
  }

  /* Meta: allow wrap; keep bookmark reachable */
  .pm-app .pm-card-meta {
    flex-wrap: wrap;
    white-space: normal;
    align-items: center;
    gap: 6px 10px;
    min-height: 0;
    margin-top: 6px;
    line-height: 18px;
  }
  .pm-app .pm-card-meta .pm-watch {
    margin-left: auto;
    width: 36px;
    height: 36px;
  }
  .pm-app .pm-card .pm-card-meta > span:first-child {
    flex: 1 1 auto;
    max-width: 100%;
  }

  /* Featured desk already 1-col ≤980; tighten touch on narrow */
  .pm-app .pm-feature-desk {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pm-app .pm-feat-out {
    height: auto;
    min-height: 40px;
    padding: 6px 0;
    gap: 10px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
  .pm-app .pm-feat-avatar,
  .pm-app .pm-feat-avatar.pm-thumb {
    width: 32px;
    height: 32px;
  }
  .pm-app .pm-feat-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.25;
  }
  .pm-app .pm-lobby-chart svg {
    height: 120px;
    max-height: 120px;
  }

  /* Breaking / Hot rail: title row + stats row, taller hit area */
  .pm-app .pm-rail {
    padding: 12px 12px 8px;
  }
  .pm-app .pm-rail a {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    padding: 10px 0;
    min-height: 44px;
    font-size: 13px;
  }
  .pm-app .pm-rail a span {
    grid-column: 1 / -1;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
  }
}

@media (max-width: 430px) {
  .pm-app .pm-card {
    padding: 12px 12px 10px;
  }
  .pm-app .pm-card .pm-pill {
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }
  .pm-app .pm-feature {
    padding: 0 12px;
  }
  .pm-app .pm-rail a {
    padding: 12px 0;
  }
}
