html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top, #1f3557 0%, #08101c 55%, #02060c 100%);
  color: #e5eefb;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  overflow: hidden;
}

#unity-container {
  position: absolute;
}

#unity-container.unity-desktop {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#unity-container.unity-mobile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#unity-container.unity-browser-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  transform: none;
  background: #000;
}

#unity-canvas {
  background: #10141d;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

#unity-container.unity-browser-fullscreen #unity-canvas {
  width: 100% !important;
  height: calc(100% - 48px) !important;
  box-shadow: none;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 70vw);
  display: none;
  text-align: center;
}

#unity-loading-title {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 50%, #a78bfa 100%);
  border-radius: 999px;
}

#unity-footer {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-sizing: border-box;
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(8px);
}

.unity-mobile #unity-footer {
  display: none;
}

#unity-container.unity-browser-fullscreen #unity-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 3;
}

#unity-footer-title {
  font-size: 14px;
  color: #c9d7ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#unity-fullscreen-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  position: relative;
}

#unity-fullscreen-button::before {
  content: "⛶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  line-height: 1;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  display: none;
  max-width: min(80vw, 700px);
  z-index: 5;
}
