/* Itdasy Studio - Main Stylesheet */

:root {
  --bg:      #F2F4F6;
  --bg2:     #FFFFFF;
  --bg3:     #F7F8FA;
  --accent:  #F18091;
  --accent2: #D95F70;
  --accent3: #FBD0D6;
  --text:    #191F28;
  --text2:   #4E5968; /* 조금 더 진하게 (기존 #8B95A1) */
  --text3:   #8B95A1; /* 조금 더 진하게 (기존 #B0B8C1) */
  --border:  rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.14);
  --gold:    #d4a853;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* 드래그 요소 텍스트 선택 방지 */
[data-draggable], [data-slot-id], [data-ai-card], [data-finish-slot],
.carousel-track, .photo-strip, .slot-strip, img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden; /* 가로 스크롤 절대 방지 */
}

/* 모바일 글씨 중구난방 방지 (전문화된 타이포그래피) */
h1, h2, h3 { letter-spacing: -0.04em; }
p { word-break: keep-all; }


/* 헤더 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242,244,246,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.logo span { color: var(--text3); font-size: 10px; display: block; font-family: 'Pretendard'; font-weight: 400; letter-spacing: 0.05em; margin-top: 1px; }

@media (max-width: 380px) {
  .logo { font-size: 18px; }
  .logo span { display: none; }
  .app-header { padding: 12px 16px; }
}

/* 탭 네비 */
.nav {
  display: flex;
  gap: 0;
  padding: 0 20px;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg2);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-btn {
  flex-shrink: 0;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Pretendard', sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* 탭 컨텐츠 */
.tab { display: none; padding: 24px 20px 100px; }
.tab.active { display: block; }

/* 섹션 타이틀 */
.sec-title {
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.sec-sub { font-size: 13px; color: var(--text2); margin-bottom: 20px; line-height: 1.6; }

/* 입력 요소 */
label { font-size: 13px; font-weight: 500; color: var(--text2); display: block; margin-bottom: 6px; letter-spacing: -0.02em; }
textarea, input[type=text] {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 12px 14px;
  outline: none;
  transition: border 0.2s;
  resize: none;
}
textarea:focus, input[type=text]:focus { border-color: var(--accent); }

/* 태그 선택 */
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tag.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag .tag-delete {
  display: none;
  margin-left: 4px;
  padding: 0 3px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}
.tag:hover .tag-delete, .tag.on .tag-delete { display: inline; }
.tag.tag-add {
  border-style: dashed;
  border-color: rgba(241,128,145,0.4);
  background: transparent;
  color: var(--accent2);
}

/* 메인 버튼 */
.btn-main {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Pretendard', sans-serif;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 6px;
}
.btn-main:active { transform: scale(0.98); opacity: 0.85; }
.btn-main:disabled { opacity: 0.4; }

/* 결과 박스 */
.result-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  margin-top: 18px;
  display: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.result-box.show { display: block; }
.result-caption { font-size: 14px; line-height: 1.9; color: var(--text); white-space: pre-wrap; font-family: 'Pretendard', sans-serif; letter-spacing: -0.01em; }
.result-hash { font-size: 13px; color: var(--accent2); line-height: 1.9; margin-top: 12px; }
.result-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-copy {
  flex: 1;
  padding: 11px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text2);
  font-size: 13px;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-copy:active { background: var(--border); }

/* 팝업 공통 (NEW) */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}
.popup-content {
  background: var(--bg);
  border-radius: 32px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 스피너 */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── Long Press 게이지 ───── */
.lp-ring {
  position: absolute; inset: 0; border-radius: 20px; pointer-events: none; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.lp-svg { position: absolute; width: 56px; height: 56px; transform: rotate(-90deg); }
.lp-circle {
  fill: none; stroke: #F18091; stroke-width: 4;
  stroke-dasharray: 157; stroke-dashoffset: 157;
  stroke-linecap: round; transition: stroke-dashoffset 0.05s linear;
}

/* ───── 카드덱 UI ───── */
.card-deck-wrap {
  position: relative; height: 200px; margin-bottom: 16px;
}
.card-deck-item {
  position: absolute; inset: 0;
  border-radius: 16px; overflow: hidden; background: var(--bg2);
  border: 1.5px solid rgba(241,128,145,0.15);
  cursor: pointer; user-select: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.card-deck-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card-deck-item .card-idx {
  position: absolute; top: 8px; right: 10px;
  background: rgba(0,0,0,0.4); color: white; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}
.card-deck-nav {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 12px;
}
.card-deck-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(241,128,145,0.25); transition: all 0.2s;
}
.card-deck-dot.active { background: var(--accent2); width: 18px; border-radius: 3px; }

/* ===== BEFORE/AFTER ===== */
.upload-area {
  border: 1.5px dashed var(--border2);
  border-radius: 20px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.upload-area:active { border-color: var(--accent); background: rgba(241,128,145,0.06); }
.upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 28px; margin-bottom: 8px; }
.upload-label { font-size: 13px; color: var(--text2); }
.upload-preview { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: none; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ba-slot label { margin-bottom: 8px; }
.ba-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 500;
}
.ba-badge.before { background: rgba(180,140,100,0.2); color: var(--gold); border: 0.5px solid rgba(212,168,83,0.3); }
.ba-badge.after { background: rgba(196,96,122,0.2); color: var(--accent); border: 0.5px solid var(--border2); }

#baCanvas { width: 100%; border-radius: 12px; display: none; margin-top: 4px; }

.style-opts { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.style-opt {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: all 0.18s;
}
.style-opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }


/* 카드 섹션 구분 */
.card-divider { height: 1px; background: var(--border); margin: 24px 0; }

/* 홈 탭 */
/* ───── 홈 카드 시스템 ───── */
.hc-section { display: flex; flex-direction: column; gap: 16px; padding: 20px 20px 100px; }

/* STEP 1 연동 카드 */
.hc-step1 {
  background: linear-gradient(135deg, #FFF0F3, #FFE4EA);
  border: 1.5px solid rgba(241,128,145,0.25);
  border-radius: 24px;
  padding: 28px 24px;
}
.hc-step-label {
  font-size: 10px; font-weight: 700; color: #F18091;
  letter-spacing: 0.14em; margin-bottom: 10px;
}
.hc-title {
  font-size: 20px; font-weight: 800; color: var(--text);
  letter-spacing: -0.04em; margin-bottom: 8px;
}
.hc-desc {
  font-size: 13px; color: var(--text3); line-height: 1.65; margin-bottom: 24px;
}
.hc-btn-primary {
  width: 100%; height: 52px; background: #F18091; color: #fff;
  border: none; border-radius: 16px; font-size: 15px; font-weight: 700;
  cursor: pointer; letter-spacing: -0.02em;
  transition: transform 0.1s, opacity 0.1s;
  touch-action: manipulation;
}
.hc-btn-primary:active { transform: scale(0.98); opacity: 0.9; }
.hc-btn-ghost {
  margin-top: 14px; width: 100%; background: transparent; border: none;
  font-size: 13px; color: var(--text3); cursor: pointer;
  text-decoration: underline; padding: 4px 0;
}

/* 미리보기 샘플 카드 */
.hc-preview {
  background: #fff; border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.hc-preview-label {
  font-size: 10px; font-weight: 700; color: var(--text3);
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.hc-preview-text {
  font-size: 13px; color: var(--text2); line-height: 1.8;
}
.hc-preview-hash {
  margin-top: 10px; font-size: 11px; color: var(--accent2); line-height: 1.7;
}

/* 메인 CTA 카드 (연동 후) */
.hc-main-cta {
  background: linear-gradient(135deg, #F18091, #D95F70);
  border-radius: 24px; padding: 28px 24px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; touch-action: manipulation;
  box-shadow: 0 8px 28px rgba(241,128,145,0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.hc-main-cta:active { transform: scale(0.985); box-shadow: 0 4px 16px rgba(241,128,145,0.3); }
.hc-cta-eyebrow {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.hc-cta-title {
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -0.04em; margin-bottom: 6px;
}
.hc-cta-sub {
  font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5;
}

/* 말투 카드 (연동 후) */
#personaDash {
  background: #fff; border-radius: 20px;
  border: 1px solid var(--border);
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.pd-title {
  font-size: 10px; font-weight: 700; color: var(--text3);
  letter-spacing: 0.08em; margin-bottom: 14px;
}

/* PWA 설치 카드 */
.hc-pwa {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.hc-pwa-icon { font-size: 28px; flex-shrink: 0; }
.hc-pwa-text { font-size: 13px; color: var(--text2); line-height: 1.65; }
.hc-pwa-text strong { color: var(--accent); font-weight: 700; }

.home-cards { display: flex; flex-direction: column; gap: 12px; }
.home-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.home-card:active { transform: scale(0.99); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.home-card-icon { font-size: 28px; flex-shrink: 0; }
.home-card-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; letter-spacing: -0.02em; }
.home-card-desc { font-size: 12px; color: var(--text3); line-height: 1.5; }
.home-card-arrow { margin-left: auto; color: var(--text3); font-size: 18px; flex-shrink: 0; }


/* 인스타 연동 카드 */
.insta-connect-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.btn-insta {
  flex-shrink: 0;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Pretendard', sans-serif;
  letter-spacing: -0.02em;
  border: none;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-insta:active { opacity: 0.8; }
.btn-insta.connected { background: #3DAA72; color: #fff; }
.btn-insta.outline { background: transparent; border: 1px solid var(--border2); color: var(--text2); }

/* 로그인화면 */
.lock-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
}
.lock-overlay.hidden { display: none; }
.lock-title { font-family: 'Pretendard', sans-serif; font-size: 26px; font-weight: 700; color: var(--accent); margin-bottom: 6px; letter-spacing: -0.04em; }
.lock-sub { font-size: 12px; color: var(--text3); margin-bottom: 36px; letter-spacing: 0.05em; }
.login-input {
  width: 100%; max-width: 300px; font-size: 15px; letter-spacing: -0.02em;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  color: var(--text); padding: 15px 18px; outline: none; margin-bottom: 10px;
  font-family: 'Pretendard', sans-serif; font-weight: 400;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.login-input:focus { border-color: var(--accent); }
.login-error { width: 100%; max-width: 300px; font-size: 13px; color: #E05555; margin-bottom: 10px; display: none; text-align: center; font-weight: 500; }
.pin-btn {
  width: 100%; max-width: 300px; padding: 17px;
  background: var(--accent); border: none; border-radius: 20px;
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: 'Pretendard', sans-serif; letter-spacing: -0.02em;
}
.pin-btn:disabled { opacity: 0.5; }

/* ───── 온보딩 ───── */
.ob-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px;
}
.ob-overlay.hidden { display: none; }

.ob-dots {
  display: flex; gap: 6px; margin-bottom: 40px;
}
.ob-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border2); transition: all 0.3s;
}
.ob-dot.active { width: 20px; border-radius: 3px; background: var(--accent); }

.ob-step { display: none; width: 100%; max-width: 320px; text-align: center; }
.ob-step.active { display: block; }

.ob-emoji { font-size: 52px; margin-bottom: 20px; line-height: 1; }
.ob-title {
  font-size: 24px; font-weight: 700; color: var(--text);
  letter-spacing: -0.04em; line-height: 1.35; margin-bottom: 10px;
}
.ob-sub { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 32px; }

/* 2x2 샵 그리드 */
.ob-shop-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 32px;
}
.ob-shop-card {
  background: var(--bg2); border: 2px solid var(--border);
  border-radius: 20px; padding: 22px 12px; cursor: pointer;
  transition: all 0.2s; position: relative;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.ob-shop-card:active { transform: scale(0.97); }
.ob-shop-card.selected { border-color: var(--accent); background: rgba(241,128,145,0.06); }
.ob-shop-card.disabled {
  opacity: 0.38; cursor: not-allowed; pointer-events: none;
}
.ob-shop-icon { font-size: 32px; margin-bottom: 8px; }
.ob-shop-name { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.ob-shop-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 600; color: var(--text3);
  background: var(--bg3); border-radius: 6px; padding: 2px 7px;
  letter-spacing: 0;
}

/* 밑줄 입력 (Step 3) */
.ob-underline-wrap { width: 100%; max-width: 280px; margin: 0 auto 32px; }
.ob-underline-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 2px solid var(--accent);
  border-radius: 0; outline: none;
  font-size: 22px; font-weight: 700; color: var(--text);
  text-align: center; padding: 8px 0;
  font-family: 'Pretendard', sans-serif; letter-spacing: -0.03em;
}
.ob-underline-input::placeholder { color: var(--text3); font-weight: 400; font-size: 18px; }

/* 완료 화면 */
.ob-complete-name {
  color: var(--accent); font-weight: 700;
}

.ob-btn {
  width: 100%; max-width: 320px; padding: 18px;
  background: var(--accent); border: none; border-radius: 20px;
  color: #fff; font-size: 16px; font-weight: 700;
  font-family: 'Pretendard', sans-serif; letter-spacing: -0.02em;
  cursor: pointer; transition: opacity 0.2s, transform 0.1s;
}
.ob-btn:active { opacity: 0.85; transform: scale(0.98); }
.ob-btn.secondary {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); margin-top: 12px;
}

/* 홈 질문 카드 */
.home-question-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(241,128,145,0.08);
}
.home-question-text {
  font-size: 17px; font-weight: 700; color: var(--text);
  letter-spacing: -0.03em; line-height: 1.4; margin-bottom: 14px;
}

/* ───── 헤더 페르소나 ───── */
.header-persona {
  display: none; align-items: center; gap: 6px; flex-shrink: 1; min-width: 0;
}
.profile-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--accent2);
  overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(241,128,145,0.2);
}
.header-shop-name {
  font-size: 12px; font-weight: 800; color: var(--text);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.header-persona-texts { text-align: right; min-width: 0; flex: 1; }
.persona-status-name {
    font-size: 10px; font-weight: 600; color: var(--accent);
    letter-spacing: -0.02em; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.persona-status-sub  {
    font-size: 9px; color: var(--text2); /* 더 진함 */
    letter-spacing: -0.01em; margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 350px) {
    .header-persona-texts { display: none; }
}

/* ───── 캡션 로딩 팝업 (슬롯머신) ───── */
#captionLoadingPopup {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
#captionLoadingPopup .cl-card {
  background: #fff; border-radius: 28px;
  padding: 32px 24px 28px; max-width: 320px; width: 100%; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08); border: 1px solid rgba(241,128,145,0.15);
}
#clMsg {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 20px; min-height: 22px; letter-spacing: -0.02em;
}
/* 슬롯머신 */
.slot-machine {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 16px;
}
.slot-reel { flex: 1; position: relative; }
.slot-window {
  height: 44px; overflow: hidden;
  background: rgba(241,128,145,0.06);
  border: 1.5px solid rgba(241,128,145,0.2);
  border-radius: 12px; position: relative;
}
.slot-window::before, .slot-window::after {
  content: ''; position: absolute; left: 0; right: 0; height: 14px; z-index: 2; pointer-events: none;
}
.slot-window::before { top: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.95), transparent); }
.slot-window::after  { bottom: 0; background: linear-gradient(to top, rgba(255,255,255,0.95), transparent); }
.slot-strip {
  display: flex; flex-direction: column; align-items: center;
}
.slot-item {
  height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--accent2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 6px; letter-spacing: -0.02em; flex-shrink: 0;
  max-width: 100%; box-sizing: border-box;
}
.slot-locked {
  display: none; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(135deg, rgba(241,128,145,0.15), rgba(241,128,145,0.06));
  border: 1.5px solid rgba(241,128,145,0.45);
  border-radius: 12px;
  align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--accent2);
  padding: 0 4px; text-align: center;
  animation: slotLockPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes slotLockPop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.slot-locked.active { display: flex; }
#clHint {
  font-size: 11px; color: var(--text3); letter-spacing: -0.01em;
}

/* ───── 온보딩 캡션 테스트 팝업 ───── */
#onboardingCaptionPopup {
  position: fixed; inset: 0; z-index: 6000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
#onboardingCaptionPopup .ocp-card {
  background: #fff; border-radius: 28px;
  padding: 32px 24px; max-width: 360px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1); border: 1px solid rgba(241,128,145,0.15);
  animation: udPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
