html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0d14;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#unity-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0d14;
}

#unity-canvas {
  background: #231F20;
  outline: none;
  display: block;
}

#unity-container.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
  height: 100dvh;
}

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

#unity-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #4d7cff, #1b2a6b);
  box-shadow: 0 0 24px rgba(77, 124, 255, 0.35);
}

#unity-progress-bar-empty {
  width: 180px;
  height: 8px;
  margin: 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  border-radius: 8px;
  background: #7aa2ff;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
  z-index: 20;
}

#rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: #0b0d14;
  color: #f4f6ff;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 24px;
}

#rotate-hint .phone {
  width: 42px;
  height: 72px;
  border: 3px solid #7aa2ff;
  border-radius: 8px;
  transform: rotate(90deg);
}

@media screen and (orientation: landscape) and (max-height: 700px) {
  body.is-mobile #rotate-hint {
    display: flex;
  }

  body.is-mobile #unity-container {
    visibility: hidden;
  }
}
