/* ============================================================================
   PADEL RALLY — features.css
   The product document behind the film. Loads after kit.css (tokens, type,
   device kit, board, badges, footer, RALLY ON.) and take.css (watch face,
   wrist plate, board glass). This file carries only /features' own layouts —
   most recovered from the original landing page (tag padel-rally-landing-v1)
   and re-cut for the cinematic language: black ground, one accent, the
   1px "ledger" grid for data, square page / rounded app UI.

   Structure
     1  Page, intro, the index
     2  Chapters
     3  Track — ladder, passport, log, the fan
     4  Connect — activity, feed, crew, places
     5  Progress — charts, streaks, records
     6  Fitness — trace, zones, trend
     7  Live match — stage, the point, flow
     8  Understand — formula, intel sheet, Match Fit
     9  Achieve — challenges, badges
     10 Rally+, Rally Year, next, ending
     11 Reduced motion
   ========================================================================== */

/* ── 1. PAGE, INTRO, THE INDEX ─────────────────────────────────────────────── */
:root { --index-h: 3.4rem; }
html { scroll-padding-top: calc(var(--head) + var(--index-h) + 1rem); }

/* One Home route. The three links stay visible at every width on this page, since there is
   no boxed action beside them; the gap tightens on phones so the row fits at 320px. */
.masthead__link[aria-current="page"] { color: var(--chalk); }
.masthead__nav { display: flex; align-items: center; gap: var(--s4); }
@media (max-width: 559px) { .masthead__nav { gap: .85rem; } .masthead__link { letter-spacing: .08em; } }

@media (min-width: 900px) {
  .grid--5-7 { grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: var(--s10); align-items: start; }
}

/* The intro states the page's job and nothing else. */
.fx-intro {
  padding: calc(var(--head) + clamp(4rem, 12vh, 8rem)) 0 clamp(3rem, 8vh, 5.5rem);
  display: grid; gap: var(--s3);
}
.fx-intro .wrap { display: grid; gap: var(--s3); }
.fx-intro__title { max-width: 12ch; }
.fx-intro__lede { max-width: 40ch; }
@media (min-width: 900px) {
  .fx-intro .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s10); align-items: end; }
  .fx-intro .eyebrow { grid-column: 1 / -1; }
  .fx-intro__title { grid-column: 1; }
  .fx-intro__lede { grid-column: 2; }
}

/* The index — the page's contents, numbered because the page reads in this
   order, and sticky so the six areas stay one tap away. */
.index {
  position: sticky; top: var(--head); z-index: 40;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  border-block: 1px solid var(--line);
}
.index__list {
  display: flex; align-items: stretch;
  height: var(--index-h);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 0;
}
.index__list::-webkit-scrollbar { display: none; }
.index__list li { flex: none; display: flex; }
.index__link {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--f-data); font-size: var(--t-label); font-weight: 600; font-stretch: 84%;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--chalk-low); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--d-micro) var(--e-soft), border-color var(--d-micro) var(--e-soft);
}
.index__list li + li .index__link { margin-left: clamp(1.4rem, 3vw, 3rem); }
.index__link:hover { color: var(--chalk); }
.index__link[aria-current="true"] { color: var(--chalk); border-bottom-color: var(--volt); }
.index__n { color: var(--volt); font-weight: 700; }
@media (max-width: 559px) { :root { --index-h: 3rem; } }

