﻿/* css/mobile.css — mobile layout + components, ALL scoped under .mb-root */
/* No desktop rules ever touch .mb-root; no .mb-root rules leak out. */

/* ── Scroll helpers (global — same as styles.css pattern) ──────── */
.xscr::-webkit-scrollbar { height: 0; }
.xscr { scrollbar-width: none; }

/* When the engine is embedded on mobile, hide its wordmark so the overlay BACK
   button can sit top-left. visibility (not display) keeps the app-bar layout intact
   so the right-side chips stay put. Toggled by js/community/mobile/index.js. */
body.mb-engine-embedded .wordmark { visibility: hidden; }

/* ── Root layout ────────────────────────────────────────────────── */
.mb-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  background: #0B0E14;
  color: #F5F7FA;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  position: relative;
}

/* ── App bar ────────────────────────────────────────────────────── */
.mb-root .mb-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 10px;
  flex-shrink: 0;
}

.mb-root .mb-logo {
  font-family: 'Anton', sans-serif;
  font-size: 21px;
  letter-spacing: 0.02em;
}
.mb-root .mb-logo span { color: #CBFF2E; }

.mb-root .mb-back-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  color: #C4CBD6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.mb-root .mb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #CBFF2E, #46E08F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  color: #0B0E14;
  flex-shrink: 0;
}

.mb-root .mb-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mb-root .mb-bell-btn {
  border: none;
  background: transparent;
  color: #C4CBD6;
  display: flex;
  padding: 0;
  cursor: default;
  opacity: 0.55;
}

.mb-root .mb-login-pill {
  cursor: pointer;
  border: none;
  background: #CBFF2E;
  color: #0B0E14;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
}
/* alias for JS that may use .mb-login-btn */
.mb-root .mb-login-btn { }

/* ── Scroll body ────────────────────────────────────────────────── */
.mb-root .mb-view {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px 24px;
  scrollbar-width: none;
}
.mb-root .mb-view::-webkit-scrollbar { width: 0; height: 0; }

/* ── Bottom nav ─────────────────────────────────────────────────── */
.mb-root .mb-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 16px 20px;
  border-top: 1px solid #151A24;
  background: #0B0E14;
  flex-shrink: 0;
}

.mb-root .mb-nav-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #7C8390;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}
.mb-root .mb-nav-btn.active { color: #CBFF2E; }

/* ── Communities home ───────────────────────────────────────────── */
.mb-root .mb-home-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 0.96;
  margin: 8px 0 4px;
  text-transform: uppercase;
}

.mb-root .mb-com-card {
  cursor: pointer;
  text-align: left;
  border: 1px solid #1E2530;
  background: #11151E;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.mb-root .mb-com-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  color: #0B0E14;
}

.mb-root .mb-discover-more {
  cursor: pointer;
  border: 1.5px dashed #2A2F3A;
  background: transparent;
  color: #C4CBD6;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  width: 100%;
}

/* ── Logged-out home (hero + open communities) ──────────────────── */
.mb-root .mb-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #151A24;
  border: 1px solid #232C3A;
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #C4CBD6;
}
.mb-root .mb-live-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CBFF2E;
  animation: mbPulse 1.4s infinite;
}
@keyframes mbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.mb-root .mb-hero { padding-top: 10px; }

.mb-root .mb-hero-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 0.92;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.mb-root .mb-hero-sub {
  font-size: 15px;
  line-height: 1.55;
  color: #8A93A3;
  margin: 0;
  text-wrap: pretty;
}

.mb-root .mb-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0 22px;
}
.mb-root .mb-cta-primary {
  cursor: pointer;
  width: 100%;
  border: none;
  background: #CBFF2E;
  color: #0B0E14;
  border-radius: 14px;
  padding: 16px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mb-root .mb-cta-social {
  display: flex;
  gap: 9px;
}
.mb-root .mb-cta-oauth {
  cursor: pointer;
  flex: 1;
  border: 1.5px solid #2A2F3A;
  background: #151A24;
  color: #F5F7FA;
  border-radius: 14px;
  padding: 13px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mb-root .mb-hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.mb-root .mb-hero-divider > span:first-child,
.mb-root .mb-hero-divider > span:last-child {
  flex: 1;
  height: 1px;
  background: #1E2530;
}
.mb-root .mb-hero-divider-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5A606B;
}

.mb-root .mb-open-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mb-root .mb-open-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 26px;
  margin: 0;
  text-transform: uppercase;
}
.mb-root .mb-open-count {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #8A93A3;
}

