/* Shell chrome for design-test-v2 pure template worlds */

/* Never show V1 test banner on V2 */
html[data-design-test-v2="1"] .design-test-banner {
  display: none !important;
}

html[data-design-test-v2="1"] .design-test-v2-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  font: 700 13px/1.35 Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(8, 8, 10, 0.95);
  color: #eef3ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

html[data-design-test-v2="1"] .design-test-v2-banner a {
  color: #9fd4ff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

html[data-design-test-v2="1"] .design-test-v2-banner a:hover {
  color: #fff;
  text-decoration: underline;
}

html[data-design-test-v2="1"] body {
  padding-top: 36px;
}

html.dt-v2-pure-templates[data-design-test-v2="1"] .mv4-global-header {
  display: none !important;
}

html.dt-v2-pure-templates[data-design-test-v2="1"] .mv4-bar {
  position: sticky;
  top: 36px;
  z-index: 90000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

html.dt-v2-pure-templates[data-design-test-v2="1"] .mv4-worlds {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

html.dt-v2-pure-templates[data-design-test-v2="1"] .mv4-worlds a {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  opacity: 0.65;
  padding: 6px 12px;
  /* Default: Multiversum-Pill wie Willkommensseite */
  border-radius: 999px;
}

html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="general"] .mv4-worlds a {
  border-radius: 999px;
}
html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="general"] .mv4-worlds a.is-active {
  background: #ff59b2;
  opacity: 1;
}

html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="nexora"] .mv4-worlds a {
  border-radius: 2px;
}
html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="nexora"] .mv4-worlds a.is-active {
  background: #8ec5ff;
  color: #050810 !important;
  opacity: 1;
}

html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="vertex"] .mv4-bar {
  background: #fff;
  color: #111;
  border-bottom-color: rgba(17, 17, 17, 0.1);
}
html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="vertex"] .mv4-worlds a {
  color: #111;
  border-radius: 0;
}
html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="vertex"] .mv4-worlds a.is-active {
  background: #050505;
  color: #fff !important;
  opacity: 1;
}

html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="freiraum"] .mv4-worlds a {
  border-radius: 999px 4px 999px 4px;
}
html.dt-v2-pure-templates[data-design-test-v2="1"][data-master-world="freiraum"] .mv4-worlds a.is-active {
  background: #ffc66f;
  color: #100b16 !important;
  opacity: 1;
}

html.dt-v2-pure-templates[data-design-test-v2="1"].desktop-stage-active .desktop-stage .mv4-frame.is-active {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain;
  pointer-events: auto !important;
  touch-action: pan-y !important;
}

html.dt-v2-pure-templates[data-design-test-v2="1"]:not(.desktop-stage-active) .mv4-frame.is-active {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  pointer-events: auto !important;
}

html.dt-v2-pure-templates[data-design-test-v2="1"] .dt-template-nav,
html.dt-v2-pure-templates[data-design-test-v2="1"] .dt-template-cta {
  display: none !important;
}

/* Live default: kein Preview-Banner — kein Extra-Padding */
html[data-world-default-v2="1"][data-design-test-v2="1"] .design-test-v2-banner {
  display: none !important;
}

html[data-world-default-v2="1"][data-design-test-v2="1"] body {
  padding-top: 0;
}

html[data-world-default-v2="1"].dt-v2-pure-templates[data-design-test-v2="1"] .mv4-bar {
  top: 0;
}

/* Handy / Tablet: kompakte Shell-Weltleiste */
@media (max-width: 900px) {
  html[data-design-test-v2="1"] .design-test-v2-banner {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11px;
  }

  html[data-design-test-v2="1"] .design-test-v2-banner a {
    white-space: normal;
  }

  html.dt-v2-pure-templates[data-design-test-v2="1"] .mv4-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 10px;
  }

  html.dt-v2-pure-templates[data-design-test-v2="1"] .mv4-worlds {
    gap: 4px;
    width: 100%;
  }

  html.dt-v2-pure-templates[data-design-test-v2="1"] .mv4-worlds a {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    padding: 7px 8px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 520px) {
  html.dt-v2-pure-templates[data-design-test-v2="1"] .mv4-worlds a {
    flex: 1 1 calc(50% - 4px);
    font-size: 0.68rem;
    padding: 8px 6px;
  }
}
