@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

.tarot-game-container {
    background: radial-gradient(circle at center, #1b0a2e 0%, #0a0514 100%);
    color: #e0d5f0;
    padding: 40px 20px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.tarot-game-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.tarot-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #f0e0ff, #b388ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tarot-intro-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-style: italic;
    backdrop-filter: blur(5px);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tarot-intro-box strong {
    color: #d1b3ff;
    font-style: normal;
}

.tarot-instruction-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #cbb2ff;
}

/* Deck Area */
.tarot-deck-area {
    margin: 40px 0;
}

.tarot-deck-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    perspective: 1000px;
    padding: 20px;
    min-height: 150px;
}

.tarot-deck-card {
    width: 80px;
    height: 140px;
    margin-left: -50px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 2px 5px 15px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.tarot-deck-card:first-child {
    margin-left: 0;
}

.tarot-deck-card:hover {
    transform: translateY(-20px) rotate(-5deg) scale(1.1);
    z-index: 100;
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.4);
    border-color: #d1b3ff;
}

.tarot-deck-card.picked {
    opacity: 0;
    pointer-events: none;
}

/* Slots for drawn cards */
.tarot-drawn-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.tarot-drawn-slot {
    width: 140px;
    height: 240px;
    border: 2px dashed rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tarot-drawn-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: cardAppear 0.6s ease forwards;
}

@keyframes cardAppear {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Interpretation Results */
.tarot-interpretation-area {
    margin-top: 40px;
    text-align: left;
}

.tarot-result-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border-left: 4px solid #8a2be2;
    transition: transform 0.3s ease;
}

.tarot-result-row:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.04);
}

.tarot-result-row.reverse-row {
    flex-direction: row;
    border-left: none;
    border-right: 4px solid #8a2be2;
}

.tarot-result-image {
    flex-shrink: 0;
    width: 180px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.tarot-result-image img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.tarot-result-content {
    flex-grow: 1;
}

.tarot-result-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #d1b3ff;
    margin-bottom: 5px;
}

.tarot-result-subheading {
    font-size: 0.9rem;
    color: #a080cc;
    font-weight: 400;
}

.tarot-result-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 1px;
}

.tarot-result-desc {
    line-height: 1.6;
    color: #ccc;
    font-size: 1.05rem;
}

.tarot-result-desc strong {
    color: #f0e0ff;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Actions */
.tarot-actions {
    text-align: center;
    margin-top: 50px;
}

.tarot-reset-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #4b0082 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(75, 0, 130, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tarot-reset-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.6);
    background: linear-gradient(135deg, #9b4de6 0%, #5d00a3 100%);
}

.tarot-footer-text {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .tarot-result-row, .tarot-result-row.reverse-row {
        flex-direction: column;
        text-align: center;
        border: 1px solid rgba(138, 43, 226, 0.3);
    }
    
    .tarot-drawn-cards {
        gap: 10px;
    }
    
    .tarot-drawn-slot {
        width: 90px;
        height: 150px;
    }
    
    .tarot-result-image {
        width: 150px;
    }
}
