/* MOONLIGHT WORLD — Minimal Glass Navigation
   Isolated styles: does not resize the page, player, or content sections. */
.site-header {
  position: sticky;
  z-index: 80;
  overflow: visible;
}

.header-inner {
  position: relative;
}

.explore-trigger {
  margin-left: auto;
  min-width: 126px;
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(211, 193, 255, .23);
  border-radius: 999px;
  color: #f8f5ff;
  background: linear-gradient(135deg, rgba(170, 137, 239, .16), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 26px rgba(4,2,15,.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.explore-trigger:hover,
.explore-trigger[aria-expanded="true"] {
  border-color: rgba(207, 185, 255, .55);
  background: linear-gradient(135deg, rgba(155, 136, 255, .24), rgba(231,166,255,.09));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 28px rgba(155,136,255,.12);
}

.explore-trigger:active { transform: translateY(1px); }
.explore-trigger:focus-visible,
.explore-close:focus-visible,
.explore-link:focus-visible {
  outline: 2px solid #c8bbff;
  outline-offset: 3px;
}

.explore-trigger-icon,
.explore-trigger-chevron {
  display: inline-flex;
  flex: 0 0 auto;
}

.explore-trigger-icon svg { width: 18px; height: 18px; fill: none; stroke: #d9c9ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.explore-trigger-chevron { width: 15px; height: 15px; fill: none; stroke: #cdbbe9; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s ease; }
.explore-trigger[aria-expanded="true"] .explore-trigger-chevron { transform: rotate(180deg); }
.explore-trigger-label { font: 850 10px/1 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: .16em; }

.explore-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 12px);
  right: 0;
  width: min(520px, calc(100vw - 32px));
  padding: 17px;
  border: 1px solid rgba(215, 197, 255, .22);
  border-radius: 23px;
  color: #fbfaff;
  background:
    radial-gradient(circle at 100% 0%, rgba(155,136,255,.15), transparent 45%),
    linear-gradient(145deg, rgba(34,25,57,.97), rgba(13,9,27,.975));
  box-shadow: 0 24px 70px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08), 0 0 36px rgba(151,120,226,.10);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  transform-origin: top right;
  animation: explore-pop-in .2s cubic-bezier(.2,.75,.25,1) both;
}

.explore-popover[hidden] { display: none !important; }

@keyframes explore-pop-in {
  from { opacity: 0; transform: translateY(-7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.explore-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid rgba(220,205,255,.11);
}

.explore-popover-head > div { display: grid; gap: 5px; }
.explore-overline { color: rgba(202,184,239,.68); font: 800 8px/1.2 Inter, sans-serif; letter-spacing: .2em; }
.explore-popover-head strong { color: #fff; font: 900 15px/1 Inter, sans-serif; letter-spacing: .12em; }

.explore-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(226,214,255,.13);
  border-radius: 50%;
  color: #e9defa;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.explore-close:hover { background: rgba(169,139,239,.16); border-color: rgba(218,197,255,.35); }
.explore-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 13px;
}

.explore-link {
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid rgba(225,212,255,.085);
  border-radius: 14px;
  color: #f7f3ff;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.explore-link:hover,
.explore-link[aria-current="location"] {
  transform: translateY(-1px);
  border-color: rgba(190,164,255,.34);
  background: linear-gradient(135deg, rgba(155,136,255,.16), rgba(231,166,255,.055));
  box-shadow: 0 7px 20px rgba(4,2,15,.15), inset 0 1px 0 rgba(255,255,255,.07);
}

.explore-link-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(202,180,255,.14);
  border-radius: 11px;
  color: #d3bfff;
  background: rgba(158,127,224,.09);
}
.explore-link-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.explore-link-copy { min-width: 0; display: grid; gap: 5px; }
.explore-link-copy small { color: rgba(192,174,223,.62); font: 750 8px/1 Inter, sans-serif; letter-spacing: .14em; }
.explore-link-copy b { overflow: hidden; color: #f8f5ff; font: 850 9px/1.25 Inter, sans-serif; letter-spacing: .09em; text-overflow: ellipsis; }
.explore-link--action { width: 100%; font-family: inherit; }
.explore-link--action .explore-link-copy b { color: #d8c3ff; }

.explore-popover-foot {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(220,205,255,.09);
  color: rgba(190,174,220,.54);
  font: 750 7px/1.4 Inter, sans-serif;
  letter-spacing: .18em;
  text-align: center;
}

/* Prevent sticky-header overlap when navigating to a section. */
#top, #game, #collection, #lunar-cycle, #daily-schedule, #tarot {
  scroll-margin-top: 100px;
}

@media (max-width: 760px) {
  .explore-trigger {
    min-width: 42px;
    width: 42px;
    min-height: 42px;
    height: 42px;
    padding: 0;
    gap: 0;
    border-radius: 14px;
  }
  .explore-trigger-label,
  .explore-trigger-chevron { display: none; }
  .explore-trigger-icon svg { width: 20px; height: 20px; }
  .explore-popover {
    top: calc(100% + 9px);
    right: 0;
    width: min(470px, calc(100vw - 28px));
    padding: 13px;
    border-radius: 19px;
  }
  .explore-link { min-height: 60px; gap: 8px; padding: 8px; }
  .explore-link-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  .explore-link-icon svg { width: 16px; height: 16px; }
  .explore-link-copy b { font-size: 8px; letter-spacing: .055em; }
}

@media (max-width: 360px) {
  .explore-popover { right: -2px; width: calc(100vw - 24px); }
  .explore-grid { gap: 6px; }
  .explore-link { min-height: 56px; padding: 7px 6px; gap: 6px; }
  .explore-link-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .explore-link-copy b { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .explore-popover { animation: none; }
  .explore-trigger, .explore-trigger-chevron, .explore-link, .explore-close { transition: none; }
}
