/* Shared site chrome for every RallyPoint page (loaded last, after each page's own styles). */
/* =====================================================================
   RACKET PLAY SOCIALS FAMILY LOOK: header, menus, breadcrumbs, heroes,
   banners and footer match racketplaysocial.com (deep slate, frosted glass,
   electric-lime actions), so moving between the two sites feels like one
   place. Page content keeps its own styling.
   ===================================================================== */
:root{
  --fam-bg:var(--lk-0e0b12); --fam-bg-2:var(--lk-17121d); --fam-line:rgba(255,255,255,.1); --fam-line-2:rgba(255,255,255,.18);
  --fam-text:var(--lk-ede6ef); --fam-muted:var(--lk-a99db0); --fam-accent:var(--lk-ff2e93); --fam-accent-ink:var(--lk-130e18);
}

/* Anything marked hidden stays hidden, whatever a class says about its display. Without this, a
   class like .acct-btn (display:inline-flex) beat the hidden attribute, and hidden buttons showed up
   empty (the blank button under Save on the scheduler's review). */
[hidden]{ display:none !important; }

/* =====================================================================
   SITE CHROME: the one header, menu, footer and cookie banner, for every
   page. These used to be copied into content.css, the game's CSS and three
   pages' own styles, then overridden here; now this is the only copy.
   Breakpoints: the full menu bar from 860px (tablets in landscape and up);
   below that, a menu button opens a full-width panel.
   ===================================================================== */
:root{
  --header-h:64px;
  --tap:44px;                 /* the smallest thing you can tap, everywhere */
  --btn-h:48px;               /* a normal button */
  --btn-radius:14px;
}

