* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffd700, #ffb347, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

header p {
    font-size: 1.1rem;
    color: #b8b8b8;
    font-style: italic;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    display: none;
    width: 100%;
    max-width: 900px;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Start Screen */
.welcome-content {
    text-align: center;
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.welcome-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #b8b8b8;
}

.divination-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.divination-btn {
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.divination-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    background: linear-gradient(145deg, #3a3a5a, #2a2a4a);
}

.divination-btn .icon {
    font-size: 2.5rem;
}

.divination-btn .title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
}

.divination-btn .desc {
    font-size: 0.9rem;
    color: #b8b8b8;
}

/* Divination Screen */
.divination-content {
    text-align: center;
}

.divination-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.divination-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #b8b8b8;
}

/* Card Deck */
.card-deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border: 2px solid #ffd700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.card.selected {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.5);
    border-color: #ff6b6b;
}

.card-back {
    font-size: 2rem;
    color: #ffd700;
}

.card-front {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
}

.card.revealed .card-back {
    display: none;
}

.card.revealed .card-front {
    display: flex;
}

.card-front .card-number {
    font-size: 0.7rem;
    color: #ffd700;
    margin-bottom: 5px;
}

.card-front .card-name {
    font-size: 0.6rem;
    color: #f0f0f0;
    text-align: center;
    line-height: 1.2;
}

.card-front .card-symbol {
    font-size: 1.5rem;
    margin: 5px 0;
}

/* Selected Cards */
.selected-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    min-height: 140px;
    align-items: center;
}

.selected-card {
    width: 100px;
    height: 150px;
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border: 2px solid #ffd700;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    animation: cardAppear 0.5s ease-in-out;
}

@keyframes cardAppear {
    from { opacity: 0; transform: scale(0.8) rotateY(180deg); }
    to { opacity: 1; transform: scale(1) rotateY(0deg); }
}

/* Result Screen */
.result-content {
    text-align: center;
}

.result-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffd700;
}

.result-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.result-card {
    width: 120px;
    height: 180px;
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border: 2px solid #ffd700;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    animation: cardReveal 0.8s ease-in-out;
    position: relative;
}

@keyframes cardReveal {
    0% { opacity: 0; transform: rotateY(180deg) scale(0.8); }
    50% { opacity: 0.5; transform: rotateY(90deg) scale(0.9); }
    100% { opacity: 1; transform: rotateY(0deg) scale(1); }
}

.result-card .card-symbol {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.result-card .card-name {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-card .card-position {
    font-size: 0.7rem;
    color: #b8b8b8;
    font-style: italic;
}

/* Interpretation */
.interpretation {
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.interpretation h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.interpretation p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.card-interpretation {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.card-interpretation h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(145deg, #ffd700, #ffb347);
    color: #1a1a2e;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    background: linear-gradient(145deg, #ffb347, #ffd700);
}

.action-btn.secondary {
    background: linear-gradient(145deg, #6a6a8a, #4a4a6a);
    color: #f0f0f0;
}

.action-btn.secondary:hover {
    background: linear-gradient(145deg, #4a4a6a, #6a6a8a);
    box-shadow: 0 5px 15px rgba(106, 106, 138, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #444;
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .divination-types {
        grid-template-columns: 1fr;
    }
    
    .card-deck {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .card {
        width: 60px;
        height: 90px;
    }
    
    .selected-cards {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .interpretation {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        width: 50px;
        height: 75px;
    }
    
    .card-front .card-name {
        font-size: 0.5rem;
    }
    
    .card-front .card-symbol {
        font-size: 1.2rem;
    }
}