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

[hidden] { display: none !important; }

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px var(--pad-page) 4px;
}

.app-header .logo { width: 24px; height: 24px; display: block; }
.app-header .wordmark { font-size: 16px; font-weight: 600; }

.gw-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--on-volt);
  background: var(--brand-volt);
  border-radius: 999px;
  padding: 3px 10px;
}

.deadline {
  padding: 0 var(--pad-page) 2px;
  font-size: 12px;
  color: var(--text-secondary);
}

.updated {
  padding: 0 var(--pad-page) 16px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.record-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 var(--pad-page) 18px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-soft);
}

.record-strip a {
  margin-left: auto;
  color: var(--accent-link);
  text-decoration: none;
}

.section-title {
  padding: 0 var(--pad-page) 10px;
  font-size: 13px;
  font-weight: 600;
}

main { flex: 1; padding-bottom: 70px; }

.player-list { padding: 0 var(--pad-page); list-style: none; }

.player-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

a.player-row { text-decoration: none; color: inherit; }

.player-row:last-child { border-bottom: none; }

.player-row .name { font-size: 15px; font-weight: 600; }
.player-row .meta { margin-top: 2px; font-size: 12px; color: var(--text-secondary); }

.player-row .right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.tag--strong { color: var(--tag-strong); }
.tag--good { color: var(--tag-good); }
.tag--hold { color: var(--tag-hold); }
.tag--avoid { color: var(--tag-avoid); }

.fixture-chips { display: inline-flex; gap: 4px; }

.chip {
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-chip);
  padding: 2px 7px;
}

.chip--easy { color: var(--on-fdr-easy); background: var(--fdr-easy); }
.chip--medium { color: var(--on-fdr-medium); background: var(--fdr-medium); }
.chip--hard { color: var(--on-fdr-hard); background: var(--fdr-hard); }

.chip--away { background: transparent; border: 1.5px solid; padding-top: 0.5px; padding-bottom: 0.5px; }
.chip--away.chip--easy { color: var(--fdr-easy-line); border-color: var(--fdr-easy-line); }
.chip--away.chip--medium { color: var(--fdr-medium-line); border-color: var(--fdr-medium-line); }
.chip--away.chip--hard { color: var(--fdr-hard-line); border-color: var(--fdr-hard-line); }

.app-header--sub { padding-bottom: 10px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  padding: 4px var(--pad-page) 14px;
}

.detail-head .tag { margin-left: auto; margin-top: 5px; }

.detail-name { font-size: 20px; font-weight: 600; margin-bottom: 3px; }

.metric-row {
  display: flex;
  margin: 0 var(--pad-page) 14px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
}

.metric { flex: 1; text-align: center; border-left: 1px solid var(--hairline); }
.metric:first-child { border-left: none; }
.metric-value { font-size: 16px; font-weight: 600; }
.metric-label { margin-top: 2px; font-size: 11px; color: var(--text-secondary); }

.detail-section {
  margin: 0 var(--pad-page) 14px;
  padding-top: 2px;
}

.detail-heading { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.detail-text { font-size: 12px; color: var(--text-soft); line-height: 1.6; }

.detail-fixture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}

.detail-fixture:last-child { border-bottom: none; }

.ticker { padding: 0 var(--pad-page); }

.ticker-row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}

.ticker-row--head { padding: 0 0 6px; }
.ticker-row--head .ticker-gw {
  width: 44px;
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
}

.ticker-team { width: 48px; font-size: 13px; font-weight: 600; }

.ticker-chips {
  flex: 1;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.ticker-chips .chip {
  width: 44px;
  text-align: center;
  padding: 3px 0;
}

.chip--blank { color: var(--text-tertiary); background: transparent; }

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 var(--pad-page);
  padding: 10px 0;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-note { margin-left: auto; }

.dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.dot--easy { background: var(--fdr-easy); }
.dot--medium { background: var(--fdr-medium); }
.dot--hard { background: var(--fdr-hard); }

.toolbar { padding: 0 var(--pad-page) 12px; display: flex; flex-direction: column; gap: 10px; }

.search {
  width: 100%;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
}

.search:focus { border-color: var(--text-tertiary); }
.search::placeholder { color: var(--text-tertiary); }

.filter-tabs { display: flex; gap: 6px; }

.filter-tabs button {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}

.filter-tabs button.active {
  color: var(--on-volt);
  background: var(--brand-volt);
  border-color: var(--brand-volt);
}

.list-footer {
  padding: 12px var(--pad-page);
  font-size: 12px;
  color: var(--text-tertiary);
}

.team-id-row { display: flex; gap: 8px; }
.team-id-row .search { flex: 1; }

.connect-btn {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--on-volt);
  background: var(--brand-volt);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
}

