/* ══════════════════════════════════════════════════════════════════════════
   Poker Super League — hand coaching (Analysis → Coaching tab).

   Loads after analysis.css.
     • history entry points: the cap button on each hand row, the coach's
       view column, the key-moments banner, the tab's NEW pill
     • the coaching view, built for a beginner: a full-width replayer with
       its controls attached (previous / play / next decision, mute), the
       coach's verdict with a mark out of 5, and two hide/reveal sections
       (commentary by decision; detail for the decision on screen)
     • body.co-m (<700px): compact header, a tall table, controls in two rows
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --c-hero: var(--psl-blue);
  --c-opponent: #f59e5b;
  --c-best: #34d399;
  --c-you: #6fc8f0;
  --c-neutral: rgba(233, 233, 237, .32);
  --c-danger: #f2606c;
  --coach-tint: #8ed6f2;
}

.c-hero { --c: var(--c-hero); }
.c-opponent { --c: var(--c-opponent); }
.c-best { --c: var(--c-best); }
.c-you { --c: var(--c-you); }
.c-neutral { --c: var(--c-neutral); }
.c-danger { --c: var(--c-danger); }

/* ─────────────────────────  Tab pill  ───────────────────────── */
.an-new {
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: var(--psl-red); color: #fff;
}

/* ─────────────────────────  History entry points (§7)  ───────────────────────── */
.hand-head { grid-template-columns: 44px minmax(0, 1fr) 150px 82px 150px 160px 14px; }
.hand-head .hand-pot { justify-content: flex-end; }
.hand-head .hand-result { justify-self: start; }
.hand-coachview { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--color-text) 78%, transparent); white-space: nowrap; min-width: 0; }
.hand-gdot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 2px color-mix(in srgb, var(--g) 25%, transparent); vertical-align: -1px; }
.hand-line2 { display: none; }

.hand-coach {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; cursor: pointer;
  background: color-mix(in srgb, var(--psl-blue) 14%, transparent); color: var(--coach-tint);
  transition: background .13s, color .13s; margin-left: 4px;
}
.hand-coach:hover, .hand-coach:focus-visible { background: color-mix(in srgb, var(--psl-blue) 30%, transparent); color: #fff; }
/* Already coached: a small tick-dot, since reopening costs no credit. */
.hand-coach.is-coached { position: relative; }
.hand-coach.is-coached::after {
  content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-best); box-shadow: 0 0 0 2px var(--color-surface);
}

.km-banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 14px; border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--psl-blue) 16%, transparent), color-mix(in srgb, var(--psl-blue) 5%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--psl-blue) 35%, transparent);
}
.km-banner.pending { background: color-mix(in srgb, var(--color-text) 5%, transparent); box-shadow: inset 0 0 0 1px var(--color-divider); }
.km-cap { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--psl-blue) 22%, transparent); color: var(--coach-tint); }
.km-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: color-mix(in srgb, var(--color-text) 68%, transparent); }
.km-text strong { font-family: var(--font-heading); font-size: 15px; color: #fff; }
.km-start { flex: none; padding: 10px 16px; font-size: 14px; min-height: 44px; }

.km-list { display: flex; flex-direction: column; gap: 8px; }
.km-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; min-height: 56px;
  padding: 10px 16px; border: 0; border-radius: 12px; background: var(--color-surface); color: var(--coach-tint);
}
.km-row:hover, .km-row:focus-visible { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--psl-blue) 50%, transparent); }
.km-row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.km-row-main strong { color: #fff; font-family: var(--font-heading); font-size: 14.5px; }
.km-row-main small { color: color-mix(in srgb, var(--color-text) 55%, transparent); font-size: 12px; }
.co-msg-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }

@media (max-width: 900px) {
  .hand-head { grid-template-columns: 44px minmax(0, 1fr) 150px 82px 26px 14px; }
  .hand-result { display: none; }
  .hand-coachview-text { display: none; }
}

