/* On-screen keyboard for kiosk mode */
.osk-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(30, 30, 30, 0.97);
    backdrop-filter: blur(8px);
    padding: 12px 8px 16px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.osk-overlay.osk-visible {
    transform: translateY(0);
}

.osk-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.osk-row:last-child {
    margin-bottom: 0;
}

.osk-key {
    min-width: 44px;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: #3a3a3c;
    color: #fff;
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.1s;
}

.osk-key:active {
    background: #636366;
}

.osk-key[data-key="space"] {
    flex: 1;
    max-width: 280px;
}

.osk-key[data-key="backspace"] {
    min-width: 70px;
    font-size: 22px;
}

.osk-key[data-key="done"] {
    min-width: 70px;
    background: #0a84ff;
    font-size: 16px;
    font-weight: 600;
}

.osk-key[data-key="done"]:active {
    background: #409cff;
}

.osk-key[data-key="shift"] {
    min-width: 60px;
    font-size: 18px;
}

.osk-key.osk-shift-active {
    background: #fff;
    color: #000;
}

.osk-key[data-key="lang"] {
    min-width: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* When keyboard is open, push content up */
body.osk-active {
    padding-bottom: 260px;
    transition: padding-bottom 0.25s ease;
}
