/* ============================================================
   CORNER — boxing session builder
   Palette: worn-gym near-black, chalk white, one aggressive red.
   Work = red. Rest = neutral steel grey. Get ready = white.
   ============================================================ */

:root {
  --canvas: #0E0D0B;        /* warm near-black, worn gym floor */
  --surface: #17161A;       /* charcoal card */
  --surface-2: #1E1C21;     /* raised charcoal */
  --line: #2A282E;          /* hairline borders */
  --red: #E2372B;           /* the one accent — work, wins, everything */
  --red-deep: #8E1F17;
  --rest: #9AA0A8;          /* rest phase — cool steel grey, clearly "not go" */
  --rest-deep: #5B6068;
  /* aliases kept so existing rules resolve to the new palette */
  --blue: #9AA0A8;
  --blue-deep: #5B6068;
  --gold: #E2372B;          /* was championship gold — now the single red */
  --chalk: #EDE8DF;         /* hand-wrap white text */
  --tape: #8C857A;          /* muted secondary text */
  --danger: #C33;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', sans-serif;
  --radius: 4px;
  --pad: 16px;
  --nav-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--canvas);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

/* faint ring-canvas weave */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.009) 0 1px, transparent 1px 3px);
}

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 16px; color: var(--chalk); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ============ VIEWS ============ */

.view {
  display: none;
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) var(--pad) calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px);
  min-height: 100dvh;
}
.view.active { display: block; }

/* ============ HEADER / WORDMARK ============ */

.app-head { margin-bottom: 26px; }
.wordmark-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.wordmark {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: .02em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.corner-mark {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--red) 0 50%, transparent 50.5%);
  border: 2px solid var(--red);
  flex: none;
}
.tagline {
  font-family: var(--cond);
  font-weight: 500;
  color: var(--tape);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  margin-top: 6px;
}

.head-right { display: flex; align-items: center; gap: 10px; }

.streak-chip {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.streak-chip.zero { color: var(--tape); border-color: var(--line); }

.profile-btn {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--chalk);
  display: flex; align-items: center; justify-content: center;
}
.profile-btn:active { background: var(--surface-2); }
#profile-initial {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold);
}

.profile-stats { display: flex; justify-content: space-around; gap: 12px; margin: 4px 0 22px; text-align: center; }
.profile-stats .stat-num { font-size: 34px; }
.pf-subhead {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.pf-note { color: var(--tape); font-size: 14px; line-height: 1.5; }
.pf-note code { color: var(--chalk); font-size: 13px; }
.pf-error {
  color: var(--danger);
  font-size: 13.5px;
  margin: -6px 0 12px;
}
.pf-email-line { font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
#pf-sync-status { white-space: pre-line; }
#profile-signedin .btn-danger { margin-top: 16px; }

/* ============ SECTIONS ============ */

.section { margin-bottom: 34px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.eyebrow {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tape);
}
.eyebrow::before { content: "// "; color: var(--red); }
.section-meta {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--tape);
}

/* ============ CARDS ============ */

.card-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 14px;
}
.card-title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.card-meta {
  color: var(--tape);
  font-size: 13.5px;
  margin-top: 3px;
}
.card-notes {
  color: var(--tape);
  font-size: 13.5px;
  margin-top: 7px;
  font-style: italic;
  overflow-wrap: anywhere;
}
.card-actions { display: flex; gap: 8px; margin-top: 12px; }

.empty-note {
  color: var(--tape);
  font-size: 14.5px;
  padding: 22px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 14px;
}

/* drill sequence number — drills run in order, so the number is data */
.drill-card { display: flex; gap: 12px; }
.drill-num {
  font-family: var(--display);
  font-size: 22px;
  color: var(--red);
  line-height: 1.1;
  min-width: 30px;
}
.drill-body { flex: 1; min-width: 0; }
.icon-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.icon-btn:active { background: var(--line); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ============ BUTTONS ============ */

.btn {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 13px 18px;
  transition: transform .06s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:active { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--chalk); border: 1px solid var(--line); }
.btn-ghost:active { background: var(--surface-2); }
.btn-small { font-size: 14px; padding: 9px 14px; flex: 1; }
.btn-start { background: var(--red); color: #fff; }
.btn-danger {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(204,51,51,.4);
  margin-top: 26px;
}

/* ============ TOP BAR (editor) ============ */

.bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 10px;
}
.bar-title {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--tape);
}
.bar-btn {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius);
  min-width: 44px; min-height: 40px;
}
.bar-btn:active { background: var(--surface-2); }
.bar-btn-accent { color: var(--gold); }

/* ============ FORMS ============ */

.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tape);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="url"],
.field input[type="number"],
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.field textarea { resize: vertical; }
.field input[type="file"] { width: 100%; padding: 10px 0; color: var(--tape); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.field-hint { color: var(--tape); font-size: 13px; margin: -6px 0 14px; display: block; }

.field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--chalk);
  -webkit-appearance: none;
  appearance: none;
}

.check-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px;
  margin-bottom: 10px;
  color: var(--chalk);
}
.check-row input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }

