/* ============================================
   Moa Tarot - 메인 스타일시트
   신비로운 다크 테마
   ============================================ */

/* === CSS 변수 === */
:root {
    --bg-void:      #080810;
    --bg-deep:      #0d0d1a;
    --bg-surface:   #12121f;
    --bg-card:      #1a1a2e;
    --bg-card-hover:#1f1f3a;

    --gold-bright:  #f5c842;
    --gold-mid:     #d4a520;
    --gold-dim:     #8a6a10;
    --gold-glow:    rgba(212, 165, 32, 0.15);

    --purple-light: #c9b8f0;
    --purple-mid:   #7b6bc8;
    --purple-dim:   #3d3468;

    --text-primary:   #f0ead6;
    --text-secondary: #a89880;
    --text-muted:     #5c5248;

    --border-dim:   rgba(212, 165, 32, 0.12);
    --border-mid:   rgba(212, 165, 32, 0.3);
    --border-bright:rgba(212, 165, 32, 0.6);

    --font-display: 'Cinzel Decorative', serif;
    --font-title:   'Cinzel', serif;
    --font-body:    'Noto Serif KR', serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-card: 14px;
}

/* === 리셋 & 기본 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* === 스크롤바 === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ============================================
   헤더
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8, 8, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.1em;
    color: var(--gold-bright);
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }

.logo-star {
    font-size: 12px;
    opacity: 0.7;
    animation: twinkle 2s infinite alternate;
}
.logo-tarot { color: var(--purple-light); }

.header-member, .header-guest {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.member-name { color: var(--text-secondary); }
.member-logout, .header-login-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-mid);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gold-mid);
    transition: all 0.2s;
}
.member-logout:hover, .header-login-btn:hover {
    background: var(--gold-glow);
    border-color: var(--border-bright);
}

/* ============================================
   메인 - 히어로
   ============================================ */
.main-wrap { padding-top: 64px; }

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, #1a1040 0%, #080810 60%);
}

.star-field {
    position: absolute;
    inset: 0;
}

.moon-glow {
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(201, 184, 240, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
}

.brand-badge {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--gold-mid);
    border: 1px solid var(--border-mid);
    padding: 6px 20px;
    border-radius: 20px;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-moa {
    font-family: var(--font-display);
    font-size: clamp(56px, 12vw, 100px);
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 0.15em;
    line-height: 1;
    text-shadow: 0 0 60px rgba(245, 200, 66, 0.3);
}

.title-tarot {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 50px);
    font-weight: 400;
    color: var(--purple-light);
    letter-spacing: 0.5em;
    line-height: 1.2;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 0.6s both;
}
.scroll-arrow {
    animation: bounce 2s infinite;
    font-size: 18px;
}

/* ============================================
   카테고리 섹션
   ============================================ */
.categories-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-ornament {
    font-size: 12px;
    color: var(--gold-dim);
    letter-spacing: 0.5em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 14px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.cat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-card);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: var(--radius-card);
}

.cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-mid);
}
.cat-card:hover::before { opacity: 1; }

/* 카테고리 색상 */
.cat-pink::before  { background: radial-gradient(ellipse at 0% 50%, rgba(212, 83, 126, 0.08), transparent 60%); }
.cat-gold::before  { background: radial-gradient(ellipse at 0% 50%, rgba(212, 165, 32, 0.08), transparent 60%); }
.cat-blue::before  { background: radial-gradient(ellipse at 0% 50%, rgba(55, 138, 221, 0.08), transparent 60%); }
.cat-teal::before  { background: radial-gradient(ellipse at 0% 50%, rgba(29, 158, 117, 0.08), transparent 60%); }
.cat-purple::before{ background: radial-gradient(ellipse at 0% 50%, rgba(123, 107, 200, 0.08), transparent 60%); }
.cat-green::before { background: radial-gradient(ellipse at 0% 50%, rgba(99, 153, 34, 0.08), transparent 60%); }

.cat-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-dim);
    flex-shrink: 0;
    position: relative; z-index: 1;
    transition: all 0.3s;
}
.cat-card:hover .cat-icon {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-mid);
}

