@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel-800.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
.brand a.home { color: var(--muted); text-decoration: none; font-size: 13px; margin-left: 4px; }
.brand a.home:hover { color: var(--text); }
.rt td:nth-child(2) { white-space: nowrap; }
noscript p { margin: 40px auto; max-width: 520px; text-align: center; color: var(--muted); }
/* tracker: the flagship's tempo-2 row has four cards, so stack each name over its pips to fit the side panel */
.trk, .trk.cols4 { grid-template-columns: 16px repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.trk .row { flex-direction: column; justify-content: flex-start; gap: 4px; min-width: 0; }
.trk .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }
/* phones: everything that matters on one screen (header, both health bars, the arena, the timeline and your hand) */
@media (max-width: 700px) {
  .topbar { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .brand .name { font-size: 18px; }
  .menu-btn { display: block; padding: 4px 12px; font-size: 18px; line-height: 1.3; }
  .controls { display: none; }
  .topbar.menu-open .controls {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    position: absolute; top: calc(100% + 6px); right: 8px; width: min(250px, calc(100vw - 16px)); padding: 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }
  .topbar.menu-open .controls .select { justify-content: space-between; }
  .layout { padding: 8px 10px 24px; gap: 12px; }
  .stage { gap: 6px; }
  .pbar { padding: 5px 10px; gap: 4px 10px; flex-wrap: wrap; }
  .pbar .who { min-width: 0; }
  .pbar .hp { flex: 1 1 0; min-width: 0; }
  /* the deck/discard row is hidden, except while your Read shows their hand */
  .pbar .meta { display: none; }
  .pbar .meta:has(.seen-hand) { display: flex; flex-basis: 100%; }
  .pbar .meta:has(.seen-hand) > span:not(.seen-hand) { display: none; }
  .seen-hand { flex-wrap: wrap; }
  .hp-segs i { height: 10px; }
  .arena-wrap { height: 210px; }
  #banner { font-size: 26px; }
  .timeline .tl-labels { width: 70px; height: 88px; }
  .tl-view { height: 88px; }
  .tl-labels .lbl { left: 8px; font-size: 10px; }
  .tl-labels .lbl.ai { top: 26px; }
  .tl-labels .lbl.you { top: 60px; }
  .bar { height: 28px; font-size: 11px; padding: 0 7px; }
  .bar.lane-ai { top: 18px; }
  .bar.lane-you { top: 52px; }
  .mark.lane-ai { top: 22px; }
  .mark.lane-you { top: 56px; }
  .status { display: none; }
  .side { display: none; }
  .hand { flex-wrap: nowrap; gap: 5px; min-height: 0; padding: 2px 0 4px; }
  .card { flex: 1 1 0; width: auto; min-width: 0; height: 140px; padding: 7px 5px; border-radius: 10px; }
  .card .top { justify-content: center; }
  .card .kind { display: none; }
  .card .tempo { width: 22px; height: 22px; font-size: 13px; }
  .card .icon { height: 26px; margin: 3px 0 1px; }
  .card .icon svg { width: 24px; height: 24px; }
  .card .nm { font-size: 10.5px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card .stat { font-size: 10px; line-height: 1.2; margin: 2px 0; }
  .card .txt { font-size: 9px; line-height: 1.25; }
  .card .pips { display: none; }
}
@media (hover: none) {
  .card:hover, .hand.locked .card:hover { transform: none; }
  .hand:not(.locked) .card:active { transform: scale(0.95); }
}
