/* FOOTYUP · third style sheet — Player profile, Contact, 404, mobile audit */

/* ════════════════════════════════════════════════════════════
   PLAYER PROFILE
   ════════════════════════════════════════════════════════════ */
.pp-hero {
  position: relative;
  padding: 48px var(--pad-x) 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--bone-faint);
}
.pp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 100% at 80% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(50% 70% at 10% 80%, rgba(124,108,255,0.06), transparent 70%);
  pointer-events: none;
}
.pp-watermark {
  position: absolute;
  top: 4%; right: -2%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(220px, 38vw, 540px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone-faint);
  pointer-events: none;
  user-select: none;
}

.pp-hero .back-btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 0;
  color: var(--bone-dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin-bottom: 40px;
}
.pp-hero .back-btn:hover { color: var(--accent); }

/* slim variant — just the back link; identity now lives in the FIFA card */
.pp-hero--bar { padding: 24px var(--pad-x) 0; border-bottom: 0; overflow: visible; }
.pp-hero--bar::before { display: none; }
.pp-hero--bar .back-btn { margin-bottom: 0; }

.pp-id-row {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: flex-end;
}

.pp-portrait {
  position: relative;
  width: 240px; height: 320px;
  display: grid; place-items: center;
  overflow: hidden;
}
.pp-portrait .ini {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 144px;
  letter-spacing: -0.05em;
  color: rgba(8,8,10,0.7);
  text-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.pp-portrait .frame {
  position: absolute;
  inset: -12px;
  border: 1px solid var(--bone);
  pointer-events: none;
}

.pp-id-text { display: flex; flex-direction: column; gap: 20px; }
.pp-eyebrow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.pp-flag { font-size: 18px; line-height: 1; margin-left: 4px; }

.pp-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(64px, 9vw, 160px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.pp-name .last {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-weight: 800;
}
.pp-name .dot { color: var(--bone); font-style: normal; }

.pp-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.pp-section {
  padding: 64px var(--pad-x);
  border-bottom: 1px solid var(--bone-faint);
}
.pp-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.pp-section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.pp-section-head h2 .italic { font-style: italic; color: var(--accent); font-weight: 800; }
.anchor-pp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* form chart wider */
.pp-form-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 200px;
  padding-bottom: 32px;
  position: relative;
}
.pp-form-chart i {
  flex: 1;
  background: var(--bone-faint);
  position: relative;
  display: block;
  min-width: 4px;
  transition: background 0.15s;
}
.pp-form-chart i b {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono';
  font-size: 9px;
  font-weight: 600;
  color: var(--bone-dim);
}
.pp-form-chart i.h { background: var(--accent); }
.pp-form-chart i:hover { background: var(--bone); }
.pp-form-chart i.h:hover { background: color-mix(in srgb, var(--accent) 80%, white); }
.pp-form-legend {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════════════════════ */
.contact-hero {
  padding: 80px var(--pad-x) 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--bone-faint);
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(64px, 9vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.contact-hero h1 .italic { font-style: italic; color: var(--accent); font-weight: 800; }
.contact-hero .lede {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--bone-dim);
  max-width: 440px;
  padding-bottom: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--bone-faint);
  border-left: 1px solid var(--bone-faint);
}
.contact-card {
  padding: 36px 28px;
  border-right: 1px solid var(--bone-faint);
  border-bottom: 1px solid var(--bone-faint);
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 260px;
  text-decoration: none;
  color: var(--bone);
  background: transparent;
  transition: background 0.2s;
  position: relative;
}
.contact-card:hover { background: rgba(244,241,235,0.04); }
.contact-card .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--accent);
}
.contact-card .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.contact-card .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-transform: uppercase;
  margin-top: auto;
}
.contact-card .value small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone-dim);
  margin-top: 6px;
  line-height: 1.5;
}
.contact-card .arrow {
  position: absolute;
  right: 24px; bottom: 24px;
  width: 36px; height: 36px;
  border: 1px solid var(--bone-faint);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--bone-dim);
  transition: transform 0.25s, color 0.2s, border-color 0.2s;
}
.contact-card:hover .arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(-45deg);
}