.cat-pink  .cat-icon { color: #e884ab; }
.cat-gold  .cat-icon { color: var(--gold-bright); }
.cat-blue  .cat-icon { color: #7ab5ef; }
.cat-teal  .cat-icon { color: #5dcaa5; }
.cat-purple.cat-icon { color: var(--purple-light); }
.cat-green .cat-icon { color: #97c459; }

.cat-body {
    flex: 1;
    position: relative; z-index: 1;
}

.cat-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cat-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.cat-arrow {
    font-size: 16px;
    color: var(--text-muted);
    position: relative; z-index: 1;
    transition: transform 0.2s, color 0.2s;
}
.cat-card:hover .cat-arrow {
    transform: translateX(4px);
    color: var(--gold-mid);
}

/* ============================================
   정보 섹션
   ============================================ */
.info-section {
    background: var(--bg-deep);
    padding: 80px 24px;
    border-top: 1px solid var(--border-dim);
}

.info-cards {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.info-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-card);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.info-card h4 {
    font-family: var(--font-title);
    font-size: 15px;
    color: var(--gold-mid);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.info-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   타로 리딩 페이지
   ============================================ */
.reading-wrap {
    padding-top: 64px;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, #0e0e22 0%, var(--bg-void) 70%);
}

.reading-nav {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}
.back-btn:hover { color: var(--gold-mid); }

.type-badge {
    font-family: var(--font-title);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--gold-dim);
    border: 1px solid var(--border-dim);
    padding: 4px 14px;
    border-radius: 20px;
}

.reading-header {
    text-align: center;
    padding: 48px 24px 32px;
}

.reading-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 7vw, 52px);
    color: var(--gold-bright);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.reading-sub {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* === 카드 선택 === */
.card-select-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.instruction-text {
    text-align: center;
    margin-bottom: 40px;
}
.instruction-text p {
    font-family: var(--font-title);
    font-size: 15px;
    color: var(--gold-mid);
    letter-spacing: 0.1em;
}
.inst-sub {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    margin-top: 6px;
}

.card-deck-container {
    margin: 0 auto 40px;
    padding: 20px 0;
    overflow: hidden;
}

.card-fan {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
}

.tarot-card-back {
    width: 68px;
    height: 110px;
    border-radius: 8px;
    border: 1px solid var(--border-mid);
    background: linear-gradient(135deg, #1a1440, #0d0d20);
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    flex-shrink: 0;
    animation: cardAppear 0.5s ease calc(var(--card-pos) * 0.03s) both;
}

.tarot-card-back:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: var(--gold-bright);
    z-index: 10;
}

.tarot-card-back.selected {
    opacity: 0.3;
    pointer-events: none;
    transform: scale(0.9);
}

.card-back-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(123,107,200,0.05) 4px,
        rgba(123,107,200,0.05) 8px
    );
}

.card-pattern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--border-mid);
    border-radius: 50%;
}

.card-star {
    color: var(--gold-dim);
    font-size: 18px;
}

/* === 선택 슬롯 === */
.selected-slots {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.slot {
    text-align: center;
}

.slot-label {
    font-family: var(--font-title);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.slot-placeholder {
    width: 72px;
    height: 116px;
    border-radius: 8px;
    border: 2px dashed var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--border-dim);
    transition: all 0.3s;
    margin: 0 auto;
}

.slot.filled .slot-placeholder {
    border-style: solid;
    border-color: var(--border-mid);
    background: var(--bg-card);
    color: var(--gold-mid);
    font-family: var(--font-body);
    font-size: 11px;
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
}

.slot-card-name {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

/* === 운세 보기 버튼 === */
.reveal-btn {
    display: block;
    margin: 0 auto;
    padding: 16px 48px;
    background: transparent;
    border: 1px solid var(--border-mid);
    border-radius: 40px;
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-size: 14px;
    letter-spacing: 0.15em;
    cursor: not-allowed;
    transition: all 0.3s;
    text-align: center;
}

.reveal-btn .btn-sub {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

.reveal-btn.ready {
    cursor: pointer;
    border-color: var(--gold-mid);
    color: var(--gold-bright);
    background: var(--gold-glow);
    animation: pulseGold 2s infinite;
}
.reveal-btn.ready:hover {
    background: rgba(212, 165, 32, 0.25);
    transform: scale(1.02);
}

/* ============================================
   결과 영역
   ============================================ */
.result-area {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.result-header {
    text-align: center;
    margin-bottom: 48px;
}

.result-ornament {
    font-size: 24px;
    color: var(--gold-mid);
    margin-bottom: 12px;
}

.result-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold-bright);
    letter-spacing: 0.1em;
}

.result-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.result-card-item {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    text-align: center;
    animation: fadeInUp 0.6s ease both;
}

.result-card-item:nth-child(2) { animation-delay: 0.1s; }
.result-card-item:nth-child(3) { animation-delay: 0.2s; }

.result-card-label {
    font-family: var(--font-title);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.result-card-face {
    width: 100%;
    aspect-ratio: 0.62;
    max-width: 160px;
    margin: 0 auto 14px;
    border-radius: 10px;
    border: 1px solid var(--border-mid);
    background: linear-gradient(155deg, #1e1840, #0f0f22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 8px;
    transition: transform 0.3s;
}
.result-card-face:hover { transform: scale(1.03); }

.result-card-face.reversed {
    transform: rotate(180deg);
}
.result-card-face.reversed:hover { transform: rotate(180deg) scale(1.03); }

.card-face-id {
    font-family: var(--font-title);
    font-size: 28px;
    color: var(--gold-dim);
    line-height: 1;
}
.card-face-name {
    font-family: var(--font-title);
    font-size: 11px;
    color: var(--gold-mid);
    letter-spacing: 0.05em;
    text-align: center;
}
.card-face-kr {
    font-size: 13px;
    color: var(--text-secondary);
}
.card-face-dir {
    font-size: 10px;
    color: var(--text-muted);
    border: 1px solid var(--border-dim);
    padding: 2px 8px;
    border-radius: 10px;
}

.result-card-meaning {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === AI 해석 === */
.ai-reading {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-card);
    padding: 32px;
    margin-bottom: 32px;
}

.ai-reading-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-dim);
}

.ai-icon { font-size: 22px; }

.ai-reading-header h3 {
    font-family: var(--font-title);
    font-size: 16px;
    color: var(--gold-mid);
    letter-spacing: 0.1em;
}

.ai-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* 로딩 점 */
.loading-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}
.loading-dots span {
    width: 8px; height: 8px;
    background: var(--gold-dim);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* === 결과 액션 버튼 === */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 14px 36px;
    border-radius: 32px;
    font-family: var(--font-title);
    font-size: 13px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn.primary {
    background: var(--gold-glow);
    border: 1px solid var(--gold-mid);
    color: var(--gold-bright);
}
.action-btn.primary:hover {
    background: rgba(212, 165, 32, 0.2);
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-mid);
    color: var(--text-secondary);
}
.action-btn.secondary:hover {
    border-color: var(--border-bright);
    color: var(--text-primary);
}

/* ============================================
   푸터
   ============================================ */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-dim);
    padding: 40px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--gold-dim);
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-links a:hover { color: var(--gold-dim); }
.footer-links span { opacity: 0.4; }

