/* =========================================================
   최저운영 난이도 / 담솥 운영 시스템 (operation)
   ========================================================= */
#operation {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 100px 10px;
  background-color: #e3ddd7;
  /* 공통 배경 텍스처 */
  background-image: url(../img/common-bg.png);
  background-size: cover !important;
  background-position: center center !important;
  box-sizing: border-box;
}
#operation .operation-deco {
  max-width: 555px;
  width: 45%;
  height: auto;
  aspect-ratio: 62/41;
  position: absolute;
  right: -15%;
  top: 20%;
}

#operation .operation-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- 제목 ---------- */
#operation .tit-wrap {
  gap: 0;
}

#operation .operation-bar {
  display: block;
  width: 64px;
  height: 2px;
  margin-bottom: 20px;
  background: #5f432c;
}

#operation .st-sub-tit {
  font-family: 'Paperlogy', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: normal;
}

#operation .st-tit {
  font-family: 'Paperlogy', sans-serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: normal;
}

#operation .st-tit strong {
  font-weight: 700;
}

/* ---------- 운영 스텝 ---------- */
#operation .operation-step-list {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 110px;
  margin-top: 80px;
}

#operation .operation-step {
  position: relative;
  width: 33%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 스텝 사이 화살표 (미디어 블럭 하단쪽, translateX -5~+5 왔다갔다) */
#operation .operation-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 270px;
  right: -90px;
  width: 80px;
  height: 80px;
  background: url(../img/operation/arrow.png) center / contain no-repeat;
  animation: operation-arrow-wiggle 0.4s ease-in-out infinite;
}

@keyframes operation-arrow-wiggle {
  0% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(-5px);
  }
}

/* 모바일: 아래 방향 화살표(90도 회전) 상하 흔들림 */
@keyframes operation-arrow-down {
  0% {
    transform: rotate(90deg) translateX(-5px);
  }
  50% {
    transform: rotate(90deg) translateX(5px);
  }
  100% {
    transform: rotate(90deg) translateX(-5px);
  }
}

/* 미디어(원형 썸네일) */
#operation .operation-step-media {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  /* background: #e3ddd7; */
}

/* 트레이 프레임 PNG (바닥) + 영상(프레임 그릇 원 안에 원형으로 위에) */
#operation .operation-step-video,
#operation .operation-step-frame {
  position: absolute;
  object-fit: cover;
}

/* 프레임(그릇 사진) : 미디어 전체를 채움 */
#operation .operation-step-frame {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
}

/* 영상 : 프레임 가운데 그릇 원에 맞춰 동그랗게, 프레임 위에 */
#operation .operation-step-video {
  z-index: 2;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
}

#operation .operation-step-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

#operation .operation-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  padding: 0 25px;
  border-radius: 100px;
  background: #5f432c;
  color: #fff;
  font-family: 'Paperlogy', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 36.4px;
}

/* 활성 스텝(빨간불) 배지 — JS가 01→02→03 순차로 부여 */
#operation .operation-step.is-active .operation-step-badge {
  background: #e24534;
}

#operation .operation-step-desc {
  width: 100%;
  /* max-width: 264px; */
  text-align: center;
  color: #5f432c;
  font-family: 'Pretendard', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 33.6px;
}

/* =========================================================
   반응형 — 768px 이하 (태블릿) : 데스크톱값에서 적당히 축소 + 세로 스택
   ========================================================= */
@media (max-width: 768px) {
  #operation {
    padding: 90px 24px;
  }
  #operation .operation-deco {
    /* display: none; */
    width: 55%;
    top: -55px;
  }

  /* 제목 */
  #operation .operation-bar {
    margin-bottom: 18px;
  }
  #operation .st-sub-tit {
    font-size: 24px;
  }
  #operation .st-tit {
    font-size: 46px;
  }

  /* 스텝 : 세로 스택 (화살표 데코 숨김) */
  #operation .operation-step-list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 70px;
    padding: 0;
  }
  #operation .operation-step {
    width: 100%;
    max-width: 360px;
    gap: 16px;
  }
  /* 스텝 사이 화살표 : 세로 스택이므로 아래 방향으로 돌려 스텝 아래 가운데 표시 */
  #operation .operation-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -40px;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    animation: operation-arrow-down 0.5s ease-in-out infinite;
  }
  #operation .operation-step-media {
    max-width: 360px;
  }
  #operation .operation-step-info {
    gap: 14px;
  }
  #operation .operation-step-badge {
    height: 48px;
    padding: 0 20px;
    font-size: 20px;
    line-height: 26px;
  }
  #operation .operation-step-desc {
    font-size: 20px;
    line-height: 28px;
  }
}

/* =========================================================
   반응형 — 480px 이하 (모바일) : 시안 최종 사이즈
   (세로 스택은 768px 규칙에서 상속)
   ========================================================= */
@media (max-width: 480px) {
  #operation {
    padding: 80px 16px;
  }

  /* 제목 */
  #operation .operation-bar {
    margin-bottom: 16px;
  }
  #operation .st-sub-tit {
    font-size: 18px;
    line-height: 25.2px;
  }
  #operation .st-tit {
    font-size: 30px;
    line-height: 39px;
  }

  /* 스텝 (아래 방향 화살표가 들어갈 간격 확보) */
  #operation .operation-step-list {
    gap: 40px;
    margin-top: 60px;
  }
  #operation .operation-step {
    max-width: 300px;
  }
  #operation .operation-step-media {
    max-width: 300px;
  }
  #operation .operation-step-info {
    gap: 10px;
  }
  #operation .operation-step-badge {
    height: 32px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 18.2px;
  }
  #operation .operation-step-desc {
    font-size: 16px;
    line-height: 22.4px;
  }
}