#onboardingCaptionPopup .ocp-emoji { font-size: 36px; text-align: center; margin-bottom: 10px; }
#onboardingCaptionPopup .ocp-title {
  font-size: 17px; font-weight: 800; color: var(--text);
  text-align: center; letter-spacing: -0.4px; margin-bottom: 6px;
}
#onboardingCaptionPopup .ocp-sub {
  font-size: 12px; color: var(--text3); text-align: center;
  line-height: 1.6; margin-bottom: 18px;
}
#onboardingCaptionPopup textarea {
  width: 100%; min-height: 120px; padding: 14px;
  border: 1.5px solid rgba(241,128,145,0.25); border-radius: 14px;
  font-size: 13px; line-height: 1.7; color: var(--text);
  resize: vertical; box-sizing: border-box; font-family: inherit;
  background: rgba(241,128,145,0.03);
}
#onboardingCaptionPopup textarea:focus { outline: none; border-color: var(--accent2); }
.ocp-actions { display: flex; gap: 8px; margin-top: 14px; }
.ocp-skip { flex: 1; height: 46px; background: transparent; border: 1.5px solid rgba(0,0,0,0.08); border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text3); cursor: pointer; }
.ocp-save { flex: 2; height: 46px; background: linear-gradient(135deg,#f18091,#ff9aa8); border: none; border-radius: 14px; font-size: 14px; font-weight: 700; color: white; cursor: pointer; }

/* ───── 톤 컨트롤러 ───── */
.tc-group { display: flex; gap: 6px; }
.tc-btn {
  flex: 1; height: 34px; border-radius: 10px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  background: white; border: 1.5px solid rgba(241,128,145,0.2);
  color: var(--text3); transition: all 0.18s;
}
.tc-btn.active {
  background: rgba(241,128,145,0.12);
  border-color: rgba(241,128,145,0.5);
  color: var(--accent2);
}

/* ───── 업로드 진행 팝업 ───── */
#uploadProgressPopup {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
#uploadProgressPopup .up-card {
  background: #fff; border-radius: 28px;
  padding: 44px 28px 36px; max-width: 300px; width: 100%; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 1px solid rgba(241,128,145,0.1);
}
#upPct {
  font-size: 52px; font-weight: 900; color: #F18091;
  letter-spacing: -2px; line-height: 1; margin-bottom: 10px;
  transition: all 0.4s ease;
}
#upMsg {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
#upBarWrap {
  height: 4px; background: rgba(241,128,145,0.15);
  border-radius: 2px; overflow: hidden;
}
#upFill {
  height: 100%; width: 0%;
  background: #F18091; border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ───── 업로드 완료 팝업 ───── */
