:root {
    --bg-color: #e0f7fa;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-color: #01579b;
    --primary-color: #4fc3f7;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body {
    background: linear-gradient(135deg, #e0f7fa 0%, #81d4fa 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: var(--text-color);
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; background: #4fc3f7; top: -50px; left: -50px; }
.shape-2 { width: 250px; height: 250px; background: #b3e5fc; bottom: -50px; right: -50px; animation-delay: 3s; }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
}

/* Animation Floating */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Input & Button Styles */
.input-group { margin-top: 2rem; }
input {
    width: 70%;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    color: var(--text-color);
    font-size: 1rem;
}
.glass-btn {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(to right, #4fc3f7, #0288d1);
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
}
.glass-btn:hover { transform: scale(1.05); }

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.tarot-card {
    width: 60px;
    height: 100px;
    background: linear-gradient(135deg, #0288d1, #b3e5fc);
    border-radius: 8px;
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2.5px);
    background-size: 10px 10px;
}

.tarot-card:hover { transform: translateY(-10px); z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.tarot-card.selected { border: 2px solid #ffd700; transform: translateY(-15px); box-shadow: 0 0 15px #ffd700; }

/* Result Area */
.hidden { display: none; }
.selected-display { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.revealed-card {
    width: 100px;
    height: 160px;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: float 4s ease-in-out infinite;
}
.revealed-card img { width: 100%; height: auto; } 
.card-name { font-weight: bold; font-size: 0.9rem; margin-top: 5px; color: #0277bd; }

.reading-content {
    padding: 20px;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.4);
}

.crystal-ball { font-size: 3rem; color: #0288d1; margin: 20px 0; }