html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.fl-frame {
  position: relative;
  width: 260px;
  height: 165px;
}

.fl-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 90px;
  height: 60px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  -webkit-tap-highlight-color: transparent;
}

.fl-thumb__photo {
  position: absolute;
  inset: 0;
  background: radial-gradient(40px circle at 35% 35%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(150deg, #2f6df6, #17141a);
}

.fl-panel {
  position: absolute;
  left: 44px;
  top: 28px;
  width: 172px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform-origin: top left;
  opacity: 0;
  pointer-events: none;
}

.fl-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fl-panel:not(.fl-panel--demo) {
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fl-panel__photo {
  position: absolute;
  inset: 0;
  background: radial-gradient(70px circle at 35% 35%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(150deg, #2f6df6, #17141a);
}

.fl-panel--demo {
  opacity: 0;
}

.fl-frame.is-demo .fl-panel:not(.fl-panel--demo) {
  display: none;
}

.fl-frame.is-demo .fl-panel--demo {
  animation: fl-flip 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes fl-flip {
  0% {
    transform: translate(-44px, -28px) scale(0.523, 0.545);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  45% {
    transform: translate(0, 0) scale(1, 1);
    opacity: 1;
  }
  60% {
    transform: translate(0, 0) scale(1, 1);
    opacity: 1;
  }
  92% {
    opacity: 0;
  }
  100% {
    transform: translate(-44px, -28px) scale(0.523, 0.545);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl-panel {
    transition: none !important;
  }
  .fl-frame.is-demo .fl-panel--demo {
    animation: none !important;
    transform: translate(0, 0) scale(1, 1) !important;
    opacity: 1 !important;
  }
}
