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

body {
  position: fixed;
  inset: 0;
  font-family: Arial, Helvetica, sans-serif;
  touch-action: none;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #05070b;
  overflow: hidden;
}

#unity-container.unity-fullscreen,
#unity-container.unity-desktop,
#unity-container.unity-mobile {
  left: 0;
  top: 0;
  transform: none;
}

#unity-container:fullscreen,
#unity-container:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  inset: 0;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #231f20;
  outline: none;
}

#unity-container input,
#unity-container textarea {
  z-index: 20;
}

#unity-loading-bar { position: fixed; left: 50%; top: 50%; z-index: 15; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-start-screen {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  box-sizing: border-box;
  background: radial-gradient(circle at center, rgba(28, 35, 48, 0.68), rgba(5, 7, 11, 0.9) 62%);
}

body.is-started #unity-start-screen { display: none }
#unity-webgl-logo,
#unity-build-title { display: none }

#unity-fullscreen-button {
  min-width: min(260px, calc(100vw - 48px));
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: #f4f7fb;
  color: #070a10;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font: 700 22px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

#unity-fullscreen-button:hover,
#unity-fullscreen-button:focus-visible {
  background-color: #ffffff;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

#unity-fullscreen-button:active {
  transform: translateY(1px) scale(0.99);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #070a10;
}

#unity-warning {
  position: fixed;
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  z-index: 40;
  max-width: min(720px, calc(100vw - 32px));
  transform: translateX(-50%);
  background: white;
  color: #17191d;
  padding: 10px;
  display: none;
}

#unity-orientation-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  color: #f4f7fb;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.88), rgba(5, 7, 11, 0.96)),
    #05070b;
}

body.is-portrait #unity-orientation-overlay {
  display: grid;
}

.orientation-panel {
  width: min(360px, 100%);
}

.orientation-panel strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.15;
}

.orientation-panel span {
  display: block;
  margin-top: 8px;
  color: #c8d0dc;
  font-size: 15px;
  line-height: 1.45;
}

.orientation-phone {
  position: relative;
  width: 58px;
  height: 92px;
  margin: 0 auto;
  border: 4px solid #f4f7fb;
  border-radius: 12px;
  box-sizing: border-box;
  transform: rotate(90deg);
  animation: rotate-phone 1.8s ease-in-out infinite;
}

.orientation-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4f7fb;
  transform: translateX(-50%);
}

@keyframes rotate-phone {
  0%,
  22% { transform: rotate(0deg) }
  45%,
  100% { transform: rotate(90deg) }
}