.hint { font-size: 11px; color: var(--text-tertiary); }
.hint strong { color: var(--text-secondary); }

.summary-strip {
  margin: 0 var(--pad-page) 6px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.summary-item svg { color: var(--brand-volt); flex-shrink: 0; }
.summary-item--warn svg { color: var(--tag-avoid); }

.warning-list {
  margin: 0 var(--pad-page) 8px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  list-style: disc;
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: 2px;
}

.badge--cap {
  color: var(--on-volt);
  background: var(--brand-volt);
  border-color: var(--brand-volt);
}

.badge--suggest { color: var(--accent-link); border-color: var(--accent-link); }

.record-gw {
  margin: 0 var(--pad-page) 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.record-gw-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.record-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.record-bar-label { width: 48px; font-size: 11px; color: var(--text-secondary); }

.record-bar-track { flex: 1; height: 10px; }

.record-bar { display: block; height: 100%; border-radius: 3px; }
.record-bar--strong { background: var(--brand-volt); }
.record-bar--played { background: var(--surface-raised); }

.record-bar-value { width: 34px; text-align: right; font-size: 12px; font-weight: 600; }

.card {
  background: var(--card-grad);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin: 0 var(--pad-page) 18px;
  overflow: hidden;
}

.card--pad { padding: 14px 16px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--pad-page) 10px;
}

.section-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-link);
  margin-bottom: 2px;
}

.section-head h2 { font-size: 17px; font-weight: 700; }
.section-head .aside { font-size: 12px; color: var(--text-secondary); }

.hero {
  background: var(--hero-grad);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  margin: 4px var(--pad-page) 22px;
  padding: 18px 18px 16px;
}

.hero-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-link);
}

.hero-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 2px 0 10px; }

.countdown { display: flex; gap: 8px; margin-bottom: 10px; }

.count-cell {
  min-width: 52px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 7px 8px 6px;
}

.count-num { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.count-lab { display: block; font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }

.hero-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
  font-size: 12px;
  color: var(--text-soft);
}

.hero-foot a { margin-left: auto; color: var(--accent-link); text-decoration: none; font-weight: 600; }
.hero-updated { font-size: 11px; color: var(--text-tertiary); margin-top: 8px; }

.pitch {
  position: relative;
  background: var(--pitch-grad);
  border-radius: 16px;
  margin: 0 var(--pad-page) 8px;
  padding: 26px 6px 18px;
  overflow: hidden;
}

.pitch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 1.5px solid var(--pitch-line);
  border-radius: 50%;
  pointer-events: none;
}

.pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 150px;
  height: 46px;
  border: 1.5px solid var(--pitch-line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
}

.pitch-row {
  display: flex;
  justify-content: space-evenly;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.pitch-row:last-child { margin-bottom: 0; }

.pitch-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 62px;
  text-decoration: none;
  position: relative;
}

.pitch-shirt {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0D0D0D;
  border: 2px solid var(--tag-hold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.pitch-shirt--strong { border-color: var(--brand-volt); }
.pitch-shirt--good { border-color: #4ADE80; }
.pitch-shirt--avoid { border-color: #F87171; }

.pitch-cap {
  position: absolute;
  top: -5px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-volt);
  color: #0D0D0D;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-name {
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--chip-on-pitch);
  border-radius: 5px;
  padding: 2px 6px;
}

.pitch-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-volt);
  background: var(--chip-on-pitch);
  border-radius: 5px;
  padding: 1px 6px;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
}

.news-item:last-child { border-bottom: none; }

