/* The coach (onboarding, 23 Oct 2026): the tips' veil, the ring round what a tip is about, and its card.
   Above every screen of the game (the career 12, a sheet or the match 60, a scene 80, the music card 950), under the
   loading ring (1900) and the ESL wipe (2000), which it waits for. Sharp corners; blue only in the ring's glow (focus).
   Round 2: the hands-on step (the hole lets the press through, the ring breathes, a ghost finger, "Your turn", the
   green tick when done), the toast of a goal done, and the first week's card on the Dashboard (.cg). */

.coach { position: fixed; inset: 0; z-index: 1500; pointer-events: none; }
.coach-veil, .coach-guard, .coach-ring { position: fixed; display: block; left: 0; top: 0; width: 0; height: 0; }
.coach-veil {
  background: rgba(10, 16, 26, 0.46); opacity: 0;
  transition: opacity var(--t-base) var(--ease-std), left var(--t-move) var(--ease-out), top var(--t-move) var(--ease-out),
    width var(--t-move) var(--ease-out), height var(--t-move) var(--ease-out);
}
.coach.is-on.is-modal .coach-veil, .coach.is-on.is-modal .coach-guard { pointer-events: auto; }
.coach.is-on.is-modal .coach-veil { opacity: 1; }
.coach.is-live .coach-veil, .coach.is-live .coach-guard { display: none; }
.coach-ring {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 0 0 7px var(--accent-glow), 0 18px 48px rgba(6, 12, 22, 0.28);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-std), left var(--t-move) var(--ease-out), top var(--t-move) var(--ease-out),
    width var(--t-move) var(--ease-out), height var(--t-move) var(--ease-out);
}
.coach.is-on .coach-ring { opacity: 1; }
.coach.is-centred .coach-ring { opacity: 0; }
.coach.is-instant, .coach.is-instant * { transition: none !important; }

/* a hands-on step (round 2): the press goes through the hole to the game, and the ring breathes where to press */
.coach.is-on.is-modal.is-through .coach-guard { pointer-events: none; }
.coach.is-task .coach-ring { animation: coach-breathe 1.7s var(--ease-std) infinite; }
@keyframes coach-breathe {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 0 0 7px var(--accent-glow), 0 18px 48px rgba(6, 12, 22, 0.28); }
  50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 0 0 13px rgba(45, 111, 214, 0.14), 0 18px 48px rgba(6, 12, 22, 0.28); }
}
/* ... and while what the player opened is up (a picker, a sheet), the coach stands aside, whole */
.coach.is-aside .coach-veil, .coach.is-aside .coach-guard, .coach.is-aside .coach-ring, .coach.is-aside .coach-card, .coach.is-aside .coach-finger {
  opacity: 0 !important; visibility: hidden; pointer-events: none !important;
}

/* the ghost finger: a dot that shows the gesture (a tap, a held press, a drag), circles being for dots -- ink with a
   white rim, so it reads on a white kit, a dark one and the grass alike */
.coach-finger {
  position: fixed; left: 0; top: 0; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none; box-sizing: border-box;
  background: radial-gradient(circle at 40% 35%, rgba(52, 64, 79, 0.82), rgba(16, 21, 31, 0.72));
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(16, 21, 31, 0.45), 0 8px 20px rgba(6, 12, 22, 0.42);
  opacity: 0; display: block;
}
.coach-finger.is-on { opacity: 1; }
.coach-ripple { position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(16, 21, 31, 0.35); opacity: 0; }

/* the card */
.coach-card {
  position: fixed; left: 0; top: 0; pointer-events: auto; box-sizing: border-box;
  width: min(392px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: visible;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-2); color: var(--ink-900); outline: none;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease-std), visibility 0s linear var(--t-base), left var(--t-move) var(--ease-out), top var(--t-move) var(--ease-out);
}
.coach.is-on .coach-card { opacity: 1; visibility: visible; transition: opacity var(--t-base) var(--ease-std), visibility 0s, left var(--t-move) var(--ease-out), top var(--t-move) var(--ease-out); }
.coach.is-centred .coach-card { width: min(500px, calc(100vw - 24px)); }
.coach.is-live .coach-card { box-shadow: var(--shadow-2), 0 0 0 1px rgba(16, 21, 31, 0.06); }

