html, body { width: 100%; height: 100%; overflow: hidden }
body { padding: 0; margin: 0; background: #000; font-family: Georgia, "Times New Roman", serif }
#unity-container { position: fixed; inset: 0; width: 100vw; height: 100vh; overflow: hidden }
#unity-container.unity-desktop { left: 0; top: 0; transform: none }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { width: 100vw; height: 100vh; touch-action: none; outline: none; background: #000 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }

/* Full-screen Made in Sudbury loader (replaces stock Unity bar) */
#unity-loading-bar {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 20;
  background:
    radial-gradient(ellipse at center, #1a1408 0%, #000 62%),
    #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  box-sizing: border-box;
}
#unity-loading-bar.is-visible { display: flex; }

#unity-logo {
  width: min(42vw, 220px);
  height: min(42vw, 220px);
  background: url('made-in-sudbury.png') no-repeat center / contain;
  animation: se-logo-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(232, 200, 74, 0.28));
}

#se-loader-title {
  margin: 0;
  color: #f0d56a;
  font-size: clamp(15px, 2.4vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

#se-loader-status {
  margin: 0;
  color: rgba(255, 245, 210, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 2vw, 15px);
  text-align: center;
  min-height: 1.4em;
}

#se-progress-wrap {
  width: min(78vw, 420px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

#unity-progress-bar-empty {
  position: relative;
  width: 100%;
  height: 12px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(232, 200, 74, 0.35);
}

#unity-progress-bar-full {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6a12, #e8c84a 45%, #fff4b0 78%, #e8c84a);
  background-size: 200% 100%;
  animation: se-bar-shine 1.6s linear infinite;
  transition: width 0.18s ease-out;
}

#se-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: rgba(255, 245, 210, 0.7);
}

#se-progress-percent {
  color: #f0d56a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#se-loader-hint {
  margin: 8px 0 0;
  max-width: 420px;
  color: rgba(255, 245, 210, 0.45);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-align: center;
  line-height: 1.45;
}

@keyframes se-logo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes se-bar-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer {
  float: left;
  width: 120px;
  height: 48px;
  background: url('made-in-sudbury.png') no-repeat center / contain;
  background-color: transparent;
}
#unity-build-title { float: right; margin-right: 10px; line-height: 48px; font-family: arial; font-size: 16px; color: #e8c84a }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; margin-top: 5px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; z-index: 30 }
