/* Shared navigation across the home, Hunts, pool and moderator pages. */
.mk-header {
  position: relative;
  z-index: 40;
  background: #06020e;
  border-bottom: 1px solid #352047;
  color: #fff;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.mk-header * {
  box-sizing: border-box;
}
.mk-header .hidden {
  /* biome-ignore lint/complexity/noImportantStyles: hiding utility, must win over any component display rule */
  display: none !important;
}
.mk-header-row {
  max-width: 1320px;
  margin: auto;
  padding: 18px 28px;
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.mk-brand {
  display: block;
  flex-shrink: 0;
}
.mk-brand img {
  display: block;
  width: 226px;
  height: auto;
}
.mk-header nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}
.mk-header nav a {
  color: #d8c6ea;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.mk-header nav a:hover {
  color: #fff;
}
.mk-wallet {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mk-header button {
  font: inherit;
  cursor: pointer;
}
.mk-wallet button {
  border: 1px solid #9551db;
  border-radius: 14px;
  padding: 12px 18px;
  background: #28123e;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: none;
  white-space: nowrap;
}
.mk-wallet button:hover {
  background: #44205e;
}
.mk-wallet .wallet-address {
  font-size: 12px;
  color: #b5a0cc;
}
.mk-menu {
  display: none;
  border: 1px solid #6b408c;
  border-radius: 10px;
  background: transparent;
  color: white;
  padding: 8px 12px;
  line-height: 1;
}
.mk-moderator-tools {
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 28px 12px;
  flex-wrap: wrap;
}
.mk-moderator-tools:empty {
  display: none;
}
.mk-header .header-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  min-height: 42px;
  min-width: 0;
  background: linear-gradient(135deg, #8e2be0, #552083);
  border: 1px solid #b45af1;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}
.mk-header .mode-toggle {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.mk-wallet-status:empty {
  display: none;
}
.mk-wallet-status {
  padding: 0 24px 12px;
  margin: 0;
  color: #f8c38b;
}
@media (max-width: 760px) {
  .mk-header-row {
    padding: 14px 16px;
    min-height: 76px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .mk-brand {
    margin-right: auto;
  }
  .mk-brand img {
    width: 163px;
  }
  .mk-menu {
    display: block;
    order: 3;
  }
  .mk-wallet {
    order: 2;
  }
  .mk-wallet button {
    font-size: 12px;
    padding: 11px 12px;
    border-radius: 11px;
  }
  .mk-wallet .wallet-address {
    display: none;
  }
  .mk-header nav {
    order: 4;
    display: none;
    width: 100%;
    margin: 0;
    padding: 14px 0 4px;
    gap: 22px;
    flex-wrap: wrap;
  }
  .mk-header nav a {
    font-size: 14px;
  }
  .mk-moderator-tools {
    padding: 0 16px 12px;
    gap: 12px;
  }
}

.mk-header .header-create.hidden::before {
  content: none;
}
@media (max-width: 760px) {
  .mk-moderator-tools:not(:has(.mode-toggle:not(.hidden))):not(:has(.header-create:not(.hidden))) {
    display: none;
  }
}

/* Mobile navigation drawer: native modal focus management and an inert backdrop. */
.mk-drawer-home {
  display: none;
}
html.mk-menu-open,
html.mk-menu-open body {
  overflow: hidden;
}
.mk-header .mk-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(86vw, 420px);
  height: 100dvh;
  max-height: none;
  max-width: none;
  padding: 0;
  border: 0;
  border-left: 1px solid #714394;
  border-radius: 0;
  background: #10071c;
  color: #fff;
  box-shadow: -24px 0 70px #0006;
  overflow: hidden;
  font-family: inherit;
}
.mk-drawer:not([open]) {
  display: none;
}
.mk-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: mkDrawerEnter 0.22s ease-out;
}
.mk-drawer::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}
.mk-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 24px;
  padding: 24px 0;
  border-bottom: 2px solid #b22bfb;
  flex-shrink: 0;
}
#mk-menu-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #cab1e0;
}
.mk-header .mk-drawer-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #8955ae;
  border-radius: 10px;
  background: transparent;
  color: white;
  font-size: 30px;
  line-height: 1;
  box-shadow: none;
}
.mk-drawer-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 24px;
  flex: 1;
}
.mk-header .mk-drawer nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
}
.mk-header .mk-drawer nav a {
  display: block;
  white-space: normal;
  padding: 23px 0;
  border-bottom: 1px dashed #503266;
  font-size: clamp(23px, 6.8vw, 30px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
}
.mk-header .mk-drawer nav a:hover {
  color: #ffbe00;
}
.mk-header .mk-drawer .mk-moderator-tools {
  padding: 24px 0;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}
.mk-header .mk-drawer .header-create {
  width: 100%;
  min-height: 46px;
}
.mk-drawer-footer {
  margin: 0 24px;
  padding: 22px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #503266;
  flex-shrink: 0;
}
.mk-drawer-footer > span {
  font-weight: 900;
  font-size: 21px;
  color: #bd45ff;
}
.mk-drawer-footer p {
  font-size: 12px;
  color: #ba9ecc;
  margin: 5px 0 0;
  line-height: 1.5;
}
.mk-header :is(button, a):focus-visible {
  outline: 2px solid #ffbe00;
  outline-offset: 4px;
}
@keyframes mkDrawerEnter {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (max-width: 760px) {
  .mk-menu {
    width: 40px;
    height: 40px;
    padding: 0;
  }
  .mk-header-row {
    flex-wrap: nowrap;
  }
  .mk-header-row > nav {
    display: none;
  }
}
@media (max-width: 360px) {
  .mk-header-row {
    padding-inline: 12px;
    gap: 8px;
  }
  .mk-brand img {
    width: 132px;
  }
  .mk-wallet button {
    padding: 10px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mk-drawer[open] {
    animation: none;
  }
}

.mk-header .mk-social-x {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid #8955ae;
  border-radius: 10px;
  color: #fff;
  background: #1b0d2b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.mk-social-x svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mk-header .mk-social-x:hover {
  background: #2c1246;
  border-color: #bc68f1;
}
.mk-social-x span {
  overflow-wrap: anywhere;
}

/* Keep navigation centered independently of brand and wallet widths. */
@media (min-width: 761px) {
  .mk-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
  }
  .mk-header-row > nav {
    margin: 0;
    justify-content: center;
  }
  .mk-wallet {
    justify-self: end;
  }
  .mk-brand {
    justify-self: start;
  }
}
@media (min-width: 761px) and (max-width: 980px) {
  .mk-brand img {
    width: 168px;
  }
  .mk-header nav {
    gap: 16px;
  }
  .mk-header nav a {
    font-size: 13px;
  }
  .mk-wallet button {
    padding: 11px 12px;
    font-size: 13px;
  }
}
.mk-wallet {
  position: relative;
}
.mk-wallet #wallet-address {
  /* biome-ignore lint/complexity/noImportantStyles: hiding utility, must win over any component display rule */
  display: none !important;
}
.mk-wallet .mk-account-panel[hidden],
.mk-wallet .mk-account-panel [hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: hiding utility, must win over any component display rule */
  display: none !important;
}
.mk-account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  width: 210px;
  padding: 6px;
  background: #160a24;
  border: 1px solid #8955ae;
  border-radius: 14px;
  box-shadow: 0 16px 40px #0008;
}
.mk-wallet .mk-account-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: transparent;
  font-size: 14px;
}
.mk-wallet .mk-account-panel button:hover {
  background: #321552;
}
.wallet-picker .wallet-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.wallet-choice img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.mk-moderator-tools:not(:has(> :not(.hidden))) {
  display: none;
}