#uploadDonePopup {
  position: fixed; inset: 0; z-index: 5001;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
#uploadDonePopup .ud-card {
  background: #fff; border-radius: 28px;
  padding: 44px 28px; max-width: 320px; width: 100%; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 1px solid rgba(241,128,145,0.1);
  animation: udPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes udPop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ───── confetti ───── */
.confetti {
  position: fixed; top: -30px; font-size: 22px;
  pointer-events: none; z-index: 9998;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ───── 환영 오버레이 ───── */
#welcomeOverlay {
  position: fixed; inset: 0; z-index: 9998;
  background: linear-gradient(145deg, #fff5f7 0%, #fff 60%, #fce8ec 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
#welcomeOverlay.show {
  opacity: 1; pointer-events: auto;
}
#welcomeOverlay.hide {
  opacity: 0;
}
.welcome-ribbon {
  font-size: 52px;
  animation: wRibbonPop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  margin-bottom: 20px;
}
.welcome-name {
  font-size: 26px; font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  animation: wSlideUp 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.12s both;
  margin-bottom: 8px;
}
.welcome-name span { color: #F18091; }
.welcome-sub {
  font-size: 14px; font-weight: 600; color: var(--text2);
  animation: wSlideUp 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.22s both;
}
.welcome-dots {
  display: flex; gap: 6px; margin-top: 40px;
  animation: wSlideUp 0.5s ease 0.35s both;
}
.welcome-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #F18091; opacity: 0.3;
  animation: wDotPulse 1s ease-in-out infinite;
}
.welcome-dots span:nth-child(2) { animation-delay: 0.15s; }
.welcome-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wRibbonPop {
  from { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes wSlideUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes wDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

/* ───── Pull-to-Refresh ───── */
#ptrBar {
  position: fixed;
  top: -56px; left: 0; right: 0;   /* 기본: 뷰포트 위에 숨김 */
  z-index: 9999;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid rgba(241,128,145,0.15);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  /* transform은 JS가 body와 함께 직접 제어 */
}
#ptrEmoji {
  display: inline-block;
  font-size: 18px;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
#ptrEmoji.spin {
  animation: ptrSpin 0.7s linear infinite;
}
@keyframes ptrSpin {
  to { transform: rotate(360deg); }
}