.news-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.news-icon--injury { background: rgba(248, 113, 113, 0.14); color: #F87171; }
.news-icon--suspension { background: rgba(250, 204, 21, 0.14); color: #FACC15; }
.news-icon--availability { background: rgba(163, 163, 163, 0.14); color: var(--text-secondary); }
.news-icon--editorial { background: rgba(235, 255, 0, 0.12); color: var(--accent-link); }

.news-title { font-size: 13.5px; font-weight: 600; }
.news-title .team { color: var(--text-tertiary); font-weight: 600; }
.news-text { font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin-top: 2px; }
.news-date { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

.ticker-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ticker-grid-row {
  display: grid;
  align-items: center;
  width: max-content;
  min-width: 100%;
  border-bottom: 1px solid var(--card-border);
}

.ticker-grid-row:last-child { border-bottom: none; }

.ticker-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  align-self: stretch;
  background: var(--surface);
  padding: 8px 8px 8px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 8px 0 12px -10px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.ticker-head-cell {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 8px 0;
}

.ticker-cell { padding: 6px 3px; text-align: center; }

.ticker-cell .chip {
  display: block;
  padding: 4px 0;
  font-size: 10.5px;
}

.control-row { display: flex; gap: 8px; }

.select {
  flex: 1;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 9px 10px;
  outline: none;
  appearance: none;
}

.bottom-nav a.active svg { filter: drop-shadow(0 0 6px rgba(235, 255, 0, 0.45)); }

/* ---- v2 visual language: display type, imagery, image-led hero ---- */

.wordmark,
.hero-title,
.section-head h2,
.detail-name,
.metric-value,
.gw-pill,
.count-num {
  font-family: var(--font-display);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--card-border);
  cursor: pointer;
  margin-left: 10px;
  flex-shrink: 0;
}

.card { border-radius: 20px; }
.section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }

.hero {
  position: relative;
  border-radius: var(--radius-hero);
  min-height: 196px;
  padding: 20px 18px 16px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 172px;
  height: 178px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 62%; }

.hero-title { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; margin: 2px 0 6px; white-space: nowrap; }

.hero-deadline { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.hero-deadline strong { color: var(--text); font-family: var(--font-display); font-size: 15px; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-volt);
  color: var(--on-volt);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
}

.record-strip a { font-weight: 600; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-raised);
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.player-row .avatar { margin-right: 12px; }

.pitch-shirt { overflow: hidden; }
.pitch-shirt img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}
.pitch-cap { z-index: 2; }

.news-avatar {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-top: 2px;
  background: var(--surface-raised);
}
.news-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }
.news-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.news-avatar--injury::after { background: #F87171; }
.news-avatar--suspension::after { background: #FACC15; }
.news-avatar--availability::after { background: #A3A3A3; }

.badge-img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.ticker-sticky { display: flex; align-items: center; gap: 7px; }

.detail-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--surface-raised);
  object-fit: cover;
  object-position: top;
  margin-right: 14px;
  border: 2px solid var(--card-border);
}

/* ---- v3 pitch: full markings + FPL-style player cards ---- */

.pitch {
  position: relative;
  padding: 26px 10px 18px;
  border-radius: 20px;
}

.pitch::before,
.pitch::after { content: none; }

.pitch-lines {
  position: absolute;
  inset: 14px 10px 12px;
  border: 1.5px solid var(--pitch-line);
  border-radius: 4px;
  pointer-events: none;
}

.pitch-lines span { position: absolute; border: 1.5px solid var(--pitch-line); }

.pl-goal {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 21%;
  height: 8px;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

.pl-box {
  top: -1.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  height: 62px;
  border-top: none;
}

.pl-six {
  top: -1.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 24px;
  border-top: none;
}

.pl-arc {
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 30px;
  border-top: none;
  border-radius: 0 0 84px 84px / 0 0 34px 34px;
}

.pl-half {
  top: 58%;
  left: -1.5px;
  right: -1.5px;
  height: 0;
  border-width: 1.5px 0 0 0;
}

.pl-circle {
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
}

.pl-spot {
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pitch-line);
  border: none;
}

.pitch-rows {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}

.pitch-row { margin-bottom: 0; }

.pitch-card {
  display: flex;
  flex-direction: column;
  width: 72px;
  text-decoration: none;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  position: relative;
}

.pitch-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  background: linear-gradient(180deg, rgba(6, 26, 13, 0.35), rgba(6, 26, 13, 0.55));
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 2.5px solid var(--tag-hold);
}

