.rfl {
  position: fixed;
  inset: 0;
  z-index: 300000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 22, 30, 0.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.rfl.is-visible {
  display: flex;
}

.rfl-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
}

.rfl-brand {
  position: relative;
  width: min(320px, 68vw);
  line-height: 0;
}

.rfl-logo {
  width: 100%;
  height: auto;
  display: block;
}

.rfl-loading-text {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
  height: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 3.4vw, 1.35rem);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  animation: rfl-pulse 1.2s ease-in-out infinite;
  pointer-events: none;
}

.rfl-hoist {
  position: relative;
  width: 54px;
  height: min(210px, 42vw);
  flex: 0 0 auto;
}

.rfl-mast {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  margin-left: -3px;
  background: linear-gradient(180deg, #c5ccd3 0%, #8a949e 50%, #c5ccd3 100%);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.rfl-mast::before,
.rfl-mast::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  background: #6b757f;
  border-radius: 1px;
}

.rfl-mast::before {
  top: 0;
}

.rfl-mast::after {
  bottom: 0;
}

.rfl-cable {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.35);
}

.rfl-cage {
  position: absolute;
  left: 50%;
  width: 34px;
  height: 42px;
  margin-left: -17px;
  bottom: 8%;
  animation: rfl-lift 4.5s cubic-bezier(0.35, 0.05, 0.25, 1) 1 forwards;
  will-change: bottom;
}

.rfl-cage-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #004d73 100%);
  border-radius: 3px;
  box-sizing: border-box;
  position: relative;
  
}

.rfl-cage-body::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  bottom: 10px;
 
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0 3px,
    transparent 3px 7px
  );
}

.rfl-cage-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  text-align: center;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
}

@keyframes rfl-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes rfl-lift {
  0% {
    bottom: 8%;
  }
  100% {
    bottom: 72%;
  }
}

@media (max-width: 480px) {
  .rfl-inner {
    gap: 0.85rem;
  }

  .rfl-hoist {
    width: 42px;
    height: 170px;
  }

  .rfl-cage {
    width: 28px;
    height: 36px;
    margin-left: -14px;
  }
}