/* ── 2. CHAPTERS ───────────────────────────────────────────────────────────── */
.chapter__head { display: grid; gap: var(--s3); max-width: 46rem; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.chapter__head .claim { color: var(--chalk-mid); }
.chapter__n {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.05rem; letter-spacing: -.02em; color: var(--volt);
  margin-right: .3rem;
}
.chapter__part { margin-top: clamp(4rem, 10vh, 7.5rem); }
.chapter__lead { margin-bottom: var(--s6); max-width: 40rem; }
.ticks { display: grid; gap: .5rem; }
.ticks li {
  position: relative; padding-left: 1.2rem;
  font-size: var(--t-sm); color: var(--chalk-mid); line-height: 1.5;
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; background: var(--volt);
}

/* ── 3. TRACK ──────────────────────────────────────────────────────────────── */
/* The ladder — the same player later on. The number grows, the life fills in. */
.ladder { display: grid; border-top: 1px solid var(--line); }
.rung {
  display: grid; gap: .75rem var(--s6);
  padding-block: clamp(1.1rem, 2.6vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (min-width: 760px) { .rung { grid-template-columns: 14rem minmax(0, 1fr); } }
.rung__n { display: flex; align-items: baseline; gap: .55rem; white-space: nowrap; }
.rung__n .num { font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--chalk-dim); }
.rung:nth-child(2) .rung__n .num { font-size: clamp(2.3rem, 5vw, 3.8rem); color: var(--chalk-low); }
.rung:nth-child(3) .rung__n .num { font-size: clamp(2.7rem, 6.2vw, 4.8rem); color: var(--chalk-mid); }
.rung--now { padding-block: clamp(1.6rem, 3.4vw, 2.6rem); border-bottom-color: var(--line-hi); }
.rung--now .rung__n .num { font-size: clamp(3.2rem, 8vw, 6.4rem); color: var(--volt); }
.rung__meta { color: var(--chalk-low); font-size: var(--t-sm); }
.rung__stats { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.rung__stats li {
  font-family: var(--f-data); font-size: var(--t-label); font-stretch: 84%;
  letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-low);
}
.rung__stats b {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.15em; letter-spacing: -.02em; color: var(--chalk);
  font-variant-numeric: tabular-nums; margin-right: .3em;
}
.rung--now .rung__stats b { color: var(--volt); }

/* The passport panel. */
.passport__id { display: flex; align-items: center; gap: var(--s2); }
.passport__id > span:last-child { flex: 1; min-width: 0; }
.passport__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--volt); color: var(--on-volt);
  font-family: var(--f-display); font-weight: 900; font-stretch: 116%;
  font-size: 1.8rem; line-height: 1;
}
.passport__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-block: var(--s4);
}
@media (min-width: 560px) { .passport__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.passport__cell { background: var(--surface); padding: clamp(.9rem, 2vw, 1.3rem); display: grid; gap: .55rem; }
.passport__cell .num { font-size: clamp(1.5rem, 3vw, 2.2rem); }
/* Where am I now — the number and the band it reads as, on their own raised
   surface between the six totals and the form block. Deliberately not a seventh
   tile: one wide row, two labelled halves, its own ground. The number is larger
   than a tile and smaller than the player's own name — important, not loudest. */
.passport__rating {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: .8rem var(--s3);
  background: var(--surface-hi); border: 1px solid var(--line-hi);
  padding: clamp(.95rem, 2.1vw, 1.35rem) clamp(1rem, 2.2vw, 1.4rem);
  margin-bottom: var(--s4);
}
.passport__ratingPart { display: grid; gap: .5rem; min-width: 0; }
@media (min-width: 380px) {
  .passport__ratingPart--band { justify-items: end; text-align: right; }
}
.passport__ratingN { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.passport__ratingBand {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem); line-height: 1;
  letter-spacing: -.018em; text-transform: uppercase; color: var(--volt);
}
.passport__ratingConf { flex-basis: 100%; color: var(--chalk-dim); }

.passport__cols { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .passport__cols { grid-template-columns: 1fr 1fr; } }
.passport__facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); align-content: start; }
.passport__fact {
  background: var(--surface); padding: .8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .35rem var(--s2); flex-wrap: wrap;
  font-size: var(--t-sm);
}
.passport__fact b { font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.passport__sub { font-family: var(--f-data); font-size: var(--t-micro); font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-dim); font-weight: 500; }
.passport__recent { display: grid; margin-top: var(--s3); border-top: 1px solid var(--line); }
.passport__recent li {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .1rem .8rem; align-items: baseline;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.passport__recentName { font-weight: 600; font-size: var(--t-sm); }
.passport__recentMeta { grid-column: 2; font-size: .8125rem; color: var(--chalk-low); }
@media (min-width: 640px) {
  .passport__recent li { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .passport__recentMeta { grid-column: auto; }
}
.passport__earned { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: var(--s3); }

/* Recent form — ten results as ten marks. Green is a win. */
.form { display: inline-flex; gap: 3px; align-items: center; }
.form i { width: 7px; height: 12px; background: var(--line-hi); display: block; border-radius: 1px; }
.form i.w { background: var(--volt); }
.form--lg { gap: 5px; }
.form--lg i { width: 12px; height: 22px; }

/* Logging: three phones, three captions. */
.log__steps { display: grid; gap: var(--s6); justify-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .log__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
.log__step { display: grid; gap: var(--s3); justify-items: center; }
.log__stepcap { text-align: center; display: grid; gap: .4rem; max-width: 30ch; }

/* Rated or friendly — two cards under the three phones, in the card language
   the page already uses. The rated one carries the volt edge because it is the
   default, not because it is the better choice. */
.rated {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: var(--s5);
}
@media (min-width: 700px) { .rated { grid-template-columns: 1fr 1fr; } }
.rated__card {
  background: var(--ink); padding: clamp(1.1rem, 2.4vw, 1.5rem);
  display: grid; gap: .6rem; align-content: start;
}
.rated__card--on { background: var(--surface); }
.rated__card--on .rated__name { color: var(--volt); }
.rated .prose { font-size: var(--t-sm); }

/* The fan — one log, four passports. The page's big moment: one source card,
   a wire, four destinations, each saying what changed for that person. */
.fan { display: grid; justify-items: center; margin-top: var(--s8); }
.fan__source {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  width: min(100%, 40rem);
  background: var(--surface); border: 1px solid var(--volt-line); border-radius: var(--r-md);
  padding: 1rem 1.2rem;
}
.fan__avatar { flex: none; }
.fan__sourceBody { flex: 1; min-width: 12rem; }
.fan__title { font-weight: 600; font-size: var(--t-sm); }
.fan__meta { font-size: .8125rem; color: var(--chalk-low); }
.fan__wire { position: relative; width: 100%; height: 3.5rem; }
.fan__wire::before {
  content: ''; position: absolute; left: 50%; top: 0; height: 50%; width: 1px;
  background: var(--volt-line);
}
.fan__wire::after {
  content: ''; position: absolute; top: 50%; height: 1px; left: 25%; right: 25%;
  background: var(--line-hi);
}
.fan__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); width: 100%; }
.fan__card {
  position: relative;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.2rem; display: grid; gap: .6rem; align-content: start;
}
.fan__card--me { border-color: var(--volt-line); }
.fan__card::before {
  content: ''; position: absolute; left: 50%; bottom: 100%; height: 1.75rem; width: 1px;
  background: var(--line-hi);
}
.fan__card:nth-child(n+3)::before { display: none; }
@media (max-width: 359px) {
  .fan__out { grid-template-columns: minmax(0, 1fr); }
  .fan__card::before, .fan__wire::after { display: none; }
  .fan__wire { height: 1.75rem; }
  .fan__wire::before { height: 100%; }
}
.fan__who { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: 1.05rem; text-transform: uppercase; letter-spacing: -.01em; }
.fan__what { font-size: .875rem; color: var(--chalk-mid); line-height: 1.5; }
.fan__state {
  margin-top: auto; align-self: end;
  font-family: var(--f-data); font-size: var(--t-micro); font-weight: 600; font-stretch: 80%;
  letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-low);
}
.fan__state--confirm {
  color: var(--on-volt); background: var(--volt);
  padding: .5rem .7rem; justify-self: start; line-height: 1;
}
@media (min-width: 760px) {
  .fan__out { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fan__wire::after { left: 12.5%; right: 12.5%; }
  .fan__card:nth-child(n+3)::before { display: block; }
}
/* Cards arrive one at a time, left to right, after the source. */
.js .fan .fan__card { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--e-out), transform 420ms var(--e-out); }
.js .fan.is-in .fan__card { opacity: 1; transform: none; }
.js .fan.is-in .fan__card:nth-child(1) { transition-delay: 260ms; }
.js .fan.is-in .fan__card:nth-child(2) { transition-delay: 380ms; }
.js .fan.is-in .fan__card:nth-child(3) { transition-delay: 500ms; }
.js .fan.is-in .fan__card:nth-child(4) { transition-delay: 620ms; }

