@font-face {
  font-family: 'Igra Sans';
  src: url('assets/fonts/igra-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Igra Sans';
  src: url('assets/fonts/igra-sans-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fdfdfd;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  height: 100dvh;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

#game {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
  cursor: pointer;
}

/* Невидимый «щуп» для чтения safe-area (вырезы, скругления экрана) */
#safe {
  position: fixed;
  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);
}

.noscript {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 2em;
  text-align: center;
  font: 24px 'Igra Sans', Calibri, Carlito, sans-serif;
}
