/* === 사주쌤 AI 타로 2.0 (드래그 셔플 · CSS 3D 플립 · 원카드 체험) === */
.ss-tv2-wrap {
  margin: 18px 0 24px; padding: 22px 22px 24px; border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f0 100%);
  border: 1px solid #e5dfd4; color: #182131;
}
.ss-tv2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ss-tv2-eyebrow { display: block; font-size: 12px; font-weight: 800; color: #8b6a3e; margin-bottom: 4px; }
.ss-tv2-head h2 { margin: 0; font-family: 'Gowun Batang', Georgia, serif; font-size: 21px; font-weight: 700; color: #182131; line-height: 1.38; word-break: keep-all; text-wrap: balance; }
.ss-tv2-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.66; color: #3f4959; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.ss-tv2-badge { padding: 5px 11px; border-radius: 999px; background: #f2ece0; border: 1px solid #dfd5c3; color: #6c4f27; font-size: 12px; font-weight: 700; white-space: nowrap; }

.ss-tv2-steps {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px;
}
.ss-tv2-steps li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  background: #f8f5ef; border: 1px solid #e5dfd4; font-size: 12.5px; color: #2b3545; font-weight: 600;
  word-break: keep-all;
}
.ss-tv2-steps li strong {
  display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px;
  border-radius: 50%; background: #182131; color: #f8f5ef; font-size: 11px; font-weight: 800; flex: 0 0 auto;
}

.ss-tv2-qbox { margin-bottom: 12px; }
.ss-tv2-qlabel { display: block; font-size: 12.5px; font-weight: 700; color: #364050; margin-bottom: 6px; }
.ss-tv2-qrow { display: flex; gap: 8px; flex-wrap: wrap; }
.ss-tv2-input {
  flex: 1 1 240px; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #d5ccb9; background: #ffffff; color: #182131; font-size: 14px;
}
.ss-tv2-input:focus { outline: none; border-color: #8b6a3e; box-shadow: 0 0 0 3px rgba(139,106,62,.14); }
.ss-tv2-btn-soft {
  height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #d5cab7;
  background: #f2ece0; color: #182131; font-size: 13.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: all .2s cubic-bezier(0.22,1,0.36,1);
}
.ss-tv2-btn-soft:hover { background: #e8decb; border-color: #8b6a3e; }
.ss-tv2-btn-primary {
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid #182131;
  background: #182131; color: #f8f5ef; font-size: 13.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background .2s ease, transform .2s cubic-bezier(0.22,1,0.36,1);
}
.ss-tv2-btn-primary:hover { background: #26354d; }
.ss-tv2-btn-ghost {
  min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid #d7cfc0;
  background: #ffffff; color: #3b4454; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ss-tv2-btn-ghost:hover { border-color: #182131; color: #182131; }

.ss-tv2-pad {
  padding: 14px 16px; border-radius: 14px; border: 1px dashed #c4b397;
  background: #f8f5ef; cursor: grab; user-select: none; touch-action: none; margin-bottom: 16px;
}
.ss-tv2-pad:active { cursor: grabbing; background: #f2ece0; }
.ss-tv2-pad-copy strong { display: block; font-size: 14px; color: #182131; margin-bottom: 4px; word-break: keep-all; }
.ss-tv2-pad-copy span { display: block; font-size: 13px; line-height: 1.58; color: #475160; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.ss-tv2-meter { margin-top: 10px; height: 6px; border-radius: 999px; background: #e5dfd4; overflow: hidden; }
.ss-tv2-meter-fill { height: 100%; background: linear-gradient(90deg, #8b6a3e, #182131); transition: width .18s ease; }

.ss-tv2-fan {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 6px 0 4px;
}
.ss-tv2-fan.is-shuffling .ss-tv2-card-slot { animation: ssTv2Shuffle .42s cubic-bezier(0.22,1,0.36,1); }
@keyframes ssTv2Shuffle {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-10px) scale(.96); }
  100% { transform: translateY(0) scale(1); }
}
.ss-tv2-card-slot {
  aspect-ratio: 2 / 3.1; padding: 0; border: 0; background: transparent; cursor: pointer;
  transition: transform .26s cubic-bezier(0.22,1,0.36,1);
}
.ss-tv2-card-slot:hover { transform: translateY(-8px); }
.ss-tv2-back-art {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 100%; border-radius: 12px;
  background: linear-gradient(160deg, #1d293d 0%, #121a28 100%);
  border: 1.5px solid #b5945e; color: #e9d2a2; box-shadow: 0 8px 18px rgba(18,26,40,.14);
}
.ss-tv2-back-frame { position: absolute; inset: 6px; border: 1px solid rgba(233,210,162,.38); border-radius: 8px; pointer-events: none; }
.ss-tv2-back-star svg { width: 28px; height: 28px; opacity: .92; }
.ss-tv2-back-num { font-size: 11.5px; font-weight: 700; opacity: .88; }

.ss-tv2-stage {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start;
  padding-top: 6px;
}
.ss-tv2-flip-scene { perspective: 1000px; width: 200px; height: 310px; margin: 0 auto; }
.ss-tv2-flip-card {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(0.22,1,0.36,1);
}
.ss-tv2-flip-card.is-flipped { transform: rotateY(180deg); }
.ss-tv2-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 16px; overflow: hidden; box-shadow: 0 14px 30px rgba(24,33,49,.16);
}
.ss-tv2-face-back {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, #1d293d 0%, #121a28 100%);
  border: 2px solid #b5945e; color: #e9d2a2;
}
.ss-tv2-face-back small { font-size: 11px; letter-spacing: .06em; font-weight: 700; opacity: .9; }
.ss-tv2-face-front {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; justify-content: space-between;
  background: #ffffff; border: 2px solid #c9b592;
}
.ss-tv2-img-wrap { flex: 1; overflow: hidden; }
.ss-tv2-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-tv2-img-wrap.is-reversed img, .ss-tv2-ornate.is-reversed .ss-tv2-ornate-ico { transform: rotate(180deg); }
.ss-tv2-ornate {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center; background: linear-gradient(180deg, #faf7f0 0%, #f2ece0 100%); color: #182131;
}
.ss-tv2-ornate-top { font-size: 11px; font-weight: 700; color: #8b6a3e; }
.ss-tv2-ornate-ico { width: 56px; height: 56px; color: #8b6a3e; }
.ss-tv2-ornate-ko { font-family: 'Gowun Batang', Georgia, serif; font-size: 19px; font-weight: 700; color: #182131; }
.ss-tv2-ornate-en { font-size: 11.5px; color: #545d6c; }
.ss-tv2-face-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 12px; background: #182131; color: #f8f5ef; font-size: 12px;
}
.ss-tv2-face-cap span { font-size: 11px; color: #e9d2a2; font-weight: 700; }

.ss-tv2-rmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ss-tv2-verdict {
  display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
}
.ss-tv2-verdict.is-yes { background: #edf5f0; color: #1f4f38; border: 1px solid #b9d7c6; }
.ss-tv2-verdict.is-no { background: #fdf1ef; color: #9a3328; border: 1px solid #e7bbb5; }
.ss-tv2-verdict.is-maybe { background: #f8f1e1; color: #74511c; border: 1px solid #dfd0ad; }
.ss-tv2-card-pill {
  display: inline-flex; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #f2ece0; color: #2b3545; border: 1px solid #dfd5c3;
}
.ss-tv2-rtitle {
  margin: 0 0 12px; font-family: 'Gowun Batang', Georgia, serif; font-size: 20px; line-height: 1.44;
  color: #182131; word-break: keep-all; text-wrap: balance;
}
.ss-tv2-rbox {
  margin-bottom: 10px; padding: 13px 15px; border-radius: 13px; background: #ffffff; border: 1px solid #e5dfd4;
}
.ss-tv2-rkw { display: block; font-size: 12px; font-weight: 800; color: #8b6a3e; margin-bottom: 5px; }
.ss-tv2-rdesc { margin: 0; font-size: 14px; line-height: 1.7; color: #242e3e; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.ss-tv2-rtip {
  margin: 0 0 14px; padding: 12px 15px; border-radius: 13px; background: #f8f5ef; border: 1px solid #dfd5c2;
  font-size: 13.5px; line-height: 1.66; color: #313b4b; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty;
}
.ss-tv2-rtip strong { display: block; font-size: 12px; font-weight: 800; color: #7a5c32; margin-bottom: 3px; }
.ss-tv2-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-tv2-err { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #a8332c; }

@media (max-width: 720px) {
  .ss-tv2-wrap { padding: 16px 15px 18px; }
  .ss-tv2-fan { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ss-tv2-stage { grid-template-columns: 1fr; gap: 16px; }
  .ss-tv2-actions > * { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-tv2-flip-card, .ss-tv2-card-slot { transition: none !important; animation: none !important; }
}
