:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #eef1ed;
  --border: #e2e6e0;
  --text: #17201a;
  --text-dim: #667066;
  --accent: #10b981;
  --accent-2: #eab308;
  --accent-soft: #10b9811a;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 20, 0.04), 0 6px 20px rgba(16, 24, 20, 0.05);
  --heat-0: #e7ebe6;
  --heat-1: #b7e4c7;
  --heat-2: #74c69d;
  --heat-3: #40b47f;
  --heat-4: #148f5c;

  --cat-tecnica: #2563eb;
  --cat-recuperacion: #94a3b8;
  --cat-concepto: #7c3aed;
  --cat-gimnasio: #16a34a;
  --cat-futbol: #0d9488;
  --cat-estudio: #d97706;
  --cat-nutricion: #ca8a04;
  --cat-sueno: #4338ca;
  --cat-analisis: #dc2626;
}

:root[data-theme="dark"] {
  --bg: #0e130f;
  --surface: #171d18;
  --surface-2: #202821;
  --border: #2c352d;
  --text: #eef3ee;
  --text-dim: #93a094;
  --accent: #34d399;
  --accent-2: #facc15;
  --accent-soft: #34d39922;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 24px rgba(0, 0, 0, 0.3);
  --heat-0: #202821;
  --heat-1: #16432c;
  --heat-2: #1d6b45;
  --heat-3: #279c63;
  --heat-4: #34d399;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e130f;
    --surface: #171d18;
    --surface-2: #202821;
    --border: #2c352d;
    --text: #eef3ee;
    --text-dim: #93a094;
    --accent: #34d399;
    --accent-2: #facc15;
    --accent-soft: #34d39922;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 24px rgba(0, 0, 0, 0.3);
    --heat-0: #202821;
    --heat-1: #16432c;
    --heat-2: #1d6b45;
    --heat-3: #279c63;
    --heat-4: #34d399;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

#app {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar-date { display: flex; flex-direction: column; line-height: 1.2; }
.day-name { font-size: 20px; font-weight: 700; text-transform: capitalize; }
.full-date { font-size: 13px; color: var(--text-dim); text-transform: capitalize; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.mode-select {
  appearance: none;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.icon-btn svg { width: 17px; height: 17px; }

main#content {
  flex: 1;
  padding: 16px 16px 96px;
}

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 760px;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 10;
}
.tab {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px 8px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
}
.tab .tab-icon svg { width: 21px; height: 21px; }
.tab .tab-label { font-size: 11px; font-weight: 600; }
.tab.active { color: var(--accent); }

/* ---------- Cards / sections ---------- */
.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 22px 2px 10px;
}
.section-title:first-child { margin-top: 2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-card { padding: 16px; margin-bottom: 6px; }
.progress-card-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress-card-top .label { font-weight: 700; font-size: 15px; }
.progress-card-top .value { font-size: 13px; color: var(--text-dim); }
.bar-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .4s ease; }

/* ---------- Block list (Hoy / Semana) ---------- */
.block-list { display: flex; flex-direction: column; gap: 8px; }

.block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.block::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--cat-color, var(--accent));
}
.block.now { box-shadow: 0 0 0 2px var(--cat-color, var(--accent)) inset; }
.block.done { opacity: 0.55; }
.block.point { padding-top: 8px; padding-bottom: 8px; }

.block-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  width: 78px;
  flex-shrink: 0;
  line-height: 1.3;
}
.block-main { flex: 1; min-width: 0; }
.block-label { font-size: 14.5px; font-weight: 600; }
.block-label.done { text-decoration: line-through; }
.block-cat { font-size: 11.5px; color: var(--cat-color, var(--text-dim)); font-weight: 600; margin-top: 1px; }

.checkbox {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--surface);
}
.checkbox.checked {
  background: var(--cat-color, var(--accent));
  border-color: var(--cat-color, var(--accent));
}
.checkbox svg { width: 15px; height: 15px; color: #fff; display: none; }
.checkbox.checked svg { display: block; }

.point-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cat-color, var(--text-dim));
  flex-shrink: 0;
}

