.mp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(244, 252, 255, 0.96));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: box-shadow 200ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1), background 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.mp-header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  z-index: 10;
}

.mp-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #fffef5 0, #ffffff 38%, #f3f8ff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.mp-logo-icon {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #6fd8b5 40%, #1f9b73 100%);
  overflow: hidden;
}

.mp-logo-candy {
  position: absolute;
  inset: 0.4rem;
  border-radius: 40% 60% 55% 45%;
  background: conic-gradient(from 180deg, #ffe066, #ff8066, #ffe0d7, #ffe066);
  box-shadow: 0 5px 14px rgba(148, 92, 48, 0.4);
}

.mp-logo-orbit {
  position: absolute;
  border-radius: 999px;
  opacity: 0.65;
}

.mp-logo-orbit--mint {
  width: 130%;
  height: 30%;
  top: 12%;
  left: -15%;
  background: radial-gradient(circle at 50% 50%, rgba(214, 246, 234, 0.7), rgba(111, 216, 181, 0));
}

.mp-logo-orbit--lemon {
  width: 120%;
  height: 28%;
  bottom: 4%;
  left: -5%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 224, 102, 0.7), rgba(255, 224, 102, 0));
}

.mp-logo-orbit--sky {
  width: 32%;
  height: 32%;
  right: 0;
  top: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(99, 185, 255, 0.9), rgba(99, 185, 255, 0));
}

.mp-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.mp-logo-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

.mp-logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: #163243;
}

.mp-logo-subtitle {
  font-size: 0.7rem;
  color: #64748b;
}

.mp-header-search-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  margin-left: auto;
}

.mp-search-rope {
  display: inline-block;
  width: 3.2rem;
  height: 0.23rem;
  margin-right: 0.25rem;
  border-radius: 999px;
  background-image: repeating-linear-gradient(90deg, #f4a261 0, #f4a261 8px, #e76f51 8px, #e76f51 16px);
  box-shadow: 0 1px 0 rgba(148, 92, 48, 0.4);
}

.mp-search-glass {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #f5f7fb 35%, #d6f6ea 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5a3b;
}

.mp-search-glass i {
  font-size: 0.95rem;
}

.mp-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.35rem 0.7rem 0.35rem 0.45rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  z-index: 10;
}

.mp-nav-toggle-box {
  width: 1.65rem;
  height: 1.3rem;
  position: relative;
}

.mp-nav-toggle-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6fd8b5, #63b9ff, #ff8066);
  transform-origin: center;
  transition: transform 280ms cubic-bezier(0.22, 1.4, 0.36, 1), opacity 160ms ease-out, top 200ms ease-out, bottom 200ms ease-out;
}

.mp-nav-toggle-bar--top {
  top: 0.2rem;
}

.mp-nav-toggle-bar--middle {
  top: 0.54rem;
}

.mp-nav-toggle-bar--bottom {
  bottom: 0.2rem;
}

.mp-nav-toggle-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #475569;
}

.mp-nav {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  height: 100vh;
  background: radial-gradient(circle at top left, #e4fff4 0, #fef6f3 40%, #f5f7fb 100%);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 260ms cubic-bezier(0.22, 1.4, 0.36, 1), opacity 180ms ease-out, visibility 0s linear 260ms;
}

.mp-nav-inner {
  max-width: 1120px;
  margin: 4.5rem auto 2rem;
  padding: 1.5rem 1.5rem 2rem;
  border-radius: 1.5rem 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 248, 255, 0.98));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.75rem;
}

.mp-nav-map-heading {
  margin-bottom: 0.75rem;
}

.mp-nav-map-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #94a3b8;
}

.mp-nav-map-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #0f172a;
}

.mp-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem;
}

.mp-nav-item--secondary {
  opacity: 0.9;
}

.mp-nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
}

.mp-nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 185, 255, 0.85), 0 3px 10px rgba(15, 23, 42, 0.35);
}

.mp-nav-link:hover {
  background: #ffffff;
}

.mp-nav-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  background-size: 160% 160%;
  background-position: 0 50%;
}