/* the notch: a square turned on its point, on the edge that faces the target */
.coach-notch { position: absolute; width: 14px; height: 14px; background: rgba(255, 255, 255, 0.96); pointer-events: none; display: none; }
.coach-card[data-side="below"] .coach-notch { display: block; top: -7px; left: var(--notch, 50%); transform: translateX(-50%) rotate(45deg); }
.coach-card[data-side="above"] .coach-notch { display: block; bottom: -7px; left: var(--notch, 50%); transform: translateX(-50%) rotate(45deg); }
.coach-card[data-side="right"] .coach-notch { display: block; left: -7px; top: var(--notch, 50%); transform: translateY(-50%) rotate(45deg); }
.coach-card[data-side="left"] .coach-notch { display: block; right: -7px; top: var(--notch, 50%); transform: translateY(-50%) rotate(45deg); }

/* who speaks: the club's assistant on a sphere in the club's colours, or the game's own 27 */
.coach-who { position: relative; display: flex; align-items: center; gap: 11px; padding: 14px 10px 10px 18px; }
.coach-face { position: relative; flex: none; width: 38px; height: 38px; display: grid; place-items: center; }
.coach-face.is-game { background: var(--ink-900); color: var(--esl-gold-light); }
.coach-face.is-game b { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; line-height: 1; }
.coach-ball {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    linear-gradient(112deg, transparent 0 56%, var(--coach-k2) 56% 70%, transparent 70%),
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 46%),
    var(--coach-k1);
  box-shadow: inset -4px -6px 10px rgba(0, 0, 0, 0.28), inset 2px 3px 6px rgba(255, 255, 255, 0.25), 0 3px 8px rgba(16, 24, 40, 0.22);
}
.coach-face:not(.is-game) b {
  position: relative; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; line-height: 1;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.coach-face.is-light b { color: var(--ink-900); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.coach-id { display: grid; gap: 3px; min-width: 0; flex: 1; }
.coach-id b { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; color: var(--ink-900); }
.coach-id small { font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-x {
  all: unset; box-sizing: border-box; flex: none; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--ink-500);
  transition: background var(--t-micro) var(--ease-std), color var(--t-micro) var(--ease-std);
}
.coach-x svg { width: 16px; height: 16px; }
.coach-x:hover, .coach-x:focus-visible { background: var(--paper-2); color: var(--ink-900); }

/* what it says */
.coach-in { padding: 2px 20px 4px; }
.coach-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 1.7vw, 30px); letter-spacing: 0.04em; text-transform: uppercase; line-height: 0.98; color: var(--ink-900); }
.coach-body { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ink-700); }
.coach-points { margin: 10px 0 2px; padding: 0; list-style: none; display: grid; gap: 8px; }
.coach-body + .coach-points { margin-top: 10px; }
.coach-points li { position: relative; padding-left: 18px; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--ink-700); }
.coach-points li::before { content: ""; position: absolute; left: 1px; top: 0.52em; width: 7px; height: 7px; background: var(--ink-900); }

/* the way on */
.coach-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 14px 20px; }
.coach-meta { display: flex; align-items: center; gap: 14px; min-width: 0; }
.coach-meta b { font-size: 13px; font-weight: 600; color: var(--ink-500); }
.coach-off {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 2px; font-size: 13px; font-weight: 600; color: var(--ink-500);
  text-decoration: underline; text-decoration-color: rgba(52, 64, 79, 0.35); text-underline-offset: 3px;
}
.coach-off:hover, .coach-off:focus-visible { color: var(--ink-900); text-decoration-color: currentColor; }
.coach-go { display: flex; gap: 6px; flex: none; }
.coach-back {
  all: unset; box-sizing: border-box; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; background: var(--paper-2); color: var(--ink-700);
  transition: background var(--t-micro) var(--ease-std);
}
.coach-back svg { width: 18px; height: 18px; }
.coach-back:hover, .coach-back:focus-visible { background: #e6e9ee; color: var(--ink-900); }
.coach-next { min-width: 124px; justify-content: center; }
.coach-foot.has-choices { justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.coach-choice { justify-content: center; }
.coach-choice.is-ghost, .coach-skip { background: transparent; color: var(--ink-900); box-shadow: inset 0 0 0 2px var(--line-strong); }
.coach-choice.is-ghost:hover, .coach-skip:hover { background: var(--paper-2); }
.coach-skip { min-width: 96px; justify-content: center; }
.coach .btn:focus-visible, .coach-back:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent-glow); }
.coach .press:active { transform: translateY(1px) scale(0.985); }

