/* ═══════════════════════════════════════════════════
   연애 비책 (Love Secret) — 운명의 설계도
   CODE-DESTINY Premium
═══════════════════════════════════════════════════ */

/* ── 타일 카드 — 풀블리드 히어로 포스터 ─────────── */
.lovebible-tile {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #1a0010 url('/fuctionassets/lovebible.webp') center 25% / cover no-repeat;
  min-height: 420px;
  box-shadow:
    0 12px 48px rgba(190, 24, 93, 0.55),
    0 0 0 1.5px rgba(249, 168, 212, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-align: left;
  font-family: 'Gowun Dodum', 'Noto Serif KR', serif;
}

.lovebible-tile:hover,
.lovebible-tile:focus-visible {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 28px 72px rgba(236, 72, 153, 0.6),
    0 0 0 2px rgba(249, 168, 212, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  outline: none;
}

.lovebible-tile:active {
  transform: translateY(-2px) scale(0.99);
}

/* 스크림 오버레이 */
.lovebible-tile__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(26, 0, 16, 0.42) 0%,
      rgba(26, 0, 16, 0.1) 28%,
      rgba(10, 0, 8, 0.0) 42%,
      rgba(20, 0, 14, 0.55) 62%,
      rgba(16, 0, 10, 0.88) 80%,
      rgba(12, 0, 8, 0.97) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* 파티클 */
.lovebible-tile__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ls-p {
  position: absolute;
  color: rgba(249, 168, 212, 0.6);
  font-size: 0.85rem;
  animation: ls-float 6s ease-in-out infinite;
}
.ls-p--1 { top: 10%; left: 6%; animation-delay: 0s; font-size: 0.7rem; }
.ls-p--2 { top: 14%; right: 8%; animation-delay: -1.5s; color: rgba(253, 202, 226, 0.5); }
.ls-p--3 { bottom: 32%; left: 4%; animation-delay: -3s; font-size: 0.65rem; }
.ls-p--4 { top: 50%; right: 5%; animation-delay: -2s; color: rgba(249, 168, 212, 0.45); }
.ls-p--5 { bottom: 16%; right: 12%; animation-delay: -4.5s; font-size: 0.7rem; }
.ls-p--6 { top: 68%; left: 10%; animation-delay: -1s; font-size: 0.6rem; color: rgba(244, 114, 182, 0.4); }

@keyframes ls-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-10px) rotate(12deg); opacity: 0.8; }
}

