:root {
    --primary-color: #4a0e6b;
    --secondary-color: #1a0a2e;
    --accent-color: #ffd700;
    --text-color: #f0f0f0;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'serif';
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#game-container {
    width: 800px;
    max-width: 100%;
    background-color: var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 0 20px var(--accent-color);
    padding: 20px;
    text-align: center;
    transition: transform 0.1s ease-in-out; /* 피격 효과 */
}

#game-container.shake {
    transform: translate(5px, 5px);
}

h1 {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

#quest-display {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: none; /* 평소에는 숨김 */
}

#card-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    min-height: 250px;
    margin: 20px 0;
    perspective: 1000px;
}

#combat-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
}

#game-log {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    min-height: 100px;
    text-align: left;
}

#draw-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#draw-button:hover {
    box-shadow: 0 0 15px var(--accent-color);
}

/* 카드 뒤집기 애니메이션 */
@keyframes card-flip {
    from { transform: rotateY(90deg); }
    to { transform: rotateY(0deg); }
}

tarot-card .card {
    animation: card-flip 0.6s ease-in-out;
}
