/* ShuttleRank palette restored from v20.6 (navy + lime). Later layout rules (48px buttons, Load more, match sides) are kept. */
:root{
  --navy:#0b1f3a;--navy2:#13305a;--lime:#c6f432;
  --ink:var(--navy);--header:var(--navy);--text:#0f172a;--secondary:#334155;--muted:#64748b;--header-muted:#cbd5e1;
  --bg:#f4f6fb;--card:#FFFFFF;--white:#FFFFFF;
  --line:#e4e8f0;--line-in:#e4e8f0;--track:#e2e8f0;
  --accent:var(--navy);--accent-pressed:#071525;--live-ring:#e11d48;
  --success:#16a34a;--success-tint:#dcfce7;
  --disabled-bg:#e2e8f0;--disabled-text:#94a3b8;
  --mojo-paper:var(--bg);--mojo-ink:var(--navy);--mojo-grey:#334155;--mojo-red:var(--live-ring);
  --mojo-font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --teal:#14b8a6;--teal-d:#0f8f82;
  --red:var(--live-ring);--live:var(--live-ring);--green:var(--success);
  --r:16px;--sh:0 1px 2px rgba(15,23,42,.05),0 6px 20px rgba(15,23,42,.06);
  --focus:2px solid var(--navy);
  --btn-space-y:16px;--btn-space-bottom:20px;--btn-row-gap:12px;--pad-dock-h:88px;
  --sport-bd:#0b1f3a;--sport-pb:#0b1f3a;
  --warn-tint:#F8E7C7;--warn-text:#5C3A00;
  font-family:var(--mojo-font)
}