.mb-root .mb-hero-search {
  position: relative;
  margin-bottom: 11px;
}
.mb-root .mb-hero-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}
.mb-root .mb-hero-search input {
  width: 100%;
  background: #151A24;
  border: 1.5px solid #1E2530;
  border-radius: 14px;
  padding: 13px 16px 13px 44px;
  color: #F5F7FA;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.mb-root .mb-hero-search input:focus { border-color: #CBFF2E; }

.mb-root .mb-city-chips:empty { display: none; }
.mb-root .mb-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.mb-root .mb-city-chip {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #151A24;
  color: #C4CBD6;
  border: 1.5px solid #2A2F3A;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.mb-root .mb-city-chip.active {
  background: rgba(203,255,46,0.13);
  color: #CBFF2E;
  border-color: rgba(203,255,46,0.5);
}

.mb-root .mb-open-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mb-root .mb-open-card {
  border: 1px solid #1E2530;
  background: #11151E;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.mb-root .mb-open-card.live { border-color: rgba(203,255,46,0.34); }

.mb-root .mb-open-card-name {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 16.5px;
  color: #F5F7FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-root .mb-open-card-meta {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: #8A93A3;
  margin-top: 2px;
}
.mb-root .mb-open-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  color: #8A93A3;
}
.mb-root .mb-open-card-status.live { color: #CBFF2E; }
.mb-root .mb-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.mb-root .mb-open-join {
  cursor: pointer;
  flex-shrink: 0;
  border: 1.5px solid #2A2F3A;
  background: #151A24;
  color: #CBFF2E;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
}

.mb-root .mb-open-empty {
  border: 1.5px dashed #2A2F3A;
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
}
.mb-root .mb-open-empty-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #C4CBD6;
}
.mb-root .mb-open-empty-sub {
  font-size: 13.5px;
  color: #8A93A3;
  margin-top: 5px;
}

/* ── Logged-in home ─────────────────────────────────────────────── */
.mb-root .mb-greet {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 0.96;
  margin: 6px 0 4px;
  text-transform: uppercase;
}
.mb-root .mb-greet-sub {
  font-size: 14px;
  color: #8A93A3;
  margin: 0 0 18px;
}

.mb-root .mb-live-card {
  border: 1px solid rgba(203,255,46,0.4);
  background: linear-gradient(120deg, rgba(203,255,46,0.13), rgba(17,21,30,0.5));
  border-radius: 22px;
  padding: 17px;
  margin-bottom: 24px;
}
.mb-root .mb-live-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  flex-wrap: wrap;
}
.mb-root .mb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  background: #CBFF2E;
  color: #0B0E14;
}
.mb-root .mb-live-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0B0E14;
  animation: mbPulse 1.4s infinite;
}
.mb-root .mb-live-card-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #8A93A3;
}
.mb-root .mb-live-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 25px;
  text-transform: uppercase;
  line-height: 1;
}
.mb-root .mb-live-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.mb-root .mb-live-card-court {
  font-size: 13px;
  color: #C4CBD6;
}
.mb-root .mb-live-card-court strong { color: #F5F7FA; font-weight: 700; }
.mb-root .mb-live-card-open {
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  background: #CBFF2E;
  color: #0B0E14;
  border-radius: 12px;
  padding: 11px 18px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
}

.mb-root .mb-joined-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
.mb-root .mb-joined-card {
  cursor: pointer;
  text-align: left;
  width: 100%;
  border: 1px solid #1E2530;
  background: #11151E;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.mb-root .mb-joined-card.live { border-color: rgba(203,255,46,0.34); }

.mb-root .mb-see-all {
  cursor: pointer;
  border: none;
  background: transparent;
  color: #CBFF2E;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  padding: 0;
}
.mb-root .mb-section-sub {
  font-size: 13.5px;
  color: #8A93A3;
  margin: 0 0 14px;
}

.mb-root .mb-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mb-root .mb-suggest-card {
  border: 1px solid #1E2530;
  background: #11151E;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.mb-root .mb-suggest-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  color: #0B0E14;
}
.mb-root .mb-suggest-name {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  color: #F5F7FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-root .mb-open-join.requested {
  background: #CBFF2E;
  color: #0B0E14;
  border-color: #CBFF2E;
  cursor: default;
}

/* ── Event RSVP (design v3, full-bleed) ─────────────────────────── */
/* Sections cancel .mb-view's 20px gutter and re-add 22px inside, so they run
   edge to edge while their text stays aligned with the page above. */
.mb-root .rsvp-strip {
  background: #11151E;
  border-top: 1px solid #1E2530;
  border-bottom: 1px solid #1E2530;
  padding: 15px 22px;
  margin: 0 -20px 22px;
}
.mb-root .rsvp-strip-more {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: #8A93A3;
}

.mb-root .rsvp-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mb-root .rsvp-sec-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #5A606B;
}

.mb-root .rsvp-att-list {
  display: flex;
  flex-direction: column;
  margin: 0 -20px;
  border-top: 1px solid #1E2530;
}
.mb-root .rsvp-att-row {
  background: #11151E;
  border-bottom: 1px solid #1E2530;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mb-root .rsvp-att-name {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #F5F7FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-root .rsvp-att-status {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  margin-top: 2px;
}
.mb-root .rsvp-att-remove {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #1E2530;
  background: #151A24;
  color: #8A93A3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mb-root .rsvp-att-remove:active { border-color: #FF6FB5; color: #FF6FB5; }

/* Organizer panel — hatched gold so it reads as a different privilege level. */
.mb-root .rsvp-org {
  margin: 26px -20px 0;
  background:
    repeating-linear-gradient(45deg, rgba(240,190,54,0.055) 0 5px, rgba(240,190,54,0) 5px 13px),
    #0F1218;
  border-top: 1px solid rgba(240,190,54,0.34);
  border-bottom: 1px solid rgba(240,190,54,0.34);
  overflow: hidden;
}
.mb-root .rsvp-org > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 22px;
  cursor: pointer;
  list-style: none;
  background:
    repeating-linear-gradient(45deg, rgba(240,190,54,0.1) 0 5px, rgba(240,190,54,0) 5px 13px),
    rgba(15,18,24,0.6);
  border-bottom: 1px solid rgba(240,190,54,0.22);
}
.mb-root .rsvp-org > summary::-webkit-details-marker { display: none; }
.mb-root .rsvp-org-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #F0BE36;
  color: #4A3506;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mb-root .rsvp-org-title {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #F0BE36;
}
.mb-root .rsvp-org-sub {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  color: #8A93A3;
  margin-top: 2px;
}
.mb-root .rsvp-org-toggle {
  flex-shrink: 0;
  border: 1px solid rgba(240,190,54,0.4);
  background: rgba(240,190,54,0.1);
  color: #F0BE36;
  border-radius: 10px;
  padding: 7px 12px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 12px;
}
/* One label, swapped by the open state — no JS needed for the toggle. */
.mb-root .rsvp-org-toggle::after { content: 'Show'; }
.mb-root .rsvp-org[open] .rsvp-org-toggle::after { content: 'Hide'; }
.mb-root .rsvp-org-body { padding: 16px 22px 20px; }

