/* 튜토리얼 이미지 슬라이드 */
#tutorial.slide-tutorial {
  background-color: rgba(0, 0, 0, 0.5);
}
.slide_wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 20px 0;
}

/* 헤더: 노란 책 아이콘 + "튜토리얼" 라벨 */
.tutorial_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: -38px;
  position: relative;
  z-index: 10;
}

.tutorial_header_label {
  display: inline-block;
  padding: 6px 16px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
}

/* 팝업 창: 다크, 둥근 모서리 */
.tutorial_popup {
  position: relative;
  width: 324px;
  max-width: 90vw;
  min-height: 530px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border: 2px solid #fff;
  border-radius: 24px;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 슬라이드 콘텐츠 영역 */
.tutorial_popup .slides {
  flex: 1;
  min-height: 0;
  height: 0;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  background-color: #000;
  position: relative;
}

.slides > span {
  position: absolute;
  top: 52px;
  padding: 4px 10px;
  background-color: #222;
  border-radius: 100px;
  font-size: 14px;
  font-weight: bold;
}
.slides > img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slide {
  width: 100%;
  height: 100%;
  position: relative;
  display: none;
}
.slide > img {
  width: 100%;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%);
}
.tutorial_popup .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  overflow-y: auto;
}
.tutorial_popup .slide.is-active {
  display: flex;
}
.tutorial_popup .tutorial_slide_img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 350px;
  width: 100%;
}
.tutorial_popup .tutorial_slide_img img {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tutorial_popup .tutorial_slide_text {
  flex: 1;
  min-height: 0;
  margin: 12px 0 0;
  padding: 0 4px;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
}
.slide > p {
  font-size: 15px;
  line-height: 20px;

  position: absolute;
  bottom: 62px;

  width: 100%;
  text-align: center;
}
.slide.is-active {
  display: block;
}
.control-button {
  position: absolute;
  bottom: 20px;
  display: flex;
  align-items: center;
  width: 92px;
  height: 40px;
}
.tutorial_controls .control-button,
.tutorial_controls #skip_tutorial {
  position: static;
}
.tutorial_controls .control-button {
  min-width: 72px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
  border: none;
}
.tutorial_controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 16px;
  flex-shrink: 0;
  background-color: #252525;
}
.tutorial_controls #skip_tutorial {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
#control-next,
#close-image-tutorial {
  right: 18px;
  background-color: #fff;
}
#close-image-tutorial {
  width: 108px;
}