/* ── 4. CONNECT ────────────────────────────────────────────────────────────── */
.activity__card {
  background: var(--surface); border: 1px solid var(--line-hi);
  border-radius: var(--r-lg); overflow: hidden;
}
.activity__top { padding: clamp(1.1rem, 2.6vw, 1.6rem); display: grid; gap: var(--s3); border-bottom: 1px solid var(--line); }
.activity__who { display: flex; align-items: center; gap: .7rem; }
.activity__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
@media (min-width: 480px) { .activity__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.activity__stat { background: var(--surface); padding: 1rem clamp(.7rem, 2vw, 1.1rem); display: grid; gap: .45rem; }
.activity__stat .num { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.activity__sets { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding: clamp(1.1rem, 2.6vw, 1.6rem); border-bottom: 1px solid var(--line); }
.activity__set {
  border: 1px solid var(--line-hi); border-radius: var(--r-sm);
  padding: .5rem .8rem;
  font-family: var(--f-data); font-size: .9375rem; font-weight: 600; font-stretch: 84%;
  font-variant-numeric: tabular-nums;
}
.activity__set.won { border-color: var(--volt-line); color: var(--volt); background: rgba(50,255,40,.06); }
.activity__line { color: var(--chalk-low); font-size: var(--t-sm); margin-left: .3rem; }
.activity__row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1rem clamp(1.1rem, 2.6vw, 1.6rem); border-bottom: 1px solid var(--line); }
.activity__foot {
  padding: clamp(1rem, 2.4vw, 1.3rem) clamp(1.1rem, 2.6vw, 1.6rem);
  display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
  color: var(--chalk-low);
}
.activity__act { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); }
.activity__act svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.activity__act--on { color: var(--volt); }