/* Roster picker scrolls without a visible bar — the clipped last row is the cue. */
.mb-root .rsvp-roster { scrollbar-width: none; }
.mb-root .rsvp-roster::-webkit-scrollbar { width: 0; height: 0; }

/* RSVP bar pinned to the bottom of the scroller, above the tab bar. */
.mb-root .rsvp-bar {
  position: sticky;
  bottom: -24px;
  z-index: 5;
  margin: 22px -20px -24px;
  padding: 12px 22px calc(14px + env(safe-area-inset-bottom));
  background: #0B0E14;
  border-top: 1px solid #151A24;
}
.mb-root .rsvp-bar-note {
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.mb-root .rsvp-bar-btns { display: flex; gap: 9px; }

/* ── Community cover + header ───────────────────────────────────── */
.mb-root .mb-cover {
  position: relative;
  height: 132px;
  overflow: hidden;
  background: #0E1219;
  margin: 0 -20px 14px;
}
/* Bottom fade so the overlapping logo and title stay legible on any cover tint. */
.mb-root .mb-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,14,20,0) 40%, rgba(11,14,20,0.92));
}

.mb-root .mb-cover-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.mb-root .mb-cover-court {
  position: absolute;
  inset: 0;
  opacity: 0.13;
}

.mb-root .mb-com-logo {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 18px;
  border: 4px solid #0B0E14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  color: #0B0E14;
}

