@import url("https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&amp;display=swap");
html,
body {
  height: 100%;
  background-color: #141414;
}
#root {
  height: 100%;
}
body {
  margin: 0;
}
.App {
  font-family: Arial, Helvetica, sans-serif;
}

.belt-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 2px;
  position: relative;
  transform-origin: top center;
}

.belt-wrap--inline {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  overflow: visible;
}

.belt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- SEGMENTS ---- */
.belt__seg {
  flex-shrink: 0;
  width: 16px;
  height: 7px;
}

/* ---- MAIN ---- */
.belt__main {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 7px;
}

.belt__half {
  display: flex;
  overflow: hidden;
  max-width: 0;
  transition: max-width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.belt--stage-1 .belt__half,
.belt--stage-2 .belt__half,
.belt--stage-3 .belt__half,
.belt--stage-4 .belt__half {
  max-width: 200px;
}

.belt__half--l { transition-delay: 0s; }
.belt__half--r { transition-delay: 0.12s; }

/* ---- KNOT ---- */
.belt__knot {
  position: relative;
  width: 14px;
  height: 7px;
  z-index: 5;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.2) rotateX(60deg);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.belt--stage-2 .belt__knot,
.belt--stage-3 .belt__knot,
.belt--stage-4 .belt__knot {
  opacity: 1;
  transform: scale(1) rotateX(0deg);
}

.belt__knot-center {
  position: absolute;
  top: 0; left: 2px;
  width: 10px; height: 7px;
  border-radius: 1.5px;
  z-index: 3;
}

.belt__knot-loop--under {
  position: absolute;
  top: -2px; left: -3px;
  width: 20px; height: 11px;
  border-radius: 2px;
  z-index: 1;
}

.belt__knot-loop--over {
  position: absolute;
  top: 1px; left: 1px;
  width: 12px; height: 5px;
  border-radius: 1px;
  z-index: 4;
}

/* ---- TAILS ---- */
.belt__tail {
  position: absolute;
  top: 100%;
  z-index: 2;
  transform-origin: top center;
}

.belt__tail--l {
  left: 1px;
  transform: rotate(40deg) scaleY(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.belt__tail--r {
  right: 1px;
  transform: rotate(-40deg) scaleY(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.08s;
}

.belt--stage-3 .belt__tail--l,
.belt--stage-4 .belt__tail--l { transform: rotate(40deg) scaleY(1); }
.belt--stage-3 .belt__tail--r,
.belt--stage-4 .belt__tail--r { transform: rotate(-40deg) scaleY(1); }

.belt__tail-inner {
  display: flex;
  flex-direction: column;
  width: 7px;
}

.belt__tail-seg {
  width: 7px;
  height: 12px;
  flex-shrink: 0;
}

.belt__tail-seg--tall {
  height: 30px;
}

/* ---- STRIPE TAB ---- */
.belt__stripe-tab {
  width: 7px;
  padding: 2px 1px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
  border-radius: 0 0 1px 1px;
}

.belt--solid .belt__stripe-tab {
  padding: 4px 1px;
  gap: 2px;
  min-height: 22px;
}

.belt__stripe {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(232,230,225,0.9), rgba(255,255,255,0.6));
  border-radius: 0.5px;
}

/* ---- SHIMMER ---- */
.belt__shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.1) 60%, transparent 100%);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
}

.belt--stage-3 .belt__shimmer,
.belt--stage-4 .belt__shimmer {
  animation: belt-shimmer 1s ease 0.3s 1 forwards;
}

@keyframes belt-shimmer {
  0%   { left: -50%; opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* ---- MINI SIZE ---- */
.belt-wrap--mini .belt__seg {
  width: 9px;
  height: 5px;
}

.belt-wrap--mini .belt__main {
  height: 5px;
}

.belt-wrap--mini .belt__knot {
  width: 8px;
  height: 5px;
}

.belt-wrap--mini .belt__knot-center {
  width: 6px; height: 5px;
  left: 1px;
}

.belt-wrap--mini .belt__knot-loop--under {
  top: -1px; left: -2px;
  width: 12px; height: 7px;
}

.belt-wrap--mini .belt__knot-loop--over {
  top: 1px; left: 1px;
  width: 6px; height: 3px;
}

.belt-wrap--mini .belt__tail-inner {
  width: 5px;
}

.belt-wrap--mini .belt__tail-seg {
  width: 5px;
  height: 8px;
}

.belt-wrap--mini .belt__tail-seg--tall {
  height: 20px;
}

.belt-wrap--mini .belt__stripe-tab {
  width: 100%;
  padding: 2px 0;
  gap: 1px;
}

.belt-wrap--mini.belt--solid .belt__stripe-tab,
.belt-wrap--mini .belt--solid .belt__stripe-tab {
  padding: 3px 0;
  gap: 1.5px;
  min-height: 14px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .belt-wrap--full {
    transform: scale(0.85) !important;
    height: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .belt__half,
  .belt__knot,
  .belt__tail--l,
  .belt__tail--r {
    transition: none !important;
  }
  .belt__shimmer {
    animation: none !important;
  }
}
