/* Dansk Byg – levende «Godt håndværk taler alle sprog»-bånd, v5 (fuld skærm, logo bygges).
   Teksten er altid rigtig HTML. Uden JS og ved reduceret bevægelse står båndet statisk som i dag.
   Under animationen ligger et fast overlay over viewporten; båndets plads i dokumentet forbliver 59 px. */
html.mb-vent .motto-bar-line,
html.mb-vent .motto-bar-langs {
  visibility: hidden;
  animation: mb-redning 0s linear 2.8s forwards;
}
@keyframes mb-redning { to { visibility: visible; } }

.motto-bar.mb-spiller .motto-bar-line,
.motto-bar.mb-spiller .motto-bar-langs { visibility: hidden; }

.mb-scene {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 200; background: #111111;
  overflow: hidden; user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
.mb-cluster {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; box-sizing: border-box;
  padding: 0.4rem 1rem 0.42rem;
  transform-origin: 0 0;
  will-change: transform;
  z-index: 1;
}
.mb-cluster .motto-bar-line,
.mb-cluster .motto-bar-langs { visibility: visible; }
.mb-cluster .motto-bar-line::after { background: transparent; }
.mb-tekst { display: inline-block; }
.mb-ord { display: inline-block; white-space: pre; }

.mb-bg, .mb-fx {
  position: absolute; left: 0; top: 0;
  pointer-events: none; opacity: 0; overflow: hidden;
}
.mb-bg { z-index: 0; }
.mb-fx { z-index: 2; }
.mb-fx .mb-e { opacity: 0; }
.mb-bg .mb-dd, .mb-fx .mb-dd { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mb-fx ellipse { vector-effect: non-scaling-stroke; }

.mb-tool {
  position: absolute; left: 0; top: 0; z-index: 3;
  pointer-events: none; will-change: transform;
  filter: drop-shadow(0 0 3px rgba(159, 214, 255, 0.5));
}
.mb-tool svg { display: block; overflow: visible; }
.mb-dr {
  fill: none; stroke: #fff; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.mb-dr .mb-rd { stroke: #c8102e; stroke-width: 1.8; }

.mb-sten {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  background: var(--accent, #c8102e); transform-origin: 0 0; opacity: 0;
}
.mb-glint {
  position: absolute; left: 0; top: 0; width: 18px; height: 4px;
  z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 50%, rgba(255,255,255,0));
}

.mb-spring {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 6;
  margin: 0; padding: 0.55rem 0.95rem;
  min-height: 44px;
  background: rgba(17, 17, 17, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font: inherit; font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1;
  cursor: pointer; opacity: 0;
}
.mb-spring:hover, .mb-spring:focus-visible {
  border-color: #c8102e; outline: 2px solid #c8102e; outline-offset: 2px;
}


.mb-logo { position: absolute; z-index: 3; pointer-events: none; overflow: visible; }
.mb-logo .mb-lp { opacity: 0; }
.mb-bygg { z-index: 3 !important; }
.mb-folk {
  position: absolute; left: 0; top: 0; z-index: 4;
  pointer-events: none; will-change: transform;
  filter: drop-shadow(0 0 2px rgba(159, 214, 255, 0.4));
}
.mb-folk svg { display: block; overflow: visible; }
.mb-folk .mb-rd { stroke: #c8102e; }

@media (prefers-reduced-motion: reduce) {
  html.mb-vent .motto-bar-line,
  html.mb-vent .motto-bar-langs { visibility: visible; animation: none; }
  .mb-scene { display: none; }
}
