/*
 * Spelling Dungeon
 * 
 * This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/
 * 
 * Copyright (c) 2026 The Spelling Dungeon Authors
 */

/* Overrides and new styles for the Spell UI */
#tool-bar {
    display: flex;
    gap: 1.5rem;
    /* Increased gap for badges */
    pointer-events: auto;
    padding-bottom: 3.5rem;
    margin-top: 1rem;
    transform: scale(var(--ui-scale));
    transform-origin: bottom center;
}

.tool-btn {
    position: relative !important;
    overflow: visible !important;
}

.hotkey-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: linear-gradient(180deg, #333 0%, #111 100%);
    border: 1px solid #ffd700;
    color: #ffd700;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 215, 0, 0.3);
    pointer-events: none;
    text-shadow: none;
    z-index: 10;
    text-transform: none;
    letter-spacing: 0;
}

#look-btn {
    color: #00d4ff;
    border-color: #00d4ff88;
    font-size: 0.85rem;
    padding: 6px 10px;
    min-width: auto;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.4);
    transition: all 0.2s ease;
}

#look-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

#look-btn.look-active {
    background: #00d4ff;
    color: #111;
    border-color: #fff;
    text-shadow: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Roulette Styles */
#roulette-wheel-container {
    padding: 30px;
}

#roulette-wheel {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid #ff00ff;
    background: conic-gradient(#ff3333 0% 12.5%,
            #33ff33 12.5% 25%,
            #3333ff 25% 37.5%,
            #ffff33 37.5% 50%,
            #ff33ff 50% 62.5%,
            #33ffff 62.5% 75%,
            #ffffff 75% 87.5%,
            #ffaa00 87.5% 100%);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.4);
    margin: 0 auto;
}

@keyframes spinWheel {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(1800deg);
    }
}

.wheel-spinning {
    animation: spinWheel 1.2s cubic-bezier(0.15, 0, 0.15, 1) forwards;
}