#commandes-marche {
    position: absolute;
    inset: auto 0 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
#commandes-marche [hidden] { display: none; }
#action-porte {
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    min-height: 44px;
    background: #24332def;
    box-shadow: 0 2px 12px #0005;
}
#porte-obstacle { display: block; font-size: .8rem; }
#action-porte kbd {
    display: inline-block;
    margin-inline-start: .35em;
    border: 1px solid #ffffff52;
    border-radius: 3px;
    padding: .12rem .3rem;
    font: inherit;
    font-size: .82em;
}
.villa-walk-pad {
    width: clamp(84px, 16vmin, 108px);
    aspect-ratio: 1;
    flex: 0 0 auto;
    border: 1px solid #ffffff8c;
    border-radius: 50%;
    background: #16241e79;
    box-shadow: inset 0 0 0 7px #ffffff12;
    display: grid;
    place-items: center;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.villa-walk-nub {
    width: 36%;
    aspect-ratio: 1;
    border: 1px solid #ffffffc4;
    border-radius: 50%;
    background: #f1ead29c;
    pointer-events: none;
}
#stage[data-tactile] {
    overscroll-behavior: none;
}
#stage[data-tactile] header, #stage[data-tactile] footer {
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
}
#stage[data-tactile] header {
    padding-top: max(8px, env(safe-area-inset-top));
}
#stage[data-tactile] footer {
    display: block;
    padding-block: 0 max(8px, env(safe-area-inset-bottom));
}
#stage[data-tactile] .position {
    position: fixed;
    top: calc(61px + env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    max-width: calc(100% - 24px);
    text-shadow: 0 1px 6px #17271f;
}
#stage[data-tactile] .position h1 { font-size: 1.5rem; }
#stage[data-tactile] #status {
    top: calc(116px + env(safe-area-inset-top));
}
#stage[data-tactile] #commandes-marche {
    position: static;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin: 0 0 9px;
}
#indication-tactile {
    margin-left: auto;
    max-width: 22ch;
    font-size: .82rem;
    text-align: right;
    text-wrap: balance;
    text-shadow: 0 1px 5px #15231c, 0 0 12px #15231c;
}
#commandes-marche:has(#action-porte:not([hidden])) #indication-tactile,
#stage[data-tactile] #gesture,
#stage[data-tactile] #action-porte kbd { display: none; }
#stage[data-tactile] .bar {
    gap: 3px;
    margin: 0;
    justify-content: center;
}
#stage[data-tactile] .tools button, #stage[data-tactile] .bar button {
    min-height: 44px;
    min-width: 44px;
}
#stage[data-tactile] .bar button { padding: 6px; }
#stage[data-tactile] .modes { padding: 0; }
#stage[data-tactile] .modes button { min-height: 42px; }
#stage[data-tactile] #action-porte { max-width: 53%; }
@media (max-height: 500px) {
    #stage[data-tactile] .position { top: calc(52px + env(safe-area-inset-top)); }
    #stage[data-tactile] #status { top: calc(95px + env(safe-area-inset-top)); }
    #stage[data-tactile] .villa-walk-pad { width: 78px; }
    #stage[data-tactile] #commandes-marche { margin-bottom: 4px; }
}