/* "wide" contact card (address with map) */
.contact-grid .contact-card.wide {
  grid-column: span 2;
}
.contact-card .map-mock {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, var(--bone-faint) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--bone-faint) 0 1px, transparent 1px 32px);
  opacity: 0.6;
  pointer-events: none;
}
.contact-card .map-pin {
  position: absolute;
  z-index: 1;
  right: 80px; top: 50%;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.contact-card .map-pin .dot {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--ink), 0 0 12px var(--accent);
}
.contact-card .map-pin .ring {
  position: absolute;
  inset: -10px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  animation: nmSpin 14s linear infinite;
  width: 32px; height: 32px;
  left: -10px; top: -10px;
}

.contact-card.wide > * { position: relative; z-index: 2; }

.contact-legal {
  padding: 32px var(--pad-x);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.contact-legal b { color: var(--bone); font-weight: 800; }

/* ════════════════════════════════════════════════════════════
   404
   ════════════════════════════════════════════════════════════ */
.nf-page {
  min-height: calc(100vh - 73px);
  padding: 64px var(--pad-x);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.nf-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  pointer-events: none;
}
.nf-stage {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.nf-watermark {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(160px, 26vw, 420px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone-faint);
  user-select: none;
}
.nf-page h1 {
  margin-top: -24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  max-width: 720px;
}
.nf-page h1 .italic { font-style: italic; color: var(--accent); font-weight: 800; }
.nf-page p {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--bone-dim);
  max-width: 480px;
  line-height: 1.55;
}
.nf-page .ctas {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* pitch with 404 ball */
.nf-pitch {
  position: absolute;
  right: 8%; top: 50%;
  transform: translateY(-50%);
  width: 380px; height: 240px;
  border: 1px solid var(--bone-faint);
  z-index: 1;
  opacity: 0.85;
}
.nf-pitch::before,
.nf-pitch::after {
  content: '';
  position: absolute;
  border: 1px solid var(--bone-faint);
}
.nf-pitch::before {
  /* left penalty box */
  top: 18%; left: 0;
  width: 80px; height: 64%;
  border-left: 0;
}
.nf-pitch::after {
  /* right penalty box */
  top: 18%; right: 0;
  width: 80px; height: 64%;
  border-right: 0;
}
.nf-pitch .center-line {
  position: absolute; left: 50%; top: 0; bottom: 0;
  border-left: 1px solid var(--bone-faint);
}
.nf-pitch .center-circle {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border: 1px solid var(--bone-faint);
  border-radius: 50%;
}
.nf-pitch .ball {
  position: absolute;
  left: 30%; top: 35%;
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--accent-text);
  animation: nfBallRoll 6s ease-in-out infinite;
  box-shadow: 0 0 24px var(--accent);
}
@keyframes nfBallRoll {
  0%   { left: 30%; top: 35%; }
  25%  { left: 60%; top: 60%; }
  50%  { left: 80%; top: 30%; }
  75%  { left: 40%; top: 55%; }
  100% { left: 30%; top: 35%; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE-PASS — additional responsive fixes for all new pages
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .pp-id-row { grid-template-columns: 1fr; gap: 32px; }
  .pp-portrait { width: 180px; height: 240px; }
  .pp-portrait .ini { font-size: 96px; }
  .contact-hero { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid .contact-card.wide { grid-column: span 2; }
  .nf-pitch { display: none; }
}

@media (max-width: 900px) {
  /* generic narrower controls */
  .pp-section { padding: 48px var(--pad-x); }
  .pp-form-chart { height: 140px; }
  .pp-form-chart i b { font-size: 8px; bottom: -18px; }

  /* table — let it scroll on narrow */
  .players-table-wrap,
  .match-section,
  .pp-section {
    overflow-x: auto;
  }
  .players-table,
  .stats-table,
  .match-standings-table {
    min-width: 720px;
  }

  /* sched controls — tidy stacking */
  .sched-controls { gap: 8px; }
  .sched-controls > * { flex-shrink: 0; }

  /* standings toolbar */
  .standings-toolbar { gap: 8px; flex-wrap: wrap; }
  .search-input { width: 100%; }
}

@media (max-width: 700px) {
  .pp-name { font-size: clamp(56px, 14vw, 96px); }
  .pp-watermark { font-size: clamp(180px, 50vw, 360px); }
  .pp-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* match detail watermark scale */
  .match-watermark { font-size: clamp(120px, 30vw, 220px); right: -4%; }
  .match-title { font-size: clamp(40px, 10vw, 72px); }
  .match-subline { gap: 12px; font-size: 11px; letter-spacing: 0.14em; }
  .match-subline .share-btn { margin-left: 0; }

  /* report row → vertical stack */
  .report-row { grid-template-columns: 1fr; }
  .report-row .left { padding: 20px 24px 0; border-right: 0; }
  .report-row .center { padding: 16px 24px; }
  .report-row .right { padding: 16px 24px 20px; border-left: 0; }
  .nominees { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .nominee-mini { flex-basis: auto; border-left: 1px solid var(--bone-faint); border-top: 1px solid var(--bone-faint); }

  /* contact grid → 1 col */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .contact-card.wide { grid-column: span 1; }

  /* nf page — left align */
  .nf-watermark { font-size: clamp(120px, 32vw, 220px); margin-top: 40px; }

  /* sched-controls compact buttons */
  .sched-controls .group button {
    padding: 7px 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .sched-controls .week-strip .month {
    font-size: 11px;
    padding-right: 8px;
    border-right: 0;
  }

  /* hero meta-row on smaller mobile fix */
  .hero .meta-row { gap: 14px; }
  .hero .meta-row .item { gap: 4px; min-width: 70px; }
  .hero .meta-row .item .lbl { font-size: 8px; }

  /* feature split phone smaller */
  .iphone-rail { width: min(240px, 72vw); }

  /* numeric stats inside section heads */
  .section-head .right { flex-wrap: wrap; }

  /* PROFILE — avatar smaller, stack */
  .profile-id .av { width: 84px; height: 84px; font-size: 32px; }
  .profile-id h1 { font-size: 56px; }
  .stat-cards { grid-template-columns: 1fr 1fr !important; }
  .stat-cards .card .value { font-size: 42px; }

  /* APPLY / intake stepper — stack the number above the label so multi-word
     labels ("Your game") wrap consistently and every step is the same height,
     instead of the number being pushed out of line and the row reading ragged. */
  .apply-stepper .apply-step {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 6px 12px; font-size: 9px; letter-spacing: 0.14em; line-height: 1.3;
  }
  .apply-stepper .apply-step .num { margin-right: 0; font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; }

  /* footer columns 1 */
  .fu-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .fu-footer-legal { flex-direction: column; gap: 12px; text-align: center; }

  /* "What's Included" grid 1 col on smallest */
  .included-grid { grid-template-columns: 1fr; }

  /* CTA banner tighter */
  .cta-banner { padding: 64px var(--pad-x); }
  .cta-banner h2 { font-size: clamp(48px, 14vw, 80px); }
}

@media (max-width: 480px) {
  :root { --pad-x: 16px; }
  /* hero claim */
  .claim { font-size: 48px !important; letter-spacing: -0.04em !important; }
  .hero .meta-row .item b { font-size: 18px; }
  .hero .meta-row .item .lbl { font-size: 7px; letter-spacing: 0.14em; }

  .fu-header { padding: 10px var(--pad-x); }
  .fu-header a.link, .fu-header button.link {
    padding: 8px 10px; font-size: 11px; letter-spacing: 0.08em;
  }
  .fu-header .signin { padding: 6px 10px; font-size: 10px; letter-spacing: 0.08em; }

  /* podium */
  .podium .slot { padding: 28px 24px; min-height: 0; }
  .podium .slot .rank { font-size: 64px; }
  .podium .slot .name { font-size: 24px; }

  /* day strip compact */
  .day-strip { grid-template-columns: repeat(3, 1fr); }
  .day-cell { padding: 16px 12px; }
  .day-cell-num { font-size: 32px; }

  .day-section { padding: 36px var(--pad-x) 24px; }
  .day-section-head .big .num { font-size: 48px; }
  .day-section-head .big .info b { font-size: 14px; }

  /* match modal — full screen */
  .fu-modal-body { padding: 18px; }
  .fu-modal-h h2 { font-size: 22px; }
  .infra-grid { grid-template-columns: 1fr 1fr; }

  /* tweaks panel smaller */
  .twk-panel { width: calc(100vw - 24px) !important; right: 12px !important; bottom: 12px !important; }

  /* CONTACT hero — tighter, smaller type */
  .contact-hero { padding: 40px var(--pad-x) 32px; gap: 16px; }
  .contact-hero h1 { font-size: 48px; line-height: 0.9; }
  .contact-hero .lede { font-size: 14px; max-width: 100%; }

  /* CONTACT grid → 1 col, larger arrow tap target */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 16px; min-height: 200px; padding-bottom: 56px; }
  .contact-card .num { font-size: 48px; }
  .contact-card .value { font-size: 16px; }
  .contact-card .arrow {
    width: 44px; height: 44px;
    font-size: 14px;
    right: 12px; bottom: 12px;
  }

  /* CONTACT legal — smaller */
  .contact-legal { padding: 24px var(--pad-x); font-size: 9px; letter-spacing: 0.18em; }

  /* 404 — hide pitch, scale type */
  .nf-pitch { display: none; }
  .nf-page h1 { font-size: 40px; margin-top: -16px; }
  .nf-page p { font-size: 15px; max-width: 100%; }

  /* reports/standings table — touch scroll */
  .players-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ───────────────────────────────────────────────────────────────
   Player profile · real data visualisations (sharp-corner editorial)
   ─────────────────────────────────────────────────────────────── */
.pp-empty {
  padding: 40px 0; text-align: center;
  font-family: var(--font-sans); font-size: 14px; color: var(--bone-dim);
  border-top: 1px solid var(--bone-faint);
}

/* form bars — stacked goals (accent) + assists (muted) per match */
.pp-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 200px; padding-top: 18px;
  border-bottom: 1px solid var(--bone-faint);
}
.pp-bar-col {
  flex: 1; min-width: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px; cursor: pointer; position: relative;
}
.pp-bar-col .stack {
  width: 100%; max-width: 30px; min-height: 2px;
  display: flex; flex-direction: column-reverse;
  background: var(--surface-faint, rgba(244,241,235,0.04));
  transition: opacity 0.15s;
}
.pp-bar-col .seg { display: block; width: 100%; }
.pp-bar-col .seg.goals { background: var(--accent); }
.pp-bar-col .seg.assists { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.pp-bar-col .val {
  font-family: 'JetBrains Mono'; font-size: 11px; color: var(--bone-dim); min-height: 14px;
}
.pp-bar-col .dot { width: 6px; height: 6px; background: var(--bone-faint); }
.pp-bar-col.won .dot { background: var(--accent); }
.pp-bar-col:hover .stack { opacity: 0.78; }
.pp-bars-legend {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 14px; font-family: var(--font-sans); font-size: 12px; color: var(--bone-dim);
}
.pp-bars-legend .key { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.pp-bars-legend .key.goals { background: var(--accent); }
.pp-bars-legend .key.assists { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.pp-bars-legend .key.won { background: var(--accent); width: 8px; height: 8px; }
.pp-bars-legend .avg { margin-left: auto; font-family: 'JetBrains Mono'; color: var(--bone); }

/* impact row — win rate · contribution · awards */
.pp-impact, .pp-split-row {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.impact-card, .split-card {
  border: 1px solid var(--bone-faint); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.impact-lbl {
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.big-pct {
  font-family: Archivo, var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: 64px; line-height: 0.9; letter-spacing: -0.03em; color: var(--bone);
}
.big-pct small { font-size: 26px; color: var(--bone-dim); margin-left: 2px; }
.pct-track { height: 8px; background: var(--bone-faint); width: 100%; }
.pct-fill { display: block; height: 100%; background: var(--accent); }
.impact-sub {
  display: flex; gap: 20px; margin-top: auto; padding-top: 6px;
  font-family: var(--font-sans); font-size: 12px; color: var(--bone-dim);
}
.impact-sub b { font-family: 'JetBrains Mono'; color: var(--bone); font-weight: 700; }
.split-num { font-family: var(--font-sans); font-size: 13px; color: var(--bone-dim); }
.split-num b { font-family: Archivo; font-weight: 900; font-size: 40px; color: var(--bone); margin-right: 8px; letter-spacing: -0.02em; }
.split-bar { display: flex; height: 14px; width: 100%; background: var(--bone-faint); }
.split-bar .goals { background: var(--accent); }
.split-bar .assists { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.split-legend { display: flex; gap: 18px; font-family: var(--font-sans); font-size: 12px; color: var(--bone-dim); }
.split-legend .key { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.split-legend .key.goals { background: var(--accent); }
.split-legend .key.assists { background: color-mix(in srgb, var(--accent) 34%, transparent); }

.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.award-cell {
  border: 1px solid var(--bone-faint); padding: 12px 14px;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center; opacity: 0.5;
}
.award-cell.has { opacity: 1; border-color: var(--bone); }
.award-cell .g { grid-row: 1 / 3; font-size: 22px; filter: grayscale(1); }
.award-cell.has .g { filter: none; }
.award-cell .n { font-family: Archivo; font-weight: 900; font-size: 22px; color: var(--bone); line-height: 1; }
.award-cell.has .n { color: var(--accent); }
.award-cell .l { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone-dim); }

/* format split + keeper */
.fmt-list { display: flex; flex-direction: column; gap: 12px; }
.fmt-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; }
.fmt-name { font-family: Archivo; font-weight: 900; font-size: 16px; color: var(--bone); }
.fmt-name small { font-family: var(--font-sans); font-weight: 500; font-size: 10px; color: var(--bone-dim); margin-left: 3px; }
.fmt-track { height: 8px; background: var(--bone-faint); }
.fmt-fill { display: block; height: 100%; background: var(--accent); }
.fmt-num { font-family: 'JetBrains Mono'; font-size: 13px; color: var(--bone); white-space: nowrap; }
.fmt-num small { color: var(--bone-dim); }
.gk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gk-stat { display: flex; flex-direction: column; gap: 2px; }
.gk-stat b { font-family: Archivo; font-weight: 900; font-size: 34px; color: var(--bone); letter-spacing: -0.02em; line-height: 1; }
.gk-stat span { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone-dim); }

/* ── Form guide (WWLL cells) ── */
.form-guide-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.form-guide-row .fg-lbl { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); }
.form-guide-row .fg-meta { margin-left: auto; font-family: 'JetBrains Mono'; font-size: 12px; color: var(--bone-dim); }
.form-guide { display: flex; gap: 4px; flex-wrap: wrap; }
.fg-cell {
  width: 26px; height: 26px; display: grid; place-items: center;
  font-family: Archivo; font-weight: 900; font-size: 11px;
  border: 1px solid var(--bone-faint); color: var(--bone-dim);
}
.fg-cell.w { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ── Season progression (cumulative area) ── */
.progression { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--bone-faint); }
.prog-area.g { fill: color-mix(in srgb, var(--accent) 26%, transparent); }
.prog-area.ga { fill: color-mix(in srgb, var(--accent) 9%, transparent); }
.prog-line { fill: none; stroke: var(--accent); stroke-width: 2; }

/* ── Activity heatmap ── */
.heatmap-wrap { overflow-x: auto; }
.hm-months { display: flex; gap: 4px; margin-bottom: 4px; padding-left: 0; }
.hm-mo { flex: 1; min-width: 14px; font-family: var(--font-display); font-weight: 700; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-dim); }
.heatmap { display: flex; gap: 4px; }
.hm-col { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 14px; }
.hm-cell { width: 100%; aspect-ratio: 1; min-width: 12px; background: var(--bone-faint); }
.hm-cell.lvl-1 { background: var(--surface-faint, rgba(244,241,235,0.03)); }
.hm-cell.lvl0 { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.hm-cell.lvl1 { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.hm-cell.lvl2 { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.hm-cell.lvl3 { background: var(--accent); }
.hm-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-sans); font-size: 11px; color: var(--bone-dim); }
.hm-legend .hm-cell { width: 12px; height: 12px; aspect-ratio: auto; flex: none; }
.hm-legend .hm-note { margin-left: auto; }
/* Desktop: keep these charts compact (base styles are full-width for mobile) */
@media (min-width: 721px) {
  .progression { max-width: 640px; }
  .heatmap, .hm-months { max-width: 380px; }
}

/* Progression + activity share one row, split in half */
.pp-duo { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--bone-faint); }
.pp-duo .pp-section { border-bottom: 0; }
.pp-duo .pp-section + .pp-section { border-left: 1px solid var(--bone-faint); }
@media (max-width: 900px) {
  .pp-duo { grid-template-columns: 1fr; }
  .pp-duo .pp-section + .pp-section { border-left: 0; border-top: 1px solid var(--bone-faint); }
}

/* ── Standing: radar + percentile ── */
.pp-standing { display: grid; gap: 16px; grid-template-columns: minmax(260px, 0.9fr) 1.1fr; }
@media (max-width: 720px) { .pp-standing { grid-template-columns: 1fr; } }
.radar-card { align-items: center; }
.radar { max-width: 320px; margin: 4px auto 0; }
.radar-ring { fill: none; stroke: var(--bone-faint); stroke-width: 1; }
.radar-axis { stroke: var(--bone-faint); stroke-width: 1; }
.radar-area { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 2; }
.radar-lbl { fill: var(--bone-dim); font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.radar-note { font-family: var(--font-sans); font-size: 11px; line-height: 1.5; color: var(--bone-dim); text-align: center; }
.pct-list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.pct-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 14px; }
.pct-lbl { font-family: var(--font-sans); font-size: 12px; color: var(--bone-dim); }
.pct-track2 { height: 10px; background: var(--bone-faint); }
.pct-fill2 { display: block; height: 100%; background: var(--accent); }
.pct-tag { font-family: 'JetBrains Mono'; font-size: 12px; font-weight: 700; color: var(--bone); white-space: nowrap; }

/* ── FIFA-style player card — photo centrepiece, stats flanking ──────────── */
.fifa-card-sec { padding-top: 8px; padding-bottom: 32px; }
/* inside the account dashboard the column already supplies padding */
.profile-content .fifa-card-sec { padding: 0; margin: 0 0 28px; }
.fifa-card {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--bone-faint);
  background: var(--surface-faint);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 24px;
}
.fifa-card > *:not(.fc-watermark) { position: relative; z-index: 1; }
/* faint rank watermark behind the card content */
.fc-watermark {
  position: absolute; top: -8%; right: -1%; z-index: 0;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(180px, 26vw, 380px); line-height: 0.82; letter-spacing: -0.08em;
  color: transparent; -webkit-text-stroke: 1.5px var(--bone-faint);
  pointer-events: none; user-select: none;
}

/* identity header — centred member line, name, tags */
.fc-head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fc-eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-dim);
}
.fc-eyebrow-rule { width: 28px; height: 1px; background: var(--accent); }
.fc-eyebrow-flag { font-size: 16px; line-height: 1; }
.fc-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.fc-name {
  text-align: center;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(40px, 5.5vw, 68px); line-height: 0.9; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--bone);
}
.fc-name .italic { font-style: italic; color: var(--accent); }

/* three-column body — stats · photo · stats */
.fc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; }
.fc-col { display: flex; flex-direction: column; gap: 20px; }

/* photo centrepiece */
.fc-photo {
  position: relative; width: 248px; aspect-ratio: 3 / 4; justify-self: center;
  overflow: hidden; border: 1px solid var(--bone-faint); background: #15151c;
}
/* top-left scrim so the OVR overlay stays legible over any photo */
.fc-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(150deg, rgba(8,8,10,0.9) 0%, rgba(8,8,10,0.55) 30%, rgba(8,8,10,0) 56%);
}
.fc-frame { position: absolute; inset: 8px; z-index: 2; pointer-events: none; border: 1px solid rgba(244,241,235,0.20); }
/* zoom toward the top so the face sits in the middle of the frame (headshots
   frame head-at-top + torso below; this trims the lower torso). Only hits a
   real photo — the gradient-initials fallback has no <img>. */
.fc-photo .fu-avatar img { object-position: center top; transform: scale(1.4); transform-origin: center top; }
.fc-badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
.fc-ovr {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: 58px; line-height: 0.82; letter-spacing: -0.02em; color: var(--accent);
}
.fc-ovr-lbl {
  font-family: var(--font-display); font-weight: 800; font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--bone); opacity: 0.9;
}
.fc-pos {
  margin-top: 9px;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  letter-spacing: 0.04em; color: var(--bone);
}
.fc-flag { font-size: 22px; line-height: 1; margin-top: 3px; }

