/* Development Roadmap world presentation.
   Keeps the dashboard/navigation unchanged while allowing the equipped world
   to become the visual surface of the Roadmap itself. */

section.glass-card:has(> [data-roadmap-world]) {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  overflow: visible !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Roadmap controls are an overlay, never a layout row. */
[data-roadmap-header] {
  position: absolute !important;
  z-index: 40 !important;
  top: 14px !important;
  left: max(1.5rem, env(safe-area-inset-left)) !important;
  right: max(1.5rem, env(safe-area-inset-right)) !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center;
  pointer-events: none;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-roadmap-header]::before,
[data-roadmap-header]::after {
  content: none !important;
  display: none !important;
}

[data-roadmap-header] a {
  pointer-events: auto;
  min-height: 38px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 14px;
  border-color: rgba(83, 255, 99, 0.34);
  background: rgba(8, 20, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* On phones, lift only Shop into the Dashboard heading row and vertically
   center it with the Dashboard title. */
@media (max-width: 767px) {
  [data-roadmap-header] a {
    position: absolute !important;
    top: -69px !important;
    right: 0 !important;
  }
}

[data-roadmap-header] .label-track {
  color: rgba(248, 250, 252, 0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

/* The world starts at the top edge of the Roadmap section so the overlay
   always sits on the wallpaper rather than on the page background. */
section.glass-card:has(> [data-roadmap-world]) > [data-roadmap-world],
[data-roadmap-world] {
  height: 176px;
  width: 100%;
  margin-top: 0 !important;
  overflow: hidden !important;
  border-radius: 0;
  background-color: #0b0e0d;
}

[data-roadmap-world]::after {
  content: none !important;
}

/* Keep the progress controls exactly as the functional bottom of the Roadmap,
   but give them the original dashboard gutters. */
section.glass-card:has(> [data-roadmap-world]) > .dr-bar {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-top: 12px;
}

section.glass-card:has(> [data-roadmap-world]) > .dr-bar + div {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  padding-bottom: 12px;
}

section.glass-card:has(> [data-roadmap-world]) > .dr-bar + div + p {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  padding-bottom: 12px;
}

@media (min-width: 768px) {
  section.glass-card:has(> [data-roadmap-world]) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 18px;
  }

  [data-roadmap-world] {
    height: 190px;
  }
}
