/* === Metaphorical Cards Page Styles === */
.cards-page { background: linear-gradient(135deg, #0f0c29, #1a1a3e, #24243e); min-height: 100vh; color: #e8e0d8; }
.cards-page .header { background: rgba(15,12,41,0.95); border-bottom-color: rgba(255,255,255,0.06); }
.cards-page .logo { color: #c9856b; }
.cards-page .nav a { color: rgba(255,255,255,0.6); }
.cards-page .nav a:hover, .cards-page .nav a.active { color: #c9856b; }
.cards-page .nav a::after { background: #c9856b; }
.cards-page .nav-toggle span { background: #e8e0d8; }

.cards-hero { padding: 120px 0 60px; text-align: center; }
.cards-hero h1 { font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 16px; color: #fff; }
.cards-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === Instructions === */
.instructions { padding: 0 0 60px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 30px; text-align: center;
}
.step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #c9856b, #4a7c6f);
    color: #fff; font-weight: 700; display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.1rem;
}
.step h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 8px; color: #fff; }
.step p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* === Draw Section === */
.draw-section { padding: 60px 0; text-align: center; }
.draw-section h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 30px; color: #fff; }
.period-selector { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }
.period-btn {
    padding: 12px 32px; border-radius: 50px; border: 2px solid rgba(255,255,255,0.2);
    background: transparent; color: rgba(255,255,255,0.7);
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
}
.period-btn:hover, .period-btn.active {
    background: linear-gradient(135deg, #c9856b, #4a7c6f);
    border-color: transparent; color: #fff;
}

/* === Card Deck === */
.draw-deck { position: relative; width: 220px; height: 310px; margin: 0 auto 40px; cursor: pointer; perspective: 1000px; }
.draw-deck-back {
    width: 220px; height: 310px; border-radius: 16px;
    background: linear-gradient(135deg, #4a7c6f, #c9856b);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); transition: all 0.3s ease;
}
.draw-deck:hover .draw-deck-back { transform: translateY(-8px); box-shadow: 0 16px 60px rgba(0,0,0,0.5); }
.draw-deck-back .card-ornament { font-size: 40px; margin-bottom: 12px; }
.draw-deck-back .card-label { color: rgba(255,255,255,0.8); font-family: var(--font-heading); font-size: 1.2rem; }

.draw-prompt { color: rgba(255,255,255,0.5); font-size: 0.95rem; }

.cooldown-notice {
    padding: 20px 32px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    display: inline-block; margin-bottom: 20px; color: rgba(255,255,255,0.7);
}
.cooldown-notice .timer { color: #c9856b; font-weight: 700; font-size: 1.1rem; }

/* === Card Result === */
.card-result { display: none; padding: 60px 0; }
.card-result.active { display: block; }
.card-result-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.result-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 50px 40px; margin-bottom: 40px;
    animation: cardAppear 0.8s ease;
}
@keyframes cardAppear { from { opacity: 0; transform: scale(0.8) rotateY(90deg); } to { opacity: 1; transform: scale(1) rotateY(0); } }

.result-icon { font-size: 60px; margin-bottom: 16px; }
.result-card h3 { font-family: var(--font-heading); font-size: 1.8rem; color: #fff; margin-bottom: 16px; }
.result-card .meaning { font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 1.7; }

.unpacking { text-align: left; }
.unpacking h3 { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; margin-bottom: 20px; text-align: center; }
.unpacking-q {
    padding: 16px 20px; background: rgba(255,255,255,0.04); border-left: 3px solid #c9856b;
    border-radius: 0 12px 12px 0; margin-bottom: 12px; color: rgba(255,255,255,0.75);
}

/* === Loading === */
.draw-loading { display: none; text-align: center; padding: 20px; }
.draw-loading.active { display: block; }
.draw-loading .spinner {
    width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #c9856b; border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 768px) {
    .steps { grid-template-columns: 1fr; }
    .cards-hero h1 { font-size: 2rem; }
    .result-card { padding: 30px 20px; }
}
