/* ==========================================================================
   Static Cheats — top navigation
   ========================================================================== */

/* Mydrid draws its starfield + blue glow as fixed body::before/::after overlays that
   paint ABOVE the header (they tint the nav light blue). Push them under all content. */
body { isolation: isolate; }
body::before, body::after { z-index: -1 !important; }

header.sc-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
}

.sc-nav {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.sc-nav::before {
  /* thin signature line on top */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--sc-accent-rgb), 0.9) 35%, rgba(var(--sc-accent-rgb), 0.9) 65%, transparent 100%);
  opacity: 0.85;
}
/* Mydrid custom.css has `.component:not(.hero):not(.mydrid-hero) { background: transparent !important }`
   (specificity 0,3,0). These selectors out-rank it so the nav gets a real, solid background. */
header.sc-header nav.sc-nav.component,
header.sc-header nav.sc-nav {
  /* sampled from the reference bar: deep navy with a blue bloom on the left (~10% width) */
  background: linear-gradient(90deg, #031942 0%, #042358 10%, #041e4b 20%, #031334 30%, #020d23 40%, #000e28 50%, #01112b 100%) !important;
}
header.sc-header nav.sc-nav.component.is-scrolled,
header.sc-header nav.sc-nav.is-scrolled {
  background: linear-gradient(90deg, #031942 0%, #042358 10%, #041e4b 20%, #031334 30%, #020d23 40%, #000e28 50%, #01112b 100%) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.sc-nav__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  width: min(calc(100% - 2.5rem), 1360px);
  min-height: 86px;
  margin: 0 auto;
  padding: 0.85rem 0;
}

/* Brand */
.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
  color: var(--sc-ink, #f4f8ff) !important;
  text-decoration: none !important;
}
.sc-brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px 5px 14px 5px;
  background: linear-gradient(160deg, rgba(var(--sc-accent-rgb), 0.22), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(var(--sc-accent-rgb), 0.35);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(var(--sc-accent-rgb), 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sc-brand__mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.sc-brand:hover .sc-brand__mark {
  transform: translateY(-1px) rotate(-3deg);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(var(--sc-accent-rgb), 0.22);
}
.sc-brand__word {
  display: grid;
  gap: 0.28rem;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sc-brand__word b { font-weight: 800; }
.sc-brand__tag {
  display: block;
  color: rgba(244, 248, 255, 0.45);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sc-brand__word em {
  font-style: normal;
  color: var(--sc-accent, #4da3ff);
}

/* Links */
.sc-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  justify-self: center;
}
.sc-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.25rem;
  white-space: nowrap;
  border-radius: 10px;
  color: rgba(244, 248, 255, 0.72) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-nav__links { position: relative; }
.sc-nav__link { position: relative; z-index: 1; }
.sc-nav__links > li:first-child .sc-nav__link {
  min-width: 6.7rem;
  box-sizing: border-box;
}
.sc-nav__indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  width: 0;
  border-radius: 10px;
  background: rgba(var(--sc-accent-rgb), 0.16);
  box-shadow: inset 0 0 0 1px rgba(var(--sc-accent-rgb), 0.28);
  opacity: 0;
  pointer-events: none;
  will-change: transform, width;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease;
}
.sc-nav__indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sc-accent);
  box-shadow: 0 0 10px rgba(var(--sc-accent-rgb), 0.9);
  transform: translateX(-50%);
}
.sc-nav__links:not(.is-ready) .sc-nav__indicator { transition: none; }
.sc-nav__links.is-tracking .sc-nav__indicator {
  transition: transform 0.06s linear, width 0.06s linear;
}
.sc-nav__link:hover,
.sc-nav__link:focus-visible {
  color: #fff !important;
}
.sc-nav__link.is-active {
  color: #fff !important;
}
.sc-nav__drawer-link.is-active { border-color: rgba(var(--sc-accent-rgb), 0.5); background: rgba(var(--sc-accent-rgb), 0.14); }

@view-transition { navigation: none; }
header.sc-header { view-transition-name: none; }

.sc-nav__link--cta {
  color: #fff !important;
  background: rgba(var(--sc-accent-rgb), 0.22);
}

/* Tools */
.sc-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
}
.sc-nav .sc-lang,
.sc-nav .mydrid-lang-pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  animation: none;
}
.sc-nav .mydrid-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(244, 248, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.sc-nav .mydrid-lang-pill .mydrid-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.85;
}
.sc-nav .mydrid-lang-pill:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.sc-nav .mydrid-lang-pill.is-active {
  color: #fff;
  background: rgba(var(--sc-accent-rgb), 0.24);
  box-shadow: inset 0 0 0 1px rgba(var(--sc-accent-rgb), 0.4);
}

.sc-nav__support {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem 0 1rem;
  border: 1px solid rgba(var(--sc-accent-rgb), 0.35);
  border-radius: 11px;
  background: rgba(var(--sc-accent-rgb), 0.12);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.sc-nav__support i { color: var(--sc-accent); font-size: 0.95rem; }
.sc-nav__support:hover { transform: translateY(-1px); border-color: rgba(var(--sc-accent-rgb), 0.7); background: rgba(var(--sc-accent-rgb), 0.2); }
.sc-nav__online {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border: 2px solid #050a18;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
}

.sc-nav__discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(var(--sc-accent-rgb), 1), rgba(var(--sc-accent-rgb), 0.82));
  color: #041022 !important;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(var(--sc-accent-rgb), 0.24), inset 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sc-nav__discord:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(var(--sc-accent-rgb), 0.34), inset 0 1px rgba(255, 255, 255, 0.35); }
.sc-nav__discord i { font-size: 1rem; }

.sc-nav__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 248, 255, 0.85) !important;
  text-decoration: none !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.sc-nav__icon:hover { border-color: rgba(var(--sc-accent-rgb), 0.5); background: rgba(var(--sc-accent-rgb), 0.12); }
