/* =====================================================================
   Athlitz theme — LAYOUT
   Page frame, top bar, nav, hero, "from clip to score" numbers,
   sport selector rows, activity log, footer.
   ===================================================================== */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 96px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0;
  background: rgba(243, 242, 238, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar img { width: 26px; height: 26px; border-radius: 50%; }
.topbar h1 { font-size: 15px; letter-spacing: .02em; }
.acct { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.acct .chip {
  border: 0; background: transparent; padding: 6px 0; min-height: 0;
  font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.acct .chip::after { content: " →"; }
.badge {
  background: var(--lime); color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- nav: mono list with lime dots ---------- */
nav.mainnav {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin: 0 0 8px; padding: 12px 0;
}
nav.mainnav a {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 150ms ease;
}
nav.mainnav a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  transition: transform 200ms var(--ease-out);
}
nav.mainnav a.on::before { background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  nav.mainnav a:hover { color: var(--muted); }
  nav.mainnav a:hover::before { transform: scale(1.5); }
}

/* ---------- hero ---------- */
.hero { padding: 40px 0 24px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px 48px; align-items: start;
}
.hero .eyebrow { margin: 0 0 22px; color: var(--ink); }
.hero-h {
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(50px, 7.4vw, 108px); line-height: .88; letter-spacing: -.05em;
  margin: 0 0 32px; color: var(--ink);
}
.hero-h .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-h .ln > span { display: inline-block; }
.hero-h .lime { background: var(--lime); padding: 0 .08em; margin-left: -.04em; }

.hero p.lead {
  font-size: 16px; line-height: 1.55; margin: 0 0 24px; max-width: 46ch; color: var(--ink);
}
.hero-side { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.hero-side .mono { line-height: 1.6; max-width: 34ch; margin: 0; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hero-fine { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); margin: 16px 0 0; }

.scrolldown {
  display: inline-flex; align-items: flex-end; gap: 14px; margin-top: 44px;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; text-decoration: none;
}
.scrolldown svg { width: 34px; height: 40px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .scrolldown:hover svg { transform: translateY(4px); }
}

/* first-visit entrance — rare, so it can carry a little delight */
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-h .ln > span { animation: rise 700ms var(--ease-out) both; }
.hero-h .ln:nth-child(2) > span { animation-delay: 60ms; }
.hero-h .ln:nth-child(3) > span { animation-delay: 120ms; }
.hero .fade { animation: fadeUp 500ms var(--ease-out) both; animation-delay: 220ms; }
.hero .fade.d2 { animation-delay: 300ms; }

/* ---------- live scoreboard (the hero "photo") ---------- */
.board {
  background: var(--panel); color: var(--cream);
  padding: 16px 18px 14px; position: relative;
}
.board-top {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em; text-transform: uppercase;
  color: rgba(243,242,238,.6); padding-bottom: 10px; border-bottom: 1px solid rgba(243,242,238,.14);
}
.board-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease infinite; }
.board-rows { min-height: 132px; }
.board-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(243,242,238,.1);
}
.board-row .r { font-family: var(--f-mono); font-size: 11px; color: var(--lime); }
.board-row .n { font-size: 14px; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .n em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: rgba(243,242,238,.5); margin-left: 6px; }
.board-row .s { font-family: var(--f-display); font-size: 34px; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.board-row.skel { height: 44px; }
.board-row.skel::after {
  content: ""; display: block; height: 10px; width: 70%; grid-column: 1 / -1;
  background: rgba(243,242,238,.12); animation: pulse 1.4s ease infinite;
}
.board-foot { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; color: rgba(243,242,238,.45); padding-top: 10px; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- old hero lockup (other pages may still use it) ---------- */
.hero-mark { display: none; }

/* ---------- "from clip to score": big staggered numbers ---------- */
.about { margin-top: 72px; }
.about-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; }
.about-head h2 { margin: 0; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin-top: 40px;
  counter-reset: step;
}
.step { position: relative; padding: 0 0 24px; border-top: 1px solid var(--ink); }
.step:nth-child(2) { margin-top: 72px; }
.step:nth-child(3) { margin-top: 144px; }
.step .n {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(72px, 9vw, 120px);
  line-height: .9; letter-spacing: -.06em; margin: 18px 0 18px;
}
.step .t {
  font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; line-height: 1.55;
  max-width: 28ch; margin-left: auto; text-align: right; color: var(--ink);
}
.step .stepmark, .step .n img { display: none; }

/* ---------- activity log ---------- */
.logstrip { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.logline {
  font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; color: var(--muted);
  border-left: 2px solid var(--lime); padding: 6px 12px; background: var(--card);
  animation: fadeUp 250ms var(--ease-out) both;
}
.logline.done { color: var(--ink); border-left-color: var(--ink); }
.logline .tick { color: var(--good); margin-right: 6px; }

/* ---------- sport selector: full-width rows ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin: 96px 0 28px; }
.section-head h2 { margin: 0; font-size: clamp(44px, 7.4vw, 96px); letter-spacing: -.045em; }
.sport-tagline { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink); margin: 0; max-width: 40ch; line-height: 1.6; }

.sport-select { display: flex; flex-direction: column; margin: 0 0 8px; border-bottom: 1.5px solid var(--ink); }
.sport-tile {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 260px) 34px;
  align-items: center; gap: 20px; width: 100%;
  padding: 10px 14px 10px 4px; margin: 0;
  background: transparent; border: 0; border-top: 1.5px solid var(--ink); border-radius: 0;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color 200ms ease;
}
.sport-tile .sport-icon { font-size: 24px; line-height: 1; text-align: center; filter: grayscale(1); transition: filter 200ms ease; }
.sport-tile .sport-name {
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 64px); line-height: .95; letter-spacing: -.04em;
}
.sport-tile .sport-desc { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; line-height: 1.5; color: var(--ink); }
.sport-tile .sport-go {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); font-size: 14px; line-height: 1;
  transition: transform 200ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.sport-tile.on { background: var(--lime); }
.sport-tile.on .sport-icon { filter: none; }
.sport-tile.on .sport-go { background: var(--ink); color: var(--lime); transform: rotate(90deg); }
.sport-tile:active { transform: scale(.995); }
@media (hover: hover) and (pointer: fine) {
  .sport-tile:not(.on):hover { background: rgba(197, 230, 92, .22); }
  .sport-tile:not(.on):hover .sport-go { transform: translateX(3px); }
}

/* ---------- footer ---------- */
footer {
  margin-top: 96px; padding-top: 18px; border-top: 1.5px solid var(--ink);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; line-height: 1.8;
  color: var(--muted); text-align: left;
}
footer a { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .about-head, .section-head { grid-template-columns: 1fr; }
  .board-rows { min-height: 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px 72px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 24px; }
  .step .t { text-align: left; margin-left: 0; }
  .sport-tile { grid-template-columns: 28px minmax(0, 1fr) 30px; gap: 12px; }
  .sport-tile .sport-desc { grid-column: 2; grid-row: 2; margin-top: -4px; }
  .sport-tile .sport-go { grid-column: 3; grid-row: 1 / span 2; }
  .sport-tile .sport-icon { grid-row: 1 / span 2; font-size: 20px; }
  .section-head { margin-top: 72px; }
  .hero { padding-top: 24px; }
  .scrolldown { margin-top: 28px; }
}
@media (max-width: 560px) {
  .hero-cta .btn { flex: 1 1 100%; }
  nav.mainnav { gap: 6px 16px; }
}