.btn-pair { display: flex; gap: 10px; margin-bottom: 14px; }
.btn-pair .btn { flex: 1; }
.btn-stack { margin-top: 10px; }

/* ============ CHIPS / TAGS ============ */

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.chip {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--chalk);
  display: inline-flex; align-items: center; gap: 7px;
}
.chip .chip-x { color: var(--tape); font-size: 14px; padding: 0 1px; }
.chip-tag { color: var(--gold); border-color: rgba(226,55,43,.4); background: transparent; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag-row .chip.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ============ VIDEO CARDS ============ */

.video-card { display: flex; gap: 12px; border-left-color: var(--line); }
.video-thumb {
  width: 96px; height: 62px;
  flex: none;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--tape);
  text-transform: uppercase;
  overflow: hidden;
}
img.video-thumb { display: block; }
.video-thumb.has-frame {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.video-body { flex: 1; min-width: 0; }
.video-title { font-weight: 600; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.video-kind {
  font-family: var(--cond); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--tape);
  margin-top: 2px;
}
.video-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.video-tags .chip { font-size: 11.5px; padding: 3px 8px; }

/* ============ HISTORY ============ */

.history-list { display: flex; flex-direction: column; }
.history-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.history-date { color: var(--tape); font-size: 13px; min-width: 62px; }
.history-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-time { color: var(--tape); font-variant-numeric: tabular-nums; }
.history-mark { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.history-mark.done { color: var(--gold); }
.history-mark.partial { color: var(--tape); }
.history-note {
  color: var(--tape);
  font-size: 13px;
  font-style: italic;
  padding: 4px 2px 9px 74px;
  border-bottom: 1px solid var(--line);
  margin-top: -9px;
}

/* ============ TRAINING CALENDAR ============ */

.cal { margin-bottom: 16px; }
.cal-month {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tape);
  margin-bottom: 8px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-wd {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 11px;
  color: var(--tape);
  text-align: center;
  letter-spacing: .08em;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--tape);
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid transparent;
}
.cal-day.empty { background: transparent; }
.cal-day.done { background: var(--gold); color: #fff; font-weight: 700; }
.cal-day.partial { border-color: var(--gold); color: var(--gold); }
.cal-day.today { border-color: var(--red); }
.cal-day.today.done { border-color: transparent; box-shadow: 0 0 0 1px var(--red); }

/* ============ BOTTOM NAV ============ */

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  background: rgba(14,13,11,.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tape);
  padding: 18px 0 16px;
  border-top: 2px solid transparent;
  margin-top: -1px;
}
.nav-btn.active { color: var(--chalk); border-top-color: var(--red); }

/* ============ MODALS / SHEETS ============ */

.modal-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.scrim-dark { background: rgba(0,0,0,.88); }

.sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 18px var(--pad) calc(env(safe-area-inset-bottom) + 22px);
  animation: sheet-up .22s ease;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.sheet-title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* segmented toggle (URL / file) */
.seg-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.seg {
  flex: 1;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tape);
  padding: 11px 0;
}
.seg.active { background: var(--surface-2); color: var(--chalk); box-shadow: inset 0 -2px 0 var(--red); }

/* picker */
.picker-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.picker-item {
  display: flex; align-items: center; gap: 11px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
}
.picker-item:active { border-color: var(--red); }
.picker-item.attached { border-color: var(--gold); }
.picker-item .video-thumb { width: 66px; height: 42px; font-size: 10px; }
.picker-item-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.picker-item-meta { color: var(--tape); font-size: 12.5px; font-weight: 400; }
.picker-check { color: var(--gold); font-size: 16px; flex: none; }
.icon-btn.fav-on { color: var(--gold); border-color: rgba(226,55,43,.45); }

/* watch overlay — full screen so the technique is actually watchable */
.watch-box {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 12px) 14px calc(env(safe-area-inset-bottom) + 16px);
  background: var(--canvas);
  animation: fade-in .18s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.watch-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.watch-frame iframe, .watch-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
  background: #000;
}
.watch-frame video { object-fit: contain; }
.watch-head-btns { display: flex; gap: 2px; align-items: center; }

/* coaching cue — the note you jotted on the clip */
.watch-cue {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* mini mode: video docks in the corner while the round timer runs */
.modal-wrap.mini { pointer-events: none; align-items: flex-end; justify-content: flex-end; }
.modal-wrap.mini .modal-scrim { display: none; }
.modal-wrap.mini .watch-box {
  pointer-events: auto;
  position: fixed;
  inset: auto;
  height: auto;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 176px);
  width: 224px;
  padding: 6px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
  animation: none;
}
.modal-wrap.mini .watch-frame { flex: none; aspect-ratio: 16 / 9; }
.modal-wrap.mini .sheet-head { margin-bottom: 4px; }
.modal-wrap.mini .sheet-title { font-size: 12px; letter-spacing: .06em; }
.modal-wrap.mini .bar-btn { font-size: 12px; min-width: 30px; min-height: 26px; padding: 3px 6px; }
.modal-wrap.mini #watch-tabs, .modal-wrap.mini .watch-cue { display: none; }

