/* NKC Wrestling · Athlete Progress Tracker
   Same visual language as technique.nkcwrestling.com (night purple, gold, Barlow Condensed).
   No inline styles anywhere: this sheet works under the pages' strict Content-Security-Policy. */

:root {
  color-scheme: dark;
  --night: #0e0815;
  --deep: #170d22;
  --plum: #2b173c;
  --purple: #512d6d;
  --violet: #9a6cc6;
  --gold: #ffcd34;
  --gold-shade: #c99a00;
  --on-gold: #1a0f26;
  --text: #efe9f5;
  --muted: #b9adc7;
  --dim: #9182a2;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);
  --panel: rgba(255, 255, 255, .035);
  --display: "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", Arial, sans-serif;
  --body: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 92% -10%, rgba(81, 45, 109, .6), transparent 65%),
    radial-gradient(760px 520px at -12% 105%, rgba(81, 45, 109, .32), transparent 62%);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(100% - 40px, 640px); margin-inline: auto; }

.eyebrow {
  font: 700 13px/1.2 var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 8, 21, .84);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.brand-text { display: flex; flex-direction: column; gap: 4px; font-family: var(--display); line-height: 1; text-transform: uppercase; }
.brand-text small { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--gold); }
.brand-text strong { font-size: 21px; font-weight: 800; letter-spacing: .02em; color: #fff; }

/* ---------- Hero ---------- */

main { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

.hero { padding: 24px 0 0; }

.updated { display: flex; align-items: center; gap: 11px; }
.updated::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 205, 52, .18);
}

h1 {
  margin-top: 12px;
  font-size: clamp(52px, 16.5vw, 112px);
  line-height: .86;
  letter-spacing: -.005em;
  color: #fff;
  overflow-wrap: break-word;
}
h1 .last { display: block; color: var(--gold); }

.rule { width: 132px; height: 5px; margin: 18px 0 14px; border-radius: 3px; background: var(--gold); }

.lede { max-width: 36ch; font-size: 17px; line-height: 1.45; color: var(--muted); }

/* ---------- Scoreboard ---------- */

.scoreboard {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(81, 45, 109, .42), rgba(255, 255, 255, .03) 70%);
}

.ring { position: relative; display: grid; place-items: center; width: 104px; aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: rgba(81, 45, 109, .6); stroke: rgba(255, 255, 255, .12); stroke-width: 6; }
.ring-fill { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; opacity: 0; }
.ring-fill.on { opacity: 1; }
.ring img { position: relative; width: 72%; height: auto; margin: 4% 0 0 2%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }

.score-num { display: flex; align-items: baseline; gap: 10px; }
.score-num b { font: 800 64px/.82 var(--display); color: #fff; }
.score-num span { font: 700 19px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.is-started .score-num b { color: var(--gold); }

.score-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font: 700 14px/1.2 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.score-sub b { font-size: 17px; font-weight: 800; letter-spacing: .02em; color: #fff; }

/* ---------- Section blocks ---------- */

.block { margin-top: 46px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block-head h2 { margin-top: 8px; font-size: 42px; color: #fff; }
.tally { flex: none; font: 700 20px/1 var(--display); letter-spacing: .06em; color: var(--dim); }
.tally b { font-size: 30px; font-weight: 800; color: var(--gold); }

.group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .18em;
  color: var(--muted);
}
.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
ul + .group { margin-top: 26px; }

.goal-text { font-size: 18px; font-weight: 600; line-height: 1.3; color: #fff; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 9px;
  font: 700 12px/1.2 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.tag { padding: 4px 8px 3px; border-radius: 6px; background: rgba(154, 108, 198, .22); letter-spacing: .14em; color: #dccbee; }
.meta .count { color: var(--gold); }

.empty-line { padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--dim); }

.empty {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--dim);
}
.empty h2 { flex: none; font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .2em; color: var(--muted); }

/* ---------- Match goals (set by Coach, never tapped) ---------- */

.goals, .fixes, .wins, .deck, .shelf { display: grid; gap: 10px; }

.goal { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.goal-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px; }

.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--on-gold);
  font: 800 27px/1 var(--display);
  box-shadow: 0 4px 0 var(--gold-shade);
}

/* Multi-part goals such as KUSS: every part has to be hit to master the goal. */

.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; padding: 0 12px 14px; }
.part {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 10px 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, .03);
}
.letter { font: 800 52px/.9 var(--display); color: var(--gold); }
.part-text { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--text); }
.part-status { margin-top: 7px; font: 700 11px/1.1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.part.is-hit { border-color: var(--gold); background: var(--gold); box-shadow: 0 4px 0 var(--gold-shade); }
.part.is-hit .letter, .part.is-hit .part-text, .part.is-hit .part-status { color: var(--on-gold); }

/* ---------- Corrections ---------- */

.fix { padding: 15px 16px 16px; border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 16px; background: var(--panel); overflow: hidden; }
.fix.has-fix { border-left-color: var(--gold); }
.issue { font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--text); }
.has-fix .issue { font-size: 15px; color: var(--muted); }
.do { display: flex; align-items: flex-start; gap: 10px; margin-top: 7px; font-size: 19px; font-weight: 600; line-height: 1.3; color: #fff; }
.do svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fix .film { margin: 14px 0 0; }

/* ---------- Keep doing ---------- */

.wins li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 205, 52, .32);
  border-radius: 16px;
  background: rgba(255, 205, 52, .07);
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}
.wins svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- After your match ---------- */