.sc-nav__count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--sc-accent);
  color: #041022;
  font-size: 0.62rem;
  font-weight: 800;
}

.sc-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}
.sc-nav__burger span { display: block; width: 16px; height: 2px; margin: 0 auto; border-radius: 2px; background: #fff; }

/* Mobile drawer */
.sc-nav__drawer {
  display: grid;
  gap: 0.25rem;
  width: min(calc(100% - 1.5rem), 1440px);
  margin: 0 auto;
  padding: 0.6rem 0.6rem 0.9rem;
}
.sc-nav__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}
.sc-nav__drawer-link i { color: var(--sc-accent); }
.sc-nav__drawer-link--accent { border-color: rgba(var(--sc-accent-rgb), 0.4); background: rgba(var(--sc-accent-rgb), 0.12); }

@media (max-width: 1199.98px) {
  .sc-nav__link { padding: 0 0.7rem; font-size: 0.78rem; }
  .sc-nav__inner { gap: 1rem; }
}
@media (max-width: 991.98px) {
  .sc-nav__inner { grid-template-columns: auto auto; min-height: 72px; }
  .sc-brand__tag { display: none; }
  .sc-nav__links { display: none; }
  .sc-nav__burger { display: flex; }
  .sc-nav__discord span, .sc-nav__support span:not(.sc-nav__online) { display: none; }
  .sc-nav__discord, .sc-nav__support { padding: 0 0.8rem; }
}
@media (min-width: 992px) {
  .sc-nav__drawer { display: none !important; }
}
@media (max-width: 575.98px) {
  .sc-nav__inner { width: calc(100% - 1.25rem); }
  .sc-brand__word { display: none; }
  .sc-nav .mydrid-lang-pill span { display: none; }
  .sc-nav .mydrid-lang-pill { padding: 0 0.45rem; }
}

/* ---- "Soon" toast (bottom pill) ---- */
.sc-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem 0.7rem 0.95rem;
  border-radius: 999px;
  color: #eef4ff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(10, 24, 58, 0.96), rgba(5, 13, 34, 0.96));
  border: 1px solid rgba(var(--sc-accent-rgb, 47, 128, 255), 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 18px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sc-toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.sc-toast__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgb(var(--sc-accent-rgb, 47, 128, 255));
  box-shadow: 0 0 0 4px rgba(var(--sc-accent-rgb, 47, 128, 255), 0.18), 0 0 14px rgba(var(--sc-accent-rgb, 47, 128, 255), 0.7);
  animation: sc-toast-pulse 1.4s ease-in-out infinite;
}
@keyframes sc-toast-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* platform badge injected after the footer by SellAuth */
.sa-powered-by { display: none !important; }