/* Mobile recovery patch: the exported static page only contains desktop markup,
   and many key blocks are hidden behind `hidden md:block` below 1024px. */
@media (max-width: 1023px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: #eaeaea;
    }

    body {
        min-height: 100dvh;
    }

    /* Unhide desktop-only exported blocks so mobile no longer renders blank. */
    .hidden.md\:block {
        display: block !important;
    }

    .hidden.md\:flex {
        display: flex !important;
    }

    /* Make the fixed desktop header usable on phones. */
    header.fixed {
        position: sticky !important;
        top: 0;
        z-index: 9999 !important;
        width: 100%;
    }

    header > .bg-nextToGoBg {
        display: none !important;
    }

    header nav .mx-auto {
        height: 56px !important;
        padding: 0 12px !important;
        align-items: center !important;
        gap: 10px !important;
    }

    header nav .flex.h-full.items-center {
        min-width: 0;
        flex: 1 1 auto;
    }

    header nav img {
        max-width: 138px !important;
        max-height: 36px !important;
        width: auto !important;
        height: auto !important;
    }

    header nav [role="search"] {
        display: none !important;
    }

    header nav .lg\:flex {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 142px;
        gap: 8px;
    }

    header nav [data-testid="sign-in"],
    header nav [data-testid="join-now"] {
        height: 38px !important;
        min-width: 66px;
        padding: 0 12px !important;
        border-radius: 8px;
        line-height: 1 !important;
    }

    /* Use a single-column mobile page instead of desktop sidebars. */
    main.jsx-3533191581 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: calc(100dvh - 56px);
        padding-top: 0 !important;
        overflow: visible !important;
    }

    main.jsx-3533191581 > aside,
    main.jsx-3533191581 > .hidden.lg\:block,
    main.jsx-3533191581 > .jsx-3533191581.hidden.lg\:block {
        display: none !important;
    }

    #mainDynamicContent {
        width: 100% !important;
        height: auto !important;
        min-height: calc(100dvh - 56px);
        overflow: visible !important;
        padding-bottom: 76px;
    }

    #mainDynamicContent > .min-h-\[80vh\] {
        min-height: auto !important;
    }

    /* The captured carousel has a desktop translate value that can push banners
       off-screen on narrow viewports. Reset it for mobile. */
    [data-testid="banner-carousel"] {
        margin: 12px;
        overflow: hidden;
        border-radius: 12px;
        background: #fff;
    }

    [data-testid="banner-carousel"] .flex[style*="translate3d"] {
        transform: translate3d(0, 0, 0) !important;
    }

    [data-testid="banner-carousel"] img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    [data-testid="banner-carousel"] > button {
        display: none !important;
    }

    /* Keep tab/category rows scrollable instead of overflowing the viewport. */
    #mainDynamicContent .flex.items-center.justify-center.gap-sm,
    #mainDynamicContent .flex.items-center.gap-sm {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #mainDynamicContent .flex.items-center.justify-center.gap-sm::-webkit-scrollbar,
    #mainDynamicContent .flex.items-center.gap-sm::-webkit-scrollbar {
        display: none;
    }

    /* Card spacing and horizontal overflow fixes for narrow screens. */
    #mainDynamicContent .m-md {
        margin: 12px !important;
    }

    #mainDynamicContent .px-md {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    #mainDynamicContent .w-\[50px\] {
        flex-shrink: 0;
    }

    #mainDynamicContent [data-testid="race-with-participants"] {
        min-width: 0;
    }

    #mainDynamicContent [data-testid="race-with-participants"] .ml-xs {
        min-width: 0;
        overflow: hidden;
    }

    #mainDynamicContent [data-testid="race-with-participants"] .ml-xs > div {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Prevent floating widgets from covering the content on phones. */
    main.jsx-3533191581 > .fixed.bottom-0 {
        left: 12px !important;
        right: auto !important;
        z-index: 1000 !important;
    }
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #e9e9e9;
  color: #111;
}

.bb-button {
  border: 0;
  border-radius: 5px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.bb-button:hover {
  transform: translateY(-1px);
}

.bb-button-primary {
  background: #ffe100;
  color: #111;
}

.bb-button-primary:hover {
  background: #ffd000;
}

.bb-button-secondary {
  background: #0b7f3a;
  color: #fff;
}

.bb-button-secondary:hover {
  background: #096c32;
}

.bb-button-light {
  background: #f1f1f1;
  color: #111;
}

.bb-button-light:hover {
  background: #e2e2e2;
}

.bb-age-shield {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 27, 32, 0.72);
  backdrop-filter: blur(4px);
}

.bb-age-shield.bb-age-shield-active {
  display: flex;
}

.bb-age-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 8px;
  padding: 34px 30px 28px;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  border-top: 8px solid #0b7f3a;
}

.bb-age-badge {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border: 3px solid #e4002b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 22px;
  font-weight: 800;
  background: #fff;
}

.bb-age-title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  color: #111;
}

.bb-age-text {
  margin: 0 auto 24px;
  max-width: 330px;
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}

.bb-age-actions {
  display: grid;
  gap: 10px;
}

.bb-age-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: #777;
}

.bb-cookie-bar {
  position: fixed;
  left: 220px;
  right: 300px;
  bottom: 20px;
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  border-left: 6px solid #0b7f3a;
}

.bb-cookie-bar.bb-cookie-bar-active {
  display: flex;
}

.bb-cookie-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.bb-cookie-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.bb-cookie-info {
  min-width: 0;
}

.bb-cookie-title {
  margin: 0 0 4px;
  font-size: 17px;
  color: #111;
}

.bb-cookie-text {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}

.bb-cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.bb-preferences-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 27, 32, 0.58);
  backdrop-filter: blur(3px);
}

.bb-preferences-backdrop.bb-preferences-backdrop-active {
  display: flex;
}

.bb-preferences-panel {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.bb-preferences-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: #0b7f3a;
  color: #fff;
}

.bb-preferences-title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
}

.bb-preferences-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.bb-preferences-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.bb-preferences-list {
  padding: 8px 24px 0;
}

.bb-preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #ececec;
}

.bb-preference-item strong {
  display: block;
  margin: 0 0 5px;
  font-size: 15px;
  color: #111;
}

.bb-preference-item span {
  display: block;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.bb-preference-item input {
  width: 21px;
  height: 21px;
  accent-color: #0b7f3a;
  flex: 0 0 auto;
}

.bb-preferences-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 24px 24px;
}

@media (max-width: 1100px) {
  .bb-cookie-bar {
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 700px) {
  .bb-cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bb-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bb-preferences-actions {
    flex-direction: column;
  }

  .bb-button {
    width: 100%;
  }
}