/* stat rows — number + label, mirrored around the photo */
.fc-axis {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--bone-faint);
}
.fc-val {
  font-family: 'JetBrains Mono'; font-weight: 700; font-size: 26px;
  min-width: 38px; color: var(--bone);
}
.fc-axis.real .fc-val { color: var(--accent); }
.fc-axis.seeded .fc-val { color: var(--bone-dim); }
.fc-axlbl {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim);
}
.fc-prov { font-style: normal; color: var(--accent); margin-left: 1px; }
.fc-foot { text-align: center; font-family: var(--font-sans); font-size: 11px; line-height: 1.5; color: var(--bone-dim); }

/* desktop — pack the stat numbers right up against the photo (labels outboard);
   underlines still span the full column width */
@media (min-width: 721px) {
  .fc-body { gap: 0 24px; }
  .fc-col-l .fc-axis { flex-direction: row-reverse; }  /* number → right edge (photo) */
  .fc-col-r .fc-axis { flex-direction: row; }          /* number → left edge (photo) */
  .fc-col-l .fc-val { text-align: right; }
  .fc-col-r .fc-val { text-align: left; }
}

@media (max-width: 720px) {
  .fifa-card { padding: 20px 14px; gap: 16px; }
  .fc-name { font-size: clamp(30px, 8.5vw, 44px); }
  .fc-watermark { font-size: clamp(150px, 44vw, 240px); top: -4%; }
  /* keep the FIFA flanking layout — stats wrap the photo, scaled to the phone */
  .fc-body { grid-template-columns: 1fr auto 1fr; gap: 0 12px; align-items: stretch; }
  .fc-photo { width: clamp(116px, 35vw, 150px); align-self: center; }
  .fc-ovr { font-size: 40px; }
  .fc-ovr-lbl { font-size: 8px; letter-spacing: 0.2em; }
  .fc-pos { font-size: 14px; margin-top: 6px; }
  /* spread the three stats down the photo's height, each stacked num-over-label */
  .fc-col { justify-content: space-between; gap: 0; }
  .fc-axis, .fc-col-r .fc-axis {
    flex-direction: column; align-items: center; text-align: center;
    gap: 1px; padding: 0; border-bottom: 0;
  }
  .fc-val, .fc-col-r .fc-val { min-width: 0; text-align: center; font-size: 26px; }
  .fc-axlbl { font-size: 10px; letter-spacing: 0.12em; }
  .fc-axlbl .fc-help { display: none; }   /* tooltips don't suit touch — ° + footnote carry the meaning */
}
/* "i" help badge on each axis — public twin of the admin .ad-help tooltip */
.fc-help {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-left: 6px;
  border: 1px solid var(--bone-faint); color: var(--bone-dim);
  font-family: var(--font-sans); font-size: 9px; font-style: italic; font-weight: 700;
  line-height: 1; letter-spacing: 0; text-transform: none;
  cursor: help; vertical-align: middle; flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.fc-help:hover, .fc-help:focus { color: var(--accent); border-color: var(--accent); outline: none; }
.fc-help-tip {
  position: absolute; top: calc(100% + 8px); left: -1px;
  width: max-content; max-width: 240px; padding: 9px 11px;
  background: var(--ink); border: 1px solid var(--bone); color: var(--bone);
  font-family: var(--font-sans); font-size: 11px; font-weight: 500; font-style: normal;
  line-height: 1.45; letter-spacing: 0.01em; text-transform: none;
  white-space: normal; text-align: left;
  opacity: 0; transform: translateY(-3px); pointer-events: none;
  transition: opacity 0.15s, transform 0.15s; z-index: 60;
}
.fc-help:hover .fc-help-tip, .fc-help:focus .fc-help-tip { opacity: 1; transform: translateY(0); }
/* right-hand column: open the tooltip leftward so it stays inside the card */
.fc-col-r .fc-help-tip { left: auto; right: -1px; }
