html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1020;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #0b1020;
  outline: none;
  touch-action: none;
}

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px;
  color: #e7ecf7;
  background: radial-gradient(circle at 50% 40%, #16204a 0%, #0b1020 70%);
  transition: opacity 0.4s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bar {
  width: min(320px, 70vw);
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #5eead4, #3b82f6);
  transition: width 0.2s ease;
}

.loader-text {
  font-size: 15px;
  color: #a9b4cf;
  max-width: 80vw;
  text-align: center;
}

.loader-back {
  font-size: 14px;
  color: #7dd3fc;
  text-decoration: none;
  opacity: 0;
}

#loader.error .bar,
#loader.pc-only .bar { display: none; }
#loader.error .loader-text { color: #fca5a5; }
#loader.pc-only .loader-text { color: #e7ecf7; max-width: 340px; line-height: 1.5; }
#loader.error .loader-back,
#loader.pc-only .loader-back { opacity: 1; }

#banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 90vw;
  z-index: 10;
}

.banner-item {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #e5e7eb;
}

.banner-item.warning { background: #fde68a; }
.banner-item.error { background: #fca5a5; }
