:root {
  --playables-viewport-height: 100vh;
  --playables-game-width: min(100vw, calc(var(--playables-viewport-height) * 1.777777778));
  --playables-game-height: min(var(--playables-viewport-height), calc(100vw * 0.5625));
}

@supports (height: 100dvh) {
  :root {
    --playables-viewport-height: 100dvh;
  }
}

html,
body {
  width: 100vw;
  height: var(--playables-viewport-height);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #231F20;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  position: fixed;
  inset: 0;
}

#unity-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: var(--playables-viewport-height);
  min-width: 0;
  min-height: 0;
  touch-action: none;
}

#unity-canvas {
  display: block;
  width: var(--playables-game-width);
  height: var(--playables-game-height);
  min-width: 0;
  min-height: 0;
  background: #231F20;
  touch-action: none;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(280px, max(32px, calc(var(--playables-game-width) - 48px)));
  transform: translate(-50%, -50%);
  display: none;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin: 0 auto;
  background: url('progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  background: url('progress-bar-full-dark.png') no-repeat center;
}

#unity-footer {
  display: none;
}

#unity-warning {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc((var(--playables-viewport-height) - var(--playables-game-height)) / 2 + 16px);
  z-index: 1;
  display: none;
  padding: 12px 14px;
  color: #111111;
  background: rgba(255, 255, 255, 0.94);
  font: 14px/1.4 Arial, sans-serif;
}
