/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #ebb640;
  --orange:     #f37021;
  --font:       "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-body:    13px;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--font);
}

/* ── Unity canvas fullscreen ─────────────────────────────────── */
#unity-container {
  position: fixed;
  inset: 0;
}

#unity-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── Loading bar ─────────────────────────────────────────────── */
#unity-loading-bar {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8vh;
  background-color: #0a0a1c;
  z-index: 9998;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

#unity-loading-bar.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* BITS Pilani WILP Convocation 2026 artwork as the loading background */
#unity-loading-bg {
  position: absolute;
  inset: 0;
  background-image: url("loading_screen.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Scrim so the loading status stays legible over the artwork */
#unity-loading-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(6,10,26,0.92) 0%, rgba(6,10,26,0.55) 45%, rgba(6,10,26,0) 100%);
  z-index: 1;
}

#unity-loading-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 90vw;
}

#unity-metaverse-title {
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px;
}

#unity-loading-status {
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 26px;
  min-width: 130px;
}

#unity-progress-bar-empty {
  width: min(280px, 60vw);
  height: 6px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: 2px;
  box-sizing: content-box;
  background: rgba(255,255,255,0.05);
}

#unity-progress-bar-full {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 999px;
  transition: width 0.2s ease;
  width: 0;
}

#unity-loading-percentage {
  margin-top: 14px;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
}

#unity-warning {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: #c00;
  color: #fff;
  padding: 8px 20px;
  border-radius: 0 0 10px 10px;
  font-size: var(--fs-body);
  display: none;
  z-index: 10000;
}