.mk-header {
  font-family: MimiKrewNav, Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* Reserve the logo and scrollbar space before scripts and images finish loading. */
html {
  scrollbar-gutter: stable;
}
.mk-brand img {
  aspect-ratio: 3147.61 / 1500;
}

.mk-account-panel a {
  display: block;
  color: #d5bfea;
  padding: 14px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}
.mk-account-panel a:hover {
  background: #321552;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .mk-header-row {
    gap: 12px;
  }
  .mk-brand img {
    width: 150px;
  }
  .mk-header nav {
    gap: 14px;
  }
  .mk-header nav a {
    font-size: 13px;
  }
  .mk-wallet button {
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* Fixed header: full size at the top of the page, compact once the page scrolls (site-header.mjs sets .is-compact). */
.mk-header {
  position: sticky;
  top: 0;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.mk-header-row {
  transition:
    min-height 0.25s ease,
    padding 0.25s ease;
}
.mk-brand img {
  width: calc(var(--mk-logo-width, 226px) * var(--mk-logo-scale, 1));
  transition: width 0.25s ease;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .mk-header {
    --mk-logo-width: 150px;
  }
}
@media (max-width: 760px) {
  .mk-header {
    --mk-logo-width: 163px;
  }
}
@media (max-width: 360px) {
  .mk-header {
    --mk-logo-width: 132px;
  }
}
.mk-header.is-compact {
  --mk-logo-scale: 0.72;
  background: rgba(6, 2, 14, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.mk-header.is-compact .mk-header-row {
  min-height: 64px;
  padding-block: 10px;
}
.mk-header.is-compact .mk-moderator-tools {
  padding-bottom: 8px;
}
@media (max-width: 760px) {
  .mk-header.is-compact .mk-header-row {
    min-height: 56px;
    padding-block: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mk-header,
  .mk-header-row,
  .mk-brand img {
    transition: none;
  }
}
/* Short laptop screens: a slightly smaller logo at the top leaves room for the page's first screen. */
@media (min-width: 761px) and (max-height: 760px) {
  .mk-header {
    --mk-logo-width: 180px;
  }
}