/* Mobile history: each hand is a two-line card (§9). */
@media (max-width: 700px) {
  .hand-head {
    grid-template-columns: 40px minmax(0, 1fr) auto 12px;
    grid-template-areas: "num cards net chev" "num line2 line2 chev";
    row-gap: 6px; padding: 10px 10px 10px 12px;
  }
  .hand-num { grid-area: num; align-self: start; }
  .hand-head .hand-cards-col { grid-area: cards; }
  .hand-head .hand-cards-col > .hand-pos,
  .hand-head .hand-cards-col > .hand-cards-col,
  .hand-head .hand-cards-col > .an-noflop { display: none; }
  .hand-net { grid-area: net; text-align: right; }
  .hand-head .an-chev { grid-area: chev; }
  .hand-coachview { display: none; }
  .hand-line2 { grid-area: line2; display: flex; align-items: center; gap: 4px; font-size: 12px; color: color-mix(in srgb, var(--color-text) 62%, transparent); white-space: nowrap; overflow: hidden; }
  .hand-line2 .hand-gdot { margin-left: 2px; }
  .hand-side { padding-right: 6px; gap: 4px; }
  .hand-side .hand-flag, .hand-coach { width: 44px; height: 44px; }
  .km-banner { flex-wrap: wrap; }
  .km-start { width: 100%; }
}


/* ═══════════════════════════  The coaching view  ═══════════════════════════
   The replayer is the page: a full-width table with its controls attached,
   the coach's verdict under it, then two hide/reveal sections. */

/* A hand open in the Coaching tab gives the table the room the page header took. */
body.coach-open .an-header { display: none; }
body.coach-open .an-main { padding-top: 14px; }

.co-view { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.co-loader { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: min(60vh, 520px); padding: 32px 20px; border-radius: 16px; background: var(--color-surface); }
.co-loader .app-spinner { flex: none; width: 28px; height: 28px; }
.co-loader-text { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.co-loader-text strong { font-family: var(--font-heading); font-size: 20px; color: #fff; }
.co-loader-text span { font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.co-loader-slow[hidden] { display: none; }
.co-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }

.co-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.co-crumbs strong { color: #fff; font-family: var(--font-heading); font-size: 16px; }
.co-crumb-link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--coach-tint); font: inherit; }
.co-crumb-link:hover { text-decoration: underline; }
.co-meta { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--color-text) 58%, transparent); }
.co-meta-cards { color: #fff; font-weight: 600; }
.co-mhead { display: none; }
.co-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer; background: transparent; color: var(--color-text); }
.co-credit { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; background: color-mix(in srgb, var(--psl-blue) 14%, transparent); color: var(--color-text); }
.co-credit[hidden] { display: none; }

