#clubs-dialog {
  --club-paper:#fbf0df; --club-ice:#bed3e9; --club-orange:#ff985d; --club-ink:#111b2d;
  box-sizing:border-box; position:fixed; inset:0; margin:auto; width:min(900px,calc(100vw - 48px));
  max-width:none; max-height:calc(100dvh - 48px); padding:0; overflow:hidden;
  color:var(--club-paper); border:1px solid #8da6c384; border-top:2px solid var(--club-orange);
  border-radius:22px; background:radial-gradient(ellipse at 70% -20%,#344a6a 0,#19273e 45%,#10192a 100%);
  box-shadow:0 28px 90px #050a14a0,0 0 1px 4px #19294440;
}
#clubs-dialog::backdrop { background:#070e1b86; }
#clubs-dialog[open] { display:flex; }
.clubs-hub {
  box-sizing:border-box; display:flex; flex-direction:column; min-width:0; min-height:0; width:100%;
  padding:clamp(15px,2.6vw,29px);
}
.clubs-header {
  position:static; display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin:0; padding:0; border:0; background:none;
}
.clubs-header small,.club-identity small { color:var(--club-orange); font:700 12px/1.3 var(--font-body); letter-spacing:.12em; }
.clubs-header h2 {
  margin:4px 0 0; font:italic 800 clamp(29px,5vw,52px)/.95 var(--font-display); text-transform:uppercase;
}
#clubs-dialog button {
  width:auto; min-height:44px; margin:0; padding:7px 13px; color:var(--club-paper);
  border:1px solid #9eb6d081; border-radius:7px; background:linear-gradient(#31445e,#24354d);
  box-shadow:inset 0 1px 0 #d4e4ff2e,0 2px 0 #070b155e; font:700 14px/1.15 var(--font-body);
}
#clubs-dialog button:hover:not(:disabled) { background:#3b5472; border-color:#e1eeff; }
#clubs-dialog button:is(.primary,[aria-pressed="true"]) { background:linear-gradient(145deg,#ffd4a8,#ffb278); color:#222536; border-color:#fff2e5; }
#clubs-dialog button:is(.primary,[aria-pressed="true"]):hover:not(:disabled) { background:linear-gradient(145deg,#ffe0bd,#ffb278); }
#clubs-dialog .clubs-close { flex:none; min-width:44px; padding:3px; font-size:24px; }
#clubs-dialog :is(button,input,select,.clubs-body):focus-visible { outline:2px solid var(--club-orange); outline-offset:2px; }
#clubs-dialog button:disabled,.clubs-hub[aria-busy="true"] button:not(.clubs-close) { opacity:.65; }
.clubs-hub[aria-busy="true"] button:not(.clubs-close) { pointer-events:none; }
.clubs-status { margin:8px 0 0; color:#ffc981; font:600 13px/1.35 var(--font-body); }
.clubs-status:empty { display:none; }
.clubs-tabs {
  flex:none; display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; padding:0;
  background:none; border:0;
}
.clubs-tabs button { white-space:nowrap; }
.clubs-tabs:empty { display:none; }
.club-settings-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 14px; }
.clubs-body { overflow:auto; min-height:0; overscroll-behavior:contain; scrollbar-gutter:stable; padding:4px 7px 8px 3px; }
.clubs-body p { color:var(--club-ice); }
.clubs-body :is(h3,.club-empty h2) { margin:8px 0; font:750 clamp(20px,3.5vw,29px)/1.08 var(--font-display); }
.club-identity { display:flex; align-items:center; gap:14px; margin:4px 0 16px; }
.club-identity h2 { margin:4px 0; font:750 clamp(24px,5vw,34px)/1.08 var(--font-display); overflow-wrap:anywhere; }
.club-mark {
  box-sizing:border-box; width:64px; height:67px; display:flex; align-items:center; justify-content:center; flex:none;
  padding:0 0 13.4px; clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%);
}
.club-mark-tag {
  font:400 22px/1 var(--font-display); letter-spacing:-.035em; white-space:nowrap; flex:none;
}
.club-mark[data-tag-length="3"] .club-mark-tag { font-size:16px; }
.club-mark[data-tag-length="4"] .club-mark-tag { font-size:13px; }
.club-mark[data-tag-length="5"] .club-mark-tag { font-size:12px; }
.club-count { margin-inline-start:auto; font-size:13px; text-align:end; }
.club-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.club-metric,.club-pair article,.club-directory-results li {
  min-width:0; border:1px solid #849ab865; border-radius:9px; background:#131e30; padding:12px;
}
.club-metric { display:flex; flex-direction:column; gap:4px; }
.club-metric strong { color:#ffd4a8; font:750 clamp(23px,4vw,34px)/1 var(--font-display); overflow-wrap:anywhere; }
.club-metric span,.club-record,.club-help,.club-directory-results small { font-size:13px; color:var(--club-ice); }
.club-compete-callout,.club-directory { background:#1d2c42; padding:16px; margin:14px 0 0; border:1px solid #849ab865; border-radius:9px; }
.club-compete-callout { border-inline-start:3px solid var(--club-orange); }
.club-empty { padding:0 0 6px; }
.club-create,.club-pair-controls,.club-directory-tools { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.clubs-hub :is(input,select) {
  box-sizing:border-box; min-height:44px; max-width:100%; margin:0; padding:7px 11px;
  border:1px solid #9eb6d081; border-radius:7px; background:#101a2a; color:var(--club-paper); font:600 14px/1.2 var(--font-body);
}
.clubs-hub input::placeholder { color:#b7c7d9; }
.club-directory-tools input { min-width:min(200px,100%); }
.club-directory-results { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.club-directory-results li { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.club-directory-results li div,.club-member>div { display:flex; flex-direction:column; gap:4px; overflow-wrap:anywhere; }
.club-directory-results li button { flex:none; }
.club-roster { display:flex; flex-direction:column; margin:12px 0; }
.club-member { display:flex; align-items:center; flex-wrap:wrap; gap:8px; border-bottom:1px solid #849ab865; padding:10px 0; }
.club-member>div { flex:1; min-width:110px; }
.club-member small,.club-pair span { font-size:12px; color:var(--club-ice); }
.club-number { width:36px; font-size:16px; color:#ffd4a8; }
.club-member input { width:68px; }
.club-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0; }
.club-pair article { display:flex; flex-direction:column; gap:6px; overflow-wrap:anywhere; }
.club-jersey { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:center; }
.club-jersey-preview { display:grid; place-items:center; min-height:130px; background:#253a55; border-bottom:12px solid; border-radius:8px; }
.club-jersey-preview canvas { display:block; width:min(100%,170px); height:auto; aspect-ratio:4/5; }
.club-jersey fieldset { border:0; display:flex; flex-direction:column; gap:8px; padding:0; min-width:0; }
.club-jersey label { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.club-jersey input[type="color"] { width:68px; }
@media (max-width:620px),(orientation:landscape) and (max-height:540px) {
  #clubs-dialog { width:min(900px,calc(100vw - 20px)); max-height:calc(100dvh - 20px); border-radius:14px; }
  .clubs-hub { padding:10px 12px; }
  .clubs-tabs { margin:7px 0; gap:4px; }
  #clubs-dialog button { font-size:12px; padding-inline:8px; }
  .club-metric,.club-directory-results li,.club-pair article { padding:8px; }
  .club-jersey-preview canvas { width:min(100%,145px); }
}
@media (max-width:480px) and (orientation:portrait) {
  .club-jersey { grid-template-columns:1fr; }
}


#clubs-dialog .club-queue-status{margin:5px 0;padding:9px 12px;border-inline-start:3px solid #ff9b5c;background:#ff9b5c15;}
.club-invite-controls,.club-invitation{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.club-invite-controls select,.club-invitation>div{flex:1;min-width:9rem;}
.club-invitation{padding:8px 0;border-block-end:1px solid #8da6c345;}
.club-invitation:last-child{border-block-end:0;}
.club-invitation strong,.club-invitation small{display:block;}
@font-face{font-family:ArchivoBlack;src:url(fonts/archivo-black.ttf) format('truetype');font-style:normal;font-weight:400 900;font-display:swap}
/* Heavy display typography for club identity and controls. */
#clubs-dialog{--font-body:Arial,Helvetica,sans-serif;--font-display:ArchivoBlack,Arial,sans-serif;font-family:var(--font-body)}
#clubs-dialog :is(h1,h2,h3,button,th){font-family:var(--font-display);font-weight:400}
#clubs-dialog :is(input,select,td,small){font-family:var(--font-body)}


/* Club banners share the bold upright display face, including the tag badge. */
#clubs-dialog :is(.clubs-header h2,.clubs-header small,.club-identity h2,.club-identity small,.club-mark-tag){font-family:var(--font-display);font-style:normal;font-weight:400}

#clubs-dialog .club-enrollment{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;padding-top:12px;border-top:1px solid #849ab865;}
#clubs-dialog .club-enrollment label{display:grid;gap:5px;}
#clubs-dialog .club-enrollment .club-help{grid-column:1/-1;margin:0;}
@media(max-width:390px){#clubs-dialog .club-enrollment{grid-template-columns:minmax(0,1fr);}}

/* Competition takes over the Clubs popout; it never layers over another dialog. */
#clubs-dialog .club-ranked-launch {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
  gap:10px 18px; padding:clamp(12px,2.2vw,22px);
  background:linear-gradient(105deg,#3b2a2b,#182a44 78%);
}
#clubs-dialog .club-ranked-launch :is(h3,p) { margin:0; }
#clubs-dialog .club-ranked-launch h3 { line-height:1.12; }
#clubs-dialog .club-ranked-launch p { margin-top:4px; line-height:1.3; }
#clubs-dialog .club-ranked-open {
  justify-self:end; min-height:52px; padding:9px 18px; font-size:clamp(14px,2.2vw,18px);
  box-shadow:0 4px 0 #a94e29,0 9px 18px #070c1680,inset 0 1px #fff4df;
}
#clubs-dialog .club-ranked-open:active:not(:disabled) { transform:translateY(2px); }
#clubs-dialog .clubs-hub[data-club-view="competition"] {
  background:radial-gradient(ellipse at 50% -70%,#815349 0%,#202f4a 47%,#0d1527 100%);
}
#clubs-dialog .clubs-hub[data-club-view="competition"] .clubs-header {
  align-items:center; padding-bottom:clamp(7px,2dvh,16px); border-bottom:1px solid #96aec75c;
}
#clubs-dialog .clubs-hub[data-club-view="competition"] .clubs-close {
  padding-inline:12px; font-size:clamp(12px,2vw,15px); white-space:nowrap;
}
#clubs-dialog .clubs-hub[data-club-view="competition"] .clubs-body { padding-top:clamp(8px,2dvh,17px); }
.club-ranked-stage { display:grid; gap:clamp(7px,2dvh,13px); }
.club-ranked-match {
  isolation:isolate; position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center; padding:clamp(12px,3.8dvh,35px) clamp(8px,3vw,24px); min-height:clamp(116px,27dvh,220px);
  border:1px solid #94adc277; border-radius:14px;
  background:radial-gradient(ellipse at 15% 100%,#77463375,transparent 47%),radial-gradient(ellipse at 87% 4%,#36738750,transparent 55%),#102039;
}
.club-ranked-match::before {
  content:""; position:absolute; z-index:-1; inset:9% 8%; border:1px solid #d6e4ff35; border-radius:4px;
  background:linear-gradient(90deg,transparent calc(50% - .5px),#d6e4ff45 calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px));
  transform:perspective(340px) rotateX(22deg);
}
.club-ranked-side { display:grid; justify-items:center; text-align:center; gap:6px; min-width:0; }
.club-ranked-side strong { font:400 clamp(14px,2.7vw,23px)/1.12 var(--font-display); overflow-wrap:anywhere; }
.club-ranked-side small { color:var(--club-ice); }
.club-ranked-opponent-mark {
  display:grid; place-items:center; box-sizing:border-box; width:64px; height:67px; padding-bottom:9px;
  background:#30495a; color:#d8ebf6; clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%);
  font:400 28px/1 var(--font-display);
}
.club-ranked-versus {
  display:grid; place-items:center; width:clamp(35px,6vw,52px); aspect-ratio:1; border:1px solid #ffc193a3;
  border-radius:50%; background:#192238; color:#ffd5ad; font:400 clamp(12px,2vw,17px)/1 var(--font-display);
}
.club-ranked-controls {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:5px 12px;
  padding:8px 12px; border:1px solid #94adc277; border-radius:12px; background:#121c2d;
}
.club-ranked-kicker { color:#ffc094; letter-spacing:.11em; font-weight:700; line-height:1.15; }
#clubs-dialog .club-ranked-controls .club-queue-status {
  margin:3px 0 0; padding:0; border:0; background:none; line-height:1.3;
}
#clubs-dialog .club-ranked-controls button { flex:0 0 auto; min-width:min(100%,150px); font-size:clamp(13px,2vw,16px); }
@media (orientation:landscape) and (max-height:410px) {
  .club-ranked-match { min-height:0; padding-block:9px; }
  .club-ranked-side { gap:3px; }
  .club-ranked-side :is(.club-mark,.club-ranked-opponent-mark) { width:64px; height:48px; padding-bottom:7px; }
  .club-ranked-opponents .club-ranked-opponent-mark { font-size:21px; }
  #clubs-dialog .clubs-hub[data-club-view="competition"] .clubs-header h2 { font-size:clamp(25px,5vw,35px); }
}
@media (max-width:440px) {
  #clubs-dialog .club-ranked-launch { grid-template-columns:1fr; }
  #clubs-dialog .club-ranked-open { width:100%; justify-self:stretch; }
}
.club-ranked-live {
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap;
}
.club-ranked-side .club-ranked-rating {
  line-height:1.1; color:#ffd3ae; font-weight:700; letter-spacing:.025em;
}

/* Club Ranked assembles a real two-person party before search starts. */
#clubs-dialog .club-ranked-match {
  grid-template-columns:minmax(0,2fr) auto minmax(92px,1fr);
  column-gap:clamp(4px,2vw,14px);
}
.club-ranked-team-info {
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:4px 9px; margin-bottom:3px;
}
.club-ranked-team-info .club-mark { width:64px; height:35px; padding-bottom:5px; }
.club-ranked-party { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.club-ranked-seat,#clubs-dialog .club-ranked-add {
  min-width:0; min-height:80px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px;
  padding:6px; background:#111d30d9; border:1px solid #a4bac871; border-radius:9px; text-align:center; overflow-wrap:anywhere;
}
.club-ranked-seat strong,#clubs-dialog .club-ranked-add strong { font-size:clamp(12px,2vw,15px); }
#clubs-dialog .club-ranked-add { border:1px dashed #ffba86a8; background:#332638da; }
#clubs-dialog .club-ranked-add span { color:#ffd0a5; font-size:29px; line-height:.95; }
.club-ranked-athlete { width:min(100%,110px); height:70px; object-fit:contain; }
.club-ranked-seat .club-ranked-ready { color:#9feecf; }
.club-ranked-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
#clubs-dialog .club-ranked-actions button { min-width:0; font-size:clamp(12px,2vw,15px); }
.club-ranked-inbox { display:grid; gap:5px; padding:8px; border:1px solid #94adc277; border-radius:12px; background:#121c2d; }
.club-ranked-invite-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px 11px; }
.club-ranked-invite-row strong { overflow-wrap:anywhere; }
@media (orientation:landscape) and (max-height:410px) {
  .club-ranked-athlete { height:45px; }
  .club-ranked-team-info .club-mark { height:27px; padding-bottom:4px; }
  .club-ranked-seat,#clubs-dialog .club-ranked-add { min-height:62px; }
  .club-ranked-side small { font-size:12px; }
}
@media (max-width:455px) {
  #clubs-dialog .club-ranked-match { grid-template-columns:minmax(0,1fr); row-gap:5px; }
  .club-ranked-versus { display:none; }
  .club-ranked-opponents { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; margin-top:4px; gap:6px; }
  .club-ranked-opponents .club-ranked-opponent-mark { display:none; }
}

.club-ranked-rules { display:flex; align-items:center; flex-wrap:wrap; gap:3px 9px; color:var(--club-ice); margin-top:1px; }
.club-ranked-stats { padding:10px 12px; border:1px solid #94adc277; border-radius:12px; background:#121c2d; }
.club-stats-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 10px; margin-bottom:7px; }
#clubs-dialog .club-stats-head h3 { margin:0; font-size:clamp(17px,3vw,21px); }
.club-stats-head small { color:#ffc094; letter-spacing:.08em; font-size:12px; font-weight:700; }
.club-ranked-stats p { margin:7px 0; font-size:13px; }
#clubs-dialog .club-stats-retry { min-height:44px; }
.club-ranked-stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,88px),1fr)); gap:5px; margin:0; }
.club-ranked-stats-grid>div { background:#22324a; border-radius:5px; padding:6px; }
.club-ranked-stats-grid dt { color:var(--club-ice); font-size:12px; }
.club-ranked-stats-grid dd { color:var(--club-paper); margin:3px 0 0; font:400 16px/1.1 var(--font-display); }
.club-ranked-controls > :first-child { flex:1 1 180px; min-width:0; }
@media (orientation:landscape) and (max-height:345px) {
  .club-ranked-rules { margin-top:0; }
}
@media (orientation:landscape) and (max-height:345px) {
  .club-ranked-match,.club-ranked-controls { padding-block:5px; }
}

#clubs-dialog .club-requests-tab { display:inline-flex; align-items:center; gap:7px; }
.club-requests-badge {
  display:inline-grid; min-width:19px; min-height:19px; padding-inline:4px; place-items:center;
  border-radius:999px; background:#ffbd88; color:#201527; font:700 11px/1 var(--font-body);
}
#clubs-dialog .club-requests-tab[aria-pressed="true"] .club-requests-badge { background:#18283f; color:#fff0d8; }
.club-requests-panel { border:1px solid #849ab865; border-radius:10px; background:#192940; padding:10px 13px; }
.club-requests-panel>p { margin:5px 0 10px; }
.club-request-row,.club-request-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px 9px; }
.club-request-row { justify-content:space-between; padding-block:7px; border-top:1px solid #94adc24d; }
.club-request-row strong { overflow-wrap:anywhere; }
.club-directory-results .club-application-pending { color:#ffd0a8; font-weight:700; }

/* Phone panels expose tap-sized routes; lists show a bounded slice rather than
   asking for a vertical swipe. Desktop keeps its current presentation. */
html.phone-ui #clubs-dialog[open] .clubs-hub{
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);
  height:var(--pu-h,100dvh);gap:4px;padding:var(--pu-st) 0 var(--pu-sb);
}
html.phone-ui #clubs-dialog[open] .clubs-header{grid-column:1;min-height:44px;grid-row:1;}
html.phone-ui #clubs-dialog[open] .clubs-header small{display:none;}
html.phone-ui #clubs-dialog[open] .clubs-header h2{margin:0;font-size:24px;}
html.phone-ui #clubs-dialog[open] .clubs-status{grid-column:1;grid-row:2;margin:0;}
html.phone-ui #clubs-dialog[open] .clubs-tabs{
  grid-column:1;grid-row:3;flex-direction:row;gap:4px;overflow:visible;margin:0;padding:0;
}
html.phone-ui #clubs-dialog[open] .clubs-tabs:empty{display:none;}
html.phone-ui #clubs-dialog[open] .clubs-tabs button{
  width:auto;min-height:44px;min-width:44px;padding:0 10px;font-size:14px;white-space:nowrap;box-shadow:none;border:1px solid var(--pu-line);
}
html.phone-ui #clubs-dialog[open] .clubs-body{
  grid-column:1;grid-row:4;min-height:0;padding:0;scrollbar-gutter:auto;
}
html.phone-ui #clubs-dialog[open] .clubs-hub:not([data-club-panel="settings"]) .clubs-body{overflow:hidden;}
html.phone-ui #clubs-dialog[open] .clubs-body :is(.club-directory,.club-compete-callout){
  padding:6px 9px;margin:0;
}
html.phone-ui #clubs-dialog[open] .club-directory h3 {display:none;}
html.phone-ui #clubs-dialog[open] .club-directory-tools{margin:0 0 4px;padding:0;flex-wrap:nowrap;}
html.phone-ui #clubs-dialog[open] .club-directory-tools input {flex:1;}
html.phone-ui #clubs-dialog[open] .club-directory>.club-help {margin:2px 0;font-size:12px;}
html.phone-ui #clubs-dialog[open] .club-directory-results {gap:4px;}
html.phone-ui #clubs-dialog[open] .club-directory-results li {padding:0 6px;min-height:46px;}
html.phone-ui #clubs-dialog[open] .club-directory-results li div {gap:0;}
html.phone-ui #clubs-dialog[open] .club-page-controls {display:flex;align-items:center;justify-content:center;gap:10px;margin-top:4px;}
html.phone-ui #clubs-dialog[open] .club-page-controls button {min-width:72px;}
html.phone-ui #clubs-dialog[open] .club-identity{gap:9px;margin:0 0 4px;}
html.phone-ui #clubs-dialog[open] .club-identity h2{font-size:23px;margin:0;}
html.phone-ui #clubs-dialog[open] .club-identity .club-mark{width:44px;height:44px;padding-bottom:8px;}
html.phone-ui #clubs-dialog[open] .club-identity small{font-size:12px;}
html.phone-ui #clubs-dialog[open] .clubs-hub[data-club-panel="overview"] .clubs-body > p{margin:0 0 2px;}
html.phone-ui #clubs-dialog[open] .club-metric{padding:3px 7px;gap:1px;}
html.phone-ui #clubs-dialog[open] .club-metric strong{font-size:21px;}
html.phone-ui #clubs-dialog[open] .club-compete-callout{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;}
html.phone-ui #clubs-dialog[open] .club-compete-callout:has(.club-invitations-list){display:block;}
html.phone-ui #clubs-dialog[open] .club-compete-callout h3{margin:0;font-size:17px;}
html.phone-ui #clubs-dialog[open] .club-compete-callout p{margin:0;}
html.phone-ui #clubs-dialog[open] .club-roster{margin:0;}
html.phone-ui #clubs-dialog[open] .club-member{padding:0 3px;min-height:44px;flex-wrap:nowrap;}
html.phone-ui #clubs-dialog[open] .club-member>div{gap:0;}
html.phone-ui #clubs-dialog[open] .club-member .profile-link{align-self:start;line-height:1.05;padding:0;border:0;min-height:26px;}
html.phone-ui #clubs-dialog[open] .club-member .profile-link::before {content:'';position:absolute;inset:-8px -4px;}
html.phone-ui #clubs-dialog[open] .club-member .profile-link{position:relative;}
html.phone-ui #clubs-dialog[open] .club-request-row{padding-block:0;}
html.phone-ui #clubs-dialog[open] .club-ranked-invite-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
html.phone-ui #clubs-dialog[open] .club-ranked-inbox{margin:0;padding:6px 8px;}
@media (max-height:354px){
  html.phone-ui #clubs-dialog[open] .clubs-hub[data-club-panel="overview"] .clubs-body > p:not(.club-record){display:none;}
  html.phone-ui #clubs-dialog[open] .club-metric span {display:none;}
}
@media(max-height:354px){
  html.phone-ui #clubs-dialog[open] .club-directory>.club-help:first-of-type{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  html.phone-ui #clubs-dialog[open] .clubs-body .club-directory {padding-block:3px;}
}
html.phone-ui #clubs-dialog[open] .clubs-tabs {flex-wrap:nowrap;justify-content:flex-start;}
html.phone-ui #clubs-dialog[open] .clubs-tabs button {flex:0 1 auto;letter-spacing:.02em;font-size:12px;}
html.phone-ui #clubs-dialog[open] .clubs-hub:is([data-club-panel="roster"],[data-club-panel="requests"]) .club-identity{display:none;}
html.phone-ui #clubs-dialog[open] .club-member>div{flex-direction:row;align-items:center;gap:6px;}
html.phone-ui #clubs-dialog[open] .club-member .profile-link{min-height:44px;}
html.phone-ui #clubs-dialog[open] .club-member .profile-link::before{content:none;}
html.phone-ui #clubs-dialog[open] .club-requests-panel {padding-block:4px;}
html.phone-ui #clubs-dialog[open] .club-requests-panel h3{margin:0;font-size:18px;}
html.phone-ui #clubs-dialog[open] .club-requests-panel p{margin:2px 0 4px;font-size:12px;}
html.phone-ui #clubs-dialog[open] .club-ranked-launch{padding:3px 7px;gap:4px;}
html.phone-ui #clubs-dialog[open] .club-ranked-launch .club-ranked-open{min-height:44px;padding:2px 8px;}
html.phone-ui #clubs-dialog[open] .club-record{line-height:1.1;}
html.phone-ui #clubs-dialog[open] .club-ranked-launch{display:grid;grid-template-columns:minmax(0,1fr) auto auto;}
html.phone-ui #clubs-dialog[open] .club-ranked-stats{padding:4px 7px;}
html.phone-ui #clubs-dialog[open] .club-stats-head{padding:0;min-height:0;margin:0 0 2px;}
html.phone-ui #clubs-dialog[open] .club-stats-head h3{margin:1px 0;font-size:18px;}
html.phone-ui #clubs-dialog[open] .club-ranked-stats p{margin:2px 0;font-size:12px;}
html.phone-ui #clubs-dialog[open] .club-ranked-stats-grid>div {padding:3px 5px;}
html.phone-ui #clubs-dialog[open] .club-ranked-stats-grid dt{font-size:12px;line-height:1.1;}
html.phone-ui #clubs-dialog[open] .club-ranked-stats-grid dd{margin:1px 0 0;font-size:14px;}

/* Compact Clubs uses named sections; normal scrolling remains a fallback at zoom/shorter heights. */
#clubs-dialog[open] .clubs-compact .clubs-tabs {
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); align-items:stretch;
}
#clubs-dialog[open] .clubs-compact .clubs-tabs:empty { display:none; }
#clubs-dialog[open] .clubs-compact .clubs-tabs button {
  padding:2px 4px; min-width:0; white-space:normal; overflow-wrap:anywhere; line-height:1.12;
}
#clubs-dialog[open] .clubs-compact .clubs-body { overflow:auto; scrollbar-gutter:auto; }
#clubs-dialog[open] .clubs-compact[data-club-panel="settings"] .club-identity { display:none; }
#clubs-dialog[open] .clubs-compact .club-settings-tabs {
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; margin:0 0 5px;
}
#clubs-dialog[open] .clubs-compact .club-settings-tabs button { min-width:0; padding:2px 4px; font-size:12px; overflow-wrap:anywhere; }
#clubs-dialog[open] .clubs-compact[data-club-panel="settings"] .clubs-body p { margin:4px 0; font-size:12px; }
#clubs-dialog[open] .clubs-compact[data-club-panel="settings"] .club-create { margin:4px 0; }
#clubs-dialog[open] .clubs-compact[data-club-panel="settings"] .club-member { flex-wrap:wrap; gap:4px; }
#clubs-dialog[open] .clubs-compact .club-jersey { gap:5px; grid-template-columns:minmax(64px,1fr) minmax(0,4fr); }
#clubs-dialog[open] .clubs-compact .club-jersey-preview { min-height:auto; border-bottom-width:6px; }
#clubs-dialog[open] .clubs-compact .club-jersey-preview canvas { width:min(100%,88px); }
#clubs-dialog[open] .clubs-compact .club-jersey fieldset {
  margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px;
}
#clubs-dialog[open] .clubs-compact .club-jersey fieldset > * { min-width:0; }
#clubs-dialog[open] .clubs-compact .club-jersey fieldset > label { font-size:12px; gap:3px; }
#clubs-dialog[open] .clubs-compact .club-jersey fieldset > select { padding:2px 4px; }
#clubs-dialog[open] .clubs-compact .club-jersey input[type="color"] { width:42px; min-width:28px; padding:2px; }
#clubs-dialog[open] .clubs-compact .clubs-close { font-size:14px; padding-inline:9px; }
@media (max-width:480px) and (orientation:portrait) {
  #clubs-dialog[open] .clubs-compact .club-settings-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #clubs-dialog[open] .clubs-compact .club-ranked-launch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
  #clubs-dialog[open] .clubs-compact .club-ranked-launch > div { grid-column:1/-1; }
  #clubs-dialog[open] .clubs-compact .club-jersey fieldset { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #clubs-dialog[open] .clubs-compact .club-jersey fieldset > label { display:grid; }
}
#clubs-dialog[open] .clubs-compact .club-jersey-preview button {
  min-width:44px; margin:3px 2px 0; max-width:100%; padding:3px 5px;
}
@media (orientation:landscape) and (max-height:354px) {
  #clubs-dialog[open] .clubs-compact .club-jersey-preview canvas { width:min(100%,52px); }
}