.pitch-photo--strong { border-bottom-color: var(--brand-volt); }
.pitch-photo--good { border-bottom-color: #4ADE80; }
.pitch-photo--avoid { border-bottom-color: #F87171; }

.pitch-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.pitch-card-name {
  background: #101010;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  padding: 4px 4px 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-card-sub {
  background: var(--brand-volt);
  color: var(--on-volt);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 2.5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitch-card .pitch-cap {
  top: 3px;
  right: auto;
  left: 3px;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ---- player detail: match rows, set pieces ---- */

.match-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
}

.match-row:last-child { border-bottom: none; }

.match-gw { width: 44px; color: var(--text-secondary); font-weight: 600; flex-shrink: 0; }
.match-opp { width: 74px; font-weight: 600; flex-shrink: 0; }

.match-min {
  position: relative;
  flex: 1;
  height: 14px;
  background: var(--surface-raised);
  border-radius: 4px;
  overflow: hidden;
}

.match-min-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--fdr-easy);
  border-radius: 4px;
}

.match-min-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.match-pts {
  width: 52px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

.match-pts--big { color: var(--accent-link); }

.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.sp-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 5px 12px;
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  margin-top: 4px;
}

.spark-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}

.spark-bar {
  width: 100%;
  background: var(--surface-raised);
  border-radius: 3px;
}

.spark-bar--good { background: var(--fdr-easy); }
.spark-bar--hot { background: var(--brand-volt); }

.spark-num { font-size: 9.5px; font-weight: 700; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.spark-range { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

.trend-arrow { font-size: 11px; font-weight: 700; }
.trend-arrow--up { color: #4ADE80; }
.trend-arrow--down { color: #F87171; }

/* ---- player profile tabs ---- */

.seg {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px;
  margin: 2px var(--pad-page) 16px;
}

.seg button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.seg button.active {
  background: var(--brand-volt);
  color: var(--on-volt);
  font-weight: 700;
}

.tab-panel { display: none; }

.tab-panel.active {
  display: block;
  animation: tab-in 0.22s ease;
}

@keyframes tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- team filter grid ---- */

.team-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.team-trigger .badge-img { width: 20px; height: 20px; }
.team-trigger span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  animation: backdrop-in 0.2s ease;
}

.sheet-backdrop[hidden] { display: none; }

@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: 100%;
  max-height: 78vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--card-border);
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes sheet-up {
  from { transform: translateY(40%); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-raised);
  margin: 4px auto 10px;
}

.sheet-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.sheet-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.team-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 4px 8px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.team-cell img { width: 30px; height: 30px; object-fit: contain; }

.team-cell .team-cell-all {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.team-cell span { font-size: 11px; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.04em; }

.team-cell.active {
  border-color: var(--brand-volt);
  background: var(--surface-raised);
}

.team-cell.active span { color: var(--accent-link); }

/* ---- captain picks + differentials + transfer ideas ---- */

.cap-row { display: flex; gap: 10px; padding: 0 var(--pad-page) 18px; }

.cap-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--card-grad);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 8px 12px;
  text-decoration: none;
  position: relative;
}

.cap-card--top { border: 2px solid var(--brand-volt); }

.cap-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-card--top .cap-rank { background: var(--brand-volt); color: var(--on-volt); }

.cap-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: var(--surface-raised);
}

.cap-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cap-meta { font-size: 10.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }

.diff-chip {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-link);
  border: 1px solid var(--accent-link);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: 1px;
}

.transfer-block {
  margin: 0 var(--pad-page) 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.transfer-out { font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.transfer-out .out-name { color: var(--tag-avoid); }

.transfer-ins { display: flex; flex-wrap: wrap; gap: 6px; }

.transfer-ins a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-raised);
  border-radius: 999px;
  padding: 4px 11px;
  text-decoration: none;
}

.transfer-ins a strong { color: var(--accent-link); font-weight: 700; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
  padding: 10px 8px calc(12px + env(safe-area-inset-bottom));
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-tertiary);
  text-decoration: none;
}

.bottom-nav a.active { color: var(--accent-link); }
.bottom-nav svg { width: 20px; height: 20px; }

/* ---- fixture swing radar ---- */

.swing-card { padding: 4px 16px; }

.swing-block { padding: 10px 0 12px; border-bottom: 1px solid var(--hairline); }
.swing-block:last-child { border-bottom: none; }