/* ── The player: table + controls as one object ── */
.co-player { border-radius: 18px; overflow: hidden; background: #0b0d16; box-shadow: 0 10px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); container-type: inline-size; }
.co-stage-wrap { position: relative; width: 100%; }
/* Full width; as tall as the felt's own shape, but never taller than the
   window leaves room for (the felt image covers, so it always fills). */
.co-stage {
  position: relative; width: 100%; height: min(calc(100cqw * 848 / 1264), calc(100vh - 265px)); min-height: 380px;
  container-type: size; overflow: hidden; user-select: none; -webkit-user-select: none;
  --fs: max(min(1.55cqw, 2.3cqh), 11px);
  --card-w: max(min(7cqw, 10.5cqh), 38px);
  --card-sm-w: max(min(5.1cqw, 7.6cqh), 30px);
}
.co-fx { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.co-fly { position: absolute; line-height: 0; will-change: transform, opacity; }
.co-fly svg { width: 100%; height: 100%; display: block; }
.co-fly-card { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); }
.co-felt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.co-center { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: calc(var(--fs) * .8); font-size: var(--fs); z-index: 3; }
.co-pot { display: flex; align-items: baseline; gap: .55em; padding: .3em 1em; border-radius: 999px; background: rgba(10, 12, 20, .8); border: 1px solid rgba(255, 255, 255, .14); }
.co-pot[hidden] { visibility: hidden; display: flex; }
.co-pot-label { text-transform: uppercase; letter-spacing: .14em; font-size: .78em; font-weight: 700; color: rgba(233, 233, 237, .6); }
.co-pot-amt { font-family: var(--font-heading); font-weight: 800; font-size: 1.25em; color: #fff; font-variant-numeric: tabular-nums; }
.co-board { display: flex; gap: calc(var(--card-w) * .1); }
.co-card { display: inline-block; width: var(--card-w); aspect-ratio: 5 / 7; line-height: 0; }
.co-card svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.co-card.sm { width: var(--card-sm-w); }
.co-card.flip, .co-card.deal-in { animation: co-flip .45s ease-out both; }
.co-board .co-card.deal-in:nth-child(2) { animation-delay: .12s; }
.co-board .co-card.deal-in:nth-child(3) { animation-delay: .24s; }
@keyframes co-flip { from { transform: rotateY(90deg) scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
.co-slot { width: var(--card-w); aspect-ratio: 5 / 7; border-radius: 8%; border: 1.5px dashed rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }

/* The name box is the seat: it sits centred on the seat point and never
   moves. The cards hang above it and the action tag below it, both out of
   flow, so neither can shift the box when they appear or change. */
.co-seat { position: absolute; transform: translate(-50%, -50%); z-index: 4; font-size: var(--fs); transition: opacity .3s; }
.co-seat-cards { position: absolute; left: 50%; bottom: calc(100% - .5em); transform: translateX(-50%); display: flex; gap: 2px; z-index: 0; }
.co-seat-body {
  position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "pos name" "pos stack";
  column-gap: .55em; align-items: center; min-width: 9.5em; padding: .45em .85em .45em .45em; border-radius: .85em;
  background: rgba(14, 16, 26, .92); border: 1.5px solid rgba(255, 255, 255, .14); box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.co-seat-pos { grid-area: pos; font-family: var(--font-heading); font-weight: 800; font-size: .8em; letter-spacing: .04em; padding: .3em .45em; border-radius: .45em; background: rgba(255, 255, 255, .1); color: #fff; }
.co-seat-name { grid-area: name; font-weight: 700; font-size: 1.05em; color: #fff; white-space: nowrap; text-align: left; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.co-seat-stack { grid-area: stack; font-size: .95em; color: rgba(233, 233, 237, .7); text-align: left; font-variant-numeric: tabular-nums; }
.co-seat.is-folded { opacity: .38; }
.co-seat.is-hero .co-seat-body { border-color: var(--psl-blue); }
.co-seat.is-deciding .co-seat-body { box-shadow: 0 0 0 3px color-mix(in srgb, var(--psl-blue) 35%, transparent), 0 0 30px color-mix(in srgb, var(--psl-blue) 65%, transparent); }
.co-seat.is-deciding::before {
  content: "Your decision"; position: absolute; top: calc(-1.4 * var(--card-sm-w) / .75 - 1.8em); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2;
  font-family: var(--font-heading); font-weight: 800; font-size: .75em; letter-spacing: .1em; text-transform: uppercase;
  padding: .3em .8em; border-radius: 999px; background: var(--psl-blue); color: #06222f;
}
.co-tag { position: absolute; left: 50%; top: calc(100% + .3em); transform: translateX(-50%); padding: .2em .65em; border-radius: 999px; font-size: .85em; font-weight: 700; white-space: nowrap; background: rgba(10, 12, 20, .88); border: 1px solid rgba(255, 255, 255, .16); color: #f2cf8e; animation: co-pop .25s ease-out; }
.co-tag[hidden] { display: none; }
@keyframes co-pop { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
.co-bet { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; gap: .25em; font-size: var(--fs); }
.co-bet[hidden] { display: none; }
.co-bet-chip { display: inline-block; width: 1.5em; height: 2.4em; line-height: 0; }
.co-bet-chip svg { width: 100%; height: 100%; }
.co-bet-amt { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; padding: .1em .5em; border-radius: 999px; background: rgba(10, 12, 20, .8); }
.co-dealer {
  position: absolute; transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center;
  width: calc(var(--fs) * 1.9); height: calc(var(--fs) * 1.9); border-radius: 50%; background: #f4f4f6; color: #111;
  font-weight: 900; font-size: calc(var(--fs) * .95); box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.co-dealer[hidden] { display: none; }
/* ── Overlays on the felt ── */
.co-nav, .co-info, .co-ctl { position: absolute; z-index: 25; }
.co-nav { left: 14px; top: 12px; display: flex; align-items: center; gap: 6px; }
.co-nav-btn, .co-round {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(10, 12, 20, .78); color: #fff; backdrop-filter: blur(4px);
}
.co-nav-btn:hover:not(:disabled), .co-round:hover { background: rgba(30, 34, 50, .9); }
.co-nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.co-badge span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #fff; background: rgba(10, 12, 20, .78); border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; backdrop-filter: blur(4px); }
.co-info { right: 16px; top: 12px; max-width: 45%; text-align: right; padding: 8px 14px; border-radius: 12px; background: rgba(10, 12, 20, .6); backdrop-filter: blur(4px); font-size: 13px; line-height: 1.45; color: rgba(233, 233, 237, .75); }
.co-info-1 { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-info-1 strong { font-family: var(--font-heading); font-size: 15px; }
.co-info-2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-ctl { right: 16px; bottom: 14px; display: flex; gap: 10px; }
/* The play button: big, in the middle of the felt, pulsing while it is the
   next thing to do; hidden while the replay runs (a tap on the table pauses). */
.co-bigplay {
  position: absolute; left: 50%; top: 47%; z-index: 26; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: clamp(76px, 9cqw, 112px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--psl-blue); color: #06222f; box-shadow: 0 0 0 0 color-mix(in srgb, var(--psl-blue) 60%, transparent), 0 10px 30px rgba(0, 0, 0, .5);
  animation: co-pulse 1.8s ease-out infinite;
}
.co-bigplay svg { width: 42%; height: 42%; margin-left: 6%; }
.co-bigplay:hover { filter: brightness(1.08); }
.co-bigplay[hidden] { display: none; }
@keyframes co-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--psl-blue) 55%, transparent), 0 10px 30px rgba(0, 0, 0, .5); }
  70% { box-shadow: 0 0 0 26px color-mix(in srgb, var(--psl-blue) 0%, transparent), 0 10px 30px rgba(0, 0, 0, .5); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--psl-blue) 0%, transparent), 0 10px 30px rgba(0, 0, 0, .5); }
}
.co-stage.is-playing { cursor: pointer; }
.co-mute[aria-pressed="true"] { color: #f2909a; }
.co-mute { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(255, 255, 255, .16); background: rgba(10, 12, 20, .78); color: #fff; backdrop-filter: blur(4px); }
.co-mute:hover { background: rgba(30, 34, 50, .9); }
.co-mute[hidden] { display: none; }
.co-badge.speaking span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7ce6b4; animation: co-live 1.2s ease-in-out infinite; }
@keyframes co-live { 50% { opacity: .3; } }

/* ── The commentary card over the felt (text-only coaching) ──
   At each stop the felt dims and the coach's words sit on a card between
   the decision arrows and the bottom edge; pills open the supporting
   exhibits on the card, and the pulsing play arrow carries on. */
.co-stage-wrap.card-open .co-info { display: none; }
/* The dimming sits over the felt (seats, chips, animations) but under the
   card and the decision arrows. */
.co-stage-wrap.card-open::after { content: ""; position: absolute; inset: 0; z-index: 23; background: rgba(5, 7, 12, .6); pointer-events: none; }
.co-ov {
  /* One size whatever it shows, commentary or an exhibit: the space
     between the decision arrows and the bottom edge of the felt. */
  position: absolute; z-index: 24; inset: 72px 0 18px; margin: 0 auto;
  width: min(880px, calc(100% - 48px)); height: calc(100% - 90px);
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: #0e111b; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6); color: #fff;
  animation: co-ov-in .22s ease-out;
}
.co-ov[hidden] { display: none; }
@keyframes co-ov-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.co-ov-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 12px 0 20px; }
.co-ov-k { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(236, 236, 242, .78); }
.co-ov .co-mark { padding: 3px 10px; }
.co-ov .co-mark strong { font-size: 14px; }
.co-ov-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .08); color: #fff; }
.co-ov-x:hover { background: rgba(255, 255, 255, .16); }
.co-ov-back { margin-right: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; background: rgba(255, 255, 255, .08); color: #fff; }
.co-ov-back:hover { background: rgba(255, 255, 255, .16); }
.co-ov-top:has(.co-ov-back) { padding-left: 12px; }
.co-ov-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 28px 8px; }
.co-ov-title { margin: 0 0 12px; font-family: var(--font-heading); font-weight: 800; font-size: clamp(20px, 2.3cqw, 26px); line-height: 1.25; color: #fff; text-wrap: balance; }
.co-ov-p { margin: 0 0 12px; font-size: 18px; line-height: 1.6; color: #f6f6f9; }
.co-pill {
  padding: 2px 9px 3px; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 700;
  background: color-mix(in srgb, var(--psl-blue) 26%, transparent); color: #dff4fd;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--psl-blue) 60%, transparent);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.co-pill:hover, .co-pill:focus-visible { background: color-mix(in srgb, var(--psl-blue) 40%, transparent); color: #fff; }
.co-pill svg { width: 14px; height: 14px; margin-right: 5px; vertical-align: -1px; }
.co-pill::after { content: "\203A"; margin-left: 5px; }
.co-ov-lesson { margin: 4px 0 10px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #34d399 12%, transparent); }
.co-ov-lesson p { margin: 4px 0 0; font-size: 18px; line-height: 1.5; color: #fff; }
.co-ov-foot { flex: none; display: flex; justify-content: flex-end; padding: 10px 14px 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.co-ov-go { display: inline-flex; align-items: center; gap: 12px; padding: 2px 2px 2px 14px; border: 0; border-radius: 999px; cursor: pointer; background: none; color: #fff; font: inherit; font-family: var(--font-heading); font-weight: 800; font-size: 16px; }
.co-ov-go:hover .co-ov-go-btn { filter: brightness(1.08); }
.co-ov-go-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--psl-blue); color: #06222f; animation: co-pulse 1.8s ease-out infinite; }
.co-ov-go-btn svg { width: 46%; height: 46%; }
/* An exhibit on the card fills it without scrolling: the grid takes the
   height left under the title, caption and player picker, kept square. */
.co-ov.is-exhibit .co-ov-body { display: flex; flex-direction: column; padding-bottom: 16px; }
.co-ov .co-ex-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 4px 0 0; background: none; }
.co-ov .co-ex-card > * { flex: none; }
.co-ov .co-ex-title { font-size: clamp(20px, 2.2cqw, 24px); color: #fff; }
.co-ov .co-ex-caption { margin: 6px 0 14px; font-size: 17px; color: #ececf1; }
.co-ov .co-ex-footer { font-size: 14px; color: rgba(236, 236, 242, .72); }
.co-ov .co-range-line { font-size: 17px; color: #f2f2f6; }
.co-ov .co-exchip { font-size: 15px; }
.co-ov .co-ex-card > .co-range { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.co-ov .co-grid13 { flex: 1 1 auto; min-height: 0; align-self: flex-start; width: auto; max-width: 100%; aspect-ratio: 1; grid-template-rows: repeat(13, minmax(0, 1fr)); }
.co-ov .co-cell { aspect-ratio: auto; font-size: clamp(9px, 1.35cqw, 13px); }
.co-ov .co-cell:not([class*=" c-"]) { color: rgba(233, 233, 237, .55); }
.co-ov .co-legend { flex: none; font-size: 15px; color: #e6e6ec; }
/* Wide card: the legend beside the grid, so the grid gets the height. */
body:not(.co-m) .co-ov .co-ex-card > .co-range { flex-direction: row; align-items: flex-start; gap: 24px; }
body:not(.co-m) .co-ov .co-range .co-grid13 { flex: 0 1 auto; height: 100%; }
body:not(.co-m) .co-ov .co-range .co-legend { flex-direction: column; gap: 10px; max-width: 240px; }
.co-ov .co-bars { gap: 16px; }
.co-ov .co-bar-top { font-size: 17px; color: #f2f2f6; }
.co-ov .co-bar-note { font-size: 14px; }

/* ── Ratings out of 5 ── */
.m5 { --g: #34d399; } .m4 { --g: #9ad9b0; } .m3 { --g: #f2cf8e; } .m2 { --g: #f59e5b; } .m1 { --g: #f2606c; } .m0 { --g: rgba(233, 233, 237, .45); }
.co-pips { display: inline-flex; gap: 3px; vertical-align: middle; }
.co-pips i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.co-pips i.on { background: var(--g); }
.co-pips.big i { width: 11px; height: 11px; }
.co-mark { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--g) 14%, transparent); }
.co-mark strong { font-family: var(--font-heading); font-size: 16px; color: var(--g); }
.co-mark span:last-child { font-size: 13px; font-weight: 600; color: var(--g); }

/* ── The coach's verdict ── */
/* The verdict is the replayer window's header bar. */
.co-verdict { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; background: var(--color-surface); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.co-verdict-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-verdict-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.co-headline { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.25; color: #fff; text-wrap: balance; }
.co-verdict-sub { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.co-recap { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.co-recap-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, .04); color: #fff; font: inherit; font-size: 14px; text-align: left; }
.co-recap-row:hover { background: rgba(255, 255, 255, .08); }
.co-recap-n, .co-cm-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 800; }
.co-recap-what { flex: 1; min-width: 0; }
.co-small-btn { align-self: flex-start; padding: 10px 16px; font-size: 14px; min-height: 44px; }
.co-reveal { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: color-mix(in srgb, #f59e5b 12%, transparent); color: color-mix(in srgb, var(--color-text) 85%, transparent); }
.co-reveal small { display: block; margin-top: 4px; font-size: 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }

/* ── Under the table: your play v the coach's, and the coach level ── */
.co-under { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.co-plays { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 20px; border-radius: 16px; background: var(--color-surface); }
.co-plays[hidden] { display: none; }
.co-play-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.co-play-k { flex: none; width: 112px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.co-play-v { flex: 1; min-width: 0; font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: #fff; }
.co-play-row.is-rec .co-play-v { color: #7ce6b4; }
.co-play-row.is-match .co-play-v::after { content: " ✓"; color: #7ce6b4; }
.co-strong { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); }
.co-strong .co-play-k { width: auto; }
.co-strong-list { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.co-strong-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.co-strong-top strong { color: #fff; }
.co-strong-track { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.co-strong-track span { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, #34d399 75%, transparent); }
.co-lesson p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--color-text) 88%, transparent); }
.co-levels { flex: 0 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--color-surface); }
.co-levels-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.co-levels-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.co-level { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; background: none; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.co-level:hover { color: #fff; }
.co-level.on { background: var(--psl-blue); color: #06222f; }
.co-checked { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; font-weight: 700; color: #7ce6b4; }
/* "Think it through" */
.co-think { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.co-think li { display: flex; gap: 12px; }
.co-think-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--psl-blue) 26%, transparent); color: #fff; font-size: 13px; font-weight: 800; }
.co-think strong { font-family: var(--font-heading); font-size: 15px; color: #fff; }
.co-think p { margin: 2px 0 0; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--color-text) 82%, transparent); max-width: 75ch; }
.co-cm-more { margin: 6px 8px 0 42px; }
.co-cm-more > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--psl-blue); min-height: 32px; display: inline-flex; align-items: center; }
.co-cm-more p { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--color-text) 72%, transparent); max-width: 75ch; }
.co-cm-lesson { margin-top: 6px; }

/* ── Hide/reveal sections ── */
.co-fold { border-radius: 16px; background: var(--color-surface); }
.co-fold > summary {
  list-style: none; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 20px; min-height: 52px; cursor: pointer;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: #fff;
}
.co-fold > summary::-webkit-details-marker { display: none; }
.co-fold > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; align-self: center; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.co-fold[open] > summary::before { transform: rotate(45deg); }
.co-fold > summary small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.co-fold > :not(summary) { margin: 0 20px 18px; }
.co-cm { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.co-cm-item { border-radius: 12px; padding: 4px 4px 10px; }
.co-cm-item.now { background: color-mix(in srgb, var(--psl-blue) 10%, transparent); box-shadow: inset 3px 0 0 var(--psl-blue); }
.co-cm-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 4px 8px; border: 0; background: none; cursor: pointer; color: #fff; font: inherit; font-weight: 700; font-size: 14px; text-align: left; }
.co-cm-title { flex: 1; min-width: 0; }
.co-cm-text { margin: 0 8px 0 42px; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 82%, transparent); max-width: 75ch; }
.co-note { font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.co-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.co-exchip { border: 0; cursor: pointer; min-height: 40px; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .08); color: #fff; }
.co-exchip.on { background: color-mix(in srgb, var(--psl-blue) 30%, transparent); }
.co-players { margin-bottom: 12px; }
.co-player-chip { display: inline-flex; align-items: center; gap: 8px; }
.co-player-chip.is-hero { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--psl-blue) 60%, transparent); }
.co-player-pos { font-family: var(--font-heading); font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.co-range-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: color-mix(in srgb, var(--color-text) 85%, transparent); }
.co-capped { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, #34d399 16%, transparent); color: #7ce6b4; }
.co-ex-card { padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, .2); container-type: inline-size; }
/* With the repeated label gone, the title and caption move up a level. */
.co-ex-title { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: #fff; }
.co-ex-caption { margin: 6px 0 14px; font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: color-mix(in srgb, var(--color-text) 85%, transparent); }
.co-ex-footer { margin: 12px 0 0; font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.co-bars { display: flex; flex-direction: column; gap: 12px; }
.co-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.co-bar-top strong { color: #fff; }
.co-bar-track { height: 12px; margin-top: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.co-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.co-bar-note { margin-top: 3px; font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.co-range { display: flex; flex-direction: column; gap: 10px; }
.co-grid13 { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; max-width: 560px; }
.co-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 3px; min-width: 0; overflow: hidden; font-size: clamp(7px, 1.6cqw, 11px); font-weight: 700; letter-spacing: -.02em; background: rgba(255, 255, 255, .06); color: rgba(233, 233, 237, .35); }
.co-cell[class*="c-"] { background: color-mix(in srgb, var(--c) 70%, #11131c); color: #fff; }
.co-cell.c-neutral { background: rgba(255, 255, 255, .16); color: rgba(233, 233, 237, .75); }
/* Hands played this way only part of the time: the same colour, paler. */
.co-cell.f-mostly { opacity: .78; }
.co-cell.f-sometimes { opacity: .58; }
.co-cell.f-rarely { opacity: .4; }
.co-legend i.part-key { background: linear-gradient(90deg, var(--c-hero) 50%, color-mix(in srgb, var(--c-hero) 45%, transparent) 50%); }
.co-cell.hl { outline: 2px solid #fff; outline-offset: -1px; position: relative; z-index: 1; }
.co-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.co-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; background: var(--c); }
.co-legend i.hl { background: transparent; outline: 2px solid #fff; outline-offset: -2px; }

/* ── Phones ── */
body.coach-open.co-m .site-nav,
body.coach-open.co-m .an-rail,
body.coach-open.co-m .site-footer { display: none; }
body.coach-open.co-m .an-main { padding-top: 0; padding-left: 8px; padding-right: 8px; }
body.coach-open.co-m .an-layout { gap: 0; }
body.co-m body.co-m .co-mhead { display: flex; align-items: center; gap: 6px; height: 52px; }
.co-mhead-title { flex: 1; font-family: var(--font-heading); font-size: 17px; color: #fff; }
body.co-m .co-player { border-radius: 14px; }
body.co-m .co-stage-wrap { width: 100%; min-width: 0; }
body.co-m .co-stage { height: min(66svh, 140vw); min-height: 0; --fs: max(3.3cqw, 11px); --card-w: max(11.5cqw, 40px); --card-sm-w: max(9cqw, 32px); }
body.co-m .co-info { display: none; }
body.co-m .co-nav { left: 8px; top: 8px; gap: 4px; }
body.co-m .co-badge span { height: 40px; padding: 0 12px; font-size: 13px; }
body.co-m .co-nav-btn { width: 40px; height: 40px; }
body.co-m .co-ctl { right: 10px; bottom: 10px; }
body.co-m .co-mute { width: 52px; height: 52px; }
body.co-m .co-bigplay { width: 84px; }
body.co-m .co-ov { inset: 56px 0 10px; width: calc(100% - 16px); height: calc(100% - 66px); }
body.co-m .co-ov-top { padding-left: 14px; }
body.co-m .co-ov-body { padding: 8px 16px 6px; }
body.co-m .co-ov-p { font-size: 16px; line-height: 1.55; }
body.co-m .co-seat.is-folded { opacity: .3; }
body.co-m .co-seat-body { grid-template-areas: "pos stack"; grid-template-columns: auto auto; min-width: 0; padding: .3em .55em .3em .3em; }
body.co-m .co-seat-name { display: none; }
body.co-m .co-seat.is-hero .co-seat-name { display: none; }
body.co-m .co-verdict { padding: 10px 16px; }
body.co-m .co-fold > summary { padding: 14px 16px; }
body.co-m .co-plays { padding: 12px 14px; border-radius: 0; }
body.co-m .co-play-row { flex-wrap: nowrap; }
body.co-m .co-play-k { width: 96px; font-size: 11px; }
body.co-m .co-play-v { font-size: 15px; }
body.co-m .co-strong .co-play-k { width: auto; }
body.co-m .co-under { gap: 8px; }
body.co-m .co-levels { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 0; }
body.co-m .co-level { padding: 0 10px; font-size: 13px; }
body.co-m .co-fold > :not(summary) { margin: 0 12px 14px; }
body.co-m .co-cm-text { margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
  .co-card.flip, .co-card.deal-in, .co-tag, .co-badge.speaking span::before, .co-bigplay, .co-ov, .co-ov-go-btn { animation: none; }
}
