/* hub.css — меню-сцена «Привал». Усе видиме малює піксельний рендерер у <canvas> (hub-ui.js);
   тут лише розміщення полотна й приховування HUD забігу, поки гравець у привалі. */

.hub-root {
  position: fixed;
  inset: 0;
  z-index: 90;                     /* під оверлеями забігу (.ru-root: 100) — банер прокачки кубика лягає поверх панелей */
  overflow: hidden;
  pointer-events: none;            /* дотики йдуть у canvas гри; хаб сам вирішує, чи це панель, чи світ */
  display: none;
  -webkit-user-select: none;
  user-select: none;
}
.hub-root.on { display: block; }

.hub-safe {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
           env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

.hub-ui {
  position: absolute;
  inset: 0 auto auto 0;            /* сторінка гри має загальне правило canvas { position: fixed; inset: 0 } */
  width: auto;
  height: auto;
  display: block;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  pointer-events: none;
}

.hub-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

/* у привалі HUD забігу, титул і підказки сховані */
body.in-hub .hud,
body.in-hub .combo,
body.in-hub .streak,
body.in-hub .banner,
body.in-hub .title,
body.in-hub .finger,
body.in-hub .hint,
body.in-hub .over { display: none; }