.mb-root .mb-com-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 31px;
  line-height: 0.95;
  margin: 0 0 6px;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
}

.mb-root .mb-com-header {
  position: relative;
  padding: 0 4px;
  margin-top: -34px;
}

.mb-root .mb-com-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: #8A93A3;
  flex-wrap: wrap;
}

.mb-root .mb-meta-edit {
  cursor: pointer;
  border: 1px solid #2A2F3A;
  background: transparent;
  color: #CBFF2E;
  border-radius: 999px;
  padding: 4px 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
}

.mb-root .mb-com-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.mb-root .mb-join-btn {
  flex: 1;
  cursor: pointer;
  border-radius: 13px;
  padding: 12px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 14px;
}

.mb-root .mb-new-tourn-btn {
  flex: 1;
  cursor: pointer;
  border: none;
  background: #CBFF2E;
  color: #0B0E14;
  border-radius: 14px;
  padding: 16px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

/* ── Tabs ───────────────────────────────────────────────────────── */
.mb-root .mb-tabs {
  display: flex;
  gap: 22px;
  margin: 22px -20px 0;
  padding: 0 20px;
  overflow-x: auto;
  border-bottom: 1px solid #1A202B;
  scrollbar-width: none;
}
.mb-root .mb-tabs::-webkit-scrollbar { height: 0; }

.mb-root .mb-tab {
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #8A93A3;
  padding: 0 0 11px;
  margin-bottom: -1px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  border-bottom: 2.5px solid transparent;
  transition: color 0.14s ease;
}
.mb-root .mb-tab.active {
  color: #F5F7FA;
  border-bottom-color: #CBFF2E;
}

/* ── Live banner ────────────────────────────────────────────────── */
.mb-root .mb-live-banner {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(203,255,46,0.45);
  background: linear-gradient(120deg, rgba(203,255,46,0.13), rgba(21,26,36,0.4) 60%);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
  display: block;
}

.mb-root .mb-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CBFF2E;
  animation: blink 1.4s infinite;
  display: inline-block;
}

/* ── Tournament cards ───────────────────────────────────────────── */
.mb-root .mb-tcard {
  cursor: pointer;
  text-align: left;
  border: 1px solid #1E2530;
  background: #11151E;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
}

.mb-root .mb-tcard-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B0E14;
}

.mb-root .mb-tcard-status {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ── Event cards ────────────────────────────────────────────────── */
/* Event card: a tinted "cover" half (date, status, title, time/venue) over an
   actions half (podium or attendees, then the buttons). */
/* Breathing room between the tab strip and the first card. */
.mb-root #mb-tab-content { padding-top: 18px; }

/* Status filter chips above the events list. */
.mb-root .mb-ev-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mb-root .mb-ev-filter {
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  border: 1.5px solid var(--border-strong);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.mb-root .mb-ev-filter.active {
  background: var(--lime-tint);
  color: var(--lime);
  border-color: var(--lime-border);
}

/* Full-bleed rows: the card spans the whole screen width by cancelling .mb-view's
   20px gutter, so only the top/bottom rules divide them — no side borders or radius. */
.mb-root .mb-ecard {
  border-top: 1px solid #1E2530;
  border-bottom: 1px solid #1E2530;
  background: #11151E;
  overflow: hidden;
  margin: 0 -20px 9px;
  cursor: pointer;
  /* Without this the whole card flashes when an inner button is tapped, because the
     card carries the delegated click handler. Buttons get their own :active below. */
  -webkit-tap-highlight-color: transparent;
}

.mb-root .mb-ecard-cover {
  position: relative;
  padding: 16px 22px 18px;
}
.mb-root .mb-ecard-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,14,20,0) 34%, rgba(11,14,20,0.82));
  pointer-events: none;
}
.mb-root .mb-ecard-head {
  position: relative;
  display: flex;
  gap: 13px;
}
.mb-root .mb-ecard-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.mb-root .mb-status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF8A3D;
  animation: mbPulse 1.6s infinite;
}
.mb-root .mb-ecard-title {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 23px;
  color: #F5F7FA;
  margin-top: 5px;
  line-height: 1.05;
  text-transform: uppercase;
}
.mb-root .mb-ecard-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: #C4CBD6;
}

