@font-face {
  font-family: "Fredoka";
  src: url("Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #cfe8f6;
  overflow: hidden;
  position: fixed;
  inset: 0;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
}

#unity-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #cfe8f6;
  touch-action: none;
}

#safe-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  pointer-events: none;
  visibility: hidden;
}

#loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#d7eefb, #f6e3cf 55%, #d7efb8);
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

#loading-card {
  width: min(420px, 86vw);
  text-align: center;
}

#loading-title {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 40px;
  color: #6b4423;
  margin-bottom: 22px;
}

#loading-track {
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 214, 102, 0.9);
}

#loading-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(#ffe98a, #f5c423);
}

#loading-label {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  margin-top: 14px;
  font-size: 20px;
  color: #7a5230;
}
