html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #000;
touch-action: none;
overscroll-behavior: none;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
body {
display: flex;
flex-direction: column;
}
#unity-container {
position: relative;
flex: 1 1 auto;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
background: #000;
overflow: hidden;
}
#unity-canvas {
display: block;
background: #000;
touch-action: none;
}
#unity-loading-bar {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: none;
z-index: 2;
}
#unity-progress-bar-empty {
width: min(64vw, 360px);
height: 16px;
background: #1a1a1a;
border-radius: 999px;
overflow: hidden;
box-shadow: 0 0 0 1px #2a2a2a inset;
}
#unity-progress-bar-full {
width: 0%;
height: 100%;
background: #ff7a00;
transition: width .15s linear;
}
#unity-logo,
#unity-footer,
#unity-webgl-logo,
#unity-build-title,
#unity-fullscreen-button {
display: none;
}
#unity-warning {
position: absolute;
left: 50%;
top: 5%;
transform: translate(-50%);
background: #fff;
color: #000;
padding: 10px;
display: none;
z-index: 3;
}
#vk {
position: relative;
flex: 0 0 auto;
z-index: 10;
background: #1a1a1a;
padding: 4px 3px calc(4px + env(safe-area-inset-bottom, 0px));
display: flex;
flex-direction: column;
gap: 3px;
touch-action: manipulation;
-webkit-user-select: none;
user-select: none;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#vk .vk-row {
display: flex;
justify-content: center;
gap: 3px;
}
#vk .vk-key {
flex: 1 1 0;
min-width: 0;
height: clamp(24px, 4.5vh, 38px);
font-size: clamp(12px, 2.2vh, 16px);
color: #fff;
background: #3a3a3a;
border: 0;
border-radius: 5px;
box-shadow: 0 1px 0 #000;
padding: 0;
cursor: pointer;
}
@media (orientation: portrait) {
#vk {
padding: 2px 2px calc(2px + env(safe-area-inset-bottom, 0px));
gap: 2px;
}
#vk .vk-row { gap: 2px; }
#vk .vk-key {
height: clamp(22px, 3.2vh, 30px);
font-size: clamp(11px, 1.6vh, 14px);
}
}
#vk .vk-key.vk-pressed {
background: #5a5a5a;
}
#vk .vk-key.vk-wide { flex: 1.6 1 0; background: #2a2a2a; }
#vk .vk-key.vk-space { flex: 5 1 0; }
#vk .vk-shift.vk-pressed,
#vk .vk-shift.vk-active { background: #ff7a00; color: #000; }
