/* "Prototype stage" caution tape along the top of the window.
   Fixed to the viewport, above the page, and never in the way: it takes no clicks or taps.
   Thickness scales with the screen. */
:root { --tape: clamp(14px, 1.5vw, 20px); }
.tape {
  --tape-yellow: #ffd21f;
  --tape-ink: #111;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}
.tape__band {
  position: absolute;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: var(--tape-yellow);
  color: var(--tape-ink);
  font-family: inherit;
  font-weight: 800;
  font-size: calc(var(--tape) * 0.58);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 35%), 0 1px 4px rgb(0 0 0 / 30%);
}
/* Black hazard stripes at each end of every word group, like the tape's printed blocks. */
.tape__band span {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding-inline: 0.45em;
}
.tape__band span::before {
  content: "";
  flex: none;
  width: 2.2em;
  height: var(--tape);
  background: repeating-linear-gradient(-45deg, var(--tape-ink) 0 0.42em, transparent 0.42em 0.84em);
}
.tape__band--top,
.tape__band--bottom { left: 0; right: 0; height: var(--tape); }
.tape__band--top { top: 0; }
.tape__band--bottom { bottom: 0; }
.tape__band--left,
.tape__band--right {
  top: 0;
  bottom: 0;
  width: var(--tape);
  writing-mode: vertical-rl;
  justify-content: flex-start;
}
.tape__band--left { left: 0; transform: rotate(180deg); }
.tape__band--right { right: 0; }
.tape__band--left span::before,
.tape__band--right span::before {
  width: var(--tape);
  height: 2.2em;
}
.tape__band--bottom { justify-content: flex-end; }
@media print { .tape { display: none; } }

/* Keep this page's top corner controls clear of the tape. */
.sound { top: calc(var(--tape) + 0.5rem); }
.corner { top: calc(var(--tape) + 0.5rem); }
@media (max-width: 52rem) { .corner { top: calc(var(--tape) + 0.375rem); } }
@media (max-width: 40rem) { .sound { top: calc(var(--tape) + 0.375rem); } }
