/* =========================================================
   TASTIERA TOUCH P.U.P.I. - COMPONENTE CONDIVISO
========================================================= */
.pupiVk {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: linear-gradient(180deg, rgba(21,30,53,.98), rgba(10,16,30,.985));
    border-top: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 -16px 40px rgba(0,0,0,.28);
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    backdrop-filter: blur(8px);
    touch-action: none;
}

.pupiVk[hidden] {
    display: none !important;
}

.pupiVkTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    background: rgba(29,78,216,.28);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 10px 12px;
    touch-action: none;
}

.pupiVk.is-dragging .pupiVkTop {
    background: rgba(22,163,74,.30);
}

.pupiVkTitle {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    color: rgba(255,255,255,.92);
    text-transform: uppercase;
}

.pupiVkField {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.pupiVkRows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pupiVkRow {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.pupiVkKey {
    min-width: 58px;
    height: 54px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.pupiVkKey:active,
.pupiVkKey.is-active {
    transform: translateY(1px);
    background: rgba(255,255,255,.16);
}

.pupiVkKey.action {
    font-size: 15px;
    background: rgba(29,78,216,.22);
}

.pupiVkKey.warn {
    background: rgba(245,158,11,.18);
}

.pupiVkKey.good {
    background: rgba(22,163,74,.18);
}

.pupiVkKey.dark {
    background: rgba(15,22,40,.55);
}

.pupiVkKey.wide {
    min-width: 98px;
}

.pupiVkKey.xwide {
    min-width: 180px;
}

@media (max-width: 980px) {
    .pupiVkKey {
        min-width: 48px;
        height: 50px;
        font-size: 18px;
        border-radius: 12px;
        padding: 0 10px;
    }

    .pupiVkKey.wide {
        min-width: 84px;
    }

    .pupiVkKey.xwide {
        min-width: 150px;
    }
}
