/* Arrow Keys Instructions */
.arrow-keys-instructions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.arrow-keys-instructions:hover {
    opacity: 1;
}

.arrow-keys-layout {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arrow-key-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.arrow-key {
    width: 48px;
    height: 48px;
    background: #000000;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.1s;
}

.arrow-key:hover {
    background: #111;
    color: #aaa;
    transform: translateY(-1px);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.arrow-key:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Pressed state when arrow key is actually pressed */
.arrow-key.pressed {
    background: white;
    color: black;
    border-color: #666;
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.arrow-keys-text {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Different themes support */
body.theme-light .arrow-key {
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #666;
}

body.theme-light .arrow-key:hover {
    background: #e8e8e8;
    color: #444;
}

body.theme-light .arrow-keys-text {
    color: #999;
}

body.theme-light .arrow-key.pressed {
    background: #333;
    color: white;
    border-color: #555;
}