.feed { display: grid; gap: var(--s2); }
.feed__item {
  display: flex; gap: var(--s2); align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem 1.1rem; background: var(--surface);
  transition: border-color var(--d-micro) var(--e-soft);
}
.feed__item:hover { border-color: var(--line-hi); }
.feed__item .ui-avatar { width: 36px; height: 36px; font-size: 13px; }
.feed__body { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.feed__line { font-size: var(--t-sm); line-height: 1.45; }
.feed__line b { font-weight: 600; }
.feed__tags { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.feed__react {
  display: flex; gap: 1.1rem; align-items: center;
  font-family: var(--f-data); font-size: var(--t-micro); font-stretch: 78%;
  letter-spacing: .12em; text-transform: uppercase; color: var(--chalk-dim);
  padding-top: .35rem;
}
.feed__react svg { width: 12px; height: 12px; }
.feed__react span { display: inline-flex; align-items: center; gap: .35rem; }
.feed__react span:first-child { color: var(--volt); }

.crew__panelHead {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
  padding-bottom: var(--s3); border-bottom: 1px solid var(--line);
}
.crew__grid { display: grid; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 700px) { .crew__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.crew__block { display: grid; gap: .8rem; align-content: start; }
.crew__uses { display: flex; gap: .5rem; flex-wrap: wrap; }
.crew__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.crew__li { background: var(--ink); padding: .7rem .9rem; display: flex; align-items: center; gap: .7rem; font-size: var(--t-sm); }
.crew__li .rank { font-family: var(--f-data); font-size: .75rem; font-stretch: 80%; color: var(--chalk-dim); width: 1.5rem; flex: none; }
.crew__li .val { margin-left: auto; font-family: var(--f-data); font-size: .8125rem; font-stretch: 82%; color: var(--chalk-mid); white-space: nowrap; }
.crew__li:first-child .val { color: var(--volt); }

.places { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); } }
.places__col { display: grid; gap: .8rem; align-content: start; }
.places__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.places__list li { background: var(--ink); padding: .75rem .9rem; display: flex; align-items: center; gap: .6rem; font-size: var(--t-sm); min-width: 0; }
.places__name { font-weight: 600; min-width: 0; }
.places__tag { font-family: var(--f-data); font-size: var(--t-micro); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
.places__val { margin-left: auto; font-family: var(--f-data); font-size: .8125rem; font-stretch: 82%; color: var(--chalk-mid); white-space: nowrap; }


/* Share card — a finished session as a 9:16 card. Same card grammar as the Rally Year deck. */
.share { display: flex; justify-content: center; }
.share__card {
  width: min(300px, 100%); aspect-ratio: 9 / 16;
  border-radius: var(--r-lg); border: 1px solid var(--line-hi);
  padding: 1.4rem; display: grid; align-content: space-between; gap: .8rem;
  background: linear-gradient(165deg, #1a2a06, var(--ink) 58%);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  transition: transform 420ms var(--e-out), border-color var(--d-micro) var(--e-soft);
}
.share__card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--volt-line); }
.share__top { display: grid; gap: .3rem; }
.share__score {
  font-family: var(--f-display); font-weight: 900; font-stretch: 118%;
  font-size: clamp(1.7rem, 5vw, 2.05rem); line-height: .95; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25rem;
}
.share__score span { color: var(--chalk-dim); font-weight: 400; font-size: .6em; }
.share__stats { display: flex; gap: 1.4rem; }
.share__stats > span { display: grid; gap: .3rem; }
.share__stats b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.5rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.share__line { font-weight: 600; font-size: var(--t-sm); }
.share__earned { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.share__earned .badge__mark { width: 34px; height: 34px; flex: none; }
.share__earned > span { display: grid; gap: .2rem; }
.share__earned b { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: .95rem; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.share__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.share__foot img { width: 88px; }

/* Looking for 1 — a community post: a game that needs a fourth. */
.lf1 {
  background: var(--surface); border: 1px solid var(--line-hi); border-radius: var(--r-lg);
  padding: clamp(1.1rem, 2.4vw, 1.6rem); display: grid; gap: var(--s3);
}
.lf1__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.lf1__tag {
  font-family: var(--f-data); font-size: var(--t-label); font-weight: 700; font-stretch: 84%;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-volt); background: var(--volt);
  padding: .45rem .6rem; line-height: 1;
}
.lf1__when { display: grid; gap: .35rem; }
.lf1__big { font-family: var(--f-display); font-weight: 800; font-stretch: 116%; font-size: clamp(1.5rem, 3.2vw, 2.2rem); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.lf1__where { display: inline-flex; align-items: center; gap: .45rem; color: var(--chalk-mid); font-size: var(--t-sm); }
.lf1__where .ico { width: 15px; height: 15px; color: var(--volt); }
.lf1__meta { display: flex; gap: .4rem; flex-wrap: wrap; }
.lf1__players { display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; border-block: 1px solid var(--line); padding-block: var(--s2); }
.lf1__players li { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: var(--t-sm); }
.lf1__players .ui-avatar { width: 36px; height: 36px; font-size: 13px; }
.lf1__slot { color: var(--volt); }
.lf1__empty { background: transparent; border: 1px dashed var(--volt); color: var(--volt); }
.lf1__fit { display: grid; gap: .3rem; }
.lf1__verdict { font-family: var(--f-display); font-weight: 800; font-stretch: 116%; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; color: var(--volt); }
.lf1__why { font-size: .875rem; color: var(--chalk-low); }
.lf1__actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.lf1__actions .btn:hover { transform: none; }
.lf1__share { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; color: var(--chalk-low); font-size: var(--t-sm); }
.lf1__share .ico { width: 16px; height: 16px; }

/* Social formats — an Americana in progress, in the crew panel's own grammar. */
.event__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.event__head > div { flex: 1 1 16rem; min-width: 0; }
.event__round { flex: none; display: grid; gap: .3rem; text-align: right; }
.event__round b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.6rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--volt); }
.event__courts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.event__court { background: var(--ink); padding: .9rem; display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.event__court > .data { grid-column: 1 / -1; }
.event__pairs { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; font-weight: 600; font-size: var(--t-sm); }
.event__vs { font-family: var(--f-data); font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--chalk-dim); }
.event__pts { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.5rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event__pts i { font-style: normal; color: var(--chalk-dim); margin-inline: .1em; }
.event__more { color: var(--chalk-low); }

/* ── 5. PROGRESS ───────────────────────────────────────────────────────────── */
.chart__line { fill: none; stroke: var(--volt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart__area { fill: url(#voltFade); }
.chart__dot { fill: var(--ink); stroke: var(--volt); stroke-width: 2; }
/* The charts scale with their box; on a phone the axis type is set larger in SVG units so it lands at ~8px. */
@media (max-width: 560px) { .chart__axis { font-size: 14px; } }
.progress__panel { display: grid; gap: var(--s5); }
.progress__figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.progress__fig { background: var(--surface); padding: clamp(1rem, 2.2vw, 1.4rem); display: grid; gap: .5rem; }
.progress__fig .num { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.progress__delta { color: var(--volt); font-family: var(--f-data); font-size: var(--t-micro); font-stretch: 80%; letter-spacing: .1em; }

.streaks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .streaks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.streaks__cell { background: var(--surface); padding: clamp(1rem, 2.2vw, 1.4rem); display: grid; gap: .7rem; align-content: start; }
.streaks__cell .num { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.streaks__unit { font-family: var(--f-data); font-size: var(--t-label); font-weight: 500; font-stretch: 84%; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-low); margin-left: .2rem; }

.grid > * { min-width: 0; }
.records__scroll { overflow-x: auto; margin-top: var(--s3); }
.records { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 22rem; }
.records th, .records td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.records thead th { font-family: var(--f-data); font-size: var(--t-micro); font-weight: 500; font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; color: var(--chalk-dim); padding-top: 1.2rem; }
.records th[scope="row"] { text-align: left; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.records td { font-family: var(--f-data); font-size: .8125rem; font-stretch: 84%; color: var(--chalk-mid); }
.records td.volt { color: var(--volt); }

/* ── 6. FITNESS ────────────────────────────────────────────────────────────── */
.fitness__trace {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(50,255,40,.045), transparent 62%), var(--ink);
  padding: clamp(1rem, 2.4vw, 1.6rem); overflow: hidden;
}
.fitness__traceHead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.fitness__hr { width: 100%; height: clamp(120px, 20vw, 200px); }
.fitness__hr polyline { fill: none; stroke: var(--volt); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fitness__hr .zone { fill: rgba(255,255,255,.028); }
.js .fitness__trace polyline { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--e-out) 200ms; }
.js .fitness__trace.is-in polyline { clip-path: inset(0 0 0 0); }
.fitness__zones { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .fitness__zones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fitness__zone { background: var(--ink); padding: 1rem clamp(.8rem, 2vw, 1.2rem); display: grid; gap: .5rem; }
.fitness__zone .num { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.fitness__metrics { display: grid; gap: var(--s2); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s4); }
@media (min-width: 620px) { .fitness__metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fitness__metric { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; display: grid; gap: .55rem; background: var(--ink); }
.fitness__metric .ico { width: 18px; height: 18px; color: var(--volt); }
.fitness__metric .num { font-size: 1.5rem; }

.trend { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.1rem, 2.4vw, 1.6rem); }
.trend__head { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.trend__rows { display: grid; gap: .9rem; }
.trend__rows li {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto 4.2rem; gap: .8rem; align-items: center;
  font-size: var(--t-sm);
}
@media (max-width: 479px) {
  .trend__rows li { grid-template-columns: minmax(0, 1fr) auto 3.6rem; }
  .trend__bar { grid-column: 1 / -1; grid-row: 2; }
}
.trend__k { color: var(--chalk-low); }
.trend__bar { height: 6px; background: var(--line); overflow: hidden; }
.trend__bar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--ball), var(--volt)); transition: width 1000ms var(--e-out); }
.js .trend i { width: 0; }
.js .is-in .trend i, .js .trend.is-in i { width: var(--p); }
.trend__v { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.trend__d { font-family: var(--f-data); font-size: .75rem; font-stretch: 82%; color: var(--chalk-dim); text-align: right; white-space: nowrap; }

/* ── 7. LIVE MATCH ─────────────────────────────────────────────────────────── */
.live__stage {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
}
.board--live { flex: 1 1 22rem; max-width: 36rem; }
.board--live .board__pt .swap__b { font-size: .46em; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.live__stage .wrist-still { flex: none; }

/* The point, once, when the stage is in view: tap → the watch's own score → the board.
   Both second states exist only while the stage is scored; the static page reads 40–30. */
.js .live.is-scored .swap > .swap__b { display: block; animation: swapIn 500ms var(--e-out) both; }
.js .live.is-scored .swap > .swap__a { animation: swapOut 500ms var(--e-out) both; }
.js .live.is-scored .face .swap > .swap__a,
.js .live.is-scored .face .swap > .swap__b { animation-delay: 120ms; }
.js .live.is-scored .board .swap > .swap__a,
.js .live.is-scored .board .swap > .swap__b { animation-delay: 340ms; }
.js .live.is-scored .face__key--us { animation: keyTap 140ms var(--e-out) both; }
.js .live.is-scored .face__key--us .face__flash { animation: keyFlash 140ms var(--e-out) both; }
.js .live.is-scored .board__pt--live { animation: bloom 600ms var(--e-out) 340ms both; }

.flow { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 560px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow__step { position: relative; background: var(--ink); padding: clamp(1.2rem, 2.4vw, 1.7rem); display: grid; gap: .7rem; align-content: start; }
.flow__ico { width: 22px; height: 22px; color: var(--volt); }
.flow__name { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.012em; line-height: 1; }
.flow__what { font-size: .9rem; color: var(--chalk-mid); line-height: 1.5; }
@media (min-width: 1000px) {
  .flow__step + .flow__step::before {
    content: ''; position: absolute; left: -1px; top: 50%; width: 1px; height: 2.2rem; transform: translateY(-50%);
    background: var(--volt);
  }
}
.live__detail { margin-top: var(--s8); }
.live__end {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.1rem;
  border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s8);
}
.live__endLabel { font-family: var(--f-data); font-size: var(--t-label); font-stretch: 82%; letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-low); }
.live__endScore { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: clamp(1.1rem, 2.4vw, 1.5rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ── 8. UNDERSTAND ─────────────────────────────────────────────────────────── */
.formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.1rem;
  border-block: 1px solid var(--line); padding-block: clamp(1.2rem, 3vw, 2rem);
}
.formula__term { font-family: var(--f-display); font-weight: 900; font-stretch: 118%; font-size: var(--t-d2); text-transform: uppercase; letter-spacing: -.025em; line-height: 1; }
.formula__op { font-family: var(--f-data); font-size: var(--t-d3); color: var(--chalk-dim); }

.intel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin: 0; }
@media (min-width: 560px) { .intel__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.intel__cell { background: var(--surface); padding: clamp(.85rem, 2vw, 1.15rem); display: grid; gap: .5rem; align-content: start; }
.intel__cell dt, .intel__cell dd { margin: 0; }
.intel__cell--lead { grid-column: 1 / -1; background: var(--surface-hi); }
/* Level and rating pair as soon as the sheet is four columns wide. The lead value
   is held below the free clamp so the band still fits half a panel at every width
   in that range — the tightest point is around 900px, not the widest. */
@media (min-width: 560px) {
  .intel__cell--lead { grid-column: span 2; }
  .intel__cell--lead .intel__v--big { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
}
.intel__v { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.05rem, 2.1vw, 1.3rem); line-height: 1; letter-spacing: -.018em; font-variant-numeric: tabular-nums; }
.intel__v--big { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.intel__w { color: var(--volt); }
.intel__q { font-family: var(--f-data); font-size: .625rem; font-weight: 500; font-stretch: 80%; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-low); margin-left: .15em; }
.intel__fit { padding: clamp(1rem, 2.4vw, 1.35rem); display: grid; gap: .85rem; }
.intel__fitHead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.intel__verdict { font-family: var(--f-display); font-weight: 800; font-stretch: 116%; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--volt); }
.intel__why { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.intel__why li { font-family: var(--f-data); font-size: var(--t-micro); font-stretch: 80%; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-low); display: flex; align-items: center; gap: .45rem; }
.intel__why li::before { content: ''; width: 4px; height: 4px; flex: none; background: var(--volt); }

.fits { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fit {
  background: var(--ink); padding: clamp(1rem, 2.2vw, 1.4rem);
  display: grid; gap: .5rem var(--s3); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.fit__pair { display: flex; align-items: center; gap: .3rem; }
.fit__pair .ui-avatar + .ui-avatar { margin-left: -8px; }
.fit__names { font-weight: 600; margin-left: .5rem; white-space: nowrap; }
.fit__verdict { font-family: var(--f-display); font-weight: 800; font-stretch: 116%; font-size: clamp(1rem, 2vw, 1.25rem); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; color: var(--chalk); }
.fit__verdict--great { color: var(--volt); }
.fit__verdict--stretch { color: var(--chalk-low); }
.fit__why { grid-column: 1 / -1; font-size: .875rem; color: var(--chalk-low); }
@media (min-width: 760px) {
  .fit { grid-template-columns: 11rem auto minmax(0, 1fr); }
  .fit__why { grid-column: auto; text-align: right; }
}

/* ── 9. ACHIEVE ────────────────────────────────────────────────────────────── */
.challenges { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .challenges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.challenge { background: var(--ink); padding: clamp(1.1rem, 2.4vw, 1.6rem); display: grid; gap: .85rem; }
.challenge__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.challenge__name { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: clamp(1.1rem, 2vw, 1.35rem); text-transform: uppercase; letter-spacing: -.012em; line-height: 1; }
.challenge__val { font-family: var(--f-data); font-size: .8125rem; font-stretch: 82%; color: var(--volt); white-space: nowrap; }
.challenge__desc { font-size: .875rem; color: var(--chalk-low); }
.challenge__bar { height: 6px; background: var(--line); overflow: hidden; }
.challenge__fill { height: 100%; width: var(--p); background: linear-gradient(90deg, var(--ball), var(--volt)); transition: width 1100ms var(--e-out) var(--delay, 0ms); }
.js .challenge__fill { width: 0; }
.js .challenge.is-in .challenge__fill { width: var(--p); }
.challenge__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); font-family: var(--f-data); font-size: var(--t-micro); font-stretch: 78%; letter-spacing: .12em; text-transform: uppercase; color: var(--chalk-dim); }

.badges { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 660px)  { .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.badge { background: var(--ink); padding: clamp(1.1rem, 2.4vw, 1.7rem); display: grid; gap: .85rem; align-content: start; transition: background var(--d-micro) var(--e-soft); }
.badge:hover { background: var(--surface); }
.badge--locked { color: var(--chalk-dim); }
.badge__name { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: 1.05rem; letter-spacing: -.01em; text-transform: uppercase; line-height: 1; }
.badge__req { font-size: .8125rem; color: var(--chalk-low); }
.badge__state { font-family: var(--f-data); font-size: var(--t-micro); font-stretch: 78%; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
.badge--locked .badge__state { color: var(--chalk-low); }

/* ── 10. RALLY+, RALLY YEAR, NEXT, ENDING ──────────────────────────────────── */
.tiers { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .tiers { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.tier { background: var(--ink); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: var(--s3); align-content: start; }
.tier--plus { background: var(--surface); }
.tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.tier__name { font-family: var(--f-display); font-weight: 900; font-stretch: 118%; font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-transform: uppercase; letter-spacing: -.025em; line-height: 1; }
.tier--plus .tier__name { color: var(--volt); }
.tier__claim { font-size: var(--t-lead); color: var(--chalk-mid); max-width: 34ch; }
.tier__list { display: grid; gap: .55rem; }
.tier__list li { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--t-sm); }
.tier__list svg { width: 15px; height: 15px; margin-top: .28em; flex: none; color: var(--volt); }
.tier--free .tier__list svg { color: var(--chalk-low); }

.year { background: var(--ink-02); border-block: 1px solid var(--line); overflow: hidden; }
.year__deck { display: flex; gap: var(--s3); padding-block: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.year__deck::-webkit-scrollbar { display: none; }
.year__card {
  flex: none; scroll-snap-align: center;
  width: min(270px, 74vw); aspect-ratio: 9 / 16;
  border-radius: var(--r-lg); border: 1px solid var(--line-hi);
  padding: 1.4rem; display: grid; align-content: space-between;
  background: var(--ink); position: relative; overflow: hidden;
  transition: transform 420ms var(--e-out), border-color var(--d-micro) var(--e-soft);
}
.year__card:hover { transform: translateY(-6px); border-color: var(--volt-line); }
.year__card--hero { background: linear-gradient(165deg, #1a2a06, var(--ink) 62%); }
.year__card--volt { background: var(--volt); color: var(--on-volt); border-color: var(--volt); }
.year__card--volt .data, .year__card--volt .ui-label { color: rgba(0,0,0,.62); }
.year__big { font-family: var(--f-display); font-weight: 900; font-stretch: 118%; font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: .86; letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.year__cap { font-size: .9375rem; line-height: 1.35; }
.year__mini { display: grid; gap: .8rem; }
.year__miniRow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); border-top: 1px solid var(--line); padding-top: .55rem; }
.year__miniRow b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.05rem; }
.year__hint { display: flex; align-items: center; gap: .5rem; margin-top: var(--s4); color: var(--chalk-dim); }

.eco { display: grid; border-top: 1px solid var(--line); }
.eco__row { display: grid; gap: .5rem var(--s4); padding-block: clamp(1.1rem, 2.4vw, 1.6rem); border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 760px) { .eco__row { grid-template-columns: 16rem minmax(0,1fr); } }
.eco__name { font-family: var(--f-display); font-weight: 800; font-stretch: 116%; font-size: clamp(1.15rem, 2.4vw, 1.5rem); text-transform: uppercase; letter-spacing: -.018em; line-height: 1; }
.eco__row:first-child .eco__name { color: var(--volt); }
.eco__what { color: var(--chalk-mid); font-size: var(--t-sm); max-width: 62ch; }

.ending { padding-block: clamp(5rem, 14vh, 9rem); }
.ending__inner { display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.ending .d-hero { font-size: clamp(2.3rem, 6.4vw, 5.6rem); max-width: 22ch; }
.ending .claim { color: var(--chalk-mid); }

/* ── 11. REDUCED MOTION ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .fan .fan__card { opacity: 1; transform: none; }
  .js .challenge__fill { width: var(--p); }
  .js .trend i { width: var(--p); }
  .js .fitness__trace polyline { clip-path: none; }
  .btn:hover, .year__card:hover, .share__card:hover { transform: none; }
  .rallyon__ball { display: none; }
}
