/* ==========================================================
   塔羅占卜（共用樣式在 assets/frontend.css）
   ========================================================== */

/* ── 待抽張數 ── */
.tarot-count-label { margin: 0 0 4px; text-align: center; font-family: var(--mhf-serif); font-size: 18px; font-weight: 700; }
.tarot-count-label span { margin: 0 2px; color: var(--mhf-red); font-size: 28px; }
.tarot-fan-hint { margin: 0 0 8px; text-align: center; font-size: 13px; color: var(--mhf-muted); }

/* ── 扇形展牌 ── */
.tarot-fan-wrapper { position: relative; width: 100%; }
.tarot-fan-wrapper::before,
.tarot-fan-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 300; width: 40px; pointer-events: none; }
.tarot-fan-wrapper::before { left: 0; background: linear-gradient(to right, var(--mh-paper, #F7F1E6), transparent); }
.tarot-fan-wrapper::after { right: 0; background: linear-gradient(to left, var(--mh-paper, #F7F1E6), transparent); }
#tarot-fan-viewport { position: relative; width: 100%; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
#tarot-fan-viewport:active { cursor: grabbing; }
#tarot-fan-track { position: relative; width: 100%; height: 100%; }

.tarot-fan-card {
	position: absolute; border: 1px solid rgba(43, 29, 22, .25); border-radius: 4px;
	background: linear-gradient(135deg, #5C1A14 0%, var(--mhf-red) 50%, #5C1A14 100%);
	background-size: cover; background-position: center;
	box-shadow: 1px 2px 4px rgba(43, 29, 22, .2); cursor: pointer; transition: opacity .3s, filter .15s; will-change: transform;
}
.tarot-fan-card:hover { filter: brightness(1.15); box-shadow: 0 0 10px rgba(168, 40, 30, .45); }

/* ── 選牌槽位 ── */
.tarot-selection-slots { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.tarot-slot { display: flex; flex: 1; flex-direction: column; align-items: center; min-width: 0; max-width: 140px; }
.tarot-slot-inner {
	position: relative; width: 100%; aspect-ratio: 617 / 1024; overflow: hidden;
	border: 2px dashed var(--mhf-line); border-radius: 10px; background: var(--mhf-ph); transition: border-color .25s;
}
.tarot-slot-inner.filled { border: 2px solid var(--mhf-red); }
.tarot-slot-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tarot-slot-placeholder { position: absolute; inset: 0; }
.tarot-slot-badge {
	position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--mhf-red); color: var(--mhf-on-red); font-size: 12px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.tarot-slot-info { margin-top: 6px; text-align: center; }
.tarot-slot-card-name { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tarot-slot-card-orient, .tarot-result-card-orient {
	display: inline-block; padding: 1px 8px; border: 1px solid var(--mhf-line); border-radius: 4px; color: var(--mhf-muted); font-size: 12px;
}
.tarot-slot-card-orient.reversed, .tarot-result-card-orient.reversed { border-color: var(--mhf-red); color: var(--mhf-red); }
.tarot-slot-label { margin-top: 6px; font-size: 13px; color: var(--mhf-muted); letter-spacing: .08em; }

/* ── 結果 ── */
.meihao-tarot-spread-sm { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.meihao-tarot-card-slot-sm { display: flex; flex: 1; flex-direction: column; align-items: center; min-width: 0; max-width: 160px; text-align: center; }
.meihao-tarot-position-label { margin-bottom: 6px; font-size: 13px; color: var(--mhf-muted); letter-spacing: .08em; }
.tarot-result-img-wrap { width: 100%; aspect-ratio: 617 / 1024; margin-bottom: 6px; overflow: hidden; border-radius: 10px; background: var(--mhf-ph); }
.tarot-result-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tarot-result-card-name { margin-bottom: 3px; font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