/* the player's turn (a hands-on step): a beating dot and the words, Skip on the right */
.coach-turn {
  display: flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-900);
}
.coach-turn b { margin-left: 4px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-500); }
.coach-pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-900); }
.coach-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink-900); opacity: 0; animation: coach-beat 1.7s var(--ease-out) infinite; }
@keyframes coach-beat { 0% { transform: scale(0.5); opacity: 0.7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

/* done: the tick stamped in the game's "in position" green, and its word */
.coach-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; background: var(--ok); color: #fff; }
.coach-check svg { width: 18px; height: 18px; }
.coach-praise { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; }
.coach-praise b { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink-900); }
.coach-turn.is-done { color: var(--ok); }
.coach-turn.is-done .coach-check { width: 20px; height: 20px; }
.coach-turn.is-done .coach-check svg { width: 14px; height: 14px; }

/* a hands-on step on a short screen whose target fills it: the card as one line beside the target, never on it */
.coach-card.is-bar { width: min(760px, calc(100vw - 24px)) !important; display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; }
.coach-card.is-bar .coach-who, .coach-card.is-bar .coach-body, .coach-card.is-bar .coach-points, .coach-card.is-bar .coach-goals { display: none; }
.coach-card.is-bar .coach-in { flex: 1 1 auto; min-width: 0; padding: 0; }
.coach-card.is-bar .coach-title { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-card.is-bar .coach-foot { flex: none; padding: 0; gap: 12px; }

/* the week's end: the list, every goal ticked */
.coach-goals { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; gap: 7px; }
.coach-goals li { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-900); }
.coach-goals .coach-check { width: 22px; height: 22px; }
.coach-goals .coach-check svg { width: 15px; height: 15px; }

/* the Guide (the pause menu's): the tips' switch over the topics */
.tr-modal.is-guide .tr-sheet { width: min(500px, 100%); max-height: calc(100% - 16px); overflow-y: auto; }
.gd-head p { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--ink-500); }
.gd-tips { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px clamp(12px, 1.2vw, 20px) 2px; padding: 12px 16px; background: var(--paper-2); }
.gd-tips span { display: grid; gap: 3px; min-width: 0; }
.gd-tips b { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.gd-tips small { font-size: 13px; font-weight: 500; color: var(--ink-500); }
.gd-seg { display: flex; flex: none; background: var(--surface-ink); }
.gd-seg button {
  all: unset; box-sizing: border-box; cursor: pointer; min-width: 64px; height: 40px; display: grid; place-items: center; padding: 0 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
  box-shadow: inset 0 -3px 0 transparent; transition: background var(--t-micro) var(--ease-std), color var(--t-micro) var(--ease-std);
}
.gd-seg button.is-on { background: var(--paper); color: var(--ink-900); box-shadow: inset 0 -3px 0 var(--accent); }
.gd-seg button:focus-visible { outline: none; background: var(--paper); box-shadow: inset 0 -3px 0 var(--accent), 0 0 0 3px var(--accent-glow); }
.gd-list { padding-top: 10px; }
.gd-list .pm-item { min-height: 58px; padding: 11px 16px 10px; }
.gd-foot { display: flex; justify-content: center; padding: 0 20px clamp(14px, 2vh, 20px); }
.gd-reset {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-500);
  text-decoration: underline; text-decoration-color: rgba(52, 64, 79, 0.35); text-underline-offset: 3px;
}
.gd-reset:hover, .gd-reset:focus-visible { color: var(--ink-900); text-decoration-color: currentColor; }

/* a goal done (round 2): the toast at the foot of the screen -- the tick, what was done, the bar of five, the next */
.coach-toast {
  position: fixed; left: 50%; bottom: 18px; z-index: 1495; transform: translateX(-50%); box-sizing: border-box;
  width: min(560px, calc(100vw - 24px)); background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-2); color: var(--ink-900);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-base) var(--ease-std), visibility 0s linear var(--t-base);
}
.coach-toast.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--t-base) var(--ease-std), visibility 0s; }
.coach-toast-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 14px; }
.coach-toast-check { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--ok); color: #fff; }
.coach-toast-check svg { width: 26px; height: 26px; }
.coach-toast-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.coach-toast-text small { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.coach-toast-text b { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-toast-go {
  all: unset; box-sizing: border-box; flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 16px; cursor: pointer;
  background: var(--ink-900); color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background var(--t-micro) var(--ease-std);
}
.coach-toast-go svg { width: 16px; height: 16px; color: var(--esl-gold-light); }
.coach-toast-go:hover { background: #222b39; }
.coach-toast-go:focus-visible, .coach-toast-x:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent-glow); }
.coach-toast-x { all: unset; box-sizing: border-box; flex: none; width: 36px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink-300); }
.coach-toast-x svg { width: 15px; height: 15px; }
.coach-toast-x:hover { color: var(--ink-900); }
.coach-toast-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 0 14px 12px; }
.coach-toast-bar i { height: 5px; background: rgba(16, 21, 31, 0.1); transform-origin: left center; }
.coach-toast-bar i.is-done { background: var(--ink-900); }
.coach-toast-bar i.is-fresh { background: var(--ok); }