.footer-copy {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   애니메이션
   ============================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes twinkle {
    from { opacity: 0.4; }
    to   { opacity: 1; }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}
@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,165,32,0); }
    50%       { box-shadow: 0 0 20px 4px rgba(212,165,32,0.15); }
}
@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1; }
}
@keyframes starFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    50%       { transform: translateY(-6px) translateX(3px); opacity: 1; }
}

/* ============================================
   반응형
   ============================================ */
@media (max-width: 600px) {
    .categories-grid { grid-template-columns: 1fr; }
    .card-fan { gap: 5px; }
    .tarot-card-back { width: 52px; height: 84px; }
    .selected-slots { gap: 12px; }
    .result-cards { gap: 12px; }
    .result-card-item { min-width: 140px; }
    .ai-reading { padding: 20px; }
    .result-actions { flex-direction: column; align-items: stretch; }
    .action-btn { text-align: center; }
}

/* ============================================
   타로 카드 실제 이미지 스타일
   ============================================ */

/* ── 뒷면 카드 (선택 전) ── */
.tarot-card-back {
    width: 72px;
    height: 116px;
    border-radius: 8px;
    border: 1px solid var(--border-mid);
    background: linear-gradient(135deg, #1a1440, #0d0d20);
    cursor: pointer;
    transition: transform .3s, border-color .3s, opacity .3s;
    position: relative;
    flex-shrink: 0;
    animation: cardAppear .5s ease calc(var(--card-pos) * .03s) both;
}
.tarot-card-back:hover {
    transform: translateY(-14px) scale(1.06);
    border-color: var(--gold-bright);
    z-index: 10;
}
.tarot-card-back.selected {
    opacity: .2;
    pointer-events: none;
    transform: scale(.88);
}

/* ── 슬롯 이미지 ── */
.slot-placeholder {
    width: 72px;
    height: 116px;
    border-radius: 8px;
    border: 2px dashed var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--border-dim);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    transition: border-color .3s;
}
.slot.filled .slot-placeholder {
    border-style: solid;
    border-color: var(--border-mid);
    padding: 0;
    flex-direction: column;
}

.slot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: transform .3s;
}
.slot-img.reversed {
    transform: rotate(180deg);
}

.slot-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding: 6px;
}

.slot-dir {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--gold-dim);
    background: rgba(8,8,16,.75);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
}

/* ── 결과 카드 이미지 ── */
.result-card-face-wrap {
    position: relative;
    width: 100%;
    max-width: 160px;
    margin: 0 auto 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-mid);
    aspect-ratio: 0.62;
    background: var(--bg-card);
}

.result-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.result-card-img.reversed {
    transform: rotate(180deg);
}
.result-card-face-wrap:hover .result-card-img {
    transform: scale(1.04);
}
.result-card-face-wrap:hover .result-card-img.reversed {
    transform: rotate(180deg) scale(1.04);
}

.result-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 6px;
    background: linear-gradient(transparent, rgba(8,8,16,.8));
    display: flex;
    justify-content: center;
}
.result-card-dir {
    font-size: 10px;
    color: var(--gold-mid);
    border: 1px solid var(--border-mid);
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(8,8,16,.5);
}

.result-card-face-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    font-family: var(--font-title);
    font-size: 13px;
    color: var(--gold-mid);
    text-align: center;
    padding: 12px;
}

.result-card-name {
    font-family: var(--font-title);
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.result-card-eng {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-style: italic;
}
.result-card-meaning {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 반응형 보완 */
@media (max-width: 600px) {
    .tarot-card-back { width: 54px; height: 87px; }
    .slot-placeholder { width: 72px; height: 116px; }
    .result-card-face-wrap { max-width: 130px; }
}
