@font-face {
  font-family: "Fredoka";
  src: url("../vendor/fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Fredoka";
  src: url("../vendor/fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: block;
}
@font-face {
  font-family: "Fredoka";
  src: url("../vendor/fonts/fredoka-700.woff2") format("woff2");
  font-weight: 700;
  font-display: block;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #fff4e4;
}

body {
  font-family: Fredoka, system-ui, sans-serif;
  color: #3b2e5a;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#game,
#game canvas {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: none;
}

/* Never shown: it just lets the game read the notch and swipe-bar sizes.
   The Android app (Capacitor) sets --safe-area-inset-*; browsers use env(). */
#safe {
  position: fixed;
  visibility: hidden;
  pointer-events: none;
  padding: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 0 var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) 0;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 34px;
}

#rotate {
  display: none;
}

@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #rotate {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff4e4;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
  }
}
