/* Social Saints · the Saints CrossFit look (social media posters): cool black, Saints cyan #06B1CF, white;
   heavy condensed headlines (Anton), wide-tracked capitals (Montserrat), thin cyan frames, sharp corners. */
:root {
  --bg: #05080A; --bg2: #0A0E11; --card: #0D1215; --card2: #131A1E; --card3: #1B2428;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.15);
  --text: #F5F7F8; --text2: #C9D1D5; --muted: #85919A; --dim: #3E4A51;
  --teal: #06B1CF; --teal2: #3FCDE6; --teal-ink: #00151B; --teal-soft: rgba(6,177,207,.10); --teal-line: rgba(6,177,207,.55);
  --red: #C41230; --lilac: #C9B3FF; --ok: #8fd19e; --warn: #e0a15f; --bad: #e06c6c;
  --r: 6px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Anton', 'Bebas Neue', Impact, system-ui, sans-serif;
  --track: .26em;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
/* a soft studio light from the top, like the posters */
body { background: radial-gradient(120% 60% at 70% -10%, rgba(120,150,165,.10), transparent 60%), radial-gradient(80% 50% at 0% 100%, rgba(6,177,207,.05), transparent 70%), var(--bg);
  background-attachment: fixed; min-height: 100vh; }
a { color: var(--teal); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font-family: var(--display); font-size: 38px; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
h2 { font-family: var(--display); font-size: 27px; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; }
h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
::selection { background: var(--teal); color: var(--teal-ink); }
.ic { flex: none; }
.muted { color: var(--muted); } .sm { font-size: 13.5px; } .xs { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* boot / spinner */
.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 24px; }
.boot-logo { width: 150px; height: auto; opacity: .95; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: none; } }
.brand b { color: var(--teal); font-weight: 400; }
.spin { display: grid; place-items: center; padding: 40px; }
.spin i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line2); border-top-color: var(--teal); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* layout */
.shell { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(5,8,10,.86); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-size: 21px; letter-spacing: .06em; line-height: 1; }
.brand img { height: 26px; width: auto; }
.page { max-width: 760px; margin: 0 auto; padding: 22px 16px 32px; }
.page.wide { max-width: 1100px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 22px; flex-wrap: wrap; }
/* the short white rule under every page title, as on the posters */
.ph h1::after { content: ''; display: block; width: 44px; height: 3px; margin-top: 12px; background: var(--text); }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; margin-bottom: 8px; }
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: rgba(5,8,10,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.nav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; color: var(--muted);
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nav a.on { color: var(--text); }
.nav a.on svg { color: var(--teal); }
.nav a.on::before { content: ''; position: absolute; top: -4px; left: 30%; right: 30%; height: 2px; background: var(--teal); }
@media (min-width: 900px) {
  .shell { padding-bottom: 0; padding-left: 232px; }
  .nav { top: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 84px 14px 14px;
    border-top: 0; border-right: 1px solid var(--line); }
  .nav a { flex: none; flex-direction: row; gap: 14px; padding: 12px 14px; font-size: 11.5px; }
  .nav a.on { background: linear-gradient(90deg, var(--teal-soft), transparent); }
  .nav a.on::before { top: 8px; bottom: 8px; left: 0; right: auto; width: 2px; height: auto; }
  .top { padding-left: 24px; }
}

/* cards & controls */
.card { position: relative; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card { margin-top: 12px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h .ic { color: var(--teal); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 3px;
  border: 1px solid var(--teal); background: var(--teal); color: var(--teal-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: transform .12s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { background: var(--teal2); box-shadow: 0 6px 24px rgba(6,177,207,.25); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--teal-line); background: var(--teal-soft); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(224,108,108,.4); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 11px; letter-spacing: .16em; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 3px; border: 1px solid var(--line2);
  background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--teal-line); color: var(--teal); }
.icon-btn.sm { width: 32px; height: 32px; }
.linkish { background: none; border: 0; padding: 0; color: var(--teal); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 10.5px; color: var(--text2); margin-bottom: 8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.field .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 3px; border: 1px solid var(--line2);
  background: rgba(0,0,0,.35); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 0; background: transparent; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; }
.seg button { min-height: 38px; padding: 0 16px; border-radius: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--teal); color: var(--teal-ink); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--card3); color: var(--text2); white-space: nowrap; }
.chip.teal { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal-line); }
.chip.red { background: rgba(196,18,48,.18); color: #ff8fa1; }
.chip.lilac { background: rgba(212,170,255,.14); color: var(--lilac); }
.chip.warn { background: rgba(224,161,95,.16); color: var(--warn); }
.err { background: rgba(224,108,108,.08); color: #f09a9a; padding: 11px 14px; border-left: 2px solid var(--bad); border-radius: 2px; margin-bottom: 14px; font-size: 13.5px; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--text); margin: 10px 0 4px; }
.demo-bar { background: var(--teal-soft); color: var(--teal); font-size: 12.5px; text-align: center; padding: 6px 12px; }

/* avatars */
.av { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--card3); color: var(--text2); font-weight: 600; border: 2px solid var(--teal-line); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.av-grid button { padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; aspect-ratio: 1; }
.av-grid button.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.av-grid img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* modal */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; background: rgba(0,0,0,.6); }
@media (min-width: 700px) { .overlay { place-items: center; } }
.overlay { backdrop-filter: blur(6px); }
.modal { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--card); border: 1px solid var(--line2); border-top: 2px solid var(--teal);
  border-radius: 8px 8px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal { border-radius: 6px; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* toasts */
.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 3px; background: rgba(13,18,21,.96); border: 1px solid var(--line2); border-left: 2px solid var(--teal); font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.err { border-color: rgba(224,108,108,.5); }

/* login */
/* sign-in: a poster — logo, SOCIAL in white, SAINTS in cyan, the short rule, a tracked line, the form */
.login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; overflow: hidden; }
.login::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url('../assets/brand/saints-alas.png') no-repeat 115% 8% / min(620px, 120vw) auto; opacity: .06; filter: blur(1px); }
.login-box { width: min(400px, 100%); }
.login-mark { display: block; width: 132px; height: auto; margin: 0 0 30px -6px; }
.login-logo { font-family: var(--display); font-size: 64px; line-height: .92; text-transform: uppercase; margin-bottom: 0; }
.login-logo b { color: var(--teal); font-weight: 400; display: block; font-size: 1.16em; letter-spacing: -.005em; }
.login-rule { width: 56px; height: 3px; background: var(--text); margin: 20px 0 16px; }
.tagline { font-size: 10.5px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--text2); margin-bottom: 30px; }
.login-foot { display: block; width: 160px; height: auto; margin: 34px auto 0; opacity: .9; }
.login-box h2 { margin-bottom: 8px; }
.login .card { background: rgba(13,18,21,.7); backdrop-filter: blur(8px); }
.frame { border: 1px solid var(--teal-line); border-radius: 2px; padding: 16px; }

