html,
body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: #080715;
  color: #ffffff;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

#unity-shell {
  position: fixed;
  inset: 0;
  background: #080715;
}

#unity-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0e0c20;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #181223;
}

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

#unity-loading-bar {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 48px 24px 56px;
  gap: 14px;
  background: #0b0a1b;
  z-index: 3;
}

#scion-loader-title {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

#scion-loader-subtitle {
  color: #d8cfdf;
  font-size: 18px;
  text-align: center;
  max-width: 620px;
}

#scion-loader-spinner {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border: 6px solid rgba(143, 93, 255, 0.22);
  border-left-color: #8f5dff;
  border-bottom-color: #8f5dff;
  border-radius: 50%;
  animation: scion-loading-spin 1s linear infinite;
}

@keyframes scion-loading-spin {
  to { transform: rotate(360deg); }
}

#scion-loader-retry {
  padding: 12px 24px;
  background: #211936;
  color: #ffffff;
  border: 1px solid #a855f7;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 18px;
  display: none;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  z-index: 4;
}

#unity-warning > div {
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #facc15;
  color: #1e1728;
  font-size: 14px;
}

#unity-warning > .unity-error {
  background: #ef4444;
  color: #ffffff;
}

#unity-fullscreen-button {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  background: rgba(126, 34, 206, 0.9);
  border: 1px solid #a855f7;
  border-radius: 8px;
}

#unity-fullscreen-button::before,
#unity-fullscreen-button::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid #ffffff;
}

#unity-fullscreen-button::before {
  border-right: 0;
  border-bottom: 0;
}

#unity-fullscreen-button::after {
  border-left: 0;
  border-top: 0;
}

.unity-mobile #unity-fullscreen-button {
  display: none;
}

#diagnostics-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
}
