/* delulu-is-the-solulu.css */

/* =======================================================
   RESET
   ======================================================= */
* { box-sizing: border-box; }

html { overscroll-behavior-y: none; }

html, body {
  width: 100%;
  height: 100%;
  background: #000;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Pretendard", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}


/* =======================================================
   HEADER (log page)
   ======================================================= */
body[data-page="log"] header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding-top: 10px !important;
  z-index: 3000;
}

body[data-page="log"] header .search-icon,
body[data-page="log"] header .shop-toggle {
  display: none !important;
}

/* 기본값: 연하게 */
body[data-page="log"] header .logo-brand,
body[data-page="log"] header .logo-roman,
body[data-page="log"] header .logo-korean {
  color: rgba(255, 255, 255, 0.18) !important;
}

/* 글자 테두리만 쓰고 싶으면 아래를 켜고 위 color 줄은 지워도 됨
body[data-page="log"] header .logo-brand,
body[data-page="log"] header .logo-roman,
body[data-page="log"] header .logo-korean {
  color: transparent !important;
  -webkit-text-stroke: 0.7px rgba(255,255,255,0.28);
  text-shadow: none !important;
}
*/

/* 메뉴 텍스트 */
.main-nav a{
  color: rgba(255, 255, 255, 0.18);
}

/* | 구분선 */
.main-nav a::before{
  background: rgba(255, 255, 255, 0.18);
}

/* =======================================================
   LIST ICON
   ======================================================= */
.list-toggle {
  position: fixed;
  top: 9px;
  right: 22px;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 3500;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.18);
}

.ic-list {
  width: 24px;
  height: 24px;
}

.list-toggle:hover { opacity: 1; }

/* =======================================================
   3D CANVAS
   ======================================================= */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* =======================================================
   VIDEO STAGE
   ======================================================= */
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 72px 20px 30px;
}

.video-box {
  position: relative;
  width: min(1020px, 86vw);
  height: min(72vh, 700px);
  background: transparent;
  border: 0px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 80px rgba(0,0,0,0);
  overflow: visible; /* 🔥 캡션 보이게 */
}

.player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
}

/* =======================================================
   COUNTER
   ======================================================= */
.caption {
  position: absolute;
  left: 50%;
  bottom: -40px; /* 🔥 video-box 아래 */
  transform: translateX(-50%);

  font-size: 8px;
  letter-spacing: 0.12em;
  opacity: 0.35;

  user-select: none;
  pointer-events: none;

  background: none;
  padding: 0;
}
.caption {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.tap-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 10px;
  opacity: 0.22;
  z-index: 30;
  user-select: none;
  display: none;
}

/* =======================================================
   MODAL OVERLAY
   ======================================================= */
.video-modal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.video-box:hover .video-modal {
  opacity: 1;
  pointer-events: auto;
}

.video-box.show-modal .video-modal {
  opacity: 1;
  pointer-events: auto;
}

.modal-text {
  width: min(760px, 84%);
  max-height: 78%;
  overflow-y: auto;

  padding: 0 12px; /* ✅ 좌우 동일 */

  text-align: left;
  color: #fff;
  font-size: 13px;
  line-height: 1.7;

  box-sizing: border-box;
}


/* scrollbar */
.modal-text::-webkit-scrollbar { width: 4px; }
.modal-text::-webkit-scrollbar-track { background: transparent; }
.modal-text::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
}

/* =======================================================
   TEXT STRUCTURE
   ======================================================= */
.art-title {
  margin: 0 0 0px;
  font-size: 14px;
  font-weight: 600;
}

.art-meta {
  margin: 13px 0 0px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.85;
}

.art-credit {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.6;
}


.art-divider {
  width: 230px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  margin: 8px 0 40px;
}

.art-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.9;
}

.art-desc.kor {
  font-family: "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 12.5px;
  opacity: 0.78;
}

.info-link {
  margin-top: 50px;
  font-size: 11px;
  text-decoration: none;
  color: #fff;
  opacity: 0.7;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  gap: 6px;
}


.info-link:hover { opacity: 1; color: #9450ed; }

.ic-arrow {
  width: 12px;
  height: 12px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}



/* =======================================================
   MOBILE
   ======================================================= */
@media (hover: none) and (pointer: coarse) {
  .caption { bottom: -20px; }

  /* hover 기반 인터랙션 완전히 제거 */
  .video-box:hover .video-modal {
    opacity: 0;
    pointer-events: none;
  }

  /* 안내 문구 완전 제거 */
  .tap-hint {
    display: none !important;
  }

  /* 🔥 모바일에서는 JS가 제어하는 상태만 허용 */
  .video-box.show-modal .video-modal {
    opacity: 1;
    pointer-events: auto;
  }
}
