:root {
  --bg: #05070d;
  --panel: rgba(255, 255, 255, 0.07);
  --accent: #6cd7ff;
  --accent-strong: #3b7bd3;
  --text: #e7f3ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior: none;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#unity-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(108, 215, 255, 0.08), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(59, 123, 211, 0.08), transparent 40%),
    var(--bg);
}

#unity-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#unity-canvas {
  background: #231F20;
  display: block;
  max-width: 100%;
  max-height: 100%;
  outline: none;
  border: none;
  touch-action: none;
  image-rendering: optimizeQuality;
}

#unity-loading-bar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease;
}

#unity-loading-bar.hidden {
  opacity: 0;
  pointer-events: none;
}

#unity-logo {
  width: 180px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

#unity-progress-bar-empty {
  width: 240px;
  height: 12px;
  background: #10151d;
  border: 1px solid #1f2a3c;
  border-radius: 999px;
  padding: 2px;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width 0.15s ease;
}

#unity-warning {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffe8a3;
  color: #1a1200;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
  max-width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  font-size: 14px;
}

#diagnostics-icon {
  position: absolute;
  right: 16px;
  bottom: 72px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #1f2a3c;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#diagnostics-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #2d3a52;
}

#diagnostics-icon:active {
  background: rgba(255, 255, 255, 0.24);
}