.mb-root .mb-ecard-actions {
  padding: 14px 22px 18px;
  background: #11151E;
  border-top: 1px solid #1E2530;
}
.mb-root .mb-ecard-people {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.mb-root .mb-ecard-count {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #C4CBD6;
}
.mb-root .mb-ecard-btns {
  display: flex;
  gap: 9px;
}
.mb-root .mb-ecard-btns > * {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  padding: 11px 0;
  font-size: 13px;
  transition: transform 0.08s ease, filter 0.14s ease;
}
/* Press feedback belongs to the button, not the card behind it. */
.mb-root .mb-ecard-btns > *:active { transform: scale(0.97); filter: brightness(1.25); }
.mb-root .mb-ev-filter:active,
.mb-root .mb-pager button:active { filter: brightness(1.25); }

/* Podium pills on a finished card. */
/* 2nd/3rd take the slack between the winner and the count, packed to the left so
   they read as a continuation of the podium rather than drifting to the edge. */
.mb-root .mb-runner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
/* Long pairs ellipsize instead of forcing the pill to wrap. */
.mb-root .mb-pill-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* v4 drops the pill chrome around the winner — just the gold tile and the name. */
.mb-root .mb-champ-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  color: #CBFF2E;
}
.mb-root .mb-champ-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #F0BE36;
  color: #4A3506;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mb-root .mb-runner-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  background: #151A24;
  border: 1px solid #1E2530;
  border-radius: 999px;
  padding: 3px 9px 3px 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  color: #8A93A3;
}
.mb-root .mb-medal {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 8.5px;
}

.mb-root .mb-date-block {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(11,14,20,0.82);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.mb-root .mb-date-month {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 0;
}

.mb-root .mb-date-day {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  color: #F5F7FA;
}

.mb-root .mb-rsvp-btn {
  cursor: pointer;
  border-radius: 10px;
  padding: 7px 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 12px;
}

/* ── Member rows ────────────────────────────────────────────────── */
.mb-root .mb-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #1E2530;
  background: #11151E;
  border-radius: 15px;
  padding: 11px 13px;
}

.mb-root .mb-member-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  color: #0B0E14;
}

/* ── Season rows ────────────────────────────────────────────────── */
.mb-root .mb-season-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  padding: 11px 14px;
  border: 1px solid #1E2530;
}

/* ── Discover cards ─────────────────────────────────────────────── */
.mb-root .mb-dcard {
  border: 1px solid #1E2530;
  background: #11151E;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.mb-root .mb-dcard-cover {
  height: 64px;
  position: relative;
}

.mb-root .mb-dcard-body {
  padding: 14px 16px 14px 80px;   /* left pad clears the overlapping avatar; body sits on dark */
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}

/* Avatar overlaps the cover banner, with a dark separator outline. */
.mb-root .mb-dcard-avatar {
  position: absolute;
  top: 39px;
  left: 16px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 3px solid #0B0E14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #0B0E14;
}

.mb-root .mb-open-btn {
  cursor: pointer;
  border-radius: 11px;
  padding: 9px 16px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  border: 1.5px solid #CBFF2E;
  background: #CBFF2E;
  color: #0B0E14;
}

/* ── Empty state ────────────────────────────────────────────────── */
.mb-root .mb-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8A93A3;
  font-size: 14px;
}