/* the first week's card (round 2): the Dashboard's News place, a card on the pitch like its neighbours */
.cg { container-type: inline-size; }
.cg .card-face { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; padding: clamp(12px, 1.2vw, 22px) clamp(14px, 1.3vw, 24px); }
.cg-head .card-title { flex: 1 1 auto; }
.cg-count { flex: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.05vw, 21px); letter-spacing: 0.04em; color: var(--ink-500); }
.cg-count b { font-weight: 700; color: var(--ink-900); }
.cg-hide { all: unset; box-sizing: border-box; flex: none; width: 34px; height: 34px; margin-right: -8px; display: grid; place-items: center; cursor: pointer; color: var(--ink-300); transition: color var(--t-micro), background var(--t-micro); }
.cg-hide svg { width: 14px; height: 14px; }
.cg-hide:hover, .cg-hide:focus-visible { outline: none; color: var(--ink-900); background: var(--paper-2); }
.cg-standing { flex: none; display: flex; align-items: center; gap: 12px; padding: clamp(10px, 1.5vh, 18px) 0 clamp(8px, 1.2vh, 14px); }
.cg-bar { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cg-bar i { height: 6px; background: rgba(16, 21, 31, 0.1); transform-origin: left center; }
.cg-bar i.is-done { background: var(--ink-900); }
.cg-bar i.is-fresh { background: var(--ok); animation: cg-fill var(--t-move) var(--ease-out) 260ms backwards; }
.cg-left { flex: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(12px, 0.85vw, 16px); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
.cg-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: clamp(4px, 0.7vh, 9px); }
.cg-list > li { min-height: 0; display: flex; }
.cg-goal {
  all: unset; box-sizing: border-box; flex: 1; min-width: 0; min-height: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(10px, 0.9vw, 16px); padding: 0 clamp(10px, 0.9vw, 16px); background: rgba(16, 21, 31, 0.04); color: var(--ink-900);
  transition: background var(--t-micro) var(--ease-std), box-shadow var(--t-micro) var(--ease-std);
}
button.cg-goal { cursor: pointer; }
button.cg-goal:hover { background: rgba(16, 21, 31, 0.08); }
button.cg-goal:focus-visible { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px var(--accent-glow); }
.cg-goal.is-done { background: transparent; }
.cg-goal.is-next { background: var(--ink-900); color: var(--paper); }
button.cg-goal.is-next:hover { background: #222b39; }
.cg-tick { flex: none; width: clamp(22px, 1.6vw, 30px); height: clamp(22px, 1.6vw, 30px); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(16, 21, 31, 0.26); color: #fff; }
.cg-tick svg { width: 72%; height: 72%; }
.cg-goal.is-next .cg-tick { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.cg-goal.is-done .cg-tick { background: var(--ok); box-shadow: none; }
.cg-goal.is-fresh .cg-tick { animation: cg-pop 560ms var(--ease-out) 300ms backwards; }
.cg-text { display: grid; gap: 3px; min-width: 0; }
.cg-text b {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.2vw, 24px); letter-spacing: 0.03em; line-height: 1.02; text-transform: uppercase;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.cg-text small { font-size: clamp(12px, 0.82vw, 15px); font-weight: 500; line-height: 1.25; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-goal.is-next .cg-text small { color: rgba(255, 255, 255, 0.74); }
.cg-goal.is-done .cg-text b { color: var(--ink-500); }
.cg-go { flex: none; display: flex; align-items: center; gap: 6px; color: var(--ink-300); }
.cg-go em { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 0.9vw, 17px); letter-spacing: 0.08em; text-transform: uppercase; }
.cg-go svg { width: 16px; height: 16px; }
.cg-goal.is-next .cg-go { color: var(--esl-gold-light); }
/* a narrow column (a laptop's): the next goal's "Show me" is its arrow, so its name keeps the room */
@container (max-width: 380px) { .cg-go em { display: none; } }
@keyframes cg-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cg-pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: none; opacity: 1; } }

/* a landscape phone: the same card, tighter */
@media (max-height: 520px) {
  .coach-card { width: min(336px, calc(100vw - 24px)); }
  .coach.is-centred .coach-card { width: min(470px, calc(100vw - 24px)); }
  .coach-who { gap: 9px; padding: 9px 6px 6px 14px; }
  .coach-face { width: 30px; height: 30px; }
  .coach-face.is-game b { font-size: 16px; }
  .coach-face:not(.is-game) b { font-size: 12px; }
  .coach-id b { font-size: 13.5px; }
  .coach-id small { font-size: 11.5px; }
  .coach-in { padding: 0 14px 2px; }
  .coach-title { font-size: 20px; margin-bottom: 5px; }
  .coach-body { font-size: 13px; line-height: 1.38; }
  .coach-points { gap: 5px; margin-top: 6px; }
  .coach-body + .coach-points { margin-top: 6px; }
  .coach-points li { font-size: 12.5px; line-height: 1.35; padding-left: 15px; }
  .coach-points li::before { width: 6px; height: 6px; }
  .coach-foot { padding: 8px 10px 10px 14px; }
  .coach-foot.has-choices { padding-top: 10px; gap: 6px; }
  .coach-next { min-width: 100px; }
  .coach-next, .coach-choice { font-size: 15px; padding: 0 16px; }
  .gd-tips { padding: 8px 12px; }
  .gd-list { padding-top: 6px; }
  .gd-list .pm-item { min-height: 48px; padding: 8px 14px 7px; }
  .coach-turn { font-size: 14px; gap: 8px; }
  .coach-skip { min-width: 80px; }
  .coach-praise b { font-size: 13.5px; }
  .coach-check { width: 22px; height: 22px; }
  .coach-check svg { width: 15px; height: 15px; }
  .coach-goals { margin-top: 8px; gap: 4px; }
  .coach-goals li { font-size: 14px; }
  .coach-goals .coach-check { width: 18px; height: 18px; }
  .coach-toast { bottom: 10px; width: min(500px, calc(100vw - 24px)); }
  .coach-toast-row { gap: 10px; padding: 8px 4px 8px 10px; }
  .coach-toast-check { width: 32px; height: 32px; }
  .coach-toast-check svg { width: 21px; height: 21px; }
  .coach-toast-text small { font-size: 11.5px; }
  .coach-toast-text b { font-size: 18px; }
  .coach-toast-go { height: 40px; padding: 0 10px 0 12px; font-size: 13.5px; }
  .coach-toast-bar { padding: 0 10px 8px; }
  /* the News place on a phone is a narrow column: the goals' second lines step back, but for the next one */
  .cg .card-face { padding: 10px 10px; }
  .cg-head .dcard-icon { display: none; }
  .cg-standing { padding: 7px 0 6px; gap: 8px; }
  .cg-left { display: none; }
  .cg-list { gap: 4px; }
  .cg-goal { min-height: 40px; gap: 8px; padding: 0 8px; }
  .cg-tick { width: 20px; height: 20px; }
  .cg-text b { font-size: 14.5px; }
  .cg-text small { display: none; }
  .cg-goal.is-next .cg-text small { display: block; font-size: 11px; }
  .cg-go em { display: none; }
}

/* the big screens: the type a step up, as everywhere else */
@media (min-width: 2200px) {
  .coach-card { width: 452px; }
  .coach.is-centred .coach-card { width: 576px; }
  .coach-body { font-size: 17px; }
  .coach-points li { font-size: 16.5px; }
  .coach-id b { font-size: 17px; }
  .coach-id small { font-size: 14px; }
  .coach-turn { font-size: 18px; }
  .coach-praise b { font-size: 17.5px; }
  .coach-goals li { font-size: 19px; }
  .coach-toast { width: 660px; }
  .coach-toast-text small { font-size: 15px; }
  .coach-toast-text b { font-size: 27px; }
  .coach-toast-go { height: 50px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .coach, .coach *, .coach-toast, .coach-toast *, .cg * { transition: none !important; animation: none !important; }
}