.after {
  margin-top: 46px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(81, 45, 109, .6), rgba(81, 45, 109, .16));
}
.after h2 { margin-top: 8px; font-size: 34px; color: #fff; }
.after ol { display: grid; gap: 8px; margin-top: 16px; counter-reset: ask; }
.after li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(14, 8, 21, .5);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  counter-increment: ask;
}
.after li::before {
  content: counter(ask);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--gold);
  font: 800 17px/1 var(--display);
  color: var(--gold);
}

/* ---------- On deck ---------- */

.deck li { padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 16px; }
.deck .goal-text { font-weight: 500; color: var(--muted); }
.hint { margin-top: 12px; font-size: 14px; color: var(--dim); }

/* ---------- Mastered ---------- */

.shelf li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 205, 52, .36);
  border-radius: 16px;
  background: rgba(255, 205, 52, .07);
}
.done { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--gold); }
.done svg { width: 19px; height: 19px; fill: none; stroke: var(--on-gold); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Earlier notes ---------- */

.older { margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.older summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 20px 0 18px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.older summary::-webkit-details-marker { display: none; }
.older summary h2 { font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: .18em; color: var(--muted); }
.older summary b { font: 800 15px/1 var(--display); color: var(--gold); }
.older summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.older[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.notes { border-top: 1px solid var(--line); }
.notes li { position: relative; padding: 15px 18px 15px 44px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.notes li + li { border-top: 1px solid var(--line); }
.notes li::before { content: ""; position: absolute; left: 18px; top: 26px; width: 12px; height: 3px; border-radius: 2px; background: var(--dim); }
.notes b { color: var(--text); font-weight: 600; }
.note-date { display: block; margin-bottom: 3px; font: 700 12px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* ---------- Technique video (plays in the page) ---------- */

.film { margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--deep); overflow: hidden; }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; display: block; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.poster:hover img { transform: scale(1.03); }

.watch {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 15px 5px 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font: 800 15px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}
.watch i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--on-gold); }
.watch svg { width: 14px; height: 14px; margin-left: 2px; fill: var(--gold); }
.watch b { font-weight: 700; opacity: .75; }

.yt-out { display: block; padding: 10px 14px 0; font-size: 14px; color: var(--dim); text-decoration: none; }
.yt-out b { font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.film-cap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; }
.film-cap strong { font: 800 21px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.lesson {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -10px 0;
  font: 700 13px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
}

.jump {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: 0 10px 10px;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
}
.jump:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.jump svg { flex: none; width: 14px; height: 14px; fill: var(--gold); }
.jump b { flex: none; margin-left: auto; font: 700 16px/1 var(--display); letter-spacing: .06em; color: var(--gold); }

/* ---------- Footer ---------- */

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  margin-top: 38px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--on-gold);
  font: 800 19px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--gold-shade);
  transition: transform .12s, box-shadow .12s;
}
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-shade); }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero > *, main > section:nth-of-type(2), main > section:nth-of-type(3) { animation: rise .7s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: .05s; }
  .hero > :nth-child(3) { animation-delay: .1s; }
  .hero > :nth-child(4) { animation-delay: .14s; }
  .hero > :nth-child(5) { animation-delay: .2s; }
  main > section:nth-of-type(2) { animation-delay: .26s; }
  main > section:nth-of-type(3) { animation-delay: .32s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Bigger screens ---------- */

@media (min-width: 700px) {
  .hero { padding-top: 52px; }
  .scoreboard { padding: 22px 28px 22px 22px; gap: 26px; }
  .ring { width: 132px; }
  .score-num b { font-size: 80px; }
  .block-head h2 { font-size: 52px; }
  .part { min-height: 150px; padding: 14px; }
  .letter { font-size: 68px; }
  .part-text { font-size: 15px; }
}

@media (max-width: 359px) {
  .wrap { width: min(100% - 28px, 640px); }
  .ring { width: 84px; }
  .score-num b { font-size: 54px; }
  .score-num span { font-size: 16px; }
  .letter { font-size: 46px; }
  .part-text { font-size: 13px; }
}
