:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #10171d;
}

* {
  box-sizing: border-box;
}

html,
body,
#unity-container {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

body {
  background: #10171d;
  overscroll-behavior: none;
  touch-action: none;
}

#unity-container {
  position: fixed;
  inset: 0;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: #CCCCCC;
}

#unity-loading-bar {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: #10171d;
}

#unity-loading-bar[hidden] {
  display: none;
}

#unity-loading-bar h1 {
  max-width: 90vw;
  margin: 0;
  color: #f7f9fa;
  font-size: clamp(28px, 5vh, 54px);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

#unity-progress-track {
  width: min(420px, 78vw);
  height: 12px;
  overflow: hidden;
  border: 2px solid #f7f9fa;
  border-radius: 6px;
  background: #26333d;
}

#unity-progress-bar-full {
  width: 0;
  height: 100%;
  background: #62d9c5;
  transition: width 120ms linear;
}

#unity-loading-status {
  min-height: 22px;
  margin: 0;
  color: #f5cf4b;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

#unity-warning {
  position: fixed;
  z-index: 5;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  display: none;
  width: min(620px, calc(100vw - 24px));
  transform: translateX(-50%);
}

#unity-warning > div {
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 6px;
  color: #10171d;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.unity-notice {
  background: #f5cf4b;
}

.unity-error {
  background: #ff8c82;
}
