/* ─────────────────────────────────────────────────────────────────────────────
   The phone — a faithful rebuild of the real GameDay Music Game Day screen.

   SOURCE OF TRUTH: tools/screenshots/outdark/raw/{baseball,hockey,football}-
   dark.png, shot 2026-11-19 from build 1.0.56 (605) with the simulator in
   dark mode. Every hex below was sampled out of those pixels with a Swift
   picker (tools/screenshots — see the session notes), not designed here.

   The previous version of this file had a light palette plus a hand-written
   dark override derived from GameDayTheme.swift. The structure was right and
   the dark values were a guess, which is exactly what "looks similar but not
   the same" was. These are measured.

   Sampled palette, all three sports:
     scroll ground   #1F1F29     dock ground      #161620
     plain card      #1C1C1E     tinted card      #313742
     sub-card        #232933     tinted border    #3C5171
     accent blue     #629EF4     alert red        #EE3F43
     transport navy  #303F5C     transport maroon #51272F
     waveform        #2E3B56     tab bar          #24242D
     active tab      #202737     count pill       #292932
     board tile      #3A4C6A -> #1D2B40 (145deg, speckled)
   ──────────────────────────────────────────────────────────────────────────── */

/* The site's global heading rule must not reach in here. The site sets all
   headings in uppercase Barlow Condensed, which turned the app's "Batting
   Lineup" into "BATTING LINEUP" in the wrong face — the exact drift this
   file exists to prevent. The phone keeps the system font it ships with. */
.phone :is(h1, h2, h3, h4) {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: inherit;
}

.phone {
  --w: 318px;

  /* Grounds */
  --ap-page: #1F1F29;
  --ap-dock: #161620;
  --ap-card: #1C1C1E;
  --ap-tint: #313742;
  --ap-tint-2: #232933;
  --ap-stroke: #3C5171;
  --ap-sep: rgba(255, 255, 255, 0.07);

  /* Ink */
  --ap-ink: #F2F2F5;
  --ap-ink-2: #9A9AA6;
  --ap-ink-3: #6E6E7C;

  /* Accents */
  --ap-blue: #629EF4;
  --ap-red: #EE3F43;
  --ap-navy: #303F5C;
  --ap-maroon: #51272F;
  --ap-wave: #2E3B56;
  --ap-pill: #292932;
  --ap-tabbar: #24242D;
  --ap-tab-on: #202737;
  --ap-tile-a: #3A4C6A;
  --ap-tile-b: #1D2B40;
  --ap-jersey: #5AA0F2;
  --ap-sleeve: #FF4D6A;

  position: relative;
  width: var(--w);
  aspect-ratio: 1320 / 2868;     /* the capture's own ratio */
  border-radius: 48px;
  background: #0A0A0C;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  flex: 0 0 auto;
  user-select: none;
}
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(150deg, #8A8F9A, #2F333B 26%, #15171B 52%, #5A606A 78%, #24272D);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 39px;
  overflow: hidden;
  background: var(--ap-page);
  font-family: var(--f-app);
  color: var(--ap-ink);
  display: flex;
  flex-direction: column;
  /* Everything inside is sized in cqw, so the screen scales as one piece. */
  container-type: inline-size;
  font-size: 4.1cqw;
  line-height: 1.3;
}

/* Every inline glyph needs a size or it renders at the SVG default and
   swamps its row — the ♪ in NOW BATTING once came out taller than the
   player's name. This is the floor; the rules below override per context. */
.phone-screen svg { height: 4.2cqw; width: auto; flex: 0 0 auto; }
.ph-jersey { height: auto !important; }
.ph-jersey.is-lg { width: 15.4cqw; }
.ph-jersey.is-sm { width: 9cqw; }

/* ── Status bar ───────────────────────────────────────────────────────────── */
.ph-status {
  position: relative;
  flex: 0 0 auto;
  height: 10.5cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7cqw 0 8cqw;
  font-size: 4.4cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ph-status .ph-icons { display: flex; align-items: center; gap: 1.4cqw; }
.ph-status svg { display: block; height: 3.4cqw; width: auto; }
.ph-island {
  position: absolute;
  top: 2.4cqw; left: 50%;
  transform: translateX(-50%);
  width: 27cqw; height: 7.8cqw;
  border-radius: 4cqw;
  background: #000;
  z-index: 3;
}

/* ── Nav bar ──────────────────────────────────────────────────────────────── */
/* The capture shows the back chevron and End as separate capsules and help +
   settings sharing ONE capsule — football adds a third glyph to that same
   capsule. All of them are a dark fill with a faint hairline, not white. */
.ph-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1cqw 3cqw 2.4cqw;
}
.ph-pill, .ph-nav-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22222D;
  border: 0.3cqw solid rgba(255, 255, 255, 0.07);
  border-radius: 50cqw;
  height: 9.8cqw;
}
.ph-pill { gap: 0.6cqw; padding: 0 3.4cqw; font-size: 4.6cqw; font-weight: 600; }
.ph-pill.is-icon { width: 9.8cqw; padding: 0; }
.ph-pill.is-end { color: var(--ap-red); gap: 0.2cqw; }
.ph-pill svg { height: 4.6cqw; width: auto; }
.ph-nav-team {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  font-size: 5.4cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
}
.ph-crest {
  width: 5.8cqw; height: 6.3cqw;
  flex: 0 0 auto;
  display: grid; place-items: center;
}
.ph-crest svg { width: 100%; height: 100%; }
.ph-nav-right button { width: 9.4cqw; height: 100%; display: grid; place-items: center; }
.ph-nav-right svg { height: 5cqw; width: auto; color: var(--ap-ink); }

/* ── The two regions ──────────────────────────────────────────────────────────
   THE WHOLE POINT OF THIS SPLIT: in the app the board, the effects, the
   now-playing row and the transport are PINNED, and the roster scrolls under
   them. Building it as one long scroll is what put the transport below the
   tab bar, where it could not be seen at all.
   ───────────────────────────────────────────────────────────────────────────── */