.swing-title { font-size: 13.5px; font-weight: 700; }
.swing-hint { font-size: 11.5px; color: var(--text-secondary); margin: 2px 0 8px; line-height: 1.5; }

.swing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--hairline);
}

.swing-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 74px;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.swing-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.swing-delta b { font-weight: 700; }
.swing-num--easy { color: var(--fdr-easy-line); }
.swing-num--hard { color: var(--fdr-hard-line); }

.swing-chips {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.swing-chips .chip { font-size: 9.5px; padding: 2px 4px; }

.swing-sep {
  width: 1px;
  height: 14px;
  background: var(--hairline);
  margin: 0 3px;
}

/* ---- compare screen ---- */

.cmp-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 var(--pad-page) 14px;
}

.cmp-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 96px;
  justify-content: center;
  background: var(--card-grad);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 6px;
}

.cmp-slot--add {
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  border-style: dashed;
  background: transparent;
}

.cmp-slot--empty { border-style: dashed; opacity: 0.35; background: transparent; }

.cmp-slot-plus {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-link);
  line-height: 1;
}

.cmp-slot-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: var(--surface-raised);
}

.cmp-slot-name {
  font-size: 12px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmp-slot-meta { font-size: 10.5px; color: var(--text-secondary); }

.cmp-slot-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--surface-raised);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cmp-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.cmp-cell {
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 2px 2px;
  border-radius: 8px;
  min-width: 0;
}

.cmp-cell--best { color: var(--accent-link); background: color-mix(in srgb, var(--brand-volt) 9%, transparent); }

.cmp-label {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-tertiary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2px;
}

.cmp-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-sans);
}

.cmp-head-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: var(--surface-raised);
}

.cmp-head-name { font-size: 12.5px; font-weight: 700; }

.cmp-spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 30px;
  width: 100%;
  max-width: 90px;
}

.cmp-spark .spark-bar { flex: 1; display: inline-block; }

.cmp-fx {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}

.cmp-fx .chip { font-size: 9px; padding: 2px 4px; }

/* ---- set-piece matrix ---- */

.sp-team { padding: 12px 16px 6px; }

.sp-team-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.sp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}

.sp-row:last-child { border-bottom: none; }

