body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; inset: 0; overflow: hidden }
.desktop-game-logo { display: none }
.unity-desktop .desktop-game-logo { display: block; margin: 0 auto 12px }
#unity-canvas { background: #1F1F20 }
.unity-mobile #unity-canvas { display: block; width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; 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-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

#rotate-screen { display: none }

@media (orientation: portrait) {
  #unity-container { visibility: hidden }
  #rotate-screen {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #21140e;
    color: #ffe5aa;
    font: 600 1.125rem/1.45 system-ui, sans-serif;
    text-align: center;
  }
  #rotate-screen p { max-width: 19rem; margin: 0 }
  .rotate-phone {
    position: relative;
    box-sizing: border-box;
    width: 3.4rem;
    height: 2.15rem;
    margin-top: 1.2rem;
    border: 3px solid currentColor;
    border-radius: .45rem;
    color: #ffc15a;
    transform: rotate(-15deg);
  }
  .rotate-phone::before {
    position: absolute;
    top: 50%;
    right: .25rem;
    width: .2rem;
    height: .55rem;
    border-radius: 1rem;
    background: currentColor;
    transform: translateY(-50%);
    content: "";
  }
  .rotate-phone::after {
    position: absolute;
    bottom: calc(100% + .25rem);
    left: 50%;
    font: 1.95rem/1 system-ui, sans-serif;
    transform: translateX(-50%);
    content: "↻";
  }
}

#ios-install { display: none }
.ios-install-required #unity-container,
.ios-install-required #rotate-screen { display: none }
.ios-install-required #ios-install {
  position: fixed;
  inset: 0;
  display: flex;
  overflow: auto;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  background: #121212;
  color: #fafafa;
  font: 1rem/1.6 system-ui, sans-serif;
}
.install-guide { width: min(100%, 32rem); margin: auto }
.install-guide h1 { margin: 0 0 1rem; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.25; text-align: center }
.install-guide p { margin: 0 0 1.1rem; text-align: center }
.install-guide ol { margin: 0; padding-inline-start: 1.45rem }
.install-guide li + li { margin-top: .35rem }

.ios-webgl-active,
.ios-webgl-active body {
  background: #121212;
  overflow: hidden;
  overscroll-behavior: none;
}