/* ---------- Streaks ---------- */
.streak-row { display: flex; gap: 10px; margin-bottom: 6px; }
.streak-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.streak-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.streak-label { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ---------- Week view ---------- */
.week-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.week-day-header.today { border-color: var(--accent); color: var(--accent); }
.week-day-body { padding-top: 8px; display: none; }
.week-day-body.open { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.week-day-wrap { margin-bottom: 8px; }
.chev { transition: transform .2s; }
.chev.open { transform: rotate(180deg); }

/* ---------- Settings ---------- */
.settings-group { margin-bottom: 22px; }
.settings-schedule-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.chip {
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
}
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.edit-row {
  display: grid;
  grid-template-columns: 62px 62px 1fr 30px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.edit-row input[type="time"], .edit-row input[type="text"], .edit-row select {
  width: 100%;
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.edit-row-cat { grid-template-columns: 62px 62px 1fr 1fr 30px; }
.remove-btn {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--danger);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.add-block-btn, .btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-top: 6px;
}
.btn-solid {
  border-style: solid;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-danger {
  border-style: solid;
  color: var(--danger);
  border-color: var(--danger);
  background: transparent;
}
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-row .btn { margin-top: 0; }

.goal-editor { display: grid; grid-template-columns: 1fr 90px 90px; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.goal-editor input { padding: 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; }

.sport-rotation { display: flex; flex-direction: column; gap: 8px; }
.sport-rotation-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sport-rotation-row select { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; }

.info-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.info-box code { background: var(--surface); padding: 1px 5px; border-radius: 5px; }

.empty-note { color: var(--text-dim); font-size: 13px; padding: 8px 2px; }

/* ---------- Mission / phase banner ---------- */
.mission-card { padding: 16px; margin-bottom: 16px; }
.mission-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.mission-phase { font-weight: 800; font-size: 15px; }
.mission-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.mission-bars { display: flex; flex-direction: column; gap: 8px; }
.mission-bar-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); margin-bottom: 3px; }

/* ---------- Block bullets / counters ---------- */
.block-bullets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.bullet-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}
.block-minutes { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.counter-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.counter-input {
  width: 56px;
  font-family: inherit;
  font-size: 12.5px;
  text-align: center;
  padding: 5px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.counter-unit { font-size: 10px; color: var(--text-dim); }
.study-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--cat-estudio);
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 6px;
}

/* ---------- Topic rotation ---------- */
.topic-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.topic-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.topic-pill.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Player / match / book cards ---------- */
.player-card, .match-card, .book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 8px;
}
.player-card-name, .match-card-team, .book-card-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.match-card-reason { font-size: 13px; color: var(--text-dim); }
.book-card-note { font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; }
.book-card-row { display: flex; align-items: center; gap: 10px; }
.book-card-row .bar-track { flex: 1; }
.book-card-pct { font-size: 12px; font-weight: 700; color: var(--accent); width: 38px; text-align: right; }

/* ---------- Video analysis journal ---------- */
.log-entry {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.log-entry-date { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-bottom: 3px; }
.log-entry-note { font-size: 13px; white-space: pre-wrap; }
.log-entry-del { float: right; background: none; border: none; color: var(--danger); cursor: pointer; font-size: 13px; }
.log-form textarea {
  width: 100%;
  min-height: 74px;
  font-family: inherit;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  margin-bottom: 8px;
}

/* ---------- Simple / pair list editors ---------- */
.edit-row-simple {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.edit-row-simple input[type="text"] {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.edit-row-pair {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
}
.edit-row-pair input[type="text"], .edit-row-pair input[type="number"], .edit-row-pair select {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.edit-row-pair .remove-btn { position: absolute; top: 8px; right: 8px; }
.edit-row-inline { display: flex; gap: 6px; }
.edit-row-inline > * { flex: 1; }

/* ---------- Daily quote ---------- */
.quote-card {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.quote-text { font-size: 14px; font-style: italic; line-height: 1.5; }
.quote-mark { font-weight: 800; color: var(--accent); }

/* ---------- Mission ring ---------- */
.mission-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  margin-bottom: 14px;
}
.ring-wrap { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-center .big { font-size: 22px; font-weight: 800; line-height: 1; }
.ring-center .small { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.hero-info { flex: 1; min-width: 0; }
.hero-phase { font-size: 17px; font-weight: 800; }
.hero-obj { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }
.hero-meta { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 7px; }

/* ---------- Stat grid ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.stat-tile-num { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.stat-tile-num.gold { color: var(--accent-2); }
.stat-tile-num.green { color: var(--accent); }
.stat-tile-label { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ---------- Consistency heatmap ---------- */
.heat-scroll { overflow-x: auto; padding-bottom: 4px; }
.heat-grid { display: flex; gap: 3px; }
.heat-col { display: flex; flex-direction: column; gap: 3px; }
.heat-cell { width: 13px; height: 13px; border-radius: 3px; background: var(--heat-0); }
.heat-cell.l1 { background: var(--heat-1); }
.heat-cell.l2 { background: var(--heat-2); }
.heat-cell.l3 { background: var(--heat-3); }
.heat-cell.l4 { background: var(--heat-4); }
.heat-cell.today { box-shadow: 0 0 0 2px var(--accent-2); }
.heat-legend { display: flex; align-items: center; gap: 5px; justify-content: flex-end; margin-top: 8px; font-size: 11px; color: var(--text-dim); }
.heat-legend .heat-cell { width: 11px; height: 11px; }

/* ---------- Trend chart ---------- */
.trend-card { padding: 16px; }
.trend-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.trend-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.trend-bar {
  width: 100%;
  max-width: 26px;
  background: linear-gradient(to top, var(--accent), var(--heat-2));
  border-radius: 5px 5px 0 0;
  min-height: 2px;
  transition: height .5s ease;
}
.trend-bar.empty { background: var(--surface-2); }
.trend-bar-label { font-size: 9.5px; color: var(--text-dim); }
.trend-bar-val { font-size: 9.5px; font-weight: 700; color: var(--text-dim); }

/* ---------- Position badge ---------- */
.pos-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--accent-2);
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 6px;
}
.player-card.match { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; }

/* ---------- Onboarding modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-emoji-ring {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent);
}
.modal-emoji-ring svg { width: 30px; height: 30px; }
.modal-title { font-size: 20px; font-weight: 800; text-align: center; }
.modal-sub { font-size: 13.5px; color: var(--text-dim); text-align: center; margin: 6px 0 18px; line-height: 1.5; }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; }
.modal-field input, .modal-field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.modal-field input[type="date"] { font-size: 14px; }

/* ---------- Mission hero with pitch background ---------- */
.mission-hero-pitch {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  margin-bottom: 14px;
  min-height: 104px;
}
.pitch-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,12,.72), rgba(6,20,12,.30) 55%, rgba(6,20,12,.55)); }
.hero-content { position: relative; display: flex; align-items: center; gap: 15px; padding: 17px 18px; color: #fff; }
.hero-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.hero-ring svg { display: block; }
.hero-ring-txt { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; }
.hero-ring-txt span { font-size: 25px; font-weight: 800; line-height: 1; }
.hero-ring-txt small { font-size: 11px; opacity: .85; margin-left: 1px; }
.hero-text { min-width: 0; }
.hero-hello { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #ffd43b; }
.hero-phase-name { font-size: 18px; font-weight: 800; margin-top: 2px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.hero-days { font-size: 12.5px; opacity: .92; margin-top: 3px; }

/* ---------- Player cards with jersey avatars ---------- */
.player-card, .match-card { display: flex; align-items: center; gap: 12px; }
.player-avatar, .match-crest { flex-shrink: 0; display: flex; align-items: center; }
.jersey, .crest { display: block; }
.player-body, .match-body { flex: 1; min-width: 0; }
.player-card-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.player-role {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 1px 6px;
}
.match-body .match-card-team { margin-bottom: 2px; }

/* ---------- Position card / map ---------- */
.pos-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 14px; }
.pos-map { flex-shrink: 0; line-height: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.pos-info-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.pos-info-name { font-size: 19px; font-weight: 800; margin: 2px 0 5px; }
.pos-info-note { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.pos-picker { display: flex; align-items: center; gap: 14px; }
.pos-picker-map { flex-shrink: 0; line-height: 0; }
.pos-picker select { flex: 1; }

/* ---------- Onboarding pitch header ---------- */
.modal-pitch { position: relative; height: 84px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.modal-pitch .pitch-bg { position: absolute; inset: 0; }
.modal-pitch-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,12,.15), rgba(6,20,12,.5)); }
.modal-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0a7d43;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.modal-badge svg { width: 30px; height: 30px; }

/* ---------- Animations & polish ---------- */
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.checkbox.checked svg { animation: pop .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main#content > * { animation: fadeUp .25s ease; }
.block { transition: opacity .2s, box-shadow .2s; }
.stat-tile, .player-card, .match-card, .book-card { transition: transform .12s ease; }

::-webkit-scrollbar { width: 0; height: 0; }
.heat-scroll::-webkit-scrollbar { height: 6px; }
.heat-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
