/* SportChallenges global shell: modern header and quick navigation footer. */
:root {
  --sc-shell-bg: #0b0c0e;
  --sc-shell-panel: #141518;
  --sc-shell-border: rgba(255, 255, 255, 0.12);
  --sc-shell-text: #f5f5f2;
  --sc-shell-muted: #a8a8a5;
  --sc-shell-orange: #ff6815;
  --sc-shell-orange-soft: rgba(255, 104, 21, 0.14);
}

.sc-header.navbar {
  min-height: 64px;
  padding: 0;
  border-bottom: 1px solid var(--sc-shell-border);
  background:
    linear-gradient(90deg, rgba(255, 104, 21, 0.055), transparent 24rem),
    rgba(11, 12, 14, 0.97) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.sc-header .sc-header-inner {
  min-height: 64px;
  gap: 14px;
  padding-right: clamp(14px, 2.4vw, 34px);
  padding-left: clamp(14px, 2.4vw, 34px);
}

.sc-header .sc-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #fff;
  text-decoration: none;
}

.sc-brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: linear-gradient(145deg, #ff7c2f, #f4510c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 104, 21, 0.22), inset 0 1px rgba(255, 255, 255, 0.26);
  font-size: 17px;
}

.sc-brand-name {
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sc-brand-name span {
  color: var(--sc-shell-orange);
}

.sc-header .navbar-collapse {
  min-width: 0;
}

.sc-header .navbar-nav {
  align-items: center;
  gap: 2px;
  width: 100%;
}

.sc-header .nav-link {
  position: relative;
  padding: 22px 9px 20px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.sc-header .nav-link::after {
  border-top-color: currentColor;
}

.sc-header .nav-item:not(.dropdown) > .nav-link::before,
.sc-header .nav-item.dropdown > .nav-link::before {
  position: absolute;
  right: 9px;
  bottom: 12px;
  left: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--sc-shell-orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 150ms ease, transform 150ms ease;
}

.sc-header .nav-link:hover,
.sc-header .nav-link:focus,
.sc-header .nav-link.active,
.sc-header .nav-link[aria-current="page"],
.sc-header .dropdown.show > .nav-link {
  color: #fff !important;
  background: var(--sc-shell-orange-soft);
}

.sc-header .nav-link:hover::before,
.sc-header .nav-link:focus::before,
.sc-header .nav-link.active::before,
.sc-header .nav-link[aria-current="page"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.sc-header .dropdown-menu {
  overflow: hidden;
  margin-top: 0;
  padding: 7px;
  border: 1px solid var(--sc-shell-border);
  border-radius: 10px;
  background: #17181b;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.45);
}

.sc-header .dropdown-header {
  color: var(--sc-shell-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sc-header .dropdown-item {
  padding: 9px 10px;
  border-radius: 6px;
  color: #e9e9e7;
  font-size: 13px;
}

.sc-header .dropdown-item:hover,
.sc-header .dropdown-item:focus,
.sc-header .dropdown-item.active {
  background: var(--sc-shell-orange);
  color: #160b05;
}

.sc-header .dropdown-divider {
  border-color: var(--sc-shell-border);
}

.sc-header .navbar-toggler {
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid var(--sc-shell-border);
  border-radius: 8px;
  background: #1d1e21;
  box-shadow: none;
  animation: none;
}

.sc-header .navbar-toggler:focus {
  border-color: var(--sc-shell-orange);
  box-shadow: 0 0 0 3px rgba(255, 104, 21, 0.18);
}

.sc-bottom-nav.footer {
  box-sizing: border-box;
  height: 66px;
  padding: 0;
  border-top: 1px solid var(--sc-shell-border);
  background:
    linear-gradient(90deg, rgba(255, 104, 21, 0.06), transparent 28%, transparent 72%, rgba(255, 104, 21, 0.04)),
    rgba(12, 13, 15, 0.97);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
}

.sc-bottom-nav .container,
.sc-bottom-nav .footer-icons {
  height: 100%;
}

.sc-bottom-nav .footer-icons {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(2px, 1.4vw, 16px);
}

.sc-bottom-nav .popover-container {
  display: flex;
  min-width: 58px;
  align-items: stretch;
}

.sc-bottom-nav .popover-container > a {
  position: relative;
  display: flex;
  min-width: 58px;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 9px;
  color: var(--sc-shell-muted);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.sc-bottom-nav .popover-container > a::after {
  color: inherit;
  content: attr(aria-label);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sc-bottom-nav .popover-container > a::before {
  position: absolute;
  top: 0;
  right: 10px;
  left: 10px;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: var(--sc-shell-orange);
  content: "";
  opacity: 0;
}

.sc-bottom-nav .footer-icon {
  color: inherit;
  font-size: 18px;
  transition: transform 150ms ease;
}

.sc-bottom-nav .popover-container > a:hover,
.sc-bottom-nav .popover-container > a:focus,
.sc-bottom-nav .popover-container > a:has(.footer-icon.active) {
  background: var(--sc-shell-orange-soft);
  color: #fff;
}

.sc-bottom-nav .popover-container > a:has(.footer-icon.active)::before {
  opacity: 1;
}

.sc-bottom-nav .popover-container > a:hover .footer-icon {
  transform: translateY(-2px);
}

.sc-bottom-nav .footer-icon.active {
  color: var(--sc-shell-orange);
  text-shadow: 0 0 18px rgba(255, 104, 21, 0.42);
}

.sc-bottom-nav .popover-content {
  display: none !important;
}

.privacy-settings-footer {
  padding-bottom: 76px;
  background: #0d0e10;
  color: var(--sc-shell-muted);
}

.privacy-settings-footer a {
  color: var(--sc-shell-muted);
}

@media (max-width: 1199.98px) {
  .sc-header .nav-link {
    padding-right: 7px !important;
    padding-left: 7px !important;
    font-size: 12px;
  }

  .sc-bottom-nav .popover-container > a::after {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .sc-header.navbar,
  .sc-header .sc-header-inner {
    min-height: 58px;
  }

  .sc-header .sc-brand-name {
    font-size: 18px;
  }

  .sc-header .sc-brand-mark {
    width: 32px;
    height: 32px;
  }

  .sc-header .navbar-collapse {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 10px 14px 16px;
    border-bottom: 1px solid var(--sc-shell-border);
    background: rgba(13, 14, 16, 0.985);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.46);
  }

  .sc-header .navbar-nav {
    align-items: stretch;
    gap: 3px;
  }

  .sc-header .nav-link {
    padding: 12px 13px !important;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
  }

  .sc-header .nav-link::before {
    top: 8px;
    right: auto !important;
    bottom: 8px !important;
    left: 0 !important;
    width: 3px;
    height: auto !important;
  }

  .sc-header .dropdown-menu {
    margin: 3px 0 7px 12px;
    box-shadow: none;
  }

}

@media (max-width: 767.98px) {
  .sc-bottom-nav.footer {
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .sc-bottom-nav .container {
    max-width: none;
    padding: 0;
  }

  .sc-bottom-nav .footer-icons {
    justify-content: space-around;
    gap: 0;
  }

  .sc-bottom-nav .popover-container {
    min-width: 0;
    flex: 1 1 0;
  }

  .sc-bottom-nav .popover-container > a {
    min-width: 0;
    width: 100%;
    padding: 5px 2px;
  }

  .sc-bottom-nav .footer-icon {
    font-size: 20px;
  }

  .privacy-settings-footer {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .sc-header .sc-brand-name {
    font-size: 16px;
  }

  .sc-header .sc-brand-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-header .nav-link,
  .sc-bottom-nav .popover-container > a,
  .sc-bottom-nav .footer-icon {
    transition: none;
  }
}

@media print {
  .sc-header,
  .sc-bottom-nav,
  .privacy-settings-footer {
    display: none !important;
  }
}
