/* VK owns the outer iframe height. Give long site pages an inner scroll area. */
html.pcb-vk-root {
  height: 100%;
  overflow: hidden;
}

body.pcb-theme.pcb-vk {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.pcb-vk .pcb-topbar {
  flex: 0 0 auto;
}

body.pcb-vk .pcb-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.pcb-vk .pcb-ladder-ranks-sticky {
  top: 0;
}

body.pcb-vk .pcb-stats-grid {
  grid-template-columns: minmax(0, 1fr);
}
