:root {
    --accent: #f97316;
}

/* Spell Colors */
.spell-1 { background-color: #ef4444; color: white; } /* Dragon - Red */
.spell-2 { background-color: #7e22ce; color: white; } /* Ghost - Purple */
.spell-3 { background-color: #f472b6; color: white; } /* Dream - Pink */
.spell-4 { background-color: #1e293b; color: white; } /* Night - DarkSlate */
.spell-5 { background-color: #eab308; color: black; } /* Lightning - Yellow */
.spell-6 { background-color: #06b6d4; color: white; } /* Blizzard - Cyan */
.spell-7 { background-color: #f97316; color: white; } /* Fireball - Orange */
.spell-8 { background-color: #22c55e; color: white; } /* Potion - Green */

/* Spell Buttons */
.spell-btn {
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    border: 2px solid rgba(0,0,0,0.1);
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.spell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.spell-btn:active {
    transform: translateY(0);
}

.spell-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
    transform: none;
}

.spell-btn.btn-1 { background-color: #ef4444; color: white; }
.spell-btn.btn-2 { background-color: #7e22ce; color: white; }
.spell-btn.btn-3 { background-color: #f472b6; color: white; }
.spell-btn.btn-4 { background-color: #1e293b; color: white; }
.spell-btn.btn-5 { background-color: #eab308; color: black; }
.spell-btn.btn-6 { background-color: #06b6d4; color: white; }
.spell-btn.btn-7 { background-color: #f97316; color: white; }
.spell-btn.btn-8 { background-color: #22c55e; color: white; }

/* Stone Styles */
.stone {
    width: 60px;
    height: 90px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0; /* Hide text, use bg image */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    user-select: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stone.stone-1 { background-image: url('img/1.png'); }
.stone.stone-2 { background-image: url('img/2.png'); }
.stone.stone-3 { background-image: url('img/3.png'); }
.stone.stone-4 { background-image: url('img/4.png'); }
.stone.stone-5 { background-image: url('img/5.png'); }
.stone.stone-6 { background-image: url('img/6.png'); }
.stone.stone-7 { background-image: url('img/7.png'); }
.stone.stone-8 { background-image: url('img/8.png'); }

.stone-back {
    width: 60px;
    height: 90px;
    border-radius: 8px;
    background: #475569; /* slate-600 */
    color: #94a3b8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #334155;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.1) 5px, rgba(0,0,0,0.1) 10px);
}

/* Animations */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

.pop-in {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