/* ---- header bar ---- */
.site-header{
  position:sticky; top:0; z-index:40;
  background: rgba(var(--lk-0e0b12-rgb),.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom:1px solid var(--fam-line);
}
.site-header > .wrap{
  display:flex; align-items:center; gap:8px;
  min-height:var(--header-h); padding-top:0; padding-bottom:0;
  max-width:1100px;
}
/* On a hub page (Player Hub, Organiser Hub) the header shares one width with the hub's own content
   (content.css's .app-panes / .acct-panes, via the same --hub-w-* tokens defined in content.css's
   :root) so the page edge-aligns top to bottom, instead of the header and the content each running
   their own slightly-different container. */
html[data-hub]{ --hub-w: var(--hub-w-sm); }
@media (min-width:760px){ html[data-hub]{ --hub-w: var(--hub-w-md); } }
@media (min-width:1024px){ html[data-hub]{ --hub-w: var(--hub-w-lg); } }
@media (min-width:1280px){ html[data-hub]{ --hub-w: var(--hub-w-xl); } }
html[data-hub] .site-header > .wrap{ max-width:var(--hub-w); }
.site-header .logo{
  display:inline-flex; align-items:center; gap:8px; min-height:var(--tap); padding-right:4px;
  font-family:'Bricolage Grotesque', sans-serif; font-weight:800; font-size:21px; letter-spacing:-.01em;
  color:#fff; text-decoration:none; white-space:nowrap; flex-shrink:0;
}
.site-header .logo .mc-mark{ width:28px; height:28px; }
.header-cta{
  margin-left:auto; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  min-height:var(--tap); padding:0 18px; border-radius:12px;
  background: linear-gradient(180deg, var(--lk-ff5aa8) 0%, var(--lk-ff2e93) 100%);
  color: var(--fam-accent-ink); font:800 14px/1 'DM Sans', sans-serif; white-space:nowrap; text-decoration:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px rgba(var(--lk-ff6bb1-rgb),.22);
  transition: transform .16s ease, box-shadow .16s ease;
}
.header-cta:hover{ transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 28px rgba(var(--lk-ff6bb1-rgb),.32); }

/* ---- the two hubs: the switch, and each hub's own links ----
   RallyPoint has two sides: the Player Hub (players.html: join a game, book, your games, TV view) and the
   Organiser Hub (organiser.html: sessions, bookings, players, Quick Host, you). <html data-hub> says which
   one you're in (site-nav.js keeps it, per page and on this device), and only that hub's links show:
   in the header on wide screens, in a tab bar along the bottom on phones and tablets. */
/* A quiet, easy-to-miss thing: which hub you're in. A small blue pill (a colour nothing else in the
   header uses, so it reads as "status", not decoration) names it outright, right by the switch that
   changes it. Text toggles with html[data-hub] (site-nav.js), the same attribute the switch itself reads. */
.hub-mode-pill{
  order:1; flex:none; display:inline-flex; align-items:center; gap:6px;
  min-height:30px; padding:0 12px; margin-right:2px; border-radius:999px;
  background:rgba(43,196,212,.14); border:1px solid rgba(43,196,212,.55);
  color:#6fe3f0; font:800 12.5px/1 'DM Sans', sans-serif; letter-spacing:.01em; white-space:nowrap;
}
.hub-mode-pill::before{ content:''; flex:none; width:7px; height:7px; border-radius:50%; background:#2bc4d4; box-shadow:0 0 0 3px rgba(43,196,212,.22); }
html[data-signed="out"] .site-header .hub-mode-pill{ display:none !important; }
/* Below tablet width, the header's own copy has too little room for "Player mode" / "Organiser mode":
   the dot keeps its colour, but the words shrink to just "Player" / "Organiser" via ::after, the way the
   logo itself shrinks to its mark alone at the very smallest widths. The session wizard's copy (below)
   isn't fighting the logo and the switch for the same row, so it keeps the fuller text throughout. */
/* Also compact from 1024px (where the header nav switches back on) up to 1279.98px: that's the
   narrowest range the full header row (logo + pill + switch + nav + CTA + avatar) ever has to fit
   into at once, and "Organiser mode" alongside the organiser's own longer nav and "+ New session"
   leaves it too little room there — same fix as the phone-width case below, same reasoning. */
@media (max-width:759.98px), (min-width:1024px) and (max-width:1279.98px){
  .site-header .hub-mode-pill{ padding:0 10px 0 9px; gap:5px; }
  .site-header .hub-mode-pill span{ display:none; }
  .site-header .hub-mode-pill::after{ font:800 11.5px/1 'DM Sans', sans-serif; }
  html:not([data-hub="organiser"]) .site-header .hub-mode-pill::after{ content:'Player'; }
  html[data-hub="organiser"] .site-header .hub-mode-pill::after{ content:'Organiser'; }
}
/* Kept visible right down to the smallest phones — which hub you're in matters more there, not less,
   so the logo gives up its wordmark (it already does, from 350px) before this does. */
@media (max-width:399.98px){ .site-header .hub-mode-pill{ padding:0 7px; gap:4px; } .site-header .hub-mode-pill::before{ width:6px; height:6px; } }

.hub-switch{
  order:2; flex-shrink:0;
  display:inline-flex; padding:3px; gap:2px; border-radius:999px;
  background: rgba(255,255,255,.06); border:1px solid var(--fam-line-2);
}
.hub-switch a{
  display:inline-block; min-height:38px; padding:0 14px; border-radius:999px;
  font:800 13.5px/38px 'DM Sans', sans-serif; color: var(--fam-muted); text-decoration:none; white-space:nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.hub-switch a:hover{ color:#fff; }
html:not([data-hub="organiser"]) .hub-switch a[data-hub="player"],
html[data-hub="organiser"] .hub-switch a[data-hub="organiser"]{
  background:#FFFFFF; color:#0D1117;
}
/* A session being played: a pulsing pink dot by Organise (site-nav.js), and on the pinned dock. */
.hub-switch a{ position:relative; }
.hub-switch a .live-dot{ margin-left:5px; margin-right:-4px; }
.live-dot{ display:inline-block; width:8px; height:8px; margin-left:6px; border-radius:50%; background:var(--lk-ff2d92); vertical-align:middle; box-shadow:0 0 0 0 rgba(var(--lk-ff2d92-rgb),.6); animation:live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse{ 0%{ box-shadow:0 0 0 0 rgba(var(--lk-ff2d92-rgb),.6); } 70%{ box-shadow:0 0 0 7px rgba(var(--lk-ff2d92-rgb),0); } 100%{ box-shadow:0 0 0 0 rgba(var(--lk-ff2d92-rgb),0); } }
@media (prefers-reduced-motion: reduce){ .live-dot{ animation:none; } }
.live-dock{ position:fixed; z-index:55; left:12px; right:12px; bottom:calc(76px + env(safe-area-inset-bottom)); display:flex; align-items:center; gap:10px; padding:8px 8px 8px 14px;
  border-radius:16px; background:#161B22; border:1px solid rgba(217,249,51,.45); box-shadow:0 12px 30px rgba(0,0,0,.5); color:#fff; font-family:'DM Sans',sans-serif; }
.live-dock-words{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.live-dock-label{ display:flex; align-items:center; gap:6px; font:800 10.5px 'DM Sans',sans-serif; letter-spacing:.08em; color:var(--fam-muted); white-space:nowrap; }
.live-dock-label .live-dock-you{ letter-spacing:0; font-size:11px; padding:0 6px; }
.live-dock-line{ display:flex; align-items:center; gap:6px; min-width:0; font-size:14px; white-space:nowrap; overflow:hidden; }
.live-dock-line .live-dot{ margin:0; }
.live-dock-line strong{ overflow:hidden; text-overflow:ellipsis; }
.live-dock-you{ flex:none; padding:1px 8px; border-radius:999px; background:rgba(255,255,255,.1); font-size:12px; font-weight:700; }
.live-dock-go{ flex:none; display:inline-flex; align-items:center; min-height:44px; padding:0 16px; border-radius:12px; background:#D9F933; color:#0D1117; font:800 14.5px 'DM Sans',sans-serif; text-decoration:none; }
.live-dock-x{ flex:none; width:44px; height:44px; border:1px solid rgba(255,255,255,.25); border-radius:12px; background:transparent; color:#fff; font-size:22px; line-height:1; cursor:pointer; }
.live-dock-go:focus-visible, .live-dock-x:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
html[data-docked="yes"] body{ padding-bottom:84px; }
@media (min-width:1024px){ .live-dock{ left:auto; right:24px; bottom:24px; width:440px; } }
/* The account menu's workspaces: one radio-style list. */
.acm-who-link{ color:var(--fam-muted); font-size:13.5px; font-weight:700; text-decoration:none; }
.acm-who-link:hover, .acm-who-link:focus-visible{ color:#fff; text-decoration:underline; }
.acm-mode.acm-spaces{ grid-template-columns:1fr !important; display:grid; gap:6px; }
.acm-spaces a{ display:flex !important; flex-direction:row !important; align-items:flex-start; gap:10px; }
.acm-radio{ flex:none; width:18px; color:#fff; font-size:15px; line-height:1.3; }
.acm-space-words{ display:flex; flex-direction:column; min-width:0; }
.acm-spaces a[aria-current="true"] strong::after{ content:''; }
.acm-space-new{ display:block; padding:10px 12px; border-radius:12px; border:1px dashed rgba(255,255,255,.3); color:#fff; font-weight:800; text-decoration:none; }
html:not([data-hub="organiser"]) [data-hub-list="organiser"],
html[data-hub="organiser"] [data-hub-list="player"],
html:not([data-hub="organiser"]) [data-hub-only="organiser"],
html[data-hub="organiser"] [data-hub-only="player"]{ display:none !important; }
/* Logged out (html[data-signed="out"], site-nav.js): a clear Log in button instead of the account icon, and
   only what works without an account (the player side: find a game, join live). The Play / Organise switch is
   for logged-in accounts, every one of them: Organise sets up a club profile the first time. */
.header-login{ display:none; order:6; flex:none; align-items:center; justify-content:center; min-height:44px; margin-left:auto; padding:0 18px; border-radius:12px;
  background: var(--lk-ff2e93); color: var(--fam-accent-ink); font:800 14.5px/1 'DM Sans', sans-serif; text-decoration:none; white-space:nowrap; }
.header-login:hover{ filter:brightness(1.06); }
.header-login:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
html[data-signed="out"] .header-login{ display:inline-flex; }
html[data-signed="out"] .hub-avatar,
html[data-signed="out"] .hub-switch,
html[data-signed="out"] [data-hub-list="organiser"],
html[data-signed="out"] [data-hub-only="organiser"]{ display:none !important; }
html[data-signed="out"][data-hub="organiser"] .hub-links .hub-list[data-hub-list="player"],
html[data-signed="out"][data-hub="organiser"] .hub-bar .hub-list[data-hub-list="player"]{ display:flex !important; }
html[data-signed="out"] .header-cta{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.3); box-shadow:none; }
@media (min-width:600px){
  html[data-signed="out"][data-hub="organiser"] .header-cta[data-hub-only="player"]{ display:inline-flex !important; }
  html[data-signed="out"] .header-cta{ margin-left:auto; }
  html[data-signed="out"] .header-cta ~ .header-login{ margin-left:10px; }
}
.hub-list{ list-style:none; margin:0; padding:0; }

/* in the header (wide screens) */
.hub-links{ display:none; order:3; }
.hub-links .hub-list{ display:flex; align-items:center; gap:2px; }
.hub-links a{
  display:inline-flex; align-items:center; min-height:40px; padding:0 12px; border-radius:10px;
  font:700 14.5px/1.2 'DM Sans', sans-serif; color: var(--fam-muted); text-decoration:none; white-space:nowrap;
}
.hub-links a:hover{ color:#fff; background: rgba(255,255,255,.07); }
.hub-links a[aria-current="page"]{ color:#fff; box-shadow: inset 0 -2px 0 var(--fam-accent); border-radius:10px 10px 4px 4px; }
.header-cta{ order:4; }

/* along the bottom (phones and tablets) */
.hub-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:45;
  background: rgba(var(--lk-0e0b12-rgb),.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top:1px solid var(--fam-line-2);
  padding:4px 6px env(safe-area-inset-bottom);
}
.hub-bar .hub-list{ display:flex; max-width:620px; margin:0 auto; }
.hub-bar li{ flex:1 1 0; min-width:0; }
.hub-bar a{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  min-height:56px; padding:4px 2px; border-radius:12px;
  font:700 12.5px/1.15 'DM Sans', sans-serif; color: var(--lk-c9c3d1); text-decoration:none; text-align:center;
  -webkit-tap-highlight-color:transparent;
}
.hub-bar a span{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* The organiser's New: a round button in the middle of the bar, the one thing they do most. */
.hub-bar li.hub-new a{ color: var(--fam-accent-ink); gap:2px; }
.hub-bar li.hub-new .hub-ico{ width:44px; height:44px; padding:10px; border-radius:50%; box-sizing:border-box; background: var(--lk-ff2e93); color: var(--fam-accent-ink); stroke-width:2.6; box-shadow:0 6px 18px rgba(var(--lk-ff6bb1-rgb),.35); margin-top:-14px; }
.hub-bar li.hub-new span{ color:#fff; }
.hub-bar li.hub-new a[aria-current="page"] .hub-ico{ filter:none; outline:3px solid #fff; outline-offset:2px; }
.hub-bar a:focus-visible, .hub-links a:focus-visible, .hub-switch a:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.hub-bar a:active{ background: rgba(255,255,255,.06); }
.hub-bar a[aria-current="page"]{ color: var(--lk-ff2e93); }
.hub-bar a[aria-current="page"] span{ font-weight:800; }
.hub-bar a[aria-current="page"] .hub-ico{ filter: drop-shadow(0 0 8px rgba(var(--lk-ff6bb1-rgb),.45)); }
.hub-ico{ flex:none; }
body[data-hub-bar="off"] .hub-bar{ display:none; }
@media (max-width:1023.98px){
  body:not([data-hub-bar="off"]){ padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
  body:not([data-hub-bar="off"]) .cookie-banner{ bottom:calc(64px + env(safe-area-inset-bottom)); }
}
@media (min-width:1024px){
  .hub-bar{ display:none; }
  .hub-links{ display:block; }
  .site-header > .wrap{ gap:14px; }
  .hub-switch{ margin-left:12px; }
  .header-cta{ margin-left:auto; }
}
/* phones: the short names ("Player", "Organiser"), and Quick Host lives in the organiser's tab bar */
@media (max-width:599.98px){
  .hub-switch{ margin-left:auto; }
  .hub-switch a{ padding:0 12px; }
  .hub-tail{ display:none; }
  .header-cta{ display:none; }
}
@media (min-width:600px) and (max-width:1023.98px){
  .hub-switch{ margin-left:auto; }
}

/* ---- footer ---- */
footer.site-footer{
  background: var(--fam-bg); border-top:1px solid var(--fam-line); color: var(--fam-muted);
  padding:28px 0 calc(32px + env(safe-area-inset-bottom)); text-align:center; font-size:14px;
}
footer.site-footer .footer-links{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center; gap:0 4px;
}
footer.site-footer .footer-links a,
footer.site-footer .cookie-settings-link{
  display:inline-flex; align-items:center; min-height:var(--tap); padding:0 10px; border-radius:10px;
  background:none; border:0; cursor:pointer;
  font:700 14px/1.2 'DM Sans', sans-serif; color: var(--fam-text); text-decoration:none;
}
footer.site-footer .footer-links a:hover,
footer.site-footer .cookie-settings-link:hover{ color:#fff; background: rgba(255,255,255,.06); }
footer.site-footer .footer-legal{ margin:10px 0 0; font-size:13px; line-height:1.6; }
footer.site-footer .footer-legal a{ color: var(--fam-text); text-underline-offset:3px; }
footer.site-footer .heart{ color: var(--fam-accent); }
footer.site-footer .follow-label{ color:#fff; }
footer.site-footer img{ display:inline-block; }

/* ---- cookie banner ---- */
.cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  background: rgba(var(--lk-17121d-rgb),.98); color: var(--fam-text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top:1px solid var(--fam-line-2); box-shadow: 0 -12px 32px rgba(0,0,0,.45);
  padding:16px 20px calc(16px + env(safe-area-inset-bottom));
}
.cookie-banner-inner{ max-width:900px; margin:0 auto; display:flex; align-items:center; justify-content:center; gap:12px 20px; flex-wrap:wrap; }
.cookie-banner p{ margin:0; flex:1 1 320px; font-size:14px; line-height:1.5; }
.cookie-banner p a{ color:#fff; }
.cookie-actions{ display:flex; gap:10px; flex:0 1 auto; }
.cookie-actions button{
  min-height:var(--tap); min-width:110px; padding:0 20px; border-radius:12px; cursor:pointer;
  font:800 14.5px/1 'DM Sans', sans-serif;
}
.cookie-accept{ background: linear-gradient(180deg, var(--lk-ff5aa8) 0%, var(--lk-ff2e93) 100%); color: var(--fam-accent-ink); border:0; }
.cookie-decline{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.35); }
@media (max-width:520px){ .cookie-actions{ flex:1 1 100%; } .cookie-actions button{ flex:1; } }

/* ---- small phones and big text zoom: logo, button and menu still fit on one line ---- */
@media (max-width:400px){
  .site-header > .wrap{ padding-left:14px; padding-right:14px; gap:6px; }
  .site-header .logo{ font-size:18px; gap:6px; }
  .site-header .logo .mc-mark{ width:24px; height:24px; }
  .hub-switch a{ padding:0 10px; font-size:13px; }
}
@media (max-width:350px){ .site-header .logo{ font-size:0; gap:0; } } /* the mark alone; the link keeps its name */

/* ---- one focus ring for everything you can reach with the keyboard (it follows each control's own rounded corners) ---- */
:is(a, button, summary, input, select, textarea, label, [tabindex]):focus-visible{ outline:3px solid var(--lk-ff6bb1); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  .header-cta, .header-cta:hover, .hub-switch a{ transition:none; transform:none; }
}

/* ---- breadcrumbs: a dark strip under the header, full width ---- */
body .breadcrumbs{
  background: var(--fam-bg);
  box-shadow: 0 0 0 100vmax var(--fam-bg);
  clip-path: inset(0 -100vmax);
  padding-top:10px; padding-bottom:10px;
}
body .breadcrumbs a{ color: var(--fam-muted); }
body .breadcrumbs a:hover{ color:#fff; }
body .breadcrumbs [aria-current]{ color:#fff; }
body .breadcrumbs li:not(:last-child)::after{ color: var(--fam-muted); }

/* ---- page heroes: the same glow as racketplaysocial.com ---- */
body .page-hero:not(.org-hero){
  background:
    radial-gradient(680px 320px at 50% -60px, rgba(var(--lk-ff2e93-rgb),.14), transparent 70%),
    radial-gradient(520px 300px at 100% 110%, rgba(var(--lk-a855f7-rgb),.10), transparent 70%),
    linear-gradient(180deg, var(--fam-bg-2), var(--fam-bg));
  border-bottom:1px solid var(--fam-line);
}
body .page-hero .ring, body .page-hero .ring-glow{ display:none; }
body .page-hero:not(.org-hero) .kicker,
body .page-hero:not(.org-hero) .content-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px; border-radius:999px;
  background: rgba(var(--lk-ff2e93-rgb),.1); border:1px solid rgba(var(--lk-ff2e93-rgb),.4); color:var(--lk-ffb8da);
  font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
}
body .page-hero h1{ color:#fff; letter-spacing:-.025em; }
body .page-hero p{ color:var(--lk-dbd0dd); }
body .page-hero p a{ color: var(--fam-accent); }

/* ---- "you're in the organiser / players area" banners on a dark band ---- */
body > .wrap:has(> .role-banner), body > main > .wrap:has(> .role-banner){
  max-width:none; background: var(--fam-bg);
  padding-top:2px; padding-bottom:6px;
}
body > .wrap > .role-banner, body > main > .wrap > .role-banner{ max-width: calc(var(--max-w, 1100px) - 48px); margin-left:auto; margin-right:auto; }
body .role-banner{ background: rgba(255,255,255,.04); color: var(--fam-text); border-width:1px; border-radius:16px; }
body .role-banner a{ color:#fff; }
body .role-banner .role-pill.player{ color: var(--role-player); }

/* ---- footer ---- */

body .social-btn{ background: rgba(255,255,255,.06); border:1px solid var(--fam-line-2); color:#fff; }
body .social-btn:hover{ background: rgba(255,255,255,.12); box-shadow:none; }

/* ---- the phone's bottom "Host a Match" bar ---- */
@media (max-width:680px){
  body .sticky-cta-bar{ background: rgba(var(--lk-0e0b12-rgb),.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top:1px solid var(--fam-line); box-shadow: 0 -10px 28px rgba(0,0,0,.4); }
  body .sticky-cta-btn{ background: var(--fam-accent); color: var(--fam-accent-ink); border-radius:14px; }
  body .sticky-cta-btn:hover{ background: var(--fam-accent); }
}


/* ---- the banner's own layout, for pages that carry their own styles and never had it ---- */
body .role-banner{ display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; padding:10px 14px; margin:6px 0 14px; font-size:14px; border:1px solid var(--fam-line-2); }
body .role-banner.organiser{ border-color: rgba(var(--lk-ff2e8a-rgb),.55); }
body .role-banner.player{ border-color: rgba(43,196,212,.55); }
body .role-banner .role-switch{ margin-left:auto; font-size:13px; font-weight:700; text-decoration:underline; }
body .role-pill{ display:inline-flex; align-items:center; gap:7px; font-size:11.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; padding:4px 11px; border-radius:999px; border:1px solid currentColor; line-height:1.2; white-space:nowrap; }
body .role-pill::before{ content:''; width:8px; height:8px; border-radius:50%; background:currentColor; flex-shrink:0; }
body .role-pill.organiser{ color: var(--role-organiser, var(--lk-ff2e8a)); }
body .role-pill.player{ color: var(--role-player, #2bc4d4); }
@media (max-width:560px){ body .role-banner .role-switch{ margin-left:0; } }


/* ---- the SiteLock badge sits centred in the footer on every page ---- */


/* ---- "by Racket Play Socials" under the logo: who's behind the game, always one tap away ---- */

 /* small phones: the footer line says it instead, and the logo may shrink as before */

/* ---- "Get updates + the free score sheet": a frosted secondary button on every page
   (it used to inherit dark text and a pink glow, which vanished on the dark cards) ---- */
body .signup-open{
  background: rgba(255,255,255,.06) !important; color:#fff !important; border:1px solid rgba(255,255,255,.28) !important;
  border-radius:14px !important; box-shadow:none !important; opacity:1 !important;
}
body .signup-open:hover{ background: rgba(255,255,255,.12) !important; }
body .signup-open:focus-visible{ outline:2px solid var(--fam-accent) !important; outline-offset:3px; }

/* ---- one pink for the whole site, and text on it that's easy to read ----
   White on this pink is only 3.5:1, so anything filled with pink gets dark text (5:1 or better),
   and pink used as text on the dark background is the lighter var(--lk-ff6bb1) (about 7:1). */

body .sheet-btn:not(.ghost),
body .role-card:not(.role-player) .role-links a.role-btn{ background:var(--lk-ff2e93) !important; color:var(--lk-130e18) !important; }
body .card .arrow,
body a.content-card .arrow{ color:var(--lk-ff6bb1); }
body .sheet-cta a.sheet-btn{ background:var(--lk-ff2e93) !important; color:var(--lk-130e18) !important; }

/* ---- softer, more premium finish ----
   Label pills (e.g. "FREE AMERICANO PADEL TOOL") are clean outlines without the dot, with a little more
   letter-spacing; the hero subtitle gets a touch more size and air; pink buttons are a gentle top-lit
   gradient with a pastel glow rather than a flat neon block. */
body .page-hero:not(.org-hero) .kicker,
body .page-hero:not(.org-hero) .content-eyebrow{
  background: transparent; border:1px solid rgba(var(--lk-ff6bb1-rgb),.5); color:var(--lk-ff9ccb);
  padding:7px 16px; font-size:11.5px; letter-spacing:.14em;
}
body .page-hero:not(.org-hero) .kicker::before,
body .page-hero:not(.org-hero) .content-eyebrow::before{ display:none; }
body .page-hero p{ font-size: clamp(16px, 1.55vw, 18px); line-height:1.7; max-width:680px; margin-left:auto; margin-right:auto; }

/* =====================================================================
   PREMIUM FINISH, SITE-WIDE (same patterns as the game page)
   - Cards and panels: frosted glass with a faint pink tint, a hairline highlight, softer corners and a
     deep soft shadow, instead of flat dark boxes with hard pink stripes.
   - Pink buttons: a soft top-lit gradient with a pastel glow; dark text stays on them for contrast.
   - Small uppercase labels: clean outline pills with a little more letter-spacing.
   Anything inside the game itself (#app-root on the two game pages) keeps its own rules, including its bright outdoor mode.
   ===================================================================== */
/* the cards that were pink-themed keep a stronger blush, so the page still has some rhythm */
body :is(.topic.t-pink, .glossary-item.t-pink, .compare-card.c-pink, .checklist-group.t-pink, .card-block.t-pink,
  .content-cta, .launch-signup-card, .sheet-cta):not(body[class*="mc-phase"] #app-root *){
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(var(--lk-ff2e93-rgb),.16), transparent 70%),
    linear-gradient(180deg, rgba(var(--lk-251c2b-rgb),.62), rgba(var(--lk-130e18-rgb),.55)) !important;
  border-color: rgba(var(--lk-ff6bb1-rgb),.28) !important;
}
/* hard pink stripes on card edges become a soft gradient hairline */
body :is(.step-card, .topic, .role-card, .card-block, .content-cta, .glossary-item, .checklist-group):not(body[class*="mc-phase"] #app-root *){ border-left-width:1px !important; border-top-width:1px !important; }
body :is(.step-card, .topic, .role-card, .card-block, .glossary-item, .checklist-group):not(body[class*="mc-phase"] #app-root *)::before{ background: linear-gradient(90deg, rgba(var(--lk-ff2e93-rgb),.6), rgba(var(--lk-ff2e93-rgb),0)) !important; height:2px !important; }
/* the round player/organiser cards on the home and players pages keep their own coloured top edge */
body .role-card.role-player:not(body[class*="mc-phase"] #app-root *){ border-top:2px solid rgba(43,196,212,.55) !important; }
body .role-card.role-organiser:not(body[class*="mc-phase"] #app-root *){ border-top:2px solid rgba(var(--lk-ff2e93-rgb),.55) !important; }
body :is(a.content-card, .format-cta, .guide-row, a.card, .compare-card):not(body[class*="mc-phase"] #app-root *){ transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
body :is(a.content-card, .format-cta, .guide-row, a.card, .compare-card):not(body[class*="mc-phase"] #app-root *):hover{
  transform: translateY(-2px); border-color: rgba(var(--lk-ff6bb1-rgb),.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 50px rgba(var(--lk-08040c-rgb),.5), 0 0 0 4px rgba(var(--lk-ff2e93-rgb),.06) !important;
}
body :is(.content-table-wrap) table th{ letter-spacing:.1em; }

/* ---- pink buttons: soft gradient, pastel glow, dark text ---- */
body :is(.btn-light, .role-btn, .sheet-btn:not(.ghost), .result-btn, .print-btn, .msg-btn, .hs-btn-primary,
  .format-cta .arrow, .cookie-accept, .add-btn):not(body[class*="mc-phase"] #app-root *){
  background: linear-gradient(180deg, var(--lk-ff5aa8) 0%, var(--lk-ff2e93) 100%) !important;
  color:var(--lk-130e18) !important;
  border:none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px rgba(var(--lk-ff6bb1-rgb),.22) !important;
}
body .role-card.role-player .role-btn:not(body[class*="mc-phase"] #app-root *){
  background: linear-gradient(180deg, #5ad8e6 0%, #2bc4d4 100%) !important; color:#06222a !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px rgba(43,196,212,.2) !important;
}
body :is(.btn-light, .role-btn, .sheet-btn:not(.ghost), .result-btn, .print-btn, .msg-btn, .hs-btn-primary,
  .format-cta .arrow, .add-btn):not(body[class*="mc-phase"] #app-root *):hover{
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 30px rgba(var(--lk-ff6bb1-rgb),.32) !important;
  transform: translateY(-1px);
}

/* ---- small uppercase labels: outline pills, a little more letter-spacing ---- */
body :is(.kicker, .content-eyebrow, .signup-perk, .step-badge, .cover-kicker, .page-kicker):not(body[class*="mc-phase"] #app-root *){
  background: transparent !important;
  border:1px solid currentColor !important;
  border-color: color-mix(in srgb, currentColor 55%, transparent) !important;
  border-radius:999px;
  letter-spacing:.12em;
  box-shadow:none !important;
}
body :is(.kicker, .content-eyebrow, .signup-perk, .page-kicker):not(body[class*="mc-phase"] #app-root *){ color:var(--lk-ff9ccb) !important; }
body :is(.kicker, .content-eyebrow, .step-badge):not(body[class*="mc-phase"] #app-root *)::before{ display:none !important; }

/* ---- the follow-us icons: the same small round buttons on every page ---- */
body .social-btn{ width:46px; height:46px; padding:0; border-radius:50%; font-size:0; line-height:0; display:inline-flex; align-items:center; justify-content:center; gap:0; }
body .social-btn svg{ width:22px; height:22px; display:block; flex-shrink:0; }

/* ---- phones: the page stays put while typing ----
   iPhones zoom in on any box whose text is under 16px when it's tapped, and the zoomed page then
   slides from side to side. Every box is 16px on a phone or tablet, so that never happens (the big
   score boxes keep their own size). The page also can't be pushed wider than the screen. */
html, body{ overflow-x: clip; }
@media (max-width: 820px), (pointer: coarse){
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.score-edit-input),
  select,
  textarea{ font-size: 16px !important; }
}

/* =====================================================================
   RACKETPLAYSOCIAL.COM LOOK, IN PINK
   The same near-black page, flat frosted cards with a hairline edge and a soft corner glow, chunky
   rounded buttons and roomy sections as racketplaysocial.com, with pink where it has lime. The
   darks lean a touch plum rather than slate blue, so the whole site reads pink, not blue.
   Inside the live game (#app-root on the game pages) keeps its own rules.
   ===================================================================== */
html, body{ background-color: var(--fam-bg); }
body :is(.topic, .format-cta, .content-cta, .step-card, .content-callout, .callout-do, .callout-dont,
  a.content-card, .reassure, .fact-card, .content-table-wrap, .role-card, .card-block,
  .search-card, .glossary-item, .compare-card, details.faq-item,
  .content-faq > details, .guide-accordion > details, .progress-card, .checklist-group, .quiz-q,
  .signup-card, .media-placeholder, .feature-tick, .howto-step, .guide-row, .format-chooser,
  .result-card, .stat-card, .home-stat):not(body[class*="mc-phase"] #app-root *){
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(var(--lk-ff2e93-rgb),.07), transparent 70%),
    rgba(255,255,255,.045) !important;
  border:1px solid rgba(255,255,255,.1) !important;
  border-radius:22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.35) !important;
}
body :is(a.content-card, .format-cta, .guide-row, a.card, .compare-card):not(body[class*="mc-phase"] #app-root *):hover{
  transform: translateY(-3px); border-color: rgba(var(--lk-ff6bb1-rgb),.45) !important; background-color: rgba(255,255,255,.07) !important;
}
/* ---- BUTTONS: one size and shape for every button on the site's pages ----
   Every content-page button class (they grew up separately on different pages) shares this geometry:
   48px tall (44px for .btn-sm and the small variants), the same padding, corner, weight and type, and
   text that wraps inside the button rather than spilling out of it. Colours stay with each button's
   own rules above. The game itself (#app-root while a game is set up or running) has its own controls. */
body :is(.btn, .btn-light, .role-btn, .sheet-btn, .result-btn, .print-btn, .msg-btn, .hs-btn-primary, .add-btn, .signup-open,
  .acct-btn, .book-btn, .adm-btn, .join-form button):not(body[class*="mc-phase"] #app-root *){
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:var(--btn-h); padding:10px 22px; box-sizing:border-box;
  border-radius:var(--btn-radius) !important;
  font-family:'DM Sans', sans-serif; font-weight:800; font-size:15px; line-height:1.2; text-align:center;
  text-decoration:none; cursor:pointer;
}
body :is(.btn-sm, .acct-btn.small, .adm-btn.small):not(body[class*="mc-phase"] #app-root *){ min-height:var(--tap); padding:8px 16px; font-size:14px; }
body :is(.btn, .acct-btn, .book-btn, .adm-btn, .sheet-btn, .role-btn):disabled{ opacity:.55; cursor:default; transform:none; }
/* A row of buttons: they wrap onto new lines on a phone and keep the same gap everywhere. */
.btn-row{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.btn-row.center{ justify-content:center; }
@media (max-width:480px){ .btn-row.stack > *{ flex:1 1 100%; } }

/* a link in running text is pink, like racketplaysocial's accent links */
body main:not(.site-main) :is(p, li) a:not([class]):not(#app-root *):not(.sheet *){ color:var(--lk-ff6bb1); text-underline-offset:3px; }
body main:not(.site-main) :is(p, li) a:not([class]):not(#app-root *):not(.sheet *):hover{ color:var(--lk-ff9ccb); }

/* ---- TOUCH: anything you tap on its own is at least 44px tall on a touch screen ----
   (links inside a sentence stay as they are; WCAG 2.2 asks for 24px, phones work best with 44px) */
body :is(.breadcrumbs a, .role-sub, .role-switch){ display:inline-flex; align-items:center; min-height:24px; }
@media (pointer:coarse){
  body :is(.breadcrumbs a, .role-sub, .role-switch){ min-height:var(--tap); }
}

/* ---- the account button (top right on every page) and its menu: a sheet from the bottom on phones,
   a panel under the button on wide screens ---- */
.hub-avatar{ order:5; flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; margin-left:10px; padding:0; border-radius:50%; border:1.5px solid rgba(255,255,255,.28); background:rgba(255,255,255,.06); color:#fff; cursor:pointer; }
.hub-avatar.signed{ background:#161B22; border-color:rgba(255,255,255,.28); color:#fff; } /* lime is for actions */
.hub-avatar-in{ display:inline-flex; align-items:center; justify-content:center; font:800 15px/1 'DM Sans',sans-serif; letter-spacing:.02em; }
.hub-avatar:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
@media (max-width:1023.98px){ .hub-switch{ margin-left:auto; } }
.acm-back{ position:fixed; inset:0; z-index:200; background:rgba(4,6,12,.62); display:flex; align-items:flex-end; justify-content:center; }
.acm{ width:100%; max-width:480px; max-height:88vh; overflow-y:auto; box-sizing:border-box; padding:16px 16px calc(18px + env(safe-area-inset-bottom)); border-radius:22px 22px 0 0; background:#141a26; border:1px solid rgba(255,255,255,.12); box-shadow:0 -12px 40px rgba(0,0,0,.45); color:#fff; font-family:'DM Sans',sans-serif; }
@media (min-width:1024px){
  .acm-back{ align-items:flex-start; justify-content:flex-end; background:rgba(4,6,12,.35); padding:72px 24px 0; }
  .acm{ width:360px; border-radius:18px; padding-bottom:16px; }
}
.acm-head{ display:flex; align-items:center; gap:12px; padding:4px 2px 14px; border-bottom:1px solid rgba(255,255,255,.1); }
.acm-avatar{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:50%; background: var(--lk-ff2e93); color: var(--fam-accent-ink); font:800 17px 'DM Sans',sans-serif; }
.acm-who{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.acm-who strong{ font-size:17px; }
.acm-who span{ font-size:14px; color:var(--lk-d6d1dc); overflow-wrap:anywhere; }
/* The plan badge in the account menu (site-nav.js): same little pill as My games' RallyPoint Pro label, so it reads as the same thing wherever it turns up. */
.acm-plan{ display:inline-block; align-self:flex-start; margin:1px 0; padding:3px 9px; border-radius:999px; border:1px solid rgba(255,255,255,.18); color:var(--lk-d6d1dc); font-size:12px; font-weight:800; }
.acm-plan.pro{ border-color:#D4FF33; color:#D4FF33; }
.acm-close{ flex:none; width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.08); color:#fff; font-size:26px; line-height:1; cursor:pointer; }
.acm-list{ list-style:none; margin:10px 0 0; padding:0; }
.acm-item, a.acm-item, a.acm-item:visited{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:56px; box-sizing:border-box; padding:8px 10px; border:0; border-radius:12px; background:transparent; color:#fff; text-align:left; text-decoration:none; font:inherit; cursor:pointer; }
.acm-item:hover{ background:rgba(255,255,255,.06); }
.acm-item:focus-visible, .acm-close:focus-visible, .acm-signout:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.acm-words{ display:flex; flex-direction:column; gap:2px; }
.acm-words strong{ font-size:16px; font-weight:800; }
.acm-words small{ font-size:13.5px; color:var(--lk-d6d1dc); }
.acm-chev{ font-size:24px; color:var(--lk-bdb6c6); }
.acm-small{ margin-top:8px; padding-top:8px; border-top:1px solid rgba(255,255,255,.1); }
.acm-small .acm-item{ min-height:44px; }
.acm-small .acm-words strong{ font-size:15px; font-weight:700; }
.acm-small .acm-chev{ display:none; }
.acm-signout{ display:block; width:100%; min-height:50px; margin-top:12px; border-radius:14px; border:1.5px solid rgba(255,255,255,.35); background:transparent; color:#fff; font:800 16px 'DM Sans',sans-serif; cursor:pointer; }
html.acm-open{ overflow:hidden; }
/* The app's own pages (Play and Organise) are screens, not web pages: no footer (its links are in the
   account menu). */
body[data-hub] > footer.site-footer{ display:none; }
/* One profile, two sides: Player | Organiser, the same on both Profile screens. */
.pf-seg{ display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:0 0 16px; padding:4px; border-radius:14px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); }
.pf-seg a, .pf-seg a:visited{ display:flex; align-items:center; justify-content:center; min-height:44px; border-radius:10px; color:#fff; font:800 15px 'DM Sans',sans-serif; text-decoration:none; }
.pf-seg a[aria-current="page"]{ background:#fff; color:#10141d; }
.pf-seg a:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
/* A RallyPoint founding partner's badge: on their sessions wherever players see them, and in their own area. */
.partner-badge{ display:inline-flex; align-items:center; gap:4px; width:max-content; margin-top:4px; padding:3px 10px; border-radius:999px; border:1px solid rgba(var(--lk-ff2e93-rgb),.7); background:rgba(var(--lk-ff2e93-rgb),.14); color:#fff; font:800 12.5px/1.3 'DM Sans',sans-serif; letter-spacing:.02em; }
.find-org .partner-badge{ margin:0 0 0 8px; vertical-align:middle; }
.partner-badge-btn{ cursor:pointer; min-height:32px; }
.partner-badge-btn:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.ev-title-box{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.partner-thanks{ text-align:center; padding:6px 4px 10px; }
.partner-thanks-mark{ margin:0; font-size:40px; line-height:1; color: var(--lk-ff2e93); }
.partner-thanks h2{ margin:10px 0 12px; font:800 26px/1.2 'Bricolage Grotesque',sans-serif; color:#fff; }
.partner-thanks p{ margin:0 0 12px; font-size:16px; line-height:1.55; color:var(--lk-ede6ef); }
.partner-thanks .partner-thanks-sign{ margin-top:16px; font-weight:800; color: var(--lk-ff2e93); }
/* An unread count on a tab (the organiser's Bookings: players' questions). */
.hub-bar a{ position:relative; }
.tab-count{ position:absolute; top:-2px; left:calc(50% + 4px); z-index:1; min-width:18px; height:18px; padding:0 5px; box-sizing:border-box; border-radius:999px; background:#ff5c7a; color:#fff; font:800 11px/18px 'DM Sans',sans-serif; text-align:center; }

/* Diamond: the gem-cut ring, crest and package sheet. Quiet, but unmistakably the top tier. */
.hub-avatar.diamond{ position:relative; background: var(--lk-ff2e93); border:0; box-shadow:0 0 0 2px var(--lk-0e0b12), 0 0 0 4px #fff, 0 0 14px 4px rgba(var(--lk-ff2e93-rgb),.55); }
.hub-avatar.diamond::after{ content:'◆'; position:absolute; right:-5px; bottom:-5px; width:18px; height:18px; display:grid; place-items:center; border-radius:50%; background:#fff; color: var(--lk-c4005c); font:900 11px/1 'DM Sans',sans-serif; box-shadow:0 1px 4px rgba(0,0,0,.4); }
.you-avatar.diamond{ box-shadow:0 0 0 2px #fff, 0 0 18px 2px rgba(var(--lk-ff2e93-rgb),.6); }
.you-card-diamond{ position:relative; overflow:hidden; border-color: rgba(var(--lk-ff2e93-rgb),.55) !important; background: linear-gradient(135deg, rgba(var(--lk-ff2e93-rgb),.22), rgba(255,255,255,.04) 45%, rgba(var(--lk-ff2e93-rgb),.12)) !important; }
.you-card-diamond::before{ content:''; position:absolute; inset:0; pointer-events:none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%); }
.diamond-crest{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; background: linear-gradient(135deg, #fff, rgba(255,255,255,.82)); color:var(--lk-5a0029) !important; font-weight:900 !important; letter-spacing:.06em; text-transform:uppercase; font-size:12.5px; box-shadow:0 0 0 1px rgba(255,255,255,.6), 0 4px 14px rgba(var(--lk-ff2e93-rgb),.45); }
.diamond-sheet{ text-align:center; color:#fff; }
.diamond-sheet p, .diamond-sheet span, .diamond-sheet strong{ color:#fff; }
.diamond-sheet h2{ color:#fff; }
.diamond-gem{ margin:4px 0 0; font-size:44px; line-height:1; color:#fff; text-shadow:0 0 18px rgba(var(--lk-ff2e93-rgb),.9), 0 0 2px #fff; }
.diamond-sheet h2{ margin:6px 0 4px; font:800 30px/1.1 'Bricolage Grotesque',sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.diamond-lead{ margin:0 auto 16px; max-width:34ch; opacity:.9; }
.diamond-list{ list-style:none; margin:0 0 18px; padding:0; text-align:left; display:flex; flex-direction:column; gap:2px; }
.diamond-list li{ display:flex; flex-direction:column; gap:2px; padding:12px 14px 12px 38px; position:relative; border-bottom:1px solid rgba(255,255,255,.1); }
.diamond-list li::before{ content:'◆'; position:absolute; left:12px; top:13px; color: var(--lk-ff8cc4); font-size:13px; }
.diamond-list strong{ font-size:16px; }
.diamond-list span{ font-size:14.5px; color: var(--lk-ede6ef) !important; }

/* Insights extras: comments, spreadsheets, team, merged names */
.ev-comments, .ev-team-list, .ev-aliases{ list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:8px; }
.ev-comments li{ display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border-radius:14px; background:rgba(255,255,255,.05); }
.ev-comments li > span:last-child{ display:flex; flex-direction:column; gap:3px; }
.ev-comment-face{ font-size:24px; line-height:1; }
.ev-comment-text{ font-size:15.5px; }
.ev-team-list li, .ev-aliases li{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.1); overflow-wrap:anywhere; }
.ev-team-add{ flex-wrap:wrap; }
.ev-team-add input{ flex:1 1 220px; min-height:44px; font:inherit; font-size:16px; padding:0 12px; border-radius:12px; border:1px solid rgba(255,255,255,.25); background:rgba(0,0,0,.25); color:#fff; }
.ev-downloads, .ev-team{ margin-top:22px; }
.ev-same{ margin-top:18px; padding-top:12px; border-top:1px solid rgba(255,255,255,.12); }
.ev-same summary{ color:#fff; cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:800; }
.ev-same select{ width:100%; min-height:44px; margin:0 0 10px; font:inherit; font-size:16px; }
.ev-team-back{ margin:0 0 14px; }
.ev-teams{ margin-bottom:16px; }
#acct-root .ev-team-list, #acct-root .ev-aliases, #acct-root .ev-comments{ padding:0; }
.ev-fair{ margin:18px 0 6px; padding:14px; border-radius:16px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); }
.ev-fair .ev-ins-h3{ margin-top:0; }
.ev-fair-num{ margin:0 0 8px; }
.ev-fair-num strong{ font:800 26px/1 'Bricolage Grotesque',sans-serif; }
.ev-fair-bar{ height:10px; border-radius:999px; background:rgba(255,255,255,.12); overflow:hidden; margin:0 0 8px; }
.ev-fair-bar span{ display:block; height:100%; border-radius:inherit; background: var(--lk-ff2e93); }
.ev-fair-bar.over span{ background:#fbbf24; }

/* The Founding Partner's lockup: their name × RallyPoint. */
.partner-lockup{ display:inline-flex; flex-direction:column; align-items:center; gap:6px; margin:0 auto 14px; padding:10px 18px; border-radius:18px; border:1px solid rgba(var(--lk-ff2e93-rgb),.55); background:rgba(var(--lk-ff2e93-rgb),.1); }
.pl-names{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; justify-content:center; font:800 20px/1.2 'Bricolage Grotesque',sans-serif; color:#fff; }
.pl-x{ color: var(--lk-ff8cc4); font-weight:400; }
.pl-us{ letter-spacing:.01em; }
.pl-sub{ font:700 12.5px/1.2 'DM Sans',sans-serif; letter-spacing:.08em; text-transform:uppercase; color: var(--lk-ff8cc4); }
.partner-lockup-line{ margin:6px 0 0; font:700 14px/1.3 'DM Sans',sans-serif; color: var(--lk-ff8cc4); }
.partner-lockup.has-logo{ padding-top:14px; }
.pl-logo{ width:72px; height:72px; object-fit:contain; }
.pl-us{ display:inline-flex; align-items:center; gap:6px; }
.pl-mark{ width:22px; height:22px; border-radius:6px; }
.partner-lockup-line{ display:flex; align-items:center; gap:8px; }
.pl-logo-sm{ width:28px; height:28px; object-fit:contain; }
.partner-lockup.has-logo .pl-names{ flex-direction:column; align-items:center; gap:2px; }
.partner-lockup.has-logo .pl-them{ font-size:22px; }
.partner-lockup.has-logo .pl-x{ display:none; }
.partner-lockup.has-logo .pl-us{ font:700 14px/1.2 'DM Sans',sans-serif; color: var(--lk-ff8cc4); text-transform:none; letter-spacing:.02em; }
.partner-lockup.has-logo .pl-us::before{ content:'in partnership with'; margin-right:2px; }
.partner-badge.has-logo{ gap:6px; padding:3px 10px 3px 4px; }
.partner-badge-logo{ width:20px; height:20px; object-fit:contain; border-radius:50%; background:rgba(0,0,0,.35); }
.pp-follow-partner{ border-radius:16px; padding:10px 12px; background:rgba(var(--lk-ff2e93-rgb),.1); border:1px solid rgba(var(--lk-ff2e93-rgb),.45); }

/* A partner's website and socials (site-nav.js mcPartnerLinks): the booking page, under the lockup, and the partners page. */
.partner-links{ list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:0 auto 16px; padding:0; max-width:560px; }
.partner-link{ display:inline-flex; align-items:baseline; gap:6px; min-height:40px; box-sizing:border-box; padding:9px 14px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); color:#fff; font:700 14px/1.3 'DM Sans',sans-serif; text-decoration:none; }
.partner-link:hover{ border-color: rgba(var(--lk-ff2e93-rgb),.8); background: rgba(var(--lk-ff2e93-rgb),.14); }
.partner-link:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.partner-link-handle{ font-weight:400; color: var(--lk-dbd0dd, var(--lk-dbd0dd)); }

/* "Recommended by …" on the organiser sign-in card, from a partner's referral link. */
.acct-ref{ margin:14px 0 6px; padding:14px 16px; border-radius:16px; border:1px solid rgba(var(--lk-ff2e93-rgb),.55); background:rgba(var(--lk-ff2e93-rgb),.1); }
.acct-ref strong{ display:block; font-size:16px; margin:8px 0 2px; }
.acct-ref p{ margin:4px 0 0; }
.acct-ref .partner-badge{ margin:0; }

/* The partner's referral link, numbers and links (Insights). */
.ev-referrals{ margin-top:26px; }
.ev-ref-row input{ flex:1 1 240px; min-width:0; padding:11px 12px; border-radius:12px; border:1.5px solid rgba(255,255,255,.2); background:rgba(255,255,255,.06); color:#fff; font:15px 'DM Sans',sans-serif; }
.ev-ref-stats{ list-style:none; display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; padding:0; }
.ev-ref-stats li{ flex:1 1 120px; padding:12px 14px; border-radius:14px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); display:flex; flex-direction:column; gap:2px; }
.ev-ref-stats strong{ font:800 24px/1.1 'Bricolage Grotesque',sans-serif; }
.ev-ref-list{ list-style:none; margin:0 0 10px; padding:0; }
.ev-ref-list li{ display:flex; flex-wrap:wrap; gap:6px 12px; align-items:baseline; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.ev-ref-plan{ padding:2px 9px; border-radius:999px; font-size:12.5px; font-weight:800; background:rgba(255,255,255,.1); }
.ev-ref-plan.paid{ background: rgba(var(--lk-ff2e93-rgb),.22); }
.ev-links{ margin-top:22px; }
.ev-links-form{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px 14px; }
.ev-links-form .acct-row, .ev-links-form .acct-msg{ grid-column:1 / -1; }

/* The partners page (partners.html). */
.partners-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.partner-card{ background: var(--lk-151224); border:1px solid rgba(var(--lk-ff2e93-rgb),.45); border-radius:22px; padding:24px 22px; color:#fff; text-align:center; }
.partner-card-logo{ display:block; margin:0 auto 10px; width:88px; height:88px; object-fit:contain; }
.partner-card h2{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:26px; margin:10px 0 4px; }
.partner-card .partner-badge{ margin:0 auto; }
.partner-card .partner-links{ margin:14px auto 0; }
.partner-card-join{ margin:18px 0 0; padding-top:16px; border-top:1px solid rgba(255,255,255,.12); }
.partner-card-join p{ margin:0 0 10px; color: var(--lk-dbd0dd, var(--lk-dbd0dd)); }
.partners-shell{ max-width:560px; margin:0 auto; padding:0 0 40px; }
.partners-fine{ font-size:14px; color: var(--lk-a99db0, #a9b4bf); margin:0; }
.partner-card-btn{ display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 22px; border-radius:16px; background: var(--lk-ff2e93); color: var(--lk-on-accent); font:800 16px 'DM Sans',sans-serif; text-decoration:none; }
.partner-card-btn:focus-visible{ outline:3px solid #fff; outline-offset:3px; }
/* Inside the guide layout (partners.html), its own list and link colours don't apply here. */
.guide-shell .partners-list, .guide-shell .partner-links{ padding-left:0; }
.guide-shell .partners-list > li, .guide-shell .partner-links li{ margin-bottom:0; }
.guide-shell a.partner-link, .guide-shell a.partner-link:visited{ color:#fff; }
.guide-shell a.partner-card-btn, .guide-shell a.partner-card-btn:visited{ color: var(--fam-accent-ink, #0b131f); }
/* On a phone, the site's name alone, so the links fit on a line or two. */
@media (max-width: 480px){
  .partner-link .partner-link-handle{ display:none; }
  .partner-links{ gap:6px; }
  .partner-link{ padding:9px 13px; }
}
.ev-referrals ul.ev-ref-stats, .ev-referrals ul.ev-ref-list{ padding-left:0; margin-left:0; }

/* Padlocked features (Starter): the padlock on upsell lines, and a dimmed, disabled tool. */
.ev-upsell .ev-lock{ margin-right:6px; }
.ev-tool.is-locked, .you-toggle.is-locked{ opacity:.7; }
.ev-tool.is-locked input, .you-toggle.is-locked input{ cursor:not-allowed; }

/* ---- The home screen as an app (index.html: <body data-home="app">). The same header markup as every page,
   trimmed to the logo and the account icon, in an app-width column; the hub tab bar is off (data-hub-bar),
   and signed-in organisers get the app's own tab bar (.app-tabs). html[data-signed] is set by site-nav.js. */
body[data-home="app"]{ background:#0B111E; }
body[data-home="app"] .site-header{ background:rgba(11,17,30,.92); }
body[data-home="app"] .site-header > .wrap{ max-width:540px; }
/* Logged in, the Play / Organise switch stays: it's how you change mode from anywhere. */
html:not([data-signed="in"]) body[data-home="app"] .hub-switch, body[data-home="app"] .hub-links, body[data-home="app"] .header-cta{ display:none !important; }
html[data-signed="in"] body[data-home="app"] .hub-switch{ margin-left:auto; }
html[data-signed="in"] body[data-home="app"] .hub-avatar{ margin-left:10px; }
body[data-home="app"] .hub-avatar{ margin-left:auto; }
body[data-home="app"] .site-footer > .wrap{ max-width:540px; }
.app-tabs{ display:none; }
html[data-signed="in"]:not([data-organising="no"]) body[data-home="app"]{ padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
html[data-signed="in"]:not([data-organising="no"]) body[data-home="app"] .cookie-banner{ bottom:calc(68px + env(safe-area-inset-bottom)); }
html[data-signed="in"]:not([data-organising="no"]) .app-tabs{
  display:block; position:fixed; z-index:40; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:540px; padding-bottom:env(safe-area-inset-bottom);
  background:rgba(11,17,30,.96); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,.14);
}
@media (min-width:541px){ html[data-signed="in"]:not([data-organising="no"]) .app-tabs{ border:1px solid rgba(255,255,255,.14); border-bottom:0; border-radius:18px 18px 0 0; } }
.app-tabs ul{ display:flex; margin:0; padding:0; list-style:none; }
.app-tabs li{ flex:1 1 0; min-width:0; }
.app-tabs a{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:64px; padding:0 4px;
  color:#93A3B8; font:700 11.5px/1.1 'DM Sans', sans-serif; text-decoration:none; text-align:center;
}
.app-tabs a span{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-tabs a[aria-current="page"]{ color:#D4FF33; }
.app-tabs a:focus-visible{ outline:3px solid #D4FF33; outline-offset:-3px; border-radius:12px; }

/* The account menu's mode switch: which profile you're using now, and the other one a tap away. */
.acm-mode-label{ margin:14px 2px 6px; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#AAB4C3; }
.acm-mode{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.acm-mode a{ display:flex; flex-direction:column; gap:3px; min-height:66px; padding:10px 12px; border-radius:14px; border:1.5px solid rgba(255,255,255,.18); color:#fff; text-decoration:none; }
.acm-mode a strong{ font:800 15px/1.2 'DM Sans', sans-serif; }
.acm-mode a span{ font-size:12.5px; line-height:1.3; color:#AAB4C3; overflow:hidden; text-overflow:ellipsis; }
.acm-mode a[aria-current="true"]{ border-color: var(--lk-ff2e93); background: rgba(var(--lk-ff2e93-rgb),.12); }
.acm-mode a[aria-current="true"] strong::after{ content:' · now'; font-weight:700; color: var(--lk-ff2e93); }
.acm-space-disabled{ display:flex !important; flex-direction:row !important; align-items:flex-start; gap:10px; min-height:66px; padding:10px 12px; border-radius:14px; border:1.5px dashed rgba(255,255,255,.18); color:#AAB4C3; cursor:default; opacity:.7; }
.acm-space-disabled strong{ font:800 15px/1.2 'DM Sans', sans-serif; color:#AAB4C3; }
.acm-space-disabled .acm-space-words span{ font-size:12.5px; }
.acm-mode a:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
body[data-home="app"] .header-login{ margin-left:auto !important; }

/* ---- The RallyPoint logo for who's here (site-nav.js sets html[data-signed], [data-hub] and [data-pro]):
   logged out RallyPoint; a player on Lite or Pro, RallyPoint Lite or Pro; organising, RallyPoint Club. ---- */
.site-header .logo{ gap:0; }
.site-header .logo .logo-img{ display:none; width:auto; height:30px; }
.site-header .logo .logo-main{ display:block; height:36px; }
/* One brand in the header whatever the mode: RallyPoint (never Lite, Pro or Club). */
@media (max-width:380px){ .site-header .logo .logo-img{ height:26px; } .site-header .logo .logo-main{ height:28px; } }

/* The one-off "Switch to your club" pill after logging in as a player (site-nav.js). */
.switch-hint{ position:fixed; z-index:60; left:50%; transform:translateX(-50%); bottom:calc(84px + env(safe-area-inset-bottom)); display:flex; align-items:center; gap:6px;
  max-width:calc(100% - 24px); padding:8px 8px 8px 16px; border-radius:999px; background:#121B2D; border:1px solid rgba(212,255,51,.45); box-shadow:0 10px 30px rgba(0,0,0,.45);
  color:#fff; font:600 14px/1.3 'DM Sans', sans-serif; }
.switch-hint a{ color:#D4FF33; font-weight:800; text-decoration:none; white-space:nowrap; }
.switch-hint a:focus-visible, .switch-hint-x:focus-visible{ outline:3px solid #fff; outline-offset:2px; border-radius:6px; }
.switch-hint-x{ flex:none; width:36px; height:36px; border:0; border-radius:50%; background:rgba(255,255,255,.08); color:#fff; font-size:20px; line-height:1; cursor:pointer; }
@media (min-width:1024px){ .switch-hint{ bottom:24px; } }

/* Find a game opens once enough sessions are open to anyone; until then the Player Hub's first tab is
   Activity (html[data-findgame="off"], set before anything is drawn and kept up to date by site-nav.js). */
html[data-findgame="off"] .find-on{ display:none !important; }
html:not([data-findgame="off"]) .find-off{ display:none !important; }

/* A page that always shows plain RallyPoint in the header (pro.html: not Lite or Pro above the Pro page). */
body[data-logo="main"] .site-header .logo .logo-img{ display:none !important; }
body[data-logo="main"] .site-header .logo .logo-main{ display:block !important; }
/* The header says plain RallyPoint on Find a game (not Lite or Pro). */
html[data-pane="find"]:not([data-findgame="off"]) .site-header .logo .logo-img{ display:none !important; }
html[data-pane="find"]:not([data-findgame="off"]) .site-header .logo .logo-main{ display:block !important; }
.live-dock-label .lbl-short{ display:none; }
@media (max-width:420px){ .live-dock-label .lbl-long{ display:none; } .live-dock-label .lbl-short{ display:inline; } }
/* "Switch to hosting" by the avatar, in place of the Play | Organise pill (site-nav.js). */
.site-header .hub-switch{ display:none !important; }
.switch-mode{ order:4; flex:none; display:inline-flex; align-items:center; gap:6px; min-height:44px; margin-left:auto; padding:0 12px; border-radius:999px; color:#fff; font:700 14px 'DM Sans',sans-serif; text-decoration:none; white-space:nowrap; }
.switch-mode:hover{ background:rgba(255,255,255,.08); }
.switch-mode:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.switch-mode .sw-short{ display:none; }
.switch-mode .sw-swap{ display:none; }
.switch-mode .live-dot{ margin-left:2px; }
.switch-mode + .hub-avatar{ margin-left:4px; }
/* Phones: "Switch to hosting/playing" collapses to the mode you're in now ("Playing"/"Hosting") plus a
   small swap glyph, so it reads as "here's your current mode, tap to switch" rather than a bare, easy-to-
   misread destination word. */
@media (max-width:480px){
  .switch-mode .sw-long{ display:none; }
  .switch-mode .sw-short{ display:inline; font-weight:800; }
  .switch-mode .sw-swap{ display:inline; opacity:.65; font-weight:400; }
  .switch-mode{ padding:0 10px; background:rgba(255,255,255,.07); border:1px solid var(--fam-line-2); }
}

/* Visible current-mode status on every shared header, not just a hub page. */
html[data-signed="in"] body .site-header .hub-mode-pill{display:inline-flex!important;background:#51B7FF;color:#0B111E;border:1px solid #8ED4FF;font-weight:800;min-height:30px}
html[data-signed="in"] body .site-header .hub-mode-pill::before{background:#0B111E;box-shadow:none}