.sp-cat {
  width: 72px;
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sp-takers { display: flex; flex-wrap: wrap; gap: 5px; }

.sp-chip--link { text-decoration: none; color: var(--text-soft); display: inline-flex; align-items: center; gap: 5px; }

.sp-chip b {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.sp-chip--first { border-color: var(--accent-link); color: var(--text); }
.sp-chip--first b { color: var(--accent-link); }

.sp-none { font-size: 12px; color: var(--text-tertiary); }

/* ---- live gameweek tracker ---- */

.live-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 var(--pad-page) 14px;
  padding: 14px 16px;
  background: var(--hero-grad);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.live-total {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.live-total small { font-size: 15px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }

.live-sub { font-size: 12px; color: var(--text-secondary); margin-top: 5px; }

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-volt);
  box-shadow: 0 0 0 0 rgba(235, 255, 0, 0.5);
  animation: live-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

.live-dot--done { background: var(--text-tertiary); animation: none; box-shadow: none; }

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(235, 255, 0, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(235, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(235, 255, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.live-pts {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.live-pts small { font-size: 11px; font-weight: 600; color: var(--text-tertiary); }
.live-pts--big { color: var(--accent-link); }

/* ---- squad report card ---- */

.grade-card { padding: 14px 16px; margin-top: 4px; }

.grade-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 10px;
}

.grade-team { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.grade-verdict { font-size: 12px; color: var(--text-secondary); margin-top: 3px; line-height: 1.5; }

.grade-letter {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-link);
  flex-shrink: 0;
}

.grade-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.grade-label { width: 132px; flex-shrink: 0; font-size: 11.5px; color: var(--text-secondary); }

.grade-track {
  flex: 1;
  height: 9px;
  background: var(--surface-raised);
  border-radius: 3px;
  overflow: hidden;
}

.grade-track i { display: block; height: 100%; background: var(--brand-volt); border-radius: 3px; }

.grade-value {
  width: 30px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
}

.grade-share { width: 100%; margin-top: 12px; padding: 11px 0; }

/* ---- dream XV ---- */

.dream-budget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dream-budget-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }

.dream-budget input[type="range"] {
  flex: 1;
  accent-color: var(--brand-volt);
}

.dream-budget-value {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  width: 64px;
  text-align: right;
  flex-shrink: 0;
}

.dream-pref-title { font-size: 12.5px; font-weight: 600; margin-bottom: 7px; }
.dream-pref-title .hint { font-weight: 500; }

.dream-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.dream-chip { display: inline-flex; align-items: center; gap: 6px; }

.dream-chip button {
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.dream-chip--add {
  cursor: pointer;
  color: var(--accent-link);
  border-style: dashed;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 600;
}

.team-grid--mini { grid-template-columns: repeat(4, 1fr); }
.team-grid--mini .team-cell { padding: 7px 2px 6px; border-radius: 10px; }
.team-grid--mini .team-cell img { width: 22px; height: 22px; }
.team-grid--mini .team-cell span { font-size: 9.5px; }

.team-cell--ban { border-color: var(--tag-avoid); opacity: 0.75; }
.team-cell--ban span { color: var(--tag-avoid); }

/* ---- home toolbox ---- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 var(--pad-page) 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--card-grad);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 13px 14px 12px;
  text-decoration: none;
  color: inherit;
}

.tool-card svg { color: var(--accent-link); margin-bottom: 5px; }
.tool-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; }
.tool-sub { font-size: 11px; color: var(--text-secondary); }

/* App-like feel: no pinch/double-tap zoom (viewport meta blocks the rest). */
html { touch-action: manipulation; }

/* ---- chip windows ---- */

.chipw-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
}

.chipw-gw {
  font-family: var(--font-display);
  font-weight: 700;
  width: 44px;
  flex-shrink: 0;
}

.chipw-stars { color: var(--accent-link); font-size: 11px; letter-spacing: 1px; flex-shrink: 0; width: 24px; }

.chipw-reason { color: var(--text-secondary); }

.chipw-count {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--on-volt);
  background: var(--brand-volt);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: 2px;
  margin-left: 4px;
}

.chipw-empty { font-size: 11.5px; color: var(--text-tertiary); padding: 4px 0 2px; line-height: 1.5; }

.chipw-note { font-size: 10.5px; color: var(--text-tertiary); padding: 10px 0 4px; line-height: 1.5; }

/* ---- Skipper Pro ---- */

.pro-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--on-volt);
  background: var(--brand-volt);
  border-radius: 5px;
  padding: 2px 7px;
  vertical-align: 2px;
}

.pro-lock { padding: 16px; }

.pro-lock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pro-lock-text { font-size: 12.5px; color: var(--text-soft); line-height: 1.6; margin-bottom: 8px; }

.pro-lock-list {
  list-style: none;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pro-lock-list li { padding-left: 18px; position: relative; }
.pro-lock-list li::before { content: "★"; position: absolute; left: 0; color: var(--accent-link); font-size: 10px; top: 3px; }

/* ---- light-theme legibility: glow + volt lines route through theme tokens.
   Raw volt stays only on filled chips with dark text; anything thin or
   glowing follows --accent-link / --tag-strong / --icon-glow instead. ---- */

.bottom-nav a.active svg { filter: drop-shadow(0 0 7px var(--icon-glow)) drop-shadow(0 0 2px var(--icon-glow)); }

.summary-item svg { color: var(--accent-link); }

.cap-card--top { border-color: var(--accent-link); }
.cap-card--top .cap-rank { background: var(--brand-volt); color: var(--on-volt); }

.record-bar--strong { background: var(--tag-strong); }
.grade-track i { background: var(--tag-strong); }
.spark-bar--hot { background: var(--tag-strong); }

.dream-budget input[type="range"] { accent-color: var(--accent-link); }

.live-dot { background: var(--accent-link); }

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 var(--icon-glow); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Active-nav effect per theme: soft volt glow in dark, crisp offset volt
   drop shadow (no blur) in light. */
.bottom-nav a.active svg { filter: var(--nav-glow); }

/* ---- content icons match the footer icon language: neutral gray outline.
   Color stays reserved for state (active nav, warnings, ratings). ---- */

.tool-card svg { color: var(--accent-link); filter: var(--nav-glow); }
.summary-item svg { color: var(--accent-link); filter: var(--nav-glow); }
.summary-item--warn svg { color: var(--tag-avoid); filter: none; }
.record-strip > svg { color: var(--accent-link); filter: var(--nav-glow); }

/* ---- splash: pure minimalism, one crafted move. The volt S — large,
   alone on flat black — strokes itself on, fills, settles. Once per
   session, ~1.5s, tap to skip. ---- */

.splash { display: none; }

html[data-splash="1"] .splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-mark {
  width: 140px;
  height: 140px;
  transform: scale(1.06);
  animation: splash-settle 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s forwards;
}

.splash-mark-path {
  fill: rgba(235, 255, 0, 0);
  stroke: #EBFF00;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    splash-draw 0.55s cubic-bezier(0.55, 0, 0.3, 1) 0.08s forwards,
    splash-fill 0.28s ease 0.62s forwards;
}

@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-fill { to { fill: rgba(235, 255, 0, 1); } }
@keyframes splash-settle { to { transform: scale(1); } }

/* exit: the mark recedes as the curtain fades — no drama, just gone */
html[data-splash="1"] .splash--out {
  transition: opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
}

.splash--out .splash-mark {
  animation: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.6, 1);
  transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
  .splash-mark, .splash-mark-path { animation: none; }
  .splash-mark { transform: none; }
  .splash-mark-path { stroke-dashoffset: 0; fill: rgba(235, 255, 0, 1); }
  .splash--out .splash-mark { transition: none; transform: none; }
}

/* ---- notification opt-in card ---- */

.notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
}

