:root { --navy: #15284b; --teal: #0f8597; --g: #0f8597; --g2: #17a9bf; --orange: #f2973a; --ball: #c6de3a; --cream: #faf8ec; --bg: #f6f3e6; --card: #fffefa; --ink: #15284b; --mut: #6c7487; --line: #e7e2cf; --gold: #f2973a; }
@font-face { font-family: 'Brush'; src: url('/assets/PermanentMarker-Regular.ttf') format('truetype'); font-display: swap; }
.brushy, .card h2, .rh, .dh, .brandname { font-family: 'Brush', 'Marker Felt', cursive; font-weight: 400; letter-spacing: .01em; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
.muted { color: var(--mut); } .small { font-size: .85em; } .b { font-weight: 700; } .pad { padding: 16px; } .err { color: #c0392b; }
.top { background: var(--navy); color: var(--cream); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15em; cursor: pointer; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: var(--cream); flex: 0 0 auto; }
.brandname { font-size: 1.35em; line-height: 1.1; } .brandname em { color: var(--g2); font-style: normal; }
.top .sub { color: #d7dcea; margin-top: 4px; } .sub { opacity: .85; font-size: .9em; }
.top select { margin-top: 8px; width: 100%; padding: 8px; border-radius: 8px; border: 0; }
.tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 4; }
.tabs button { flex: 1; border: 0; background: none; padding: 12px 4px; font-weight: 600; color: var(--mut); border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--orange); }
main { max-width: 720px; margin: 0 auto; padding: 12px; }
.card { background: var(--card); border-radius: 14px; padding: 14px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card h2 { margin: 0 0 10px; font-size: 1.15em; } .card h3 { margin: 0 0 8px; font-size: 1em; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 8px 0; position: relative; padding-top: 22px; }
.match .court { color: var(--teal) !important; position: absolute; top: 4px; left: 10px; font-size: .75em; font-weight: 700; color: var(--g); text-transform: uppercase; letter-spacing: .04em; }
.match .team { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.match .team:last-child { flex-direction: row-reverse; text-align: right; }
.match .names span { display: block; }
.match .score { font-size: 1.5em; font-weight: 800; min-width: 1.6em; text-align: center; }
.match .team.win .score { color: var(--g2); }
.match .vs { color: var(--mut); font-size: .8em; }
.match.big .names { font-size: 1.05em; font-weight: 600; }
.byes { color: var(--mut); font-size: .9em; margin: 6px 2px; }
table.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; font-size: .75em; text-transform: uppercase; color: var(--mut); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.lb td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.lb .n { text-align: right; } .lb tr:first-child td { }
.lb tr.lrow { cursor: pointer; }
.pill { display: inline-block; background: var(--orange); color: #fff; font-size: .7em; padding: 2px 8px; border-radius: 99px; font-weight: 700; vertical-align: middle; }
.pill.grey { background: #e3dfcc; color: #44506a; }
.chip { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #eef2ef; font-size: .85em; margin: 2px 0; }
.chip.on { background: #d8f0f3; color: var(--g); font-weight: 700; }
.podium { list-style: none; padding: 0; margin: 0; font-size: 1.2em; } .podium li { padding: 6px 0; }
.rules ul { padding-left: 20px; margin: 0; } .rules li { margin: 6px 0; }
.foot { text-align: center; padding: 10px 0 30px; font-size: .8em; }
/* ----- admin ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--g); border-color: var(--g); color: #fff; }
.btn.danger { color: #c0392b; } .btn.ghost { background: none; border-color: transparent; color: var(--mut); }
.btn.block { display: flex; width: 100%; margin: 10px 0; } .btn.xl { min-height: 60px; font-size: 1.1em; }
.btn.sm { min-height: 36px; padding: 6px 10px; font-size: .85em; }
.btn:disabled { opacity: .4; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.row { display: flex; gap: 8px; margin-top: 10px; } .row input { flex: 1; }
label { display: block; margin: 8px 0; font-size: .9em; color: var(--mut); }
label input, label select, .row input { display: block; width: 100%; margin-top: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; color: var(--ink); background: #fff; }
label.check { display: flex; gap: 8px; align-items: center; color: var(--ink); } label.check input { width: auto; margin: 0; }
.evcard { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.listrow { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { min-height: 48px; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--line); background: #fff; font-weight: 600; }
.pchip.on { background: var(--g); border-color: var(--g); color: #fff; }
.stepper { display: flex; align-items: center; gap: 10px; margin: 10px 0; } .stepper span { flex: 1; font-weight: 600; }
.stepper button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4em; }
.stepper b { min-width: 2em; text-align: center; font-size: 1.4em; }
.seg { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.seg button { flex: 1; min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.seg button.on { background: var(--g); color: #fff; border-color: var(--g); }
.rounds { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.rounds button { flex: 0 0 auto; min-width: 56px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.rounds button.done { background: #e2f3f5; color: var(--g); } .rounds button.on { background: var(--g); color: #fff; border-color: var(--g); }
.rh { margin: 10px 2px; font-size: 1.2em; }
.smatch .court { font-size: .8em; font-weight: 800; color: var(--g); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.srow + .srow { border-top: 1px dashed var(--line); }
.snames { font-size: 1.1em; font-weight: 600; }
.sbtn { width: 84px; height: 72px; border-radius: 14px; border: 2px solid var(--g); background: #fff; font-size: 2em; font-weight: 800; color: var(--g); flex: 0 0 auto; }
.sbtn.empty { border-style: dashed; color: #9fb3aa; }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; z-index: 20; }
.sheetbox { background: #fff; width: 100%; max-width: 720px; margin: 0 auto; border-radius: 18px 18px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); }
.sheethead { margin-bottom: 10px; }
.numpad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.numpad button { min-height: 58px; border-radius: 12px; border: 1px solid var(--line); background: #f4f1e2; font-size: 1.4em; font-weight: 700; }
.numpad button:active { background: var(--g); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 99px; z-index: 30; font-weight: 600; }
.toast.err { background: #c0392b; }
.login { text-align: center; } .pindots { font-size: 2.4em; letter-spacing: .3em; min-height: 1.4em; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 10px auto; }
.pinpad button { min-height: 68px; font-size: 1.6em; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
/* ----- iPad / big display ----- */
body.display { background: var(--navy); color: var(--cream); height: 100vh; overflow: hidden; font-size: clamp(14px, 1.6vw, 28px); }
body.display .muted { color: #aab5cc; }
.dtop { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .4em 1em; background: #0c1a33; font-weight: 800; font-size: 1.2em; border-bottom: 4px solid var(--orange); }
.dtop .dbrand { display: flex; align-items: center; gap: .6em; } .dtop img { width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--cream); }
.dtop .dtitle { font-family: 'Brush', cursive; font-weight: 400; font-size: 1.15em; line-height: 1.05; } .dtop .dtitle small { display: block; font-family: inherit; font-size: .6em; color: var(--g2); }
.dtop .muted { color: #d7dcea; font-weight: 500; font-size: .8em; }
.dgrid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1em; padding: 1em; height: calc(100vh - 4.2em); }
.dleft, .dright { min-height: 0; overflow: hidden; }
.dh { margin: 0 0 .5em; font-size: 1.3em; } .dh span { color: #aab5cc; font-weight: 500; }
.dcourts { display: grid; gap: .8em; } .dcourts.c2 { grid-template-columns: 1fr 1fr; } .dcourts.c3 { grid-template-columns: 1fr 1fr 1fr; font-size: .8em; }
.dcourt { background: #1d3460; border: 2px solid #2b4677; border-radius: 1em; padding: .8em 1.1em; }
.dcname { color: var(--ball); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85em; }
.dteam { position: relative; padding: .3em 0; } .dteam .pn { font-size: 1.75em; font-weight: 700; line-height: 1.2; }
.dteam .dsc { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 2.2em; font-weight: 900; }
.dteam.win .dsc { color: var(--ball); }
.dvs { color: #aab5cc; font-size: .9em; margin: .1em 0; }
.dbye { margin-top: .6em; color: #d7dcea; font-size: 1.05em; }
.dnext { margin-top: .9em; background: #102142; border-radius: 1em; padding: .6em 1em; }
.dnext h3 { margin: 0 0 .3em; font-size: 1em; color: var(--gold); } .nx { font-size: 1em; padding: .15em 0; } .nx b { color: var(--g2); margin-right: .4em; } .nx i { color: #aab5cc; }
table.dlb { width: 100%; border-collapse: collapse; font-size: 1.15em; }
.dlb td { padding: .3em .4em; border-bottom: 1px solid #2b4677; }
.dlb tr:nth-child(1) td { color: var(--ball); font-weight: 800; }
.dlb .rk { width: 1.8em; color: #aab5cc; } .dlb .pts { text-align: right; font-weight: 800; font-size: 1.1em; }
.dfoot { display: flex; align-items: center; gap: .8em; margin-top: .8em; font-size: .85em; color: #d7dcea; }
.dfoot img { width: 5.5em; height: 5.5em; background: #fff; border-radius: .4em; padding: .2em; }
.dpodium { display: flex; gap: 1em; align-items: flex-end; justify-content: center; margin-top: 1.5em; }
.pod { background: #1d3460; border-radius: 1em; padding: 1em; text-align: center; flex: 1; } .pod .medal { font-size: 3em; } .pod .pname { font-size: 1.5em; font-weight: 800; } .pod .ppts { color: #aab5cc; }
.pod.p1 { order: 2; padding-bottom: 2.4em; border: 2px solid var(--gold); } .pod.p2 { order: 1; } .pod.p3 { order: 3; }
.dleague { padding: 1em 2em; columns: 1; }
.loading { text-align: center; margin-top: 40vh; font-size: 1.5em; }
#hint { position: fixed; bottom: 10px; right: 14px; font-size: .7em; color: #8a96b3; }
@media (orientation: portrait) { body.display .dgrid { grid-template-columns: 1fr; overflow: auto; } body.display { overflow: auto; height: auto; } }

.dprev h3 { color: #d7dcea; } .dprev strong { color: var(--gold); margin: 0 .3em; }
body.viewer .top { position: static; }

.btn.primary { background: var(--teal); border-color: var(--teal); }
.lb tbody tr:first-child td:nth-child(2) { font-weight: 700; }
.match .team.win .score { color: var(--teal); }
.login .logo { width: 140px; height: 140px; border-radius: 50%; display: block; margin: 0 auto 6px; }
.ttl-sub { font-family: inherit; }
.lb.league { table-layout: fixed; }
.lb.league th:nth-child(1) { width: 2em; } .lb.league th:nth-child(3) { width: 4.2em; } .lb.league th:nth-child(4) { width: 4.2em; } .lb.league th:nth-child(5) { width: 3.6em; }
.lb.league tr.detail td { white-space: normal; }

.dqrs { display: flex; gap: 1em; margin-top: .9em; }
.dqr { flex: 1; display: flex; flex-direction: column; text-align: center; align-items: center; gap: .4em; background: var(--cream); color: var(--navy); border-radius: 1em; padding: .6em .8em; font-size: 1em; line-height: 1.25; border: 4px solid var(--orange); }
.dqr b { font-family: 'Brush', cursive; font-weight: 400; font-size: 1.15em; }
.dqr img { width: 8em; height: 8em; flex: 0 0 auto; }
.dqr.wa { border-color: #25d366; }
.dqrs:has(.wa) .dqr img { width: 6.6em; height: 6.6em; } .dqr div { font-size: .9em; }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.card.fb { border: 3px solid var(--orange); }
ol.signup { padding-left: 1.6em; font-size: 1.1em; } ol.signup li { padding: 4px 0; } ol.signup li.open { color: var(--orange); font-style: italic; }
.copybox { width: 100%; min-height: 360px; font: 15px/1.35 ui-monospace, Menlo, monospace; padding: 10px; border: 1px solid var(--line); border-radius: 10px; white-space: pre; }
.fbrow { border-bottom: 1px solid var(--line); padding: 8px 0; } .fbrow .sg { font-weight: 700; } .fbrow .yes { color: #1d8a4a; } .fbrow .maybe { color: var(--orange); } .fbrow .no { color: #c0392b; }
.gfx { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .gfx .btn { font-size: .9em; padding: 8px; }
.preview img { width: 100%; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.2); max-height: 60vh; object-fit: contain; }

ol.slist { list-style: none; padding: 0; margin: 0; } ol.slist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 1.05em; }
ol.slist li span:last-child { white-space: nowrap; }

/* ---- here.now additions: player links, player page, demo mode ---- */
a.plink { color: inherit; text-decoration: none; border-bottom: 2px dotted rgba(15,133,151,.45); }
a.plink:active, a.plink:hover { color: var(--teal); }
body.display a.plink { border-bottom: 0; }
.pnav { padding: 10px 12px 0; }
.btn.sm { padding: 6px 12px; font-size: .9em; min-height: 0; }
.player-page main { padding-top: 10px; }
.phero { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--navy), #1f3d6e); color: var(--cream); }
.phero .muted { color: #c9d3e6; margin: 2px 0 0; }
.pavatar { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-family: 'Brush', cursive; font-size: 34px; border: 3px solid var(--ball); }
.pinfo { flex: 1; min-width: 0; }
.pname { font-family: 'Brush', 'Marker Felt', cursive; font-weight: 400; font-size: 1.7em; margin: 0; line-height: 1.05; overflow-wrap: anywhere; }
.prank { text-align: center; background: var(--ball); color: var(--navy); border-radius: 14px; padding: 6px 12px; min-width: 64px; }
.prank b { display: block; font-size: 1.6em; line-height: 1; font-family: 'Brush', cursive; font-weight: 400; } .prank small { font-weight: 700; } .pr-medal { font-size: 1.2em; }
.pstats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; text-align: center; }
.pstat { background: #f3f0e2; border-radius: 12px; padding: 8px 4px; } .pstat b { display: block; font-size: 1.35em; } .pstat small { color: var(--mut); font-size: .75em; }
.pstat.main { background: var(--teal); color: #fff; } .pstat.main small { color: #d8f0f3; } .pstat.main b { font-size: 1.6em; }
.pline, .pcounted { grid-column: 1 / -1; margin: 4px 0 0; font-weight: 700; } .pcounted { font-weight: 400; } .pstats > p.small { grid-column: 1 / -1; text-align: left; margin: 2px 0 0; }
.pempty { text-align: center; } .pempty .big { font-size: 48px; }
.patt { list-style: none; margin: 0; padding: 0; }
.patt li { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.patt li:last-child { border-bottom: 0; } .patt .pdate { font-weight: 700; } .patt .pev { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.patt .pst { font-size: .85em; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eee9d6; color: #6c7487; }
.patt .attended .pst { background: #e6f3c2; color: #4c6410; } .patt .playing .pst { background: #fde2c6; color: #a2520c; } .patt .signed-up .pst { background: #d8f0f3; color: var(--teal); }
.pevent { border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; } .pevent.counted { border-color: var(--ball); background: #fbfdf0; }
.pehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ptag { font-size: .75em; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #eee9d6; color: #6c7487; white-space: nowrap; } .ptag.on { background: var(--ball); color: var(--navy); }
.pegrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 6px; margin: 8px 0 4px; text-align: center; }
.pegrid b { display: block; font-size: 1.05em; } .pegrid small { color: var(--mut); font-size: .75em; }
.pevent details summary { cursor: pointer; color: var(--teal); font-weight: 700; padding: 6px 0; }
.pmatches { list-style: none; margin: 0; padding: 0; }
.pmatches li { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px dashed var(--line); }
.pround { font-weight: 800; color: var(--orange); } .pscore { text-align: right; } .pscore b { font-size: 1.1em; }
.pres { display: block; font-size: .72em; font-weight: 800; text-transform: uppercase; color: var(--mut); } .pres.W { color: #4c8a10; } .pres.L { color: #c0502a; }
/* demo mode */
.demobar { position: relative; z-index: 50; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; padding: 8px 12px;
  background: repeating-linear-gradient(-45deg, #f2973a 0 14px, #f5a955 14px 28px); color: #15284b; font-size: 14px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.demobar b { letter-spacing: .06em; } .demobar a, .demobar button { background: #15284b; color: #fff; border: 0; border-radius: 99px; padding: 4px 12px; font-weight: 700; text-decoration: none; font-size: 13px; cursor: pointer; }
body.display .demobar { position: fixed; left: 0; right: 0; top: 0; font-size: 16px; padding: 4px 10px; }
body.display.is-demo #root { padding-top: 34px; }
/* ---- iPad display v2 (minimal, one slide at a time) ---- */
body.kdisp { --kh: max(44px, 6.5vh); background: #0e1d3a; color: #f6f3e6; height: 100vh; height: 100dvh; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; font-size: 1.6vh; }
.khead { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: .8vh; height: var(--kh); padding: 0 2.2vw; z-index: 3; }
.khead img { height: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); }
.khead span { font-family: 'Brush', cursive; font-size: 2.6vh; color: #c9d3e6; letter-spacing: .02em; }
.kview { position: absolute; inset: 0; overflow: hidden; cursor: grab; }
.ktrack { display: flex; width: 300vw; height: 100%; transition: transform .6s cubic-bezier(.22,.8,.24,1); will-change: transform; }
.kslide { width: 100vw; height: 100%; flex: 0 0 auto; box-sizing: border-box; padding: calc(var(--kh) + 1vh) 3vw 7vh; display: flex; flex-direction: column; }
.kdots { position: absolute; bottom: 2.2vh; left: 50%; transform: translateX(-50%); display: flex; gap: 1.2vh; z-index: 3; }
.kdots button { width: 1.1vh; height: 1.1vh; min-width: 8px; min-height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(246,243,230,.25); cursor: pointer; transition: background .3s, transform .3s; }
.kdots button.on { background: var(--ball); transform: scale(1.25); }
.kqr { position: absolute; right: 1.6vw; bottom: 1.6vh; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .3vh; background: var(--cream); color: var(--navy); border-radius: 1.2vh; padding: .9vh .9vh .5vh; text-decoration: none; }
.kqr img { width: 12vh; height: 12vh; display: block; } .kqr span { font-weight: 800; font-size: 1.5vh; letter-spacing: .02em; }
/* courts */
.kround { font-family: 'Brush', cursive; font-size: 6vh; line-height: 1; color: var(--ball); margin: 0 0 2vh; } .kround span { color: rgba(246,243,230,.35); font-size: .55em; margin-left: .2em; }
.kcourts { flex: 1; min-height: 0; display: grid; gap: 2.4vw; grid-template-columns: repeat(2, 1fr); }
.kcourts.n1 { grid-template-columns: 1fr; max-width: 60vw; } .kcourts.n3 { grid-template-columns: repeat(3, 1fr); font-size: .78em; }
.kcourts.n4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; font-size: .6em; }
.kcourt { background: #17305a; border-radius: 2.4vh; padding: 2.4vh 2.6vw; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.kcname { color: #7fc8d4; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 1.9vh; margin-bottom: 1.2vh; }
.kteam { display: flex; align-items: center; justify-content: space-between; gap: 1vw; }
.knames div { font-size: 5.4vh; font-weight: 800; line-height: 1.18; overflow-wrap: anywhere; }
.kcourts.n3 .knames div { font-size: 4.2vh; } .kcourts.n4 .knames div { font-size: 3.6vh; }
.ksc { font-size: 7vh; font-weight: 900; color: rgba(246,243,230,.6); } .kteam.win .ksc { color: var(--ball); }
.ksep { height: 3px; background: rgba(246,243,230,.14); margin: 2vh 0; border-radius: 2px; }
.krest { margin-top: 2vh; font-size: 2.6vh; color: #c9d3e6; }
/* standings */
.kboard { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(var(--rows), 1fr); grid-auto-flow: column; column-gap: 4vw; padding-right: 12vw; }
.kboard.c1 { width: min(78vw, 1000px); align-self: center; padding-right: 0; } .kboard.c2 { grid-template-columns: 1fr 1fr; }
.krow { display: grid; grid-template-columns: 7vh 1fr auto; align-items: center; border-bottom: 1px solid rgba(246,243,230,.08); font-size: min(4.6vh, calc((100vh - 16vh) / var(--rows) * .55)); font-weight: 700; }
.krk { color: rgba(246,243,230,.45); font-weight: 800; } .krp { font-weight: 900; font-variant-numeric: tabular-nums; }
.krow.top1 .krk, .krow.top1 .krp { color: var(--ball); } .krow.top2 .krk, .krow.top3 .krk { color: var(--orange); }
/* podium + misc */
.kpodium { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3vw; padding-bottom: 2vh; }
.kpod { display: flex; flex-direction: column; align-items: center; width: 24vw; }
.kmedal { font-size: 8vh; } .kpname { font-size: 4.6vh; font-weight: 800; text-align: center; } .kppts { font-size: 3.4vh; color: var(--ball); font-weight: 900; margin: .6vh 0 1.2vh; }
.kstep { width: 100%; border-radius: 1.6vh 1.6vh 0 0; background: #17305a; } .kpod.r1 .kstep { height: 30vh; background: #1f3d6e; } .kpod.r2 .kstep { height: 20vh; } .kpod.r3 .kstep { height: 13vh; }
.kbig { font-family: 'Brush', cursive; font-size: 7vh; color: var(--ball); margin: 2vh 0; }
.knamegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4vh 4vw; font-size: 4.4vh; font-weight: 800; }
body.kdisp .demobar { position: fixed; left: 0; right: 0; top: 0; z-index: 10; padding: 2px 8px; font-size: 12px; gap: 8px; box-shadow: none; }
body.kdisp .demobar a { padding: 1px 10px; font-size: 11px; }
body.kdisp.is-demo .khead { top: 20px; } body.kdisp.is-demo .kslide { padding-top: calc(var(--kh) + 20px + 1vh); }
/* v2 tweaks */
.kround span { font-family: system-ui, sans-serif; font-weight: 800; font-size: .42em; vertical-align: .35em; }
#s-play { padding-bottom: 18vh; } #s-play .krest { position: absolute; left: 3vw; bottom: 6vh; margin: 0; }
.knames div { font-size: 6.6vh; }
.kboard.c1 { width: min(1000px, calc(100vw - 2 * (15vh + 4vw))); }
.kboard.c2 { padding-right: calc(15vh + 3vw); }
.kslide { position: relative; }
/* v3: last-round results slide */
.kres .kteam.lose .knames { color: rgba(246,243,230,.5); } .kres .kteam.win .knames { color: var(--ball); }
.kres .ksc { font-size: 8vh; } .kres .kteam.win .ksc { color: var(--ball); }
/* v3: phone round picker */
.rpills { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 6px; }
.rpill { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--mut); font-weight: 800; font-size: 15px; padding: 0; cursor: pointer; }
.rpill.done { background: #f3f0e2; color: var(--ink); } .rpill.cur { border-color: var(--orange); color: var(--orange); }
.rpill.sel { background: var(--teal); border-color: var(--teal); color: #fff; }
/* v3: round picker on the iPad courts slide */
.krhead { display: flex; align-items: center; justify-content: space-between; gap: 2vw; margin: 0 0 2vh; min-height: 6vh; }
.krhead .kround { margin: 0; }
.kpills { display: flex; gap: .9vh; flex-wrap: wrap; justify-content: flex-end; }
.kpill { width: 5.4vh; height: 5.4vh; min-width: 36px; min-height: 36px; border-radius: 50%; border: 2px solid rgba(246,243,230,.18); background: transparent;
  color: rgba(246,243,230,.55); font-weight: 800; font-size: 2.1vh; cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.kpill.done { color: rgba(246,243,230,.8); background: rgba(246,243,230,.07); }
.kpill.cur { border-color: var(--ball); color: var(--ball); }
.kpill.sel { background: var(--ball); border-color: var(--ball); color: var(--navy); }
/* v3: uniform, single-line name sizing (font size set per slide by fitNames → --nf) */
.kteam { min-width: 0; } .knames { flex: 1; min-width: 0; }
.knames div, .knamegrid div, .kpname, .krn { white-space: nowrap; overflow: hidden; text-overflow: clip; font-size: var(--nf, 4.4vh) !important; line-height: 1.25; height: 1.25em; }
.kcourts.n3 .knames div, .kcourts.n4 .knames div { font-size: var(--nf, 3.6vh) !important; }
.krow { font-size: var(--nf, 3.9vh); } .krk, .krp { font-size: 1em; }
.krn { min-width: 0; padding-right: 2vw; }
.kpname { max-width: 100%; text-align: center; }
.knamegrid > div { min-width: 0; }
.ksc { font-size: 6vh; } .kres .ksc { font-size: 6.4vh; }
.kcourt { justify-content: flex-start; padding-top: 3vh; } .kcourts { align-items: start; } .kcourts > .kcourt { height: 100%; justify-content: center; }
.kcourts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kcourts.n1 { grid-template-columns: minmax(0, 1fr); } .kcourts.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kcourt, .kteam, .knames { min-width: 0; } .krow { grid-template-columns: 7vh minmax(0, 1fr) auto; } .kboard.c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* v4: tooltips, parent-of, highlight */
.tip { display: inline-grid; place-items: center; width: 17px; height: 17px; min-height: 0; padding: 0; margin-left: 3px; border-radius: 50%; border: 1.5px solid currentColor; background: none;
  color: var(--mut); font: italic 700 11px/1 Georgia, serif; vertical-align: middle; cursor: pointer; opacity: .8; position: relative; }
.tip::after { content: ''; position: absolute; inset: -12px; } /* bigger tap target */
.tip.pilltip { width: auto; height: auto; padding: 1px 7px; border-radius: 99px; border: 0; background: #e3dfcc; color: #44506a; font: 700 11px/1.5 system-ui, sans-serif; font-style: normal; opacity: 1; }
.tipbubble { position: absolute; z-index: 60; background: var(--navy); color: #fff; font-size: 14px; line-height: 1.4; padding: 10px 12px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.kidchip { margin-left: auto; min-height: 0; border: 0; border-radius: 99px; padding: 5px 11px; background: var(--ball); color: var(--navy); font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; }
.whoru h2 { font-family: 'Brush', cursive; font-weight: 400; margin: 0 0 12px; } .whoru .chips { margin-bottom: 6px; }
a.plink.mine { color: var(--orange); font-weight: 800; border-bottom-color: var(--orange); }
.match.mine { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(242,151,58,.35); }
tr.mine td { background: #fff1e0; } tr.mine td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.podium li.mine, ol.signup li.mine { background: #fff1e0; border-radius: 8px; }
.kidcard { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border: 2px solid var(--orange); }
.kidcard b { font-size: 1.05em; } .kidcard span { color: var(--mut); } .kidcard .go { margin-left: auto; font-size: 1.6em; color: var(--orange); }
.foot { text-align: center; padding: 10px 0 24px; font-size: 12px; } .foot a { color: var(--mut); }
.lb th { white-space: nowrap; }
.lb th.n { padding-left: 10px; }
.lb th .tip { vertical-align: -3px; position: relative; }
.top:has(.kidchip:not([hidden])) .brandname { font-size: 1.05em; }
.brand { min-width: 0; }
.lb.league th:nth-child(3) { width: 5.6em; } .lb.league th:nth-child(4) { width: 4.4em; } .lb.league th:nth-child(5) { width: 5.2em; }
.lb.league th.n { padding-left: 2px; }
/* v6 admin schedule */
.schitem { border-bottom: 1px solid var(--line); padding: 12px 0; } .schitem:last-child { border-bottom: 0; }
.schhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.schitem.cancelled .schhead b { text-decoration: line-through; color: var(--mut); }
.schctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 4px; }
.seg.sm { margin: 0; flex: 0 0 auto; } .seg.sm button { min-height: 40px; padding: 0 14px; flex: 0 0 auto; }
.ovsel { display: flex; align-items: center; gap: 6px; margin: 0; } .ovsel select { width: auto; margin: 0; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.schbtns { display: flex; gap: 8px; margin-top: 6px; }
.kround span { margin-left: .7em; }
/* v7: parents' drop-out alerts on admin home */
.alertdrop { background: #c62828 !important; color: #fff; border-radius: 14px; padding: 16px !important; box-shadow: 0 4px 16px rgba(198,40,40,.35); }
.alertdrop .atext { font-size: 20px; font-weight: 800; line-height: 1.3; }
.alertdrop .asub { display: block; font-size: 17px; font-weight: 700; margin-top: 4px; color: #ffe0b2; }
.alertdrop .arow { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.alertdrop .muted { color: rgba(255,255,255,.8) !important; }
.alertdrop .btn.sm { background: #fff; color: #c62828; border: 0; font-weight: 800; }
.alertdrop .ackb { min-width: 84px; }
.abadge { position: absolute; bottom: 12px; right: 12px; background: #c62828; color: #fff; border: 0; border-radius: 99px; padding: 6px 12px; font-weight: 800; font-size: 15px; cursor: pointer; }
.abadge[hidden] { display: none; }
header.top { position: relative; }
/* v8: prize line on the iPad display (text only) */
.kprize { flex: 0 0 auto; align-self: center; margin: 0 0 1.4vh; padding: .5vh 2.2vh; border-radius: 99px; background: rgba(255,166,77,.14); color: #ffa64d; font-size: 2.8vh; font-weight: 800; }
.kprize b { color: var(--ball, #c6de3a); }
.kpodium + .kprize { margin: 1.4vh 0 0; font-size: 3.4vh; }
.schprize { margin: 6px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ===== v5 parent phone viewer (viewer, player, feedback): calm dark theme matching the iPad display ===== */
body.pv {
  --bg: #0e1d3a; --surf: #17305a; --surf2: #1f3d6e; --tx: #f6f3e6; --tx2: #b9c4d8; --hair: rgba(246,243,230,.10);
  --acc: #c6de3a; --court: #8fd3df; --kid: #ffa64d; --kidbg: rgba(255,166,77,.16);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  background: var(--bg); color: var(--tx); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
body.pv .muted { color: var(--tx2); } body.pv .small { font-size: 15px; } body.pv .err { color: #ff8a7a; }
body.pv a { color: var(--court); }
/* header */
body.pv .top { position: static; background: none; padding: calc(var(--s4) + env(safe-area-inset-top)) var(--s4) 0; }
body.pv .brand { gap: var(--s3); font-size: 1em; }
body.pv .brand img { width: 36px; height: 36px; }
body.pv .brandname, body.pv .top:has(.kidchip:not([hidden])) .brandname { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tx); }
body.pv .brandname em { color: var(--acc); }
body.pv .top .sub { color: var(--tx2); font-size: 15px; margin: var(--s2) 0 0; opacity: 1; }
body.pv .kidchip { min-height: 40px; padding: 0 var(--s3); flex: 0 0 auto; background: var(--kid); color: #1b1206; font-size: 15px; }
body.pv .top select { margin-top: var(--s4); height: 48px; padding: 0 44px 0 var(--s4); border-radius: 12px; background: var(--surf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c4d8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  color: var(--tx); font-weight: 600; font-size: 16px; -webkit-appearance: none; appearance: none; }
/* bottom navigation */
body.pv .bnav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 10; display: flex; background: rgba(10,22,45,.96); border: 0; border-top: 1px solid var(--hair);
  padding: 0 0 env(safe-area-inset-bottom); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.pv .bnav button { flex: 1; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 0 4px;
  border: 0; background: none; color: var(--tx2); font-size: 12px; font-weight: 700; letter-spacing: .02em; cursor: pointer; }
body.pv .bnav svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.pv .bnav button.on { color: var(--acc); }
body.pv main { padding: var(--s5) var(--s4) var(--s4); max-width: 640px; }
body.pv.player-page main { padding-top: var(--s4); }
/* sections: no boxes, one heading style */
body.pv .card { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 var(--s6); }
body.pv .card h2, body.pv .card h3, body.pv .rules h2 { font-family: inherit; font-size: 20px; font-weight: 800; letter-spacing: 0; margin: 0 0 var(--s3); color: var(--tx); line-height: 1.25; }
body.pv .hmeta { color: var(--tx2); font-weight: 600; font-size: 15px; margin-left: var(--s1); }
body.pv .pill { background: var(--acc); color: #13230a; font-size: 12px; padding: 2px 9px; }
body.pv .pill.grey { background: var(--surf2); color: var(--tx); }
/* names: same as iPad (bold, cream); kid in orange */
body.pv a.plink { color: inherit; border: 0; text-decoration: none; }
body.pv a.plink.mine { color: var(--kid); font-weight: 800; }
/* round picker */
body.pv .rpills { gap: var(--s2); margin: 0 0 var(--s4); }
body.pv .rpill { width: 44px; height: 44px; border: 2px solid rgba(246,243,230,.22); background: transparent; color: var(--tx2); font-size: 16px; }
body.pv .rpill.done { background: rgba(246,243,230,.08); color: var(--tx); border-color: transparent; }
body.pv .rpill.cur { border-color: var(--acc); color: var(--acc); }
body.pv .rpill.sel { background: var(--acc); border-color: var(--acc); color: #13230a; }
/* court tiles (like the iPad court cards) */
body.pv .match { display: block; background: var(--surf); border: 0; border-radius: 16px; padding: var(--s3) var(--s4) var(--s3); margin: 0 0 var(--s3); box-shadow: none; }
body.pv .match .court { position: static; color: var(--court) !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; margin: 0 0 var(--s2); }
body.pv .match .team, body.pv .match .team:last-child { display: flex; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: var(--s3); }
body.pv .match .names { font-size: 19px; font-weight: 800; line-height: 1.3; min-width: 0; }
body.pv .match .names span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pv .match .score { font-size: 28px; font-weight: 900; color: rgba(246,243,230,.55); min-width: 1.4em; text-align: right; font-variant-numeric: tabular-nums; }
body.pv .match .team.win .score { color: var(--acc); }
body.pv .match .sep { height: 2px; background: var(--hair); border-radius: 2px; margin: var(--s2) 0; }
body.pv .match.compact { padding: var(--s2) var(--s4); }
body.pv .match.compact .names { font-size: 16px; font-weight: 700; } body.pv .match.compact .score { font-size: 22px; }
body.pv .match.compact .names span { display: inline; } body.pv .match.compact .names span + span::before { content: ' & '; font-weight: 500; color: var(--tx2); }
body.pv .match.compact .sep { margin: var(--s1) 0; height: 1px; }
body.pv .match.mine { box-shadow: inset 0 0 0 2px var(--kid); border: 0; }
body.pv .byes { color: var(--tx2); font-size: 15px; margin: var(--s2) 0 0; }
/* tables: rank · name · points */
body.pv table.lb { table-layout: auto; }
body.pv .lb th { color: var(--tx2); font-size: 12px; font-weight: 700; letter-spacing: .08em; border: 0; padding: 0 var(--s2) var(--s2); }
body.pv .lb td { padding: 0 var(--s2); height: 52px; border-bottom: 1px solid var(--hair); font-size: 17px; font-weight: 700; }
body.pv .lb td.rk { width: 2.2em; color: var(--tx2); font-weight: 800; font-variant-numeric: tabular-nums; }
body.pv .lb td.n { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; width: 5em; }
body.pv .lb tbody tr:first-child td.rk, body.pv .lb tbody tr:first-child td.n { color: var(--acc); }
body.pv .lb.league th:nth-child(n) { width: auto; } body.pv .lb.league th.n { padding-left: 0; }
body.pv tr.mine td { background: var(--kidbg); } body.pv tr.mine td:first-child { box-shadow: inset 4px 0 0 var(--kid); }
body.pv .lb tr.detail td { height: auto; padding: var(--s2) var(--s2) var(--s3); font-weight: 500; font-size: 15px; }
body.pv .dmeta { color: var(--tx2); margin-bottom: var(--s2); }
body.pv .chip { background: rgba(246,243,230,.08); color: var(--tx2); font-size: 14px; padding: 4px 10px; margin: 2px 0; }
body.pv .chip.on { background: rgba(198,222,58,.16); color: var(--acc); }
/* tooltips */
body.pv .tip { color: var(--tx2); opacity: 1; width: 19px; height: 19px; font-size: 12px; }
body.pv .tip.pilltip { background: var(--surf2); color: var(--tx); font-size: 12px; padding: 2px 8px; vertical-align: 2px; }
body.pv .tipbubble { background: var(--tx); color: #0e1d3a; font-size: 15px; font-weight: 500; border-radius: 14px; padding: var(--s3) var(--s4); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
/* kid strip */
body.pv .kidcard { display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding: var(--s3) var(--s4); margin-bottom: var(--s5); background: var(--surf); box-shadow: inset 0 0 0 2px var(--kid); border: 0; border-radius: 16px; color: var(--tx); text-decoration: none; }
body.pv .kidcard b { font-size: 19px; color: var(--kid); white-space: nowrap; } body.pv .kidcard .kmeta { color: var(--tx); font-weight: 600; font-size: 16px; }
body.pv .kidcard .go { margin-left: auto; color: var(--kid); font-size: 28px; line-height: 1; }
/* podium + sign-up list */
body.pv .podium { font-size: 19px; } body.pv .podium li { display: flex; align-items: center; gap: var(--s3); min-height: 52px; border-bottom: 1px solid var(--hair); font-weight: 800; padding: 0 var(--s2); }
body.pv .podium li b { margin-left: auto; color: var(--acc); font-size: 20px; } body.pv .podium .medal { font-size: 24px; }
body.pv .podium li.mine, body.pv ol.signup li.mine { background: var(--kidbg); border-radius: 0; }
body.pv ol.signup { font-size: 17px; font-weight: 700; } body.pv ol.signup li { padding: var(--s2) 0; } body.pv ol.signup li.open { color: var(--tx2); font-weight: 500; }
/* buttons + forms */
body.pv .btn { min-height: 52px; border-radius: 14px; border: 0; background: var(--surf); color: var(--tx); font-weight: 800; font-size: 17px; text-decoration: none; }
body.pv .btn.primary { background: var(--acc); color: #13230a; }
body.pv .btn.ghost { background: none; color: var(--tx2); }
body.pv .btn.wa { background: #25d366; color: #06290f; }
body.pv .btn.block { margin: var(--s3) 0; } body.pv .btn:disabled { opacity: .4; }
body.pv label { color: var(--tx2); font-size: 15px; font-weight: 600; margin: 0 0 var(--s4); }
body.pv label input, body.pv label select, body.pv textarea { display: block; width: 100%; margin-top: var(--s2); min-height: 52px; padding: var(--s3) var(--s4); border: 0; border-radius: 12px;
  background: var(--surf); color: var(--tx); font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; }
body.pv label select { background: var(--surf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c4d8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
body.pv textarea { resize: vertical; }
body.pv .seg { gap: var(--s2); margin: 0 0 var(--s5); }
body.pv .seg button { min-height: 56px; border: 0; border-radius: 14px; background: var(--surf); color: var(--tx); font-size: 17px; font-weight: 800; }
body.pv .seg button.on { background: var(--acc); color: #13230a; }
/* bottom sheet (Parent of…) */
body.pv .sheet { background: rgba(4,10,24,.66); z-index: 40; }
body.pv .sheetbox { background: #142a50; color: var(--tx); border-radius: 22px 22px 0 0; padding: var(--s5) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom)); }
body.pv .whoru h2 { font-family: inherit; font-weight: 800; font-size: 22px; margin: 0 0 var(--s4); }
body.pv .whoru .chips { gap: var(--s2); margin-bottom: var(--s2); }
body.pv .pchip { min-height: 52px; padding: 0 var(--s4); border: 0; border-radius: 99px; background: var(--surf2); color: var(--tx); font-size: 17px; font-weight: 700; }
body.pv .pchip.on { background: var(--kid); color: #1b1206; }
body.pv .whoru .other { color: var(--tx2); margin-bottom: 0; }
/* rules */
body.pv .rules ul { padding-left: 20px; } body.pv .rules li { margin: 0 0 var(--s2); color: var(--tx); }
/* footer + demo bar */
body.pv main { padding-bottom: var(--s6); } body.pv:has(.bnav) main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.pv .foot a { color: var(--tx2); font-size: 14px; }
body.pv .demobar { padding: 4px 10px; font-size: 13px; box-shadow: none; gap: 8px; }
body.pv .demobar a, body.pv .demobar button { padding: 3px 12px; font-size: 13px; }
/* player page */
body.pv .pnav { padding: var(--s3) var(--s4) 0; } body.pv .pnav .btn { min-height: 44px; padding: 0 var(--s2); color: var(--court); font-weight: 700; font-size: 16px; }
body.pv .phero { background: none; color: var(--tx); gap: var(--s4); margin-bottom: var(--s5); align-items: center; }
body.pv .pavatar { width: 56px; height: 56px; font-size: 28px; border: 0; }
body.pv .pname { font-family: inherit; font-weight: 800; font-size: 28px; line-height: 1.15; }
body.pv .prank { background: none; color: var(--acc); padding: 0; min-width: 0; text-align: right; }
body.pv .prank b { font-family: inherit; font-weight: 900; font-size: 28px; display: inline; } body.pv .prank small { display: block; color: var(--tx2); font-weight: 600; font-size: 14px; }
body.pv .pr-medal { font-size: 22px; margin-right: 2px; }
body.pv .pstats { gap: 0; text-align: left; grid-template-columns: repeat(4, 1fr); }
body.pv .pstat, body.pv .pstat.main { background: none; color: var(--tx); border-radius: 0; padding: 0; }
body.pv .pstat b, body.pv .pstat.main b { font-size: 26px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
body.pv .pstat.main b { color: var(--acc); }
body.pv .pstat small, body.pv .pstat.main small { color: var(--tx2); font-size: 13px; font-weight: 600; white-space: nowrap; }
body.pv .pline { margin: var(--s4) 0 var(--s2); font-weight: 600; color: var(--tx2); font-size: 15px; }
body.pv .pcounted .chip { margin: 0 4px 4px 0; }
body.pv .pempty { text-align: left; } body.pv .pempty h2 { color: var(--tx2) !important; font-weight: 600 !important; }
body.pv .patt li { grid-template-columns: 96px 1fr auto; min-height: 48px; padding: 0; border-bottom: 1px solid var(--hair); }
body.pv .patt li:last-child { border-bottom: 0; }
body.pv .patt .pdate { font-weight: 700; color: var(--tx); } body.pv .patt .pev { color: var(--tx2); }
body.pv .patt .pst, body.pv .patt .attended .pst, body.pv .patt .signed-up .pst { background: none; padding: 0; font-size: 15px; color: var(--tx2); font-weight: 600; }
body.pv .patt .attended .pst { color: var(--acc); } body.pv .patt .playing .pst { background: none; color: var(--kid); } body.pv .patt .missed .pst { color: rgba(185,196,216,.7); }
body.pv .pevent, body.pv .pevent.counted { border: 0; border-radius: 0; background: none; padding: var(--s4) 0; margin: 0; border-bottom: 1px solid var(--hair); }
body.pv .pevent:first-of-type { padding-top: 0; }
body.pv .pehead b { font-size: 17px; } body.pv .pehead .muted { font-size: 14px; }
body.pv .ptag { background: rgba(246,243,230,.08); color: var(--tx2); font-size: 12px; } body.pv .ptag.on { background: rgba(198,222,58,.16); color: var(--acc); }
body.pv .ptag.live { background: var(--acc); color: #13230a; }
body.pv .pemeta { display: flex; gap: var(--s4); margin: var(--s2) 0 0; color: var(--tx2); font-size: 16px; } body.pv .pemeta b { color: var(--tx); }
body.pv .pevent details summary { color: var(--court); padding: var(--s2) 0 0; min-height: 36px; font-size: 15px; }
body.pv .pmatches li { border-top: 1px solid var(--hair); padding: var(--s2) 0; }
body.pv .pround { color: var(--tx2); } body.pv .pres { color: var(--tx2); } body.pv .pres.W { color: var(--acc); } body.pv .pres.L { color: #ff9a8a; }
body.pv .conduct p { margin: 0; color: var(--tx); }
body.pv .lb tbody tr.zero td.rk { color: var(--tx2); } body.pv .lb tbody tr.zero td.n { color: var(--tx); }
/* v6: event header, schedule, tags */
body.pv .ctag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: rgba(246,243,230,.08); color: var(--tx2); }
body.pv .ctag.confirmed { background: rgba(143,211,223,.14); color: var(--court); }
body.pv .ctag.cancelled { background: rgba(255,138,122,.14); color: #ff9a8a; }
body.pv .ctag.live { background: var(--acc); color: #13230a; }
body.pv .evhead { background: var(--surf); border-radius: 16px; padding: var(--s4); margin-bottom: var(--s5); }
body.pv .evtop { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
body.pv .evlabel { color: var(--acc); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
body.pv .evhead.awaiting .evlabel { color: var(--kid); } body.pv .evhead.cancelled .evlabel { color: #ff9a8a; }
body.pv .evwhen { font-size: 24px; font-weight: 800; margin: var(--s2) 0 var(--s1); }
body.pv .evhead.cancelled .evwhen { text-decoration: line-through; color: var(--tx2); }
body.pv .evmeta { color: var(--tx2); font-size: 15px; }
body.pv .nextlink { display: block; color: inherit; text-decoration: none; }
body.pv .nextlink .evhead { box-shadow: inset 0 0 0 1px var(--hair); background: transparent; }
body.pv .sitem { border-bottom: 1px solid var(--hair); }
body.pv .srow { display: flex; align-items: center; gap: var(--s4); width: 100%; min-height: 68px; padding: var(--s3) 0; border: 0; background: none; color: var(--tx); text-align: left; cursor: pointer; font: inherit; }
body.pv .sdate { flex: 0 0 48px; text-align: center; line-height: 1.05; } body.pv .sdate b { display: block; font-size: 24px; font-weight: 900; } body.pv .sdate small { color: var(--tx2); font-size: 13px; font-weight: 700; text-transform: uppercase; }
body.pv .sbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.pv .stitle { font-size: 17px; font-weight: 800; } body.pv .smeta { color: var(--tx2); font-size: 15px; }
body.pv .sitem.cancelled .stitle, body.pv .sitem.cancelled .sdate b { text-decoration: line-through; color: var(--tx2); }
body.pv .sitem.cancelled .stitle .ctag { text-decoration: none; }
body.pv .chev { color: var(--tx2); font-size: 18px; }
body.pv .slineup { padding: 0 0 var(--s4) 64px; }
body.pv .lnames { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 17px; font-weight: 700; } body.pv .lnames .mine a { color: var(--kid); }
body.pv .slineup .btn { justify-content: flex-start; padding-left: 0; min-height: 44px; color: var(--court); }
body.pv .pastev summary { cursor: pointer; font-size: 17px; font-weight: 800; color: var(--tx2); min-height: 48px; display: flex; align-items: center; }
body.pv .bnav button { font-size: 11px; }
/* v7: parents' self-serve sign-up */
body.pv .sucard { background: var(--surf); border-radius: 16px; padding: var(--s4); margin-bottom: var(--s5); }
body.pv .sucard .evtop { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
body.pv .sucard .evwhen { font-size: 21px; font-weight: 800; margin-top: var(--s2); }
body.pv .sucard .evmeta { color: var(--tx2); font-size: 15px; margin-bottom: var(--s4); }
body.pv .sucard h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx2); margin: var(--s5) 0 var(--s1); }
body.pv .ctag.sopen { margin-left: 0; background: var(--acc); color: #13230a; font-size: 13px; padding: 4px 11px; }
body.pv .sucount { font-weight: 800; font-size: 15px; color: var(--tx); }
body.pv .sucount.hot, body.pv .ncount.hot { color: var(--kid); }
body.pv .btn.subig { min-height: 56px; font-size: 18px; font-weight: 800; border-radius: 14px; }
body.pv .btn.subig.out { color: #ffb3a7; box-shadow: inset 0 0 0 1.5px rgba(255,138,122,.45); background: transparent; }
body.pv .sustate { font-weight: 800; font-size: 18px; margin: 0 0 var(--s2); } body.pv .sustate.in { color: var(--acc); } body.pv .sustate.wl { color: var(--kid); }
body.pv ol.signup.wl li { color: var(--tx2); }
body.pv .ntag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 99px; background: rgba(143,211,223,.16); color: var(--court); vertical-align: 2px; }
body.pv .sucard .btn.wa { margin-top: var(--s2); }
/* next-event strip (live view, near the end) */
body.pv .nstrip { display: flex; align-items: center; gap: var(--s2); background: var(--surf); border-radius: 14px; padding: var(--s2) var(--s2) var(--s2) var(--s4); margin: 0 0 var(--s5);
  box-shadow: inset 0 0 0 1px rgba(255,166,77,.35); font-size: 15px; }
body.pv .nstrip .ntxt { flex: 1; line-height: 1.3; }
body.pv .nstrip .nbtns { display: flex; gap: 6px; }
body.pv .nstrip .nbtn { min-height: 40px; min-width: 52px; padding: 0 12px; border-radius: 10px; border: 0; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
body.pv .nstrip .nbtn.in, body.pv .nstrip a.nbtn { background: var(--acc); color: #13230a; }
body.pv .nstrip .nbtn.out { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 1.5px var(--hair); }
body.pv .nstrip .nst.in { color: var(--acc); } body.pv .nstrip .nst.wl { color: var(--kid); } body.pv .nstrip .nst.out { color: var(--tx2); }
body.pv .nstrip .nx { border: 0; background: none; color: var(--tx2); font-size: 15px; min-width: 32px; min-height: 40px; cursor: pointer; }
/* "New player…" in the Parent-of sheet */
body.pv .whoru .newpf { display: flex; gap: var(--s2); margin-top: var(--s3); }
body.pv .whoru .newpf[hidden] { display: none; }
body.pv .whoru .newpf input { flex: 1; min-height: 48px; border-radius: 12px; border: 0; padding: 0 var(--s3); font-size: 16px; background: var(--surf2); color: var(--tx); }
body.pv .whoru .pchip.newp { margin-top: var(--s2); border-style: dashed; }
body.pv .nstrip .ncount { white-space: nowrap; }
/* v8: per-event prize */
body.pv .prize { margin: var(--s2) 0 0; font-size: 15px; font-weight: 700; color: var(--kid); }
body.pv .prize a { color: var(--kid); text-decoration: underline; text-underline-offset: 3px; }
body.pv .prize b { color: var(--tx); }
body.pv .card > h2 + .prize { margin: calc(-1 * var(--s2)) 0 var(--s3); }
body.pv .sucard .prize { margin: calc(-1 * var(--s2)) 0 var(--s4); }
body.pv .slineup .prize { margin: 0 0 var(--s2); }
body.pv .smeta.sprize { color: var(--kid); font-weight: 700; }