.ph-scroll {
  flex: 1 1 auto;
  min-height: 0;                 /* without this the dock is pushed off-screen */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 3cqw 2cqw;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 4cqw), transparent);
          mask-image: linear-gradient(#000 calc(100% - 4cqw), transparent);
}
.ph-scroll::-webkit-scrollbar { display: none; }
.ph-dock {
  flex: 0 0 auto;
  background: var(--ap-dock);
  padding: 2cqw 3cqw 0;
}

/* The chevron stitching down the right edge of the tinted cards. */
.ph-stitch-wrap {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 13cqw;
  pointer-events: none;
  color: var(--ap-stroke);
  opacity: 0.55;
}
.ph-stitch { height: 100% !important; width: 100%; display: block; }
.ph-upnext-card .ph-stitch-wrap { width: 9cqw; opacity: 0.38; }

/* ── NOW BATTING — the primary control ────────────────────────────────────────
   In the app this card shows the live batter and you fire them from the
   roster row. On a page where nobody reads a roster, the card itself is the
   tap target: Dan went for it first and found nothing there, while the
   effects circles — the brightest objects on the screen — took the click.
   ───────────────────────────────────────────────────────────────────────────── */
.ph-now {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--ap-tint);
  border: 0.35cqw solid var(--ap-stroke);
  border-radius: 4.4cqw;
  padding: 3cqw 3.4cqw 3.6cqw;
  overflow: hidden;
  margin-bottom: 3cqw;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.ph-now:hover { box-shadow: 0 0 0 0.7cqw rgba(98, 158, 244, 0.22); }