.notify-row:first-of-type { margin-top: 10px; }

.notify-text {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.notify-sub {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-tertiary);
}

/* brand switch: volt track + near-black knob when on */
.switch { position: relative; width: 42px; height: 25px; flex-shrink: 0; }

.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }

.switch i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--surface-raised);
  border: 1px solid var(--card-border);
  transition: background 0.18s ease, border-color 0.18s ease;
  pointer-events: none;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--text-tertiary);
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch input:checked + i { background: var(--brand-volt); border-color: var(--brand-volt); }
.switch input:checked + i::after { transform: translateX(17px); background: #0D0D0D; }

.notify-off {
  margin-top: 14px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 7px 14px;
}

/* ---- Pro Coach (My team) ---- */

.cap-plan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.cap-plan-num {
  width: 20px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-align: center;
}

.cap-plan-main { flex: 1; min-width: 0; }
.cap-plan-main .name { display: flex; align-items: center; gap: 8px; }
.cap-plan-main .meta { margin-top: 2px; }

.cap-plan-fx { display: flex; gap: 4px; flex-shrink: 0; }

.coach-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  padding: 10px 0 4px;
  line-height: 1.5;
}

.coach-fx {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.coach-chip-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  padding-top: 12px;
}

/* ---- boosters (My team) ---- */

.booster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.booster-cell {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
}

.booster-cell--used { opacity: 0.55; }

.booster-name {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.booster-state {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.booster-state--hand { color: var(--accent-link); }
.booster-state--active {
  color: #0D0D0D;
  background: var(--brand-volt);
  display: inline-block;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
}

.coach-used {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 4px;
}

/* team-code fallback behind pitch portraits (hidden while a photo shows) */
.pitch-photo-label { position: relative; z-index: 0; }

/* ---- team-ID helper (My team) ---- */

.id-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-link);
  list-style: none;
}
.id-help summary::-webkit-details-marker { display: none; }
.id-help summary::after { content: " ▾"; font-size: 9px; }
.id-help[open] summary::after { content: " ▴"; }
.id-help p { margin-top: 6px; line-height: 1.5; }

/* ---- home footer + first-run nudge + legal page ---- */

.app-foot {
  padding: 6px var(--pad-page) 10px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.app-foot a { color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.app-foot p + p { margin-top: 4px; }

.nudge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.nudge-row svg { flex-shrink: 0; color: var(--accent-link); filter: var(--nav-glow); }

.legal .detail-heading { margin-top: 16px; }
.legal .detail-heading:first-child { margin-top: 0; }
.legal .detail-text { margin-top: 4px; }

/* ---- Pro purchase ---- */

.pro-buy {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 14px;
  padding: 11px 0;
}

.claim-code {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-link);
  user-select: all;
}
