body { padding: 0; margin: 0; background: #030507; }
#unity-container { position: fixed; width: 100%; height: 100%; }
#unity-fullscreen-container { position: relative; width: 100%; height: 100%; overflow: hidden; }
#unity-canvas { position: absolute; width: 100%; height: 100%; background: #030507; }

#unity-loading-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 186, 0, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 186, 0, .025) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(156, 96, 0, .20), transparent 34%),
    linear-gradient(145deg, #020305 0%, #090a0c 52%, #020305 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  backdrop-filter: blur(6px);
}

#unity-loading-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .018) 3px 4px);
  animation: neuroverse-scan 8s linear infinite;
}

#unity-loading-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 12%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(255, 196, 22, .08), transparent);
  animation: neuroverse-sweep 4.5s ease-in-out infinite;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78vw, 610px);
  transform: translate(-50%, -50%);
  padding: 24px 32px 26px;
  box-sizing: border-box;
  color: #ffd45a;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: .16em;
  filter: drop-shadow(0 15px 36px rgba(0, 0, 0, .9));
}

#unity-loading-bar::before,
#unity-loading-bar::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 34px;
  border-color: #e9a900;
  filter: drop-shadow(0 0 7px rgba(255, 181, 0, .7));
}

#unity-loading-bar::before {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 30% 30%, 30% 100%, 0 100%);
}

#unity-loading-bar::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%, 0 70%, 70% 70%);
}

#unity-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(145px, 29vw, 275px);
  margin: -32px 0 -6px;
}

#unity-logo img {
  display: block;
  width: min(100%, 540px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(255, 175, 0, .30)) drop-shadow(0 7px 12px rgba(0, 0, 0, .9));
  animation: neuroverse-logo-pulse 2.8s ease-in-out infinite;
}

#unity-loading-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 4px 10px;
  color: #d9b45c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 178, 0, .65);
}

#unity-loading-percent {
  color: #fff0ae;
  font-variant-numeric: tabular-nums;
}

#unity-progress-bar-empty {
  position: relative;
  width: 100%;
  height: 22px;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 36, .7);
  background: rgba(2, 3, 5, .92);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, .95),
    0 0 12px rgba(255, 169, 0, .18),
    0 0 0 1px rgba(255, 226, 126, .08);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}

#unity-progress-bar-empty::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(3, 5, 7, .75) 18px 21px);
}

#unity-progress-bar-full {
  position: relative;
  width: 0%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #8b4b00 0%, #f6a900 35%, #fff07b 72%, #fffce2 100%);
  box-shadow: 0 0 8px #ffb000, 0 0 18px rgba(255, 178, 0, .75);
  transition: width .18s ease-out;
}

#unity-progress-bar-full::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  animation: neuroverse-energy 1.2s linear infinite;
}

#unity-loading-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  color: rgba(226, 195, 118, .58);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

#unity-loading-detail span {
  width: 24px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
}

#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; z-index: 20; }

@keyframes neuroverse-logo-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 7px rgba(255, 175, 0, .25)) drop-shadow(0 7px 12px rgba(0, 0, 0, .9)); }
  50% { transform: scale(1.015); filter: drop-shadow(0 0 14px rgba(255, 184, 0, .48)) drop-shadow(0 7px 12px rgba(0, 0, 0, .9)); }
}

@keyframes neuroverse-energy {
  from { transform: translateX(-130%); }
  to { transform: translateX(350%); }
}

@keyframes neuroverse-scan {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

@keyframes neuroverse-sweep {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: .7; }
  100% { transform: translateY(930%); opacity: 0; }
}

@media (max-width: 600px) {
  #unity-loading-bar { width: 90vw; padding: 18px 18px 22px; }
  #unity-logo { height: clamp(130px, 49vw, 220px); margin-bottom: 0; }
  #unity-loading-status { font-size: 9px; letter-spacing: .1em; }
  #unity-loading-detail { font-size: 7px; letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  #unity-loading-container::before,
  #unity-loading-container::after,
  #unity-logo img,
  #unity-progress-bar-full::after { animation: none; }
}