/* 내부 레이아웃 */
.lovebible-tile__inner {
  position: relative;
  z-index: 2;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

/* 상단 배지 행 */
.lovebible-tile__label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.lovebible-tile__label-badge {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #fde68a;
  background: rgba(26, 0, 16, 0.8);
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 5px;
  padding: 4px 9px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lovebible-tile__coin-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.lovebible-tile__coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fce7f3;
  background: rgba(26, 0, 16, 0.78);
  border: 1px solid rgba(249, 168, 212, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.lovebible-tile__compat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.59rem;
  font-weight: 700;
  color: #fda4c8;
  background: rgba(157, 23, 77, 0.38);
  border: 1px solid rgba(249, 168, 212, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.025em;
  box-shadow: 0 1px 6px rgba(190, 24, 93, 0.25);
}

.lovebible-tile__compat-badge b {
  color: #f9a8d4;
  font-weight: 900;
}

.lovebible-tile__coin-badge::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, #fffde0 0%, #ffd040 48%, #c97a08 100%);
  border: 1px solid rgba(255, 200, 50, 0.55);
  box-shadow: 0 0 4px rgba(255, 195, 40, 0.55), inset 0 1px 2px rgba(255, 255, 200, 0.6);
  flex-shrink: 0;
}

/* 바디 텍스트 영역 */
.lovebible-tile__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.lovebible-tile__title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fce7f3;
  margin: 0;
  letter-spacing: 0.03em;
  line-height: 1.18;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 0 32px rgba(190, 24, 93, 0.5);
}

.lovebible-tile__subtitle {
  font-size: 0.88rem;
  color: #f9a8d4;
  margin: 0;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.lovebible-tile__desc {
  font-size: 0.82rem;
  color: rgba(253, 202, 226, 0.88);
  margin: 0;
  line-height: 1.55;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

/* 기능 태그 */
.lovebible-tile__features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.ls-feat {
  font-size: 0.68rem;
  color: #fce7f3;
  background: rgba(26, 0, 16, 0.75);
  border: 1px solid rgba(249, 168, 212, 0.38);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* CTA 버튼 */
.lovebible-tile__cta {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #be185d 0%, #ec4899 50%, #f472b6 100%);
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  text-align: center;
  transition: filter 0.22s, transform 0.22s;
  box-shadow:
    0 4px 20px rgba(190, 24, 93, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.lovebible-tile:hover .lovebible-tile__cta {
  filter: brightness(1.1);
}

/* 모바일 */
@media (max-width: 480px) {
  .lovebible-tile { min-height: 360px; background-position: center 20%; }
  .lovebible-tile__inner { min-height: 360px; padding: 16px 16px 20px; }
  .lovebible-tile__title { font-size: 1.35rem; }
}

/* ╔══════════════════════════════════════════════════╗
   ║  💕 LOVE CODE 연애 시뮬레이션 타일              ║
   ╚══════════════════════════════════════════════════╝ */
.lovesim-tile {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #12000e url('/fuctionassets/lovesimulation.webp') center 20% / cover no-repeat;
  min-height: 400px;
  box-shadow:
    0 12px 48px rgba(190,24,93,.45),
    0 0 0 1.5px rgba(249,168,212,.3),
    inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform .36s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  text-align: left;
  font-family: 'Gowun Dodum','Noto Serif KR',serif;
  text-decoration: none;
}
.lovesim-tile:hover,
.lovesim-tile:focus-visible {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 28px 72px rgba(236,72,153,.58),
    0 0 0 2px rgba(249,168,212,.5),
    inset 0 1px 0 rgba(255,255,255,.14);
  outline: none;
}
.lovesim-tile:active { transform: translateY(-2px) scale(.99); }

/* 스크림 오버레이 */
.lovesim-tile__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(18,0,14,.12) 0%,
      rgba(18,0,14,.28) 40%,
      rgba(18,0,14,.84) 72%,
      rgba(12,0,20,.98) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* 파티클 */
.lovesim-tile__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.lovesim-p {
  position: absolute;
  color: rgba(249,168,212,.6);
  font-size: .85rem;
  animation: lovesim-float 6s ease-in-out infinite;
}
.lovesim-p--1 { top:10%; left:6%;    animation-delay:0s;    font-size:.7rem; }
.lovesim-p--2 { top:14%; right:8%;   animation-delay:-1.5s; color:rgba(253,202,226,.5); }
.lovesim-p--3 { bottom:34%; left:4%; animation-delay:-3s;   font-size:.65rem; }
.lovesim-p--4 { top:50%; right:5%;   animation-delay:-2s;   color:rgba(249,168,212,.45); }
.lovesim-p--5 { bottom:20%; right:12%; animation-delay:-4.5s; font-size:.7rem; }
.lovesim-p--6 { top:65%; left:10%;  animation-delay:-1s;   font-size:.6rem; color:rgba(244,114,182,.4); }
@keyframes lovesim-float {
  0%,100% { transform:translateY(0) rotate(0deg); opacity:.4; }
  50%      { transform:translateY(-10px) rotate(12deg); opacity:.8; }
}

/* 내부 레이아웃 */
.lovesim-tile__inner {
  position: relative;
  z-index: 2;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

/* 상단 배지 행 */
.lovesim-tile__label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.lovesim-tile__label-badge {
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .22em;
  color: #fce7f3;
  background: rgba(26,0,16,.8);
  border: 1px solid rgba(249,168,212,.55);
  border-radius: 5px;
  padding: 4px 9px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.lovesim-tile__coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 800;
  color: #fce7f3;
  background: rgba(26,0,16,.78);
  border: 1px solid rgba(249,168,212,.5);
  border-radius: 999px;
  padding: 4px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.lovesim-tile__coin-badge::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 28%,#fffde0 0%,#ffd040 48%,#c97a08 100%);
  border: 1px solid rgba(255,200,50,.55);
  box-shadow: 0 0 4px rgba(255,195,40,.55),inset 0 1px 2px rgba(255,255,200,.6);
  flex-shrink: 0;
}

/* 바디 텍스트 */
.lovesim-tile__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.lovesim-tile__title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fce7f3;
  margin: 0;
  letter-spacing: .03em;
  line-height: 1.18;
  text-shadow: 0 2px 16px rgba(0,0,0,.8), 0 0 32px rgba(190,24,93,.5);
}
.lovesim-tile__subtitle {
  font-size: .88rem;
  color: #f9a8d4;
  margin: 0;
  letter-spacing: .07em;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.lovesim-tile__desc {
  font-size: .82rem;
  color: rgba(253,202,226,.88);
  margin: 0;
  line-height: 1.55;
  text-shadow: 0 1px 6px rgba(0,0,0,.65);
}

/* 기능 태그 */
.lovesim-tile__features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.lovesim-feat {
  font-size: .68rem;
  color: #fce7f3;
  background: rgba(26,0,16,.75);
  border: 1px solid rgba(249,168,212,.38);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* CTA */
.lovesim-tile__cta {
  margin-top: 14px;
  font-size: .92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  background: linear-gradient(90deg,#be185d 0%,#ec4899 50%,#f472b6 100%);
  border-radius: 12px;
  padding: 13px 18px;
  text-align: center;
  transition: filter .22s, transform .22s;
  box-shadow: 0 6px 24px rgba(190,24,93,.45),0 0 0 1px rgba(249,168,212,.2),inset 0 1px 0 rgba(255,255,255,.15);
}
.lovesim-tile:hover .lovesim-tile__cta { filter: brightness(1.1); }

/* 모바일 */
@media (max-width: 480px) {
  .lovesim-tile { min-height: 340px; background-position: center 20%; }
  .lovesim-tile__inner { min-height: 340px; padding: 16px 16px 20px; }
  .lovesim-tile__title { font-size: 1.35rem; }
}

/* ── 모달 ─────────────────────────────────── */
.ls-modal {
  position: fixed;
  inset: 0;
  z-index: 9001;
  display: flex;
  align-items: stretch;
  justify-content: center;
  font-family: 'Gowun Dodum', 'Noto Serif KR', sans-serif;
}

.ls-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 0, 16, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ls-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(160deg, #1a0010 0%, #2d0020 50%, #1a0010 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(236, 72, 153, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 600px) {
  .ls-modal__panel {
    margin: 20px auto;
    border-radius: 24px;
    max-height: calc(100vh - 40px);
  }
}

/* 헤더 */
.ls-modal__header {
  position: relative;
  padding: 24px 24px 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 0, 16, 0.95) 0%, transparent 100%);
  border-bottom: 1px solid rgba(249, 168, 212, 0.15);
  flex-shrink: 0;
}

.ls-modal__header-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ls-header-star { color: #f9a8d4; font-size: 0.7rem; }
.ls-header-line { height: 1px; width: 40px; background: linear-gradient(90deg, transparent, #f9a8d4, transparent); }
.ls-header-gem { color: #ec4899; font-size: 0.8rem; }

.ls-modal__badge {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #fde68a;
  background: rgba(26, 0, 16, 0.8);
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 4px;
  padding: 3px 10px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.ls-modal__title {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 900;
  color: #fce7f3;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.ls-modal__subtitle {
  font-size: 0.84rem;
  color: #f9a8d4;
  margin: 0;
  line-height: 1.55;
}

.ls-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(249, 168, 212, 0.35);
  border-radius: 50%;
  background: rgba(26, 0, 16, 0.7);
  color: #f9a8d4;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.ls-modal__close:hover { background: rgba(236, 72, 153, 0.35); color: #fff; }

/* ── 시작 화면 ── */
.ls-start-screen {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  color: #fce7f3;
}

.ls-preview-chapters {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ls-chapter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(249, 168, 212, 0.12);
  border-radius: 10px;
}

/* 신규 챕터 하이라이트 */
.ls-chapter-item--new {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.3);
}

.ls-ch-num {
  font-size: 0.7rem;
  font-weight: 900;
  color: #ec4899;
  min-width: 28px;
  text-align: center;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 4px;
  padding: 2px 5px;
}

.ls-ch-title {
  font-size: 0.82rem;
  color: rgba(252, 231, 243, 0.88);
  line-height: 1.45;
}

.ls-start-desc {
  font-size: 0.84rem;
  color: rgba(249, 168, 212, 0.85);
  line-height: 1.65;
  text-align: center;
  max-width: 480px;
  margin: 0;
}

.ls-start-warning {
  font-size: 0.78rem;
  color: rgba(249, 168, 212, 0.7);
  text-align: center;
  margin: 0;
}

.ls-btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  background: linear-gradient(90deg, #be185d 0%, #ec4899 50%, #f472b6 100%);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 28px rgba(190, 24, 93, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: filter 0.2s, transform 0.2s;
}
.ls-btn-generate:hover { filter: brightness(1.1); transform: translateY(-2px); }

.ls-btn-icon { font-size: 0.75rem; opacity: 0.85; }

/* ── 로딩 화면 ── */
.ls-loading-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 28px 24px 22px;
  text-align: center;
  color: #fce7f3;
  position: relative;
  overflow: hidden;
}

/* 배경 플로팅 하트 컨테이너 */
.ls-load-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* JS로 생성되는 떠오르는 하트 */
.ls-load-heart {
  position: absolute;
  bottom: -24px;
  animation: ls-rise linear forwards;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
@keyframes ls-rise {
  0%   { transform: translateY(0) rotate(0deg) scale(1);    opacity: 0.7; }
  30%  { transform: translateY(-30vh) rotate(8deg) scale(0.85); opacity: 0.45; }
  70%  { transform: translateY(-70vh) rotate(18deg) scale(0.55); opacity: 0.25; }
  100% { transform: translateY(-110vh) rotate(28deg) scale(0.25); opacity: 0; }
}

/* 오브 */
.ls-loading-orb {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
}

.ls-orb-pulse {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, transparent 68%);
  animation: ls-orb-pulse 2.4s ease-in-out infinite;
}
@keyframes ls-orb-pulse {
  0%, 100% { transform: scale(0.78); opacity: 0.45; }
  50%       { transform: scale(1.28); opacity: 1; }
}

.ls-orb-ring {
  position: absolute;
  border-radius: 50%;
  animation: ls-spin 3s linear infinite;
}
.ls-orb-ring--1 {
  width: 78px; height: 78px;
  border: 2px dashed rgba(236,72,153,0.5);
  animation-duration: 3.5s;
}
.ls-orb-ring--2 {
  width: 62px; height: 62px;
  border: 1.5px solid rgba(249,168,212,0.38);
  animation-duration: 2.2s;
  animation-direction: reverse;
}
.ls-orb-ring--3 {
  width: 46px; height: 46px;
  border: 1.5px solid rgba(244,114,182,0.28);
  animation-duration: 1.7s;
}
.ls-orb-core {
  position: relative;
  font-size: 1.5rem;
  z-index: 1;
  animation: ls-heartbeat 1.8s ease-in-out infinite;
}
@keyframes ls-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes ls-heartbeat {
  0%, 100% { transform: scale(1); }
  15%       { transform: scale(1.22); }
  30%       { transform: scale(1); }
  45%       { transform: scale(1.14); }
}

.ls-loading-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fce7f3;
  margin: 0;
  z-index: 1;
}

/* ── 사랑 명언 박스 ── */
.ls-load-quote {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(249,168,212,0.2);
  border-radius: 14px;
  z-index: 1;
}
.ls-load-quote__deco {
  font-size: 0.65rem;
  color: rgba(244,114,182,0.5);
  flex-shrink: 0;
  line-height: 1;
}
.ls-load-quote__text {
  font-size: 0.81rem;
  color: rgba(252,231,243,0.85);
  line-height: 1.68;
  margin: 0;
  font-style: italic;
  transition: opacity 0.45s ease;
  text-align: center;
}
.ls-load-quote__text.ls-fade { opacity: 0; }

/* ── 현재 분석 중 인디케이터 ── */
.ls-load-current {
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 1;
}
.ls-load-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ec4899;
  display: inline-block;
  animation: ls-dot 1.4s ease-in-out infinite;
}
.ls-load-dot:nth-child(2) { animation-delay: 0.22s; }
.ls-load-dot:nth-child(3) { animation-delay: 0.44s; }
@keyframes ls-dot {
  0%, 100% { transform: translateY(0);   opacity: 0.35; }
  50%       { transform: translateY(-5px); opacity: 1; }
}
.ls-loading-chapter {
  font-size: 0.82rem;
  color: #f9a8d4;
  margin: 0;
  min-height: 1.4em;
}

/* ── 진행 바 ── */
.ls-loading-progress {
  width: 100%;
  max-width: 340px;
  height: 6px;
  background: rgba(249,168,212,0.14);
  border-radius: 3px;
  overflow: hidden;
  z-index: 1;
}
.ls-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #9d174d, #be185d 30%, #ec4899 65%, #f472b6);
  border-radius: 3px;
  width: 0%;
  transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.ls-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.42) 50%, transparent 100%);
  animation: ls-shimmer 2.2s linear infinite;
}
@keyframes ls-shimmer {
  0%   { transform: translateX(-200%); }
  100% { transform: translateX(300%); }
}

/* ── 챕터 알약 ── */
.ls-load-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 340px;
  z-index: 1;
}
.ls-load-pill {
  font-size: 0.57rem;
  font-weight: 700;
  min-width: 26px;
  height: 22px;
  padding: 0 4px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(249,168,212,0.13);
  color: rgba(249,168,212,0.3);
  transition: background 0.38s, border-color 0.38s, color 0.38s, box-shadow 0.38s;
  user-select: none;
}
.ls-load-pill.done {
  background: rgba(190,24,93,0.22);
  border-color: rgba(236,72,153,0.45);
  color: #f9a8d4;
}
.ls-load-pill.active {
  background: rgba(236,72,153,0.4);
  border-color: #ec4899;
  color: #fff;
  animation: ls-pill-glow 1s ease-in-out infinite alternate;
}
@keyframes ls-pill-glow {
  from { box-shadow: 0 0 4px rgba(236,72,153,0.3); }
  to   { box-shadow: 0 0 13px rgba(236,72,153,0.8); }
}

.ls-progress-text {
  font-size: 0.78rem;
  color: rgba(249,168,212,0.70);
  margin: 0;
  z-index: 1;
}

/* ── 결과 화면 ── */
.ls-result-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.ls-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(249, 168, 212, 0.12);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ls-result-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #ec4899;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.ls-result-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fce7f3;
  margin: 0 0 3px;
}

.ls-result-date {
  font-size: 0.73rem;
  color: rgba(249, 168, 212, 0.72);
  margin: 0;
}

.ls-result-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ls-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(249, 168, 212, 0.45);
  border-radius: 10px;
  padding: 9px 16px;
  background: rgba(190, 24, 93, 0.2);
  color: #fce7f3;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.ls-btn-pdf:hover { background: rgba(190, 24, 93, 0.4); transform: translateY(-1px); }

.ls-btn-kakao {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(254, 229, 0, 0.55);
  border-radius: 10px;
  padding: 9px 14px;
  background: rgba(254, 229, 0, 0.1);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.ls-btn-kakao:hover { background: rgba(254, 229, 0, 0.22); transform: translateY(-1px); }

/* 목차 */
.ls-toc {
  display: flex;
  gap: 5px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(249, 168, 212, 0.1);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.ls-toc::-webkit-scrollbar { display: none; }

.ls-toc-item {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(249, 168, 212, 0.2);
  border-radius: 8px;
  background: rgba(26, 0, 16, 0.6);
  color: rgba(249, 168, 212, 0.55);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ls-toc-item.loaded { color: #f9a8d4; border-color: rgba(249, 168, 212, 0.45); background: rgba(190, 24, 93, 0.12); }
.ls-toc-item.active { background: rgba(190, 24, 93, 0.4); border-color: #ec4899; color: #fff; }
.ls-toc-item:hover:not(.active) { background: rgba(190, 24, 93, 0.2); color: #fce7f3; }

/* 챕터 콘텐츠 */
.ls-chapter-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
  color: #fce7f3;
}

.ls-chapter-wrap { max-width: 680px; margin: 0 auto; }

.ls-chapter-header {
  border-bottom: 1px solid rgba(249, 168, 212, 0.18);
  margin-bottom: 26px;
  padding-bottom: 20px;
}

.ls-chapter-num {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #ec4899;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.ls-chapter-title {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 900;
  color: #fce7f3;
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: 0.025em;
}

.ls-chapter-sub {
  font-size: 0.85rem;
  color: #f9a8d4;
  margin: 0;
  letter-spacing: 0.04em;
}

.ls-chapter-body { line-height: 1.88; font-size: 0.92rem; }

/* 마크다운 스타일 */
.ls-md-h1, .ls-md-h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fce7f3;
  margin: 24px 0 10px;
  border-left: 3px solid #ec4899;
  padding-left: 10px;
  line-height: 1.4;
}
.ls-md-h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #f9a8d4;
  margin: 18px 0 8px;
}
.ls-md-h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fbb6ce;
  margin: 14px 0 6px;
}
.ls-md-p { margin: 0 0 12px; color: rgba(252, 231, 243, 0.9); }
.ls-md-ul { margin: 0 0 12px; padding-left: 22px; }
.ls-md-li { margin-bottom: 5px; color: rgba(252, 231, 243, 0.88); }
.ls-md-hr { border: none; border-top: 1px solid rgba(249, 168, 212, 0.2); margin: 20px 0; }

.ls-ch-empty {
  color: rgba(249, 168, 212, 0.55);
  font-size: 0.85rem;
  text-align: center;
  padding: 32px;
}

/* ── 에러 화면 ── */
.ls-error-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
}

.ls-error-icon { font-size: 2.5rem; }

.ls-error-msg {
  font-size: 0.9rem;
  color: rgba(252, 231, 243, 0.82);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}

.ls-btn-retry {
  border: 1px solid rgba(249, 168, 212, 0.45);
  border-radius: 10px;
  padding: 10px 24px;
  background: rgba(190, 24, 93, 0.25);
  color: #fce7f3;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.ls-btn-retry:hover { background: rgba(190, 24, 93, 0.45); }

/* ── 마무리 배너 ── */
.ls-epilogue-banner {
  margin: 28px 0 8px;
  padding: 32px 24px 28px;
  background: linear-gradient(135deg, rgba(80, 0, 50, 0.72) 0%, rgba(157, 23, 77, 0.5) 60%, rgba(80, 0, 50, 0.72) 100%);
  border: 1px solid rgba(244, 114, 182, 0.38);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 4px 28px rgba(236, 72, 153, 0.15);
  animation: lsEpilogueFadeIn 0.8s ease both;
}
@keyframes lsEpilogueFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ls-epilogue-deco {
  font-size: 1.4rem;
  letter-spacing: .35em;
  color: #f9a8d4;
  margin-bottom: 14px;
}
.ls-epilogue-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fce7f3;
  margin: 0 0 10px;
  letter-spacing: .02em;
}
.ls-epilogue-msg {
  font-size: 0.92rem;
  color: rgba(252, 231, 243, 0.88);
  line-height: 1.75;
  margin: 0 0 22px;
}
.ls-epilogue-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ls-btn-regen {
  border: 1px solid rgba(249, 168, 212, 0.4);
  border-radius: 10px;
  padding: 10px 20px;
  background: rgba(157, 23, 77, 0.22);
  color: #fce7f3;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.ls-btn-regen:hover { background: rgba(157, 23, 77, 0.45); }

/* ── 다시 생성 버튼 ── (제거됨) */

/* ══════════════════════════════════════════════════
   모바일 반응형 — 완전 최적화
══════════════════════════════════════════════════ */

/* iOS / Android 모멘텀 스크롤 */
.ls-chapter-content,
.ls-start-screen {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── 600px 미만: 모달 풀스크린 ── */
@media (max-width: 599px) {
  /* 모달 오버레이: 바닥 정렬 (풀스크린 패널) */
  .ls-modal {
    align-items: flex-end;
  }

  .ls-modal__panel {
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    /* iOS 노치/홈 인디케이터 대응 */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  /* 헤더 */
  .ls-modal__header {
    padding: 16px 16px 12px;
    padding-top: max(16px, env(safe-area-inset-top, 16px));
  }

  .ls-modal__title {
    font-size: 1.2rem;
  }

  .ls-modal__subtitle {
    font-size: 0.78rem;
  }

  .ls-modal__close {
    top: max(12px, env(safe-area-inset-top, 12px));
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  /* TOC — 큰 터치 타겟 */
  .ls-toc {
    padding: 8px 12px;
    gap: 6px;
  }

  .ls-toc-item {
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
    border-radius: 9px;
    flex-shrink: 0;
  }

  /* 결과 헤더: 2행 레이아웃 */
  .ls-result-header {
    padding: 10px 14px;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ls-result-title-area {
    width: 100%;
  }

  .ls-result-name {
    font-size: 0.95rem;
  }

  .ls-result-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .ls-btn-pdf,
  .ls-btn-kakao {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 10px 10px;
    min-height: 44px;
  }

  /* 챕터 콘텐츠 */
  .ls-chapter-content {
    padding: 14px;
  }

  .ls-chapter-body {
    font-size: 0.88rem;
    line-height: 1.82;
  }

  .ls-chapter-title {
    font-size: 1.05rem;
  }

  /* 시작 화면 */
  .ls-start-screen {
    padding: 16px;
    gap: 14px;
  }

  .ls-preview-chapters {
    max-width: 100%;
  }

  .ls-chapter-item {
    padding: 7px 10px;
    gap: 9px;
  }

  .ls-ch-title {
    font-size: 0.77rem;
  }

  .ls-btn-generate {
    width: 100%;
    max-width: none;
    justify-content: center;
    font-size: 0.9rem;
    padding: 15px 20px;
  }

  /* 로딩 */
  .ls-loading-screen {
    padding: 22px 14px 18px;
    gap: 13px;
  }
  .ls-load-quote {
    max-width: calc(100% - 8px);
  }

  /* 에러 */
  .ls-error-screen {
    padding: 24px 16px;
  }
}

/* ── 600–768px: 태블릿 조정 ── */
@media (min-width: 600px) and (max-width: 768px) {
  .ls-modal__panel {
    margin: 12px auto;
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .ls-toc-item {
    width: 36px;
    height: 36px;
  }
}

/* ── 가로 모드 + 소형 기기 (landscape 높이 < 500px) ── */
@media (max-height: 500px) and (max-width: 900px) {
  .ls-modal__header {
    padding: 8px 16px 6px;
  }

  .ls-modal__title {
    font-size: 1.05rem;
    margin: 0 0 2px;
  }

  .ls-modal__subtitle {
    display: none;
  }

  .ls-modal__header-deco {
    display: none;
  }

  .ls-modal__badge {
    margin-bottom: 4px;
    font-size: 0.55rem;
  }

  .ls-loading-screen {
    gap: 9px;
    padding: 10px 12px;
  }

  .ls-loading-orb {
    width: 56px;
    height: 56px;
  }

  .ls-orb-pulse { width: 64px; height: 64px; }
  .ls-orb-ring--1 { width: 48px; height: 48px; }
  .ls-orb-ring--2 { width: 38px; height: 38px; }
  .ls-orb-ring--3 { width: 28px; height: 28px; }
  .ls-orb-core    { font-size: 1.1rem; }

  .ls-load-quote  { display: none; }

  .ls-start-screen {
    padding: 10px 14px;
    gap: 8px;
  }

  .ls-preview-chapters {
    max-height: 180px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── 320px 이하 초소형 기기 ── */
@media (max-width: 360px) {
  .lovebible-tile {
    min-height: 320px;
    background-position: center 20%;
  }

  .lovebible-tile__inner {
    min-height: 320px;
    padding: 14px 14px 18px;
  }

  .lovebible-tile__title  { font-size: 1.22rem; }
  .lovebible-tile__desc   { font-size: 0.76rem; }
  .lovebible-tile__subtitle { font-size: 0.82rem; }

  .ls-feat {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .ls-toc-item {
    width: 34px;
    height: 34px;
    font-size: 0.62rem;
  }

  .ls-chapter-body {
    font-size: 0.85rem;
  }

  .ls-result-actions {
    gap: 5px;
  }

  .ls-btn-pdf,
  .ls-btn-kakao {
    font-size: 0.74rem;
    padding: 9px 8px;
  }
}

/* ── 타일: 480–600px 중간 범위 ── */
@media (min-width: 481px) and (max-width: 599px) {
  .lovebible-tile {
    min-height: 380px;
  }

  .lovebible-tile__inner {
    min-height: 380px;
  }
}

/* ── 파트너 섹션 모바일 ── */
@media (max-width: 599px) {
  .ls-partner-section {
    max-width: 100%;
    border-radius: 12px;
  }

  .ls-partner-toggle {
    padding: 12px 14px;
    font-size: 0.84rem;
  }

  .ls-partner-form {
    padding: 12px 14px 14px;
    gap: 10px;
  }

  .ls-partner-row {
    flex-direction: column;
    gap: 8px;
  }

  .ls-partner-gender-btn {
    flex: 1;
    min-height: 40px;
  }
}


/*  상대방 사주 입력 섹션  */
.ls-partner-section {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(249, 168, 212, 0.18);
  border-radius: 14px;
  overflow: hidden;
}

.ls-partner-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fce7f3;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  transition: background 0.2s;
}
.ls-partner-toggle:hover { background: rgba(236, 72, 153, 0.08); }

.ls-partner-toggle-icon {
  font-size: 1rem;
}

.ls-partner-toggle-label {
  flex: 1;
}

.ls-partner-toggle-badge {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ls-partner-toggle-arrow {
  font-size: 0.7rem;
  color: rgba(249,168,212,0.6);
  transition: transform 0.22s;
}
.ls-partner-section.open .ls-partner-toggle-arrow {
  transform: rotate(180deg);
}

.ls-partner-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px 18px;
}
.ls-partner-section.open .ls-partner-form {
  display: flex;
}

.ls-partner-note {
  font-size: 0.75rem;
  color: rgba(249, 168, 212, 0.65);
  line-height: 1.5;
  margin: 0;
  padding: 8px 12px;
  background: rgba(236,72,153,0.06);
  border-radius: 8px;
  border-left: 2px solid rgba(236,72,153,0.3);
}

.ls-partner-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ls-partner-label {
  font-size: 0.78rem;
  color: rgba(252, 231, 243, 0.75);
  min-width: 36px;
  flex-shrink: 0;
}

.ls-partner-input,
.ls-partner-select {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(249,168,212,0.25);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fce7f3;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.ls-partner-input::placeholder { color: rgba(249,168,212,0.4); }
.ls-partner-input:focus,
.ls-partner-select:focus { border-color: rgba(236,72,153,0.6); box-shadow: 0 0 0 3px rgba(236,72,153,0.22); }
.ls-partner-select option { background: #2d0022; color: #fce7f3; }

.ls-partner-gender {
  display: flex;
  gap: 8px;
  flex: 1;
}
.ls-partner-gender-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid rgba(249,168,212,0.25);
  background: rgba(255,255,255,0.05);
  color: rgba(252,231,243,0.7);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.ls-partner-gender-btn.active {
  background: rgba(236,72,153,0.25);
  border-color: rgba(236,72,153,0.55);
  color: #f9a8d4;
}

.ls-partner-birth-row {
  display: flex;
  gap: 8px;
  flex: 1;
}
.ls-partner-birth-row .ls-partner-input {
  text-align: center;
}
.ls-partner-birth-row .ls-partner-input.year { flex: 2; }
.ls-partner-birth-row .ls-partner-input.month,
.ls-partner-birth-row .ls-partner-input.day { flex: 1.2; }

.ls-partner-hour-note {
  font-size: 0.72rem;
  color: rgba(249,168,212,0.5);
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════
   파트너 사주 입력 전용 화면 (lsPartnerScreen)
═══════════════════════════════════════════════════ */

.ls-pscreen {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  overflow-y: auto;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

/* 헤더 영역 */
.ls-pscreen__header {
  text-align: center;
  padding: 28px 20px 22px;
  background: linear-gradient(160deg, rgba(74,0,48,.7) 0%, rgba(30,0,22,.85) 100%);
  border-bottom: 1px solid rgba(249,168,212,.15);
  margin-bottom: 0;
}

.ls-pscreen__badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f472b6;
  background: rgba(236,72,153,.15);
  border: 1px solid rgba(236,72,153,.35);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 14px;
}

.ls-pscreen__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fce7f3;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.ls-pscreen__desc {
  font-size: 0.82rem;
  color: rgba(252,231,243,.65);
  line-height: 1.65;
  margin: 0;
}
.ls-pscreen__br { display: none; }
@media (min-width:460px) { .ls-pscreen__br { display: inline; } }

/* 실시간 사주 미리보기 카드 */
.ls-pscreen__preview {
  margin: 16px 20px 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(249,168,212,.2);
  border-radius: 14px;
  padding: 14px 16px 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scaleY(.94);
  max-height: 0;
  transition: opacity .32s ease, transform .32s ease, max-height .35s ease, padding .3s ease, margin .3s ease;
  pointer-events: none;
}
.ls-pscreen__preview.visible {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  max-height: 180px;
  pointer-events: auto;
}

.ls-pscreen__preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f472b6;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 10px;
  text-align: center;
}

.ls-pscreen__pillars {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.ls-pscreen__pillar-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(249,168,212,.22);
  border-radius: 10px;
  padding: 8px 4px;
}
.ls-pscreen__pillar-card--dim {
  opacity: .45;
}

.ls-pscreen__pillar-lbl {
  font-size: 0.58rem;
  color: rgba(249,168,212,.6);
  letter-spacing: .04em;
}
.ls-pscreen__pillar-stem {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fde68a;
  line-height: 1;
}
.ls-pscreen__pillar-branch {
  font-size: 1.1rem;
  font-weight: 700;
  color: #86efac;
  line-height: 1;
}
.ls-pscreen__pillar-ten {
  font-size: 0.6rem;
  color: rgba(249,168,212,.75);
  background: rgba(236,72,153,.12);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

.ls-pscreen__preview-info {
  font-size: 0.72rem;
  color: rgba(249,168,212,.65);
  text-align: center;
  margin: 8px 0 0;
}

/* 입력 폼 */
.ls-pscreen__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 0;
}

.ls-pscreen__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ls-pscreen__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(252,231,243,.8);
  letter-spacing: .02em;
}
.ls-pscreen__opt {
  font-weight: 400;
  color: rgba(249,168,212,.5);
  font-size: .75em;
}
.ls-pscreen__req {
  font-weight: 700;
  color: #f472b6;
  font-size: .8em;
}

.ls-pscreen__input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(249,168,212,.25);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fce7f3;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.ls-pscreen__input::placeholder { color: rgba(249,168,212,.38); }
.ls-pscreen__input:focus {
  border-color: rgba(236,72,153,.65);
  box-shadow: 0 0 0 3px rgba(236,72,153,.2);
}

.ls-pscreen__birth {
  display: flex;
  gap: 8px;
}
.ls-pscreen__birth .ls-pscreen__input { flex: 2; }
.ls-pscreen__birth .ls-pscreen__input.sm { flex: 1; text-align: center; }

.ls-pscreen__gender {
  display: flex;
  gap: 8px;
}
.ls-pscreen__gender-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(249,168,212,.25);
  background: rgba(255,255,255,.05);
  color: rgba(252,231,243,.6);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  min-height: 42px;
}
.ls-pscreen__gender-btn.active {
  background: rgba(236,72,153,.25);
  border-color: rgba(236,72,153,.6);
  color: #f9a8d4;
  box-shadow: 0 0 0 2px rgba(236,72,153,.18);
}
.ls-pscreen__gender-btn:hover:not(.active) { background: rgba(255,255,255,.09); }

.ls-pscreen__select {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(249,168,212,.25);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fce7f3;
  font-size: 0.88rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f472b6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.ls-pscreen__select:focus {
  border-color: rgba(236,72,153,.65);
  box-shadow: 0 0 0 3px rgba(236,72,153,.2);
}
.ls-pscreen__select option { background: #2d0022; color: #fce7f3; }

.ls-pscreen__hint {
  font-size: 0.72rem;
  color: rgba(249,168,212,.48);
  margin: 2px 0 0;
  line-height: 1.4;
}

/* 액션 버튼 */
.ls-pscreen__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 8px;
}

.ls-pscreen__btn-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #be185d 0%, #ec4899 50%, #f472b6 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
  box-shadow: 0 6px 30px rgba(190,24,93,.55), 0 0 0 1.5px rgba(249,168,212,.25);
  min-height: 52px;
}
.ls-pscreen__btn-start:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 40px rgba(236,72,153,.6), 0 0 0 2px rgba(249,168,212,.4);
}
.ls-pscreen__btn-start:active { transform: translateY(0) scale(.98); }
.ls-pscreen__btn-icon { font-size: 1.1rem; }
.ls-pscreen__coin-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.4);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.ls-pscreen__coin-notice {
  margin: 6px 20px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(250,200,80,.1);
  border: 1px solid rgba(250,200,80,.28);
  color: rgba(255,220,100,.85);
  font-size: .8rem;
  line-height: 1.5;
  text-align: center;
}

.ls-pscreen__btn-solo {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(249,168,212,.18);
  background: transparent;
  color: rgba(249,168,212,.6);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
  min-height: 44px;
  text-align: center;
}
.ls-pscreen__btn-solo:hover {
  color: #f9a8d4;
  border-color: rgba(249,168,212,.38);
  background: rgba(255,255,255,.04);
}

/* 모바일 최적화 */
@media (max-width: 599px) {
  .ls-pscreen__header { padding: 22px 16px 18px; }
  .ls-pscreen__title { font-size: 1.15rem; }
  .ls-pscreen__preview { margin: 12px 14px 0; }
  .ls-pscreen__form { padding: 14px 16px 0; }
  .ls-pscreen__actions { padding: 18px 16px 8px; }
  .ls-pscreen__pillar-stem { font-size: 1.1rem; }
  .ls-pscreen__pillar-branch { font-size: 1rem; }
  .ls-pscreen__btn-start { font-size: 0.92rem; padding: 13px 16px; }
}
/* ls-marketing */
.ls-marketing-hero{padding:20px 20px 12px;text-align:center}
.ls-trust-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:14px}
.ls-trust-badge{display:inline-flex;align-items:center;gap:4px;font-size:.72rem;font-weight:700;letter-spacing:.02em;padding:4px 10px;border-radius:20px;background:linear-gradient(135deg,rgba(255,150,180,.18),rgba(200,60,100,.12));border:1px solid rgba(255,150,180,.35);color:#ffb3cc;white-space:nowrap}
.ls-marketing-headline{font-size:1.12rem;font-weight:700;color:#ffe0ee;margin:0 0 8px;line-height:1.4}
.ls-marketing-headline strong{color:#ff91b8}
.ls-marketing-sub{font-size:.82rem;color:rgba(255,210,230,.75);line-height:1.6;margin:0}
.ls-why-section{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 18px;border-top:1px solid rgba(255,150,180,.15);border-bottom:1px solid rgba(255,150,180,.15);margin:10px 0}
.ls-why-item{display:flex;align-items:flex-start;gap:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,150,180,.12);border-radius:10px;padding:10px 12px}
.ls-why-icon{font-size:1.3rem;flex-shrink:0;line-height:1;margin-top:2px}
.ls-why-item strong{display:block;font-size:.78rem;font-weight:700;color:#ffb3cc;margin-bottom:3px}
.ls-why-item span{font-size:.72rem;color:rgba(255,190,210,.7);line-height:1.45}
.ls-recommend-section{padding:12px 18px;background:rgba(255,150,180,.05);border-radius:12px;margin:8px 16px;border:1px solid rgba(255,150,180,.15)}
.ls-recommend-title{font-size:.76rem;font-weight:700;color:rgba(255,150,180,.7);letter-spacing:.06em;text-align:center;margin:0 0 8px}
.ls-recommend-list{display:flex;flex-direction:column;gap:5px}
.ls-recommend-item{font-size:.78rem;color:rgba(255,235,245,.78);padding:6px 10px;border-left:2px solid rgba(255,150,180,.35);line-height:1.4}
@media(max-width:480px){.ls-why-section{grid-template-columns:1fr}.ls-marketing-headline{font-size:1rem}}