/* ── Member add form ────────────────────────────────────────────── */
.mb-root .mb-member-add {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.mb-root .mb-member-add input {
  flex: 1;
  background: #0B0E14;
  border: 1.5px solid #1E2530;
  border-radius: 13px;
  padding: 12px 14px;
  color: #F5F7FA;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  outline: none;
}
.mb-root .mb-member-add input:focus { border-color: #CBFF2E; }

.mb-root .mb-member-add button {
  cursor: pointer;
  border: none;
  background: #CBFF2E;
  color: #0B0E14;
  border-radius: 13px;
  padding: 12px 16px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.mb-root .mb-member-add button:disabled { opacity: 0.5; cursor: default; }

.mb-root .mb-error-text {
  color: #FF6FB5;
  font-size: 13px;
  margin: 8px 0 0;
}

/* ── Auth bottom sheet ──────────────────────────────────────────── */
.mb-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,6,8,0.74);
  backdrop-filter: blur(5px);
  display: none;
  align-items: flex-end;
  z-index: 100;
  animation: mbFadeIn 0.18s ease;
}
.mb-sheet-backdrop.open { display: flex; }
@keyframes mbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mbSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.mb-sheet-backdrop .mb-sheet {
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  background: #11151E;
  border-top: 1px solid #232C3A;
  border-radius: 28px 28px 0 0;
  padding: 12px 22px calc(30px + env(safe-area-inset-bottom));
  animation: mbSheetUp 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.mb-sheet-backdrop .mb-sheet-grab {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #2A2F3A;
  margin: 0 auto 18px;
}

.mb-sheet-backdrop .mb-sheet-tabs {
  display: flex;
  background: #0B0E14;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 20px;
}
.mb-sheet-backdrop .mb-sheet-tab {
  cursor: pointer;
  flex: 1;
  border: none;
  background: transparent;
  color: #8A93A3;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  padding: 11px 0;
  border-radius: 999px;
  transition: background 0.14s ease, color 0.14s ease;
}
.mb-sheet-backdrop .mb-sheet-tab.active { background: #CBFF2E; color: #0B0E14; }

.mb-sheet-backdrop .mb-sheet-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 4px;
  text-transform: uppercase;
  color: #F5F7FA;
}
.mb-sheet-backdrop .mb-sheet-sub {
  font-size: 13.5px;
  color: #8A93A3;
  margin: 0 0 18px;
}
.mb-sheet-backdrop .mb-sheet-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mb-sheet-backdrop .mb-sheet-terms {
  font-size: 11.5px;
  line-height: 1.5;
  color: #5A606B;
  text-align: center;
  margin: 12px 0 0;
}
.mb-sheet-backdrop .mb-sheet-terms a { color: #CBFF2E; text-decoration: none; }

.mb-sheet-backdrop .mb-modal-input {
  width: 100%;
  background: #0B0E14;
  border: 1.5px solid #1E2530;
  border-radius: 13px;
  padding: 14px 16px;
  color: #F5F7FA;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  outline: none;
}
.mb-sheet-backdrop .mb-modal-input:focus { border-color: #CBFF2E; }

.mb-sheet-backdrop .mb-modal-login-btn {
  width: 100%;
  cursor: pointer;
  border: none;
  background: #CBFF2E;
  color: #0B0E14;
  border-radius: 13px;
  padding: 15px;
  margin-top: 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
}
.mb-sheet-backdrop .mb-modal-login-btn:disabled { opacity: 0.6; cursor: default; }

.mb-sheet-backdrop .mb-modal-google-btn,
.mb-sheet-backdrop .mb-google-btn {
  width: 100%;
  cursor: pointer;
  border: 1.5px solid #2A2F3A;
  background: #0B0E14;
  color: #F5F7FA;
  border-radius: 13px;
  padding: 13px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mb-sheet-backdrop .mb-modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.mb-sheet-backdrop .mb-sheet-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.mb-sheet-backdrop .mb-sheet-social .mb-modal-google-btn { flex: 1; }

.mb-sheet-backdrop .mb-login-error.notice { color: #C4CBD6; }
.mb-sheet-backdrop .mb-login-error {
  color: #FF6FB5;
  font-size: 13px;
  margin: 0 0 12px;
  display: none;
}