*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
a{color:var(--accent);text-decoration:none}
button{font:inherit;cursor:pointer}
h1,h2,h3{margin:0;letter-spacing:-.01em}
.muted{color:var(--muted)}.sm{font-size:12.5px}
/* top bar */
.top{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;background:rgba(11,31,58,.97);backdrop-filter:blur(8px);color:#fff;border-bottom:0}
.brand{display:flex;align-items:center;gap:8px;color:#fff;font-weight:800;font-size:18px;min-width:0}
.brand .logo{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--lime);color:var(--navy);flex:none}
.brand .logo svg{display:block}
.brand .bname{font-weight:800}
.brand .wordmark{display:block;height:36px;width:auto;max-width:min(200px,58vw)}
.brand .ph{font-size:10px;font-weight:700;text-transform:uppercase;background:rgba(255,255,255,.14);color:#fff;padding:2px 6px;border-radius:6px;letter-spacing:.06em}
.top-r{display:flex;gap:8px;align-items:center}
.demo-pill{font-size:11px;font-weight:700;background:#fbbf24;color:#451a03;padding:3px 8px;border-radius:99px}
.lang{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#cbd5e1;border-radius:99px;padding:4px 10px;font-size:12px}
.lang b{color:#fff}
main{max-width:600px;margin:0 auto;padding:12px 16px 24px}
main.wide{max-width:1100px}
/* bottom nav */
.bnav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:space-around;background:#FFFFFF;border-top:1px solid #DEDAD3;padding:4px 1px calc(4px + env(safe-area-inset-bottom))}
.bnav a{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:10px;font-weight:600;color:#6B6762;padding:4px 1px;line-height:1.1}
.bnav a span:not(.ic){max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bnav a .ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bnav a.on{color:var(--navy)}
.bnav a.on .ic{background:var(--lime);border-radius:12px;padding:0 12px;color:var(--navy)}
/* hero */
.hero{background:radial-gradient(120% 140% at 100% 0%,#1d4f8f 0%,var(--navy) 55%);color:#fff;border:0;border-radius:22px;padding:22px 18px 18px;margin:4px 0 14px;position:relative;overflow:hidden;box-shadow:none}
.hero:after{content:"";position:absolute;right:-40px;top:-40px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(198,244,50,.35),transparent 70%)}
.hero h1{font-size:25px;line-height:1.15;max-width:90%}
.hero p{color:#cbd5e1;font-size:14px;line-height:1.45;margin:8px 0 14px}
.search input{width:100%;border:1px solid #DEDAD3;border-radius:12px;padding:13px 14px;font-size:15px;background:#FFFFFF;box-shadow:none;outline:none}
.search input:focus-visible,.search input:focus{outline:2px solid #111111;outline-offset:2px;box-shadow:none}
.filters{margin-bottom:6px}
.row2,.row3,.row4{display:grid;gap:8px;margin:8px 0;min-width:0}
.row2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.row3{grid-template-columns:repeat(3,minmax(0,1fr))}.row4{grid-template-columns:repeat(4,minmax(0,1fr))}
input[type=text],input[type=number],input[type=date],input[type=time],input[type=url],.fld input{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:42px;min-height:42px;padding:10px;font-size:14px;line-height:1.25;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font-family:inherit}
select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:48px;min-height:48px;padding:10px 36px 12px 12px;font-size:16px;line-height:normal;border:1px solid var(--line);border-radius:10px;background-color:#fff;color:var(--text);font-family:inherit;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236B6762' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
input[type=date],input[type=time]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:42px;min-height:42px;padding:10px;font-size:14px;line-height:1.25;border:1px solid var(--line);border-radius:10px}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{text-align:left;margin:0}
input[type=date]::-webkit-datetime-edit,input[type=time]::-webkit-datetime-edit{padding:0;margin:0;display:block;min-width:0;text-align:left;line-height:1.25}
.search input{height:auto;min-height:0;padding:13px 14px;font-size:15px}
.fld{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:600;color:var(--muted);margin:10px 0}
.fld select+select{margin-top:6px}
.evchips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;align-items:center}
.fchip{border:1px solid #DEDAD3;background:#FFFFFF;border-radius:99px;padding:7px 14px;font-weight:700;font-size:13px;color:var(--text)}
.fchip.on{background:#fff;border-color:var(--accent);color:var(--accent)}
.link{background:none;border:0;color:#B21000;font-weight:600;padding:4px}
.sec{font-size:17px;margin:22px 0 10px;display:flex;align-items:center;gap:8px}
.sec small{font-size:12px;color:var(--muted);font-weight:500}
.sub{font-size:14px;margin:16px 0 8px}
.ttl{font-size:24px;margin:6px 0 10px}
.sub2{margin:-4px 0 10px}
/* featured */
.hscroll{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 16px 12px;margin:0 -16px;scroll-padding-inline:16px;scrollbar-width:none}
.hscroll:after{content:"";flex:0 0 4px}
.hscroll::-webkit-scrollbar{display:none}
.feat{scroll-snap-align:start;flex:0 0 78%;max-width:320px;border-radius:20px;padding:16px;color:#fff;min-height:190px;display:flex;flex-direction:column;
  background:linear-gradient(140deg,hsl(var(--h),70%,32%),hsl(calc(var(--h) + 40),75%,18%));box-shadow:var(--sh);position:relative;overflow:hidden}
.feat:after{content:"";position:absolute;right:-30px;bottom:-30px;width:130px;height:130px;border:18px solid rgba(255,255,255,.08);border-radius:50%}
.feat h3{font-size:18px;margin:12px 0 4px;line-height:1.2}
.fmeta{font-size:13px;opacity:.85}
.ftop{display:flex;gap:6px}
.fmoney{display:flex;gap:18px;margin-top:auto;padding-top:14px}
.fmoney small{display:block;font-size:11px;opacity:.75}.fmoney b{font-size:17px}
/* tournament cards */
.tlist{display:flex;flex-direction:column;gap:10px}
.tcard{display:flex;gap:12px;background:var(--card);border-radius:var(--r);padding:14px;box-shadow:var(--sh);color:var(--text);border:1px solid #DEDAD3;transition:transform .12s,background .12s}
.tcard:active{transform:scale(.99)}
.dblock{flex:0 0 52px;height:58px;border-radius:12px;background:#eef2ff;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--navy)}
.dblock b{font-size:20px;line-height:1}.dblock span{font-size:12px;font-weight:700;text-transform:uppercase}
.tbody{flex:1;min-width:0}
.tbody h3{font-size:15.5px;line-height:1.25}
.meta{font-size:12.5px;color:var(--muted);margin:4px 0 6px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.meta svg,.tmeta svg{fill:none;stroke:currentColor;stroke-width:2;vertical-align:-2px}
.chips{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.chips.big .chip{font-size:13px;padding:6px 12px}
.chip{font-size:11px;font-weight:700;padding:3px 8px;border-radius:99px;background:#E4E0DA;color:#4D4D4D}
.chip.ev{background:#E4E0DA;color:#4D4D4D}
.chip.band{background:#E4E0DA;color:#4D4D4D}
.chip.light{background:rgba(255,255,255,.18);color:#fff}
.money{display:flex;gap:14px;font-size:12px;color:var(--muted);margin-top:8px;flex-wrap:wrap}
.money b{color:var(--text)}
.fill{position:relative;display:flex;align-items:center;height:20px;margin-top:8px;background:#B21000;border-radius:99px;overflow:hidden;color:#FFFFFF}
.fill i{display:none}
.fill span{position:relative;font-size:11px;font-weight:700;padding:0 8px;line-height:1;color:#FFFFFF;white-space:nowrap}
.tcard:active .fill,.fill:active{background:#9A0E00}
.badge{display:inline-block;font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:6px;background:#E4E0DA;color:#4D4D4D;letter-spacing:.02em;vertical-align:middle}
.badge.fmt{background:#f4e3e1;color:var(--accent)}.badge.fmt.f21{background:#ede9fe;color:#5b21b6}.badge.sport{background:var(--sport-bd);color:#FFFFFF}.badge.sport.pickleball,.badge.sport.sport-pill-pickleball{background:var(--sport-pb);color:#FFFFFF;border:0}
.badge.prov{background:#ffedd5;color:#9a3412}
.badge.okb{background:#E6F2EA;color:#1E7A46}.badge.bad{background:#ffe4e6;color:#9f1239}
.badge.livebadge{background:#B21000;color:#FFFFFF}
@keyframes pulse{50%{opacity:.6}}
.empty{padding:22px;text-align:center;color:var(--muted);background:#fff;border-radius:var(--r);border:1px dashed var(--line)}
/* tournament page */
.back{display:inline-flex;align-items:center;gap:2px;font-weight:600;font-size:14px;color:var(--navy);margin:2px 0 8px}
.back svg{fill:none;stroke:currentColor;stroke-width:2.2}
.thero{border-radius:22px;padding:18px;color:#fff;background:linear-gradient(140deg,hsl(var(--h),70%,30%),hsl(calc(var(--h) + 40),75%,16%));margin-bottom:12px}
.thero h1{font-size:23px;margin:10px 0 6px;line-height:1.15}
.tmeta{font-size:13.5px;opacity:.9;line-height:1.5}
.tstats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.tstats div{background:rgba(255,255,255,.12);border-radius:12px;padding:10px}
.tstats small{display:block;font-size:11px;opacity:.75}.tstats b{font-size:15px}
.card{background:var(--card);border-radius:var(--r);padding:14px;box-shadow:var(--sh);margin-bottom:10px;border:1px solid #DEDAD3}
.card.flush{padding:0;overflow:hidden}
.card p{margin:0 0 8px;line-height:1.5;font-size:14px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:8px 0 0;font-size:13.5px}
.kv dt{color:var(--muted)}.kv dd{margin:0;text-align:right}
.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.tbl th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:10px 12px;background:#f8fafc}
.tbl td{padding:10px 12px;border-top:1px solid var(--line)}
.tbl tr.q td{background:#f0fdf4}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{display:flex;flex-direction:column;gap:2px;padding:8px 0 8px 16px;border-left:3px solid var(--lime);margin-left:4px;font-size:13.5px}
.timeline li span{color:var(--muted)}
.prizes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
.prizes small{display:block;font-size:11px;color:var(--muted)}.prizes b{font-size:16px}
.notice{background:#E4E0DA;color:#1F1F1F;border-radius:12px;padding:11px 13px;font-size:13.5px;margin:10px 0;display:flex;align-items:center;gap:8px;line-height:1.4}
.notice.ok{background:#E6F2EA;color:#1E7A46;font-weight:700}.notice.bad{background:#fff1f2;color:#9f1239}
/* v22.4: live CTA is a high-contrast black bar, not a pale pink strip. */
.notice.live{background:#111111;color:#FFFFFF;font-weight:700}
.livecta{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:48px;margin:10px -16px;padding:12px 16px;background:#111111;color:#FFFFFF;font-weight:700;font-size:14.5px;line-height:1.25;text-decoration:none;border-radius:0}
.livecta:active,.livecta:hover{background:#1a1a1a;color:#FFFFFF}
.livecta .dot{flex:0 0 10px;width:10px;height:10px;background:#FF5A47;box-shadow:0 0 0 3px rgba(255,90,71,.22)}
.livecta-text{flex:1 1 auto;min-width:0}
.livecta-go{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;margin-left:auto;color:#FFFFFF;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.livecta-go svg{width:18px;height:18px;stroke:#FF5A47;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
/* Directions pill — own background so it stays 4.5:1 on light or dark covers */
.dirrow{margin:8px 0 0}
a.dirbtn,a.dirbtn:hover,a.dirbtn:active{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 12px 6px 10px;border-radius:99px;background:rgba(255,255,255,.92);color:#111111;font-weight:700;font-size:13px;line-height:1;text-decoration:none;border:1px solid rgba(17,17,17,.12);box-shadow:0 1px 2px rgba(17,17,17,.08);white-space:nowrap}
a.dirbtn svg{width:14px;height:14px;flex:0 0 14px;fill:currentColor;stroke:none}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--red);animation:pulse 1.2s infinite}
.sticky-cta{position:sticky;bottom:calc(70px + env(safe-area-inset-bottom));margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:var(--btn-row-gap);background:#fff;color:var(--text);border:1px solid var(--line);border-radius:18px;padding:12px 12px 12px 16px;box-shadow:var(--sh);z-index:5}
.sticky-cta small{display:block;font-size:11px;opacity:.7}
/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:12px;padding:12px 18px;font-weight:700;font-size:14.5px;text-align:center}
.btn.primary{background:#B21000;color:#FFFFFF}.btn.primary:hover,.btn.primary:active{background:#9A0E00}
.btn.primary:disabled{background:#E2DED8;color:#8A867F;cursor:not-allowed}
.btn.ghost{background:#fff;color:var(--text);border:1.5px solid var(--line)}
.btn.ghost:disabled{opacity:.5}
.btn.full{width:100%;margin:var(--btn-space-y) 0}
.btn.sm{padding:6px 10px;font-size:12.5px;border-radius:9px}
.btn.big{padding:16px;font-size:16px}
.btnrow{display:flex;gap:var(--btn-row-gap);justify-content:space-between;margin:var(--btn-space-y) 0;flex-wrap:wrap}
.btnrow .btn{flex:1}
.check{display:flex;gap:8px;align-items:center;font-size:13.5px;margin:12px 0}
.check input{width:18px;height:18px;accent-color:var(--teal)}
/* steps */
.steps{display:flex;gap:4px;margin:4px 0 12px}
.steps div{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10.5px;font-weight:600;color:#6B6762;position:relative}
.steps i{font-style:normal;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#E2DED8;color:#6B6762;font-size:12px;font-weight:800;z-index:1}
.steps div:not(:last-child):after{content:"";position:absolute;top:13px;left:60%;width:80%;height:2px;background:#E2DED8}
.steps .on{color:var(--text)}.steps .on i{background:var(--accent);color:#fff}
.steps .done i{background:var(--teal);color:#fff}.steps .done:after{background:var(--teal)!important}
.youcard{display:flex;gap:12px;align-items:center;background:#fff;border-radius:var(--r);padding:12px;box-shadow:var(--sh);margin-bottom:10px}
.youcard div{display:flex;flex-direction:column;gap:2px}
.opts{display:flex;flex-direction:column;gap:8px}
.opt{display:flex;gap:12px;align-items:center;background:#fff;border:2px solid var(--line);border-radius:14px;padding:12px;cursor:pointer}
.opt input{accent-color:var(--navy);width:18px;height:18px;flex:none}
.opt div{flex:1;display:flex;flex-direction:column;gap:2px;font-size:14px}
.opt.on{border-color:var(--navy);background:#f8fafc}
.opt.dis{opacity:.5;cursor:not-allowed}
.price{font-weight:800;color:var(--navy)}
.av{flex:none;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;font-weight:800;font-size:14px;color:#fff;background:linear-gradient(135deg,#2563eb,#0b1f3a)}
.av.f{background:linear-gradient(135deg,#db2777,#7c3aed)}
.av.u{background:linear-gradient(135deg,#f59e0b,#b45309)}
.av.xl{width:72px;height:72px;font-size:24px;border:3px solid var(--accent)}
.plist,.rlist{display:flex;flex-direction:column;gap:6px}
.prow,.rrow{display:flex;gap:10px;align-items:center;background:#fff;border:2px solid transparent;border-radius:14px;padding:10px;text-align:left;box-shadow:var(--sh);color:var(--text);width:100%}
.prow.on{border-color:var(--teal);background:#f0fdfa}
.prow:disabled{opacity:.5}
.pinfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pinfo b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pr{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.pr b{font-size:17px;font-variant-numeric:tabular-nums}
.elrow{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.warnline{margin:-4px 0 6px 50px!important;color:#B21000!important}
.demo-warn{background:#E4E0DA;color:#1F1F1F;font-weight:800;text-align:center;border-radius:12px;padding:12px;font-size:13px;margin-bottom:10px;border:1px dashed #6B6762}
.banks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bank{background:#fff;border:2px solid var(--line);border-radius:12px;padding:14px 8px;font-weight:700;color:var(--navy)}
.bank.on{border-color:var(--teal);background:#f0fdfa}
.overlay{position:fixed;inset:0;background:rgba(11,31,58,.75);display:grid;place-items:center;z-index:100}
.ovbox{background:#fff;border-radius:20px;padding:26px;text-align:center;max-width:300px}
.ovbox p{font-size:13px;color:var(--muted)}
.spin{width:44px;height:44px;border:4px solid #E2DED8;border-top-color:var(--accent);border-radius:50%;margin:0 auto 12px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.confirm{text-align:center;padding:10px 0}
.confirm h2{font-size:24px;margin:8px 0}
.big-ok{width:72px;height:72px;margin:6px auto;border-radius:50%;background:#f4e3e1;color:var(--accent);display:grid;place-items:center;font-size:36px;font-weight:900}
.confirm .card{text-align:left}
/* tabs */
.tabs{display:flex;background:#E2DED8;border-radius:12px;padding:4px;gap:4px;margin:8px 0 12px;max-width:600px}
.tabs button{flex:1;border:0;background:none;padding:9px 4px;border-radius:9px;font-weight:700;font-size:13px;color:var(--muted)}
.tabs button.on{background:#FFFFFF;color:var(--text);box-shadow:var(--sh)}
/* matches */
.mlist{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.mrow{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:12px;box-shadow:var(--sh);color:var(--text);font-size:13.5px}
.mrow.live{box-shadow:0 0 0 2px var(--red),var(--sh);margin:3px 1px}
.mtime{flex:0 0 auto;min-width:52px;max-width:92px;font-weight:800;font-size:13px;display:flex;flex-direction:column;color:var(--navy);word-break:break-word}
.mtime small{font-weight:600;color:var(--muted);font-size:11px}
.mteams{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mteams>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mteams .win{font-weight:800}
.mright{display:flex;flex-direction:column;align-items:flex-end;gap:var(--btn-row-gap)}
.mscore{font-variant-numeric:tabular-nums;font-weight:700;font-size:12.5px;white-space:nowrap}
.mscore.big{font-size:20px}
.seed{font-style:normal;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:18px;height:18px;border-radius:5px;background:var(--navy);color:#F7F5F2;font-size:10px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;margin-right:5px;padding:0 4px}
.plink{color:inherit;text-decoration:underline;text-decoration-color:#DEDAD3;text-underline-offset:2px}
.hrow{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:12px;box-shadow:var(--sh);font-size:13.5px;color:inherit;text-decoration:none}
.hrow{cursor:pointer}.hrow:active{transform:scale(.99)}
.wl{flex:none;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-weight:900;font-size:13px}
.wl.w{background:#E6F2EA;color:#1E7A46}.wl.l{background:#ffe4e6;color:#9f1239}
.delta{font-weight:800;font-size:12.5px;font-variant-numeric:tabular-nums;padding:2px 7px;border-radius:6px;background:#E4E0DA}
.delta.up{color:#1E7A46;background:#E6F2EA}.delta.down{color:#9f1239;background:#ffe4e6}
/* bracket */
.bracket{display:flex;gap:18px;overflow-x:auto;padding:6px 2px 16px}
.bround{flex:0 0 220px;display:flex;flex-direction:column}
.bhd{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px}
.bcol{flex:1;display:flex;flex-direction:column;justify-content:space-around;gap:10px}
.bm{background:#fff;border-radius:12px;box-shadow:var(--sh);overflow:hidden;border:1px solid var(--line)}
.bm.live{border-color:var(--red)}
.bm.bye{opacity:.6}
.bside{display:flex;align-items:center;gap:4px;padding:7px 9px;font-size:12px;border-bottom:1px solid var(--line)}
.bside span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bside b{font-variant-numeric:tabular-nums;font-size:11.5px;color:var(--muted)}
.bside.win{font-weight:800;background:#f7fee7}.bside.win b{color:var(--text)}
.bscore{display:block;text-align:center;font-size:11.5px;font-weight:800;padding:5px;background:#f8fafc;color:var(--teal-d)}
.bm.live .bscore{color:var(--red)}
/* court grid */
.courtgrid{overflow-x:auto;background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:8px;margin:10px 0}
.cg{position:relative;min-width:520px}
.hrs{position:absolute;inset:0}
.hr{position:absolute;left:0;right:0;border-top:1px dashed var(--line)}
.hr span{position:absolute;left:0;top:-8px;font-size:10px;color:var(--muted);background:#fff;padding-right:4px}
.cols{position:absolute;inset:0 0 0 40px;display:grid;grid-template-columns:repeat(var(--n,6),1fr);gap:4px}
.ccol{position:relative}
.chd{text-align:center;font-size:11px;font-weight:800;color:var(--navy);line-height:1.2;word-break:break-word;padding:0 2px}
.cblk{position:absolute;left:0;right:0;border-radius:7px;padding:3px 5px;font-size:10px;line-height:1.25;color:#1F1F1F;overflow:hidden;background:#E4E0DA;border-left:3px solid #6B6762}
.cblk span{color:#334155}
.cblk.evXD{background:#fce7f3;border-color:#db2777}.cblk.evMS,.cblk.evWS{background:#E4E0DA;border-color:#6B6762}.cblk.evWD{background:#E6F2EA;border-color:#1E7A46}
.cblk.live{box-shadow:0 0 0 2px var(--red)}.cblk.done{opacity:.55}
.umps{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.ump{display:flex;gap:8px;align-items:center;font-size:13px}
.ump div{display:flex;flex-direction:column}
.ump .av{width:34px;height:34px;font-size:12px}
.usel{max-width:130px;font-size:12.5px;padding:7px}
/* live */
.lcard{background:#fff;border-radius:var(--r);padding:12px 14px;border:1px solid #DEDAD3;box-shadow:0 0 0 2px #D92B17,var(--sh);margin:3px 1px;animation:live-ring 1.6s ease-in-out infinite}
@keyframes live-ring{50%{box-shadow:0 0 0 2px rgba(217,43,23,.4),var(--sh)}}
.lhd{font-size:12.5px;color:var(--muted);margin-bottom:6px}
.lrow{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:14px}
.lrow .ln{flex:1}.lrow .lg{color:var(--muted);font-variant-numeric:tabular-nums;letter-spacing:.1em}
.lrow .lp{font-size:24px;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
.lrow.srv .ln:before{content:"";display:inline-block;width:8px;height:8px;background:var(--accent);border:2px solid var(--navy);border-radius:50%;margin-right:6px}
/* umpire pad */
.umphd{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.umphd div{display:flex;flex-direction:column;gap:2px}
.fmtsel{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:6px 0}
.fmtsel button{border:1.5px solid var(--line);background:#fff;border-radius:9px;padding:6px 12px;font-weight:800;color:var(--navy)}
.fmtsel button.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.fmtsel button:disabled:not(.on){opacity:.4}
.gamebar{display:flex;gap:6px;margin:8px 0}
.gamebar span{font-size:12px;font-weight:700;background:#fff;border-radius:8px;padding:4px 8px;box-shadow:var(--sh);font-variant-numeric:tabular-nums}
.gamebar span.cur{background:var(--navy);color:#fff}
.banner{background:var(--navy);color:#fff;font-weight:700;font-size:13.5px;border-radius:12px;padding:10px 12px;margin:6px 0;text-align:center}
.banner.hot{background:var(--red)}.banner.win{background:var(--green)}.banner.soft{background:#E4E0DA;color:#1F1F1F}
.pads{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.pad{border:0;border-radius:20px;min-height:clamp(152px,28dvh,280px);padding:14px 10px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;text-align:center;box-shadow:var(--sh);transition:transform .08s;user-select:none;-webkit-tap-highlight-color:transparent;container-type:size;overflow:hidden}
.pad:active{transform:scale(.97)}
.pad.s0{background:linear-gradient(160deg,#1e40af,#0b1f3a)}
.pad.s1{background:linear-gradient(160deg,#0f766e,#064e3b)}
.pad.serving{box-shadow:0 0 0 4px #FF5A47,var(--sh)}
.pad:disabled{opacity:.7}
.pnames{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:2px;width:100%;min-width:0;font-weight:700;font-size:14px;line-height:1.25;min-height:0;flex:0 0 auto}
.pname{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1px 5px;min-width:0;width:100%;line-height:1.25}
.pname-n{flex:0 0 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.pserver{flex:0 0 auto;white-space:nowrap;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#FFF3C4;background:rgba(0,0,0,.28);border-radius:99px;padding:1px 6px;line-height:1.3}
.ppts{font-size:clamp(40px,10dvh,96px);font-weight:900;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.04em;flex:1 1 auto;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;width:100%}
@container (min-height: 160px){.ppts{font-size:clamp(56px,42cqh,96px)}}
.pgames{display:flex;gap:6px;flex:0 0 auto;justify-content:center;align-items:center}
.pgames i{width:12px;height:12px;flex:0 0 auto;border-radius:50%;border:2px solid rgba(255,255,255,.6);box-sizing:border-box}
.pgames i.on{background:#FF5A47;border-color:#FF5A47}
.psrv{font-size:12px;font-weight:700;color:#F7F5F2;min-height:0;flex:0 0 auto;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}
.padctl{display:flex;gap:var(--btn-row-gap);margin:var(--btn-space-y) 0}
.padctl .btn{flex:1}
.padctl select{flex:1}
.formula summary{cursor:pointer;font-weight:700;font-size:13px;color:var(--teal-d);margin-top:8px}
.formula p{font-family:ui-monospace,Menlo,monospace;font-size:12px;background:#f8fafc;padding:10px;border-radius:10px;line-height:1.6}
/* scoreboard — v22.3: solid #111111 canvas, no light panels; readable off-white type */
html:has(body.boardmode),body.boardmode{background:#111111;color:#F5F3EF}
body.boardmode{padding:0}
.board{min-height:100vh;min-height:100dvh;background:#111111;color:#F5F3EF;display:flex;flex-direction:column;padding:calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px))}
.board a{color:#FF5A47}
.bdtop{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;font-size:14px;color:#B5B1AB}
.board a.bdlogo,.bdlogo{display:flex;align-items:center;gap:6px;color:#F5F3EF;font-weight:800}
.bdlogo svg{fill:none}
.bdt{color:#F5F3EF;font-weight:700}
.bdstat{margin-left:auto;font-weight:900;letter-spacing:.1em;font-size:13px;display:flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;background:transparent;border:1px solid #2A2A2A;color:#B5B1AB}
.bdstat.live{color:#FFFFFF;background:#B21000;border-color:#B21000}
.bdstat.live .dot{background:#FFFFFF;animation:none}
.bdstat.done{color:#F5F3EF;border-color:#2A2A2A}
.bdrows{flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px;margin:20px 0}
.bdrow{display:grid;grid-template-columns:1fr 24px auto minmax(90px,auto);align-items:center;gap:12px;background:transparent;border:1px solid #2A2A2A;border-radius:18px;padding:16px;box-shadow:none}
.bdrow.win{border-color:#FF5A47}
.bdn{font-size:20px;font-weight:700;line-height:1.3;color:#F5F3EF}
.bdn small{font-size:12px;color:#B5B1AB;font-weight:600}
.bdsrv{color:#FF5A47;font-size:22px}
.bdg{display:flex;gap:8px}
.bdg span{font-size:22px;color:#B5B1AB;font-variant-numeric:tabular-nums;min-width:28px;text-align:center}
.bdg span.w{color:#F5F3EF}
.bdp{font-size:72px;font-weight:900;text-align:right;font-variant-numeric:tabular-nums;color:#F5F3EF;line-height:1}
.bdfoot{font-size:12px;color:#B5B1AB;text-align:center}
.board .empty{background:transparent;border-color:#2A2A2A;color:#B5B1AB;box-shadow:none}
body.boardmode #toast{display:none}
/* sport label — filled pill above the tournament title, distinct per sport */
.sportline{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin:0 0 8px;line-height:1.2;padding:4px 10px 4px 8px;border-radius:99px;width:max-content;max-width:100%;color:#FFFFFF;background:var(--ink)}
.sportline .sport-ic{width:14px;height:14px;flex:0 0 14px;color:currentColor}
.sportline[data-sport="badminton"]{background:var(--sport-bd);color:#FFFFFF}
.sportline[data-sport="pickleball"]{background:var(--sport-pb);color:#FFFFFF}
.feat .sportline,.thero .sportline{margin:0 0 8px}
/* player */
.phero{display:flex;gap:14px;align-items:center;margin:4px 0 14px}
.phero h1{font-size:22px}
.phero .muted{font-size:13px;margin:2px 0 6px}
.rcards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.rcard{background:#fff;border:2px solid transparent;border-radius:16px;padding:12px 8px;box-shadow:var(--sh);display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.rcard.on{border-color:var(--navy)}
.rcard small{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.rcard b{font-size:28px;font-weight:900;color:var(--navy);font-variant-numeric:tabular-nums;line-height:1.1}
.rcard .lvl{font-size:11px;font-weight:700;color:var(--teal-d)}
.relbar{width:100%;height:6px;background:#E2DED8;border-radius:99px;overflow:hidden}
.relbar i{display:block;height:100%;background:linear-gradient(90deg,var(--teal),var(--accent))}
.rcard .sm{font-size:10.5px}
.chart{width:100%;height:auto;display:block}
.chart .grid line{stroke:#E4E0DA}.chart text{font-size:9px;fill:#6B6762}
.chart .line{fill:none;stroke:var(--teal);stroke-width:2.2;stroke-linejoin:round}
.chart circle{fill:var(--teal)}.chart circle.new{fill:var(--accent);stroke:var(--navy);stroke-width:1.5}
.chart .lastpt{fill:var(--navy);stroke:var(--accent);stroke-width:2.5}
/* rankings — v22.2: fixed square, flex-centered. Do not reuse class "top" (that is the app header).
   Poppins 900 digits have almost no descent; at 14px in a 28px square the ink centre is already within 1px. */
.rk{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px;height:28px;flex:0 0 28px;padding:0;margin:0;font-weight:900;font-size:14px;line-height:1;font-variant-numeric:tabular-nums;text-align:center;color:var(--muted)}
.rk.podium{color:#fff;background:var(--accent);border-radius:8px}
.rk-n{display:block;line-height:1;font-variant-numeric:tabular-nums}
.rrow.meh{border-color:var(--accent)}
/* footer & toast */
.foot{margin-top:28px;padding-top:14px;border-top:1px solid var(--line);font-size:11.5px;color:var(--muted);line-height:1.5}
.foot p{margin:4px 0}
#toast{position:fixed;left:16px;right:16px;bottom:calc(86px + env(safe-area-inset-bottom));width:auto;max-width:min(520px,calc(100% - 32px));margin:0 auto;transform:translateY(20px);background:var(--navy);color:#fff;padding:10px 16px;border-radius:12px;font-size:13.5px;font-weight:600;opacity:0;transition:.25s;pointer-events:none;z-index:200;white-space:normal;text-align:center;box-sizing:border-box;overflow-wrap:anywhere}
#toast.show{opacity:1;transform:translateY(0)}
@media (min-width:700px){
  .hero h1{font-size:32px}
  .feat{flex-basis:300px}
  .bdp{font-size:120px}.bdn{font-size:30px}.bdg span{font-size:32px}
}
@media (max-width:380px){.row4{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ppts{font-size:80px}}
@media (max-width:700px){.row4{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.meta{display:block}
.bdn small{white-space:nowrap}
@media (max-width:560px){.bdn{font-size:17px}.bdrow{gap:8px;padding:14px}.bdp{font-size:60px}}
/* ---- access model (v3) ---- */
.hdr-in{background:var(--accent);color:#fff;font-weight:800;font-size:12.5px;padding:5px 11px;border-radius:99px}
.hdr-me{display:flex}
.av.sm{width:30px;height:30px;font-size:11px}
.top .av.sm{border:2px solid var(--accent)}
.signin{max-width:440px;margin:0 auto}
.si-hd{text-align:center;margin:10px 0 8px}
.si-hd h1{font-size:24px;margin:10px 0 4px}
.si-hd p{font-size:13.5px;margin:0}
.logo.big{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--navy);color:#F7F5F2}
.logo.big svg{width:32px;height:32px}
.otp{letter-spacing:.5em;font-size:20px!important;text-align:center;font-variant-numeric:tabular-nums}
.demo-acct .pinfo b{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.noaccess{text-align:center;max-width:420px;margin:30px auto 0;background:#fff;border-radius:20px;padding:26px 20px;box-shadow:var(--sh)}
.noaccess h1{font-size:24px;margin:8px 0}
.noaccess p{margin:6px 0;line-height:1.45}
.na-ic{width:72px;height:72px;margin:0 auto;border-radius:50%;background:#fff1f2;color:var(--red);display:grid;place-items:center}
.na-ic svg{fill:none;stroke:currentColor;stroke-width:1.8}
.badge.role-player{background:#E4E0DA;color:#4D4D4D}.badge.role-owner{background:var(--navy);color:#F7F5F2}
.badge.role-coorg{background:#E4E0DA;color:#4D4D4D}.badge.role-desk{background:#E4E0DA;color:#4D4D4D}
.badge.role-referee{background:#fee2e2;color:#991b1b}.badge.role-umpire{background:#E6F2EA;color:#1E7A46}
.badge.role-admin{background:#111111;color:#FFFFFF}
.rolebar{font-size:13px;margin:-2px 0 6px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.tabs.scroll{overflow-x:auto;scrollbar-width:none}
.tabs.scroll::-webkit-scrollbar{display:none}
.tabs.scroll button{flex:1 0 auto;padding:9px 12px}
.umprow{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.courtchips{display:flex;gap:5px;flex-wrap:wrap}
.cchip{width:32px;height:32px;border-radius:9px;border:1.5px solid var(--line);background:#fff;font-weight:800;color:var(--navy)}
.cchip.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.cchip:disabled{cursor:default}
.xbtn{border:0;background:#E4E0DA;color:#6B6762;width:28px;height:28px;border-radius:8px;font-weight:800}
.btn.danger{background:#fff1f2;color:#be123c;border:1.5px solid #fecdd3}
.drow{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:10px 12px;box-shadow:var(--sh);border-left:4px solid #B21000}
.drow.upheld{border-left-color:var(--green)}.drow.rejected{border-left-color:#6B6762}
.duty{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:12px;margin-bottom:14px}
.duty-hd{display:flex;flex-direction:column;gap:4px;margin-bottom:6px}
.duty-hd b{font-size:16px}
.duty-hd .badge{align-self:flex-start}
.acct-hd{display:flex;gap:10px;align-items:center}
.rolelist{display:flex;flex-direction:column;gap:8px}
.rolelist div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kv.roles dd{text-align:left;font-size:12.5px}
.demo-pill,.lang,.hdr-in{white-space:nowrap}
@media (max-width:420px){.brand .ph{display:none}.brand{font-size:17px}.top-r{gap:6px}.lang{padding:4px 8px}.demo-pill{font-size:10.5px;padding:3px 7px}}
/* check-in search */
.ci-sticky{position:sticky;top:var(--hdr-h,56px);z-index:8;background:var(--bg,#ECE9E4);margin:0 -16px 10px;padding:10px 16px 8px;box-shadow:0 6px 10px -8px rgba(17,17,17,.18)}
.ci-search{position:relative}
.ci-search input{width:100%;box-sizing:border-box;font-size:16px;min-height:48px;padding:12px 48px 12px 40px;border:1.5px solid var(--line);border-radius:14px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236B6762' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;-webkit-appearance:none;appearance:none}
.ci-search input:focus{outline:2px solid #111111;outline-offset:2px;border-color:#DEDAD3;box-shadow:none}
.ci-search input::-webkit-search-cancel-button{display:none}
.ci-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:none;font-size:26px;line-height:1;color:#6B6762;border-radius:12px}
.ci-chips{display:flex;gap:6px;overflow-x:auto;margin-top:8px;padding-bottom:2px;scrollbar-width:none}
.ci-chips::-webkit-scrollbar{display:none}
.fchip.sm{min-height:38px;white-space:nowrap;flex:0 0 auto}
.ci-count{font-size:13px;color:#6B6762;margin-top:8px}
.ci-count b{color:var(--navy)}
.ci-list{display:flex;flex-direction:column;gap:8px}
.ci-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 10px 10px 12px}
.ci-row.in{background:#f3fbe8;border-color:#cfe9a8}
.ci-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ci-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ci-p{display:flex;flex-direction:column;line-height:1.25}
.ci-p b{font-size:15px}
.ci-btn{flex:0 0 auto;min-width:96px;min-height:48px;border-radius:12px;border:1.5px solid var(--navy);background:#fff;color:var(--navy);font-weight:800;font-size:14px;padding:0 10px}
.ci-btn.on{background:var(--accent);color:#fff}
mark{background:#ffe66d;color:inherit;border-radius:3px;padding:0 1px}
.check{display:flex;gap:10px;align-items:center;margin:14px 2px 4px;min-height:44px;font-size:14px}
.check input{width:22px;height:22px}
.ci-chips{flex-wrap:nowrap}
.fchip.sm{min-height:38px;padding:6px 13px}
.ci-p .muted{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci-p .muted mark{white-space:nowrap}
.ci-btn{min-width:88px;font-size:13px}
.ci-sticky .ci-chips + .ci-chips{margin-top:6px}
/* iOS zooms into inputs under 16px — keep all search inputs at 16px */
.search input,.ci-search input,input[type=search]{font-size:16px}
/* keep page height stable while results shrink during typing (prevents scroll clamping) */
.home-res{min-height:calc(100vh - 140px)}
/* stable height while partner / rankings lists shrink during typing */
.rlist{min-height:calc(100vh - 220px)}
.plist{min-height:0}
/* ---- streaming add-on ---- */
.stream-note{line-height:1.45}
.socard .sohd,.scard .sohd{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.sohd .sp{flex:1}
.badge.so-draft{background:#E4E0DA;color:#4D4D4D}.badge.so-awaiting{background:#E4E0DA;color:#4D4D4D}.badge.so-failed,.badge.so-expired{background:#ffe4e6;color:#be123c}
.badge.so-paid,.badge.so-ready{background:#E6F2EA;color:#1E7A46}.badge.so-live{background:#B21000;color:#fff}.badge.so-completed{background:#E4E0DA;color:#4D4D4D}
.badge.so-refund_requested{background:#E4E0DA;color:#4D4D4D}.badge.so-refunded{background:#E4E0DA;color:#4D4D4D}
.sosteps{display:flex;gap:4px;list-style:none;padding:0;margin:10px 0;overflow-x:auto;scrollbar-width:none}
.sosteps li{flex:1 0 auto;font-size:10.5px;font-weight:700;color:#6B6762;border-top:3px solid #E2DED8;padding-top:4px;white-space:nowrap}
.sosteps li.done{color:#1E7A46;border-color:#1E7A46}.sosteps li.cur{color:var(--navy);border-color:var(--navy)}.sosteps li.bad{color:#be123c;border-color:#B21000}
.solog{margin-top:8px;font-size:12px}.solog summary{cursor:pointer;color:var(--muted);font-weight:600;min-height:32px;display:flex;align-items:center}
.solog ul{margin:4px 0 0;padding-left:16px;display:flex;flex-direction:column;gap:3px}.solog li{word-break:break-word}.solog li.bad{color:#be123c}
.notice.bad{background:#fff1f2;border-color:#fecdd3;color:#9f1239}
.streams{display:flex;flex-direction:column;gap:10px}
.scard .kv2{display:flex;flex-direction:column;gap:2px;margin:8px 0 4px}.scard .kv2>span{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.scard code{font-size:13px;background:#E4E0DA;border-radius:8px;padding:8px 10px;word-break:break-all;display:block}
.scard code.keyx{color:#6B6762;letter-spacing:.05em}
.lockedc{opacity:.75;background:repeating-linear-gradient(135deg,#fff,#fff 10px,#f8fafc 10px,#f8fafc 20px)}
.unlock-cta{display:flex;flex-direction:column;gap:10px;align-items:stretch;text-align:center;background:#111111;color:#fff;border-radius:16px;padding:16px;font-size:14px}
.unlock-cta .btn{justify-content:center}
.btnrow.tight{margin-top:var(--btn-space-y)}
.qrrow{display:flex;gap:12px;align-items:center;margin:10px 0}.qrrow .qr{flex:0 0 auto;border:1px solid var(--line);border-radius:8px}
.badge.st-scheduled{background:#E4E0DA;color:#4D4D4D}.badge.st-live{background:#B21000;color:#fff}.badge.st-weak{background:#E4E0DA;color:#4D4D4D}.badge.st-offline{background:#E4E0DA;color:#6B6762}
.badge .dot{width:7px;height:7px;margin-right:3px;background:#fff}
.pkgs{display:flex;flex-direction:column;gap:10px}
.pkg{display:block;border:2px solid var(--line);border-radius:16px;padding:12px 14px;background:#fff;cursor:pointer}
.pkg.on{border-color:var(--navy);box-shadow:0 0 0 3px rgba(11,31,58,.08)}
.pkg input{position:absolute;opacity:0;pointer-events:none}
.pkg-hd{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.pkg-p{font-weight:800;color:var(--navy);white-space:nowrap}.pkg-p small{font-weight:600;color:var(--muted);font-size:11px}
.pkg p{margin:6px 0 0}
.sumcard .sline{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:14px;border-bottom:1px dashed var(--line)}
.sumcard .sline b,.inv-lines .sline b{white-space:nowrap}
.sline.sub{font-weight:600}.sline.tot{font-size:17px;border-bottom:0;padding-top:10px}
.inv-lines .sline{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:14px;border-bottom:1px dashed var(--line)}
/* Razorpay-style checkout (simulated) */
.rz-overlay{position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.6);display:flex;align-items:flex-end;justify-content:center}
@media (min-width:560px){.rz-overlay{align-items:center}}
.rz{width:100%;max-width:420px;max-height:92vh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 20px 60px rgba(0,0,0,.35);font-family:inherit}
@media (min-width:560px){.rz{border-radius:14px}}
.rz-top{position:relative;background:linear-gradient(135deg,#072654,#0d3b85);color:#fff;padding:16px 16px 14px}
.rz-mer{display:flex;gap:10px;align-items:center;padding-right:36px}.rz-mer small{display:block;opacity:.75;font-size:12px}
.rz-logo{width:38px;height:38px;border-radius:10px;background:#111111;color:#FFFFFF;font-weight:900;display:flex;align-items:center;justify-content:center}
.rz-x{position:absolute;top:8px;right:8px;width:40px;height:40px;border:0;background:none;color:#fff;font-size:26px}
.rz-back{border:0;background:rgba(255,255,255,.15);color:#fff;width:32px;height:32px;border-radius:8px;font-size:20px;margin-bottom:8px}
.rz-amt{margin-top:12px;display:flex;justify-content:space-between;align-items:baseline}.rz-amt small{opacity:.75}.rz-amt b{font-size:22px}
.rz-body{padding:14px 16px}
.rz-h{font-weight:800;font-size:14px;color:#072654;margin:2px 0 10px}
.rz-m{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #DEDAD3;background:#fff;border-radius:12px;padding:12px;margin-bottom:8px;min-height:58px;font-size:18px;color:#6B6762}
.rz-m span:nth-child(2){flex:1;display:flex;flex-direction:column;color:#0f172a;font-size:14px}.rz-m small{color:#64748b;font-size:12px}
.rz-ic{width:34px;height:34px;border-radius:9px;background:#eef2ff;display:flex;align-items:center;justify-content:center;font-size:17px}
.rz-banks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rz-bank{border:1px solid #DEDAD3;background:#fff;border-radius:10px;min-height:48px;padding:8px;font-weight:600;font-size:13px;color:#1F1F1F}
.rz-pay{width:100%;border:0;background:#0d3b85;color:#fff;font-weight:800;border-radius:10px;min-height:48px;font-size:15px;margin-top:6px}
.rz-qr{display:flex;flex-direction:column;align-items:center;gap:6px;margin:6px 0 10px}.rz-qr small{color:#64748b}
.rz-out{width:100%;min-height:52px;border-radius:12px;border:1.5px solid;font-weight:800;font-size:14px;margin-top:8px;background:#fff}
.rz-out.ok{border-color:#1E7A46;color:#1E7A46;background:#E6F2EA}.rz-out.bad{border-color:#B21000;color:#9f1239;background:#fff1f2}.rz-out.pend{border-color:#4D4D4D;color:#4D4D4D;background:#E4E0DA}
.rz-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 16px 14px;border-top:1px solid #E4E0DA;font-size:11px;color:#6B6762}
.rz-brand{font-weight:800;color:#072654}.rz-brand i{font-weight:600;color:#64748b}
/* invoice */
.invoice .inv-hd{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.inv-co{font-size:17px}
.inv-stamp{border:3px solid #1E7A46;color:#1E7A46;font-weight:900;letter-spacing:.1em;border-radius:8px;padding:4px 10px;transform:rotate(-6deg)}
.inv-stamp.ref{border-color:#64748b;color:#64748b}
.inv-t{font-size:18px;margin:14px 0 6px}
@media print{.noprint,.bnav,.top,.back{display:none!important}}
/* watch live */
.badge.watchb{background:#ff0033;color:#fff;text-decoration:none}
.watch{margin:0 0 12px}.watch-hd{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;margin-bottom:6px;color:inherit;opacity:.95}
.yt{position:relative;padding-top:56.25%;border-radius:12px;overflow:hidden;background:#000}.yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* overlay */
body.overlaymode{background:transparent}
.ovl-wrap{padding:16px}.scorebug{display:inline-block;min-width:260px;background:rgba(11,31,58,.92);color:#fff;border-radius:10px;overflow:hidden;font-size:14px}
.sb-hd{background:#111;color:#F7F5F2;font-weight:800;font-size:11px;padding:4px 10px}.sb-row{display:flex;gap:10px;align-items:center;padding:5px 10px}
.sb-n{flex:1}.sb-g{opacity:.7;font-size:12px}.sb-p{min-width:26px;text-align:right;font-size:18px;color:#FF5A47}.sb-ft{font-size:9px;opacity:.5;padding:2px 10px 4px}
.applist{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.approw{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px}
.approw .pinfo{flex:1;min-width:0;display:flex;flex-direction:column}
.approw .btn{min-height:40px;white-space:nowrap}
.approw{flex-wrap:wrap}
.appbtns{display:flex;gap:var(--btn-row-gap);flex-wrap:wrap}
.guidelinks{font-size:13px;margin:8px 0 2px;color:var(--muted)}.guidelinks a{font-weight:700}
.gsteps{list-style:none;padding:0;margin:14px 0;display:flex;flex-direction:column;gap:10px}
.gsteps>li{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}
.gnum{flex:0 0 28px;width:28px;height:28px;box-sizing:border-box;border-radius:50%;background:var(--navy);color:#F7F5F2;font-weight:800;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;font-variant-numeric:tabular-nums;padding:0}
.gbody{flex:1;min-width:0}.gbody p{margin:4px 0 6px;font-size:14px;line-height:1.45}.gbody ul{margin:4px 0 6px;padding-left:18px;font-size:14px}
.gfield{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0}.gfield>span{flex-basis:100%;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.gfield code{flex:1;min-width:0;font-size:13px;background:#E4E0DA;border-radius:8px;padding:8px 10px;word-break:break-all}
.gfield.locked code{color:#6B6762}

/* ===== v10: no cut-off text — wrap instead of ellipsis; layouts stay side by side and wrap only when needed ===== */
html,body{overflow-x:hidden}
code,.key,.ovl,.gfield code,.scard code{overflow-wrap:anywhere;word-break:normal;white-space:normal}
.mteams>div,.pinfo b,.ci-p .muted,.ci-p .muted mark,.bside span,.sumcard .sline b,.inv-lines .sline b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.mteams>div,.pinfo b{line-height:1.3}
.btn{white-space:normal;text-align:center;height:auto}
.approw .btn{white-space:normal}
.approw .pinfo{flex:1 1 150px}.appbtns{flex:0 1 auto;flex-wrap:wrap}
.sumcard .sline,.inv-lines .sline{flex-wrap:wrap}
.notice.stream-note{display:block}
.stream-note .sn-hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stream-note .sn-hd .badge{margin-left:auto}
.stream-note p{margin:6px 0 0}
/* v10: stop premature wrapping — rows wrap whole items to the next line instead of squeezing text into narrow columns */
.notice{display:block}.notice>svg,.notice>.ic{vertical-align:-3px;margin-right:6px}
.btnrow .btn{flex:1 1 auto;white-space:nowrap}
.umprow .pinfo,.elrow .pinfo{flex:1 1 150px}.elrow{flex-wrap:wrap}
.mtime{flex:0 0 auto;min-width:52px;max-width:92px}.mtime small{white-space:nowrap}
.mrow{flex-wrap:wrap}.mrow .mteams{flex:1 1 150px}
.tstats{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}

/* v12: bracket game scores */
.bround{flex:0 0 268px}
.bside{align-items:center;gap:6px;padding:7px 8px 7px 9px}
.bside .bnames{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.bside .bn{white-space:normal;overflow:visible;overflow-wrap:anywhere}
.bgames{display:flex;gap:2px;flex:0 0 auto}
.bside .bg{width:22px;text-align:center;font-size:12px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.bside .bg.gw{color:var(--text);font-weight:800}
.bside .bg.cur{color:var(--red);font-weight:800;background:#fff1f2;border-radius:5px}
.bside .bg.na{color:#6B6762}
.bside.win .bnames{font-weight:800}
.bmeta{font-size:10.5px;font-weight:700;color:var(--muted);padding:5px 9px;background:#f8fafc;border-bottom:1px solid var(--line);letter-spacing:.02em}
.bmeta.live{color:var(--red);background:#fff1f2}
.blive{display:inline-flex;align-items:center;gap:4px;font-weight:800;text-transform:uppercase}
.blive .dot{width:6px;height:6px;border-radius:50%;background:var(--red);display:inline-block}
/* v13: no iOS Safari focus-zoom — every form field at least 16px (pinch-zoom stays enabled) */
input,select,textarea{font-size:max(16px,1em)!important}
input[type=checkbox],input[type=radio]{font-size:inherit!important}
/* v14: entries label vertically centred in the fill bar on every browser (flex centring, no baseline/strut offset) */
/* v22: entries-bar typography is in the main .fill rule */
/* v14 categories + manual court/time */
.evchips.scroll{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
.evchips.scroll::-webkit-scrollbar{display:none}
.evchips.scroll>*{flex:0 0 auto;white-space:nowrap}
.badge.man{background:#E4E0DA;color:#4D4D4D;border:1px solid #DEDAD3;font-size:10px;padding:1px 6px;vertical-align:1px}
.catlist{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.catrow{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.catmain{flex:1 1 200px;min-width:0;display:flex;flex-direction:column;gap:2px}
.catside{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap}
.catside small{font-weight:400;color:var(--muted)}
.catedit{display:flex;flex-direction:column;gap:12px;margin:8px 0}
.catcard{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;box-shadow:var(--sh)}
.cathd{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-bottom:6px}
.catname{flex:1 1 180px;min-width:0}
.catbtns{display:flex;flex-wrap:wrap;gap:6px}
.catbtns .btn{white-space:nowrap}
.catgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0 10px}
.catgrid .fld select,.catgrid .fld input{width:100%}
.addcat{margin:8px 0 16px}
.sheetbg{position:fixed;inset:0;background:rgba(11,31,58,.55);z-index:120;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--card);width:100%;max-width:520px;max-height:90vh;overflow:auto;border-radius:18px 18px 0 0;padding:16px 16px calc(var(--btn-space-bottom) + env(safe-area-inset-bottom, 0px))}
.sheet h2{margin:0 0 4px;font-size:18px}
@media(min-width:700px){.sheetbg{align-items:center}.sheet{border-radius:18px}}
.clashes{margin:6px 0;padding-left:18px}
.clashes li{margin:3px 0}
.btnrow.autos{align-items:center;flex-wrap:wrap;margin-top:var(--btn-space-y)}
.cblk.man{outline:2px dashed #6B6762;outline-offset:-2px}
.catgrid .fld.wide{grid-column:1/-1}
/* v15 venues */
.ferr{display:block;color:#be123c;font-size:13px;font-weight:600;margin-top:4px}
.vinfo{margin:-4px 0 12px}
.duprow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:8px 0;padding-top:8px;border-top:1px solid #fecdd3}
.duprow>div{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px}
.vlist{display:flex;flex-direction:column;gap:12px}
.vcard .kv{margin:6px 0 10px}
.sheet textarea{width:100%;font:inherit;border:1.5px solid var(--line);border-radius:12px;padding:10px 12px}
.row2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.row2 input[type=date],.row2 input[type=time],.row4 input[type=date],.row4 input[type=time],.fld input[type=date],.fld input[type=time]{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:42px;min-height:42px}
/* v15 install as web app */
.hdr-install{display:inline-flex;align-items:center;gap:4px;background:var(--accent);color:#fff;border:0;border-radius:999px;padding:6px 10px;font:inherit;font-size:13px;font-weight:700;white-space:nowrap}
.hdr-install svg,.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-4px}
.ibanner{position:fixed;left:8px;right:8px;bottom:calc(70px + env(safe-area-inset-bottom));z-index:90;max-width:560px;margin:0 auto;background:var(--navy);color:#fff;border-radius:16px;padding:12px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;box-shadow:0 10px 30px rgba(11,31,58,.35);font-size:16px}
.ibanner .itxt{flex:1 1 200px;min-width:0;display:flex;flex-direction:column;gap:2px}
.ibanner .itxt span{font-size:15px;color:#B5B1AB}
.ibanner .ibtns{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.ibanner .btn.ghost{background:transparent;color:#fff;border-color:#334a6b}
.ilogo{flex:0 0 auto;width:40px;height:40px;border-radius:10px;background:var(--navy);display:grid;place-items:center;color:#F7F5F2;border:1px solid #2a2a2a}
.ilogo svg{width:24px;height:24px}
.isheetbg{position:fixed;inset:0;z-index:110;background:rgba(11,31,58,.45);display:flex;align-items:flex-end;justify-content:center}
.isheet{background:#fff;width:100%;max-width:520px;border-radius:18px 18px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));font-size:16px}
.isheet h2{margin:0 0 6px;font-size:19px}
@media(min-width:700px){.isheetbg{align-items:center}.isheet{border-radius:18px}}
.isteps{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:12px;counter-reset:st}
.isteps li{display:flex;gap:12px;align-items:center;font-size:16px;line-height:1.4}
.iic{flex:0 0 auto;width:40px;height:40px;border-radius:10px;background:#eef2f9;color:#0a84ff;display:grid;place-items:center;font-weight:700;font-size:15px}
.iic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.iic svg circle{fill:currentColor;stroke:none}
.iic-t{font-weight:700}
.iguide h2{font-size:18px;margin:0 0 4px}
.iguide p,.lead{font-size:16px;line-height:1.5}
.icard .icard-hd{display:flex;gap:10px;align-items:center}
.icard .itxt{display:flex;flex-direction:column;gap:2px;min-width:0}
/* header stays on one line when signed out and/or the Install button is shown */
@media (max-width:600px){.hdr-install span{display:none}.hdr-install{padding:6px 8px}}
@media (max-width:440px){.top.c1 .brand .ph,.top.c2 .brand .ph{display:none}}
@media (max-width:400px){.brand .wordmark{height:32px;max-width:min(176px,58vw)}}
@media (max-width:480px){.top.c2 .brand .ph{display:none}}
.iic{font-size:16px}
/* ===== v16 organiser media ===== */
.vh{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.tcard.has-poster{align-items:flex-start}
.tposter{position:relative;flex:0 0 64px;width:64px;height:80px;border-radius:10px;overflow:hidden;background:#E2DED8}
.tposter img{width:100%;height:100%;object-fit:cover;display:block}
.tdate{position:absolute;left:0;right:0;bottom:0;background:rgba(11,31,58,.82);color:#fff;font-size:11px;font-weight:700;text-transform:uppercase;text-align:center;padding:2px 0;line-height:1.3;white-space:nowrap}
.tdate b{font-size:13px}
.feat.has-poster{background:#111111}
.feat .fimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.feat.has-poster:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(17,17,17,.74) 0%,rgba(17,17,17,.84) 42%,rgba(17,17,17,.94) 100%)}
.feat.has-poster:after{display:none}
.feat.has-poster>*:not(.fimg){position:relative;z-index:2}
.feat.has-poster h3,.feat.has-poster .fmeta,.feat.has-poster .fmoney{text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 14px rgba(0,0,0,.45)}
.dposter{margin:0 0 12px;display:flex;justify-content:center}
.dposter-btn{position:relative;display:block;width:100%;max-width:440px;padding:0;border:0;background:none;border-radius:18px;overflow:hidden;box-shadow:var(--sh);cursor:zoom-in}
.dposter-btn img{display:block;width:100%;height:auto;max-height:78vh;object-fit:contain;background:#111111}
.zoomhint{position:absolute;right:10px;bottom:10px;background:rgba(11,31,58,.8);color:#fff;font-size:13px;font-weight:600;padding:4px 10px;border-radius:99px}
.lbox{position:fixed;inset:0;z-index:140;background:rgba(3,8,18,.94);display:flex;align-items:center;justify-content:center;padding:16px;cursor:zoom-out}
.lbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.lbx{position:absolute;top:calc(12px + env(safe-area-inset-top));right:12px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.15);color:#fff;font-size:20px}
.rich{font-size:16px;line-height:1.55}
.rich p{margin:0 0 10px}.rich ul,.rich ol{margin:0 0 10px;padding-left:22px}.rich li{margin:3px 0}
.rich a{color:var(--teal-d);font-weight:600;word-break:break-word}
.docs{display:flex;flex-direction:column;gap:var(--btn-row-gap);margin:12px 0 4px}
.docrow,.upitem{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}
.docic{font-size:22px;flex:0 0 auto}
.docmain,.upmain{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px}
.docmain .muted,.upmain .muted{overflow-wrap:anywhere}
.docbtns,.upbtns{display:flex;flex-wrap:wrap;gap:var(--btn-row-gap);margin-left:auto}
.docbtns .btn,.upbtns .btn{white-space:nowrap}
.upitem{margin:8px 0}.upitem .notice{flex:1 1 100%;margin:0}
.upmain input{width:100%}
.socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.mapimg{display:block;width:100%;padding:0;border:0;border-radius:14px;overflow:hidden;background:none;cursor:zoom-in}
.mapimg img{display:block;width:100%;height:auto}
.sponsors{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.sponsors>*{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;height:72px}
.sponsors img{max-width:100%;max-height:52px;object-fit:contain}
.gallery,.galedit{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px}
.gallery button{padding:0;border:0;border-radius:10px;overflow:hidden;aspect-ratio:1;background:#E2DED8}
.gallery img,.galitem img{width:100%;height:100%;object-fit:cover;display:block}
.galitem{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden}
.galitem .xbtn,.sponrow .xbtn{position:absolute;top:4px;right:4px;background:rgba(255,255,255,.9);border-radius:50%}
.catprize{flex:1 1 100%;font-size:13px;color:#92400e;font-weight:600}
.upl{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;margin:12px 0;box-shadow:var(--sh)}
.upl .sub{margin:0 0 4px}
.uplspec{font-size:14px;color:var(--muted);margin:0 0 10px;line-height:1.45}
.uplspec b{color:var(--text)}
.upbtn{cursor:pointer}
.pvwrap{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:6px}
@media(min-width:640px){.pvwrap{grid-template-columns:minmax(0,220px) minmax(0,1fr)}}
.pvcol{display:flex;flex-direction:column;gap:6px;min-width:0}
.pvfull{position:relative;border-radius:12px;overflow:hidden;cursor:crosshair;max-width:240px;touch-action:manipulation}
.pvfull img{display:block;width:100%;height:auto}
.fdot{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #111111,0 2px 8px rgba(0,0,0,.5);pointer-events:none;background:rgba(178,16,0,.45)}
.pvcard{display:flex}
.pvcard .feat{flex:0 0 auto;width:100%;max-width:300px;min-height:190px}
.pvlist .tcard{box-shadow:none;border-color:var(--line)}
.ogprev{border:1px solid var(--line);border-radius:12px;overflow:hidden;max-width:360px;background:#fff}
.ogprev img{display:block;width:100%;aspect-ratio:1200/630;object-fit:cover}
.ogprev div{padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.ogprev span{font-size:13px;color:var(--muted)}
.pvempty{display:flex;flex-direction:column;gap:6px;margin-bottom:6px}
.focal input[type=range]{width:100%;padding:0;accent-color:var(--teal)}
.upbusy{font-weight:600;color:var(--teal-d)}
.riched textarea{width:100%;font:inherit;border:1px solid var(--line);border-radius:12px;padding:10px 12px;line-height:1.5;resize:vertical}
.rtool{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.richprev{margin-top:8px;border:1px dashed var(--line);border-radius:12px;padding:10px 12px;background:#fafbfd}
details.grp summary{cursor:pointer;list-style:none;display:flex;align-items:center}
details.grp summary::-webkit-details-marker{display:none}
details.grp summary .sub{margin:0}
details.grp summary:after{content:"▾";margin-left:auto;color:var(--muted)}
details.grp[open] summary:after{content:"▴"}
details.grp textarea{width:100%;font:inherit;border:1px solid var(--line);border-radius:10px;padding:10px}
.sub2{font-size:14px;margin:14px 0 4px}
.sponedit{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.sponrow{position:relative;display:flex;flex-wrap:wrap;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:8px 40px 8px 8px}
.sponrow img{width:96px;height:48px;object-fit:contain;background:#fff;flex:0 0 auto}
.sponf{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:6px}
.sponf input{width:100%}
.uplhd{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
/* v17 */
.req{display:inline-block;margin-left:6px;font-size:12px;font-weight:700;color:#b91c1c;background:#fee2e2;border-radius:99px;padding:1px 8px;vertical-align:middle}
.galcard{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}

/* ===== v19 ===== */
/* no double-tap zoom: manipulation allows scrolling + taps only; the poster lightbox handles its own pinch-zoom */
html,body,*,*::before,*::after{touch-action:manipulation}
.lbox,.lbox *{touch-action:none}
.cropbox,.cropbox *{touch-action:none}
.lbox{overflow:hidden;cursor:default}
.lbox img{transform-origin:center center;will-change:transform;user-select:none;-webkit-user-drag:none}
.lbhint{position:absolute;bottom:calc(14px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);color:#B5B1AB;font-size:12px;background:rgba(255,255,255,.12);padding:4px 10px;border-radius:99px;pointer-events:none}
/* avatars with photos */
.av{overflow:hidden}
.av img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.av.ph{background:#E2DED8}
.av.xs{width:20px;height:20px;font-size:8px;vertical-align:middle}
.bn{display:flex;align-items:center;gap:5px}
.bn .av{flex:none}.bn .bnt{min-width:0;overflow-wrap:anywhere}
.avs{display:inline-flex;flex:none}
.avs .av+.av{margin-left:-9px;box-shadow:0 0 0 2px #fff}
.erow .pinfo span:first-child{overflow-wrap:anywhere}
/* events tabs + past cards */
#etabs{margin:4px 0 10px}
.tcard.past .pwins{display:flex;flex-direction:column;gap:3px;margin:8px 0;font-size:12.5px}
.pwin{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:baseline}
.pwin .pk{font-weight:800;color:var(--navy);background:#eef2ff;border-radius:6px;padding:1px 6px;font-size:11px;white-space:nowrap}
.pwin .pn{overflow-wrap:anywhere;font-weight:600}.pwin .pc{color:var(--muted);font-size:11px;white-space:nowrap}
.badge.pdone,.okc{background:#E6F2EA;color:#1E7A46}
.thero.done{background:linear-gradient(135deg,hsl(var(--h),45%,28%),#111111)}
.stcard .stand{padding:8px 0}.medal{font-size:20px;width:26px;text-align:center;flex:none}
.pdraw .bracket{margin-top:6px}
.galcard{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
details.pcat summary h3{display:inline}
.mrow.past{color:var(--text)}
/* footer feedback bar */
.fbbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#FFFFFF;border:1px solid #DEDAD3;border-radius:14px;padding:12px 14px;margin:0 0 14px;color:var(--text);font-size:13.5px}
.fbbar>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 180px}
.fbbar b{font-size:14.5px}
.fbbar .btn{flex:none}
.fbtype{border:0;padding:0;margin:0 0 6px}.fbtype legend{font-size:13px;font-weight:700;margin-bottom:6px;padding:0}
.fbtype .fchip{cursor:pointer;display:inline-flex;align-items:center}
.hp{display:none}
.btnrow{position:relative}.vh{left:0;top:0}
.fbthumb{max-width:120px;max-height:90px;border-radius:8px;border:1px solid var(--line);display:block;object-fit:cover}
.fbshotbtn{border:0;background:none;padding:0;margin:8px 0}
.fbitem.isdone{opacity:.75}.fbhd{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.fbmsg{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.fbt-bug{background:#ffe4e6;color:#9f1239}.fbt-suggestion{background:#E6F2EA;color:#1E7A46}.fbt-question{background:#E4E0DA;color:#4D4D4D}.fbt-other{background:#E4E0DA;color:#4D4D4D}
.fbitem code{font-size:11px;overflow-wrap:anywhere}
.thanks{text-align:center}.thanks .btnrow{justify-content:center}
/* photo card + cropper */
.photorow{display:flex;gap:14px;align-items:center}.photoact{min-width:0}
.cropbox{position:relative;overflow:hidden;margin:10px auto;background:#0f172a;border-radius:12px;cursor:grab;max-width:100%}
.cropbox img{position:absolute;left:0;top:0;max-width:none;user-select:none;-webkit-user-drag:none;transform-origin:0 0}
.cropring{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(15,23,42,.55);pointer-events:none;border:2px solid #fff}

/* ===== v20 ===== */
.acct .fbbar{margin:12px 0 4px}
.maplink{font-weight:700;white-space:nowrap}
.ytbox{margin:10px 0 14px}
.yt-watch{display:inline-block;margin:0 0 8px;font-weight:700;color:var(--accent)}
.board .yt-watch{color:#FF5A47}
.board .badge.watchb{background:#B21000;color:#FFFFFF;border:0}
.leadcard{margin-top:12px}
.gchart{margin:10px 0 4px}
.gcht{font-size:13px;font-weight:800;margin:0 0 4px}
.chartleg{margin:0 0 8px}
.chartleg .lgA{color:#1e40af;font-weight:800}
.chartleg .lgB{color:#0f766e;font-weight:800}
.leadchart .lineA{fill:none;stroke:#1e40af;stroke-width:2.1;stroke-linejoin:round;stroke-linecap:round}
.leadchart .lineB{fill:none;stroke:#0f766e;stroke-width:2.1;stroke-linejoin:round;stroke-linecap:round}
.leadchart .leadline{fill:none;stroke:#6B6762;stroke-width:1;stroke-dasharray:3 3}
.leadchart .cA{fill:#1e40af}.leadchart .cB{fill:#0f766e}
#hist-more{margin-top:var(--btn-space-y)}
#sc_s,#slot_t{min-width:0;max-width:100%;width:100%}

/* v20.2 court names */
.cname-ed{margin:4px 0 8px}
.cname-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.cname-fld span{font-size:11px;font-weight:700;color:var(--muted)}
.cchip{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* v20.4 event accordions, draw buttons, board graph */
.t-spon{margin:0 0 14px}
.sponlab{margin:0 0 8px;font-size:12.5px;font-weight:800;color:var(--muted);letter-spacing:.02em;text-transform:uppercase}
.acc{border:1px solid var(--line);background:var(--card);border-radius:16px;margin:0 0 10px;overflow:hidden;box-shadow:var(--sh)}
.acc-h{margin:0;font-size:inherit}
.acc-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;border:0;padding:14px 16px;font:inherit;font-size:17px;font-weight:800;color:var(--navy);text-align:left;cursor:pointer;min-height:48px}
.acc-btn:focus-visible{outline:2px solid #111111;outline-offset:2px}
.acc-title small{font-size:13px;font-weight:600;color:var(--muted);margin-left:6px}
.acc-chev{width:22px;height:22px;flex:none;transition:transform .25s ease;color:var(--muted)}
.acc.open .acc-chev{transform:rotate(180deg)}
.acc-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease}
.acc.open .acc-panel{grid-template-rows:1fr}
.acc-inner{overflow:hidden;min-height:0}
.acc.open .acc-inner{padding:8px 16px 16px}
.acc-inner>.card,.acc-inner>.docs,.acc-inner>.catlist,.acc-inner>.drawlinks,.acc-inner>.mapimg,.acc-inner>.timeline{margin-top:0}
.acc-inner>.card+.card,.acc-inner>.lcard+.lcard,.acc-inner>.docs+.card{margin-top:10px}
.drawlinks{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
a.drawbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#fff;font-weight:800;font-size:15px;line-height:1.2;padding:12px 16px;border-radius:14px;min-height:48px;text-decoration:none;box-shadow:var(--sh);border:0}
a.drawbtn small{font-weight:700;opacity:.7}
a.drawbtn.on{background:var(--navy);color:#fff}
a.drawbtn:active{transform:scale(.98)}
.bm[role=link]{cursor:pointer}
.vsline{margin:0 0 8px}
.board .leadcard{background:#111111;border:1px solid #2A2A2A;box-shadow:none;color:#F5F3EF;margin-top:8px}
.board .leadcard .sub{color:#F5F3EF}
.board .leadcard .muted{color:#B5B1AB}
.board .gcht{color:#F5F3EF}
.board .chartleg .lgA{color:#8EC8FF}
.board .chartleg .lgB{color:#5EE0C0}
.board .leadchart .lineA{stroke:#8EC8FF}
.board .leadchart .lineB{stroke:#5EE0C0}
.board .leadchart .leadline{stroke:#B5B1AB}
.board .leadchart .cA{fill:#8EC8FF}.board .leadchart .cB{fill:#5EE0C0}
.leadchart .grid{stroke:#e8eef5}
.leadchart text{font-size:9px;fill:#6B6762}
.board .leadchart path,.board .leadchart line,.board .leadchart .grid{fill:none}
.board .leadchart .grid{stroke:#2A2A2A}
.board .leadchart text{fill:#B5B1AB}
.board .leadchart linearGradient stop:nth-child(1),
.board .leadchart linearGradient stop:nth-child(2){stop-color:#8EC8FF}
.board .leadchart linearGradient stop:nth-child(3),
.board .leadchart linearGradient stop:nth-child(4){stop-color:#5EE0C0}

/* v20.5: room for the live card's outset red ring inside overflow:hidden accordion panels */

/* v20.6: hide the empty time column; scores always sit on their own line under the names */
.mbody{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.mfoot{display:flex;align-items:center;gap:10px;width:100%;margin-top:var(--btn-space-y)}
.mfoot .mscore{flex:1 1 auto;min-width:0}
.mfoot .mright{flex:0 0 auto;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto}
.mfoot .livebadge{margin-right:6px}
.mrow.match,.hrow.match{align-items:flex-start;flex-wrap:nowrap}
.mrow.match .mteams,.hrow.match .mteams{flex:none;width:100%}
.hrow.match .wl{margin-top:1px}

/* v21: sport badge, pickleball court graphic, score call, DUPR, enter-result form */
.chip.sport,.badge.sport{font-weight:800;letter-spacing:.02em}
.pcourt{margin:10px auto 4px;max-width:280px}
.pcourt svg{display:block;width:100%;height:auto}
.pcourt .occ{fill:#111;opacity:.85}
.pcourt .serving{fill:var(--accent)}
.pcall{text-align:center;font-weight:800;font-size:22px;letter-spacing:.04em;font-variant-numeric:tabular-nums;margin:8px 0 4px;color:var(--text)}
.pcall small{display:block;font-size:12px;font-weight:600;letter-spacing:0;color:var(--muted);margin-top:2px}
.enter-res{margin:10px 0}
.enter-res .erows{display:flex;flex-direction:column;gap:6px}
.enter-res .erow{display:flex;gap:8px;align-items:center}
.enter-res input{width:64px;text-align:center}
.dupr{font-variant-numeric:tabular-nums}
.opts .sport-opt{align-items:flex-start}

/* v22 focus ring: 2px #111 with 2px offset */
:focus-visible{outline:2px solid #111111;outline-offset:2px}
button:focus:not(:focus-visible),a:focus:not(:focus-visible),input:focus:not(:focus-visible),select:focus:not(:focus-visible),textarea:focus:not(:focus-visible){outline:none}
select:focus,input[type=text]:focus,input[type=number]:focus,input[type=date]:focus,input[type=time]:focus,input[type=url]:focus,input[type=search]:focus,input[type=email]:focus,textarea:focus,.fld input:focus{
  outline:2px solid #111111;outline-offset:2px;border-color:#DEDAD3;box-shadow:none;
}
.mrow.live{box-shadow:0 0 0 2px #D92B17,var(--sh);animation:live-ring 1.6s ease-in-out infinite}
hr,.divider{border:0;border-top:1px solid #E4E0DA}


/* v22.1 sport picker, viewing banner, and skill tiles */
.sport-seg{display:flex;gap:8px;margin:0 0 12px;padding:0}
.sport-seg-btn{flex:1 1 0;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #DEDAD3;background:#FFFFFF;color:#1F1F1F;border-radius:14px;padding:10px 8px;font-weight:800;font-size:13.5px;line-height:1.1}
.sport-seg-btn .sport-ic{flex:none}
.sport-seg-btn.on{background:#111111;border-color:#111111;color:#FFFFFF}
.sport-seg-btn[data-sport="badminton"] .sport-ic{color:var(--sport-bd)}
.sport-seg-btn[data-sport="pickleball"] .sport-ic{color:var(--sport-pb)}
.sport-seg-btn[data-sport="badminton"].on{background:var(--sport-bd);border-color:var(--sport-bd);color:#FFFFFF}
.sport-seg-btn[data-sport="pickleball"].on{background:var(--sport-pb);border-color:var(--sport-pb);color:#FFFFFF}
.sport-seg-btn.on .sport-ic{color:currentColor}
.sport-banner{display:flex;align-items:center;gap:10px;background:#FFFFFF;border:1px solid #DEDAD3;box-shadow:var(--sh);border-radius:14px;padding:10px 14px;margin:0 0 12px;font-weight:700;font-size:14px;color:#1F1F1F}
.sport-banner .sport-ic{flex:none;color:#111}
.sport-banner span{flex:1;min-width:0}
.sport-banner b{font-variant-numeric:tabular-nums;color:#4D4D4D;font-size:13px;font-weight:800}
.skill-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.skill-tile{background:#FFFFFF;border:1px solid #DEDAD3;box-shadow:var(--sh);border-radius:16px;padding:12px;display:flex;gap:10px;align-items:flex-start}
.skill-tile .sport-ic{flex:none;width:22px;height:22px;color:#111;margin-top:2px}
.skill-body{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
.skill-body small{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#6B6762}
.skill-body b{font-size:26px;font-weight:900;color:#111;font-variant-numeric:tabular-nums;line-height:1.1}
.skill-body b.skill-none{font-size:18px;color:#6B6762;font-weight:800}
.skill-meta,.skill-sub,.skill-status{font-size:11.5px;color:#6B6762;line-height:1.35}
.skill-status{font-weight:700;color:#4D4D4D}
.skill-actions{display:flex;flex-wrap:wrap;gap:var(--btn-row-gap);margin-top:var(--btn-space-y)}
.dupr-panel{margin:0 0 14px}
.dupr-panel .notice{margin-top:8px}
@media (max-width:360px){.skill-tiles{grid-template-columns:1fr}.sport-seg-btn span{font-size:12.5px}}

/* v22.5 — button spacing system + compact scoring pad / court */
.form-actions{display:flex;flex-wrap:wrap;gap:var(--btn-row-gap);margin-top:var(--btn-space-y);margin-bottom:0}
.form-actions .btn{margin:0}
* + .btn{margin-top:var(--btn-space-y)}
.btnrow > .btn,
.form-actions > .btn,
.padctl > .btn,
.pad-dock > .btn,
.mright > .btn,
.upbtns > .btn,
.docbtns > .btn,
.skill-actions > .btn,
.duprow > .btn,
.sticky-cta > .btn,
.ibanner .btn,
.ibtns > .btn,
.appbtns > .btn,
.umphd > .btn,
.ppager-btns > .btn,
.pager-btns > .btn,
.top-r .btn{margin-top:0;margin-bottom:0}
.card > .btnrow:last-child,
.card > .form-actions:last-child,
.card > .btn:last-child,
.sheet > .btnrow:last-child,
.sheet > .form-actions:last-child,
.sheet > .btn:last-child{margin-bottom:0}
.card:not(.flush):has(> .btn:last-child),
.card:not(.flush):has(> .btnrow:last-child),
.card:not(.flush):has(> .form-actions:last-child),
details.card[open]:has(> .btn:last-child),
details.card[open]:has(> .form-actions:last-child){padding-bottom:var(--btn-space-bottom)}
details.card:not([open]){padding-bottom:14px}
.pads + .padctl, .pads + .pad-dock{margin-top:var(--btn-space-y)}

/* Compact pickleball court beside the score call */
.pcallrow{display:flex;align-items:center;gap:12px;margin:6px 0 8px;min-width:0}
.pcallrow .pcall{flex:1 1 auto;min-width:0;text-align:left;margin:0;font-size:clamp(18px,5.2vw,22px)}
.pcallrow .pcall small{margin-top:4px}
.pcourt{--pcourt-h:clamp(96px, 22dvh, 152px);margin:0;max-width:none;flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;gap:3px;width:min-content}
.pcourt svg{display:block;height:var(--pcourt-h);width:auto;max-height:180px;margin:0 auto}
.pcourt .occ{fill:#111;opacity:.85}
.pcourt .serving{fill:#B21000;opacity:1}
.pcourt .recv-ring{stroke:#F7F5F2;stroke-width:2.5;fill:none;opacity:.9}
.pcourt-lab{display:flex;justify-content:space-between;gap:4px;width:100%;font-size:10px;font-weight:700;line-height:1.15;color:var(--ink);max-width:100%}
.pcourt-lab{width:max-content;min-width:100%;align-self:center}
.pcourt-lab .pl{flex:1 1 auto;min-width:0;overflow:visible;text-overflow:clip;white-space:nowrap;padding:0 2px}
.pcourt-lab{background:transparent;color:var(--ink);padding:0;position:static}
.pcourt-lab .pl-tl,.pcourt-lab .pl-bl{text-align:left}
.pcourt-lab .pl-tr,.pcourt-lab .pl-br{text-align:right}
.pcourt-lab .pl.on{color:var(--accent)}

/* Scoring pad: hide the tab bar and pin Undo/Swap/Retire */
body.padmode{padding-bottom:0}
body.padmode .bnav,
body.padmode .foot{display:none!important}
body.padmode main.pad-screen{padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px));padding-top:10px}
body.padmode .pad-dock{position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--bg);border-top:1px solid var(--line);padding:var(--btn-space-y) 16px calc(var(--btn-space-y) + env(safe-area-inset-bottom, 0px));box-shadow:0 -6px 16px rgba(17,17,17,.06)}
body.padmode .pad-dock .padctl,
body.padmode .pad-dock > .btn{max-width:600px;width:100%;margin:0 auto}
body.padmode .pad-dock .padctl{margin:0;gap:var(--btn-row-gap)}
body.padmode .padctl .btn,body.padmode .padctl select{white-space:nowrap;min-width:0}
body.padmode .pad-dock > .btn + .padctl{margin-top:var(--btn-row-gap)}
body.padmode .pads{margin:8px 0 0}
body.padmode .pad{min-height:clamp(140px, calc(100dvh - 430px), 260px)}
body.padmode #toast{bottom:calc(96px + env(safe-area-inset-bottom, 0px))}

@media (max-height:700px){
  body.padmode .top{padding-top:calc(6px + env(safe-area-inset-top, 0px));padding-bottom:6px}
  body.padmode .brand .wordmark{height:28px}
  body.padmode main.pad-screen{padding-top:8px;padding-bottom:calc(88px + env(safe-area-inset-bottom, 0px))}
  body.padmode .back{margin:0 0 4px}
  body.padmode .umphd{margin-bottom:4px}
  body.padmode .fmtsel,body.padmode .gamebar{margin:4px 0}
  body.padmode .banner{padding:8px 10px;margin:4px 0}
  body.padmode .pcallrow{margin:4px 0}
  body.padmode .pcourt{--pcourt-h:clamp(88px, 18dvh, 140px)}
  body.padmode .pad{min-height:clamp(132px, calc(100dvh - 400px), 220px)}
}
@media (max-height:620px){
  body.padmode .pcourt{--pcourt-h:clamp(72px, 14dvh, 108px)}
  body.padmode .ppts{font-size:clamp(28px, 6.5dvh, 64px)}
  body.padmode .pnames{min-height:0;font-size:12px}
}

/* v22.5: format chips stay on one scrolling row so the pad fits a short screen */
.fmtsel{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:6px 0}
.fmtsel .fmtnote{line-height:1.3}
.fmtchips{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:2px 0 4px;scrollbar-width:thin}
.fmtchips button{flex:0 0 auto;white-space:nowrap;border:1.5px solid var(--line);background:#fff;border-radius:9px;padding:6px 12px;font-weight:800;color:var(--navy)}
.fmtchips button.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.fmtchips button:disabled:not(.on){opacity:.4}

/* stacked admin / match-row actions keep 12px vertical breathing room when they wrap */
.mrow .mright,.hrow .mright{gap:var(--btn-row-gap)}

/* v22.5: play area fills the viewport above the dock so team buttons stay on screen */
body.padmode main.pad-screen{
  display:block;
  padding-top:8px;
  padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));
}
body.padmode .pad-play{
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  /* header, main padding-top, and the pinned dock — keep tiles above the fold */
  height:calc(100dvh - var(--hdr-h, 56px) - 8px - var(--pad-dock-h) - env(safe-area-inset-bottom, 0px));
  height:calc(100svh - var(--hdr-h, 56px) - 8px - var(--pad-dock-h) - env(safe-area-inset-bottom, 0px));
  max-height:calc(100dvh - var(--hdr-h, 56px) - 8px - var(--pad-dock-h) - env(safe-area-inset-bottom, 0px));
  max-height:calc(100svh - var(--hdr-h, 56px) - 8px - var(--pad-dock-h) - env(safe-area-inset-bottom, 0px));
  min-height:0;
}
body.padmode .pads{flex:1 1 auto;min-height:0;margin:8px 0 0;align-items:stretch}
body.padmode .pad{min-height:0;height:100%}
@media (max-height:700px){
  body.padmode .pad-play{--pad-dock-h:84px}
}
@media (max-height:620px){
  body.padmode .pad-play{--pad-dock-h:80px}
}
#t-manage{margin-top:var(--btn-space-y);margin-bottom:var(--btn-space-y)}

body.padmode .pad{overflow:hidden;padding:8px 8px;gap:3px;justify-content:flex-start}
body.padmode .pnames{min-height:0;font-size:13px;line-height:1.2;flex:0 0 auto}
body.padmode .pname{gap:1px 4px}
body.padmode .ppts{font-size:clamp(32px, 7dvh, 80px);flex:1 1 auto;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
body.padmode .psrv{min-height:0;flex:0 0 auto;font-size:11px}
body.padmode .pgames{flex:0 0 auto}
@media (max-height:620px){
  body.padmode .umphd b{font-size:15px}
  body.padmode .umphd .link{display:inline}
  body.padmode .pcall{font-size:18px}
}


body.padmode .umphd .btn.sm{padding:6px 10px}
@media (max-height:700px){
  body.padmode .umphd b{font-size:14.5px;line-height:1.25}
  body.padmode .umphd .link{font-size:12.5px}
}

/* v22.6: team tiles stack names, server badge, rings, score and court line with no overlap */
body.padmode .umphd div > b{display:block}
@media (max-height:700px){
  body.padmode .umphd div{display:block;min-width:0}
  body.padmode .umphd div > b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.25}
  body.padmode .umphd #ump_slot,body.padmode .umphd .link{display:inline}
  body.padmode .umphd .link{margin-left:.35em;font-size:12px}
}
@media (max-height:620px){
  body.padmode .umphd b{font-size:13.5px}
  body.padmode .pcall{font-size:17px}
  body.padmode .pcall small{font-size:10.5px;line-height:1.25}
  body.padmode .pcourt{--pcourt-h:clamp(72px, 14dvh, 108px)}
  body.padmode .fmtsel{margin:2px 0;gap:3px}
  body.padmode .fmtchips button{padding:4px 10px}
  body.padmode .pnames{font-size:12px}
  body.padmode .psrv{font-size:10.5px}
  body.padmode .pgames{gap:5px}
  body.padmode .pgames i{width:10px;height:10px}
  body.padmode .pad{padding:6px 7px;gap:2px}
  body.padmode .pads{margin:6px 0 0}
}

/* v22.7: pad layout — never squash scores; bigger court; scrollable or locked format */
body.padmode .umphd{margin-bottom:4px;align-items:flex-start}
body.padmode .umphd b{font-size:15px;line-height:1.25}
body.padmode .umphd .btn.sm{padding:6px 10px;font-size:12.5px}
body.padmode .back{margin:0 0 4px}

/* Unlock the play area so tiles keep their natural height; the page may scroll */
body.padmode .pad-play{
  display:block;
  height:auto;
  max-height:none;
  min-height:0;
}
/* Short iPhone Safari: tiles and the dock come first; the court may sit just below and the page can scroll */
@media (max-height:720px){
  body.padmode .pad-play{display:flex;flex-direction:column}
  body.padmode .pads{order:20}
  body.padmode .pcallrow{order:25}
  body.padmode .enter-res,body.padmode .pad-help{order:30}
}
body.padmode main.pad-screen{
  display:block;
  padding-top:8px;
  padding-bottom:calc(var(--pad-dock-h, 88px) + 16px + env(safe-area-inset-bottom, 0px));
}
body.padmode .pads{flex:none;min-height:0;height:auto;margin:10px 0 0;align-items:stretch}
body.padmode .pad{
  height:auto;
  min-height:176px;
  overflow:visible;
  padding:12px 10px 14px;
  gap:6px;
  justify-content:flex-start;
}
body.padmode .pnames{font-size:13.5px;line-height:1.25;flex:0 0 auto}
body.padmode .ppts{
  font-size:clamp(56px, 8dvh, 80px);
  line-height:1;
  flex:0 0 auto;
  min-height:1em;
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px 0;
}
body.padmode .psrv{font-size:11.5px;flex:0 0 auto;line-height:1.25}
body.padmode .pgames{flex:0 0 auto}

/* Format: locked collapses to one line; unlocked chips scroll with a fade hint */
body.padmode main.pad-screen,body.padmode .pad-play,body.padmode .fmtsel{min-width:0;max-width:100%}
.fmtsel{min-width:0;max-width:100%}
.fmtchips-wrap{position:relative;min-width:0;width:100%;max-width:100%;overflow:hidden}
.fmtchips-wrap::before,.fmtchips-wrap::after{
  content:"";position:absolute;top:0;bottom:0;width:28px;pointer-events:none;z-index:1;opacity:0;transition:opacity .15s
}
.fmtchips-wrap::before{left:0;background:linear-gradient(to right,var(--bg),transparent)}
.fmtchips-wrap::after{right:0;background:linear-gradient(to left,var(--bg),transparent)}
.fmtchips-wrap.can-scroll-left::before,.fmtchips-wrap.can-scroll-right::after{opacity:1}
.fmtchips{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:2px 0 6px;scrollbar-width:thin;min-width:0;width:100%;max-width:100%}
.fmtchips button{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start;border:1.5px solid var(--line);background:#fff;border-radius:9px;padding:6px 12px;font-weight:800;color:var(--navy)}
.fmtchips button.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.fmtsel.locked{margin:4px 0}
.fmtlocked{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--secondary);line-height:1.3}

/* Court: ~45–50% of the pad width, at least ~180px tall on a 390-wide phone */
body.padmode .pcallrow{display:flex;align-items:center;gap:12px;margin:6px 0 8px;min-width:0}
body.padmode .pcallrow .pcall{flex:1 1 0;min-width:0;text-align:left;margin:0}
body.padmode .pcallrow .pcourt{flex:0 0 50%;width:50%;max-width:50%;min-width:0;--pcourt-h:clamp(148px, 24dvh, 200px)}
body.padmode .pcourt{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:180px}
body.padmode .pcourt svg{width:auto;max-width:100%;height:var(--pcourt-h);aspect-ratio:200 / 360}
body.padmode .pcourt-lab{width:100%;min-width:0;font-size:12px;font-weight:700}
body.padmode .pcourt-lab .pl{overflow:hidden;text-overflow:ellipsis}

/* Call area: second-server / side-out as a small tag; (i) tip replaces the long caption */
.pcall{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.pcall-tag{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#FFFFFF;background:var(--ink);border-radius:99px;padding:3px 8px;line-height:1.2}
.pcall-score{display:flex;align-items:center;gap:8px;font-weight:800;font-size:clamp(22px, 6vw, 28px);letter-spacing:.04em;font-variant-numeric:tabular-nums;color:var(--text);line-height:1.15}
.pcall-tip{flex:0 0 auto;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line);background:#fff;color:var(--secondary);font-size:12px;font-weight:800;font-style:italic;font-family:Georgia,serif;line-height:1;padding:0;display:inline-flex;align-items:center;justify-content:center}
.pcall small{display:none}

@media (max-height:700px){
  body.padmode .umphd b{font-size:14px;line-height:1.25}
  body.padmode .pcourt{--pcourt-h:clamp(148px, 22dvh, 190px)}
  body.padmode .umphd .link{display:none}
}
@media (max-height:620px){
  body.padmode .umphd b{font-size:13.5px}
  body.padmode .pcall-score{font-size:clamp(20px, 5.8vw, 24px)}
  body.padmode .pcourt{--pcourt-h:clamp(140px, 22dvh, 170px)}
  body.padmode .ppts{font-size:clamp(56px, 8.5dvh, 72px)}
  body.padmode .pad{min-height:168px;padding:10px 8px}
}

/* v22.7 / v22.8: paginated lists — Previous and Load more are a matching 48px pair */
.ppager,.pager{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:8px;margin-top:var(--btn-space-y);padding-top:4px;width:100%;scroll-margin-bottom:calc(90px + env(safe-area-inset-bottom, 0px))}
.ppager-count,.pager-count{font-size:13px;font-weight:700;color:var(--secondary);flex:none;width:100%;display:block;line-height:1.3}
.ppager-btns,.pager-btns{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:var(--btn-row-gap);flex:none;width:100%;min-width:0;max-width:100%}
.ppager-btns > .btn,.pager-btns > .btn{
  flex:1 1 0;
  width:auto;
  min-width:0;
  height:48px;
  min-height:48px;
  max-height:48px;
  margin:0;
  padding:0 16px;
  font-size:14.5px;
  font-weight:700;
  line-height:1;
  border-radius:12px;
  white-space:nowrap;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
#plist-empty{margin:12px 0}

/* v22.8: the play surface (tiles, call + court, dock) fits above the dock at 393×659 / 390×664.
   Call sits in a narrow column so the court can use leftover height, capped at ~48% width.
   Scoreboard is an icon button; match meta stays on one line. Court halves are labelled R/L
   from that end's point of view (far end at the top, so their right court is on the left). */
body.padmode .umphd{display:flex;align-items:flex-start;gap:8px;margin:0 0 4px;min-width:0}
body.padmode .umphd-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
body.padmode .umphd-main > b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14.5px;line-height:1.25}
body.padmode .ump-meta-row{display:flex;align-items:center;gap:6px;min-width:0}
body.padmode .ump-meta{flex:1 1 auto;min-width:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px;line-height:1.3}
body.padmode .ump-slot{flex:0 0 auto;width:28px;height:28px;padding:0;border:0;background:transparent;color:var(--secondary);display:inline-flex;align-items:center;justify-content:center;border-radius:8px}
body.padmode .ump-slot svg,body.padmode .umphd-board svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.padmode .umphd-board{flex:0 0 auto;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;text-decoration:none}
body.padmode .umphd-board:hover{border-color:var(--ink)}
body.padmode .back{margin:0 0 2px}
body.padmode .fmtsel,body.padmode .fmtsel.locked,body.padmode .gamebar{margin:2px 0}
body.padmode .gamebar{gap:5px}

/* Fill the space above the fixed dock so the court can consume leftover height */
body.padmode .pad-play{
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  min-height:0;
  height:calc(100dvh - var(--hdr-h, 56px) - 8px - var(--pad-dock-h, 88px) - env(safe-area-inset-bottom, 0px));
  height:calc(100svh - var(--hdr-h, 56px) - 8px - var(--pad-dock-h, 88px) - env(safe-area-inset-bottom, 0px));
  max-height:calc(100dvh - var(--hdr-h, 56px) - 8px - var(--pad-dock-h, 88px) - env(safe-area-inset-bottom, 0px));
  max-height:calc(100svh - var(--hdr-h, 56px) - 8px - var(--pad-dock-h, 88px) - env(safe-area-inset-bottom, 0px));
  overflow:visible;
}
body.padmode .pads{order:20;flex:0 0 auto;flex-shrink:0;min-height:168px;height:auto;margin:8px 0 0}
body.padmode .pcallrow{order:15;flex:1 1 auto;min-height:0;display:flex;flex-direction:row;align-items:stretch;gap:8px;margin:4px 0 0;width:100%;max-width:100%}
body.padmode .enter-res,body.padmode .pad-help{order:30}
/* Call in a narrow left column; court uses leftover height, width cap ~48% */
body.padmode .pcallrow .pcall{flex:1 1 0;min-width:0;max-width:42%;width:auto;margin:0;justify-content:center;align-items:flex-start;gap:6px}
body.padmode .pcall-score{font-size:clamp(18px, 5.4vw, 24px)}
body.padmode .pcallrow .pcourt{
  flex:0 1 auto;
  width:auto;
  max-width:48%;
  min-width:0;
  min-height:0;
  height:auto;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
}
body.padmode .pcourt svg{width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:200 / 360;display:block;margin:0 auto}
body.padmode .pcourt-lab{width:100%;min-width:0;font-size:11px;font-weight:700;line-height:1.15}
.pcourt .pcourt-rl{fill:#C8C4BE;font-size:22px;font-weight:800;font-family:var(--mojo-font),system-ui,sans-serif}
.pcourt .pcourt-rl.on{fill:#F7F5F2}
.pcourt .pcourt-net{fill:#F7F5F2;font-size:13px;font-weight:800;letter-spacing:.12em;font-family:var(--mojo-font),system-ui,sans-serif}
.pcourt .pcourt-end{fill:#F7F5F2;font-size:12px;font-weight:700;font-family:var(--mojo-font),system-ui,sans-serif}

/* Keep score digits unclipped; tiles keep a natural height */
body.padmode .pad{height:auto;min-height:168px;overflow:visible;padding:10px 8px 12px;gap:4px}
body.padmode .ppts{font-size:clamp(56px, 8dvh, 80px);line-height:1;min-height:1em;overflow:visible;padding:2px 0}

/* Very short screens (375×600): the page may scroll, but padding clears the dock */
@media (max-height:620px){
  body.padmode .pad-play{height:auto;max-height:none;overflow:visible}
  body.padmode .pads{order:15}
  body.padmode .pcallrow{order:25;flex:0 0 auto}
  body.padmode .pcallrow .pcourt{max-width:48%}
  body.padmode .pcourt svg{max-height:160px}
  body.padmode .umphd-main > b{font-size:13.5px}
  body.padmode main.pad-screen{padding-bottom:calc(var(--pad-dock-h, 88px) + 24px + env(safe-area-inset-bottom, 0px))}
}


/* v22.8: dock controls share one row. Undo and Swap ends hug their labels;
   Retire takes the leftover width. ≥12px horizontal padding; labels stay on one line.
   At 375/393 the non-admin retire label shortens to “Retire → ref”. */
body.padmode .pad-dock .padctl{
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:var(--btn-row-gap);
  width:100%;
  max-width:600px;
  min-width:0;
  margin:0 auto;
}
body.padmode .padctl .btn,
body.padmode .padctl select{
  flex:0 0 auto;
  width:auto;
  min-width:0;
  height:48px;
  min-height:48px;
  box-sizing:border-box;
  white-space:nowrap;
  overflow:hidden;
  padding-left:12px;
  padding-right:12px;
  margin:0;
}
body.padmode .padctl .pad-retire,
body.padmode .padctl select{
  flex:1 1 auto;
  min-width:0;
}
body.padmode .padctl select{padding-right:36px}
body.padmode .pad-retire .lbl-narrow{display:none}
body.padmode .pad-retire .lbl-wide{display:inline}
@media (max-width:430px){
  body.padmode .pad-retire .lbl-wide{display:none}
  body.padmode .pad-retire .lbl-narrow{display:inline}
}

/* v23 clubs */
.ttl-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 8px}
.ttl-row .ttl{margin:0;flex:1 1 auto;min-width:0}
.ttl-row .btn,.clubs-jump + .btn,.club-me .btnrow .btn,.club-actions .btn,.club-form .form-actions .btn{
  height:48px;min-height:48px;padding:0 16px;margin:0;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap
}
.ttl-row .btn{flex:0 0 auto}
.clubs-jump{margin:0 0 12px;font-size:13.5px;color:var(--secondary)}
.clubs-jump a{font-weight:700}
.club-chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.club-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1.5px solid var(--line);border-radius:99px;padding:5px 10px 5px 5px;color:var(--ink);font-size:13px;font-weight:700;line-height:1.2;max-width:100%}
.club-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.club-chip:hover{border-color:var(--ink)}
.av.club{background:linear-gradient(135deg,#1B2A4A,#0E7A6E)}
.club-me{margin:0 0 14px}
.club-me .btnrow{margin-top:var(--btn-space-y);margin-bottom:0}
.club-pills{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.club-pills .sportline{margin:0}
.ccard{align-items:flex-start}
.ccard .av{margin-top:2px}
.club-hero{align-items:flex-start}
.club-hero h1{font-size:22px;line-height:1.2}
.club-actions{margin:0 0 var(--btn-space-y)}
.club-desc{margin:0 0 16px;color:var(--text);line-height:1.45}
.club-form .row2,.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:430px){.club-form .row2,.row2{grid-template-columns:1fr}}
.club-logo-edit{display:flex;gap:14px;align-items:flex-start;margin:0 0 16px}
.club-sports{border:0;padding:0;margin:0 0 12px}
.club-sports legend{font-weight:700;margin:0 0 6px}
.club-taken{margin:6px 0 12px;padding:10px 12px;background:var(--success-tint);border-radius:12px;color:var(--text);font-size:13.5px;line-height:1.4}
.club-taken a{font-weight:800}
.club-rt{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.club-promote{height:36px;min-height:36px;padding:0 10px;font-size:12.5px;margin:4px 0 0}
.club-req{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 10px}
.club-req .pinfo{flex:1 1 160px;min-width:0}
.club-req .pager-btns{flex:1 1 220px;margin:0}
#club-members .pager{width:100%}
@media (max-width:430px){
  .ttl-row .btn{flex:1 1 100%}
  .club-actions{flex-wrap:wrap}
  .club-actions .btn{flex:1 1 calc(50% - 6px)}
}

/* v23.1 — club representation, honours, amber name-taken, member search spacing */
:root{
  --warn-text:#5C3A00;
  --warn-link:#6B3A00;
  --warn-tint:#F8E7C7;
}
.club-taken{background:var(--warn-tint);color:var(--warn-text);border:1px solid #E6C98A}
.club-taken a{color:var(--warn-link);font-weight:800;text-decoration:underline}
.club-mem-search{margin:0 0 18px}
.club-rep{font-weight:650;color:var(--secondary);white-space:nowrap}
.club-rep-full::before{content:"· ";font-weight:500}
.club-rep-s{display:none;font-size:.92em;opacity:.9}
.side-label.side-stack{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;vertical-align:top;max-width:100%}
.side-label.side-stack .side-club{font-size:.85em;line-height:1.25;font-weight:650;color:var(--secondary)}
.side-label.side-stack .club-rep-full::before,.side-club .club-rep-full::before{content:none}
.side-label.side-inline{white-space:normal}
.confirm h2.result-h,.confirm h2{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.confirm h2 .side-label.side-stack{align-items:center}
.confirm h2 .side-club,.confirm h2 .club-rep-full{font-size:.62em;font-weight:700}
.confirm h2 .win-word{font-size:.85em;font-weight:800;letter-spacing:0;text-transform:none;color:var(--ink,#111)}
.confirm .vsline{margin:8px 0 0;text-align:center}
.mteams .side-label.side-stack,.elrow .side-label.side-stack{display:flex}
@media (max-width:430px){
  .mrow .side-stack .club-rep-full,.lrow .side-stack .club-rep-full{display:none}
  .mrow .side-stack .club-rep-s,.lrow .side-stack .club-rep-s{display:inline}
}
@media (max-width:430px){
  .mrow .club-rep-full,.mteams .club-rep-full,.lrow .club-rep-full,.ci-p .club-rep-full,.bn .club-rep-full,.gtable .club-rep-full{
    display:none
  }
  .mrow .club-rep-s,.mteams .club-rep-s,.lrow .club-rep-s,.ci-p .club-rep-s,.bn .club-rep-s,.gtable .club-rep-s{
    display:inline
  }
}
.stcard .club-rep-s,.elrow .club-rep-s,.podium-row .club-rep-s,.honour-row .club-rep-s,.bdn .club-rep-s,.banner .club-rep-s,.confirm h2 .club-rep-s,.vsline .club-rep-s,.pwin .club-rep-s{
  display:none
}
.stcard .club-rep-full,.elrow .club-rep-full,.podium-row .club-rep-full,.honour-row .club-rep-full,.bdn .club-rep-full,.banner .club-rep-full,.confirm h2 .club-rep-full,.vsline .club-rep-full,.pwin .club-rep-full{
  display:inline
}
.scorebug .club-rep{display:none}
.pname .club-rep-full{display:none}
.pname .club-rep-s{display:inline;font-weight:650;font-size:11px}
.reg-rep-list{display:flex;flex-direction:column;gap:12px;margin:0 0 var(--btn-space-y)}
.reg-rep .fld,label.reg-rep{margin:0}
.reg-rep select{min-height:48px;height:48px;width:100%;padding:0 12px;border-radius:12px;box-sizing:border-box}
.podium-counts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.podium-count{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:6px 12px;font-weight:800;font-size:13.5px;line-height:1.2}
.podium-count[data-place="1"]{background:#F8E7B0;color:#5C4300}
.podium-count[data-place="2"]{background:#E6E9EE;color:#334155}
.podium-count[data-place="3"]{background:#F3DFC8;color:#6B3B12}
.podium-row,.honour-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.podium-row:first-child,.honour-row:first-child{border-top:0;padding-top:0}
.podium-medal{flex:none;width:52px;text-align:center;border-radius:12px;padding:8px 4px 7px;line-height:1.1}
.podium-medal .med-ico{display:block;font-size:22px;line-height:1}
.podium-medal .med-word{display:block;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin-top:3px}
.podium-medal[data-place="1"]{background:#F8E7B0;color:#5C4300}
.podium-medal[data-place="2"]{background:#E6E9EE;color:#334155}
.podium-medal[data-place="3"]{background:#F3DFC8;color:#6B3B12}
.podium-row .pinfo,.honour-row .pinfo{flex:1;min-width:0}
.podium-row .pinfo b,.honour-row .pinfo b{display:block;line-height:1.25}
.former-tag{display:inline-block;margin-left:6px;font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#7A4B00;background:#F8E7C7;border-radius:99px;padding:2px 7px;vertical-align:middle}
.honours-list,.podium-list{background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:14px 16px;margin:0 0 16px}


/* v23.3 searchable picker, sport pills, club leaderboard */
.sport-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 8px;border-radius:99px;font-weight:800;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;line-height:1.2;width:max-content;max-width:100%;color:#FFFFFF;background:var(--sport-bd);border:0}
.sport-pill .sport-ic{width:14px;height:14px;flex:0 0 14px;color:currentColor}
.sport-pill[data-sport="badminton"],.sport-pill-badminton{background:var(--sport-bd);color:#FFFFFF}
.sport-pill[data-sport="pickleball"],.sport-pill-pickleball{background:var(--sport-pb);color:#FFFFFF}
.sportline.sport-pill{margin:0 0 8px}
.club-pills .sport-pill,.club-pills .sportline{margin:0}
.podium-meta .sport-pill{text-transform:uppercase;vertical-align:middle;margin-left:2px}
.sport-seg-btn[data-sport="badminton"].on{background:var(--sport-bd);border-color:var(--sport-bd);color:#FFFFFF}
.sport-seg-btn[data-sport="pickleball"].on{background:var(--sport-pb);border-color:var(--sport-pb);color:#FFFFFF}

.pick-wrap{position:relative;width:100%}
.pick-legacy{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pick-btn,.reg-rep-btn{min-height:48px;height:48px;width:100%;justify-content:flex-start;text-align:left;padding:0 12px;border-radius:12px;box-sizing:border-box;font-weight:700}
.pick-opt-list,.rep-opt-list{display:flex;flex-direction:column;gap:4px;max-height:min(52vh,420px);overflow:auto;margin:8px 0 12px;-webkit-overflow-scrolling:touch}
.pick-opt,.rep-opt{display:flex;align-items:center;min-height:48px;width:100%;padding:8px 12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;text-align:left;font:inherit;cursor:pointer;box-sizing:border-box}
.pick-opt.on,.rep-opt.on{border-color:var(--navy);box-shadow:0 0 0 3px rgba(11,31,58,.08);font-weight:800}
.pick-opt.focus,.rep-opt.focus{outline:2px solid #111;outline-offset:2px}
.pick-opt-other{opacity:.92;cursor:default}
.pick-opt-main{display:flex;flex-direction:column;gap:1px;min-width:0}
.pick-opt-name{font-weight:700}
.reg-rep-list{display:flex;flex-direction:column;gap:14px}
.reg-rep-role{font-weight:800;font-size:14px}
.reg-rep-who{margin:0 0 6px}

.rk-tog{display:flex;gap:8px;margin:0 0 12px;padding:4px;background:#F4F1EC;border-radius:14px}
.rk-tog button{flex:1;min-height:48px;height:48px;border:0;border-radius:10px;background:transparent;font:inherit;font-weight:800;color:var(--muted);cursor:pointer}
.rk-tog button.on{background:#fff;color:var(--navy);box-shadow:var(--sh)}

.clb-sports{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.clb-sport{cursor:pointer;border:0}
.clb-sport:not(.on){opacity:.55}
.clb-sport.on{box-shadow:0 0 0 3px rgba(11,31,58,.18)}
.clb-sport-all{display:inline-flex;align-items:center;justify-content:center;padding:4px 12px;border-radius:99px;font-weight:800;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;background:#F4F1EC;color:var(--navy);border:1.5px solid var(--line)}
.clb-sport-all.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.clb-period{margin:0 0 10px}
.clb-list{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.clb-row{display:grid;grid-template-columns:36px 40px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:56px;padding:8px 10px;background:#fff;border:1px solid #DEDAD3;border-radius:14px;text-decoration:none;color:inherit;box-shadow:var(--sh)}
.clb-rank{display:grid;place-items:center;width:36px;height:36px;font-weight:800;font-variant-numeric:tabular-nums;text-align:center;line-height:1}
.clb-rank.clb-top{border-radius:50%;font-size:18px;background:#F4F1EC}
.clb-rank[data-rank="1"]{background:#F8E7C7}
.clb-rank[data-rank="2"]{background:#E8EAED}
.clb-rank[data-rank="3"]{background:#F0E0D0}
.clb-main{min-width:0}
.clb-main b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clb-medals{display:block}
.clb-pts{text-align:right;line-height:1.15}
.clb-pts b{display:block;font-size:16px;color:var(--navy)}
.clb-pts span{font-size:11px;color:var(--muted);font-weight:700}

#club-sections .acc-h{margin:0}
#club-sections .acc{border:1px solid #DEDAD3;border-radius:14px;background:#fff;margin:0 0 10px;overflow:hidden}
#club-sections .acc-btn{min-height:48px;height:48px;padding:0 14px}
#my-clubs,#clubs-lb-sec,#clubs-find{margin:0 0 18px}
#clubs-lb-sec .sec,#clubs-find .sec,#my-clubs .sec{margin-top:0}

/* v23.4 — append Load more, in-card ID notices, pending requests, stacked match sides */
.more-pager{display:flex;flex-direction:column;gap:8px;margin:12px 0 0;width:100%;box-sizing:border-box}
.more-pager .pager-count{font-size:13px;color:var(--muted);font-weight:600}
.more-btn,.pager .more-btn,button.more-btn{display:block;width:100%;min-height:48px;height:48px;box-sizing:border-box;margin:0}
.notice.warn,.id-notice{background:var(--warn-tint);color:var(--warn-text);border:1px solid #E6C98A;box-sizing:border-box;width:100%;max-width:100%;margin:8px 0 0;padding:11px 13px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;min-width:0;flex-wrap:wrap}
#dupr-panel .id-notice,#dupr-id-notice{margin:8px 0 0;align-self:stretch}
.pend-sec{margin:0 0 18px}
.pend-row{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.pend-row:first-of-type{border-top:0;padding-top:0}
.pend-main{display:flex;align-items:flex-start;gap:12px;min-width:0;color:inherit;text-decoration:none}
.pend-main .tmain{flex:1;min-width:0}
.pend-main h3{margin:0 0 4px;font-size:15px}
.pend-chip{flex:none;background:var(--warn-tint);color:var(--warn-text);border:1px solid #E6C98A;font-weight:800;font-size:12px;padding:4px 10px;border-radius:99px;white-space:nowrap}
#club-pending-row{align-items:center;flex-wrap:wrap}
#club-pending-row .pend-chip{min-height:48px;display:inline-flex;align-items:center}
.pend-cancel,#club-cancel-req{min-height:48px;height:48px}
.match-teams{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;width:100%;max-width:100%;overflow:visible}
.team-block{min-width:0;max-width:100%;display:flex;flex-direction:column;gap:2px}
.team-block .seed{margin-right:4px}
.team-names{display:flex;flex-wrap:wrap;align-items:baseline;min-width:0;max-width:100%;font-weight:700;line-height:1.35;overflow-wrap:normal}
.team-pname{display:inline-block;white-space:nowrap;max-width:100%;overflow-wrap:anywhere;font-weight:inherit}
.team-slash{white-space:pre;flex:none}
.team-clubs{display:block;font-size:12px;line-height:1.25;font-weight:650;color:var(--muted);margin-top:1px}
.team-vs{text-align:center;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:lowercase;color:var(--muted);padding:2px 0;line-height:1}
.team-block.win .team-names{font-weight:800}
.mteams>.match-teams,.mteams .match-teams,.mteams .team-block,.mteams .team-names,.mteams .team-vs,.mteams .team-clubs{
  white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal
}
.lrow{align-items:flex-start}
.lrow .ln{flex:1;min-width:0}
.lrow .ln .team-block{width:100%}
.lrow .lg,.lrow .lp{flex:none;padding-top:2px}
.lcard .match-teams{width:100%}
.acc-live .lrow{display:block;padding:8px 0}
.bdn .team-block{color:inherit}
.bdn .team-names{font-size:20px;color:#F5F3EF}
.bdn .team-clubs{color:#B5B1AB;font-size:12px}
.bn .team-names{font-size:inherit}
.bn .team-clubs{font-size:11px}
@media (min-width:720px){
  .match-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px 12px}
  .team-a{text-align:right}
  .team-a .team-names{justify-content:flex-end}
  .team-vs{padding:0 4px}
}