.watch-frame .watch-link {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--chalk); text-decoration: none;
  font-family: var(--cond); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.watch-link span { color: var(--red); font-size: 30px; }

/* ============================================================
   PLAYER — the corner system.
   Work = red corner. Rest = blue corner. Get ready = gold.
   ============================================================ */

.view-player {
  display: none;
  padding: 0;
  max-width: none;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}
.view-player.active { display: flex; }

/* corner-pad wedge, flips side with the phase */
.player-corner {
  position: absolute;
  top: 0; left: 0;
  width: 130px; height: 130px;
  background: linear-gradient(135deg, var(--red) 0 50%, transparent 50.5%);
  opacity: .92;
  transition: background .3s ease;
  z-index: 0;
}
.view-player.phase-rest .player-corner {
  left: auto; right: 0;
  background: linear-gradient(225deg, var(--blue) 0 50%, transparent 50.5%);
}
.view-player.phase-ready .player-corner {
  background: linear-gradient(135deg, var(--chalk) 0 50%, transparent 50.5%);
}

/* phase floods a faint tint over the whole screen */
.view-player::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(226,55,43,.14), transparent 65%);
  transition: opacity .3s ease;
  z-index: 0;
}
.view-player.phase-rest::after {
  background: radial-gradient(ellipse at 50% 30%, rgba(154,160,168,.14), transparent 65%);
}
.view-player.phase-ready::after {
  background: radial-gradient(ellipse at 50% 30%, rgba(237,232,223,.10), transparent 65%);
}

.player-progress {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.08);
  z-index: 2;
}
.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width .25s linear;
}

.player-quit {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 14px);
  right: 14px;
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(23,22,26,.7);
  color: var(--tape);
  font-size: 16px;
}
.view-player.phase-rest .player-quit { right: auto; left: 14px; }

.player-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(env(safe-area-inset-top) + 56px) 20px 10px;
  gap: 4px;
}

.player-eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tape);
}
.player-drill {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 8vw, 44px);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 22ch;
  overflow-wrap: anywhere;
}
.player-phase {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 10px;
  transition: color .3s ease;
}
.view-player.phase-rest .player-phase { color: var(--rest); }
.view-player.phase-ready .player-phase { color: var(--chalk); }

.player-clock {
  font-family: var(--display);
  font-size: clamp(96px, 34vw, 210px);
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 6px;
}
.player-clock.warn { color: var(--red); animation: pulse .5s ease; }
.view-player.phase-rest .player-clock.warn { color: var(--rest); }
@keyframes pulse { 0% { transform: scale(1.04); } 100% { transform: scale(1); } }

.player-next {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tape);
  min-height: 20px;
  overflow-wrap: anywhere;
  padding: 0 10px;
}

.btn-watch {
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--chalk);
  color: var(--chalk);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px;
}
.btn-watch:active { background: rgba(237,232,223,.15); }

/* combo caller flash — coach barking a call */
.combo-call {
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  font-family: var(--display);
  font-size: clamp(30px, 9vw, 48px);
  letter-spacing: .04em;
  color: var(--chalk);
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}
/* stays visible for the whole instruction window, with countdown */
.combo-call.show { opacity: 1; animation: combo-pop .4s ease; }
@keyframes combo-pop {
  0% { opacity: 0; transform: scale(.8); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* voice / combo toggles */
.player-toggles {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 10px;
}
.ptoggle {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tape);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}
.ptoggle.on { color: var(--gold); border-color: var(--gold); }

.player-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 8px 20px calc(env(safe-area-inset-bottom) + 26px);
}
.ctl {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--chalk);
  font-size: 21px;
  display: flex; align-items: center; justify-content: center;
}
.ctl:active { background: var(--surface-2); }
.ctl-main {
  width: 78px; height: 78px;
  font-size: 30px;
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transition: background .3s ease, border-color .3s ease;
}
.view-player.phase-rest .ctl-main { background: var(--rest); border-color: var(--rest); color: #14130F; }
.view-player.phase-ready .ctl-main { background: var(--chalk); border-color: var(--chalk); color: #14130F; }
.view-player.paused .ctl-main { background: var(--surface-2); border-color: var(--chalk); color: var(--chalk); }

/* summary */
.summary {
  position: absolute; inset: 0;
  z-index: 5;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 24px;
  gap: 6px;
}
.summary::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 130px; height: 130px;
  background: linear-gradient(135deg, var(--gold) 0 50%, transparent 50.5%);
}
.summary-eyebrow {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.summary-title {
  font-family: var(--display);
  font-size: clamp(38px, 11vw, 60px);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 6px 0 22px;
  font-weight: 400;
}
.summary-stats { display: flex; gap: 34px; margin-bottom: 38px; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tape);
}
.summary .btn { max-width: 320px; }
.summary-note-field { width: 100%; max-width: 320px; margin-bottom: 20px; text-align: left; }

/* ============ WIDER SCREENS ============ */

@media (min-width: 700px) {
  .wordmark { font-size: 48px; }
  .player-clock { font-size: clamp(140px, 24vw, 260px); }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