/* ───── 설정 버튼 ───── */
.btn-settings {
  background: none; border: none;
  cursor: pointer; padding: 7px; flex-shrink: 0;
  border-radius: 11px;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.btn-settings:active { background: rgba(241,128,145,0.13); }

/* ───── 설정 바텀시트 ───── */
#settingsSheet {
  position: fixed; inset: 0; z-index: 8000;
  display: none; align-items: flex-end; justify-content: center;
}
#settingsBackdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.28);
}
#settingsCard {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 12px 0 calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
#settingsCard.open { transform: translateY(0); }
.sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: #e0e0e0; margin: 0 auto 20px;
}
.sheet-header {
  padding: 0 24px 16px;
  font-size: 13px; font-weight: 700; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.sheet-row {
  display: flex; align-items: center;
  padding: 16px 24px; font-size: 15px; font-weight: 600;
  color: var(--text); cursor: pointer; border: none;
  background: none; width: 100%; text-align: left;
  transition: background 0.08s;
  letter-spacing: -0.02em;
  font-family: 'Pretendard', sans-serif;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
.sheet-row:active { background: rgba(241,128,145,0.1); }
.sheet-row.danger { color: #E05565; font-weight: 500; }
.sheet-row.muted  { color: var(--text3); font-size: 13px; font-weight: 400; }

/* ───── 설정 프로필 카드 ───── */
.settings-profile-card {
  margin: 4px 16px 12px;
  background: var(--bg3);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.settings-profile-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(241,128,145,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: var(--accent);
  overflow: hidden; flex-shrink: 0;
  border: 1.5px solid rgba(241,128,145,0.2);
}
.settings-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.settings-profile-name {
  font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing: -0.03em;
}
.settings-profile-handle {
  font-size: 12px; color: var(--text3); margin-top: 3px;
  letter-spacing: -0.01em;
}
.sheet-sep {
  height: 0.5px; background: var(--border);
  margin: 6px 24px;
}

/* ───── 입력 카드 ───── */
.input-card {
  background: linear-gradient(150deg, rgba(241,128,145,0.05) 0%, rgba(255,243,246,0.75) 100%);
  border: 1.5px solid rgba(241,128,145,0.14);
  border-radius: 24px;
  padding: 18px 18px 14px;
  margin-bottom: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input-card:focus-within {
  border-color: rgba(241,128,145,0.5);
  box-shadow: 0 0 0 4px rgba(241,128,145,0.09), 0 6px 24px rgba(241,128,145,0.11);
}
.input-card label { color: var(--text2); font-size: 12px; margin-bottom: 8px; }
.input-card textarea {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(241,128,145,0.1);
  border-radius: 14px;
}
.input-card textarea:focus {
  background: rgba(255,255,255,0.95);
  border-color: var(--accent);
  box-shadow: none;
}

/* ───── 스켈레톤 로딩 ───── */
.skeleton-box {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  margin-top: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.skeleton-box.show { display: block; }
.sk {
  border-radius: 7px;
  background: linear-gradient(90deg, var(--bg3) 25%, rgba(241,128,145,0.08) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
/* 글 길이 슬라이더 */
#lengthSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 8px rgba(241,128,145,0.45);
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.1s;
}
#lengthSlider:active::-webkit-slider-thumb { transform: scale(1.18); cursor: grabbing; }
#lengthSlider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 8px rgba(241,128,145,0.45);
  cursor: grab;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:0.8} 50%{transform:scale(1.18);opacity:1} }
@keyframes aiLoadingFade { 0%,100%{opacity:0.5} 50%{opacity:1} }
/* AI 추천 단계 체크리스트 로딩 */
@keyframes stepFadeIn {
  from { opacity:0; transform:translateX(-10px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes stepSpin {
  to { transform: rotate(360deg); }
}
@keyframes stepCheck {
  0%   { transform: scale(0); opacity:0; }
  60%  { transform: scale(1.3); opacity:1; }
  100% { transform: scale(1); opacity:1; }
}
.ai-step-card {
  background: linear-gradient(145deg,#fff0f4,#fff8fa);
  border-radius: 22px; border: 1.5px solid rgba(241,128,145,0.2);
  box-shadow: 0 8px 32px rgba(241,128,145,0.12);
  padding: 22px 20px;
}
.ai-step-title {
  font-size: 14px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.02em; margin-bottom: 18px; text-align: center;
}
.ai-step-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  margin-bottom: 8px; opacity: 0.3;
  transition: opacity 0.3s, background 0.3s;
  border: 1.5px solid transparent;
}
.ai-step-row.active {
  opacity: 1; background: rgba(241,128,145,0.07);
  border-color: rgba(241,128,145,0.2);
  animation: stepFadeIn 0.35s ease both;
}
.ai-step-row.done {
  opacity: 1; background: rgba(241,128,145,0.04);
}
.ai-step-icon { font-size: 18px; flex-shrink:0; }
.ai-step-label { flex: 1; font-size: 12px; font-weight: 700; color: var(--text2); letter-spacing: -0.01em; }
.ai-step-indicator {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink:0;
  border: 2px solid rgba(241,128,145,0.3); background: transparent;
}
.ai-step-row.active .ai-step-indicator {
  border-color: var(--accent); border-right-color: transparent;
  animation: stepSpin 0.8s linear infinite;
}
.ai-step-row.done .ai-step-indicator {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
  animation: stepCheck 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
/* 포트폴리오 업로드 카드 */
.pf-upload-card {
  flex: 1; border-radius: 14px; padding: 14px 10px;
  text-align: center; cursor: pointer; transition: all 0.18s;
  border: 2px dashed; position: relative; overflow: hidden;
}
.pf-upload-card:hover { transform: translateY(-2px); }
.pf-upload-card input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; font-size:0; }
.pf-upload-card.before { border-color: rgba(100,149,237,0.4); background: rgba(100,149,237,0.05); }
.pf-upload-card.before:hover { border-color: rgba(100,149,237,0.7); background: rgba(100,149,237,0.1); }
.pf-upload-card.after  { border-color: rgba(241,128,145,0.4); background: rgba(241,128,145,0.05); }
.pf-upload-card.after:hover  { border-color: rgba(241,128,145,0.7); background: rgba(241,128,145,0.1); }
.pf-upload-card.general{ border-color: var(--border2); background: var(--bg3); }
.pf-upload-card.general:hover{ border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.04); }
/* 피드글 Before/After 사진 첨부 */
.caption-photo-zone {
  flex:1; border-radius: 12px; padding:12px 8px; text-align:center;
  cursor: pointer; border: 2px dashed; position: relative; transition: all 0.15s;
}
.caption-photo-zone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; font-size:0; }
.caption-photo-zone.before { border-color: rgba(100,149,237,0.4); background: rgba(100,149,237,0.05); }
.caption-photo-zone.after  { border-color: rgba(241,128,145,0.35); background: rgba(241,128,145,0.04); }
.caption-photo-zone.has-img { border-style: solid; }
.caption-photo-zone.before.has-img { border-color: #6495ed; }
.caption-photo-zone.after.has-img  { border-color: var(--accent); }
/* Before/After 필터 탭 */
.ptype-tab {
  padding: 7px 13px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  border: 1.5px solid var(--border2); background: transparent; color: var(--text3);
  cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.ptype-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 8px rgba(241,128,145,0.3);
}

/* ───── 인스타 프레임 결과 ───── */
.insta-frame {
  display: none;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(241,128,145,0.18);
  border-radius: 24px;
  margin-top: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(241,128,145,0.10), 0 2px 8px rgba(0,0,0,0.05);
}
.insta-frame.show { display: block; }
.insta-frame-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 11px;
  border-bottom: 0.5px solid rgba(241,128,145,0.12);
}
.frame-avatar-ring {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  padding: 2px; flex-shrink: 0;
}
.frame-avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--bg2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.frame-avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.insta-frame-handle { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.insta-frame-meta   { font-size: 10px; color: var(--text3); margin-top: 1px; }
.insta-frame-body   { padding: 16px 16px 8px; }
.insta-caption-text { font-size: 13.5px; line-height: 1.9; color: var(--text); white-space: pre-wrap; font-family: 'Pretendard', sans-serif; letter-spacing: -0.01em; }
.insta-hashtag-text { font-size: 12px; color: var(--accent2); line-height: 1.85; margin-top: 10px; word-break: break-word; }
.insta-frame-actions {
  display: flex;
  border-top: 0.5px solid rgba(241,128,145,0.12);
  margin-top: 6px;
}
.frame-action-btn {
  flex: 1; padding: 15px 10px;
  font-size: 13px; font-weight: 600;
  font-family: 'Pretendard', sans-serif; letter-spacing: -0.02em;
  border: none; background: transparent; cursor: pointer;
  transition: background 0.15s; color: var(--text2);
}
.frame-action-btn + .frame-action-btn { border-left: 0.5px solid rgba(241,128,145,0.12); }
.frame-action-btn.primary { color: var(--accent); }
.frame-action-btn:active { background: rgba(241,128,145,0.07); }

/* ───── 복사 토스트 ───── */
.copy-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(25,31,40,0.92);
  backdrop-filter: blur(10px);
  color: #fff; padding: 11px 22px; border-radius: 30px;
  font-size: 13px; font-weight: 500;
  font-family: 'Pretendard', sans-serif; letter-spacing: -0.02em;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9998;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───── 스플래시 스크린 ───── */
#splashScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #F2F4F6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: none; /* 하위 화면 클릭 차단은 visibility로 */
  transition: opacity 0.3s ease;
}
#splashScreen.fade-out {
  opacity: 0;
}
.spl-logo {
  font-size: 52px;
  font-weight: 800;
  color: #F18091;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(18px);
  animation: splLogoIn 0.45s cubic-bezier(0.34,1.56,0.64,1) 0.3s forwards;
}
.spl-sub {
  font-size: 11px;
  color: #8B95A1;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  animation: splFadeIn 0.4s ease 0.6s forwards;
}
.spl-ribbon {
  font-size: 28px;
  margin-top: 28px;
  opacity: 0;
  animation: splFadeIn 0.3s ease 0.6s forwards,
             splBounce 0.7s cubic-bezier(0.36,0.07,0.19,0.97) 0.6s infinite;
}
.spl-progress-wrap {
  width: 160px;
  height: 3px;
  background: rgba(241,128,145,0.15);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
  opacity: 0;
  animation: splFadeIn 0.3s ease 0.9s forwards;
}
.spl-progress-fill {
  height: 100%;
  width: 0%;
  background: #F18091;
  border-radius: 2px;
  animation: splProgress 1.2s cubic-bezier(0.4,0,0.2,1) 0.9s forwards;
}
.spl-slogan {
  font-size: 12px;
  color: #8B95A1;
  margin-top: 24px;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: splFadeIn 0.5s ease 1.5s forwards;
}
@keyframes splLogoIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splFadeIn {
  to { opacity: 1; }
}
@keyframes splBounce {
  0%, 100% { transform: translateY(0); }
  30%       { transform: translateY(-8px); }
  60%       { transform: translateY(-3px); }
}
@keyframes splProgress {
  to { width: 100%; }
}

/* 스플래시 중 메인 콘텐츠 숨김 */
body.splashing > *:not(#splashScreen) {
  opacity: 0;
}

/* ───── Additional inline styles from line 1560-1568 ───── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
.animate-popup-in {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
