.keyboard-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.2s;
}
.keyboard-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.keyboard-btn:active {
    transform: scale(0.98);
}
.virtual-keyboard {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 45%;
    bottom: 0;
    max-height: 30vh;
    background: #1a1a1a;
    padding: 10px 6px;
    display: none;
    z-index: 1002;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    overflow-y: auto;
}
.virtual-keyboard.active {
    display: block;
}
.virtual-keyboard.dragging {
    cursor: ns-resize;
    user-select: none;
}
.virtual-keyboard .row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}
.virtual-keyboard .key {
    height: 35px;
    margin: 0 3px;
    background: #3a3a3a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
.virtual-keyboard .key:hover {
    background: #4a4a4a;
}
.virtual-keyboard .key.small {
    flex: 0 0 70px;
    font-size: 16px;
}
.virtual-keyboard .key.space {
    flex: 6;
}
.virtual-keyboard .key.active-mode {
    background: #4a4a4a;
    border-bottom: 3px solid #fff;
}