.ph-now:active { transform: scale(0.985); }
.ph-now-kicker {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  font-size: 3.9cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ap-blue);
  margin-bottom: 1.4cqw;
}
.ph-now-kicker svg { height: 4.4cqw; width: auto; }
.ph-now-row { display: flex; align-items: center; gap: 3cqw; position: relative; z-index: 1; }
.ph-now-main { flex: 1; min-width: 0; display: block; }
.ph-now-name { display: block; font-size: 7.2cqw; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.ph-now-song {
  display: flex; align-items: center; gap: 1cqw;
  font-size: 4.4cqw; color: var(--ap-ink-2); margin-top: 0.6cqw;
}
.ph-now-song svg { height: 4cqw; opacity: 0.65; }
/* The affordance the real screen does not need and a demo does. */
.ph-now-go {
  flex: 0 0 auto;
  width: 11cqw; height: 11cqw;
  border-radius: 50%;
  background: var(--ap-blue);
  display: grid; place-items: center;
  box-shadow: 0 1cqw 3cqw rgba(98, 158, 244, 0.4);
}
.ph-now-go svg { height: 4.8cqw; width: auto; color: #0E1420; margin-left: 0.5cqw; }
.ph-now:hover .ph-now-go { transform: scale(1.06); }

/* ── Section card (Batting Lineup) ────────────────────────────────────────── */
.ph-card {
  background: var(--ap-card);
  border-radius: 4.4cqw;
  padding: 3cqw;
  margin-bottom: 3cqw;
}
.ph-card-head {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  margin-bottom: 2.6cqw;
}
.ph-card-head > svg { height: 6cqw; color: var(--ap-ink); }
.ph-card-head h3 { font-size: 5.2cqw; font-weight: 700; letter-spacing: -0.03em; margin: 0; white-space: nowrap; }
.ph-card-head .ph-wave-chip {
  width: 7cqw; height: 7cqw;
  border-radius: 50%;
  background: #2A3042;
  display: grid; place-items: center;
}
.ph-card-head .ph-wave-chip svg { height: 3.4cqw; color: var(--ap-ink-3); }
.ph-next-btn {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 1.4cqw;
  background: #26314A;
  color: var(--ap-blue);
  border-radius: 50cqw;
  padding: 1.8cqw 3.2cqw;
  font-size: 4.1cqw;
  font-weight: 650;
  white-space: nowrap;
  opacity: 0.75;
}
.ph-next-btn svg { height: 3.4cqw; }
.ph-next-btn:hover { opacity: 1; }
.ph-next-btn:active { transform: scale(0.96); }

/* On Deck / In The Hole, side by side. */
.ph-upnext { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; margin-bottom: 1cqw; }
.ph-upnext-card {
  position: relative;
  display: block;
  background: var(--ap-tint-2);
  border: 0.35cqw solid rgba(98, 158, 244, 0.3);
  border-radius: 3.4cqw;
  padding: 2.2cqw 2.4cqw 2.4cqw;
  overflow: hidden;
  text-align: left;
}
.ph-upnext-card:active { transform: scale(0.97); }
.ph-upnext-card .ph-lbl {
  display: flex; align-items: center; gap: 1.2cqw;
  font-size: 3.4cqw; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ap-blue); margin-bottom: 1.6cqw;
}
.ph-upnext-card .ph-lbl svg { height: 3.8cqw; }
.ph-upnext-row { display: flex; align-items: center; gap: 1.6cqw; position: relative; z-index: 1; }
.ph-upnext-name { flex: 1; font-size: 4.2cqw; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.ph-upnext-song {
  display: flex; align-items: center; gap: 0.8cqw;
  font-size: 3.9cqw; margin-top: 1.4cqw; color: var(--ap-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; z-index: 1;
}
.ph-upnext-song svg { height: 3.6cqw; opacity: 0.6; }

/* The round play button on a row. */
.ph-go {
  flex: 0 0 auto;
  width: 8cqw; height: 8cqw;
  border-radius: 50%;
  background: var(--ap-blue);
  display: grid; place-items: center;
}
.ph-go svg { height: 3.6cqw; width: auto; color: #0E1420; margin-left: 0.4cqw; }
.ph-go.is-plain { background: #2B2B36; }
.ph-go.is-plain svg { color: var(--ap-ink-2); }

/* Plain lineup rows. */
.ph-lineup-row {
  display: flex; align-items: center; gap: 2.4cqw;
  padding: 2.2cqw 0;
  border-top: 0.3cqw solid var(--ap-sep);
  width: 100%;
  text-align: left;
}
.ph-lineup-row:active { opacity: 0.7; }
.ph-lineup-main { flex: 1; min-width: 0; }
.ph-lineup-name { display: block; font-size: 4.7cqw; font-weight: 700; letter-spacing: -0.02em; }
.ph-lineup-song {
  display: flex; align-items: center; gap: 1cqw;
  font-size: 4.2cqw; color: var(--ap-ink); margin-top: 0.3cqw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-lineup-song svg { height: 3.6cqw; opacity: 0.6; }
.ph-lineup-song.is-empty { color: var(--ap-ink-3); }

/* ── Section heads (hockey, football) ─────────────────────────────────────── */
.ph-sechead {
  display: flex; align-items: center; gap: 1.6cqw;
  padding: 2.2cqw 1cqw 2cqw;
}
.ph-sechead.is-tight { padding: 1cqw 1cqw 0.6cqw; }
.ph-sechead > svg { height: 4cqw; color: var(--ap-ink-3); }
.ph-sectitle { font-size: 3.8cqw; font-weight: 700; letter-spacing: 0.08em; color: var(--ap-ink-2); }
.ph-rotate, .ph-chip {
  display: inline-flex; align-items: center; gap: 1cqw;
  background: #2A3958; color: var(--ap-blue);
  border-radius: 50cqw; padding: 1cqw 2.4cqw;
  font-size: 3.5cqw; font-weight: 650;
}
.ph-rotate { margin-left: auto; }
.ph-rotate svg, .ph-chip svg { height: 3.4cqw; }
.ph-chip { background: #262632; color: var(--ap-ink-2); }
.ph-chip.is-on { background: #2A3958; color: var(--ap-blue); margin-left: auto; }

/* ── Board tiles ──────────────────────────────────────────────────────────────
   One speckled slate gradient, used by every board button on every sport.
   The only coloured tiles in the whole app are football's four downs.
   ───────────────────────────────────────────────────────────────────────────── */
.ph-grid { display: grid; gap: 2.2cqw; }
.ph-grid.is-four { grid-template-columns: repeat(4, 1fr); margin-bottom: 2.4cqw; }
.ph-grid.is-wide { grid-template-columns: repeat(2, 1fr); }
.ph-grid.is-three { grid-template-columns: repeat(3, 1fr); }

.ph-tile, .ph-wbtn, .ph-mbtn, .ph-down, .ph-td-team {
  position: relative;
  overflow: hidden;
  border-radius: 3.6cqw;
  background:
    radial-gradient(70% 55% at 30% 8%, rgba(255, 255, 255, 0.1), transparent 70%),
    linear-gradient(145deg, var(--ap-tile-a), var(--ap-tile-b));
  text-align: left;
  transition: transform var(--t-fast) var(--ease-out), filter var(--t-fast);
}
/* The speckle the app's tiles carry across the top. */
.ph-tile::before, .ph-wbtn::before, .ph-mbtn::before, .ph-down::before, .ph-td-team::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1.2px);
  background-size: 7px 7px;
  color: #fff;
  opacity: 0.09;
  -webkit-mask-image: linear-gradient(#000, transparent 62%);
          mask-image: linear-gradient(#000, transparent 62%);
  pointer-events: none;
}
.ph-tile:hover, .ph-wbtn:hover, .ph-mbtn:hover, .ph-down:hover, .ph-td-team:hover { filter: brightness(1.18); }
.ph-tile:active, .ph-wbtn:active, .ph-mbtn:active, .ph-down:active, .ph-td-team:active { transform: scale(0.96); }
.is-firing { filter: brightness(1.5) !important; }

/* Baseball's four docked tiles. */
.ph-tile {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8cqw;
  padding: 3.4cqw 1.4cqw 2.2cqw;
}
.ph-tile-ring {
  width: 9.6cqw; height: 9.6cqw;
  border-radius: 50%;
  border: 0.4cqw solid rgba(160, 190, 240, 0.45);
  display: grid; place-items: center;
  margin-bottom: 0.4cqw;
}
.ph-tile-ring svg { height: 5cqw; width: auto; color: #fff; }
.ph-tile-label { font-size: 4.2cqw; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.ph-tile-song {
  font-size: 3.3cqw; color: #A8B4C8;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Hockey's six wide rows. */
.ph-wbtn { padding: 2.4cqw 2.6cqw 2.2cqw; }
.ph-wbtn-top { display: flex; align-items: center; gap: 1.8cqw; position: relative; z-index: 1; }
.ph-wbtn-ico {
  width: 8.6cqw; height: 8.6cqw; flex: 0 0 auto;
  border-radius: 50%;
  border: 0.4cqw solid rgba(160, 190, 240, 0.45);
  display: grid; place-items: center;
}
.ph-wbtn-ico svg { height: 4.4cqw; width: auto; color: #fff; }
.ph-wbtn-label { flex: 1; font-size: 4.3cqw; font-weight: 800; color: #fff; letter-spacing: -0.01em; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ── The rotate badge ─────────────────────────────────────────────────────────
   A control, not a label: tapping it steps the button to its next song
   without playing, which is what the app's badge does. It carries "2/4" so
   the rotation is readable before anything is pressed, and it sits OUTSIDE
   the button element — nesting a button in a button is invalid, and the
   wrapper is what lets the badge take its own clicks.
   ───────────────────────────────────────────────────────────────────────────── */
.ph-wbtn-wrap { position: relative; display: flex; }
.ph-wbtn-wrap > button { flex: 1 1 auto; min-width: 0; }
/* On a WIDE row the badge goes bottom-right, over the song line. Parked at
   the top it ate the label — "POWER PLAY" came out "POWE…" — and the label
   is the button's identity where the song title is already secondary. The
   stacked tiles keep it top-right, where their own top row is empty. */
.ph-wbtn-wrap:has(.ph-wbtn) .ph-rot,
.ph-wbtn-wrap:has(.ph-down) .ph-rot { top: auto; bottom: 1.6cqw; }
.ph-wbtn .ph-wbtn-song, .ph-down .ph-down-song { padding-right: 11cqw; }

.ph-rot {
  position: absolute;
  top: 1.4cqw; right: 1.6cqw;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0.6cqw;
  padding: 0.5cqw 1.2cqw 0.5cqw 0.9cqw;
  border-radius: 50cqw;
  background: rgba(10, 16, 28, 0.55);
  color: #A9BEDD;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.ph-rot svg { height: 3cqw; width: auto; }
.ph-rot i { font-style: normal; font-size: 2.7cqw; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-rot:hover { background: var(--ap-blue); color: #0E1420; }
.ph-rot:active { transform: scale(0.9); }

/* The swapped title lands rather than just appearing — without this the
   rotation is a silent text change nobody notices. */
.is-swap { animation: songSwap 0.42s var(--ease-out) both; }
@keyframes songSwap {
  0% { opacity: 0; transform: translateY(0.9em); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
/* The ↻ badge spins to its new number when the button rotates. */
.ph-rot.is-spun { animation: rotSpin 0.5s var(--ease-out) both; }
@keyframes rotSpin {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22) rotate(-160deg); }
  100% { transform: scale(1) rotate(-360deg); }
}

/* "2 of 10", lifting off the button it belongs to. The rotation is the one
   thing about a board button nobody expects, and a line of small text
   quietly changing was not telling anybody. */
.ph-rotepop {
  position: absolute;
  left: 50%; top: 8%;
  z-index: 6;
  display: inline-flex; align-items: center; gap: 0.8cqw;
  padding: 0.8cqw 2cqw 0.8cqw 1.6cqw;
  border-radius: 50cqw;
  background: var(--ap-blue); color: #08101C;
  font-size: 2.9cqw; font-weight: 800; letter-spacing: 0.02em;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.45);
  animation: rotePop 1.2s var(--ease-out) both;
}
.ph-rotepop svg { height: 3.1cqw; width: auto; }
.ph-rotepop i { font-style: normal; font-variant-numeric: tabular-nums; }
@keyframes rotePop {
  0%   { opacity: 0; transform: translate(-50%, 1.4cqw) scale(0.7); }
  18%  { opacity: 1; transform: translate(-50%, -1.6cqw) scale(1.06); }
  30%  { transform: translate(-50%, -1.2cqw) scale(1); }
  72%  { opacity: 1; transform: translate(-50%, -3.4cqw) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8cqw) scale(0.94); }
}

.ph-wbtn-song {
  display: block; margin-top: 1.6cqw;
  font-size: 3.9cqw; color: #D6DEEA;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; z-index: 1;
}

/* Hockey / football player chips. */
.ph-players { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2cqw; }
.ph-pchip {
  display: flex; flex-direction: column; align-items: center; gap: 1cqw;
  background: var(--ap-tint-2);
  border-radius: 3cqw;
  padding: 2cqw 1cqw 1.8cqw;
}
.ph-pchip span { font-size: 3.7cqw; font-weight: 650; }
.ph-pchip:active { transform: scale(0.95); }

/* Football's four downs — the only coloured buttons in the app. */
.ph-downs { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2cqw; }
.ph-downs > .ph-wbtn-wrap, .ph-grid > .ph-wbtn-wrap { min-width: 0; }
.ph-down { padding: 2.4cqw 2.6cqw 2.2cqw; }
.ph-down.is-green { --ap-tile-a: #175234; --ap-tile-b: #0B2C1B; }
.ph-down.is-blue  { --ap-tile-a: #16447C; --ap-tile-b: #0C2443; }
.ph-down.is-amber { --ap-tile-a: #7A4D0D; --ap-tile-b: #3E2706; }
.ph-down.is-red   { --ap-tile-a: #7A1E24; --ap-tile-b: #3F1013; }
.ph-down-top { display: flex; align-items: center; gap: 1.8cqw; position: relative; z-index: 1; }
.ph-down .ph-rot { background: rgba(0, 0, 0, 0.4); color: rgba(255, 255, 255, 0.82); }
.ph-down-n {
  width: 8.4cqw; height: 8.4cqw; flex: 0 0 auto;
  border-radius: 50%;
  border: 0.5cqw solid rgba(255, 255, 255, 0.72);
  display: grid; place-items: center;
  font-size: 4.4cqw; font-weight: 800; color: #fff;
}
.ph-down-label { flex: 1; font-size: 4.2cqw; font-weight: 700; color: #fff; }
.ph-down-song {
  display: block; margin-top: 1.4cqw;
  font-size: 3.6cqw; color: rgba(255, 255, 255, 0.76);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; z-index: 1;
}

/* Football's three momentum tiles. */
.ph-mbtn {
  display: flex; flex-direction: column; align-items: center; gap: 0.6cqw;
  padding: 3.6cqw 1.2cqw 2cqw;
}
.ph-mbtn-ico svg { height: 5.4cqw; width: auto; color: #fff; }
.ph-mbtn-label { font-size: 3.9cqw; font-weight: 800; color: #fff; }
.ph-mbtn-song { font-size: 3.2cqw; color: #A8B4C8; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Football's TOUCHDOWN card. */
.ph-tdcard {
  margin-top: 2.6cqw;
  border: 0.4cqw solid rgba(98, 158, 244, 0.45);
  border-radius: 4cqw;
  padding: 2.4cqw;
  background: rgba(40, 54, 82, 0.4);
}
.ph-tdhead { display: flex; align-items: center; gap: 1.4cqw; margin-bottom: 2.2cqw; }
.ph-tdhead svg { height: 4.4cqw; color: var(--ap-blue); }
.ph-tdhead span { font-size: 4.3cqw; font-weight: 800; letter-spacing: 0.02em; }
.ph-tdhead em { margin-left: auto; font-style: normal; font-size: 3.4cqw; color: var(--ap-ink-3); }
.ph-tdrow { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 2cqw; align-items: stretch; }
.ph-td-team {
  --ap-tile-a: #4C84E8; --ap-tile-b: #2A5BB4;
  display: flex; flex-direction: column; justify-content: center; gap: 0.6cqw;
  padding: 2cqw 1.6cqw;
}
.ph-td-team-l { font-size: 3.8cqw; font-weight: 800; color: #fff; }
.ph-td-team-s { font-size: 2.9cqw; line-height: 1.15; color: rgba(255, 255, 255, 0.78);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── DJ BOARD bar (baseball only, and deliberately) ───────────────────────── */
.ph-dj {
  display: flex; align-items: center; gap: 2cqw;
  padding: 1.6cqw 1cqw 2cqw;
  width: 100%;
}
.ph-dj-title { font-size: 3.8cqw; font-weight: 700; letter-spacing: 0.08em; color: var(--ap-ink-2); }
.ph-dj-count {
  background: var(--ap-pill); color: var(--ap-ink-2);
  border-radius: 50cqw; padding: 0.4cqw 2.2cqw;
  font-size: 3.5cqw; font-weight: 650;
}
.ph-dj .ph-chev { margin-left: auto; color: var(--ap-ink-2); transition: transform var(--t-mid) var(--ease-out); }
.ph-dj .ph-chev svg { height: 4cqw; }
.ph-dj.is-open .ph-chev { transform: rotate(180deg); }
.ph-dj:hover .ph-dj-title { color: var(--ap-ink); }

/* ── FX row ───────────────────────────────────────────────────────────────── */
.ph-fx {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 1cqw;
  background: var(--ap-page);
  border-radius: 4.4cqw;
  padding: 2.8cqw 1cqw 2.4cqw;
  margin-bottom: 2.4cqw;
}
.ph-fx button { display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; }
.ph-fx .ph-fx-dot {
  width: 12cqw; height: 12cqw;
  border-radius: 50%;
  background: var(--fc);
  display: grid; place-items: center;
  transition: transform var(--t-fast);
}
.ph-fx .ph-fx-dot svg { height: 5.8cqw; width: auto; color: #fff; }
.ph-fx button:hover .ph-fx-dot { transform: scale(1.06); }
.ph-fx button:active .ph-fx-dot { transform: scale(0.9); }
.ph-fx button.is-more .ph-fx-dot {
  background: transparent;
  border: 0.5cqw dashed #5E79A8;
}
.ph-fx button.is-more .ph-fx-dot svg { color: var(--ap-blue); }
.ph-fx span { font-size: 3.4cqw; color: var(--ap-ink-2); font-weight: 500; text-align: center; line-height: 1.15; }
.phone[data-sport="football"] .ph-fx span { font-size: 2.9cqw; }
.phone[data-sport="football"] .ph-fx .ph-fx-dot { width: 10.4cqw; height: 10.4cqw; }
.phone[data-sport="football"] .ph-fx .ph-fx-dot svg { height: 5cqw; }
.ph-fx .ph-fx-dot.is-hit { transform: scale(1.14); }

/* ── Now playing + transport ──────────────────────────────────────────────── */
.ph-player {
  background: var(--ap-page);
  border-radius: 4.4cqw;
  padding: 2.8cqw 3cqw 3cqw;
  margin-bottom: 2.4cqw;
}
.ph-player-head { display: flex; align-items: center; gap: 2.4cqw; }
.ph-art {
  width: 11.2cqw; height: 11.2cqw;
  border-radius: 1.4cqw;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  overflow: hidden;
}
/* The crest sits ON the song's colours rather than replacing them. */
.ph-art svg { width: 68%; height: auto; filter: drop-shadow(0 0.3cqw 0.6cqw rgba(0,0,0,.35)); }
.ph-player-main { flex: 1; min-width: 0; }
.ph-player-title { display: block; font-size: 4.9cqw; font-weight: 700; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-player-sub { display: block; font-size: 3.7cqw; color: var(--ap-ink-2); margin-top: 0.2cqw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-player-time { font-size: 4.1cqw; color: var(--ap-ink-2); font-variant-numeric: tabular-nums; }

/* The scrubber: rounded capsules, a blue playhead at the left. */
.ph-wave {
  display: flex; align-items: center; gap: 0.7cqw;
  height: 8cqw; margin: 2.4cqw 0 0.6cqw;
  position: relative;
}
.ph-wave i {
  flex: 1 1 auto;
  background: var(--ap-wave);
  border-radius: 50cqw;
  min-width: 0.7cqw;
  transition: background 120ms linear;
}
.ph-wave i.is-played { background: var(--ap-blue); }
.ph-wave .ph-head {
  position: absolute; top: 50%; left: 0;
  width: 2.4cqw; height: 2.4cqw;
  margin-top: -1.2cqw;
  border-radius: 50%;
  background: var(--ap-blue);
  pointer-events: none;
}

.ph-transport { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2cqw; margin-top: 2.2cqw; }
.ph-tbtn {
  display: flex; align-items: center; justify-content: center; gap: 1.4cqw;
  height: 12.6cqw;
  border-radius: 5cqw;
  font-size: 4.4cqw;
  font-weight: 650;
  background: var(--ap-navy);
  color: var(--ap-blue);
  transition: transform var(--t-fast), filter var(--t-fast);
}
.ph-tbtn svg { height: 4.4cqw; width: auto; }
.ph-tbtn:hover { filter: brightness(1.2); }
.ph-tbtn:active { transform: scale(0.95); }
.ph-tbtn.is-stop, .ph-tbtn.is-fade { background: var(--ap-maroon); color: var(--ap-red); }
/* Playing, the app saturates them; idle, they sit muted. That is a real
   state change in the capture, not a styling choice. */
.ph-tbtn:not([disabled]).is-stop, .ph-tbtn:not([disabled]).is-fade { background: var(--ap-red); color: #fff; }
.ph-tbtn:not([disabled]).is-pause { background: #4C8DF6; color: #fff; }
.ph-tbtn[disabled] { cursor: default; }
.ph-tbtn[disabled]:hover { filter: none; }

/* ── Tab bar ──────────────────────────────────────────────────────────────── */
.ph-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--n, 3), 1fr);
  gap: 1cqw;
  margin: 0 3cqw 1cqw;
  padding: 1.2cqw;
  background: var(--ap-tabbar);
  border-radius: 4cqw;
}
.ph-tab {
  display: flex; align-items: center; justify-content: center; gap: 1.4cqw;
  padding: 2.4cqw 1cqw;
  border-radius: 3cqw;
  font-size: 4cqw;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ap-ink-3);
}
.ph-tab-ico { font-size: 4.6cqw; line-height: 1; filter: grayscale(1) opacity(0.6); }
.ph-tab.is-on { background: var(--ap-tab-on); color: var(--ap-blue); }
.ph-tab.is-on .ph-tab-ico { filter: none; }
.ph-home {
  flex: 0 0 auto;
  width: 36%; height: 1.1cqw;
  margin: 0.6cqw auto 1.8cqw;
  border-radius: 1cqw;
  background: #fff;
  opacity: 0.3;
}

/* ── Toast ────────────────────────────────────────────────────────────────── */
.ph-toast {
  position: absolute;
  /* `bottom` is set per render in app/phone.js, from the dock's measured
     height — it differs on every sport. This is only the fallback. */
  left: 4cqw; right: 4cqw; bottom: 34cqw;
  padding: 2.6cqw 3.2cqw;
  border-radius: 3.4cqw;
  background: rgba(10, 12, 18, 0.95);
  border: 0.3cqw solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 4cqw;
  z-index: 5;
  opacity: 0;
  transform: translateY(1.4cqw);
  transition: opacity var(--t-mid), transform var(--t-mid);
  pointer-events: none;
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.5);
}
.ph-toast.is-on { opacity: 1; transform: none; }

/* ── Sizes ────────────────────────────────────────────────────────────────── */
.phone.is-lg { --w: 360px; }
@media (max-width: 1200px) { .phone { --w: 290px; } }
@media (max-width: 960px) { .phone { --w: 300px; } }
@media (max-width: 420px) { .phone { --w: 274px; } }

@media (prefers-reduced-motion: reduce) {
  .ph-now, .ph-tile, .ph-wbtn, .ph-mbtn, .ph-down, .ph-td-team, .ph-tbtn,
  .ph-fx .ph-fx-dot, .ph-dj .ph-chev, .ph-rot { transition: none; }
  .is-swap, .ph-rot.is-spun { animation: none; }
  /* The pill still appears and still says the number; it just does not fly. */
  .ph-rotepop { animation: none; opacity: 1; transform: translate(-50%, -3cqw); }
}


/* ─────────────────────────────────────────────────────────────────────────────
   BECKON — the one control the demo wants pressed.

   Not a flourish: the page's premise is that you press something on a real
   app screen, and a visitor who does not find that control gets nothing out
   of the page at all. The grey hint line was doing that job and could not be
   read against the field.

   BOX-SHADOW, NOT A PSEUDO-ELEMENT RING. Every one of these controls sets
   `overflow: hidden` — the tinted cards for their stitching, the board tiles
   for their speckle — so an ::after scaled past the edge is clipped to a
   hairline. An outer box-shadow is drawn outside the border box and is not.

   Two signals, because one is missable: a ring pulsing out of the control,
   and its own border lit. It stops dead on the first play (see `beckon` in
   app/phone.js) — something still flashing after you have obeyed it is
   nagging, not guidance.
   ──────────────────────────────────────────────────────────────────────────── */
.is-beckon,
.is-aimed {
  animation: beckonPulse 1.9s cubic-bezier(0.22, 0.9, 0.3, 1) infinite;
}
@keyframes beckonPulse {
  0%   { box-shadow: 0 0 0 0 rgba(98, 158, 244, 0.8); }
  65%  { box-shadow: 0 0 0 3.6cqw rgba(98, 158, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(98, 158, 244, 0); }
}

/* Lit between pulses too, so the target is marked even at the trough. */
.ph-now.is-beckon, .ph-now.is-aimed { border-color: var(--ap-blue); }
:is(.ph-wbtn, .ph-td-team, .ph-tab, .ph-segbtn, .ph-pitcher, .ph-next-btn,
    .ph-lineup-row, .ph-routine):is(.is-beckon, .is-aimed),
.ph-fx button.is-aimed {
  outline: 0.4cqw solid var(--ap-blue);
  outline-offset: -0.4cqw;
  border-radius: 2.6cqw;
}

/* The play circle is the literal target, so it gets a second, faster beat. */
.ph-now.is-beckon .ph-now-go,
.ph-now.is-aimed .ph-now-go { animation: beckonGo 1.9s ease-in-out infinite; }
@keyframes beckonGo {
  0%, 100% { transform: scale(1); }
  46%      { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  /* Still marked, just not moving. */
  .is-beckon, .is-aimed { animation: none; box-shadow: 0 0 0 0.6cqw rgba(98, 158, 244, 0.6); }
  .ph-now.is-beckon .ph-now-go, .ph-now.is-aimed .ph-now-go { animation: none; }
}

/* ── Fielding: the pitchers list ──────────────────────────────────────────── */
.ph-pitcher {
  display: flex; align-items: center; gap: 2.4cqw;
  width: 100%;
  padding: 2.4cqw 2.6cqw;
  margin-bottom: 2cqw;
  border-radius: 3.4cqw;
  background: var(--ap-tint-2);
  border: 0.35cqw solid rgba(98, 158, 244, 0.26);
  text-align: left;
}
.ph-pitcher:last-of-type { margin-bottom: 0; }
.ph-pitcher:active { transform: scale(0.98); }
.ph-pitcher-main { flex: 1; min-width: 0; }
.ph-pitcher-name { display: block; font-size: 4.6cqw; font-weight: 700; letter-spacing: -0.02em; }
.ph-pitcher-song {
  display: flex; align-items: center; gap: 1cqw;
  font-size: 4cqw; color: var(--ap-ink-2); margin-top: 0.3cqw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-pitcher-song svg { height: 3.6cqw; opacity: 0.6; }
/* The app's own label. It means long-press opens that player's song editor. */
.ph-hold {
  font-size: 2.8cqw; font-weight: 800; letter-spacing: 0.08em;
  color: rgba(98, 158, 244, 0.5);
}
.ph-foot { font-size: 3.4cqw; color: var(--ap-ink-3); padding: 1cqw 1.4cqw 0; }

/* ── "Who scored?" ────────────────────────────────────────────────────────────
   A scoring button asks before it fires, which is what the app does when the
   team is in player-score mode (ActionButtonDef.showsPlayerPicker). Picking
   somebody is what gets their name said out loud.
   ───────────────────────────────────────────────────────────────────────────── */
.ph-sheet-host { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.ph-sheet {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: rgba(6, 8, 14, 0.62);
  pointer-events: auto;
  animation: sheetIn 0.26s var(--ease-out) both;
}
.ph-sheet-card {
  width: 100%;
  max-height: 78%;
  display: flex; flex-direction: column;
  background: var(--ap-page);
  border-radius: 6cqw 6cqw 0 0;
  padding: 3cqw 3cqw 4cqw;
  box-shadow: 0 -2cqw 8cqw rgba(0, 0, 0, 0.5);
  animation: sheetUp 0.3s var(--ease-out) both;
}
@keyframes sheetIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(14%); } to { transform: none; } }
.ph-sheet-head { display: flex; align-items: center; margin-bottom: 2.4cqw; padding: 0 1cqw; }
.ph-sheet-head b { font-size: 5cqw; font-weight: 700; letter-spacing: -0.02em; }
.ph-sheet-x { margin-left: auto; color: var(--ap-blue); font-size: 4.2cqw; font-weight: 600; }
.ph-sheet-list { overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 1.4cqw; }
.ph-sheet-list::-webkit-scrollbar { display: none; }
.ph-sheet-row {
  display: flex; align-items: center; gap: 2.4cqw;
  padding: 2cqw 2.4cqw;
  border-radius: 3cqw;
  background: var(--ap-card);
  text-align: left;
}
.ph-sheet-row span { font-size: 4.4cqw; font-weight: 650; }
.ph-sheet-row:hover { background: #262630; }
.ph-sheet-row:active { transform: scale(0.98); }
.ph-sheet-skip {
  margin-top: 2.4cqw;
  padding: 3cqw;
  border-radius: 3.4cqw;
  background: #262630;
  color: var(--ap-ink-2);
  font-size: 4.2cqw;
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  .ph-sheet, .ph-sheet-card { animation: none; }
}

/* ── The Music tab ────────────────────────────────────────────────────────────
   Built against outdark/raw/music-baseball-dark.png: two quick-slot pills,
   the remaining count with Edit and shuffle, the playlist chips, the rows.
   ───────────────────────────────────────────────────────────────────────────── */
.ph-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; margin-bottom: 2.6cqw; }
.ph-quick-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.6cqw;
  height: 11cqw;
  border-radius: 3cqw;
  background: var(--ap-card);
  color: var(--ap-ink-3);
  font-size: 4cqw; font-weight: 600;
}
.ph-quick-pill svg { height: 3.8cqw; width: auto; }

.ph-mhead { display: flex; align-items: center; gap: 1.8cqw; padding: 0 1cqw 2.2cqw; }
.ph-mcount { flex: 1; font-size: 3.6cqw; color: var(--ap-ink-2); }
.ph-mico { color: var(--ap-blue); display: grid; place-items: center; }
.ph-mico svg { height: 4.6cqw; width: auto; }
.ph-mico.is-dim { color: var(--ap-ink-3); }

.ph-chips { display: flex; gap: 1.8cqw; margin-bottom: 2.6cqw; overflow-x: auto; scrollbar-width: none; }
.ph-chips::-webkit-scrollbar { display: none; }
.ph-plchip {
  flex: 0 0 auto;
  padding: 1.8cqw 3.6cqw;
  border-radius: 50cqw;
  background: #22304A;
  color: var(--ap-blue);
  font-size: 3.9cqw;
  font-weight: 650;
  white-space: nowrap;
}
.ph-plchip.is-on { background: var(--ap-blue); color: #0E1420; }

.ph-songs { display: flex; flex-direction: column; gap: 1.6cqw; }
.ph-song {
  display: flex; align-items: center; gap: 2.6cqw;
  padding: 2cqw 2.4cqw;
  border-radius: 3cqw;
  background: var(--ap-card);
  text-align: left;
  width: 100%;
}
.ph-song:hover { background: #24242E; }
.ph-song:active { transform: scale(0.99); }
.ph-song-art {
  width: 11cqw; height: 11cqw; flex: 0 0 auto;
  border-radius: 1.6cqw;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.1);
}
.ph-song-main { flex: 1; min-width: 0; }
.ph-song-title { display: block; font-size: 4.4cqw; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-song-artist { display: block; font-size: 3.6cqw; color: var(--ap-ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-song-q { display: grid; place-items: center; width: 8.6cqw; height: 7cqw;
  border-radius: 2cqw; background: #2B3A52; color: var(--ap-blue); }
.ph-song-q svg { height: 3.6cqw; width: auto; }

/* ── Golf ─────────────────────────────────────────────────────────────────────
   No board, no roster, no scoring: a course, a round and a song per hole.
   Its accent is green because the Links demo team is — the app tints from
   the TEAM's colour, not the sport's, which is why every other demo team
   here is the same blue.
   ───────────────────────────────────────────────────────────────────────────── */
.phone[data-sport="golf"] { --ap-blue: #2FA85C; }
.ph-course { padding: 0 1cqw 2.4cqw; }
.ph-course-lbl { display: block; font-size: 3.2cqw; font-weight: 700; letter-spacing: 0.08em; color: var(--ap-ink-3); }
.ph-course-row { display: flex; align-items: center; gap: 2cqw; margin-top: 0.6cqw; }
.ph-course-row b { flex: 1; font-size: 5.4cqw; font-weight: 700; letter-spacing: -0.02em; }

.ph-seg { display: flex; gap: 1.8cqw; margin-bottom: 2.6cqw; }
.ph-segbtn {
  padding: 1.8cqw 3.6cqw;
  border-radius: 50cqw;
  background: #22302A;
  color: var(--ap-ink-2);
  font-size: 3.9cqw; font-weight: 650;
}
.ph-segbtn.is-on { background: var(--ap-blue); color: #0B1710; }

.ph-whos {
  display: flex; align-items: center; gap: 2.4cqw;
  width: 100%;
  padding: 2.6cqw;
  border-radius: 3.4cqw;
  background: rgba(47, 168, 92, 0.12);
  border: 0.35cqw solid rgba(47, 168, 92, 0.3);
  text-align: left;
  margin-bottom: 2.6cqw;
}
.ph-whos > svg { height: 5.4cqw; width: auto; color: var(--ap-blue); }
.ph-whos b { display: block; font-size: 4.4cqw; color: var(--ap-blue); }
.ph-whos small { display: block; font-size: 3.5cqw; color: var(--ap-ink-2); margin-top: 0.3cqw; }
.ph-whos i { margin-left: auto; color: var(--ap-ink-3); display: grid; place-items: center; }
.ph-whos i svg { height: 4cqw; width: auto; }

.ph-roundrow { display: flex; align-items: center; gap: 2.4cqw; margin-bottom: 2.6cqw; }
.ph-playround {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 1.8cqw;
  height: 12.4cqw;
  border-radius: 3cqw;
  background: var(--ap-blue);
  color: #08140D;
  font-size: 4.8cqw; font-weight: 700;
}
.ph-playround svg { height: 4.6cqw; width: auto; }
.ph-song.is-golf .ph-song-note { display: grid; place-items: center; width: 7cqw; color: var(--ap-blue); }
.ph-song.is-golf .ph-song-note svg { height: 4.2cqw; width: auto; }
.ph-hole {
  flex: 0 0 auto;
  padding: 0.9cqw 2.2cqw;
  border-radius: 50cqw;
  background: rgba(47, 168, 92, 0.16);
  color: var(--ap-blue);
  font-size: 3.2cqw; font-weight: 650;
}
.ph-tabs[hidden] { display: none; }

/* Football's Fade and Stop are rounded squares with a divider before them,
   not two more circles — see the KICKING crop of the football capture. */
.phone[data-sport="football"] .ph-fx button:nth-last-child(2) .ph-fx-dot,
.phone[data-sport="football"] .ph-fx button:last-child .ph-fx-dot,
.phone[data-sport="flagfootball"] .ph-fx button:nth-last-child(2) .ph-fx-dot,
.phone[data-sport="flagfootball"] .ph-fx button:last-child .ph-fx-dot {
  border-radius: 3cqw;
}
.phone[data-sport="football"] .ph-fx button:nth-last-child(2),
.phone[data-sport="flagfootball"] .ph-fx button:nth-last-child(2) {
  border-left: 0.3cqw solid rgba(255, 255, 255, 0.1);
}
.phone[data-sport="football"] .ph-fx button:nth-last-child(2) span:last-child,
.phone[data-sport="flagfootball"] .ph-fx button:nth-last-child(2) span:last-child { color: #F98A1F; }
.phone[data-sport="football"] .ph-fx button:last-child span:last-child,
.phone[data-sport="flagfootball"] .ph-fx button:last-child span:last-child { color: #FF494C; }

/* ─────────────────────────────────────────────────────────────────────────────
   Sections the app draws that one grid cannot.

   Cricket opens on the batting order and its bowlers, cheer on its routines,
   wrestling on who is on the mat and a roster sorted by weight class. All
   three were being drawn as the generic DJ Board, which is a screen those
   sports have never shown.
   ──────────────────────────────────────────────────────────────────────────── */
.ph-secnote { margin-left: auto; font-size: 2.7cqw; color: var(--ap-t2); }

.ph-order { display: flex; flex-direction: column; gap: 1.4cqw; margin-bottom: 3cqw; }
.ph-ordrow {
  display: flex; align-items: center; gap: 2.4cqw;
  padding: 2.2cqw 2.6cqw;
  border-radius: 3cqw;
  background: var(--ap-card);
  border: 0.25cqw solid transparent;
  text-align: left; width: 100%;
}
.ph-ordrow.is-on { border-color: var(--ap-blue); background: rgba(43, 92, 230, 0.14); }
.ph-ordrow.is-out { opacity: 0.45; }
.ph-ordn {
  min-width: 7cqw; text-align: center; flex: none;
  font-size: 2.9cqw; font-weight: 800; color: var(--ap-t2);
  font-variant-numeric: tabular-nums;
}
.ph-ordmain { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.4cqw; }
.ph-ordname {
  flex: 1; min-width: 0; font-size: 3.5cqw; font-weight: 600; color: var(--ap-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ph-ordmain .ph-ordname { flex: none; }
.ph-ordsong {
  display: flex; align-items: center; gap: 1cqw;
  font-size: 2.9cqw; color: var(--ap-t2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ph-ordsong svg { height: 2.9cqw; width: auto; flex: none; }
.ph-ordtag {
  margin-left: auto; flex: none;
  padding: 0.5cqw 1.6cqw; border-radius: 50cqw;
  background: var(--ap-blue); color: #061021;
  font-size: 2.5cqw; font-weight: 800; letter-spacing: 0.06em;
}

/* Wrestling's NOW WRESTLING card: the one thing the Match tab leads with. */
.ph-nowcard {
  background: var(--ap-card); border-radius: 3.4cqw;
  padding: 2.6cqw 3cqw; margin-bottom: 3cqw;
  border: 0.25cqw solid rgba(255, 255, 255, 0.07);
}
.ph-nowlbl {
  display: block; font-size: 2.6cqw; font-weight: 800;
  letter-spacing: 0.1em; color: var(--ap-t2); margin-bottom: 1.8cqw;
}
.ph-nowrow { display: flex; align-items: center; gap: 2.6cqw; }
.ph-nowmain { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.5cqw; }
.ph-nowname {
  font-size: 4.1cqw; font-weight: 700; color: var(--ap-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ph-nowsong {
  display: flex; align-items: center; gap: 1cqw;
  font-size: 3cqw; color: var(--ap-t2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ph-nowsong svg { height: 3cqw; width: auto; flex: none; }
.ph-nowwc {
  flex: none; font-size: 2.9cqw; font-weight: 700; color: var(--ap-t2);
  font-variant-numeric: tabular-nums;
}
