/* ── Reset básico ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #000;
  color: #e8f5e9;
}

/* ── Wrapper principal ────────────────────────────────── */
#game-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  padding: 0;
  background: #000;
}

/* ── Header ───────────────────────────────────────────── */
#game-header {
  display: none;
}

#game-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #a5d6a7;
  text-shadow: 0 0 12px #2e7d3280;
}

/* ── Contenedor del canvas ────────────────────────────── */
#unity-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* ── Pantalla de carga ────────────────────────────────── */
#unity-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #0d1f12;
  z-index: 10;
}

#loading-bar {
  width: 60%;
  height: 8px;
  border-radius: 99px;
  background: #1b4d2a;
  overflow: hidden;
}

#loading-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #43a047, #a5d6a7);
  transition: width 0.2s ease;
}

#loading-text {
  font-size: 0.85rem;
  color: #81c784;
  letter-spacing: 0.04em;
}

/* ── Canvas de Unity ──────────────────────────────────── */
#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: #000;
}

/* ── Ocultar splash screen de Unity ──────────────────── */
#unity-splash {
  display: none !important;
}

/* ── Footer ───────────────────────────────────────────── */
#game-footer {
  display: none;
}

/* ── Responsive: pantallas muy pequeñas ──────────────── */
@media (max-width: 480px) {
  #game-header {
    display: none;
  }
  #game-wrapper {
    padding: 8px;
    gap: 6px;
  }
}
