:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #061b20;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #061b20;
}

#game-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #061b20;
}

#unity-canvas {
  display: block;
  max-width: 100vw;
  max-height: 100vh;
  background: #231F20;
  outline: 0;
}

#loading-panel {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(420px, 78vw);
  transform: translate(-50%, -50%);
  text-align: center;
  color: #efffff;
}

#loading-title {
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 700;
}

#loading-label {
  margin-bottom: 12px;
  font-size: 18px;
}

#progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid #5fd8c5;
  background: #12383d;
}

#progress-fill {
  width: 0;
  height: 100%;
  background: #23bea8;
  transition: width 120ms linear;
}

#unity-warning {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 24px;
  display: none;
  width: min(680px, 88vw);
  transform: translateX(-50%);
  padding: 14px 18px;
  border: 1px solid #ff6b5f;
  background: #4b1717;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
}

#orientation-panel {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: #061b20;
  color: #efffff;
  font-size: 34px;
  font-weight: 700;
  text-align: center;
}

#orientation-panel p {
  margin: 0;
  color: #8fcbc4;
  font-size: 18px;
  font-weight: 400;
}

body.mobile-portrait #orientation-panel {
  display: flex;
}

body.mobile-portrait #unity-canvas,
body.mobile-portrait #loading-panel,
body.mobile-portrait #unity-warning {
  visibility: hidden;
  pointer-events: none;
}