/* today: whiteboard */
.day-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.day-nav .grow { text-align: center; font-weight: 600; }
.block:not(.btn) { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.block.linked:not(.btn) { margin-top: -6px; border-top-left-radius: 6px; border-top-right-radius: 6px; }
.block-h { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.block-letter { font-family: var(--display); font-size: 26px; color: var(--teal); line-height: 1; }
.block-title { font-family: var(--display); font-size: 24px; letter-spacing: .5px; line-height: 1.05; }
.target { color: var(--text2); font-size: 14px; margin-top: 2px; }
.moves { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.moves li { display: flex; gap: 10px; align-items: baseline; }
.moves .reps { min-width: 52px; font-weight: 700; color: var(--teal); }
.moves .load { color: var(--text2); font-size: 14px; }
.moves .tag { font-size: 11px; color: var(--lilac); text-transform: uppercase; letter-spacing: 1px; }
.lv-tabs { margin: 4px 0 2px; }
.score-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.my-score { font-family: var(--display); font-size: 26px; letter-spacing: .5px; }
.team-note { display: flex; gap: 8px; align-items: center; color: var(--lilac); font-size: 14px; margin-top: 8px; }

/* today: controls, whiteboard (same look as gutiandres.com) and the companion standing next to it */
.day-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wb { position: relative; margin: 4px 0 22px; }
.wb-surface { position: relative; padding: 18px 22px 20px; border-radius: 6px; color: #1d1d1d; min-height: 220px;
  background: radial-gradient(120% 90% at 18% 10%, #ffffff 0%, #f4f5f3 55%, #e9ebe8 100%);
  border: 9px solid #b9bec4; border-color: #d4d8dc #a9aeb4 #9aa0a6 #c4c8cd;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 2px 10px rgba(0,0,0,.06), 0 10px 26px rgba(0,0,0,.45); }
.wb-surface::after { content: ''; display: block; height: 70px; } /* room for the companion in the corner */
.wb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid rgba(30,79,191,.55); }
.wb-track { display: inline-block; padding: 1px 10px 2px; border-radius: 4px; background: #06B1CF; color: #00151B; font-family: 'Permanent Marker', cursive; font-size: 15px; transform: rotate(-2deg); }
.wb-lv { font-family: 'Permanent Marker', cursive; font-size: 15px; color: #fff; background: #c62828; padding: 0 8px; border-radius: 4px; transform: rotate(1.5deg); }
.wb-date { font-family: 'Permanent Marker', 'Kalam', cursive; font-size: 15px; color: #1e4fbf; text-transform: uppercase; }
.wb-title { flex-basis: 100%; font-family: 'Permanent Marker', cursive; font-size: 22px; color: #c62828; line-height: 1.1; }
.wb-l { font-family: 'Kalam', 'Comic Sans MS', cursive; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.wb-block { font-family: 'Permanent Marker', cursive; color: #c62828; font-size: 18px; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.wb-letter { color: #1d1d1d; } .wb-q { color: #1e4fbf; } .wb-fmt { color: #1e4fbf; font-size: 16px; }
.wb-move { padding-left: 22px; color: #1d1d1d; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.wb-qty { color: #1e4fbf; } .wb-load { color: #1f7a3a; } .wb-tag { color: #8a2be2; font-size: 14px; font-weight: 400; }
.wb-then { padding-left: 22px; margin-top: 4px; color: #1e4fbf; font-family: 'Permanent Marker', cursive; font-size: 15px; text-transform: lowercase; }
.wb-then::before { content: '↓ '; }
.wb-note { padding-left: 22px; color: #6b6b6b; font-size: 16px; }
.wb-team { padding-left: 22px; color: #8a2be2; font-size: 16px; }
.wb-tray { position: relative; height: 12px; margin: -2px 8px 0; border-radius: 0 0 6px 6px; background: linear-gradient(#b4b9bf, #8d9399); box-shadow: 0 4px 8px rgba(0,0,0,.35);
  display: flex; align-items: flex-start; gap: 6px; padding: 0 14px; }
.wb-tray .mk { width: 34px; height: 7px; margin-top: -4px; border-radius: 3px 5px 5px 3px; background: var(--mk); box-shadow: inset -7px 0 0 rgba(255,255,255,.75); }
.wb-tray .mk.red { --mk: #c62828; } .wb-tray .mk.blue { --mk: #1e4fbf; } .wb-tray .mk.black { --mk: #222; } .wb-tray .mk.green { --mk: #1f7a3a; }
.wb-tray .eraser { width: 40px; height: 9px; margin: -6px 0 0 auto; border-radius: 3px; background: linear-gradient(#3b3b3b 0 45%, #e8e2d0 45%); }
.wb-buddy { position: absolute; right: -4px; bottom: 2px; z-index: 2; }
@media (max-width: 560px) { .wb-surface { padding: 14px 14px 16px; border-width: 7px; } .wb-l { font-size: 17px; } .wb-block { font-size: 16px; } .wb-move, .wb-then, .wb-note, .wb-team { padding-left: 12px; } }

/* the companion */
.buddy { position: relative; display: inline-flex; flex-direction: column; align-items: flex-end; }
.buddy-av { width: var(--s); height: var(--s); padding: 0; border-radius: 50%; border: 3px solid var(--teal); background: #141414; overflow: hidden; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 0 4px rgba(6,177,207,.15); animation: float 3.6s ease-in-out infinite; }
.buddy-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buddy-av.hop { animation: hop .55s var(--ease), float 3.6s ease-in-out .55s infinite; }
.buddy-say { position: relative; max-width: 220px; margin-bottom: 8px; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--teal); color: var(--teal-ink);
  font-size: 13.5px; font-weight: 600; line-height: 1.3; box-shadow: 0 4px 14px rgba(0,0,0,.35); animation: pop .35s var(--ease); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-16px) scale(1.06) rotate(-4deg); } 70% { transform: translateY(0) scale(.97); } 100% { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.95); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .buddy-av, .buddy-av.hop, .buddy-say { animation: none; } }

/* today: the blocks that go to the leaderboard */
.score-card { display: flex; align-items: center; gap: 12px; }
.score-card .my-score { margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.mini-board { background: #f4f5f3; color: #1d1d1d; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-family: 'Kalam', cursive; font-size: 17px; }
.mini-board b { color: #1e4fbf; } .mini-board .ld { color: #1f7a3a; }
.lrow.pick { background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; width: 100%; text-align: left; }

/* rewards */
.rank-card { display: flex; align-items: center; gap: 14px; }
.rank-ic { font-size: 44px; line-height: 1; }
.rank-name { font-family: var(--display); font-size: 30px; letter-spacing: .5px; line-height: 1; }
.rank-pts { text-align: center; } .rank-pts b { display: block; font-family: var(--display); font-size: 34px; color: var(--teal); line-height: 1; } .rank-pts span { font-size: 11px; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--card3); margin: 8px 0 4px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--teal2)); }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.medal-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-align: center; }
.medal-cell b { font-size: 13.5px; }
.medal { --ring: #4a4a4a; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--card3) 0); }
.medal::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2a2a, #121212); }
.medal-ic { position: relative; font-size: calc(var(--s) * .44); line-height: 1; }
.medal.locked .medal-ic { filter: grayscale(1); opacity: .45; }
.medal.locked { --ring: var(--teal); }
.medal.tier-bronze { --ring: #cd7f32; } .medal.tier-silver { --ring: #c9d1d9; } .medal.tier-gold { --ring: #f2c14e; }
.medal.tier-diamond { --ring: #06B1CF; box-shadow: 0 0 16px rgba(6,177,207,.45); } .medal.tier-legend { --ring: #D4AAFF; box-shadow: 0 0 18px rgba(212,170,255,.5); }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.how { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.how b { display: inline-block; min-width: 92px; color: var(--teal); }
.cele { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; overflow: hidden; padding-top: 6px; }
.cele-points { font-family: var(--display); font-size: 40px; color: var(--teal); line-height: 1; } .cele-points span { font-size: 18px; color: var(--text2); }
.cele-line { font-size: 17px; font-weight: 600; }
.cele-medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }
.cele-medal { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: pop .5s var(--ease); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; border-radius: 2px; background: var(--c); animation: fall 1.8s ease-in var(--d) forwards; }
@keyframes fall { to { transform: translateY(380px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* leaderboard */
.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.lb .pos { width: 30px; text-align: center; font-family: var(--display); font-size: 24px; color: var(--muted); }
.lb li.p1 .pos { color: #f2c14e; } .lb li.p2 .pos { color: #c9d1d9; } .lb li.p3 .pos { color: #d08b5b; }
/* a coach who trains: in their real place, a COACH tag instead of a position */
.lb li.staff { background: linear-gradient(90deg, rgba(255,255,255,.03), transparent); }
.coach-tag { display: inline-block; padding: 3px 5px; border: 1px solid var(--teal-line); border-radius: 2px; color: var(--teal); font-family: var(--font); font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.lb.unranked .pos { color: var(--dim); }
.lb .who { flex: 1; min-width: 0; }
.lb .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .score { font-family: var(--display); font-size: 24px; letter-spacing: .5px; text-align: right; }
.lb .me { background: linear-gradient(90deg, var(--teal-soft), transparent); box-shadow: inset 2px 0 0 var(--teal); border-radius: 2px; }
.lb .changes { color: var(--lilac); font-size: 12.5px; }
.react { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2);
  background: transparent; font-size: 13px; cursor: pointer; color: var(--text2); }
.react.on { border-color: var(--teal-line); color: var(--teal); }
.av-stack { display: inline-flex; }
.av-stack .av + .av { margin-left: -10px; }

/* staff tables */
.list { display: flex; flex-direction: column; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }
.stat { background: transparent; border: 1px solid var(--teal-line); border-radius: 2px; padding: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; font-weight: 400; }
.stat span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tbl-wrap { overflow-x: auto; }
.lb .pos { width: 46px; flex: none; }
/* more than 5 sections on a phone (staff who train): icons only, the label of the open one stays */
@media (max-width: 560px) {
  .nav.many a { padding-top: 10px; }
  .nav.many a:not(.on) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
