/* Support Brahs — site styles
   Layout: full-screen 3D locker room up top, then a regular single-page site.
   One deliberate dark look: locker-room ink, team purple, tackle-twill white. */
[hidden] { display: none !important; }
:root {
  --ink: #0b0910;
  --ink-2: #131020;
  --panel: #1a1529;
  --purple: #4c1fb4;
  --purple-hi: #b79bff;
  --white: #f4f1fa;
  --muted: #a59cba;
  --line: rgba(244, 241, 250, .12);
  --glass: rgba(14, 10, 22, .74);
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--purple-hi); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter-r) 10px var(--gutter);
  background: linear-gradient(to bottom, rgba(11, 9, 16, .85), rgba(11, 9, 16, 0));
  transition: background .3s;
}
.nav.solid { background: rgba(11, 9, 16, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
.nav nav { display: flex; gap: clamp(10px, 2.4vw, 28px); }
.nav nav a { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--white); opacity: .85; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav nav a:hover, .nav nav a.active { opacity: 1; border-bottom-color: var(--purple-hi); }
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav nav a { font-size: 13px; letter-spacing: .1em; }
}

/* ---------- locker room ---------- */
.locker { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--ink); }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(5, 3, 10, .55) 100%); }
.locker-ui {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 var(--gutter-r) calc(18px + env(safe-area-inset-bottom, 0px)) var(--gutter);
}
.eyebrow { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.roster { pointer-events: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; display: flex; gap: 6px; padding: 4px 2px; }
.roster::-webkit-scrollbar { display: none; }
.roster button { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; transition: background .2s, border-color .2s; }
.roster button b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .02em; min-width: 1.2em; text-align: right; font-variant-numeric: tabular-nums; }
.roster button:hover { border-color: rgba(183, 155, 255, .6); }
.roster button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.locker-actions { pointer-events: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.controls { display: flex; gap: 4px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.controls button { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: transparent; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .2s; }
.controls button:hover { background: rgba(255, 255, 255, .08); }
.controls button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.exit { font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--white); border-radius: 999px; padding: 11px 20px; transition: transform .2s, background .2s; }
.exit:hover { background: #fff; transform: translateY(2px); }
.exit span { display: inline-block; margin-left: 4px; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink); z-index: 5; transition: opacity .6s; }
#loading div { font-family: var(--label); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-size: 13px; }
#loading.done { opacity: 0; pointer-events: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 10vw, 120px); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section.alt { background: var(--ink-2); }
.wrap { max-width: 1080px; margin: 0 auto; }
.kicker { margin: 0 0 10px; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--purple-hi); }
h2 { margin: 0 0 24px; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.6vw, 52px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
h3 { font-family: var(--label); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; margin: 0 0 18px; max-width: 34em; }
.prose p { max-width: 36em; }
.muted { color: var(--muted); max-width: 32em; }
.num { font-family: var(--display); font-weight: 400; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--purple); border: 1px solid var(--purple); border-radius: 999px; padding: 12px 20px; transition: background .2s, border-color .2s; }
a.btn:hover { background: #5b2fc4; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--white); }
.btn.ghost:hover { border-color: var(--purple-hi); background: transparent; }
.btn[aria-disabled="true"] { background: transparent; border-color: var(--line); color: var(--muted); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.facts { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { background: var(--ink); padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.facts dt { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts .num { color: var(--purple-hi); margin-left: 4px; }
.sub { margin: clamp(48px, 7vw, 80px) 0 18px; font-size: 15px; letter-spacing: .22em; color: var(--muted); }
.squad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.squad li button { width: 100%; display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid transparent; border-radius: 12px; padding: 12px 16px; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.squad li button:hover, .squad li button:focus-visible { border-color: rgba(244,241,250,.35); transform: translateY(-1px); }
.squad .num { font-size: 34px; line-height: 1; min-width: 1.6em; color: #fff; }
.squad .name { font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; }

/* history */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--purple-hi); }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { margin: 0; color: var(--muted); max-width: 40em; }

/* fixture */
.fixture-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fixture-meta { margin: 0; background: var(--ink); padding: 8px 24px; }
.fixture-meta div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fixture-meta div:last-child { border-bottom: 0; }
.fixture-meta dt { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.fixture-meta dd { margin: 0; font-weight: 600; }
.fixture-cta { background: var(--purple); padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.fixture-cta p { margin: 0; font-size: 16px; }
.fixture-cta .btn { align-self: flex-start; background: #fff; color: var(--ink); border-color: #fff; }
.fixture-cta .btn:hover { background: var(--white); }

/* shop */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; margin: 6px 0 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #f2b84b; box-shadow: 0 0 0 4px rgba(242, 184, 75, .18); }
.shop .btn { margin-top: 12px; }
.shop-art { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(76, 31, 180, .6); }

/* contact */
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: 48px calc(36px + env(safe-area-inset-bottom, 0px)); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer-word { width: 220px; opacity: .9; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-family: var(--label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
.footer-meta a { text-decoration: none; color: var(--white); }

@media (max-width: 760px) {
  .about-grid, .fixture-card, .shop { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fixture-meta div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-meta { align-items: flex-start; }
  .shop-art { max-width: 360px; }
}

/* instagram */
.ig { display: inline-block; vertical-align: -3px; }
.nav nav a.nav-ig { display: inline-flex; align-items: center; padding: 6px 0; }
.foot-ig { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .nav nav { gap: 10px; } .nav nav a { font-size: 12px; letter-spacing: .06em; } }

/* movember */
.movember { background: var(--purple); }
.movember .kicker { color: #fff; opacity: .8; }
.mo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: rgba(255,255,255,.18); border-radius: 18px; overflow: hidden; }
.mo-total, .mo-year { background: rgba(11, 9, 16, .28); padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.mo-label { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.mo-big { font-family: var(--display); font-size: clamp(64px, 15vw, 168px); line-height: .95; font-variant-numeric: tabular-nums; }
.mo-note { color: rgba(255,255,255,.8); max-width: 26em; }
.mo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mo-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.dot.live { width: 9px; height: 9px; border-radius: 50%; background: #5fe39a; box-shadow: 0 0 0 4px rgba(95, 227, 154, .22); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95, 227, 154, 0); } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }
.mo-amounts { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mo-mid { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.mo-of { font-family: var(--label); font-weight: 600; font-size: 18px; letter-spacing: .08em; opacity: .85; }
.bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.bar span { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width .8s; }
.mo-move { margin: 0; color: rgba(255,255,255,.85); }
.mo-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.movember .btn { background: #fff; color: var(--ink); border-color: #fff; }
.movember .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
@media (max-width: 760px) { .mo-grid { grid-template-columns: minmax(0, 1fr); } }

.bar.big { height: 18px; }
.mo-goal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--label); font-weight: 600; font-size: 17px; letter-spacing: .06em; }
.mo-goal b { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
.mo-year { gap: 8px; }
.mo-year .bar { height: 8px; }
.mo-sub { color: rgba(255,255,255,.85); margin-top: 40px; }
.mo-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.18); border-radius: 14px; overflow: hidden; }
.mo-top li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(11, 9, 16, .28); }
.mo-top .rank { font-family: var(--display); font-size: 26px; opacity: .7; }
.mo-top .who { font-family: var(--label); font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.mo-top .who a { text-decoration: none; }
.mo-top .who a:hover { text-decoration: underline; }
.mo-top em { font-style: normal; font-size: 12px; letter-spacing: .18em; padding: 3px 8px; margin-left: 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; vertical-align: 3px; }
.mo-top .amt { font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.brand-logo { height: 38px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 28px; } }

/* pickup games */
.pickup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.pickup-form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field .opt { text-transform: none; letter-spacing: .02em; font-weight: 500; }
.field input[type="text"], .field textarea { font: inherit; font-size: 16px; color: var(--white); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; resize: vertical; }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--purple-hi); box-shadow: 0 0 0 3px rgba(183, 155, 255, .2); }
.field ::placeholder { color: #6f6886; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; letter-spacing: .06em; color: var(--white); font-size: 14px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); transition: background .2s, border-color .2s; }
.chips input:checked + span { background: var(--purple); border-color: var(--purple); }
.chips input:focus-visible + span { outline: 2px solid var(--purple-hi); outline-offset: 2px; }
.pickup-form .btn { justify-self: start; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .form-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; } }
.form-status { margin: 0; min-height: 1.4em; color: var(--purple-hi); white-space: pre-line; font-size: 15px; }
@media (max-width: 760px) { .pickup { grid-template-columns: minmax(0, 1fr); } }

/* nav dropdowns */
.nav nav { align-items: center; }
.dd { position: relative; display: flex; align-items: center; gap: 2px; }
.dd-toggle { background: none; border: 0; color: var(--white); opacity: .7; padding: 6px 4px; cursor: pointer; display: inline-flex; }
.dd-toggle:hover { opacity: 1; }
.dd-menu { position: absolute; top: 100%; left: -12px; min-width: 180px; display: none; flex-direction: column; gap: 2px; padding: 6px; margin-top: 4px;
  background: rgba(11, 9, 16, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: flex; }
.nav nav .dd-menu a { padding: 9px 12px; border: 0; border-radius: 8px; font-size: 13px; letter-spacing: .12em; opacity: .9; white-space: nowrap; }
.nav nav .dd-menu a:hover { background: rgba(255,255,255,.07); opacity: 1; }
.dd[data-group="partner"] .dd-menu { left: auto; right: -12px; }
@media (max-width: 640px) { .dd-menu { right: auto; } .dd[data-group="partner"] .dd-menu, .dd[data-group="play"] .dd-menu { left: auto; right: -40px; } }

/* smaller player name chips in the locker room */
.roster { gap: 4px; }
.roster button { font-size: 12px; letter-spacing: .06em; padding: 5px 9px; border-radius: 8px; gap: 5px; }
.roster button b { font-size: 14px; }
.eyebrow { font-size: 11px; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 8px 0 28px; }
.partner-card { display: flex; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.partner-card h3 { margin: 0 0 4px; }
.partner-card p { margin: 0; color: var(--muted); }
.partner-mark { width: 56px; height: 56px; flex: none; }
.partner-mark.text { display: grid; place-items: center; border-radius: 50%; background: var(--purple); font-family: var(--display); font-size: 24px; }
.brand { flex: none; }
@media (max-width: 420px) { .nav { gap: 8px; } .nav nav { gap: 7px; } .nav nav a { font-size: 11.5px; letter-spacing: .04em; } .dd-toggle { padding: 6px 2px; } .brand-logo { height: 24px; } }
.partner-mark.wide { width: 110px; height: auto; }

/* jersey numbers from the team's number artwork */
.sbnum { display: inline-flex; align-items: flex-end; gap: .05em; height: .78em; vertical-align: baseline; }
.sbnum img { height: 100%; width: auto; display: block; }
.roster button b .sbnum { height: .8em; }

/* player profile */
.profile { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(8, 6, 14, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  opacity: 0; transition: opacity .25s; }
.profile.open { opacity: 1; }
.pf-card { position: relative; width: min(620px, 100%); max-height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.profile.open .pf-card { transform: none; }
.pf-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--glass); color: var(--white); font-size: 24px; line-height: 1; cursor: pointer; }
.pf-photo { min-height: 250px; background: #4a2c7a; }
.pf-photo img, .pf-photo video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.pf-ph { height: 100%; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(120% 90% at 50% 20%, #5a3794, #3b2266); }
.pf-ph .sbnum { height: clamp(70px, 13vw, 120px); gap: 6px; }
.pf-ph span { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,241,250,.6); }
.pf-body { padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-num .sbnum { height: 22px; }
.pf-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.5vw, 52px); line-height: .92; letter-spacing: .01em; text-transform: uppercase; }
.pf-season { margin: 0; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.pf-stats div { background: rgba(244,241,250,.05); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.pf-stats b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-stats span { font-family: var(--label); font-weight: 600; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pf-quote { margin: 6px 0 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--white); font-size: 16px; line-height: 1.4; font-style: italic; text-wrap: balance; }
.pf-quote.empty { color: var(--muted); border-left-color: var(--line); font-size: 14px; }
.pf-src { margin: auto 0 0; font-size: 12px; color: var(--muted); }
.pf-src[hidden] { display: none; }
@media (max-width: 640px) {
  .pf-card { grid-template-columns: 1fr; }
  .pf-card { width: min(380px, 100%); }
  .pf-photo, .pf-ph { min-height: 170px; }
  .pf-ph .sbnum { height: 80px; }
  .pf-body { padding: 18px 16px 16px; }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stats b { font-size: 24px; }
}
.pf-status { align-self: flex-start; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 10px 4px; border-radius: 999px; border: 1px solid rgba(244,241,250,.4); color: var(--white); }
.pf-status[hidden] { display: none; }
.pf-stats b { white-space: nowrap; }
@media (min-width: 641px) { .pf-stats b { font-size: 22px; } .pf-stats span { font-size: 10px; letter-spacing: .1em; } }

/* optional Spotify playlist */
.tunes { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tunes-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px);
  color: var(--white); font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.tunes-btn:hover { border-color: rgba(244,241,250,.35); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 4px; background: var(--white); border-radius: 1px; }
.tunes.open .eq i { animation: eq .9s ease-in-out infinite alternate; }
.tunes.open .eq i:nth-child(2) { animation-delay: -.3s; } .tunes.open .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .tunes.open .eq i { animation: none; height: 10px; } }
.tunes-panel { width: min(360px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.35); order: -1; }
.tunes-panel[hidden] { display: none; }
.tunes-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 4px 8px; font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tunes-open { color: var(--white); text-decoration: none; white-space: nowrap; }
.tunes-frame iframe { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; background: #121212; }
@media (max-width: 640px) { .tunes-label { display: none; } .tunes-btn { padding: 12px; } .tunes-frame iframe { height: 152px; } }
.eq i:nth-child(1) { height: 7px; } .eq i:nth-child(2) { height: 13px; } .eq i:nth-child(3) { height: 9px; }
/* the way out is the EXIT sign over the door; the link stays for keyboards and screen readers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }

/* zoom buttons + legible roster label over the floor */
.controls .ctl-sep{width:1px;align-self:stretch;margin:6px 2px;background:rgba(244,241,250,.18)}
.controls button.z{font-size:20px;line-height:1;letter-spacing:0;padding:6px 13px}
.eyebrow{display:inline-block;align-self:center;background:rgba(14,10,22,.74);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(244,241,250,.12);border-radius:999px;padding:6px 14px;color:#e9e4f5}
/* championships tile */
.pf-stats div.gold { border-color: rgba(228, 182, 76, .55); background: linear-gradient(160deg, rgba(228,182,76,.16), rgba(228,182,76,.04)); }
.pf-stats div.gold b { display: flex; align-items: center; gap: 6px; color: #f3d27a; }
.pf-stats div.gold span { color: #d9b866; }
.pf-cup svg { display: block; height: .95em; width: auto; }
.pf-stats div.gold { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 16px; }
.pf-cup { display: inline-flex; flex: none; } .pf-cup svg { height: 30px !important; width: 18px !important; }

/* team photo lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(12, 8, 22, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox.open { opacity: 1; }
.lb-frame { position: relative; margin: 0; padding: 12px; background: #f1eee8; border: 10px solid #0e0d12; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.5); transform: scale(.96); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.lightbox.open .lb-frame { transform: none; }
.lb-frame img { display: block; max-width: none; }
.lb-close { top: -22px; right: -22px; }
@media (max-width: 640px) { .lb-close { top: 6px; right: 6px; } }

/* first screen: more breathing room around the nav, with a deeper fade behind it */
.nav:not(.solid) { padding-top: calc(20px + env(safe-area-inset-top, 0px)); padding-bottom: 40px;
  background: linear-gradient(to bottom, rgba(11, 9, 16, .96) 0%, rgba(11, 9, 16, .8) 45%, rgba(11, 9, 16, 0) 100%); }
/* runners-up tile (silver), beside the championships tile when a player has both */
.pf-stats div.silver { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 16px; border-color: rgba(200,206,214,.5); background: linear-gradient(160deg, rgba(220,225,232,.14), rgba(220,225,232,.03)); }
.pf-stats div.silver b { display: flex; align-items: center; gap: 6px; color: #e6e9ee; }
.pf-stats div.silver span { color: #b9c0c9; }
.pf-stats.pair div.gold, .pf-stats.pair div.silver { grid-column: span 2; }
@media (max-width: 640px) { .pf-stats.pair div.gold, .pf-stats.pair div.silver { grid-column: span 1; padding: 10px 12px; } }

/* drawn arrow icons (never emoji) */
.ico { display: inline-block; width: .95em; height: .95em; margin-left: .45em; vertical-align: -.12em; flex: none; }
/* phones: the whole card fits on one screen (photo/video shorter, stats in one row) */
@media (max-width: 640px) {
  .pf-card { width: min(360px, 100%, calc(100vh - 300px)); width: min(360px, 100%, calc(100dvh - 300px)); }   /* narrows on short screens so the square clip and the stats both fit */
  .pf-photo { height: auto; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; }   /* the 1:1 player clip shows whole, never cropped */
  .pf-ph { min-height: 0; height: 100%; gap: 10px; }
  .pf-ph .sbnum { height: 56px; }
  .pf-close { width: 32px; height: 32px; font-size: 20px; top: 8px; right: 8px; }
  .pf-body { padding: 12px 14px 14px; gap: 6px; }
  .pf-num .sbnum { height: 16px; }
  .pf-name { font-size: 32px; }
  .pf-season { font-size: 10.5px; letter-spacing: .14em; }
  .pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
  .pf-stats div { padding: 7px 7px 6px; gap: 3px; border-radius: 8px; }
  .pf-stats b { font-size: 18px; }
  .pf-stats span { font-size: 8.5px; letter-spacing: .06em; line-height: 1.15; }
  .pf-stats div.gold, .pf-stats div.silver { grid-column: 1 / -1; padding: 6px 10px; }
  .pf-stats.pair div.gold, .pf-stats.pair div.silver { grid-column: span 2; padding: 6px 8px; }
  .pf-cup svg { width: 11px !important; height: 18px !important; }
  .pf-quote { margin-top: 2px; padding-left: 12px; font-size: 13.5px; line-height: 1.35; }
  .pf-status { font-size: 10.5px; padding: 4px 8px 3px; }
}
/* phones: number, name and status share one line so the square clip and the stats all fit */
@media (max-width: 640px) {
  .pf-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; align-items: center; }
  .pf-body > * { grid-column: 1 / -1; }
  .pf-body > .pf-num { grid-column: 1; grid-row: 1; }
  .pf-body > .pf-name { grid-column: 2; grid-row: 1; font-size: 28px; }
  .pf-body > .pf-status { grid-column: 3; grid-row: 1; align-self: center; }
  .pf-num .sbnum { height: 20px; }
  .pf-season { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
  .pf-src { font-size: 11px; margin: 0; }
}
/* pick-up form: legends sit outside the fieldset grid, so give them the same 8px gap the text labels get */
fieldset.field > legend { margin-bottom: 8px; line-height: 1.6; }
.pickup-form .field label:not(.chips label) { line-height: 1.6; }
