.hands-wrap {
    display: flex;
    gap: clamp(4px, 0vw, 24px);
    justify-content: center;
    width: 100%;
    max-width: 460px;
}
.hand-svg { width: 100%; max-width: 70px; height: auto; }

#finger-label {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    text-align: center;
    min-height: 1.2em;
}

/* ── keyboard ── */
#keyboard-wrap {
    background: #fff;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    padding-top: 27px;
    border-radius: 10px;

}

.kb-row {
    display: flex;
    justify-content: center;
    gap: clamp(1px, 0.5vw, 4px);
    margin-bottom: clamp(1px, 0.5vw, 4px);
}

.key {
    flex: 1;
    max-width: clamp(22px, 8vw, 42px);
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    border: 0.5px solid var(--color-border-secondary);
    background: var(--color-background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    color: var(--color-text-secondary);
    transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.08s;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.key.wide  { flex: 1.5; max-width: clamp(33px, 12vw, 63px); }
.key.wider { flex: 2;   max-width: clamp(44px, 16vw, 84px); }
.key.space {
    flex: 5;
    max-width: clamp(100px, 36vw, 200px);
    aspect-ratio: unset;
    height: clamp(22px, 6vw, 38px);
}
.key-tab         {border-radius: 4px; border-bottom: 0.5px solid #999;}
.key-caps        {border-radius: 4px; border-bottom: 0.5px solid #999; }
.key-enter       {border-radius: 4px; border-bottom: 0.5px solid #999; }
.key-backspace   {border-radius: 4px; border-bottom: 0.5px solid #999; }
.key-shift   {border-radius: 4px; border-bottom: 0.5px solid #999; }

.key.active {
    background: #f59e0b;
    color: #7c3400;
    border-color: #d97706;
    transform: scale(1.08);
    box-shadow: 0 0 8px #f59e0b88;
    z-index: 2;
}

.key.left-hand  { border-bottom: 2px solid #60a5fa55; }
.key.right-hand { border-bottom: 2px solid #f472b655; }

.shift-hint
{
    position: absolute;
    bottom: 14px;
}

.woShint
{
    position: absolute;
    bottom:-1px; 
}

/*Alt hints*/
.alt-hints-wrp
{
    display: block;
    margin-top:10px;  
    min-height: 30px;
    margin-bottom:10px;    
}
.alt-hints
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fffbea;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-left: 3px solid #f59e0b;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    animation: fadeInUp 0.2s ease;    
}

@keyframes fadeInUp {
    from { transform: translateY(4px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}


/*toasts*/
#speed-toast-container {
    position: fixed;
    bottom: 2px;
    right: 2px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.speed-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-secondary);
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 260px;
    max-width: 320px;
    pointer-events: all;
    animation: toast-in 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

}

.speed-toast.toast-out {
    animation: toast-out 0.35s ease forwards;
}

.speed-toast-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.speed-toast-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.speed-toast-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.speed-toast-sub {
    font-size: 12px;
    color: var(--color-text-secondary);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}
/*toasts*/

