.container {
  position: relative;
  display: contents;
}

.tapeBorder {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.tapeBorder.top {
  top: 0;
  left: 0;
  right: 0;
  height: var(--tape-size, 24px);
}

.tapeBorder.bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tape-size, 24px);
}

.tapeBorder.left {
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--tape-size, 24px);
}

.tapeBorder.right {
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--tape-size, 24px);
}

.tapeBorder.topLeft {
  top: 0;
  left: 0;
  width: var(--tape-size, 24px);
  height: var(--tape-size, 24px);
}

.tapeBorder.topRight {
  top: 0;
  right: 0;
  width: var(--tape-size, 24px);
  height: var(--tape-size, 24px);
}

.tapeBorder.bottomLeft {
  bottom: 0;
  left: 0;
  width: var(--tape-size, 24px);
  height: var(--tape-size, 24px);
}

.tapeBorder.bottomRight {
  bottom: 0;
  right: 0;
  width: var(--tape-size, 24px);
  height: var(--tape-size, 24px);
}

/* Stripe pattern */
.tapeBorder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    var(--stripe-color-1, #facc15),
    var(--stripe-color-1, #facc15) 10px,
    var(--stripe-color-2, #000000) 10px,
    var(--stripe-color-2, #000000) 20px
  );
}

.tapeBorder.vertical::before {
  background: repeating-linear-gradient(
    -45deg,
    var(--stripe-color-1, #facc15),
    var(--stripe-color-1, #facc15) 10px,
    var(--stripe-color-2, #000000) 10px,
    var(--stripe-color-2, #000000) 20px
  );
}

/* Animation */
.tapeBorder.animated::before {
  animation: stripe-scroll 20s linear infinite;
}

@keyframes stripe-scroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: var(--scroll-distance, 100px) 0;
  }
}

/* Corner styles */
.cornerOuter::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 70% 100%, 70% 70%, 0 70%);
}

.cornerInner::before {
  clip-path: polygon(30% 0, 100% 0, 100% 30%, 30% 30%, 30% 100%, 0 100%, 0 0);
}

/* Effect variants */
.effect-flat::before {
  box-shadow: none;
}

.effect-raised::before {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.effect-inset {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.effect-glow::before {
  box-shadow: 0 0 10px var(--stripe-color-1, #facc15), 0 0 20px var(--stripe-color-1, #facc15);
}

/* Rough edge effect */
.tapeBorder.rough::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border: 2px dashed transparent;
  background-clip: padding-box;
}

.tapeBorder.rough.top::after {
  border-bottom-color: rgba(0, 0, 0, 0.3);
}

.tapeBorder.rough.bottom::after {
  border-top-color: rgba(0, 0, 0, 0.3);
}

.tapeBorder.rough.left::after {
  border-right-color: rgba(0, 0, 0, 0.3);
}

.tapeBorder.rough.right::after {
  border-left-color: rgba(0, 0, 0, 0.3);
}

/* Jagged edges */
.tapeBorder.jagged {
  clip-path: polygon(
    0% 0%, 5% 0%, 7% 3%, 10% 0%, 15% 0%, 17% 3%, 20% 0%, 25% 0%, 27% 3%, 30% 0%, 35% 0%, 37% 3%, 40% 0%, 45% 0%, 47% 3%, 50% 0%,
    55% 0%, 57% 3%, 60% 0%, 65% 0%, 67% 3%, 70% 0%, 75% 0%, 77% 3%, 80% 0%, 85% 0%, 87% 3%, 90% 0%, 95% 0%, 97% 3%, 100% 0%,
    100% 100%, 95% 100%, 93% 97%, 90% 100%, 85% 100%, 83% 97%, 80% 100%, 75% 100%, 73% 97%, 70% 100%, 65% 100%, 63% 97%, 60% 100%, 55% 100%, 53% 97%, 50% 100%,
    45% 100%, 43% 97%, 40% 100%, 35% 100%, 33% 97%, 30% 100%, 25% 100%, 23% 97%, 20% 100%, 15% 100%, 13% 97%, 10% 100%, 5% 100%, 3% 97%, 0% 100%
  );
}
