html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: #0d1110;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1110;
  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);
  box-sizing: border-box;
}

#unity-canvas {
  display: block;
  background: #0d1110;
  max-width: 100%;
  max-height: 100%;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

#dungeon-load-copy {
  color: #f5d78a;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.12em;
  font-size: clamp(14px, 3.5vw, 18px);
  margin: 8px 0 14px;
}

#unity-logo {
  width: 154px;
  height: 130px;
  max-width: 40vw;
  margin: 0 auto;
  background: url('unity-logo-dark.png') no-repeat center;
  background-size: contain;
}

#unity-progress-bar-empty {
  width: min(220px, 70vw);
  height: 8px;
  margin: 0 auto;
  background: #2a2418;
  border: 1px solid #e8c36a;
}

#unity-progress-bar-full {
  width: 0%;
  height: 8px;
  background: #e8c36a;
}

#unity-fullscreen-button {
  position: absolute;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  width: 38px;
  height: 38px;
  border: 0;
  cursor: pointer;
  z-index: 3;
  background: url('fullscreen-button.png') no-repeat center;
  background-color: transparent;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: #14110e;
  color: #f7f0dc;
  padding: 10px;
  display: none;
  z-index: 4;
  max-width: min(90vw, 520px);
}