.mp-nav-icon--game {
  background-image: linear-gradient(135deg, #6fd8b5, #63b9ff);
}

.mp-nav-icon--levels {
  background-image: linear-gradient(135deg, #ffe066, #ff8066);
}

.mp-nav-icon--nommies {
  background-image: linear-gradient(135deg, #c4f1f9, #63b9ff);
}

.mp-nav-icon--powerups {
  background-image: linear-gradient(135deg, #fed7e2, #ff5b6b);
}

.mp-nav-icon--strategies {
  background-image: linear-gradient(135deg, #e9d8fd, #7c3aed);
}

.mp-nav-icon--collectibles {
  background-image: linear-gradient(135deg, #ffe066, #f97316);
}

.mp-nav-icon--contact {
  background-image: linear-gradient(135deg, #bbf7d0, #16a34a);
}

.mp-nav-featured {
  align-self: center;
}

.mp-nav-featured-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at 0 0, #fff7ed 0, #fffdf5 44%, #dbeafe 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.mp-nav-featured-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #c05621;
}

.mp-nav-featured-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #1f2937;
}

.mp-nav-featured-text {
  font-size: 0.85rem;
  color: #4b5563;
}

.mp-nav-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mp-nav-featured-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 128, 102, 0.1);
  color: #b91c1c;
}

.mp-nav-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mp-nav-orbit {
  position: absolute;
  border-radius: 999px;
  opacity: 0.7;
}

.mp-nav-orbit--candy {
  width: 2.3rem;
  height: 2.3rem;
  right: 7%;
  top: 10%;
  background: conic-gradient(from 200deg, #ffe066, #ff8066, #ffe0d7, #ffe066);
  box-shadow: 0 10px 20px rgba(148, 92, 48, 0.4);
}

.mp-nav-orbit--star {
  width: 1.6rem;
  height: 1.6rem;
  left: 6%;
  bottom: 14%;
  background: radial-gradient(circle at 40% 25%, #ffffff 0, #ffe066 45%, #f97316 100%);
}

.mp-nav-orbit--leaf {
  width: 3.2rem;
  height: 1.4rem;
  right: 16%;
  bottom: 6%;
  background: radial-gradient(circle at 0 50%, #6fd8b5 0, rgba(111, 216, 181, 0));
}

.mp-header--scrolled {
  transform: translateY(-0.15rem);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
}

.mp-header--menu-open .mp-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.mp-header--menu-open .mp-nav-toggle-bar--top {
  top: 0.54rem;
  transform: rotate(42deg);
}

.mp-header--menu-open .mp-nav-toggle-bar--middle {
  opacity: 0;
}

.mp-header--menu-open .mp-nav-toggle-bar--bottom {
  bottom: auto;
  top: 0.54rem;
  transform: rotate(-42deg);
}

@media (min-width: 960px) {
  .mp-nav {
    position: static;
    height: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
  }

  .mp-nav-inner {
    margin: 0;
    padding: 0;
    border-radius: 999px;
    box-shadow: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mp-nav-map-heading {
    display: none;
  }

  .mp-nav-list {
    grid-template-columns: repeat(5, auto);
    gap: 0.25rem;
  }

  .mp-nav-item--secondary {
    display: none;
  }

  .mp-nav-link {
    padding: 0.4rem 0.6rem;
    background: transparent;
    box-shadow: none;
  }

  .mp-nav-link:hover {
    background: rgba(248, 250, 252, 0.9);
  }

  .mp-nav-featured {
    display: block;
  }

  .mp-nav-featured-card {
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
  }

  .mp-nav-orbits {
    display: none;
  }

  .mp-nav-toggle {
    display: none;
  }

  .mp-header-search-btn {
    order: 2;
  }
}

@media (max-width: 959.98px) {
  .mp-header-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .mp-logo-subtitle {
    display: none;
  }

  .mp-header-search-btn {
    margin-left: 0;
  }
}

@media (max-width: 639.98px) {
  .mp-nav-inner {
    margin: 4.2rem 1rem 1.5rem;
    padding: 1.1rem 1.1rem 1.4rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-nav-featured {
    order: -1;
  }

  .mp-logo-title {
    font-size: 0.98rem;
  }

  .mp-logo-kicker {
    font-size: 0.6rem;
  }
}